@scrabble-solver/scrabble-solver 2.12.1 → 2.12.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.next/BUILD_ID +1 -1
- package/.next/build-manifest.json +14 -14
- package/.next/cache/.tsbuildinfo +1 -1
- package/.next/cache/eslint/.cache_8dgz12 +1 -1
- package/.next/cache/next-server.js.nft.json +1 -1
- package/.next/cache/webpack/client-production/0.pack +0 -0
- package/.next/cache/webpack/client-production/index.pack +0 -0
- package/.next/cache/webpack/edge-server-production/0.pack +0 -0
- package/.next/cache/webpack/edge-server-production/index.pack +0 -0
- package/.next/cache/webpack/server-production/0.pack +0 -0
- package/.next/cache/webpack/server-production/index.pack +0 -0
- package/.next/next-server.js.nft.json +1 -1
- package/.next/prerender-manifest.json +1 -1
- package/.next/required-server-files.json +1 -1
- package/.next/routes-manifest.json +1 -1
- package/.next/server/chunks/131.js +478 -106
- package/.next/server/chunks/277.js +1202 -1013
- package/.next/server/chunks/44.js +36 -6
- package/.next/server/chunks/675.js +35 -13
- package/.next/server/chunks/859.js +21 -4
- package/.next/server/chunks/865.js +478 -106
- package/.next/server/chunks/911.js +894 -773
- package/.next/server/middleware-build-manifest.js +1 -1
- package/.next/server/pages/404.html +1 -1
- package/.next/server/pages/404.js.nft.json +1 -1
- package/.next/server/pages/500.html +1 -1
- package/.next/server/pages/_app.js +3 -1
- package/.next/server/pages/_app.js.nft.json +1 -1
- package/.next/server/pages/api/dictionary/[locale]/[word].js +4 -2
- package/.next/server/pages/api/solve.js +51 -20
- package/.next/server/pages/api/verify.js +8 -5
- package/.next/server/pages/index.html +1 -1
- package/.next/server/pages/index.js +55 -65
- package/.next/server/pages/index.js.nft.json +1 -1
- package/.next/server/pages/index.json +1 -1
- package/.next/server/pages-manifest.json +2 -2
- package/.next/static/chunks/{framework-2c5cac93e8c637b5.js → framework-2c29dc3cd933590b.js} +2 -2
- package/.next/static/chunks/main-4dcb7f9b52833aba.js +1 -0
- package/.next/static/chunks/pages/_app-e7f3d1c9c09c8f91.js +32 -0
- package/.next/static/chunks/pages/index-82b2939158c7729f.js +1 -0
- package/.next/static/css/4e8b47fe382a8a8f.css +2 -0
- package/.next/static/css/cfae5256f1689f57.css +1 -0
- package/.next/static/{_yG9K-PD5kWT_p4sMdCSV → wNIKOJJzkMSJYb2nOL21o}/_buildManifest.js +1 -1
- package/.next/trace +51 -52
- package/package.json +14 -14
- package/src/components/Board/Board.module.scss +33 -0
- package/src/components/Board/Board.tsx +3 -0
- package/src/components/Board/BoardPure.tsx +25 -1
- package/src/components/Board/components/Cell/Cell.module.scss +4 -12
- package/src/components/Board/components/Cell/Cell.tsx +4 -0
- package/src/components/Board/components/InputPrompt/InputPrompt.tsx +1 -0
- package/src/components/Board/hooks/useBackgroundImage.tsx +24 -6
- package/src/components/PlainTiles/lib/createPlainTile.ts +4 -4
- package/src/components/Rack/components/InputPrompt/InputPrompt.tsx +1 -0
- package/src/components/Radio/Radio.module.scss +4 -0
- package/src/components/Radio/Radio.tsx +1 -0
- package/src/components/SeoMessage/SeoMessage.tsx +3 -3
- package/src/hooks/useAppLayout.ts +1 -2
- package/src/hooks/useLocalStorage.ts +5 -5
- package/src/i18n/constants.ts +31 -61
- package/src/lib/extractCharacters.test.ts +3 -3
- package/src/lib/extractCharactersByCase.test.ts +3 -3
- package/src/lib/getCellSize.ts +2 -2
- package/src/modals/MenuModal/MenuModal.module.scss +0 -1
- package/src/modals/MenuModal/MenuModal.tsx +3 -3
- package/src/modals/SettingsModal/SettingsModal.tsx +7 -3
- package/src/modals/SettingsModal/components/ConfigSetting/ConfigSetting.tsx +16 -7
- package/src/modals/SettingsModal/components/LocaleSetting/LocaleSetting.module.scss +1 -4
- package/src/modals/SettingsModal/components/LocaleSetting/LocaleSetting.tsx +8 -8
- package/src/pages/_app.tsx +3 -1
- package/src/pages/api/dictionary/[locale]/[word].ts +6 -3
- package/src/pages/api/solve.ts +11 -7
- package/src/pages/api/verify.ts +11 -7
- package/src/pages/index.module.scss +0 -1
- package/src/parameters/index.ts +4 -6
- package/src/sdk/solve.ts +3 -3
- package/src/sdk/verify.ts +3 -3
- package/src/service-worker/routeSolveRequests.ts +3 -3
- package/src/state/localStorage.ts +6 -6
- package/src/state/sagas.ts +18 -7
- package/src/state/selectors.ts +10 -10
- package/src/state/slices/boardInitialState.ts +3 -3
- package/src/state/slices/boardSlice.ts +20 -6
- package/src/state/slices/settingsInitialState.ts +3 -4
- package/src/state/slices/settingsSlice.ts +5 -5
- package/src/styles/variables.scss +0 -9
- package/.next/static/chunks/main-0ecb9ccfcb6c9b24.js +0 -1
- package/.next/static/chunks/pages/_app-bea4539a6b8042de.js +0 -32
- package/.next/static/chunks/pages/index-4e8566409753e1c3.js +0 -1
- package/.next/static/css/58053f9594647860.css +0 -2
- package/.next/static/css/60e8258da7362a1a.css +0 -1
- package/src/i18n/i18n.module.scss +0 -27
- package/src/modals/SettingsModal/components/ConfigSetting/options.ts +0 -19
- package/src/modals/SettingsModal/components/ConfigSetting/types.ts +0 -9
- package/src/modals/SettingsModal/components/InputModeSetting/types.ts +0 -7
- package/src/modals/SettingsModal/components/LocaleSetting/types.ts +0 -9
- /package/.next/static/{_yG9K-PD5kWT_p4sMdCSV → wNIKOJJzkMSJYb2nOL21o}/_ssgManifest.js +0 -0
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{4406:function(e){var t,r,n,o=e.exports={};function a(){throw Error("setTimeout has not been defined")}function i(){throw Error("clearTimeout has not been defined")}function l(e){if(t===setTimeout)return setTimeout(e,0);if((t===a||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:a}catch(e){t=a}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(e){r=i}}();var c=[],s=!1,u=-1;function f(){s&&n&&(s=!1,n.length?c=n.concat(c):u=-1,c.length&&d())}function d(){if(!s){var e=l(f);s=!0;for(var t=c.length;t;){for(n=c,c=[];++u<t;)n&&n[u].run();u=-1,t=c.length}n=null,s=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function h(){}o.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];c.push(new p(e,t)),1!==c.length||s||l(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=h,o.addListener=h,o.once=h,o.off=h,o.removeListener=h,o.removeAllListeners=h,o.emit=h,o.prependListener=h,o.prependOnceListener=h,o.listeners=function(e){return[]},o.binding=function(e){throw Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw Error("process.chdir is not supported")},o.umask=function(){return 0}},7079:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});let o=n(r(3432)),a=n(r(8964)),i=[o.default,a.default],l=e=>{let t=i.find(({id:t})=>t===e);if(!t)throw Error(`Invalid "configId" parameter: not one of ${i.map(({id:e})=>e).join("/")}`);return t};t.default=l},3632:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});let o=n(r(7079)),a=(e,t)=>(0,o.default)(e)[t];t.default=a},9418:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.scrabble=t.literaki=t.isConfigId=t.getLocaleConfig=t.getConfig=void 0;var o=r(7079);Object.defineProperty(t,"getConfig",{enumerable:!0,get:function(){return n(o).default}});var a=r(3632);Object.defineProperty(t,"getLocaleConfig",{enumerable:!0,get:function(){return n(a).default}});var i=r(5582);Object.defineProperty(t,"isConfigId",{enumerable:!0,get:function(){return n(i).default}});var l=r(3432);Object.defineProperty(t,"literaki",{enumerable:!0,get:function(){return n(l).default}});var c=r(8964);Object.defineProperty(t,"scrabble",{enumerable:!0,get:function(){return n(c).default}})},5582:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});let o=n(r(3432)),a=n(r(8964)),i=[o.default,a.default],l=e=>i.some(({id:t})=>t===e);t.default=l},2376:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(7618),o=[{multiplier:3,score:5,type:n.BONUS_CHARACTER,x:0,y:0},{multiplier:3,type:n.BONUS_WORD,x:2,y:0},{multiplier:3,score:2,type:n.BONUS_CHARACTER,x:5,y:0},{multiplier:3,score:5,type:n.BONUS_CHARACTER,x:7,y:0},{multiplier:3,score:2,type:n.BONUS_CHARACTER,x:9,y:0},{multiplier:3,type:n.BONUS_WORD,x:12,y:0},{multiplier:3,score:5,type:n.BONUS_CHARACTER,x:14,y:0},{multiplier:3,score:2,type:n.BONUS_CHARACTER,x:4,y:1},{multiplier:3,score:5,type:n.BONUS_CHARACTER,x:6,y:1},{multiplier:3,score:5,type:n.BONUS_CHARACTER,x:8,y:1},{multiplier:3,score:2,type:n.BONUS_CHARACTER,x:10,y:1},{multiplier:3,type:n.BONUS_WORD,x:0,y:2},{multiplier:3,score:2,type:n.BONUS_CHARACTER,x:3,y:2},{multiplier:2,type:n.BONUS_WORD,x:5,y:2},{multiplier:3,score:1,type:n.BONUS_CHARACTER,x:7,y:2},{multiplier:2,type:n.BONUS_WORD,x:9,y:2},{multiplier:3,score:2,type:n.BONUS_CHARACTER,x:11,y:2},{multiplier:3,type:n.BONUS_WORD,x:14,y:2},{multiplier:3,score:2,type:n.BONUS_CHARACTER,x:2,y:3},{multiplier:2,type:n.BONUS_WORD,x:4,y:3},{multiplier:3,score:1,type:n.BONUS_CHARACTER,x:6,y:3},{multiplier:3,score:1,type:n.BONUS_CHARACTER,x:8,y:3},{multiplier:2,type:n.BONUS_WORD,x:10,y:3},{multiplier:3,score:2,type:n.BONUS_CHARACTER,x:12,y:3},{multiplier:3,score:2,type:n.BONUS_CHARACTER,x:1,y:4},{multiplier:2,type:n.BONUS_WORD,x:3,y:4},{multiplier:3,score:1,type:n.BONUS_CHARACTER,x:5,y:4},{multiplier:3,score:1,type:n.BONUS_CHARACTER,x:9,y:4},{multiplier:2,type:n.BONUS_WORD,x:11,y:4},{multiplier:3,score:2,type:n.BONUS_CHARACTER,x:13,y:4},{multiplier:3,score:2,type:n.BONUS_CHARACTER,x:0,y:5},{multiplier:2,type:n.BONUS_WORD,x:2,y:5},{multiplier:3,score:1,type:n.BONUS_CHARACTER,x:4,y:5},{multiplier:3,score:3,type:n.BONUS_CHARACTER,x:7,y:5},{multiplier:3,score:1,type:n.BONUS_CHARACTER,x:10,y:5},{multiplier:2,type:n.BONUS_WORD,x:12,y:5},{multiplier:3,score:2,type:n.BONUS_CHARACTER,x:14,y:5},{multiplier:3,score:5,type:n.BONUS_CHARACTER,x:1,y:6},{multiplier:3,score:1,type:n.BONUS_CHARACTER,x:3,y:6},{multiplier:3,score:3,type:n.BONUS_CHARACTER,x:6,y:6},{multiplier:3,score:3,type:n.BONUS_CHARACTER,x:8,y:6},{multiplier:3,score:1,type:n.BONUS_CHARACTER,x:11,y:6},{multiplier:3,score:5,type:n.BONUS_CHARACTER,x:13,y:6},{multiplier:3,score:5,type:n.BONUS_CHARACTER,x:0,y:7},{multiplier:3,score:1,type:n.BONUS_CHARACTER,x:2,y:7},{multiplier:3,score:3,type:n.BONUS_CHARACTER,x:5,y:7},{multiplier:3,score:5,type:n.BONUS_CHARACTER,x:7,y:7},{multiplier:3,score:3,type:n.BONUS_CHARACTER,x:9,y:7},{multiplier:3,score:1,type:n.BONUS_CHARACTER,x:12,y:7},{multiplier:3,score:5,type:n.BONUS_CHARACTER,x:14,y:7},{multiplier:3,score:5,type:n.BONUS_CHARACTER,x:1,y:8},{multiplier:3,score:1,type:n.BONUS_CHARACTER,x:3,y:8},{multiplier:3,score:3,type:n.BONUS_CHARACTER,x:6,y:8},{multiplier:3,score:3,type:n.BONUS_CHARACTER,x:8,y:8},{multiplier:3,score:1,type:n.BONUS_CHARACTER,x:11,y:8},{multiplier:3,score:5,type:n.BONUS_CHARACTER,x:13,y:8},{multiplier:3,score:2,type:n.BONUS_CHARACTER,x:0,y:9},{multiplier:2,type:n.BONUS_WORD,x:2,y:9},{multiplier:3,score:1,type:n.BONUS_CHARACTER,x:4,y:9},{multiplier:3,score:3,type:n.BONUS_CHARACTER,x:7,y:9},{multiplier:3,score:1,type:n.BONUS_CHARACTER,x:10,y:9},{multiplier:2,type:n.BONUS_WORD,x:12,y:9},{multiplier:3,score:2,type:n.BONUS_CHARACTER,x:14,y:9},{multiplier:3,score:2,type:n.BONUS_CHARACTER,x:1,y:10},{multiplier:2,type:n.BONUS_WORD,x:3,y:10},{multiplier:3,score:1,type:n.BONUS_CHARACTER,x:5,y:10},{multiplier:3,score:1,type:n.BONUS_CHARACTER,x:9,y:10},{multiplier:2,type:n.BONUS_WORD,x:11,y:10},{multiplier:3,score:2,type:n.BONUS_CHARACTER,x:13,y:10},{multiplier:3,score:2,type:n.BONUS_CHARACTER,x:2,y:11},{multiplier:2,type:n.BONUS_WORD,x:4,y:11},{multiplier:3,score:1,type:n.BONUS_CHARACTER,x:6,y:11},{multiplier:3,score:1,type:n.BONUS_CHARACTER,x:8,y:11},{multiplier:2,type:n.BONUS_WORD,x:10,y:11},{multiplier:3,score:2,type:n.BONUS_CHARACTER,x:12,y:11},{multiplier:3,type:n.BONUS_WORD,x:0,y:12},{multiplier:3,score:2,type:n.BONUS_CHARACTER,x:3,y:12},{multiplier:2,type:n.BONUS_WORD,x:5,y:12},{multiplier:3,score:1,type:n.BONUS_CHARACTER,x:7,y:12},{multiplier:2,type:n.BONUS_WORD,x:9,y:12},{multiplier:3,score:2,type:n.BONUS_CHARACTER,x:11,y:12},{multiplier:3,type:n.BONUS_WORD,x:14,y:12},{multiplier:3,score:2,type:n.BONUS_CHARACTER,x:4,y:13},{multiplier:3,score:5,type:n.BONUS_CHARACTER,x:6,y:13},{multiplier:3,score:5,type:n.BONUS_CHARACTER,x:8,y:13},{multiplier:3,score:2,type:n.BONUS_CHARACTER,x:10,y:13},{multiplier:3,score:5,type:n.BONUS_CHARACTER,x:0,y:14},{multiplier:3,type:n.BONUS_WORD,x:2,y:14},{multiplier:3,score:2,type:n.BONUS_CHARACTER,x:5,y:14},{multiplier:3,score:5,type:n.BONUS_CHARACTER,x:7,y:14},{multiplier:3,score:2,type:n.BONUS_CHARACTER,x:9,y:14},{multiplier:3,type:n.BONUS_WORD,x:12,y:14},{multiplier:3,score:5,type:n.BONUS_CHARACTER,x:14,y:14}];t.default=o},3432:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(4477);Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n(o).default}})},4477:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});let o=r(1266),a=n(r(2376)),i=r(7529),l={allTilesBonusScore:50,blankScore:0,blanksCount:2,boardHeight:15,boardWidth:15,bonuses:a.default,id:"literaki",maximumCharactersCount:7,name:"Literaki"},c={id:l.id,name:l.name,[o.Locale.DE_DE]:o.Config.fromJson({...l,locale:o.Locale.EN_GB,tiles:i.tilesDe}),[o.Locale.EN_GB]:o.Config.fromJson({...l,locale:o.Locale.DE_DE,tiles:i.tilesEn}),[o.Locale.EN_US]:o.Config.fromJson({...l,locale:o.Locale.EN_US,tiles:i.tilesEn}),[o.Locale.ES_ES]:o.Config.fromJson({...l,locale:o.Locale.ES_ES,tiles:i.tilesEs}),[o.Locale.FA_IR]:o.Config.fromJson({...l,locale:o.Locale.FA_IR,tiles:i.tilesFa}),[o.Locale.FR_FR]:o.Config.fromJson({...l,locale:o.Locale.FR_FR,tiles:i.tilesFr}),[o.Locale.PL_PL]:o.Config.fromJson({...l,locale:o.Locale.PL_PL,tiles:i.tilesPl})};t.default=c},7529:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.tilesDe=t.tilesPl=t.tilesFr=t.tilesFa=t.tilesEs=t.tilesEn=void 0;var o=r(7910);Object.defineProperty(t,"tilesEn",{enumerable:!0,get:function(){return n(o).default}});var a=r(3029);Object.defineProperty(t,"tilesEs",{enumerable:!0,get:function(){return n(a).default}});var i=r(5366);Object.defineProperty(t,"tilesFa",{enumerable:!0,get:function(){return n(i).default}});var l=r(9541);Object.defineProperty(t,"tilesFr",{enumerable:!0,get:function(){return n(l).default}});var c=r(2647);Object.defineProperty(t,"tilesPl",{enumerable:!0,get:function(){return n(c).default}});var s=r(7911);Object.defineProperty(t,"tilesDe",{enumerable:!0,get:function(){return n(s).default}})},7911:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{character:"a",count:5,score:1},{character:"\xe4",count:1,score:6},{character:"b",count:2,score:3},{character:"c",count:2,score:4},{character:"d",count:4,score:1},{character:"e",count:15,score:1},{character:"f",count:2,score:4},{character:"g",count:3,score:2},{character:"h",count:4,score:2},{character:"i",count:6,score:1},{character:"j",count:1,score:6},{character:"k",count:2,score:4},{character:"l",count:3,score:2},{character:"m",count:4,score:3},{character:"n",count:9,score:1},{character:"o",count:3,score:2},{character:"\xf6",count:1,score:8},{character:"p",count:1,score:4},{character:"q",count:1,score:10},{character:"r",count:6,score:1},{character:"s",count:7,score:1},{character:"t",count:6,score:1},{character:"u",count:6,score:1},{character:"\xfc",count:1,score:6},{character:"v",count:1,score:6},{character:"w",count:1,score:3},{character:"x",count:1,score:8},{character:"y",count:1,score:10},{character:"z",count:1,score:3}]},7910:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{character:"a",count:9,score:1},{character:"b",count:2,score:3},{character:"c",count:2,score:3},{character:"d",count:4,score:2},{character:"e",count:12,score:1},{character:"f",count:2,score:4},{character:"g",count:3,score:2},{character:"h",count:2,score:4},{character:"i",count:9,score:1},{character:"j",count:1,score:8},{character:"k",count:1,score:5},{character:"l",count:4,score:1},{character:"m",count:2,score:3},{character:"n",count:6,score:1},{character:"o",count:8,score:1},{character:"p",count:2,score:3},{character:"q",count:1,score:10},{character:"r",count:6,score:1},{character:"s",count:4,score:1},{character:"t",count:6,score:1},{character:"u",count:4,score:1},{character:"v",count:2,score:4},{character:"w",count:2,score:4},{character:"x",count:1,score:8},{character:"y",count:2,score:4},{character:"z",count:1,score:10}]},3029:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{character:"a",count:12,score:1},{character:"b",count:2,score:3},{character:"c",count:4,score:3},{character:"ch",count:1,score:5},{character:"d",count:5,score:2},{character:"e",count:12,score:1},{character:"f",count:1,score:4},{character:"g",count:2,score:2},{character:"h",count:2,score:4},{character:"i",count:6,score:1},{character:"j",count:1,score:8},{character:"ll",count:1,score:8},{character:"l",count:4,score:1},{character:"m",count:2,score:3},{character:"n",count:5,score:1},{character:"\xf1",count:1,score:8},{character:"o",count:9,score:1},{character:"p",count:2,score:3},{character:"q",count:1,score:5},{character:"r",count:5,score:1},{character:"rr",count:1,score:8},{character:"s",count:6,score:1},{character:"t",count:4,score:1},{character:"u",count:5,score:1},{character:"v",count:1,score:4},{character:"x",count:1,score:8},{character:"y",count:1,score:4},{character:"z",count:1,score:10}]},5366:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{character:"ا",count:12,score:1},{character:"ب",count:4,score:1},{character:"پ",count:1,score:6},{character:"ت",count:4,score:1},{character:"ث",count:1,score:10},{character:"ج",count:2,score:5},{character:"چ",count:1,score:6},{character:"ح",count:1,score:6},{character:"خ",count:2,score:5},{character:"د",count:6,score:1},{character:"ذ",count:1,score:10},{character:"ر",count:7,score:1},{character:"ز",count:3,score:4},{character:"ژ",count:1,score:10},{character:"س",count:3,score:2},{character:"ش",count:3,score:3},{character:"ص",count:1,score:6},{character:"ض",count:1,score:8},{character:"ط",count:1,score:8},{character:"ظ",count:1,score:10},{character:"ع",count:2,score:5},{character:"غ",count:1,score:8},{character:"ف",count:2,score:4},{character:"ق",count:2,score:5},{character:"ک",count:3,score:3},{character:"گ",count:2,score:4},{character:"ل",count:3,score:2},{character:"م",count:5,score:1},{character:"ن",count:6,score:1},{character:"و",count:5,score:1},{character:"ه",count:5,score:1},{character:"ی",count:8,score:1}]},9541:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{character:"a",count:9,score:1},{character:"b",count:2,score:3},{character:"c",count:2,score:3},{character:"d",count:3,score:2},{character:"e",count:15,score:1},{character:"f",count:2,score:1},{character:"g",count:2,score:2},{character:"h",count:2,score:4},{character:"i",count:8,score:1},{character:"j",count:1,score:8},{character:"k",count:1,score:10},{character:"l",count:5,score:1},{character:"m",count:3,score:2},{character:"n",count:6,score:1},{character:"o",count:6,score:1},{character:"p",count:2,score:3},{character:"q",count:1,score:8},{character:"r",count:6,score:1},{character:"s",count:6,score:1},{character:"t",count:6,score:1},{character:"u",count:6,score:1},{character:"v",count:2,score:4},{character:"w",count:1,score:10},{character:"x",count:1,score:10},{character:"y",count:1,score:10},{character:"z",count:1,score:10}]},2647:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{character:"a",count:9,score:1},{character:"ą",count:1,score:5},{character:"b",count:2,score:3},{character:"c",count:3,score:2},{character:"ć",count:1,score:5},{character:"d",count:3,score:2},{character:"e",count:7,score:1},{character:"ę",count:1,score:5},{character:"f",count:1,score:5},{character:"g",count:2,score:3},{character:"h",count:2,score:3},{character:"i",count:8,score:1},{character:"j",count:2,score:3},{character:"k",count:3,score:2},{character:"l",count:3,score:2},{character:"ł",count:2,score:3},{character:"m",count:3,score:2},{character:"n",count:5,score:1},{character:"ń",count:1,score:5},{character:"o",count:6,score:1},{character:"\xf3",count:1,score:5},{character:"p",count:3,score:2},{character:"r",count:4,score:1},{character:"s",count:4,score:1},{character:"ś",count:1,score:5},{character:"t",count:3,score:2},{character:"u",count:2,score:3},{character:"w",count:4,score:1},{character:"y",count:4,score:2},{character:"z",count:5,score:1},{character:"ź",count:1,score:5},{character:"ż",count:1,score:5}]},1551:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(7618),o=[{multiplier:3,type:n.BONUS_WORD,x:0,y:0},{multiplier:2,type:n.BONUS_CHARACTER,x:3,y:0},{multiplier:3,type:n.BONUS_WORD,x:7,y:0},{multiplier:2,type:n.BONUS_CHARACTER,x:11,y:0},{multiplier:3,type:n.BONUS_WORD,x:14,y:0},{multiplier:2,type:n.BONUS_WORD,x:1,y:1},{multiplier:3,type:n.BONUS_CHARACTER,x:5,y:1},{multiplier:3,type:n.BONUS_CHARACTER,x:9,y:1},{multiplier:2,type:n.BONUS_WORD,x:13,y:1},{multiplier:2,type:n.BONUS_WORD,x:2,y:2},{multiplier:2,type:n.BONUS_CHARACTER,x:6,y:2},{multiplier:2,type:n.BONUS_CHARACTER,x:8,y:2},{multiplier:2,type:n.BONUS_WORD,x:12,y:2},{multiplier:2,type:n.BONUS_CHARACTER,x:0,y:3},{multiplier:2,type:n.BONUS_WORD,x:3,y:3},{multiplier:2,type:n.BONUS_CHARACTER,x:7,y:3},{multiplier:2,type:n.BONUS_WORD,x:11,y:3},{multiplier:2,type:n.BONUS_CHARACTER,x:14,y:3},{multiplier:2,type:n.BONUS_WORD,x:4,y:4},{multiplier:2,type:n.BONUS_WORD,x:10,y:4},{multiplier:3,type:n.BONUS_CHARACTER,x:1,y:5},{multiplier:3,type:n.BONUS_CHARACTER,x:5,y:5},{multiplier:3,type:n.BONUS_CHARACTER,x:9,y:5},{multiplier:3,type:n.BONUS_CHARACTER,x:13,y:5},{multiplier:2,type:n.BONUS_CHARACTER,x:2,y:6},{multiplier:2,type:n.BONUS_CHARACTER,x:6,y:6},{multiplier:2,type:n.BONUS_CHARACTER,x:8,y:6},{multiplier:2,type:n.BONUS_CHARACTER,x:12,y:6},{multiplier:3,type:n.BONUS_WORD,x:0,y:7},{multiplier:2,type:n.BONUS_CHARACTER,x:3,y:7},{multiplier:2,type:n.BONUS_WORD,x:7,y:7},{multiplier:2,type:n.BONUS_CHARACTER,x:11,y:7},{multiplier:3,type:n.BONUS_WORD,x:14,y:7},{multiplier:2,type:n.BONUS_CHARACTER,x:2,y:8},{multiplier:2,type:n.BONUS_CHARACTER,x:6,y:8},{multiplier:2,type:n.BONUS_CHARACTER,x:8,y:8},{multiplier:2,type:n.BONUS_CHARACTER,x:12,y:8},{multiplier:3,type:n.BONUS_CHARACTER,x:1,y:9},{multiplier:3,type:n.BONUS_CHARACTER,x:5,y:9},{multiplier:3,type:n.BONUS_CHARACTER,x:9,y:9},{multiplier:3,type:n.BONUS_CHARACTER,x:13,y:9},{multiplier:2,type:n.BONUS_WORD,x:4,y:10},{multiplier:2,type:n.BONUS_WORD,x:10,y:10},{multiplier:2,type:n.BONUS_CHARACTER,x:0,y:11},{multiplier:2,type:n.BONUS_WORD,x:3,y:11},{multiplier:2,type:n.BONUS_CHARACTER,x:7,y:11},{multiplier:2,type:n.BONUS_WORD,x:11,y:11},{multiplier:2,type:n.BONUS_CHARACTER,x:14,y:11},{multiplier:2,type:n.BONUS_WORD,x:2,y:12},{multiplier:2,type:n.BONUS_CHARACTER,x:6,y:12},{multiplier:2,type:n.BONUS_CHARACTER,x:8,y:12},{multiplier:2,type:n.BONUS_WORD,x:12,y:12},{multiplier:2,type:n.BONUS_WORD,x:1,y:13},{multiplier:3,type:n.BONUS_CHARACTER,x:5,y:13},{multiplier:3,type:n.BONUS_CHARACTER,x:9,y:13},{multiplier:2,type:n.BONUS_WORD,x:13,y:13},{multiplier:3,type:n.BONUS_WORD,x:0,y:14},{multiplier:2,type:n.BONUS_CHARACTER,x:3,y:14},{multiplier:3,type:n.BONUS_WORD,x:7,y:14},{multiplier:2,type:n.BONUS_CHARACTER,x:11,y:14},{multiplier:3,type:n.BONUS_WORD,x:14,y:14}];t.default=o},8964:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(7192);Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n(o).default}})},7192:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});let o=r(1266),a=n(r(1551)),i=r(9213),l={allTilesBonusScore:50,blankScore:0,blanksCount:2,boardHeight:15,boardWidth:15,bonuses:a.default,id:"scrabble",maximumCharactersCount:7,name:"Scrabble"},c={id:l.id,name:l.name,[o.Locale.EN_GB]:o.Config.fromJson({...l,locale:o.Locale.EN_GB,tiles:i.tilesEn}),[o.Locale.DE_DE]:o.Config.fromJson({...l,locale:o.Locale.DE_DE,tiles:i.tilesDe}),[o.Locale.EN_US]:o.Config.fromJson({...l,locale:o.Locale.EN_US,tiles:i.tilesEn}),[o.Locale.ES_ES]:o.Config.fromJson({...l,locale:o.Locale.ES_ES,tiles:i.tilesEs}),[o.Locale.FA_IR]:o.Config.fromJson({...l,locale:o.Locale.FA_IR,tiles:i.tilesFa}),[o.Locale.FR_FR]:o.Config.fromJson({...l,locale:o.Locale.FR_FR,tiles:i.tilesFr}),[o.Locale.PL_PL]:o.Config.fromJson({...l,locale:o.Locale.PL_PL,tiles:i.tilesPl})};t.default=c},9213:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.tilesDe=t.tilesPl=t.tilesFr=t.tilesFa=t.tilesEs=t.tilesEn=void 0;var o=r(6149);Object.defineProperty(t,"tilesEn",{enumerable:!0,get:function(){return n(o).default}});var a=r(4537);Object.defineProperty(t,"tilesEs",{enumerable:!0,get:function(){return n(a).default}});var i=r(2878);Object.defineProperty(t,"tilesFa",{enumerable:!0,get:function(){return n(i).default}});var l=r(2866);Object.defineProperty(t,"tilesFr",{enumerable:!0,get:function(){return n(l).default}});var c=r(5667);Object.defineProperty(t,"tilesPl",{enumerable:!0,get:function(){return n(c).default}});var s=r(7355);Object.defineProperty(t,"tilesDe",{enumerable:!0,get:function(){return n(s).default}})},7355:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{character:"a",count:5,score:1},{character:"\xe4",count:1,score:6},{character:"b",count:2,score:3},{character:"c",count:2,score:4},{character:"d",count:4,score:1},{character:"e",count:15,score:1},{character:"f",count:2,score:4},{character:"g",count:3,score:2},{character:"h",count:4,score:2},{character:"i",count:6,score:1},{character:"j",count:1,score:6},{character:"k",count:2,score:4},{character:"l",count:3,score:2},{character:"m",count:4,score:3},{character:"n",count:9,score:1},{character:"o",count:3,score:2},{character:"\xf6",count:1,score:8},{character:"p",count:1,score:4},{character:"q",count:1,score:10},{character:"r",count:6,score:1},{character:"s",count:7,score:1},{character:"t",count:6,score:1},{character:"u",count:6,score:1},{character:"\xfc",count:1,score:6},{character:"v",count:1,score:6},{character:"w",count:1,score:3},{character:"x",count:1,score:8},{character:"y",count:1,score:10},{character:"z",count:1,score:3}]},6149:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{character:"a",count:9,score:1},{character:"b",count:2,score:3},{character:"c",count:2,score:3},{character:"d",count:4,score:2},{character:"e",count:12,score:1},{character:"f",count:2,score:4},{character:"g",count:3,score:2},{character:"h",count:2,score:4},{character:"i",count:9,score:1},{character:"j",count:1,score:8},{character:"k",count:1,score:5},{character:"l",count:4,score:1},{character:"m",count:2,score:3},{character:"n",count:6,score:1},{character:"o",count:8,score:1},{character:"p",count:2,score:3},{character:"q",count:1,score:10},{character:"r",count:6,score:1},{character:"s",count:4,score:1},{character:"t",count:6,score:1},{character:"u",count:4,score:1},{character:"v",count:2,score:4},{character:"w",count:2,score:4},{character:"x",count:1,score:8},{character:"y",count:2,score:4},{character:"z",count:1,score:10}]},4537:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{character:"a",count:12,score:1},{character:"b",count:2,score:3},{character:"c",count:4,score:3},{character:"ch",count:1,score:5},{character:"d",count:5,score:2},{character:"e",count:12,score:1},{character:"f",count:1,score:4},{character:"g",count:2,score:2},{character:"h",count:2,score:4},{character:"i",count:6,score:1},{character:"j",count:1,score:8},{character:"ll",count:1,score:8},{character:"l",count:4,score:1},{character:"m",count:2,score:3},{character:"n",count:5,score:1},{character:"\xf1",count:1,score:8},{character:"o",count:9,score:1},{character:"p",count:2,score:3},{character:"q",count:1,score:5},{character:"r",count:5,score:1},{character:"rr",count:1,score:8},{character:"s",count:6,score:1},{character:"t",count:4,score:1},{character:"u",count:5,score:1},{character:"v",count:1,score:4},{character:"x",count:1,score:8},{character:"y",count:1,score:4},{character:"z",count:1,score:10}]},2878:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{character:"ا",count:12,score:1},{character:"ب",count:4,score:1},{character:"پ",count:1,score:6},{character:"ت",count:4,score:1},{character:"ث",count:1,score:10},{character:"ج",count:2,score:5},{character:"چ",count:1,score:6},{character:"ح",count:1,score:6},{character:"خ",count:2,score:5},{character:"د",count:6,score:1},{character:"ذ",count:1,score:10},{character:"ر",count:7,score:1},{character:"ز",count:3,score:4},{character:"ژ",count:1,score:10},{character:"س",count:3,score:2},{character:"ش",count:3,score:3},{character:"ص",count:1,score:6},{character:"ض",count:1,score:8},{character:"ط",count:1,score:8},{character:"ظ",count:1,score:10},{character:"ع",count:2,score:5},{character:"غ",count:1,score:8},{character:"ف",count:2,score:4},{character:"ق",count:2,score:5},{character:"ک",count:3,score:3},{character:"گ",count:2,score:4},{character:"ل",count:3,score:2},{character:"م",count:5,score:1},{character:"ن",count:6,score:1},{character:"و",count:5,score:1},{character:"ه",count:5,score:1},{character:"ی",count:8,score:1}]},2866:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{character:"a",count:9,score:1},{character:"b",count:2,score:3},{character:"c",count:2,score:3},{character:"d",count:3,score:2},{character:"e",count:15,score:1},{character:"f",count:2,score:4},{character:"g",count:2,score:2},{character:"h",count:2,score:4},{character:"i",count:8,score:1},{character:"j",count:1,score:8},{character:"k",count:1,score:10},{character:"l",count:5,score:1},{character:"m",count:3,score:2},{character:"n",count:6,score:1},{character:"o",count:6,score:1},{character:"p",count:2,score:3},{character:"q",count:1,score:8},{character:"r",count:6,score:1},{character:"s",count:6,score:1},{character:"t",count:6,score:1},{character:"u",count:6,score:1},{character:"v",count:2,score:4},{character:"w",count:1,score:10},{character:"x",count:1,score:10},{character:"y",count:1,score:10},{character:"z",count:1,score:10}]},5667:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{character:"a",count:9,score:1},{character:"ą",count:1,score:5},{character:"b",count:2,score:3},{character:"c",count:3,score:2},{character:"ć",count:1,score:6},{character:"d",count:3,score:2},{character:"e",count:7,score:1},{character:"ę",count:1,score:5},{character:"f",count:1,score:5},{character:"g",count:2,score:3},{character:"h",count:2,score:3},{character:"i",count:8,score:1},{character:"j",count:2,score:3},{character:"k",count:3,score:2},{character:"l",count:3,score:2},{character:"ł",count:2,score:3},{character:"m",count:3,score:2},{character:"n",count:5,score:1},{character:"ń",count:1,score:7},{character:"o",count:6,score:1},{character:"\xf3",count:1,score:5},{character:"p",count:3,score:2},{character:"r",count:4,score:1},{character:"s",count:4,score:1},{character:"ś",count:1,score:5},{character:"t",count:3,score:2},{character:"u",count:2,score:3},{character:"w",count:4,score:1},{character:"y",count:4,score:2},{character:"z",count:5,score:1},{character:"ź",count:1,score:9},{character:"ż",count:1,score:5}]},7618:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VOWELS=t.CONSONANTS=t.NO_BONUS=t.EMPTY_CELL=t.BONUS_WORD=t.BONUS_CHARACTER=t.BLANK=t.COMMA_LATIN=t.COMMA_ARABIC=void 0,t.COMMA_ARABIC="،",t.COMMA_LATIN=",",t.BLANK=" ",t.BONUS_CHARACTER="BONUS_CHARACTER",t.BONUS_WORD="BONUS_WORD",t.EMPTY_CELL=" ",t.NO_BONUS={characterMultiplier:1,wordMultiplier:1},t.CONSONANTS="bcćdfghjklłmnń\xf1pqrsśtvwxzźż".split(""),t.VOWELS="aą\xe4eęio\xf3\xf6u\xfcy".split("")},4184:function(e,t){var r;/*!
|
|
2
|
-
Copyright (c) 2018 Jed Watson.
|
|
3
|
-
Licensed under the MIT License (MIT), see
|
|
4
|
-
http://jedwatson.github.io/classnames
|
|
5
|
-
*/!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var a=typeof r;if("string"===a||"number"===a)e.push(r);else if(Array.isArray(r)){if(r.length){var i=o.apply(null,r);i&&e.push(i)}}else if("object"===a){if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]")){e.push(r.toString());continue}for(var l in r)n.call(r,l)&&r[l]&&e.push(l)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0!==(r=(function(){return o}).apply(t,[]))&&(e.exports=r)}()},8875:function(e,t,r){var n,o,a;a={canUseDOM:o=!!("undefined"!=typeof window&&window.document&&window.document.createElement),canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:o&&!!(window.addEventListener||window.attachEvent),canUseViewport:o&&!!window.screen},void 0!==(n=(function(){return a}).call(t,r,t,e))&&(e.exports=n)},8679:function(e,t,r){"use strict";var n=r(9864),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function c(e){return n.isMemo(e)?i:l[e.$$typeof]||o}l[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[n.Memo]=i;var s=Object.defineProperty,u=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(h){var o=p(r);o&&o!==h&&e(t,o,n)}var i=u(r);f&&(i=i.concat(f(r)));for(var l=c(t),m=c(r),y=0;y<i.length;++y){var v=i[y];if(!a[v]&&!(n&&n[v])&&!(m&&m[v])&&!(l&&l[v])){var g=d(r,v);try{s(t,v,g)}catch(e){}}}}return t}},8311:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});let o=n(r(6760)),a=n(r(3991)),i=(e,t)=>("string"==typeof t?[t]:t).map(t=>(0,a.default)(e,t)).map(t=>(0,o.default)(e,t)).join(" and ");t.default=i},6760:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(6027),o=(e,t)=>{if((0,n.isRawQuery)(t))return t;let{operator:r,size:o}=t,a=e[o];if("<"===r)return`(max-width: ${a-1}px)`;if("<="===r)return`(max-width: ${a}px)`;if(">="===r||"≥"===r)return`(min-width: ${a}px)`;if(">"===r||"≤"===r)return`(min-width: ${a+1}px)`;throw Error("Unknown operator")};t.default=o},1050:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OPERATORS=void 0,t.OPERATORS=["<","<=",">=",">","≤","≥"]},3814:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.parseQuery=t.isSize=t.isOperator=t.buildParsedQuery=t.buildMediaQuery=void 0;var i=r(8311);Object.defineProperty(t,"buildMediaQuery",{enumerable:!0,get:function(){return a(i).default}});var l=r(6760);Object.defineProperty(t,"buildParsedQuery",{enumerable:!0,get:function(){return a(l).default}}),o(r(1050),t);var c=r(4496);Object.defineProperty(t,"isOperator",{enumerable:!0,get:function(){return a(c).default}});var s=r(3570);Object.defineProperty(t,"isSize",{enumerable:!0,get:function(){return a(s).default}});var u=r(3570);Object.defineProperty(t,"parseQuery",{enumerable:!0,get:function(){return a(u).default}}),o(r(6027),t)},4496:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(1050),o=e=>"string"==typeof e&&n.OPERATORS.includes(e);t.default=o},3570:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let r=(e,t)=>"string"==typeof t&&Object.keys(e).includes(t);t.default=r},3991:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});let o=n(r(4496)),a=n(r(3570)),i=(e,t)=>{let r=t.match(/^([<>]=?)(\w+)$/);if(!r)return t;let[,n,i]=r;return(0,o.default)(n)&&(0,a.default)(e,i)?{operator:n,size:i}:t};t.default=i},6027:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isRawQuery=void 0,t.isRawQuery=e=>"string"==typeof e},6840:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return r(9212)}])},3740:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(6495).Z,o=r(2648).Z,a=r(1598).Z,i=r(7273).Z,l=a(r(7294)),c=o(r(2636)),s=r(7757),u=r(3735),f=r(3341);r(4210);var d=o(r(7746));let p={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1};function h(e){return void 0!==e.default}function m(e){return"number"==typeof e||void 0===e?e:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function y(e,t,r,o,a,i,l){if(!e||e["data-loaded-src"]===t)return;e["data-loaded-src"]=t;let c="decode"in e?e.decode():Promise.resolve();c.catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("blur"===r&&i(!0),null==o?void 0:o.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let r=!1,a=!1;o.current(n({},t,{nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>r,isPropagationStopped:()=>a,persist:()=>{},preventDefault:()=>{r=!0,t.preventDefault()},stopPropagation:()=>{a=!0,t.stopPropagation()}}))}(null==a?void 0:a.current)&&a.current(e)}})}let v=l.forwardRef((e,t)=>{var{imgAttributes:r,heightInt:o,widthInt:a,qualityInt:c,className:s,imgStyle:u,blurStyle:f,isLazy:d,fill:p,placeholder:h,loading:m,srcString:v,config:g,unoptimized:b,loader:_,onLoadRef:w,onLoadingCompleteRef:x,setBlurComplete:O,setShowAltText:C,onLoad:E,onError:S}=e,j=i(e,["imgAttributes","heightInt","widthInt","qualityInt","className","imgStyle","blurStyle","isLazy","fill","placeholder","loading","srcString","config","unoptimized","loader","onLoadRef","onLoadingCompleteRef","setBlurComplete","setShowAltText","onLoad","onError"]);return m=d?"lazy":m,l.default.createElement(l.default.Fragment,null,l.default.createElement("img",Object.assign({},j,{loading:m,width:a,height:o,decoding:"async","data-nimg":p?"fill":"1",className:s,style:n({},u,f)},r,{ref:l.useCallback(e=>{t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e&&(S&&(e.src=e.src),e.complete&&y(e,v,h,w,x,O,b))},[v,h,w,x,O,S,b,t]),onLoad:e=>{let t=e.currentTarget;y(t,v,h,w,x,O,b)},onError:e=>{C(!0),"blur"===h&&O(!0),S&&S(e)}})))}),g=l.forwardRef((e,t)=>{let r,o;var a,{src:y,sizes:g,unoptimized:b=!1,priority:_=!1,loading:w,className:x,quality:O,width:C,height:E,fill:S,style:j,onLoad:k,onLoadingComplete:R,placeholder:M="empty",blurDataURL:N,layout:A,objectFit:T,objectPosition:P,lazyBoundary:L,lazyRoot:B}=e,I=i(e,["src","sizes","unoptimized","priority","loading","className","quality","width","height","fill","style","onLoad","onLoadingComplete","placeholder","blurDataURL","layout","objectFit","objectPosition","lazyBoundary","lazyRoot"]);let D=l.useContext(f.ImageConfigContext),U=l.useMemo(()=>{let e=p||D||u.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),r=e.deviceSizes.sort((e,t)=>e-t);return n({},e,{allSizes:t,deviceSizes:r})},[D]),z=I,W=z.loader||d.default;delete z.loader;let F="__next_img_default"in W;if(F){if("custom"===U.loader)throw Error('Image with src "'.concat(y,'" is missing "loader" prop.')+"\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader")}else{let e=W;W=t=>{let{config:r}=t,n=i(t,["config"]);return e(n)}}if(A){"fill"===A&&(S=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[A];e&&(j=n({},j,e));let t={responsive:"100vw",fill:"100vw"}[A];t&&!g&&(g=t)}let H="",V=m(C),q=m(E);if("object"==typeof(a=y)&&(h(a)||void 0!==a.src)){let e=h(y)?y.default:y;if(!e.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received ".concat(JSON.stringify(e)));if(!e.height||!e.width)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received ".concat(JSON.stringify(e)));if(r=e.blurWidth,o=e.blurHeight,N=N||e.blurDataURL,H=e.src,!S){if(V||q){if(V&&!q){let t=V/e.width;q=Math.round(e.height*t)}else if(!V&&q){let t=q/e.height;V=Math.round(e.width*t)}}else V=e.width,q=e.height}}let K=!_&&("lazy"===w||void 0===w);((y="string"==typeof y?y:H).startsWith("data:")||y.startsWith("blob:"))&&(b=!0,K=!1),U.unoptimized&&(b=!0),F&&y.endsWith(".svg")&&!U.dangerouslyAllowSVG&&(b=!0);let[J,G]=l.useState(!1),[$,Y]=l.useState(!1),Z=m(O),X=Object.assign(S?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:T,objectPosition:P}:{},$?{}:{color:"transparent"},j),Q="blur"===M&&N&&!J?{backgroundSize:X.objectFit||"cover",backgroundPosition:X.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:'url("data:image/svg+xml;charset=utf-8,'.concat(s.getImageBlurSvg({widthInt:V,heightInt:q,blurWidth:r,blurHeight:o,blurDataURL:N,objectFit:X.objectFit}),'")')}:{},ee=function(e){let{config:t,src:r,unoptimized:n,width:o,quality:a,sizes:i,loader:l}=e;if(n)return{src:r,srcSet:void 0,sizes:void 0};let{widths:c,kind:s}=function(e,t,r){let{deviceSizes:n,allSizes:o}=e;if(r){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let n;n=e.exec(r);n)t.push(parseInt(n[2]));if(t.length){let e=.01*Math.min(...t);return{widths:o.filter(t=>t>=n[0]*e),kind:"w"}}return{widths:o,kind:"w"}}if("number"!=typeof t)return{widths:n,kind:"w"};let a=[...new Set([t,2*t].map(e=>o.find(t=>t>=e)||o[o.length-1]))];return{widths:a,kind:"x"}}(t,o,i),u=c.length-1;return{sizes:i||"w"!==s?i:"100vw",srcSet:c.map((e,n)=>"".concat(l({config:t,src:r,quality:a,width:e})," ").concat("w"===s?e:n+1).concat(s)).join(", "),src:l({config:t,src:r,quality:a,width:c[u]})}}({config:U,src:y,unoptimized:b,width:V,quality:Z,sizes:g,loader:W}),et=y,er={imageSrcSet:ee.srcSet,imageSizes:ee.sizes,crossOrigin:z.crossOrigin},en=l.useRef(k);l.useEffect(()=>{en.current=k},[k]);let eo=l.useRef(R);l.useEffect(()=>{eo.current=R},[R]);let ea=n({isLazy:K,imgAttributes:ee,heightInt:q,widthInt:V,qualityInt:Z,className:x,imgStyle:X,blurStyle:Q,loading:w,config:U,fill:S,unoptimized:b,placeholder:M,loader:W,srcString:et,onLoadRef:en,onLoadingCompleteRef:eo,setBlurComplete:G,setShowAltText:Y},z);return l.default.createElement(l.default.Fragment,null,l.default.createElement(v,Object.assign({},ea,{ref:t})),_?l.default.createElement(c.default,null,l.default.createElement("link",Object.assign({key:"__nimg-"+ee.src+ee.srcSet+ee.sizes,rel:"preload",as:"image",href:ee.srcSet?void 0:ee.src},er))):null)});t.default=g,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7757:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getImageBlurSvg=function(e){let{widthInt:t,heightInt:r,blurWidth:n,blurHeight:o,blurDataURL:a,objectFit:i}=e,l=n||t,c=o||r,s=a.startsWith("data:image/jpeg")?"%3CfeComponentTransfer%3E%3CfeFuncA type='discrete' tableValues='1 1'/%3E%3C/feComponentTransfer%3E%":"";return l&&c?"%3Csvg xmlns='http%3A//www.w3.org/2000/svg' viewBox='0 0 ".concat(l," ").concat(c,"'%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='").concat(n&&o?"1":"20","'/%3E").concat(s,"%3C/filter%3E%3Cimage preserveAspectRatio='none' filter='url(%23b)' x='0' y='0' height='100%25' width='100%25' href='").concat(a,"'/%3E%3C/svg%3E"):"%3Csvg xmlns='http%3A//www.w3.org/2000/svg'%3E%3Cimage style='filter:blur(20px)' preserveAspectRatio='".concat("contain"===i?"xMidYMid":"cover"===i?"xMidYMid slice":"none","' x='0' y='0' height='100%25' width='100%25' href='").concat(a,"'/%3E%3C/svg%3E")}},7746:function(e,t){"use strict";function r(e){let{config:t,src:r,width:n,quality:o}=e;return"".concat(t.path,"?url=").concat(encodeURIComponent(r),"&w=").concat(n,"&q=").concat(o||75)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r.__next_img_default=!0,t.default=r},8700:function(e,t,r){"use strict";let n,o;r.d(t,{Ct:function(){return j},zx:function(){return tL},Xy:function(){return rk},Z$:function(){return rA},sr:function(){return rW},TR:function(){return rq},u_:function(){return r0},_m:function(){return r6},TX:function(){return r9},Ex:function(){return no},Y8:function(){return ng},u9:function(){return n0},QR:function(){return n5},ME:function(){return oi},n9:function(){return tJ}});var a,i,l,c,s,u,f,d,p,h,m,y=r(5893),v=r(4184),g=r.n(v),b=r(3186),_=r(8250),w=r.n(_);let x={error:b.Gw,info:b.UT,success:b.Jr,warning:b.x_},O=e=>{let{children:t,className:r,variant:n,...o}=e,a=x[n];return(0,y.jsxs)("div",{className:g()(w().alert,r,{[w().error]:"error"===n,[w().info]:"info"===n,[w().success]:"success"===n,[w().warning]:"warning"===n}),...o,children:[(0,y.jsx)("div",{className:w().iconContainer,children:(0,y.jsx)(a,{className:w().icon})}),(0,y.jsx)("div",{className:w().content,children:t})]})};var C=r(5793),E=r.n(C);let S=e=>{let{children:t,className:r}=e;return(0,y.jsx)("div",{className:g()(E().badge,r),children:t})};var j=S;function k(e){return e.split("-")[1]}function R(e){return"y"===e?"height":"width"}function M(e){return e.split("-")[0]}function N(e){return["top","bottom"].includes(M(e))?"x":"y"}function A(e,t,r){let n,{reference:o,floating:a}=e,i=o.x+o.width/2-a.width/2,l=o.y+o.height/2-a.height/2,c=N(t),s=R(c),u=o[s]/2-a[s]/2,f="x"===c;switch(M(t)){case"top":n={x:i,y:o.y-a.height};break;case"bottom":n={x:i,y:o.y+o.height};break;case"right":n={x:o.x+o.width,y:l};break;case"left":n={x:o.x-a.width,y:l};break;default:n={x:o.x,y:o.y}}switch(k(t)){case"start":n[c]-=u*(r&&f?-1:1);break;case"end":n[c]+=u*(r&&f?-1:1)}return n}let T=async(e,t,r)=>{let{placement:n="bottom",strategy:o="absolute",middleware:a=[],platform:i}=r,l=a.filter(Boolean),c=await (null==i.isRTL?void 0:i.isRTL(t)),s=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:f}=A(s,n,c),d=n,p={},h=0;for(let r=0;r<l.length;r++){let{name:a,fn:m}=l[r],{x:y,y:v,data:g,reset:b}=await m({x:u,y:f,initialPlacement:n,placement:d,strategy:o,middlewareData:p,rects:s,platform:i,elements:{reference:e,floating:t}});u=null!=y?y:u,f=null!=v?v:f,p={...p,[a]:{...p[a],...g}},b&&h<=50&&(h++,"object"==typeof b&&(b.placement&&(d=b.placement),b.rects&&(s=!0===b.rects?await i.getElementRects({reference:e,floating:t,strategy:o}):b.rects),{x:u,y:f}=A(s,d,c)),r=-1)}return{x:u,y:f,placement:d,strategy:o,middlewareData:p}};function P(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function L(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function B(e,t){var r;void 0===t&&(t={});let{x:n,y:o,platform:a,rects:i,elements:l,strategy:c}=e,{boundary:s="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=t,h=P(p),m=l[d?"floating"===f?"reference":"floating":f],y=L(await a.getClippingRect({element:null==(r=await (null==a.isElement?void 0:a.isElement(m)))||r?m:m.contextElement||await (null==a.getDocumentElement?void 0:a.getDocumentElement(l.floating)),boundary:s,rootBoundary:u,strategy:c})),v="floating"===f?{...i.floating,x:n,y:o}:i.reference,g=await (null==a.getOffsetParent?void 0:a.getOffsetParent(l.floating)),b=await (null==a.isElement?void 0:a.isElement(g))&&await (null==a.getScale?void 0:a.getScale(g))||{x:1,y:1},_=L(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:v,offsetParent:g,strategy:c}):v);return{top:(y.top-_.top+h.top)/b.y,bottom:(_.bottom-y.bottom+h.bottom)/b.y,left:(y.left-_.left+h.left)/b.x,right:(_.right-y.right+h.right)/b.x}}let I=Math.min,D=Math.max,U=e=>({name:"arrow",options:e,async fn(t){let{element:r,padding:n=0}=e||{},{x:o,y:a,placement:i,rects:l,platform:c,elements:s}=t;if(null==r)return{};let u=P(n),f={x:o,y:a},d=N(i),p=R(d),h=await c.getDimensions(r),m="y"===d,y=m?"top":"left",v=m?"bottom":"right",g=m?"clientHeight":"clientWidth",b=l.reference[p]+l.reference[d]-f[d]-l.floating[p],_=f[d]-l.reference[d],w=await (null==c.getOffsetParent?void 0:c.getOffsetParent(r)),x=w?w[g]:0;x&&await (null==c.isElement?void 0:c.isElement(w))||(x=s.floating[g]||l.floating[p]);let O=u[y],C=x-h[p]-u[v],E=x/2-h[p]/2+(b/2-_/2),S=D(O,I(E,C)),j=null!=k(i)&&E!=S&&l.reference[p]/2-(E<O?u[y]:u[v])-h[p]/2<0;return{[d]:f[d]-(j?E<O?O-E:C-E:0),data:{[d]:S,centerOffset:E-S}}}}),z=(["top","right","bottom","left"].reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]),{left:"right",right:"left",bottom:"top",top:"bottom"});function W(e){return e.replace(/left|right|bottom|top/g,e=>z[e])}let F={start:"end",end:"start"};function H(e){return e.replace(/start|end/g,e=>F[e])}let V=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){let{x:r,y:n}=t,o=await async function(e,t){let{placement:r,platform:n,elements:o}=e,a=await (null==n.isRTL?void 0:n.isRTL(o.floating)),i=M(r),l=k(r),c="x"===N(r),s=["left","top"].includes(i)?-1:1,u=a&&c?-1:1,f="function"==typeof t?t(e):t,{mainAxis:d,crossAxis:p,alignmentAxis:h}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return l&&"number"==typeof h&&(p="end"===l?-1*h:h),c?{x:p*u,y:d*s}:{x:d*s,y:p*u}}(t,e);return{x:r+o.x,y:n+o.y,data:o}}}},q=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:n,placement:o}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:l={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...c}=e,s={x:r,y:n},u=await B(t,c),f=N(M(o)),d="x"===f?"y":"x",p=s[f],h=s[d];a&&(p=D(p+u["y"===f?"top":"left"],I(p,p-u["y"===f?"bottom":"right"]))),i&&(h=D(h+u["y"===d?"top":"left"],I(h,h-u["y"===d?"bottom":"right"])));let m=l.fn({...t,[f]:p,[d]:h});return{...m,data:{x:m.x-r,y:m.y-n}}}}};function K(e){var t;return(null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function J(e){return K(e).getComputedStyle(e)}function G(e){return e instanceof K(e).Node}function $(e){return G(e)?(e.nodeName||"").toLowerCase():""}function Y(){if(n)return n;let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?n=e.brands.map(e=>e.brand+"/"+e.version).join(" "):navigator.userAgent}function Z(e){return e instanceof K(e).HTMLElement}function X(e){return e instanceof K(e).Element}function Q(e){return"undefined"!=typeof ShadowRoot&&(e instanceof K(e).ShadowRoot||e instanceof ShadowRoot)}function ee(e){let{overflow:t,overflowX:r,overflowY:n,display:o}=J(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(o)}function et(e){let t=/firefox/i.test(Y()),r=J(e),n=r.backdropFilter||r.WebkitBackdropFilter;return"none"!==r.transform||"none"!==r.perspective||!!n&&"none"!==n||t&&"filter"===r.willChange||t&&!!r.filter&&"none"!==r.filter||["transform","perspective"].some(e=>r.willChange.includes(e))||["paint","layout","strict","content"].some(e=>{let t=r.contain;return null!=t&&t.includes(e)})}function er(){return/^((?!chrome|android).)*safari/i.test(Y())}function en(e){return["html","body","#document"].includes($(e))}let eo=Math.min,ea=Math.max,ei=Math.round;function el(e){let t=J(e),r=parseFloat(t.width),n=parseFloat(t.height),o=Z(e),a=o?e.offsetWidth:r,i=o?e.offsetHeight:n,l=ei(r)!==a||ei(n)!==i;return l&&(r=a,n=i),{width:r,height:n,fallback:l}}function ec(e){return X(e)?e:e.contextElement}let es={x:1,y:1};function eu(e){let t=ec(e);if(!Z(t))return es;let r=t.getBoundingClientRect(),{width:n,height:o,fallback:a}=el(t),i=(a?ei(r.width):r.width)/n,l=(a?ei(r.height):r.height)/o;return i&&Number.isFinite(i)||(i=1),l&&Number.isFinite(l)||(l=1),{x:i,y:l}}function ef(e,t,r,n){var o,a;void 0===t&&(t=!1),void 0===r&&(r=!1);let i=e.getBoundingClientRect(),l=ec(e),c=es;t&&(n?X(n)&&(c=eu(n)):c=eu(e));let s=l?K(l):window,u=er()&&r,f=(i.left+(u&&(null==(o=s.visualViewport)?void 0:o.offsetLeft)||0))/c.x,d=(i.top+(u&&(null==(a=s.visualViewport)?void 0:a.offsetTop)||0))/c.y,p=i.width/c.x,h=i.height/c.y;if(l){let e=K(l),t=n&&X(n)?K(n):n,r=e.frameElement;for(;r&&n&&t!==e;){let e=eu(r),t=r.getBoundingClientRect(),n=getComputedStyle(r);t.x+=(r.clientLeft+parseFloat(n.paddingLeft))*e.x,t.y+=(r.clientTop+parseFloat(n.paddingTop))*e.y,f*=e.x,d*=e.y,p*=e.x,h*=e.y,f+=t.x,d+=t.y,r=K(r).frameElement}}return L({width:p,height:h,x:f,y:d})}function ed(e){return((G(e)?e.ownerDocument:e.document)||window.document).documentElement}function ep(e){return X(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function eh(e){return ef(ed(e)).left+ep(e).scrollLeft}function em(e){if("html"===$(e))return e;let t=e.assignedSlot||e.parentNode||Q(e)&&e.host||ed(e);return Q(t)?t.host:t}function ey(e,t){var r;void 0===t&&(t=[]);let n=function e(t){let r=em(t);return en(r)?r.ownerDocument.body:Z(r)&&ee(r)?r:e(r)}(e),o=n===(null==(r=e.ownerDocument)?void 0:r.body),a=K(n);return o?t.concat(a,a.visualViewport||[],ee(n)?n:[]):t.concat(n,ey(n))}function ev(e,t,r){let n;if("viewport"===t)n=function(e,t){let r=K(e),n=ed(e),o=r.visualViewport,a=n.clientWidth,i=n.clientHeight,l=0,c=0;if(o){a=o.width,i=o.height;let e=er();(!e||e&&"fixed"===t)&&(l=o.offsetLeft,c=o.offsetTop)}return{width:a,height:i,x:l,y:c}}(e,r);else if("document"===t)n=function(e){let t=ed(e),r=ep(e),n=e.ownerDocument.body,o=ea(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),a=ea(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight),i=-r.scrollLeft+eh(e),l=-r.scrollTop;return"rtl"===J(n).direction&&(i+=ea(t.clientWidth,n.clientWidth)-o),{width:o,height:a,x:i,y:l}}(ed(e));else if(X(t))n=function(e,t){let r=ef(e,!0,"fixed"===t),n=r.top+e.clientTop,o=r.left+e.clientLeft,a=Z(e)?eu(e):{x:1,y:1};return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:o*a.x,y:n*a.y}}(t,r);else{let r={...t};if(er()){var o,a;let t=K(e);r.x-=(null==(o=t.visualViewport)?void 0:o.offsetLeft)||0,r.y-=(null==(a=t.visualViewport)?void 0:a.offsetTop)||0}n=r}return L(n)}function eg(e,t){return Z(e)&&"fixed"!==J(e).position?t?t(e):e.offsetParent:null}function eb(e,t){let r=K(e);if(!Z(e))return r;let n=eg(e,t);for(;n&&["table","td","th"].includes($(n))&&"static"===J(n).position;)n=eg(n,t);return n&&("html"===$(n)||"body"===$(n)&&"static"===J(n).position&&!et(n))?r:n||function(e){let t=em(e);for(;Z(t)&&!en(t);){if(et(t))return t;t=em(t)}return null}(e)||r}let e_={getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e,a="clippingAncestors"===r?function(e,t){let r=t.get(e);if(r)return r;let n=ey(e).filter(e=>X(e)&&"body"!==$(e)),o=null,a="fixed"===J(e).position,i=a?em(e):e;for(;X(i)&&!en(i);){let e=J(i),t=et(i);"fixed"===e.position?o=null:(a?t||o:t||"static"!==e.position||!o||!["absolute","fixed"].includes(o.position))?o=e:n=n.filter(e=>e!==i),i=em(i)}return t.set(e,n),n}(t,this._c):[].concat(r),i=[...a,n],l=i[0],c=i.reduce((e,r)=>{let n=ev(t,r,o);return e.top=ea(n.top,e.top),e.right=eo(n.right,e.right),e.bottom=eo(n.bottom,e.bottom),e.left=ea(n.left,e.left),e},ev(t,l,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:r,strategy:n}=e,o=Z(r),a=ed(r);if(r===a)return t;let i={scrollLeft:0,scrollTop:0},l={x:1,y:1},c={x:0,y:0};if((o||!o&&"fixed"!==n)&&(("body"!==$(r)||ee(a))&&(i=ep(r)),Z(r))){let e=ef(r);l=eu(r),c.x=e.x+r.clientLeft,c.y=e.y+r.clientTop}return{width:t.width*l.x,height:t.height*l.y,x:t.x*l.x-i.scrollLeft*l.x+c.x,y:t.y*l.y-i.scrollTop*l.y+c.y}},isElement:X,getDimensions:function(e){return el(e)},getOffsetParent:eb,getDocumentElement:ed,getScale:eu,async getElementRects(e){let{reference:t,floating:r,strategy:n}=e,o=this.getOffsetParent||eb,a=this.getDimensions;return{reference:function(e,t,r){let n=Z(t),o=ed(t),a=ef(e,!0,"fixed"===r,t),i={scrollLeft:0,scrollTop:0},l={x:0,y:0};if(n||!n&&"fixed"!==r){if(("body"!==$(t)||ee(o))&&(i=ep(t)),Z(t)){let e=ef(t,!0);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&(l.x=eh(o))}return{x:a.left+i.scrollLeft-l.x,y:a.top+i.scrollTop-l.y,width:a.width,height:a.height}}(t,await o(r),n),floating:{x:0,y:0,...await a(r)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===J(e).direction};function ew(e,t,r,n){void 0===n&&(n={});let{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i=!0,animationFrame:l=!1}=n,c=o&&!l,s=c||a?[...X(e)?ey(e):e.contextElement?ey(e.contextElement):[],...ey(t)]:[];s.forEach(e=>{c&&e.addEventListener("scroll",r,{passive:!0}),a&&e.addEventListener("resize",r)});let u,f=null;i&&(f=new ResizeObserver(()=>{r()}),X(e)&&!l&&f.observe(e),X(e)||!e.contextElement||l||f.observe(e.contextElement),f.observe(t));let d=l?ef(e):null;return l&&function t(){let n=ef(e);d&&(n.x!==d.x||n.y!==d.y||n.width!==d.width||n.height!==d.height)&&r(),d=n,u=requestAnimationFrame(t)}(),r(),()=>{var e;s.forEach(e=>{c&&e.removeEventListener("scroll",r),a&&e.removeEventListener("resize",r)}),null==(e=f)||e.disconnect(),f=null,l&&cancelAnimationFrame(u)}}let ex=(e,t,r)=>{let n=new Map,o={platform:e_,...r},a={...o.platform,_c:n};return T(e,t,{...o,platform:a})};var eO=r(7294),eC=r.t(eO,2),eE=r(3935);let eS=e=>{let{element:t,padding:r}=e;return{name:"arrow",options:e,fn(e){if(Object.prototype.hasOwnProperty.call(t,"current")){if(null!=t.current)return U({element:t.current,padding:r}).fn(e)}else if(t)return U({element:t,padding:r}).fn(e);return{}}}};var ej="undefined"!=typeof document?eO.useLayoutEffect:eO.useEffect;function ek(e,t){let r,n,o;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((r=e.length)!=t.length)return!1;for(n=r;0!=n--;)if(!ek(e[n],t[n]))return!1;return!0}if((r=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(n=r;0!=n--;)if(!Object.prototype.hasOwnProperty.call(t,o[n]))return!1;for(n=r;0!=n--;){let r=o[n];if(("_owner"!==r||!e.$$typeof)&&!ek(e[r],t[r]))return!1}return!0}return e!=e&&t!=t}function eR(e){let t=eO.useRef(e);return ej(()=>{t.current=e}),t}var eM='input:not([inert]),select:not([inert]),textarea:not([inert]),a[href]:not([inert]),button:not([inert]),[tabindex]:not(slot):not([inert]),audio[controls]:not([inert]),video[controls]:not([inert]),[contenteditable]:not([contenteditable="false"]):not([inert]),details>summary:first-of-type:not([inert]),details:not([inert])',eN="undefined"==typeof Element,eA=eN?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,eT=!eN&&Element.prototype.getRootNode?function(e){var t;return null==e?void 0:null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},eP=function e(t,r){void 0===r&&(r=!0);var n,o=null==t?void 0:null===(n=t.getAttribute)||void 0===n?void 0:n.call(t,"inert");return""===o||"true"===o||r&&t&&e(t.parentNode)},eL=function(e){var t,r=null==e?void 0:null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===r||"true"===r},eB=function(e,t,r){if(eP(e))return[];var n=Array.prototype.slice.apply(e.querySelectorAll(eM));return t&&eA.call(e,eM)&&n.unshift(e),n=n.filter(r)},eI=function e(t,r,n){for(var o=[],a=Array.from(t);a.length;){var i=a.shift();if(!eP(i,!1)){if("SLOT"===i.tagName){var l=i.assignedElements(),c=e(l.length?l:i.children,!0,n);n.flatten?o.push.apply(o,c):o.push({scopeParent:i,candidates:c})}else{eA.call(i,eM)&&n.filter(i)&&(r||!t.includes(i))&&o.push(i);var s=i.shadowRoot||"function"==typeof n.getShadowRoot&&n.getShadowRoot(i),u=!eP(s,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(i));if(s&&u){var f=e(!0===s?i.children:s.children,!0,n);n.flatten?o.push.apply(o,f):o.push({scopeParent:i,candidates:f})}else a.unshift.apply(a,i.children)}}}return o},eD=function(e,t){return e.tabIndex<0&&(t||/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||eL(e))&&isNaN(parseInt(e.getAttribute("tabindex"),10))?0:e.tabIndex},eU=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},ez=function(e){return"INPUT"===e.tagName},eW=function(e,t){for(var r=0;r<e.length;r++)if(e[r].checked&&e[r].form===t)return e[r]},eF=function(e){if(!e.name)return!0;var t,r=e.form||eT(e),n=function(e){return r.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=n(window.CSS.escape(e.name));else try{t=n(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var o=eW(t,e.form);return!o||o===e},eH=function(e){var t,r,n,o,a,i,l,c=e&&eT(e),s=null===(t=c)||void 0===t?void 0:t.host,u=!1;if(c&&c!==e)for(u=!!(null!==(r=s)&&void 0!==r&&null!==(n=r.ownerDocument)&&void 0!==n&&n.contains(s)||null!=e&&null!==(o=e.ownerDocument)&&void 0!==o&&o.contains(e));!u&&s;)u=!!(null!==(i=s=null===(a=c=eT(s))||void 0===a?void 0:a.host)&&void 0!==i&&null!==(l=i.ownerDocument)&&void 0!==l&&l.contains(s));return u},eV=function(e){var t=e.getBoundingClientRect(),r=t.width,n=t.height;return 0===r&&0===n},eq=function(e,t){var r=t.displayCheck,n=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var o=eA.call(e,"details>summary:first-of-type")?e.parentElement:e;if(eA.call(o,"details:not([open]) *"))return!0;if(r&&"full"!==r&&"legacy-full"!==r){if("non-zero-area"===r)return eV(e)}else{if("function"==typeof n){for(var a=e;e;){var i=e.parentElement,l=eT(e);if(i&&!i.shadowRoot&&!0===n(i))return eV(e);e=e.assignedSlot?e.assignedSlot:i||l===e.ownerDocument?i:l.host}e=a}if(eH(e))return!e.getClientRects().length;if("legacy-full"!==r)return!0}return!1},eK=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var r=0;r<t.children.length;r++){var n=t.children.item(r);if("LEGEND"===n.tagName)return!!eA.call(t,"fieldset[disabled] *")||!n.contains(e)}return!0}t=t.parentElement}return!1},eJ=function(e,t){var r,n,o;return!(ez(r=t)&&"radio"===r.type&&!eF(r)||0>eD(t))&&(n=e,!((o=t).disabled||eP(o)||ez(o)&&"hidden"===o.type||eq(o,n)||"DETAILS"===o.tagName&&Array.prototype.slice.apply(o.children).some(function(e){return"SUMMARY"===e.tagName})||eK(o)))},eG=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!isNaN(t)||t>=0},e$=function e(t){var r=[],n=[];return t.forEach(function(t,o){var a=!!t.scopeParent,i=a?t.scopeParent:t,l=eD(i,a),c=a?e(t.candidates):i;0===l?a?r.push.apply(r,c):r.push(i):n.push({documentOrder:o,tabIndex:l,item:t,isScope:a,content:c})}),n.sort(eU).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(r)},eY=function(e,t){return e$((t=t||{}).getShadowRoot?eI([e],t.includeContainer,{filter:eJ.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:eG}):eB(e,t.includeContainer,eJ.bind(null,t)))};function eZ(){return(eZ=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var eX="undefined"!=typeof document?eO.useLayoutEffect:eO.useEffect;let eQ=!1,e0=0,e1=()=>"floating-ui-"+e0++,e2=eC["useId".toString()],e5=e2||function(){let[e,t]=eO.useState(()=>eQ?e1():void 0);return eX(()=>{null==e&&t(e1())},[]),eO.useEffect(()=>{eQ||(eQ=!0)},[]),e},e6=eO.forwardRef(function(e,t){var r;let{context:{placement:n,elements:{floating:o},middlewareData:{arrow:a}},width:i=14,height:l=7,tipRadius:c=0,strokeWidth:s=0,staticOffset:u,stroke:f,d,...p}=e;s*=2;let h=s/2,m=i/2*(-(c/8)+1),y=l/2*c/4,[v,g]=n.split("-"),b=!!o&&e_.isRTL(o),_=!!d,w=u&&"end"===g?"right":"left";u&&b&&(w="end"===g?"left":"right");let x=(null==a?void 0:a.x)!=null?u||a.x:"",O=(null==a?void 0:a.y)!=null?u||a.y+(_?0:h):"",C=d||"M0,0 H"+i+" L"+(i-m)+","+(l-y)+(" Q"+i/2+","+l+" ")+m+","+(l-y)+" Z",E=e5();return eO.createElement("svg",eZ({},p,{suppressHydrationWarning:!0,"aria-hidden":!0,ref:t,width:_?i:i+s,height:i,viewBox:"0 0 "+i+" "+(l>i?l:i),style:{...p.style,position:"absolute",pointerEvents:"none",[w]:x,[u&&"end"===g?"bottom":"top"]:O,[v]:"top"===v||"bottom"===v||_?"100%":"calc(100% - "+s/2+"px)",transform:""+({top:_?"rotate(180deg)":"",left:_?"rotate(90deg)":"rotate(-90deg)",bottom:_?"":"rotate(180deg)",right:_?"rotate(-90deg)":"rotate(90deg)"})[v]+(null!=(r=p.style)&&r.transform?" "+p.style.transform:"")}}),s>0&&eO.createElement("path",{clipPath:"url(#"+E+")",fill:"none",stroke:f,strokeWidth:s+(d?0:1),d:C}),eO.createElement("path",{stroke:s&&!d?p.fill:"none",d:C}),eO.createElement("clipPath",{id:E},eO.createElement("rect",{x:-h,y:h*(_?-1:1),width:i+s,height:i})))}),e3=eO.createContext(null),e4=()=>eO.useContext(e3);function e8(e){return(null==e?void 0:e.ownerDocument)||document}function e7(e){return e8(e).defaultView||window}function e9(e){return!!e&&e instanceof e7(e).Element}let te=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function tt(e,t){let r=eY(e,te());"prev"===t&&r.reverse();let n=r.indexOf(function(e){let t=e.activeElement;for(;(null==(r=t)?void 0:null==(n=r.shadowRoot)?void 0:n.activeElement)!=null;){var r,n;t=t.shadowRoot.activeElement}return t}(e8(e))),o=r.slice(n+1);return o[0]}function tr(e,t){let r=t||e.currentTarget,n=e.relatedTarget;return!n||!function(e,t){if(!e||!t)return!1;let r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&function(e){if("undefined"==typeof ShadowRoot)return!1;let t=e7(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}(r)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}(r,n)}function tn(e){let t=eY(e,te());t.forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")})}function to(e){let t=e.querySelectorAll("[data-tabindex]");t.forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")})}let ta={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};function ti(e){"Tab"===e.key&&(e.target,clearTimeout(o))}let tl=eO.forwardRef(function(e,t){let[r,n]=eO.useState();return eX(()=>(/apple/i.test(navigator.vendor)&&n("button"),document.addEventListener("keydown",ti),()=>{document.removeEventListener("keydown",ti)}),[]),eO.createElement("span",eZ({},e,{ref:t,tabIndex:0,role:r,"aria-hidden":!r||void 0,"data-floating-ui-focus-guard":"",style:ta}))}),tc=eO.createContext(null),ts=function(e){let{id:t,root:r}=void 0===e?{}:e,[n,o]=eO.useState(null),a=e5(),i=tf();return eX(()=>{let e=t?document.getElementById(t):null,n="data-floating-ui-portal";if(e){let t=document.createElement("div");return t.id=a,t.setAttribute(n,""),e.appendChild(t),o(t),()=>{t.remove()}}{let e=(null==i?void 0:i.portalNode)||r||document.body,l=null;t&&((l=document.createElement("div")).id=t,e.appendChild(l));let c=document.createElement("div");return c.id=a,c.setAttribute(n,""),o(c),(e=l||e).appendChild(c),()=>{var e;c.remove(),null==(e=l)||e.remove()}}},[t,r,i,a]),n},tu=e=>{let{children:t,id:r,root:n=null,preserveTabOrder:o=!0}=e,a=ts({id:r,root:n}),[i,l]=eO.useState(null),c=eO.useRef(null),s=eO.useRef(null),u=eO.useRef(null),f=eO.useRef(null),d=!!i&&!i.modal&&!!(n||a)&&o;return eO.useEffect(()=>{if(a&&o&&(null==i||!i.modal))return a.addEventListener("focusin",e,!0),a.addEventListener("focusout",e,!0),()=>{a.removeEventListener("focusin",e,!0),a.removeEventListener("focusout",e,!0)};function e(e){if(a&&tr(e)){let t="focusin"===e.type;(t?to:tn)(a)}}},[a,o,null==i?void 0:i.modal]),eO.createElement(tc.Provider,{value:eO.useMemo(()=>({preserveTabOrder:o,beforeOutsideRef:c,afterOutsideRef:s,beforeInsideRef:u,afterInsideRef:f,portalNode:a,setFocusManagerState:l}),[o,a])},d&&a&&eO.createElement(tl,{"data-type":"outside",ref:c,onFocus:e=>{if(tr(e,a)){var t;null==(t=u.current)||t.focus()}else{let e=tt(document.body,"prev")||(null==i?void 0:i.refs.domReference.current);null==e||e.focus()}}}),d&&a&&eO.createElement("span",{"aria-owns":a.id,style:ta}),a&&(0,eE.createPortal)(t,a),d&&a&&eO.createElement(tl,{"data-type":"outside",ref:s,onFocus:e=>{if(tr(e,a)){var t;null==(t=f.current)||t.focus()}else{let e=tt(document.body,"next")||(null==i?void 0:i.refs.domReference.current);null==e||e.focus(),(null==i?void 0:i.closeOnFocusOut)&&(null==i||i.onOpenChange(!1))}}}))},tf=()=>eO.useContext(tc),td=eC["useInsertionEffect".toString()],tp=td||(e=>e());function th(e){void 0===e&&(e={});let{open:t=!1,onOpenChange:r,nodeId:n}=e,o=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,whileElementsMounted:a,open:i}=e,[l,c]=eO.useState({x:null,y:null,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[s,u]=eO.useState(n);ek(s,n)||u(n);let f=eO.useRef(null),d=eO.useRef(null),p=eO.useRef(l),h=eR(a),m=eR(o),[y,v]=eO.useState(null),[g,b]=eO.useState(null),_=eO.useCallback(e=>{f.current!==e&&(f.current=e,v(e))},[]),w=eO.useCallback(e=>{d.current!==e&&(d.current=e,b(e))},[]),x=eO.useCallback(()=>{if(!f.current||!d.current)return;let e={placement:t,strategy:r,middleware:s};m.current&&(e.platform=m.current),ex(f.current,d.current,e).then(e=>{let t={...e,isPositioned:!0};O.current&&!ek(p.current,t)&&(p.current=t,eE.flushSync(()=>{c(t)}))})},[s,t,r,m]);ej(()=>{!1===i&&p.current.isPositioned&&(p.current.isPositioned=!1,c(e=>({...e,isPositioned:!1})))},[i]);let O=eO.useRef(!1);ej(()=>(O.current=!0,()=>{O.current=!1}),[]),ej(()=>{if(y&&g){if(h.current)return h.current(y,g,x);x()}},[y,g,x,h]);let C=eO.useMemo(()=>({reference:f,floating:d,setReference:_,setFloating:w}),[_,w]),E=eO.useMemo(()=>({reference:y,floating:g}),[y,g]);return eO.useMemo(()=>({...l,update:x,refs:C,elements:E,reference:_,floating:w}),[l,x,C,E,_,w])}(e),a=e4(),i=eO.useRef(null),l=eO.useRef({}),c=eO.useState(()=>(function(){let e=new Map;return{emit(t,r){var n;null==(n=e.get(t))||n.forEach(e=>e(r))},on(t,r){e.set(t,[...e.get(t)||[],r])},off(t,r){var n;e.set(t,(null==(n=e.get(t))?void 0:n.filter(e=>e!==r))||[])}}})())[0],s=e5(),[u,f]=eO.useState(null),d=eO.useCallback(e=>{let t=e9(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;o.refs.setReference(t)},[o.refs]),p=eO.useCallback(e=>{(e9(e)||null===e)&&(i.current=e,f(e)),(e9(o.refs.reference.current)||null===o.refs.reference.current||null!==e&&!e9(e))&&o.refs.setReference(e)},[o.refs]),h=eO.useMemo(()=>({...o.refs,setReference:p,setPositionReference:d,domReference:i}),[o.refs,p,d]),m=eO.useMemo(()=>({...o.elements,domReference:u}),[o.elements,u]),y=function(e){let t=eO.useRef(()=>{});return tp(()=>{t.current=e}),eO.useCallback(function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];return null==t.current?void 0:t.current(...r)},[])}(r),v=eO.useMemo(()=>({...o,refs:h,elements:m,dataRef:l,nodeId:n,floatingId:s,events:c,open:t,onOpenChange:y}),[o,n,s,c,t,y,h,m]);return eX(()=>{let e=null==a?void 0:a.nodesRef.current.find(e=>e.id===n);e&&(e.context=v)}),eO.useMemo(()=>({...o,context:v,refs:h,elements:m,reference:p,positionReference:d}),[o,h,m,v,p,d])}var tm=r(7618),ty=function(){if("undefined"==typeof window||"function"!=typeof window.addEventListener)return!1;var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}}),r=function(){return null};return window.addEventListener("test",r,t),window.removeEventListener("test",r,t),e},tv=function(e,t){var r;return null==(r=e.classList)?void 0:r.contains(t)},tg=function(e,t){for(var r=e.target||e;r;){if(Array.isArray(t)){if(t.some(function(e){return tv(r,e)}))return!0}else if(tv(r,t))return!0;r=r.parentElement}return!1},tb=function(e){return!!(e.includes("touch")&&ty())&&{passive:!0}},t_=function(e,t){var r=void 0===t?{}:t,n=r.refs,o=r.disabled,a=r.eventTypes,i=void 0===a?["mousedown","touchstart"]:a,l=r.excludeScrollbar,c=r.ignoreClass,s=void 0===c?"ignore-onclickoutside":c,u=r.detectIFrame,f=void 0===u||u,d=(0,eO.useState)([]),p=d[0],h=d[1],m=(0,eO.useRef)(e);m.current=e;var y=(0,eO.useCallback)(function(e){return h(function(t){return[].concat(t,[{current:e}])})},[]);return(0,eO.useEffect)(function(){if(null!=n&&n.length||p.length){var e=function(){var e=[];return(n||p).forEach(function(t){var r=t.current;return r&&e.push(r)}),e},t=function(t){!tg(t,s)&&!(l&&(document.documentElement.clientWidth<=t.clientX||document.documentElement.clientHeight<=t.clientY))&&e().every(function(e){return!e.contains(t.target)})&&m.current(t)},r=function(t){return setTimeout(function(){var r=document.activeElement;(null==r?void 0:r.tagName)!=="IFRAME"||tg(r,s)||e().includes(r)||m.current(t)},0)},a=function(){i.forEach(function(e){return document.removeEventListener(e,t,tb(e))}),f&&window.removeEventListener("blur",r)};if(o){a();return}return i.forEach(function(e){return document.addEventListener(e,t,tb(e))}),f&&window.addEventListener("blur",r),function(){return a()}}},[p,s,l,o,f,JSON.stringify(i)]),y},tw=r(1649),tx=r(827),tO=r(4534),tC=r(4472),tE=r(2996),tS=r.n(tE),tj=r(8954),tk=r(5640),tR=r.n(tk),tM=function(e){var t;let{className:r,placement:n="top",onBlur:o=tj.ZT,onFocus:a=tj.ZT,onMouseOut:i=tj.ZT,onMouseOver:l=tj.ZT}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=(0,eO.useId)(),s=(0,tx.YQ)(),u=Boolean(e)||0===e,[f,d]=(0,eO.useState)(!1),p=(0,eO.useRef)(null),h=(0,eO.useMemo)(()=>f?{"aria-describedby":c}:{},[c,f]),{x:m,y:v,context:b,refs:_,strategy:w}=th({middleware:[(void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var r,n,o,a;let{placement:i,middlewareData:l,rects:c,initialPlacement:s,platform:u,elements:f}=e,{mainAxis:d=!0,crossAxis:p=!0,fallbackPlacements:h,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:v=!0,...g}=t,b=M(i),_=M(s)===s,w=await (null==u.isRTL?void 0:u.isRTL(f.floating)),x=h||(_||!v?[W(s)]:function(e){let t=W(e);return[H(e),t,H(t)]}(s));h||"none"===y||x.push(...function(e,t,r,n){let o=k(e),a=function(e,t,r){let n=["left","right"],o=["right","left"];switch(e){case"top":case"bottom":return r?t?o:n:t?n:o;case"left":case"right":return t?["top","bottom"]:["bottom","top"];default:return[]}}(M(e),"start"===r,n);return o&&(a=a.map(e=>e+"-"+o),t&&(a=a.concat(a.map(H)))),a}(s,v,y,w));let O=[s,...x],C=await B(e,g),E=[],S=(null==(r=l.flip)?void 0:r.overflows)||[];if(d&&E.push(C[b]),p){let{main:e,cross:t}=function(e,t,r){void 0===r&&(r=!1);let n=k(e),o=N(e),a=R(o),i="x"===o?n===(r?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=W(i)),{main:i,cross:W(i)}}(i,c,w);E.push(C[e],C[t])}if(S=[...S,{placement:i,overflows:E}],!E.every(e=>e<=0)){let e=((null==(n=l.flip)?void 0:n.index)||0)+1,t=O[e];if(t)return{data:{index:e,overflows:S},reset:{placement:t}};let r=null==(o=S.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!r)switch(m){case"bestFit":{let e=null==(a=S.map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:a[0];e&&(r=e);break}case"initialPlacement":r=s}if(i!==r)return{reset:{placement:r}}}return{}}}),q({padding:10}),V(10),eS({element:p})],placement:n,whileElementsMounted:ew}),x=(0,eO.useCallback)(e=>{o(e),d(!1)},[o]),O=(0,eO.useCallback)(e=>{a(e),d(!0)},[a]),C=(0,eO.useCallback)(e=>{i(e),d(!1)},[i]),E=(0,eO.useCallback)(e=>{l(e),d(!0)},[l]),S=(0,eO.useMemo)(()=>({...h,ref:_.setReference,onBlur:x,onFocus:O,onMouseOut:C,onMouseOver:E}),[h,x,O,C,E]),j=(0,eO.useMemo)(()=>({...h,ref:_.setReference}),[h]);return(0,tx.vI)((0,y.jsxs)("div",{className:g()(tR().tooltip,r),ref:_.setFloating,style:{position:w,top:null!=v?v:0,left:null!=m?m:0},children:[(0,y.jsx)("div",{children:e}),(0,y.jsx)(e6,{className:tR().arrow,context:b,ref:p})]}),{disabled:!u||!f}),s?j:S},tN=r(9057),tA=r.n(tN);let tT=e=>{let{children:t,className:r,Icon:n,iconClassName:o,tooltip:a,variant:i="default",...l}=e,c=tM(a,l);return(0,y.jsx)("a",{className:g()(tA().button,r,{[tA().default]:"default"===i,[tA().primary]:"primary"===i}),...l,...c,children:(0,y.jsxs)("span",{className:tA().content,children:[n&&(0,y.jsx)(n,{className:g()(tA().icon,o)}),t&&(0,y.jsx)("span",{className:tA().label,children:t})]})})},tP=e=>{let{children:t,className:r,Icon:n,iconClassName:o,tooltip:a,variant:i="default",...l}=e,c=tM(a,l);return(0,y.jsx)("button",{className:g()(tA().button,r,{[tA().default]:"default"===i,[tA().primary]:"primary"===i}),type:"button",...l,...c,children:(0,y.jsxs)("span",{className:tA().content,children:[n&&(0,y.jsx)(n,{className:g()(tA().icon,o)}),t&&(0,y.jsx)("span",{className:tA().label,children:t})]})})};var tL=Object.assign(tP,{Link:tT}),tB=r(9888),tI=r.n(tB);let tD=e=>{let{className:t,direction:r,...n}=e,o=(0,tC.qM)();return(0,y.jsx)(tL,{"aria-label":o("cell.toggle-direction"),className:g()(tI().button,t),Icon:b.K5,iconClassName:g()(tI().icon,{[tI().right]:"horizontal"===r}),tooltip:o("cell.toggle-direction"),...n})};var tU=r(9976),tz=r.n(tU);let tW=(0,eO.forwardRef)((e,t)=>{let{cell:r,className:n,direction:o,onDirectionToggle:a,onEnterWord:i,onToggleBlank:l,onToggleFilterCell:c,...s}=e,u=(0,tC.qM)(),f=(0,tC.ix)(tC.Ub),d=(0,tC.ix)(e=>(0,tC.id)(e,r)),p=(0,tC.ix)(tC.GL),h=r.tile.isBlank,m=r.tile.character===tm.EMPTY_CELL||Boolean((0,tj.Jp)(p,r.x,r.y)),v=e=>e.preventDefault();return(0,y.jsxs)("div",{className:g()(tz().actions,n),ref:t,...s,children:["touchscreen"===f&&(0,y.jsx)(tL,{"aria-label":u("cell.enter-word"),className:tz().action,Icon:b.N1,tooltip:u("cell.enter-word"),onClick:i,onMouseDown:v}),"keyboard"===f&&(0,y.jsx)(tD,{className:tz().action,direction:o,onClick:a,onMouseDown:v}),m&&(0,y.jsx)(tL,{"aria-label":u("cell.filter-cell"),className:g()(tz().action),Icon:d?b.WN:b.aR,tooltip:u("cell.filter-cell"),onClick:c,onMouseDown:v}),!m&&(0,y.jsx)(tL,{"aria-label":u(h?"cell.set-not-blank":"cell.set-blank"),className:tz().action,Icon:h?b.uX:b.bK,tooltip:u(h?"cell.set-not-blank":"cell.set-blank"),onClick:l,onMouseDown:v})]})});var tF=r(9662),tH=r.n(tF);let tV=e=>{let{"aria-label":t,autoFocus:r,canShowPoints:n,character:o,className:a,disabled:i,highlighted:l,inputRef:c,isBlank:s,isValid:u,placeholder:f,points:d,pointsFormatted:p,pointsStyle:h,raised:m,style:v,tabIndex:_,onChange:w,onFocus:x,onKeyDown:O,onMouseDown:C,onTouchStart:E}=e;return(0,y.jsxs)("div",{className:g()(tH().tile,a,{[tH().blank]:s,[tH().empty]:!o,[tH().invalid]:!u,[tH().highlighted]:l,[tH().points1]:1===d,[tH().points2]:2===d,[tH().points3]:3===d,[tH().points4]:4===d,[tH().points5]:"number"==typeof d&&d>=5,[tH().raised]:m}),style:v,children:[o||f,(0,y.jsx)("input",{"aria-label":t,autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",autoFocus:r,className:tH().input,disabled:i,ref:c,spellCheck:!1,tabIndex:_,value:o||"",onChange:w,onFocus:x,onKeyDown:O,onMouseDown:C,onTouchStart:E}),n&&(0,y.jsx)("span",{className:tH().points,style:h,children:p}),!u&&(0,y.jsx)(b.yT,{className:tH().alert})]})};var tq=(0,eO.memo)(tV);let tK=e=>{var t;let{"aria-label":r,autoFocus:n,className:o,character:a="",disabled:i,highlighted:l,inputRef:c,isBlank:s,isValid:u,placeholder:f,points:d,raised:p,size:h,tabIndex:m,onChange:v,onFocus:g=tj.ZT,onKeyDown:b=tj.ZT,onMouseDown:_=tj.ZT,onTouchStart:w=tj.ZT}=e,x=(0,tC.ix)(tC.fN),{animateTile:O,showTilePoints:C}=(0,tx.Ft)(),{pointsFontSize:E,tileSize:S}=(0,tj.vc)(h),j=(0,eO.useMemo)(()=>({height:S,width:S}),[S]),k=(0,eO.useMemo)(()=>({fontSize:E}),[E]),R=(0,eO.useRef)(null),M=(t=c?[R,c]:[R],eO.useMemo(()=>t.every(e=>null==e)?null:e=>{t.forEach(t=>{"function"==typeof t?t(e):null!=t&&(t.current=e)})},t)),N=!a||a===tm.EMPTY_CELL,A="number"==typeof d?d.toLocaleString(x):"",T=(0,eO.useCallback)(e=>{var t;null===(t=R.current)||void 0===t||t.select(),b(e)},[b]);return(0,eO.useEffect)(()=>{var e;(null===(e=R.current)||void 0===e?void 0:e.parentElement)&&a&&O&&R.current.parentElement.animate(tO.e2,{duration:tO.PF,easing:tO.Kc,fill:"forwards"})},[a,O]),(0,y.jsx)(tq,{"aria-label":r,autoFocus:n,canShowPoints:C&&(!N||s)&&void 0!==d,character:a,className:o,disabled:i,highlighted:l,inputRef:M,isBlank:s,isValid:u,placeholder:f,points:d,pointsFormatted:A,pointsStyle:k,raised:p,style:j,tabIndex:m,onChange:v,onFocus:g,onKeyDown:T,onMouseDown:_,onTouchStart:w})};var tJ=tK,tG=r(1877),t$=r.n(tG);let tY=e=>{let{cell:t,cellBottom:r,cellLeft:n,cellRight:o,cellTop:a,className:i,inputRef:l,size:c,onChange:s,onFocus:u}=e,{tile:f,x:d,y:p}=t,h=(0,tC.qM)(),m=(0,tC.ix)(tC.fN),v=(0,tC.ix)(tC.Ub),b=(0,tC.ix)(e=>(0,tC.Zf)(e,t.tile)),_=(0,tC.ix)(e=>(0,tC.fZ)(e,t)),w=f.character===tm.EMPTY_CELL,x=(0,eO.useCallback)(e=>{"touchscreen"===v&&(e.preventDefault(),e.target.blur()),u(d,p)},[v,u,d,p]),O=(0,eO.useCallback)(e=>{"touchscreen"===v&&e.preventDefault(),u(d,p)},[v,u,d,p]),C=(0,eO.useCallback)(e=>{"touchscreen"===v&&e.preventDefault(),u(d,p)},[v,u,d,p]);return(0,y.jsx)(tJ,{"aria-label":h("cell.tile.location",{x:(d+1).toLocaleString(m),y:(p+1).toLocaleString(m)}),className:g()(t$().tile,i,{[t$().sharpTopLeft]:(null==a?void 0:a.hasTile())||(null==n?void 0:n.hasTile()),[t$().sharpTopRight]:(null==a?void 0:a.hasTile())||(null==o?void 0:o.hasTile()),[t$().sharpBottomLeft]:(null==r?void 0:r.hasTile())||(null==n?void 0:n.hasTile()),[t$().sharpBottomRight]:(null==r?void 0:r.hasTile())||(null==o?void 0:o.hasTile())}),character:w?void 0:f.character,highlighted:t.isCandidate(),inputRef:l,isBlank:f.isBlank,isValid:_,points:b,raised:!w,size:c,tabIndex:0===t.x&&0===t.y?void 0:-1,onChange:s,onFocus:x,onMouseDown:O,onTouchStart:C})};var tZ=r(7807),tX=r.n(tZ);let tQ=(0,eO.forwardRef)((e,t)=>{let{className:r,direction:n,initialValue:o,onDirectionToggle:a,onSubmit:i,...l}=e,c=(0,tC.qM)(),[s,u]=(0,eO.useState)(null),[f,d]=(0,eO.useState)(o.trim()),p=e=>e.preventDefault(),h=e=>{e.preventDefault(),e.stopPropagation(),i(f)};return(0,eO.useEffect)(()=>{s&&(s.focus(),s.select())},[s]),(0,y.jsxs)("form",{className:g()(tX().inputPrompt,r),ref:t,onSubmit:h,...l,children:[(0,y.jsx)(tD,{className:tX().toggleDirection,direction:n,onClick:a,onMouseDown:p}),(0,y.jsx)("div",{children:(0,y.jsx)("input",{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",className:tX().input,placeholder:c("rack.placeholder"),spellCheck:!1,ref:u,value:f,onChange:e=>d(e.target.value)})}),(0,y.jsx)(tL,{"aria-label":c("results.insert"),className:tX().insert,Icon:b.Jr,iconClassName:tX().insertIcon,tooltip:c("results.insert"),type:"submit",variant:"primary",onMouseDown:p})]})}),t0=(0,eO.forwardRef)((e,t)=>{let{className:r,cellSize:n,inputRefs:o,rows:a,style:i,onBlur:l,onChange:c,onFocus:s,onKeyDown:u,onPaste:f}=e;return(0,y.jsx)("div",{className:g()(tS().board,r),ref:t,style:i,onBlur:l,onKeyDown:u,onPaste:f,children:a.map((e,t)=>(0,y.jsx)(eO.Fragment,{children:e.map((e,r)=>(0,y.jsx)(tY,{className:tS().cell,cell:e,cellBottom:t<a.length-1?a[t+1][r]:void 0,cellLeft:r>0?a[t][r-1]:void 0,cellRight:r<a.length-1?a[t][r+1]:void 0,cellTop:t>0?a[t-1][r]:void 0,inputRef:o[t][r],size:n,onChange:c,onFocus:s},r))},t))})});var t1=(0,eO.memo)(t0),t2=r(2404);let t5=e=>e.type===tm.BONUS_WORD?tO.ti[e.multiplier]:e.score?tO.kr[e.score]:tO.$P[e.multiplier],t6=(e,t)=>{for(let r=0;r<e.length;++r)for(let n=0;n<e[0].length;++n)if(t(e[r][n]))return{x:n,y:r}},t3=()=>{let{boardSize:e,cellSize:t}=(0,tx.Ft)(),{isLessThanXs:r}=(0,tx.lS)(),n=r?3:tO.n_,o=(0,tC.ix)(tC.$o),a={x:Math.floor(o.boardWidth/2),y:Math.floor(o.boardHeight/2)},i=(0,tC.ix)(tC.Jw),l=.8*t,c=.1*t,s=.4*t,u=(t-s)/2,{tileFontSize:f}=(0,tj.vc)(t),d=.6*f,p=t/2,h=o.bonuses.filter(e=>e.type===tm.BONUS_CHARACTER),m=o.bonuses.filter(e=>e.type===tm.BONUS_WORD&&2===e.multiplier),v=o.bonuses.filter(e=>e.type===tm.BONUS_WORD&&3===e.multiplier),g=e=>e.x*(t+tO.YF),_=e=>e.y*(t+tO.YF),w=(0,t2.Dq)((0,y.jsx)(tw.zt,{store:tC.h,children:(0,y.jsxs)("svg",{height:e,viewBox:"0 0 ".concat(e," ").concat(e),width:e,xmlns:"http://www.w3.org/2000/svg",children:[(0,y.jsxs)("defs",{children:[(0,y.jsx)("symbol",{id:"h",children:(0,y.jsx)("rect",{fill:tO.uI,height:1,width:e})}),(0,y.jsx)("symbol",{id:"v",children:(0,y.jsx)("rect",{fill:tO.uI,height:e,width:1})}),(0,y.jsx)("symbol",{id:"b",children:(0,y.jsx)("rect",{height:l,rx:n,width:l,x:c,y:c})}),(0,y.jsxs)("symbol",{id:"b2",children:[(0,y.jsx)("rect",{height:l,rx:n,width:l,x:c,y:c}),(0,y.jsx)("text",{dominantBaseline:"central",fill:"white",fontFamily:"system-ui, sans-serif",fontSize:d,fontWeight:"bold",textAnchor:"middle",x:p,y:p,children:"x2"})]}),(0,y.jsxs)("symbol",{id:"b3",children:[(0,y.jsx)("rect",{height:l,rx:n,width:l,x:c,y:c}),(0,y.jsx)("text",{dominantBaseline:"central",fill:"white",fontFamily:"system-ui, sans-serif",fontSize:d,fontWeight:"bold",textAnchor:"middle",x:p,y:p,children:"x3"})]}),(0,y.jsxs)("symbol",{id:"c",children:[(0,y.jsx)("rect",{fill:tO.pS,height:l,rx:n,width:l,x:c,y:c}),(0,y.jsx)(b.aR,{color:"white",height:s,width:s,x:u,y:u})]})]}),(0,y.jsx)("rect",{fill:"white",height:e,rx:n,width:e,x:"0",y:"0"}),Array.from({length:o.boardHeight-1}).map((e,r)=>(0,y.jsx)("use",{href:"#".concat("h"),y:(r+1)*(t+tO.YF)-tO.YF},r)),Array.from({length:o.boardWidth-1}).map((e,r)=>(0,y.jsx)("use",{href:"#".concat("v"),x:(r+1)*(t+tO.YF)-tO.YF},r)),h.map((e,t)=>(0,y.jsx)("use",{fill:t5(e),href:"#".concat("b"),x:g(e),y:_(e)},t)),m.map((e,t)=>(0,y.jsx)("use",{fill:t5(e),href:"#".concat("b2"),x:g(e),y:_(e)},t)),v.map((e,t)=>(0,y.jsx)("use",{fill:t5(e),href:"#".concat("b3"),x:g(e),y:_(e)},t)),(0,y.jsx)("rect",{fill:tO.HC,height:l,rx:n,width:l,x:g(a)+c,y:_(a)+c}),(0,y.jsx)(b.Ux,{color:"white",height:s,width:s,x:g(a)+u,y:_(a)+u}),i.map((e,t)=>(0,y.jsx)("use",{href:"#".concat("c"),x:g(e),y:_(e)},t))]})})),x=globalThis.btoa(w),O="data:image/svg+xml;base64,".concat(x),C=(0,eO.useMemo)(()=>(0,tj.kD)(O),[O]),E=(0,eO.useMemo)(()=>URL.createObjectURL(C),[C]);return"url(".concat(E,")")},t4=()=>{let e=(0,tC.ix)(tC.$o),{cellSize:t}=(0,tx.Ft)(),{tileFontSize:r}=(0,tj.vc)(t),n=t3(),o=(0,eO.useMemo)(()=>({backgroundImage:n,fontSize:r,gridTemplateColumns:"repeat(".concat(e.boardWidth,", 1fr)"),gridTemplateRows:"repeat(".concat(e.boardHeight,", 1fr)")}),[n,e.boardHeight,e.boardWidth,r]);return o},t8=()=>{let{actionsWidth:e}=(0,tx.Ft)();return th({middleware:[V({mainAxis:-tO.IO,alignmentAxis:tO.IO-e}),q()],placement:"top-end",whileElementsMounted:ew})},t7=()=>th({placement:"top-start",whileElementsMounted:ew}),t9=()=>th({middleware:[V({mainAxis:-tO.IO,alignmentAxis:tO.IO}),q()],placement:"top",whileElementsMounted:ew});var re=r(1266),rt=r(6743);let rr=e=>"vertical"===e?"horizontal":"vertical",rn=e=>{let t=e.length,r=e[0].length,n=(0,tw.I0)(),o=(0,tC.ix)(tC.$o),a=(0,tC.ix)(tC.fN),i=(0,eO.useMemo)(()=>(0,tj.DI)(r,t,()=>(0,eO.createRef)()),[r,t]),[l,c]=(0,eO.useState)({x:0,y:0}),[s,u]=(0,eO.useState)("horizontal"),f=(0,tx.dU)(s),d=(0,eO.useCallback)((e,n)=>{var o;let a=Math.min(Math.max(l.x+e,0),r-1),s=Math.min(Math.max(l.y+n,0),t-1);c({x:a,y:s}),null===(o=i[s][a].current)||void 0===o||o.focus()},[l,i]),p=(0,eO.useCallback)(e=>t6(i,t=>t.current===e),[i]),h=(0,eO.useCallback)(e=>{"horizontal"===f.current?d(e,0):d(0,e)},[d,f]),m=(0,eO.useCallback)((a,i)=>{let l=i?(0,tj.nK)(o,i).filter(e=>e!==tm.BLANK):[tm.BLANK],c=[],s=new re.Board({rows:e.map(e=>e.map(e=>e.clone()))}),{x:u,y:d}=a,p=()=>{"horizontal"===f.current?++u:++d};l.forEach(e=>{if(u>=o.boardWidth||d>=o.boardHeight)return;let n=d-1>0,a=u>0,i=u+1<r,l=d+1<t;if(n){let t=s.rows[d-1][u],r=t.tile.character+e;if(!t.tile.isBlank&&o.twoCharacterTiles.includes(r)){let e=tC.I8.actions.changeCellValue({x:u,y:d-1,value:r});s=tC.I8.reducer(s,e),c.push(e);return}}if(l){let t=s.rows[d+1][u],r=e+t.tile.character;if(!t.tile.isBlank&&o.twoCharacterTiles.includes(r)){let t=tC.I8.actions.changeCellValue({x:u,y:d,value:e}),r=tC.I8.actions.changeCellValue({x:u,y:d+1,value:tm.EMPTY_CELL});s=tC.I8.reducer(tC.I8.reducer(s,t),r),c.push(t,r),p();return}}if(a){let t=s.rows[d][u-1],r=t.tile.character+e;if(!t.tile.isBlank&&o.twoCharacterTiles.includes(r)){let e=tC.I8.actions.changeCellValue({x:u-1,y:d,value:r});s=tC.I8.reducer(s,e),c.push(e);return}}if(i){let t=s.rows[d][u+1],r=e+t.tile.character;if(!t.tile.isBlank&&o.twoCharacterTiles.includes(r)){let t=tC.I8.actions.changeCellValue({x:u,y:d,value:e}),r=tC.I8.actions.changeCellValue({x:u+1,y:d,value:tm.EMPTY_CELL});s=tC.I8.reducer(tC.I8.reducer(s,t),r),c.push(t,r),p();return}}if(!l||!i){let t=s.rows[d][u],r=t.tile.character+e;if(!t.tile.isBlank&&o.twoCharacterTiles.includes(r)){let e=tC.I8.actions.changeCellValue({x:u,y:d,value:r});s=tC.I8.reducer(s,e),c.push(e);return}}let f=tC.I8.actions.changeCellValue({x:u,y:d,value:e});s=tC.I8.reducer(s,f),c.push(f),p()}),h(Math.abs(a.x-u)+Math.abs(a.y-d)),c.forEach(n)},[o,f,n,h,e]),y=(0,eO.useCallback)(t=>{let r=p(t.target);if(!r)return;let o=(0,tj.WM)(t.target);if(!o){n(tC.I8.actions.changeCellValue({...r,value:tm.EMPTY_CELL})),h(-1);return}if(o===tm.EMPTY_CELL){let{x:t,y:o}=r,a=e[o][t];if(a.hasTile()){n(tC.I8.actions.toggleCellIsBlank(r));return}}m(r,o)},[n,m,h,e]),v=(0,eO.useCallback)(()=>u(rr),[]),g=(0,eO.useCallback)((e,t)=>{c({x:e,y:t})},[]),b=(0,eO.useMemo)(()=>(0,tj.np)({onArrowDown:e=>{e.preventDefault(),"horizontal"===s?v():d(0,1)},onArrowLeft:e=>{e.preventDefault(),"vertical"===s?(v(),d("ltr"===rt.q0[a].direction?-1:0,0)):d("ltr"===rt.q0[a].direction?-1:1,0)},onArrowRight:e=>{e.preventDefault(),"vertical"===s?(v(),d("ltr"===rt.q0[a].direction?0:-1,0)):d("ltr"===rt.q0[a].direction?1:-1,0)},onArrowUp:e=>{e.preventDefault(),"horizontal"===s&&v(),d(0,-1)},onBackspace:e=>{let t=p(e.target);t&&(e.preventDefault(),n(tC.I8.actions.changeCellValue({...t,value:tm.EMPTY_CELL})),h(-1))},onDelete:e=>{let t=p(e.target);t&&(e.preventDefault(),n(tC.I8.actions.changeCellValue({...t,value:tm.EMPTY_CELL})),h(1))},onKeyDown:t=>{let r=p(t.target);if(!r)return;let{x:a,y:i}=r,l=t.key.toLowerCase(),c=(0,tj.yl)(t)&&"b"===l,s=o.getTwoCharacterTileByPrefix(l);if(c){t.preventDefault(),n(tC.I8.actions.toggleCellIsBlank(r));return}if((0,tj.yl)(t)&&s){t.preventDefault(),n(tC.I8.actions.changeCellValue({x:a,y:i,value:s})),h(1);return}let u=e[i][a],f=u.tile.character+l;if(o.twoCharacterTiles.includes(f)){t.preventDefault(),n(tC.I8.actions.changeCellValue({...r,value:f})),h(1);return}t.target instanceof HTMLInputElement&&t.target.value===t.key&&(t.preventDefault(),h(1))},onSpace:e=>{let t=p(e.target);t&&(e.preventDefault(),n(tC.I8.actions.toggleCellIsBlank(t)))}}),[d,o,s,n,a,h,v,e]),_=(0,eO.useCallback)(e=>{if(!(e.target instanceof HTMLInputElement))return;let t=p(e.target);if(!t)return;e.preventDefault();let r=e.clipboardData.getData("text/plain").toLocaleLowerCase();m(t,r)},[m]);return[{activeIndex:l,direction:s,inputRefs:i},{insertValue:m,onChange:y,onDirectionToggle:v,onFocus:g,onKeyDown:b,onPaste:_}]},ro=e=>{var t,r,n,o,a;let{className:i}=e,l=(0,tw.I0)(),c=(0,tC.ix)(tC.fN),s=(0,tC.ix)(tC.ZA),u=(0,tC.ix)(tC.Ub),{cellSize:f}=(0,tx.Ft)(),[{activeIndex:d,direction:p,inputRefs:h},{insertValue:m,onChange:v,onDirectionToggle:b,onFocus:_,onKeyDown:w,onPaste:x}]=rn(s),O=t4(),[C,E]=(0,eO.useState)(!1),[S,j]=(0,eO.useState)(!1),[k,R]=(0,eO.useState)(tO.yz),M=h[d.y][d.x],N=s[d.y][d.x],A=t8(),T=t9(),P=t7(),L=(0,eO.useCallback)(e=>{var t,r,n;let o=null===(t=A.refs.floating.current)||void 0===t?void 0:t.contains(e.relatedTarget),a=e.currentTarget.contains(e.relatedTarget),i=null===(r=P.refs.floating.current)||void 0===r?void 0:r.contains(e.relatedTarget),l=null===(n=T.refs.floating.current)||void 0===n?void 0:n.contains(e.relatedTarget);o||a||i||l||E(!1)},[A.refs.floating,P.refs.floating,T.refs.floating]),B=(0,eO.useCallback)(e=>{A.refs.setReference(e),P.refs.setReference(e),T.refs.setReference(e)},[A.refs,P.refs,T.refs]),I=(0,eO.useCallback)((e,t)=>{var r;let n=(null===(r=A.refs.floating.current)||void 0===r?void 0:r.style.transition)||"",o=h[t][e].current,a=(null==o?void 0:o.parentElement)||null;B(a),_(e,t),E(!0),j(!1),C||(R("none"),globalThis.setTimeout(()=>{R(n)},0))},[A.refs.floating,C,h,_,B]),D=(0,eO.useCallback)(()=>{j(!0)},[]),U=(0,eO.useCallback)(e=>{0===e.trim().length?l(tC.I8.actions.changeCellValue({...d,value:tm.EMPTY_CELL})):m(d,e.toLocaleLowerCase(c)),j(!1),l(tC.TP.actions.submit()),E(!1)},[d,l,c]),z=(0,eO.useCallback)(()=>{if("keyboard"===u){var e;null===(e=M.current)||void 0===e||e.focus()}l(tC.I8.actions.toggleCellIsBlank(N))},[N,l,u,M]),W=(0,eO.useCallback)(()=>{if("keyboard"===u){var e;null===(e=M.current)||void 0===e||e.focus()}b()},[u,M,b]),F=(0,eO.useCallback)(()=>{if("keyboard"===u){var e;null===(e=M.current)||void 0===e||e.focus()}l(tC.mO.actions.toggle(N))},[N,l,u,M]),H=t_(()=>E(!1),{ignoreClass:[tS().floating]});return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(t1,{className:i,cellSize:f,inputRefs:h,ref:H,rows:s,style:O,onBlur:L,onChange:v,onFocus:I,onKeyDown:w,onPaste:x}),(0,y.jsxs)(tu,{children:[(0,y.jsx)("div",{className:g()(tS().floating,tS().focus,{[tS().hidden]:!C}),ref:P.refs.setFloating,style:{position:P.strategy,top:P.y?P.y+f:0,left:null!==(t=P.x)&&void 0!==t?t:0,width:f,height:f,opacity:C?1:0,visibility:null===P.x||null===P.y?"hidden":"visible",transition:k},tabIndex:0}),C&&!S&&(0,y.jsx)(tW,{cell:N,className:tS().floating,direction:p,ref:A.refs.setFloating,style:{position:A.strategy,top:null!==(r=A.y)&&void 0!==r?r:0,left:null!==(n=A.x)&&void 0!==n?n:0,transition:k},onDirectionToggle:W,onEnterWord:D,onToggleBlank:z,onToggleFilterCell:F}),C&&S&&(0,y.jsx)(tQ,{className:tS().floating,direction:p,initialValue:N.tile.character,ref:T.refs.setFloating,style:{position:T.strategy,top:null!==(o=T.y)&&void 0!==o?o:0,left:null!==(a=T.x)&&void 0!==a?a:0,transition:k},onDirectionToggle:W,onSubmit:U})]})]})};var ra=r(9418),ri=e=>tO.fl+e*(tO.rV+tO.ku),rl=e=>tO.uX+e*(tO.rV+tO.ku);let rc=(e,t)=>e+2*t*(.5-Math.random()),rs=e=>{let{cellIndex:t,character:r,color:n,rowIndex:o,showPoints:a}=e,i=ra.literaki[re.Locale.EN_US].getCharacterPoints(r.toLowerCase()),l="number"==typeof i?tO.d4[i]:tO.BF,c=ri(t)+tO.rV/2,s=rl(0)+tO.rV/2;return{character:r,color:n||l,points:a?i:void 0,size:tO.rV,transform:"rotate(".concat(rc(0,tO.a_),", ").concat(c,", ").concat(s,")"),x:rc(ri(t),tO.D),y:rc(rl(o),tO.D)}},ru=e=>{let{color:t,content:r,showPoints:n}=e,o=r.map((e,r)=>e.map((o,a)=>{let i=e.slice(0,a).reduce((e,t)=>{let{length:r}=t;return e+r+1},0),l=o.split("");return l.map((e,o)=>rs({cellIndex:i+o,character:e,color:t,rowIndex:r,showPoints:n}))})),a=o.flat(2);return a},rf=e=>{let t=e.reduce((e,t)=>{let r=t.reduce((e,t)=>e+t.length,0),n=r+Math.max(t.length-1,0);return Math.max(e,n)},0),r=t*(tO.rV+tO.ku)-(0===t?0:tO.ku),n=e.length*(tO.rV+tO.ku)-(0===e.length?0:tO.ku);return"0 0 ".concat(r," ").concat(n)};var rd=r(5834),rp=r.n(rd);let rh=e=>{let{character:t,className:r,color:n,points:o,size:a,transform:i,x:l,y:c}=e;return(0,y.jsxs)("g",{className:r,transform:i,children:[(0,y.jsx)("rect",{fill:n,height:a,rx:.15*a,width:a,x:l,y:c}),(0,y.jsx)("text",{dominantBaseline:"central",fontSize:.6*a,fontWeight:"bold",textAnchor:"middle",x:l+a/2,y:c+a/2,children:t}),"number"==typeof o&&(0,y.jsx)("text",{dominantBaseline:"text-after-edge",fontSize:.25*a,fontWeight:"bold",textAnchor:"end",x:l+.9*a,y:c+.95*a,children:o})]})},rm=e=>{let{className:t,color:r,content:n,dropShadow:o,showPoints:a,style:i,wave:l}=e,c=(0,eO.useMemo)(()=>ru({color:r,content:n,showPoints:a}),[r,n,a]);return(0,y.jsx)("svg",{className:g()(t,{[rp().dropShadow]:o,[rp().wave]:l}),style:i,viewBox:rf(n),xmlns:"http://www.w3.org/2000/svg",children:c.map((e,t)=>(0,y.jsx)(rh,{character:e.character,className:rp().tile,color:e.color,points:e.points,size:e.size,transform:e.transform,x:e.x,y:e.y},t))})};var ry=r(5106),rv=r.n(ry);let rg={error:"empty-state.error",info:"empty-state.info",success:"empty-state.success",warning:"empty-state.warning"},rb={error:tO.yg,info:tO.pI,success:tO.F1,warning:tO.yr},r_=e=>{let{children:t,className:r,variant:n}=e,o=(0,tC.qM)(),a=(0,tC.ix)(tC.fN),{direction:i}=rt.q0[a],l=(0,eO.useMemo)(()=>o(rg[n]),[o]),c="ltr"===i?l:l.split("").reverse().join(""),s=(0,eO.useMemo)(()=>[[c.toUpperCase()]],[l]);return(0,y.jsxs)("div",{className:g()(rv().emptyState,r),children:[(0,y.jsx)(rm,{className:rv().tiles,color:rb[n],content:s}),(0,y.jsx)("div",{children:t})]})};var rw=r(5694),rx=r.n(rw);let rO=e=>{let t=e.toLocaleUpperCase(),r=t.split(" ");return[r]},rC=e=>{let{className:t,wave:r=!0}=e,n=(0,tC.qM)(),o=(0,tC.ix)(tC.fN),{direction:a}=rt.q0[o],i=n("common.loading"),l="ltr"===a?i:i.split("").reverse().join(""),c=(0,eO.useMemo)(()=>rO(l),[l]);return(0,y.jsxs)("div",{"aria-label":i,className:g()(rx().loading,t),role:"status",children:[(0,y.jsx)("div",{className:rx().dim}),(0,y.jsx)("div",{className:rx().text,children:(0,y.jsx)(rm,{className:g()(rx().tiles),content:c,dropShadow:!0,wave:r})})]})};var rE=r(9653),rS=r.n(rE);let rj=e=>{let{className:t}=e,r=(0,tC.qM)(),{results:n,isLoading:o}=(0,tC.ix)(tC.w1),a=(0,tC.ix)(tC.mK),i=n.length>0?n[n.length-1].isAllowed:void 0;return(0,y.jsxs)("div",{className:g()(rS().dictionary,t,{[rS().isAllowed]:!0===i,[rS().isNotAllowed]:!1===i}),children:[void 0!==a&&!o&&(0,y.jsx)(r_,{variant:"error",children:a.message}),void 0===a&&!o&&0===n.length&&(0,y.jsx)(r_,{variant:"info",children:r("dictionary.empty-state.uninitialized")}),n.map(e=>{let{definitions:t,exists:n,isAllowed:a,word:i}=e;return(0,y.jsx)("div",{className:g()(rS().result,{[rS().isAllowed]:!0===a,[rS().isNotAllowed]:!1===a}),children:(0,y.jsxs)("div",{className:rS().content,children:[i&&(0,y.jsx)("h2",{className:rS().word,children:i}),!1===a&&(0,y.jsx)("div",{children:r("dictionary.empty-state.not-allowed")}),!0===a&&(0,y.jsxs)(y.Fragment,{children:[0===t.length&&(0,y.jsxs)(y.Fragment,{children:[n&&(0,y.jsx)("div",{children:r("dictionary.empty-state.no-definitions")}),!n&&(0,y.jsx)("div",{children:r("dictionary.empty-state.no-results")})]}),t.length>0&&(0,y.jsx)("ul",{className:rS().definitions,children:t.map((e,t)=>(0,y.jsx)("li",{className:rS().definition,children:e},t))})]}),!o&&null===a&&(0,y.jsx)("div",{children:r("dictionary.empty-state.no-results")})]})},i)}),o&&(0,y.jsx)(rC,{})]})};var rk=rj,rR=r(522),rM=r.n(rR);let rN=e=>{let{className:t}=e,r=(0,tw.I0)(),n=(0,tC.qM)(),o=(0,tC.ix)(tC.fN),{input:a}=(0,tC.ix)(tC.w1),{comma:i}=rt.q0[o],l=e=>{r(tC.lj.actions.changeInput(e.target.value))},c=e=>{e.preventDefault(),r(tC.lj.actions.submit())};return(0,y.jsx)("form",{className:g()(rM().dictionaryInput,t),onSubmit:c,children:(0,y.jsx)("input",{className:rM().input,pattern:".*[^\\s".concat(i,"].*"),placeholder:n("dictionary.input.placeholder"),required:!0,title:n("dictionary.input.title"),type:"text",value:a,onChange:l})})};var rA=rN,rT=r(8032),rP=r.n(rT);let rL=e=>{let{className:t,Icon:r,tooltip:n,...o}=e,a=tM(n,o);return(0,y.jsx)("a",{className:g()(rP().iconButton,t),...o,...a,children:(0,y.jsx)("span",{className:rP().content,children:(0,y.jsx)(r,{className:rP().icon})})})},rB=e=>{let{className:t,Icon:r,tooltip:n,...o}=e,a=tM(n,o);return(0,y.jsx)("button",{className:g()(rP().iconButton,t),type:"button",...o,...a,children:(0,y.jsx)("span",{className:rP().content,children:(0,y.jsx)(r,{className:rP().icon})})})};var rI=Object.assign(rB,{Link:rL}),rD=r(7710),rU=r.n(rD);let rz=e=>{let{children:t,className:r}=e;return(0,y.jsx)("kbd",{className:g()(rU().key,r),children:t})};var rW=rz,rF=r(5675),rH=r.n(rF);let rV=(0,eO.forwardRef)((e,t)=>{let{logoHeight:r,logoWidth:n}=(0,tx.Ft)();return(0,y.jsx)(rH(),{...e,alt:"Scrabble Solver 2",height:r,priority:!0,ref:t,src:tO.sk,width:n})});var rq=rV,rK=r(3253),rJ=r.n(rK),rG=r(3753),r$=r.n(rG);let rY=e=>{let{children:t,className:r,title:n}=e;return(0,y.jsxs)("section",{className:g()(r$().section,r),children:[(0,y.jsx)("h2",{className:r$().heading,children:n}),(0,y.jsx)("div",{children:t})]})};var rZ=r(6472),rX=r.n(rZ);let rQ=e=>{let{children:t,className:r,footer:n,isOpen:o,title:a,onClose:i}=e,l=(0,tC.qM)(),[c,s]=(0,eO.useState)(!0),u=(0,eO.useCallback)(e=>{"Escape"===e.key&&(s(!1),i())},[i]);return(0,eO.useEffect)(()=>(document.addEventListener("keydown",u),()=>{document.removeEventListener("keydown",u)}),[u]),(0,eO.useEffect)(()=>{o&&s(!0)},[o]),(0,y.jsx)(rJ(),{className:{afterOpen:rX().afterOpen,base:rX().modal,beforeClose:rX().beforeClose},closeTimeoutMS:tO.MA,contentLabel:a,isOpen:o,overlayClassName:rX().overlay,shouldReturnFocusAfterClose:c,onRequestClose:i,children:(0,y.jsxs)("div",{className:g()(rX().container,r),children:[(0,y.jsxs)("div",{className:rX().header,children:[(0,y.jsx)("h1",{className:rX().title,children:a}),(0,y.jsx)(rI,{"aria-label":l("common.close"),className:rX().closeButton,Icon:b.vK,tooltip:l("common.close"),onClick:i})]}),(0,y.jsx)("div",{className:rX().content,children:t}),n&&(0,y.jsx)("div",{className:rX().footer,children:n})]})})};var r0=Object.assign(rQ,{Section:rY}),r1=r(1624),r2=r.n(r1);let r5=e=>{let{onClear:t,onShowKeyMap:r,onShowMenu:n,onShowRemainingTiles:o,onShowSettings:a,onShowWords:i}=e,l=(0,tC.qM)(),c=(0,tC.ix)(tC.En),s=(0,tC.ix)(tC.bs),{showKeyMap:u,showShortNav:f}=(0,tx.Ft)();return f?(0,y.jsxs)("div",{className:r2().navButtons,children:[(0,y.jsx)("div",{className:r2().group,children:(0,y.jsx)(rI,{"aria-label":l("common.clear"),className:r2().button,Icon:b.Gs,tooltip:l("common.clear"),onClick:t})}),(0,y.jsx)("div",{className:r2().separator}),(0,y.jsx)("div",{className:r2().group,children:(0,y.jsx)(rI,{"aria-label":l("menu"),className:r2().button,Icon:b.aV,tooltip:l("menu"),onClick:n})})]}):(0,y.jsxs)("div",{className:r2().navButtons,children:[(0,y.jsx)("div",{className:r2().group,children:(0,y.jsx)(rI,{"aria-label":l("common.clear"),className:r2().button,Icon:b.Gs,tooltip:l("common.clear"),onClick:t})}),(0,y.jsx)("div",{className:r2().separator}),(0,y.jsxs)("div",{className:r2().group,children:[(0,y.jsx)(rI,{"aria-label":l("remaining-tiles"),className:g()(r2().button,{[r2().error]:c}),Icon:b.xy,tooltip:l("remaining-tiles"),onClick:o}),(0,y.jsx)(rI,{"aria-label":l("words"),className:g()(r2().button,{[r2().error]:s}),Icon:b.Kz,tooltip:l("words"),onClick:i})]}),(0,y.jsx)("div",{className:r2().separator}),(0,y.jsx)("div",{className:r2().group,children:(0,y.jsx)(rI.Link,{"aria-label":l("github"),className:r2().button,href:tO.h4,Icon:b.Ey,rel:"noopener noreferrer",target:"_blank",tooltip:l("github")})}),(0,y.jsx)("div",{className:r2().separator}),(0,y.jsxs)("div",{className:r2().group,children:[u&&(0,y.jsx)(rI,{"aria-label":l("keyMap"),className:r2().button,Icon:b.KD,tooltip:l("keyMap"),onClick:r}),(0,y.jsx)(rI,{"aria-label":l("settings"),className:r2().button,Icon:b.Oz,tooltip:l("settings"),onClick:a})]})]})};var r6=(0,eO.memo)(r5),r3=r(6933),r4=r.n(r3);let r8=[["HTTP","404"]],r7=()=>(0,y.jsx)("div",{className:r4().notFound,children:(0,y.jsxs)("a",{className:r4().link,href:"/",children:[(0,y.jsx)(b.XK,{className:r4().icon}),(0,y.jsx)(rm,{className:r4().tiles,content:r8})]})});var r9=r7,ne=r(2524),nt=r.n(ne);let nr=(e,t,r)=>{let n=100*e;return"linear-gradient(90deg, ".concat(t," 0%, ").concat(t," ").concat(n,"%, ").concat(r," ").concat(n,"%, ").concat(r," 100%)")},nn=e=>{let{className:t,max:r,min:n=0,style:o,value:a,...i}=e,l=(0,tC.ix)(tC.fN),c=a/(r-n);return(0,y.jsx)("div",{...i,className:g()(nt().progress,t),style:{...o,backgroundImage:nr(c,tO.xZ,tO.eU)},title:"".concat(Math.round(100*c).toLocaleString(l),"%")})};var no=nn,na=r(46),ni=r.n(na);let nl=(0,eO.forwardRef)((e,t)=>{let{className:r,style:n,value:o,onBlur:a,onChange:i,onSubmit:l,...c}=e,s=(0,tw.I0)(),u=(0,tC.qM)(),{rackHeight:f,rackWidth:d}=(0,tx.Ft)(),p=(0,tC.ix)(tC.$o),[h,m]=(0,eO.useState)(null),v=(0,eO.useCallback)(e=>{e.preventDefault();let t=(0,tj.p$)(p,o),r=Array.from({length:p.maximumCharactersCount},(e,r)=>"string"==typeof t[r]?t[r]:null);s(tC.O_.actions.changeCharacters({characters:r,index:0})),l(e)},[p,o,l]);return(0,eO.useEffect)(()=>{h&&(h.focus(),h.select())},[h]),(0,y.jsx)("form",{className:g()(ni().form,r),ref:t,style:{width:d,height:f,...n},onSubmit:v,...c,children:(0,y.jsx)("input",{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",className:ni().input,placeholder:u("rack.touchscreen.placeholder"),ref:m,spellCheck:!1,value:o,onBlur:a,onChange:i})})});var nc=Object.assign(nl,{styles:ni()}),ns=r(4279),nu=r.n(ns);let nf=e=>{let{activeIndexRef:t,character:r,className:n,index:o,inputRef:a,size:i,tile:l,onChange:c,onKeyDown:s,onFocus:u}=e,f=(0,tw.I0)(),d=(0,tC.qM)(),p=(0,tC.ix)(tC.fN),h=(0,tC.ix)(tC.$o),m=(0,tC.ix)(tC.Ub),v=(0,tC.ix)(e=>(0,tC.Or)(e,r)),b=(0,tC.ix)(e=>(0,tC.AN)(e,r)),_=(0,eO.useCallback)(e=>{"touchscreen"===m&&(e.preventDefault(),e.target.blur(),u()),t.current=o},[t,o,m,u]),w=(0,eO.useCallback)(e=>{e.preventDefault(),e.stopPropagation();let t=(0,tj.WM)(e.target),r=t?(0,tj.nK)(h,t):[null];f(tC.O_.actions.changeCharacters({characters:r,index:o})),c(e)},[h,o,c]),x=(0,eO.useMemo)(()=>(0,tj.np)({onBackspace:e=>{e.preventDefault(),f(tC.O_.actions.changeCharacter({character:null,index:o}))},onKeyDown:e=>{if((0,tj.yl)(e)&&h.isTwoCharacterTilePrefix(e.key)){e.preventDefault(),e.stopPropagation();let t=h.getTwoCharacterTileByPrefix(e.key);f(tC.O_.actions.changeCharacter({character:t,index:o}))}s(e)}}),[o,s]),O=(0,eO.useCallback)(e=>{"touchscreen"===m&&e.preventDefault(),u()},[m,u]),C=(0,eO.useCallback)(e=>{"touchscreen"===m&&e.preventDefault(),u()},[m,u]);return(0,y.jsx)(tJ,{"aria-label":d("rack.tile.location",{index:(o+1).toLocaleString(p)}),autoFocus:"keyboard"===m&&0===o,className:g()(nu().rackTile,n),character:null===r?void 0:r,highlighted:null!==l,inputRef:a,isBlank:r===tm.BLANK,isValid:b,placeholder:d("rack.placeholder")[o],points:v,raised:!0,size:i,tabIndex:0===o?void 0:-1,onChange:w,onFocus:_,onKeyDown:x,onMouseDown:O,onTouchStart:C},o)};var nd=r(9574),np=r.n(nd);let nh=e=>{var t;let{className:r,tileSize:n}=e,o=(0,tw.I0)(),a=(0,tC.ix)(tC.$o),i=(0,tC.ix)(tC.fN),l=(0,tC.ix)(tC.QB),c=(0,tC.ix)(tC.Ub),{rackHeight:s}=(0,tx.Ft)(),u=(0,tC.ix)(tC.z$),f=(0,eO.useMemo)(()=>(0,tj.gV)(l,u),[l,u]),d=f.length,p=(0,eO.useMemo)(()=>(0,tj.Ri)(d).map(()=>(0,eO.createRef)()),[d]),h=(0,eO.useRef)(),[m,v]=(0,eO.useState)(!1),[b,_]=(0,eO.useState)(""),{direction:w}=rt.q0[i],{tileFontSize:x}=(0,tj.vc)(n),O="touchscreen"===c&&m,C=(0,eO.useRef)(null);t_(()=>v(!1),{ignoreClass:[nc.styles.form,nc.styles.input],refs:[C]});let E=(0,eO.useCallback)(e=>{let t=Math.min(Math.max((h.current||0)+e,0),d-1),r=p[t].current;r&&r.focus(),h.current=t},[h,d,p]),S=(0,eO.useCallback)(e=>{let t=(0,tj.WM)(e.target),r=t?(0,tj.nK)(a,t):[];E(t?r.length:-1)},[E,a]),j=(0,eO.useCallback)(e=>{let t=h.current;if(void 0===t)return;e.preventDefault();let r=e.clipboardData.getData("text/plain").toLocaleLowerCase(),n=r?(0,tj.nK)(a,r):[];E(r?n.length:-1),o(tC.O_.actions.changeCharacters({characters:n,index:t}))},[E,a,o]),k=(0,eO.useCallback)(()=>{v(!0),M.refs.setPositionReference(C.current);let e=l.filter(e=>null!==e),t=e.map(e=>e.length>1?e.toLocaleUpperCase(i):e);_(t.join(""))},[l,C]),R=(0,eO.useMemo)(()=>(0,tj.np)({onArrowLeft:e=>{e.preventDefault(),E("ltr"===w?-1:1)},onArrowRight:e=>{e.preventDefault(),E("ltr"===w?1:-1)},onBackspace:e=>{e.preventDefault(),E(-1)},onDelete:e=>{let t=h.current;void 0!==t&&(e.preventDefault(),o(tC.O_.actions.changeCharacters({characters:[null],index:t})),E(1))},onKeyDown:e=>{(0,tj.yl)(e)&&a.isTwoCharacterTilePrefix(e.key)?E(1):e.currentTarget.value===e.key&&(e.preventDefault(),e.stopPropagation(),E(1))}}),[E,a,w]),M=th({placement:"bottom-start",whileElementsMounted:ew});return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("div",{className:g()(np().rack,r,{[np().hidden]:O}),ref:C,style:{fontSize:x},onPaste:j,children:f.map((e,t)=>{let{character:r,tile:o}=e;return(0,y.jsx)(nf,{activeIndexRef:h,character:r,className:g()(np().tile,{[np().sharpLeft]:0!==t,[np().sharpRight]:t!==f.length-1}),index:t,inputRef:p[t],size:n,tile:o,onChange:S,onKeyDown:R,onFocus:k},t)})}),O&&(0,y.jsx)(tu,{children:(0,y.jsx)(nc,{ref:M.refs.setFloating,style:{position:M.strategy,top:M.y?M.y-s:0,left:null!==(t=M.x)&&void 0!==t?t:0},value:b,onBlur:()=>v(!1),onChange:e=>_(e.target.value),onSubmit:()=>v(!1)})})]})};var nm=r(1890),ny=r.n(nm);let nv=e=>{let{checked:t,children:r,className:n,disabled:o,name:a,value:i,onChange:l}=e;return(0,y.jsxs)("label",{className:g()(ny().radio,n,{[ny().checked]:t}),children:[(0,y.jsx)("input",{checked:t,className:ny().input,disabled:o,name:a,type:"radio",value:i,onChange:l}),(0,y.jsx)("div",{className:ny().icon}),(0,y.jsx)("div",{className:ny().content,children:r})]})};var ng=nv,nb=r(7462);function n_(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nw(e,t){return(nw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var nx=function(e,t){return e===t},nO=function(e,t){void 0===t&&(t=nx);var r,n,o=[],a=!1,i=function(e,r){return t(e,o[r])};return function(){for(var t=arguments.length,l=Array(t),c=0;c<t;c++)l[c]=arguments[c];return a&&r===this&&l.length===o.length&&l.every(i)||(n=e.apply(this,l),a=!0,r=this,o=l),n}},nC="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function nE(e){cancelAnimationFrame(e.id)}var nS=-1;function nj(e){if(void 0===e&&(e=!1),-1===nS||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),nS=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return nS}var nk=null;function nR(e){if(void 0===e&&(e=!1),null===nk||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",r.direction="rtl";var n=document.createElement("div"),o=n.style;o.width="100px",o.height="100px",t.appendChild(n),document.body.appendChild(t),t.scrollLeft>0?nk="positive-descending":(t.scrollLeft=1,nk=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t)}return nk}var nM=function(e,t,r,n){var o,a,i;if("column"===e?(o=n.columnMetadataMap,a=t.columnWidth,i=n.lastMeasuredColumnIndex):(o=n.rowMetadataMap,a=t.rowHeight,i=n.lastMeasuredRowIndex),r>i){var l=0;if(i>=0){var c=o[i];l=c.offset+c.size}for(var s=i+1;s<=r;s++){var u=a(s);o[s]={offset:l,size:u},l+=u}"column"===e?n.lastMeasuredColumnIndex=r:n.lastMeasuredRowIndex=r}return o[r]},nN=function(e,t){return e},nA=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},nT=function(e,t,r){var n=e.itemSize,o=r.itemMetadataMap,a=r.lastMeasuredIndex;if(t>a){var i=0;if(a>=0){var l=o[a];i=l.offset+l.size}for(var c=a+1;c<=t;c++){var s=n(c);o[c]={offset:i,size:s},i+=s}r.lastMeasuredIndex=t}return o[t]},nP=(l=(a={getItemOffset:function(e,t){return t*e.itemSize},getItemSize:function(e,t){return e.itemSize},getEstimatedTotalSize:function(e){var t=e.itemCount;return e.itemSize*t},getOffsetForIndexAndAlignment:function(e,t,r,n,o,a){var i=e.direction,l=e.height,c=e.itemCount,s=e.itemSize,u=e.layout,f=e.width,d="horizontal"===i||"horizontal"===u?f:l,p=Math.max(0,c*s-d),h=Math.min(p,t*s),m=Math.max(0,t*s-d+s+a);switch("smart"===r&&(r=n>=m-d&&n<=h+d?"auto":"center"),r){case"start":return h;case"end":return m;case"center":var y=Math.round(m+(h-m)/2);if(y<Math.ceil(d/2))return 0;if(y>p+Math.floor(d/2))return p;return y;default:if(n>=m&&n<=h)return n;if(n<m)return m;return h}},getStartIndexForOffset:function(e,t){return Math.max(0,Math.min(e.itemCount-1,Math.floor(t/e.itemSize)))},getStopIndexForStartIndex:function(e,t,r){var n=e.direction,o=e.height,a=e.itemCount,i=e.itemSize,l=e.layout,c=e.width;return Math.max(0,Math.min(a-1,t+Math.ceil((("horizontal"===n||"horizontal"===l?c:o)+r-t*i)/i)-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.itemSize}}).getItemOffset,c=a.getEstimatedTotalSize,s=a.getItemSize,u=a.getOffsetForIndexAndAlignment,f=a.getStartIndexForOffset,d=a.getStopIndexForStartIndex,p=a.initInstanceProps,h=a.shouldResetStyleCacheOnItemSizeChange,m=a.validateProps,(i=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=p(r.props,n_(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:n_(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=nO(function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})}),r._callOnScroll=void 0,r._callOnScroll=nO(function(e,t,n){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})}),r._getItemStyle=void 0,r._getItemStyle=function(e){var t,n=r.props,o=n.direction,a=n.itemSize,i=n.layout,c=r._getItemStyleCache(h&&a,h&&i,h&&o);if(c.hasOwnProperty(e))t=c[e];else{var u=l(r.props,e,r._instanceProps),f=s(r.props,e,r._instanceProps),d="horizontal"===o||"horizontal"===i,p="rtl"===o,m=d?u:0;c[e]=t={position:"absolute",left:p?void 0:m,right:p?m:void 0,top:d?0:u,height:d?"100%":f,width:d?f:"100%"}}return t},r._getItemStyleCache=void 0,r._getItemStyleCache=nO(function(e,t,r){return{}}),r._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,o=t.scrollLeft,a=t.scrollWidth;r.setState(function(e){if(e.scrollOffset===o)return null;var t=r.props.direction,i=o;if("rtl"===t)switch(nR()){case"negative":i=-o;break;case"positive-descending":i=a-n-o}return i=Math.max(0,Math.min(i,a-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<o?"forward":"backward",scrollOffset:i,scrollUpdateWasRequested:!1}},r._resetIsScrollingDebounced)},r._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.scrollHeight,a=t.scrollTop;r.setState(function(e){if(e.scrollOffset===a)return null;var t=Math.max(0,Math.min(a,o-n));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}},r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){var e,t,n;null!==r._resetIsScrollingTimeoutId&&nE(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=(e=r._resetIsScrolling,t=nC(),n={id:requestAnimationFrame(function r(){nC()-t>=150?e.call(null):n.id=requestAnimationFrame(r)})})},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},function(){r._getItemStyleCache(-1,null)})},r}(r=t).prototype=Object.create(e.prototype),r.prototype.constructor=r,nw(r,e),t.getDerivedStateFromProps=function(e,t){return nA(e,t),m(e),null};var r,n=t.prototype;return n.scrollTo=function(e){e=Math.max(0,e),this.setState(function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},n.scrollToItem=function(e,t){void 0===t&&(t="auto");var r=this.props,n=r.itemCount,o=r.layout,a=this.state.scrollOffset;e=Math.max(0,Math.min(e,n-1));var i=0;if(this._outerRef){var l=this._outerRef;i="vertical"===o?l.scrollWidth>l.clientWidth?nj():0:l.scrollHeight>l.clientHeight?nj():0}this.scrollTo(u(this.props,e,t,a,this._instanceProps,i))},n.componentDidMount=function(){var e=this.props,t=e.direction,r=e.initialScrollOffset,n=e.layout;if("number"==typeof r&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===n?o.scrollLeft=r:o.scrollTop=r}this._callPropsCallbacks()},n.componentDidUpdate=function(){var e=this.props,t=e.direction,r=e.layout,n=this.state,o=n.scrollOffset;if(n.scrollUpdateWasRequested&&null!=this._outerRef){var a=this._outerRef;if("horizontal"===t||"horizontal"===r){if("rtl"===t)switch(nR()){case"negative":a.scrollLeft=-o;break;case"positive-ascending":a.scrollLeft=o;break;default:var i=a.clientWidth,l=a.scrollWidth;a.scrollLeft=l-i-o}else a.scrollLeft=o}else a.scrollTop=o}this._callPropsCallbacks()},n.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&nE(this._resetIsScrollingTimeoutId)},n.render=function(){var e=this.props,t=e.children,r=e.className,n=e.direction,o=e.height,a=e.innerRef,i=e.innerElementType,l=e.innerTagName,s=e.itemCount,u=e.itemData,f=e.itemKey,d=void 0===f?nN:f,p=e.layout,h=e.outerElementType,m=e.outerTagName,y=e.style,v=e.useIsScrolling,g=e.width,b=this.state.isScrolling,_="horizontal"===n||"horizontal"===p,w=_?this._onScrollHorizontal:this._onScrollVertical,x=this._getRangeToRender(),O=x[0],C=x[1],E=[];if(s>0)for(var S=O;S<=C;S++)E.push((0,eO.createElement)(t,{data:u,key:d(S,u),index:S,isScrolling:v?b:void 0,style:this._getItemStyle(S)}));var j=c(this.props,this._instanceProps);return(0,eO.createElement)(h||m||"div",{className:r,onScroll:w,ref:this._outerRefSetter,style:(0,nb.Z)({position:"relative",height:o,width:g,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:n},y)},(0,eO.createElement)(i||l||"div",{children:E,ref:a,style:{height:_?"100%":j,pointerEvents:b?"none":void 0,width:_?j:"100%"}}))},n._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],r=e[1],n=e[2],o=e[3];this._callOnItemsRendered(t,r,n,o)}if("function"==typeof this.props.onScroll){var a=this.state,i=a.scrollDirection,l=a.scrollOffset,c=a.scrollUpdateWasRequested;this._callOnScroll(i,l,c)}},n._getRangeToRender=function(){var e=this.props,t=e.itemCount,r=e.overscanCount,n=this.state,o=n.isScrolling,a=n.scrollDirection,i=n.scrollOffset;if(0===t)return[0,0,0,0];var l=f(this.props,i,this._instanceProps),c=d(this.props,l,i,this._instanceProps);return[Math.max(0,l-(o&&"backward"!==a?1:Math.max(1,r))),Math.max(0,Math.min(t-1,c+(o&&"forward"!==a?1:Math.max(1,r)))),l,c]},t}(eO.PureComponent)).defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},i),nL=r(7166),nB=r.n(nL);let nI=e=>{let{className:t}=e,r=(0,tw.I0)(),n=(0,tC.qM)(),o=(0,tC.ix)(tC.QL),[a,i]=(0,eO.useState)(o),l=e=>{let t=e.target.value;i(t),(0,tj.Kj)(t)&&r(tC._C.actions.changeQuery(t))},c=e=>{e.preventDefault()};return(0,y.jsx)("form",{className:g()(nB().resultsInput,t),onSubmit:c,children:(0,y.jsx)("input",{className:nB().input,placeholder:n("results.input.placeholder"),type:"text",value:a,onChange:l})})};var nD=r(1966),nU=r(5590),nz=r.n(nU);let nW=e=>{let{column:t}=e,r=(0,tw.I0)(),n=(0,tC.qM)(),o=(0,tC.ix)(tC.R),a=tM(n(t.translationKey)),i=(0,eO.useCallback)(()=>{r(tC._C.actions.sort(t.id))},[t.id,r]);return(0,y.jsx)("button",{"aria-label":n(t.translationKey),className:g()(nz().headerButton,t.className),type:"button",onClick:i,...a,children:(0,y.jsxs)("span",{className:nz().cell,children:[(0,y.jsx)("span",{className:nz().headerButtonLabel,children:n(t.translationKey)}),o.column===t.id&&(0,y.jsxs)(y.Fragment,{children:[o.direction===nD.S.Ascending&&(0,y.jsx)(b.Nc,{className:nz().sortIcon}),o.direction===nD.S.Descending&&(0,y.jsx)(b.l,{className:nz().sortIcon})]})]})},t.id)};var nF=r(7763),nH=r.n(nF);let nV=e=>{let{children:t,className:r,translationKey:n,tooltip:o,value:a}=e,i=(0,tC.qM)(),l=(0,tC.ix)(tC.fN),c=a.toLocaleString(l),s=tM("".concat(i(n),": ").concat(o||c));return(0,y.jsx)("div",{className:g()(nz().cell,r),...s,children:t||c})},nq=e=>{let{consonants:t,vowels:r}=e,n=[{className:nz().word,id:nD.M.Word,translationKey:"common.word"},{className:nz().stat,id:nD.M.TilesCount,translationKey:"common.tiles"}];return t&&n.push({className:nz().stat,id:nD.M.ConsonantsCount,translationKey:"common.consonants"}),r&&n.push({className:nz().stat,id:nD.M.VowelsCount,translationKey:"common.vowels"}),n.push({className:nz().stat,id:nD.M.BlanksCount,translationKey:"common.blanks"},{className:nz().stat,id:nD.M.WordsCount,translationKey:"common.words"},{className:nz().points,id:nD.M.Points,translationKey:"common.points"}),n},nK=[nD.M.Word,nD.M.Points],nJ=[...nK,nD.M.BlanksCount,nD.M.WordsCount],nG=[...nK],n$=[...nK],nY=()=>{let e=(0,tC.ix)(tC.fN),t=nq(rt.q0[e]),{isLessThanXs:r,isLessThanS:n,isLessThanM:o,isLessThanL:a}=(0,tx.lS)();return r?t.filter(e=>nK.includes(e.id)):n?t.filter(e=>nJ.includes(e.id)):o?t.filter(e=>nG.includes(e.id)):a?t.filter(e=>n$.includes(e.id)):t},nZ=e=>{let{data:t,index:r,style:n}=e,{highlightedIndex:o,results:a=[],onBlur:i=tj.ZT,onClick:l=tj.ZT,onFocus:c=tj.ZT,onMouseEnter:s=tj.ZT,onMouseLeave:u=tj.ZT}=t,f=(0,eO.useRef)(null),d=nY(),p=(0,tC.ix)(tC.fN),h=(0,tC.ix)(tC.QL),{consonants:m,direction:v,separator:b,vowels:_}=rt.q0[p],w=a[r],x=(0,tC.ix)(e=>(0,tC.yJ)(e,r)),O="rtl"===v?[...w.words].reverse():w.words,C=Object.fromEntries(d.map(e=>[e.id,!0])),E=e=>l(w,e),S=e=>s(w,e),j=e=>u(w,e),k=e=>i(w,e),R=e=>c(w,e);return(0,y.jsx)("button",{"aria-label":w.word,className:g()(nz().result,{[nz().highlighted]:r===o,[nz().notMatching]:!x}),ref:f,style:n,type:"button",onBlur:k,onClick:E,onFocus:R,onMouseEnter:S,onMouseLeave:j,children:(0,y.jsxs)("span",{className:nz().resultContent,children:[C[nD.M.Word]&&(0,y.jsx)(nV,{className:nz().word,translationKey:"common.word",value:w.word,children:(0,y.jsx)(nH(),{highlightClassName:nz().highlight,searchWords:[h],textToHighlight:w.word})}),C[nD.M.TilesCount]&&(0,y.jsx)(nV,{className:nz().stat,translationKey:"common.tiles",value:w.tilesCount}),C[nD.M.ConsonantsCount]&&m&&(0,y.jsx)(nV,{className:nz().stat,translationKey:"common.consonants",value:w.consonantsCount}),C[nD.M.VowelsCount]&&_&&(0,y.jsx)(nV,{className:nz().stat,translationKey:"common.vowels",value:w.vowelsCount}),C[nD.M.BlanksCount]&&(0,y.jsx)(nV,{className:nz().stat,translationKey:"common.blanks",value:w.blanksCount}),C[nD.M.WordsCount]&&(0,y.jsx)(nV,{className:nz().stat,translationKey:"common.words",tooltip:"".concat(w.wordsCount.toLocaleString(p)," (").concat(O.join(b),")"),value:w.wordsCount}),C[nD.M.Points]&&(0,y.jsx)(nV,{className:nz().points,translationKey:"common.points",value:w.points})]})})},nX=e=>{let{className:t}=e,r=(0,tw.I0)(),n=(0,tC.qM)(),o=(0,tC.ix)(tC.xU),a=(0,tC.ix)(tC.QB),i=(0,tC.ix)(tC.Mj),l=a.some(e=>null!==e),c=()=>{r(tC.TP.actions.submit())};return(0,y.jsx)(tL,{"aria-label":n("results.solve"),className:t,disabled:o||!i||!l,Icon:b.HN,type:"submit",variant:"primary",onClick:c,children:n("results.solve")})},nQ=e=>{let{callbacks:t,className:r,highlightedIndex:n}=e,o=(0,tC.qM)(),{resultsHeight:a,resultsWidth:i}=(0,tx.Ft)(),l=(0,tC.ix)(tC.fN),{direction:c}=rt.q0[l],s=(0,tC.ix)(tC.x5),u=(0,tC.ix)(tC.xU),f=(0,tC.ix)(tC.Mj),d=(0,tC.ix)(tC.Rn),p=(0,eO.useMemo)(()=>({...t,highlightedIndex:n,results:s}),[t,n,s]),[h,m]=(0,eO.useState)(null),v=nY(),b=(0,tx.dU)("number"==typeof n?n:0),_=void 0===d&&void 0!==s,w=_&&s.length>0&&!f,x=a-tO.$L-(w?tO.kD:0)-2*tO.YF,O=i-2*tO.YF;return(0,eO.useEffect)(()=>{let e=globalThis.setTimeout(()=>{h&&h.scrollToItem(b.current,"center")},0);return()=>{globalThis.clearTimeout(e)}},[s,h,b]),(0,y.jsxs)("div",{className:g()(nz().results,r),children:[(0,y.jsx)("div",{className:nz().header,children:v.map(e=>(0,y.jsx)(nW,{column:e},e.id))}),(0,y.jsxs)("div",{className:nz().content,children:[void 0!==d&&(0,y.jsx)(r_,{className:nz().emptyState,variant:"error",children:d.message}),void 0===d&&void 0===s&&(0,y.jsxs)(r_,{className:nz().emptyState,variant:"info",children:[o("results.empty-state.uninitialized"),(0,y.jsx)(nX,{className:nz().solveButton})]}),_&&(0,y.jsxs)(y.Fragment,{children:[f&&(0,y.jsxs)(r_,{className:nz().emptyState,variant:"info",children:[o("results.empty-state.outdated"),(0,y.jsx)(nX,{className:nz().solveButton})]}),!f&&0===s.length&&(0,y.jsx)(r_,{className:nz().emptyState,variant:"warning",children:o("results.empty-state.no-results")}),!f&&s.length>0&&(0,y.jsx)("div",{className:nz().listContainer,children:(0,y.jsx)(nP,{className:g()(nz().list,{[nz().outdated]:f}),direction:c,height:x,itemCount:s.length,itemData:p,itemSize:tO.rx,ref:m,width:O,children:nZ})})]})]}),w&&(0,y.jsx)(nI,{className:nz().input}),u&&(0,y.jsx)(rC,{})]})};var n0=nQ;let n1={color:"transparent",pointerEvents:"none",position:"absolute",userSelect:"none",transform:"translateY(-9999px)"},n2=()=>(0,y.jsx)("p",{style:n1,children:"Scrabble Solver 2 is a free and open-source analysis tool for Scrabble and Literaki. Quickly find top scoring words using given letters and board state. Available in English, French, German, Polish & Spanish. Source code is available on GitHub - contributions are welcome!"});var n5=n2,n6=r(4053),n3=r.n(n6);let n4=e=>{let{className:t}=e,r=(0,tw.I0)(),n=(0,tC.qM)(),o=(0,tC.ix)(tC.Xk),a=(0,tC.ix)(tC.Mj),i=()=>{o&&r(tC._C.actions.applyResult(o))};return(0,y.jsx)(tL,{"aria-label":n("results.insert"),className:g()(n3().insertButton,t),disabled:a||!o,Icon:b.Jr,iconClassName:n3().icon,type:"submit",variant:"primary",onClick:i})};var n8=r(1285),n7=r.n(n8);let n9=e=>{let{className:t}=e,r=(0,tC.qM)(),n=r("common.loading");return(0,y.jsx)("div",{"aria-label":n,className:g()(n7().spinner,t),role:"status"})};var oe=r(7381),ot=r.n(oe);let or=e=>{let{className:t,onResultClick:r,...n}=e,o=(0,tw.I0)(),a=(0,tC.qM)(),i=(0,tC.ix)(tC.fN),l=(0,tC.ix)(tC.xU),c=(0,tC.ix)(tC.Mj),s=(0,tC.ix)(tC.x5),u=(0,tC.ix)(tC.Xk),f=u&&s?s.findIndex(e=>e.id===u.id):-1,d=c||!u,p=!s||f<=0||d,h=!s||f>=s.length-1||d,m=()=>{if(!h){let e=s[f+1];o(tC._C.actions.changeResultCandidate(e))}},v=()=>{if(!p){let e=s[f-1];o(tC._C.actions.changeResultCandidate(e))}};return(0,y.jsxs)("div",{className:g()(ot().resultCandidatePicker,t),...n,children:[(0,y.jsxs)("div",{className:g()(ot().buttons,{[ot().bothEnabled]:!p&&!h}),children:[(0,y.jsx)(tL,{"aria-label":a("common.previous"),className:ot().button,disabled:p,Icon:b.s$,onClick:v}),(0,y.jsx)(tL,{"aria-label":a("common.next"),className:ot().button,disabled:h,Icon:b._Q,onClick:m})]}),(0,y.jsxs)("button",{"aria-label":a("results"),className:ot().resultCandidate,disabled:d,type:"button",onClick:r,children:[u&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("div",{className:ot().points,children:u.points.toLocaleString(i)}),(0,y.jsx)("div",{className:ot().word,children:u.word})]}),!u&&(0,y.jsx)("div",{className:ot().word,children:" "}),(0,y.jsxs)("div",{className:ot().iconContainer,children:[l&&(0,y.jsx)(n9,{className:ot().loading}),!l&&(0,y.jsx)(b._M,{className:ot().icon})]})]}),(0,y.jsx)(n4,{className:ot().insert})]})};var on=r(5076),oo=r.n(on);let oa=e=>{let{className:t,onShowResults:r}=e,n=(0,tw.I0)(),o=(0,tC.qM)(),a=(0,tx.YQ)(),{maxControlsWidth:i,showCompactControls:l,tileSize:c}=(0,tx.Ft)(),s=(0,tC.ix)(tC.Rn),u=(0,tC.ix)(tC.Mj),f=(0,tC.ix)(tC.Xk),d=(0,tC.ix)(tC.x5),[p]=d||[],h=(0,eO.useMemo)(()=>({onClick:e=>{e===f?n(tC._C.actions.applyResult(e)):n(tC._C.actions.changeResultCandidate(e))}}),[n,f]),m=(0,eO.useMemo)(()=>({onBlur:()=>{n(tC._C.actions.changeResultCandidate(null))},onClick:e=>{n(tC._C.actions.applyResult(e))},onFocus:e=>{n(tC._C.actions.changeResultCandidate(e))},onMouseEnter:e=>{n(tC._C.actions.changeResultCandidate(e))},onMouseLeave:()=>{n(tC._C.actions.changeResultCandidate(null))}}),[n]),v=e=>{e.preventDefault(),n(tC.TP.actions.submit())};return(0,eO.useEffect)(()=>{l&&p&&!u&&n(tC._C.actions.changeResultCandidate(p))},[p,n,l,u]),(0,y.jsxs)("div",{className:g()(oo().solver,t),children:[(0,y.jsx)("div",{className:oo().container,children:(0,y.jsxs)("div",{className:oo().content,children:[(0,y.jsxs)("form",{className:oo().boardContainer,onSubmit:v,children:[(0,y.jsx)(ro,{className:oo().board}),(0,y.jsx)("input",{className:oo().submitInput,tabIndex:-1,type:"submit"})]}),(0,y.jsxs)("div",{className:oo().column,children:[(0,y.jsx)(n0,{callbacks:a?h:m,className:oo().results}),(0,y.jsxs)("div",{className:oo().dictionaryContainer,children:[(0,y.jsx)(rk,{className:oo().dictionary}),(0,y.jsx)(rA,{className:oo().dictionaryInput})]})]})]})}),(0,y.jsx)("div",{className:oo().bottomContainer,children:(0,y.jsxs)("div",{className:oo().bottomContent,children:[(0,y.jsxs)("form",{onSubmit:v,children:[(0,y.jsx)(nh,{className:oo().rack,tileSize:c}),(0,y.jsx)("input",{className:oo().submitInput,tabIndex:-1,type:"submit"})]}),l&&(0,y.jsxs)("div",{className:oo().controls,style:{maxWidth:i},children:[(0,y.jsx)(or,{onResultClick:r}),s&&(0,y.jsx)(O,{className:oo().emptyState,variant:"error",children:s.message}),d&&0===d.length&&!u&&(0,y.jsx)(O,{className:oo().emptyState,variant:"warning",children:o("results.empty-state.no-results")})]})]})})]})};var oi=(0,eO.memo)(oa)},827:function(e,t,r){"use strict";r.d(t,{Ft:function(){return v},gm:function(){return _},qR:function(){return x},YQ:function(){return s},ZK:function(){return C},dU:function(){return S},_:function(){return k},lS:function(){return p},vI:function(){return z}});var n=r(4534),o=r(4472),a=r(7294);let i=(e,t)=>void 0!==t?t:window.matchMedia(e).matches,l=(e,t)=>{let[r,n]=(0,a.useState)(i(e,t));return(0,a.useEffect)(()=>{let t=window.matchMedia(e),r=()=>{n(t.matches)};return n(t.matches),t.addEventListener("change",r),()=>{t.removeEventListener("change",r)}},[e]),r},c=()=>l("(hover: none)",!1);var s=c,u=r(3814);let f=(e,t)=>{let r=(0,u.buildMediaQuery)(n.j$,e);return l(r,t)},d=()=>{let e=f("<xs"),t=f("<s"),r=f("<m"),n=f("<l"),o=f("<xl");return{isLessThanXs:e,isLessThanS:t,isLessThanM:r,isLessThanL:n,isLessThanXl:o}};var p=d;let h=e=>{(0,a.useEffect)(()=>(window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}),[e])},m=()=>{let[e,t]=(0,a.useState)(window.innerHeight),[r,n]=(0,a.useState)(window.innerWidth),o=(0,a.useCallback)(()=>{t(window.innerHeight),n(window.innerWidth)},[]);return h(o),{viewportHeight:e,viewportWidth:r}},y=()=>{let{viewportHeight:e,viewportWidth:t}=m(),r=(0,o.ix)(o.$o),a=s(),{isLessThanXs:i,isLessThanS:l,isLessThanM:c,isLessThanL:u,isLessThanXl:f}=p(),d=f?n.op:n.tr,h=!u,y=h?n.pt:0,v=u?n.t:n.y7,g=2*n.t$+v,b=t-y-(h?d:0)-2*d,_=Math.min((b-2*n.YF)/r.maximumCharactersCount,n.$M),w=u?n.FZ+d:0,x=c?Number.POSITIVE_INFINITY:Math.max(e-g-(w+_+2*d),0),O=(b-(r.boardWidth+1)*n.YF)/r.boardWidth,C=(x-(r.boardHeight+1)*n.YF)/r.boardHeight,E=Math.min(Math.max(Math.min(O,C),n.oj),n.Kw),S=(E+n.YF)*r.boardWidth+n.YF,j=_*r.maximumCharactersCount+2*n.YF,k=u?n.Rh:n.n6,R=l?t:n.iF,M=u?e-k-n.FZ-n.PV-5*d:S-d-k,N=_*r.maximumCharactersCount;return{actionsWidth:2*n.FZ-n.YF,animateTile:!i,boardSize:S,cellSize:E,dictionaryHeight:k,isModalFullWidth:l,logoHeight:v,logoWidth:v*n.pc,maxControlsWidth:j,rackHeight:_,rackWidth:N,resultsHeight:M,resultsWidth:u?R-2*d:n.pt,showCompactControls:!h,showKeyMap:!a,showResultsInModal:u,showShortNav:l,showTilePoints:!i,tileSize:_}};var v=y,g=r(8954);let b=e=>{(0,a.useEffect)(()=>{let t=document.body.parentElement;if(!t)return g.ZT;let r=t.dir;return t.dir=e,()=>{t.dir=r}},[e])};var _=b;let w=e=>(0,a.useEffect)(e,[]);var x=w;let O=e=>{(0,a.useEffect)(()=>{let t=document.body.parentElement;if(!t)return g.ZT;let r=t.lang;return t.lang=e,()=>{t.lang=r}},[e])};var C=O;let E=e=>{let t=(0,a.useRef)(e);return t.current=e,t};var S=E;let j=()=>{let e=(0,o.ix)(o.uz),t=(0,o.ix)(o.ZO),r=(0,o.ix)(o.md),n=(0,o.ix)(o.Ub),i=(0,o.ix)(o.fN),l=(0,o.ix)(o.QB);(0,a.useEffect)(()=>{e&&o.Xb.setAutoGroupTiles(e)},[e]),(0,a.useEffect)(()=>{t&&o.Xb.setBoard(t)},[t]),(0,a.useEffect)(()=>{r&&o.Xb.setConfigId(r)},[r]),(0,a.useEffect)(()=>{n&&o.Xb.setInputMode(n)},[n]),(0,a.useEffect)(()=>{i&&o.Xb.setLocale(i)},[i]),(0,a.useEffect)(()=>{l&&o.Xb.setRack(l)},[l])};var k=j,R=r(5893),M=r(745),N=r(3935),A=r(5697),T=r.n(A),P=!!("undefined"!=typeof window&&window.document&&window.document.createElement),L=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),B=function(e){function t(){return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),L(t,[{key:"componentWillUnmount",value:function(){this.defaultNode&&document.body.removeChild(this.defaultNode),this.defaultNode=null}},{key:"render",value:function(){return P?(this.props.node||this.defaultNode||(this.defaultNode=document.createElement("div"),document.body.appendChild(this.defaultNode)),N.createPortal(this.props.children,this.props.node||this.defaultNode)):null}}]),t}(a.Component);B.propTypes={children:T().node.isRequired,node:T().any};var I=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),D=function(e){function t(){return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),I(t,[{key:"componentDidMount",value:function(){this.renderPortal()}},{key:"componentDidUpdate",value:function(e){this.renderPortal()}},{key:"componentWillUnmount",value:function(){N.unmountComponentAtNode(this.defaultNode||this.props.node),this.defaultNode&&document.body.removeChild(this.defaultNode),this.defaultNode=null,this.portal=null}},{key:"renderPortal",value:function(e){this.props.node||this.defaultNode||(this.defaultNode=document.createElement("div"),document.body.appendChild(this.defaultNode));var t=this.props.children;"function"==typeof this.props.children.type&&(t=a.cloneElement(this.props.children)),this.portal=N.unstable_renderSubtreeIntoContainer(this,t,this.props.node||this.defaultNode)}},{key:"render",value:function(){return null}}]),t}(a.Component);D.propTypes={children:T().node.isRequired,node:T().any};var U=N.createPortal?B:D,z=g.J8?function(e){let{disabled:t=!1,tagName:r="div"}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(0,a.useRef)(null);(0,a.useLayoutEffect)(()=>{if(t)return g.ZT;let e=document.createElement(r);document.body.appendChild(e);let o=(0,M.createRoot)(e);return n.current=o,()=>{globalThis.setTimeout(()=>{n.current=null,o.unmount(),e.remove()},0)}},[t,r]),(0,a.useLayoutEffect)(()=>{n.current&&n.current.render((0,R.jsx)(U,{children:e}))},[e,t,n])}:g.ZT},6743:function(e,t,r){"use strict";r.d(t,{q0:function(){return c},Hm:function(){return s},ZP:function(){return v}});var n=r(7618),o=r(1266),a=r(3186),i=r(2966),l=r.n(i);let c={[o.Locale.DE_DE]:{comma:n.COMMA_LATIN,consonants:!0,direction:"ltr",separator:"".concat(n.COMMA_LATIN," "),vowels:!0},[o.Locale.EN_GB]:{comma:n.COMMA_LATIN,consonants:!0,direction:"ltr",separator:"".concat(n.COMMA_LATIN," "),vowels:!0},[o.Locale.EN_US]:{comma:n.COMMA_LATIN,consonants:!0,direction:"ltr",separator:"".concat(n.COMMA_LATIN," "),vowels:!0},[o.Locale.ES_ES]:{comma:n.COMMA_LATIN,consonants:!0,direction:"ltr",separator:"".concat(n.COMMA_LATIN," "),vowels:!0},[o.Locale.FA_IR]:{comma:n.COMMA_ARABIC,consonants:!1,direction:"rtl",separator:"".concat(n.COMMA_ARABIC," "),vowels:!1},[o.Locale.FR_FR]:{comma:n.COMMA_LATIN,consonants:!0,direction:"ltr",separator:"".concat(n.COMMA_LATIN," "),vowels:!0},[o.Locale.PL_PL]:{comma:n.COMMA_LATIN,consonants:!0,direction:"ltr",separator:"".concat(n.COMMA_LATIN," "),vowels:!0}},s={[o.Locale.DE_DE]:{className:l().de,Icon:a.rV,label:"Deutsch",name:"German",value:o.Locale.DE_DE},[o.Locale.EN_GB]:{className:l().gb,Icon:a.eP,label:"English (GB)",name:"English (GB)",value:o.Locale.EN_GB},[o.Locale.EN_US]:{className:l().us,Icon:a.YK,label:"English (US)",name:"English (US)",value:o.Locale.EN_US},[o.Locale.ES_ES]:{className:l().es,Icon:a.d,label:"Espa\xf1ol",name:"Spanish",value:o.Locale.ES_ES},[o.Locale.FA_IR]:{className:l().fa,Icon:a.$M,label:"فارسی",name:"Persian",value:o.Locale.FA_IR},[o.Locale.FR_FR]:{className:l().fr,Icon:a.OV,label:"Fran\xe7ais",name:"French",value:o.Locale.FR_FR},[o.Locale.PL_PL]:{className:l().pl,Icon:a.fd,label:"Polski",name:"Polish",value:o.Locale.PL_PL}};var u=JSON.parse('{"cell.enter-word":"Wort eingeben","cell.filter-cell":"Zielort","cell.set-blank":"Als Blanko markieren","cell.set-not-blank":"Nicht als Blanko markieren","cell.tile.location":"Brett: Stein ({{x}}, {{y}})","cell.toggle-direction":"Schreibrichtung","common.blanks":"Blankos","common.clear":"L\xf6schen","common.close":"Schlie\xdfen","common.consonants":"Konsonanten","common.loading":"Laden","common.next":"Weiter","common.points":"Punkte","common.previous":"Zur\xfcck","common.tiles":"Steine","common.two-letter-tiles":"Zwei-Buchstaben","common.vowels":"Vokale","common.word":"Wort","common.words":"W\xf6rter","dictionary":"W\xf6rterbuch","dictionary.empty-state.no-definitions":"Wort existiert im W\xf6rterbuch aber hat keine Definition.","dictionary.empty-state.no-results":"Wort kann nicht im W\xf6rterbuch gefunden werden.","dictionary.empty-state.not-allowed":"Dieses Wort ist nicht erlaubt.","dictionary.empty-state.uninitialized":"Die W\xf6rterbuchd\xe9finition wird hier angezeigt.","dictionary.input.placeholder":"Durchsuche W\xf6rterbuch…","dictionary.input.title":"Durch Kommas getrennte W\xf6rter","empty-state.error":"Fehler","empty-state.info":"Info","empty-state.success":"Juhuu!","empty-state.warning":"Oje!","github":"Schau dieses Projekt auf GitHub an","keyMap":"Tastaturk\xfcrzel","keyMap.board":"Brett","keyMap.board.toggle-blank":"Als Blanko markieren / aufheben","keyMap.board.toggle-direction":"Schreibrichtung umschalten","keyMap.board-and-rack":"Brett & Ablage","keyMap.board-and-rack.insert-two-letter-tile":"Zwei-Buchstaben Stein hinzuf\xfcgen","keyMap.board-and-rack.navigate":"Navigieren","keyMap.board-and-rack.remove-tile":"Stein entfernen","keyMap.board-and-rack.submit":"L\xf6sen starten","keyMap.rack":"Ablage","keyMap.rack.insert-blank":"Blanko hinzuf\xfcgen (Leertaste)","menu":"Men\xfc","rack.placeholder":"Steine…","rack.tile.location":"Ablage: Stein ({{index}})","rack.touchscreen.placeholder":"Steine…","remaining-tiles":"Restliche Steine","results":"Ergebnisse","results.empty-state.no-results":"Keine Ergebnisse - kein Wort konnte generiert werden.","results.empty-state.outdated":"Ergebnisse sind alt.","results.empty-state.uninitialized":"W\xf6rter die aus deinen Buchstaben generiert wurden erscheinen hier.","results.input.placeholder":"Suchergebnisse... (RegExp)","results.insert":"Hinzuf\xfcgen","results.preview":"Vorschau","results.solve":"L\xf6sen","settings":"Einstellungen","settings.autoGroupTiles":"Restliche Steine gruppieren","settings.autoGroupTiles.left":"Linke Seite","settings.autoGroupTiles.right":"Rechte Seite","settings.autoGroupTiles.null":"Nicht gruppieren","settings.game":"Spiel","settings.inputMode":"Eingabemodus","settings.inputMode.keyboard":"Tastatur","settings.inputMode.touchscreen":"Touchscreen","settings.language":"Sprache","words":"Gebildete W\xf6rter","words.invalid":"Falsch","words.valid":"Korrekt"}'),f=JSON.parse('{"cell.enter-word":"Enter word","cell.filter-cell":"Target destination","cell.set-blank":"Mark it a blank","cell.set-not-blank":"Mark it not a blank","cell.tile.location":"Board: tile ({{x}}, {{y}})","cell.toggle-direction":"Typing direction","common.blanks":"Blanks","common.clear":"Clear","common.close":"Close","common.consonants":"Consonants","common.loading":"Loading","common.next":"Next","common.points":"Points","common.previous":"Previous","common.tiles":"Tiles","common.two-letter-tiles":"Two-letter","common.vowels":"Vowels","common.word":"Word","common.words":"Words","dictionary":"Dictionary","dictionary.empty-state.no-definitions":"Word exists in the dictionary but it does not have a definition.","dictionary.empty-state.no-results":"Unable to find word definition in the dictionary.","dictionary.empty-state.not-allowed":"This word is not allowed.","dictionary.empty-state.uninitialized":"Word definition will be shown here.","dictionary.input.placeholder":"Search dictionary…","dictionary.input.title":"Comma-separated words","empty-state.error":"Error","empty-state.info":"Info","empty-state.success":"Yeah!","empty-state.warning":"Oops!","github":"See this project on GitHub","keyMap":"Keyboard shortcuts","keyMap.board":"Board","keyMap.board.toggle-blank":"Mark/unmark tile as a blank","keyMap.board.toggle-direction":"Toggle typing direction","keyMap.board-and-rack":"Board & rack","keyMap.board-and-rack.insert-two-letter-tile":"Insert two-letter tile","keyMap.board-and-rack.navigate":"Navigate","keyMap.board-and-rack.remove-tile":"Remove tile","keyMap.board-and-rack.submit":"Start solving","keyMap.rack":"Rack","keyMap.rack.insert-blank":"Insert blank (spacebar)","menu":"Menu","rack.placeholder":"Letters","rack.tile.location":"Rack: tile ({{index}})","rack.touchscreen.placeholder":"Letters…","remaining-tiles":"Remaining tiles","results":"Results","results.empty-state.no-results":"No results - unable to generate any words.","results.empty-state.outdated":"Results are outdated.","results.empty-state.uninitialized":"Words generated from your letters will be shown here.","results.input.placeholder":"Search results... (RegExp)","results.insert":"Insert","results.preview":"Preview","results.solve":"Solve","settings":"Settings","settings.autoGroupTiles":"Group remaining tiles","settings.autoGroupTiles.left":"On the left","settings.autoGroupTiles.right":"On the right","settings.autoGroupTiles.null":"Do not group","settings.game":"Game","settings.inputMode":"Input mode","settings.inputMode.keyboard":"Keyboard","settings.inputMode.touchscreen":"Touchscreen","settings.language":"Language","words":"Created words","words.invalid":"Invalid","words.valid":"Valid"}'),d=JSON.parse('{"cell.enter-word":"Ingresar palabra","cell.filter-cell":"Destino objetivo","cell.set-blank":"Marcar como en blanco","cell.set-not-blank":"Marcar como no en blanco","cell.tile.location":"Tablero: espacio ({{x}}, {{y}})","cell.toggle-direction":"Direcci\xf3n de escritura","common.blanks":"Blancos","common.clear":"Borrar","common.close":"Cerrar","common.consonants":"Consonantes","common.loading":"Cargando","common.next":"Siguiente","common.points":"Puntos","common.previous":"Anterior","common.tiles":"Longitud","common.two-letter-tiles":"Dos letras","common.vowels":"Vocales","common.word":"Palabra","common.words":"Palabras","dictionary":"Diccionario","dictionary.empty-state.no-definitions":"La palabra existe en el diccionario pero no tiene una definici\xf3n.","dictionary.empty-state.no-results":"No se puede encontrar la definici\xf3n de palabra en el diccionario.","dictionary.empty-state.not-allowed":"Esta palabra no es aceptable.","dictionary.empty-state.uninitialized":"Aqu\xed se mostrar\xe1 la definici\xf3n del diccionario.","dictionary.input.placeholder":"Busca el diccionario…","dictionary.input.title":"Palabras separadas por comas","empty-state.error":"Error","empty-state.info":"Info","empty-state.success":"S\xed!","empty-state.warning":"Vaya!","github":"Ver este proyecto en GitHub","keyMap":"Atajos de teclado","keyMap.board":"Tablero","keyMap.board.toggle-blank":"Marcar / desmarcar un espacio en blanco","keyMap.board.toggle-direction":"Alternar direcci\xf3n de escritura","keyMap.board-and-rack":"Tablero y estante","keyMap.board-and-rack.insert-two-letter-tile":"Insertar mosaico de dos letras","keyMap.board-and-rack.navigate":"Navegar","keyMap.board-and-rack.remove-tile":"Quitar Letra","keyMap.board-and-rack.submit":"Empezar a resolver","keyMap.rack":"Estante","keyMap.rack.insert-blank":"Insertar espacio en blanco (barra espaciadora)","menu":"Men\xfa","rack.placeholder":"Letras…","rack.tile.location":"Estante: espacio ({{index}})","rack.touchscreen.placeholder":"Letras… (p.ej. LLabcCHhRR)","remaining-tiles":"Casillas restantes","results":"Resultados","results.empty-state.no-results":"No hay resultados; no se pueden generar palabras","results.empty-state.outdated":"Los resultados est\xe1n desactualizados.","results.empty-state.uninitialized":"Aqu\xed se mostrar\xe1n las palabras generadas a partir de sus letras.","results.input.placeholder":"Busque una soluci\xf3n... (RegExp)","results.insert":"Insertar","results.preview":"Vista previa","results.solve":"Resolver","settings":"Configuraci\xf3n","settings.autoGroupTiles":"Agrupar casillas restantes","settings.autoGroupTiles.left":"A la izquierda","settings.autoGroupTiles.right":"A la derecha","settings.autoGroupTiles.null":"No agrupar","settings.game":"Juego","settings.inputMode":"Modo de entrada","settings.inputMode.keyboard":"Teclado","settings.inputMode.touchscreen":"Pantalla t\xe1ctil","settings.language":"Idioma","words":"Palabras creadas","words.invalid":"Incorrecto","words.valid":"Correcto"}'),p=JSON.parse('{"cell.enter-word":"کلمه را وارد کنید","cell.filter-cell":"مقصد","cell.set-blank":"علامت گذاری به عنوان خالی","cell.set-not-blank":"علامت گذاری به عنوان غیر خالی","cell.tile.location":"({{x}}، {{y}}) کاشی: صفحه","cell.toggle-direction":"جهت تایپ","common.blanks":"خالی","common.clear":"پاک کردن","common.close":"بستن","common.consonants":"حروف صامت","common.loading":"در حال بارگزاری","common.next":"بعدی","common.points":"امتیازات","common.previous":"قبلی","common.tiles":"کاشی ها","common.two-letter-tiles":"دو حرفی","common.vowels":"حروف مصوت","common.word":"کلمه","common.words":"کلمات","dictionary":"فرهنگ لغت","dictionary.empty-state.no-definitions":"کلمه در فرهنگ لغت وجود دارد، ولی معنایی برای آن ثبت نشده است.","dictionary.empty-state.no-results":"کلمه در فرهنگ لغت یافت نشد.","dictionary.empty-state.not-allowed":"این کلمه مجاز نیست.","dictionary.empty-state.uninitialized":"معنی لغت اینجا نمایش داده خواهد شد.","dictionary.input.placeholder":"جستجو در فرهنگ لغت …","dictionary.input.title":"کلمات جدا شده با کاما","empty-state.error":"خطا","empty-state.info":"اطلاعات","empty-state.success":"حله!","empty-state.warning":"اوووخ!","github":"به این پروژه در گیتهاب سر بزنید","keyMap":"میانبر های کیبورد","keyMap.board":"صفحه","keyMap.board.toggle-blank":"علامت/عدم علامت گذاری کاشی به عنوان خالی","keyMap.board.toggle-direction":"تغییر جهت تایپ","keyMap.board-and-rack":"صفحه و طاقچه","keyMap.board-and-rack.insert-two-letter-tile":"وارد کردن کاشی دو حرفی","keyMap.board-and-rack.navigate":"حرکت","keyMap.board-and-rack.remove-tile":"حذف کاشی","keyMap.board-and-rack.submit":"حل کردن","keyMap.rack":"طاقچه","keyMap.rack.insert-blank":"وارد کردن کاشی خالی (دکمه اسپیس)","menu":"منو","rack.placeholder":"لیستحرف","rack.tile.location":"({{index}}) کاشی: طاقچه","rack.touchscreen.placeholder":"لیستحرف…","remaining-tiles":"کاشی های باقی مانده","results":"نتایج","results.empty-state.no-results":"کلمه قابل استفاده پیدا نشد.","results.empty-state.outdated":"نتایج به روز نیستند، برای بروز.","results.empty-state.uninitialized":"کلمات تولید شده از حروف شما اینجا نمایش داده خواهد شد.","results.input.placeholder":"جستجو در نتایج (RegExp)","results.insert":"وارد کردن","results.preview":"پیش نمایش","results.solve":"حل کن","settings":"تنظیمات","settings.autoGroupTiles":"کاشی های باقی مانده ی طاقچه را کنار هم قرار بده","settings.autoGroupTiles.left":"در سمت چپ","settings.autoGroupTiles.right":"در سمت راست","settings.autoGroupTiles.null":"کنار هم قرار نده","settings.game":"بازی","settings.inputMode":"حالت ورودی","settings.inputMode.keyboard":"صفحه کلید","settings.inputMode.touchscreen":"صفحه لمسی","settings.language":"زبان","words":"کلمات ساخته شده","words.invalid":"نا معتبر","words.valid":"معتبر"}'),h=JSON.parse('{"cell.enter-word":"Entrez un mot","cell.filter-cell":"Destination cible","cell.set-blank":"Marquer comme vide","cell.set-not-blank":"Marquer comme non vide","cell.tile.location":"Plateau: la case ({{x}}, {{y}})","cell.toggle-direction":"Direction d\'\xe9criture","common.blanks":"Cases vides","common.clear":"Effacer","common.close":"Fermer","common.consonants":"Consonnes","common.loading":"Chargement","common.next":"Suivant","common.points":"Points","common.previous":"Pr\xe9c\xe9dent","common.tiles":"Cases","common.two-letter-tiles":"Deux lettres","common.vowels":"Voyelles","common.word":"Mot","common.words":"Mots","dictionary":"Dictionnaire","dictionary.empty-state.no-definitions":"Le mot existe dans le dictionary mais n\'a pas de d\xe9finition.","dictionary.empty-state.no-results":"Impossible de trouver une d\xe9finition pour ce mot dans le dictionaire.","dictionary.empty-state.not-allowed":"Ce mot n\'est pas pas acceptable.","dictionary.empty-state.uninitialized":"La d\xe9finition dictionaire sera affich\xe9e ici.","dictionary.input.placeholder":"Rechercher dans le dictionnaire…","dictionary.input.title":"Mots s\xe9par\xe9es par des virgules","empty-state.error":"Erreur","empty-state.info":"Info","empty-state.success":"Ouais!","empty-state.warning":"Oups!","github":"Voir ce projet sur GitHub","keyMap":"Raccourcis clavier","keyMap.board":"Plateau","keyMap.board.toggle-blank":"Marqu\xe9/D\xe9marqu\xe9 la case en tant que vide","keyMap.board.toggle-direction":"Faire basculer la direction d\'\xe9criture","keyMap.board-and-rack":"Plateau & chevalet","keyMap.board-and-rack.insert-two-letter-tile":"Ins\xe9rer une tuile de deux lettres","keyMap.board-and-rack.navigate":"Naviguer","keyMap.board-and-rack.remove-tile":"Supprimer une case","keyMap.board-and-rack.submit":"Commencer la r\xe9solution","keyMap.rack":"Chevalet","keyMap.rack.insert-blank":"Inserer une case vide (spacebar)","menu":"Menu","rack.placeholder":"Lettres","rack.tile.location":"Chevalet: la case ({{index}})","rack.touchscreen.placeholder":"Lettres…","remaining-tiles":"Cases restantes","results":"R\xe9sultats","results.empty-state.no-results":"Pas de r\xe9sultats - impossible de g\xe9n\xe9rer des mots.","results.empty-state.outdated":"Les r\xe9sultats sont d\xe9pass\xe9.","results.empty-state.uninitialized":"Les mots g\xe9n\xe9r\xe9s \xe0 partir de vos lettres seront affich\xe9s ici.","results.input.placeholder":"Rechercher les r\xe9sultats... (RegExp)","results.insert":"Inserer","results.preview":"Pr\xe9visualisation","results.solve":"R\xe9soudre","settings":"Options","settings.autoGroupTiles":"Grouper les cases restantes","settings.autoGroupTiles.left":"Vers la droite","settings.autoGroupTiles.right":"Vers la gauche","settings.autoGroupTiles.null":"Ne pas grouper","settings.game":"Jeu","settings.inputMode":"Mode de saisie","settings.inputMode.keyboard":"Clavier","settings.inputMode.touchscreen":"\xc9cran tactile","settings.language":"Langue","words":"Mots cr\xe9\xe9s","words.invalid":"Incorrect","words.valid":"Corriger"}'),m=JSON.parse('{"cell.enter-word":"Wprowadź słowo","cell.filter-cell":"Miejsce docelowe","cell.set-blank":"Oznacz jako blank","cell.set-not-blank":"Oznacz jako nie blank","cell.tile.location":"Plansza: płytka ({{x}}, {{y}})","cell.toggle-direction":"Kierunek wpisywania","common.blanks":"Blanki","common.clear":"Wyczyść","common.close":"Zamknij","common.consonants":"Sp\xf3łgłoski","common.loading":"Ładowanie","common.next":"Następne","common.points":"Punkty","common.previous":"Poprzednie","common.tiles":"Płytki","common.two-letter-tiles":"Dwuliterowe","common.vowels":"Samogłoski","common.word":"Słowo","common.words":"Słowa","dictionary":"Słownik","dictionary.empty-state.no-definitions":"Słowo istnieje w słowniku ale nie posiada definicji.","dictionary.empty-state.no-results":"Nie udało się znaleźć definicji słowa w słowniku.","dictionary.empty-state.not-allowed":"To słowo nie jest dopuszczalne w grach.","dictionary.empty-state.uninitialized":"Tu zostanie wyświetlona definicja słowa.","dictionary.input.placeholder":"Szukaj w słowniku…","dictionary.input.title":"Słowa rozdzielone przecinkiem","empty-state.error":"Błąd","empty-state.info":"Info","empty-state.success":"Hurra!","empty-state.warning":"Ups!","github":"Zobacz ten projekt na GitHubie","keyMap":"Skr\xf3ty klawiszowe","keyMap.board":"Plansza","keyMap.board.toggle-blank":"Oznacz/odznacz płytkę jako blank","keyMap.board.toggle-direction":"Zmień kierunek wpisywania","keyMap.board-and-rack":"Plansza i stojak","keyMap.board-and-rack.insert-two-letter-tile":"Wstaw dwuliterową płytkę","keyMap.board-and-rack.navigate":"Nawigacja","keyMap.board-and-rack.remove-tile":"Zdejmij płytkę","keyMap.board-and-rack.submit":"Rozpocznij wyszukiwanie","keyMap.rack":"Stojak","keyMap.rack.insert-blank":"Wstaw blanka (spacja)","menu":"Menu","rack.placeholder":"Literki","rack.tile.location":"Stojak: płytka ({{index}})","rack.touchscreen.placeholder":"Literki…","remaining-tiles":"Pozostałe płytki","results":"Wyniki","results.empty-state.no-results":"Brak wynik\xf3w - nie można wygenerować żadnego słowa.","results.empty-state.outdated":"Wyniki są nieaktualne.","results.empty-state.uninitialized":"Tu zostaną wyświetlone słowa wygenerowane z Twoich liter.","results.input.placeholder":"Szukaj rozwiązania... (RegExp)","results.insert":"Wstaw","results.preview":"Podgląd","results.solve":"Rozwiąż","settings":"Opcje","settings.autoGroupTiles":"Grupuj pozostałe płytki","settings.autoGroupTiles.left":"Po lewej","settings.autoGroupTiles.right":"Po prawej","settings.autoGroupTiles.null":"Nie grupuj","settings.game":"Gra","settings.inputMode":"Tryb wpisywania","settings.inputMode.keyboard":"Klawiatura","settings.inputMode.touchscreen":"Ekran dotykowy","settings.language":"Język","words":"Utworzone słowa","words.invalid":"Niepoprawne","words.valid":"Poprawne"}');let y={[o.Locale.DE_DE]:u,[o.Locale.EN_GB]:f,[o.Locale.EN_US]:f,[o.Locale.ES_ES]:d,[o.Locale.FA_IR]:p,[o.Locale.FR_FR]:h,[o.Locale.PL_PL]:m};var v=y},3186:function(e,t,r){"use strict";r.d(t,{K5:function(){return eP},Xd:function(){return eB},ol:function(){return eD},a2:function(){return ez},PP:function(){return eF},Kz:function(){return eV},Jr:function(){return eK},_M:function(){return eG},s$:function(){return eY},_Q:function(){return eX},Oz:function(){return e0},X1:function(){return e2},Gw:function(){return e6},vK:function(){return e4},XK:function(){return e7},Gs:function(){return te},yT:function(){return tr},x_:function(){return to},YO:function(){return ti},WN:function(){return tc},rV:function(){return tu},d:function(){return td},$M:function(){return th},aR:function(){return ty},OV:function(){return tg},eP:function(){return t_},fd:function(){return tx},YK:function(){return tC},Ey:function(){return tS},UT:function(){return tk},N1:function(){return tM},KD:function(){return tA},aV:function(){return tP},xy:function(){return tB},HN:function(){return tD},l:function(){return tz},Nc:function(){return tF},bK:function(){return tV},uX:function(){return tK},Ux:function(){return tG}});var n,o,a,i,l,c,s,u,f,d,p,h,m,y,v,g,b,_,w,x,O,C,E,S,j,k,R,M,N,A,T,P,L,B,I,D,U,z,W,F,H,V,q,K,J,G,$,Y,Z,X,Q,ee,et,er,en,eo,ea,ei,el,ec,es,eu,ef,ed,ep,eh,em,ey,ev,eg,eb,e_,ew,ex,eO,eC,eE,eS,ej,ek,eR,eM,eN,eA=r(7294);function eT(){return(eT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var eP=function(e){return eA.createElement("svg",eT({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),n||(n=eA.createElement("path",{fill:"currentColor",d:"M8 1a.5.5 0 0 1 .5.5v11.793l3.146-3.147a.5.5 0 0 1 .708.708l-4 4a.5.5 0 0 1-.708 0l-4-4a.5.5 0 0 1 .708-.708L7.5 13.293V1.5A.5.5 0 0 1 8 1z"})))};function eL(){return(eL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var eB=function(e){return eA.createElement("svg",eL({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),o||(o=eA.createElement("path",{fill:"currentColor",d:"M15 8a.5.5 0 0 0-.5-.5H2.707l3.147-3.146a.5.5 0 1 0-.708-.708l-4 4a.5.5 0 0 0 0 .708l4 4a.5.5 0 0 0 .708-.708L2.707 8.5H14.5A.5.5 0 0 0 15 8z"})))};function eI(){return(eI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var eD=function(e){return eA.createElement("svg",eI({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),a||(a=eA.createElement("path",{fill:"currentColor",d:"M1 8a.5.5 0 0 1 .5-.5h11.793l-3.147-3.146a.5.5 0 0 1 .708-.708l4 4a.5.5 0 0 1 0 .708l-4 4a.5.5 0 0 1-.708-.708L13.293 8.5H1.5A.5.5 0 0 1 1 8z"})))};function eU(){return(eU=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var ez=function(e){return eA.createElement("svg",eU({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),i||(i=eA.createElement("path",{fill:"currentColor",d:"M8 15a.5.5 0 0 0 .5-.5V2.707l3.146 3.147a.5.5 0 0 0 .708-.708l-4-4a.5.5 0 0 0-.708 0l-4 4a.5.5 0 1 0 .708.708L7.5 2.707V14.5a.5.5 0 0 0 .5.5z"})))};function eW(){return(eW=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var eF=function(e){return eA.createElement("svg",eW({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),l||(l=eA.createElement("path",{fill:"currentColor",d:"M8.5 2.687c.654-.689 1.782-.886 3.112-.752 1.234.124 2.503.523 3.388.893v9.923c-.918-.35-2.107-.692-3.287-.81-1.094-.111-2.278-.039-3.213.492V2.687zM8 1.783C7.015.936 5.587.81 4.287.94c-1.514.153-3.042.672-3.994 1.105A.5.5 0 0 0 0 2.5v11a.5.5 0 0 0 .707.455c.882-.4 2.303-.881 3.68-1.02 1.409-.142 2.59.087 3.223.877a.5.5 0 0 0 .78 0c.633-.79 1.814-1.019 3.222-.877 1.378.139 2.8.62 3.681 1.02A.5.5 0 0 0 16 13.5v-11a.5.5 0 0 0-.293-.455c-.952-.433-2.48-.952-3.994-1.105C10.413.809 8.985.936 8 1.783z"})))};function eH(){return(eH=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var eV=function(e){return eA.createElement("svg",eH({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),c||(c=eA.createElement("path",{fill:"currentColor",d:"M14.5 3a.5.5 0 0 1 .5.5v9a.5.5 0 0 1-.5.5h-13a.5.5 0 0 1-.5-.5v-9a.5.5 0 0 1 .5-.5h13zm-13-1A1.5 1.5 0 0 0 0 3.5v9A1.5 1.5 0 0 0 1.5 14h13a1.5 1.5 0 0 0 1.5-1.5v-9A1.5 1.5 0 0 0 14.5 2h-13z"})),s||(s=eA.createElement("path",{fill:"currentColor",d:"M7 5.5a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 0 1h-5a.5.5 0 0 1-.5-.5zm-1.496-.854a.5.5 0 0 1 0 .708l-1.5 1.5a.5.5 0 0 1-.708 0l-.5-.5a.5.5 0 1 1 .708-.708l.146.147 1.146-1.147a.5.5 0 0 1 .708 0zM7 9.5a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 0 1h-5a.5.5 0 0 1-.5-.5zm-1.496-.854a.5.5 0 0 1 0 .708l-1.5 1.5a.5.5 0 0 1-.708 0l-.5-.5a.5.5 0 0 1 .708-.708l.146.147 1.146-1.147a.5.5 0 0 1 .708 0z"})))};function eq(){return(eq=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var eK=function(e){return eA.createElement("svg",eq({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),u||(u=eA.createElement("path",{fill:"currentColor",d:"M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z"})))};function eJ(){return(eJ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var eG=function(e){return eA.createElement("svg",eJ({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),f||(f=eA.createElement("path",{fill:"currentColor",d:"M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z"})))};function e$(){return(e$=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var eY=function(e){return eA.createElement("svg",e$({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),d||(d=eA.createElement("path",{fill:"currentColor",d:"M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z"})))};function eZ(){return(eZ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var eX=function(e){return eA.createElement("svg",eZ({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),p||(p=eA.createElement("path",{fill:"currentColor",d:"M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z"})))};function eQ(){return(eQ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var e0=function(e){return eA.createElement("svg",eQ({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),h||(h=eA.createElement("path",{fill:"currentColor",d:"M9.405 1.05c-.413-1.4-2.397-1.4-2.81 0l-.1.34a1.464 1.464 0 0 1-2.105.872l-.31-.17c-1.283-.698-2.686.705-1.987 1.987l.169.311c.446.82.023 1.841-.872 2.105l-.34.1c-1.4.413-1.4 2.397 0 2.81l.34.1a1.464 1.464 0 0 1 .872 2.105l-.17.31c-.698 1.283.705 2.686 1.987 1.987l.311-.169a1.464 1.464 0 0 1 2.105.872l.1.34c.413 1.4 2.397 1.4 2.81 0l.1-.34a1.464 1.464 0 0 1 2.105-.872l.31.17c1.283.698 2.686-.705 1.987-1.987l-.169-.311a1.464 1.464 0 0 1 .872-2.105l.34-.1c1.4-.413 1.4-2.397 0-2.81l-.34-.1a1.464 1.464 0 0 1-.872-2.105l.17-.31c.698-1.283-.705-2.686-1.987-1.987l-.311.169a1.464 1.464 0 0 1-2.105-.872l-.1-.34zM8 10.93a2.929 2.929 0 1 1 0-5.86 2.929 2.929 0 0 1 0 5.858z"})))};function e1(){return(e1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var e2=function(e){return eA.createElement("svg",e1({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),m||(m=eA.createElement("path",{fill:"currentColor",d:"M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z"})))};function e5(){return(e5=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var e6=function(e){return eA.createElement("svg",e5({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),y||(y=eA.createElement("path",{fill:"currentColor",d:"M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM5.354 4.646a.5.5 0 1 0-.708.708L7.293 8l-2.647 2.646a.5.5 0 0 0 .708.708L8 8.707l2.646 2.647a.5.5 0 0 0 .708-.708L8.707 8l2.647-2.646a.5.5 0 0 0-.708-.708L8 7.293 5.354 4.646z"})))};function e3(){return(e3=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var e4=function(e){return eA.createElement("svg",e3({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),v||(v=eA.createElement("path",{fill:"currentColor",d:"M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm3.354 4.646L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 1 1 .708-.708z"})))};function e8(){return(e8=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var e7=function(e){return eA.createElement("svg",e8({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),g||(g=eA.createElement("path",{fill:"currentColor",d:"M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM4.5 7.5a.5.5 0 0 0 0 1h7a.5.5 0 0 0 0-1h-7z"})))};function e9(){return(e9=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var te=function(e){return eA.createElement("svg",e9({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),b||(b=eA.createElement("path",{fill:"currentColor",d:"M8.086 2.207a2 2 0 0 1 2.828 0l3.879 3.879a2 2 0 0 1 0 2.828l-5.5 5.5A2 2 0 0 1 7.879 15H5.12a2 2 0 0 1-1.414-.586l-2.5-2.5a2 2 0 0 1 0-2.828l6.879-6.879zm.66 11.34L3.453 8.254 1.914 9.793a1 1 0 0 0 0 1.414l2.5 2.5a1 1 0 0 0 .707.293H7.88a1 1 0 0 0 .707-.293l.16-.16z"})))};function tt(){return(tt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var tr=function(e){return eA.createElement("svg",tt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),_||(_=eA.createElement("path",{fill:"currentColor",d:"M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm6 4c.535 0 .954.462.9.995l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 4.995A.905.905 0 0 1 8 4zm.002 6a1 1 0 1 1 0 2 1 1 0 0 1 0-2z"})))};function tn(){return(tn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var to=function(e){return eA.createElement("svg",tn({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),w||(w=eA.createElement("path",{fill:"currentColor",d:"M8.982 1.566a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566zM8 5c.535 0 .954.462.9.995l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995A.905.905 0 0 1 8 5zm.002 6a1 1 0 1 1 0 2 1 1 0 0 1 0-2z"})))};function ta(){return(ta=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var ti=function(e){return eA.createElement("svg",ta({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),x||(x=eA.createElement("path",{fill:"currentColor",d:"M10.5 8a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0z"})),O||(O=eA.createElement("path",{fill:"currentColor",d:"M0 8s3-5.5 8-5.5S16 8 16 8s-3 5.5-8 5.5S0 8 0 8zm8 3.5a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7z"})))};function tl(){return(tl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var tc=function(e){return eA.createElement("svg",tl({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),C||(C=eA.createElement("path",{fill:"currentColor",d:"M14.778.085A.5.5 0 0 1 15 .5V8a.5.5 0 0 1-.314.464L14.5 8l.186.464-.003.001-.006.003-.023.009a12.435 12.435 0 0 1-.397.15c-.264.095-.631.223-1.047.35-.816.252-1.879.523-2.71.523-.847 0-1.548-.28-2.158-.525l-.028-.01C7.68 8.71 7.14 8.5 6.5 8.5c-.7 0-1.638.23-2.437.477A19.626 19.626 0 0 0 3 9.342V15.5a.5.5 0 0 1-1 0V.5a.5.5 0 0 1 1 0v.282c.226-.079.496-.17.79-.26C4.606.272 5.67 0 6.5 0c.84 0 1.524.277 2.121.519l.043.018C9.286.788 9.828 1 10.5 1c.7 0 1.638-.23 2.437-.477a19.587 19.587 0 0 0 1.349-.476l.019-.007.004-.002h.001M14 1.221c-.22.078-.48.167-.766.255-.81.252-1.872.523-2.734.523-.886 0-1.592-.286-2.203-.534l-.008-.003C7.662 1.21 7.139 1 6.5 1c-.669 0-1.606.229-2.415.478A21.294 21.294 0 0 0 3 1.845v6.433c.22-.078.48-.167.766-.255C4.576 7.77 5.638 7.5 6.5 7.5c.847 0 1.548.28 2.158.525l.028.01C9.32 8.29 9.86 8.5 10.5 8.5c.668 0 1.606-.229 2.415-.478A21.317 21.317 0 0 0 14 7.655V1.222z"})))};function ts(){return(ts=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var tu=function(e){return eA.createElement("svg",ts({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 12"},e),E||(E=eA.createElement("path",{d:"M0 0h20v4H0z"})),S||(S=eA.createElement("path",{fill:"red",d:"M0 4h20v4H0z"})),j||(j=eA.createElement("path",{fill:"#fc0",d:"M0 8h20v4H0z"})))};function tf(){return(tf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var td=function(e){return eA.createElement("svg",tf({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 750 500"},e),k||(k=eA.createElement("path",{fill:"#c60b1e",d:"M0 0h750v500H0z"})),R||(R=eA.createElement("path",{fill:"#ffc400",d:"M0 125h750v250H0z"})))};function tp(){return(tp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var th=function(e){return eA.createElement("svg",tp({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 630 360"},e),eA.createElement("path",{d:"M0 0h630v360H0Z",style:{fill:"#da0000"}}),eA.createElement("path",{d:"M0 0h630v240H0Z",style:{fill:"#fff"}}),eA.createElement("path",{d:"M0 0h630v120H0Z",style:{fill:"#239f40"}}),eA.createElement("g",{fill:"none",stroke:"#fff",strokeWidth:2},M||(M=eA.createElement("path",{strokeWidth:2.8,d:"M8.4 101.8h36.4m-35 12.6v-7H21v5.6h11.2v-5.6h-7M14 113h2.8m28 0h-7v-5.6H49m0-7V113h11.2v-12.6m-5.6 0V113"})),N||(N=eA.createElement("path",{strokeWidth:5.6,d:"M8.4 120h25.2m2.8 0h25.2"})),eA.createElement("path",{d:"M0 139.6h25.2m2.8 0h25.2",style:{strokeWidth:5.6},transform:"translate(8.4 100.4)"}),eA.createElement("path",{d:"M0 146.6h36.4m-35 12.6v-7h11.2v5.6h11.2v-5.6h-7m-11.2 5.6h2.8m28 0h-7v-5.6h11.2m0-7v12.6h11.2v-12.6m-5.6 0v12.6",style:{strokeWidth:2.8},transform:"translate(8.4 100.4)"}),A||(A=eA.createElement("path",{strokeWidth:2.8,d:"M64.4 101.8h36.4m-35 12.6v-7H77v5.6h11.2v-5.6h-7M70 113h2.8m28 0h-7v-5.6H105m0-7V113h11.2v-12.6m-5.6 0V113"})),T||(T=eA.createElement("path",{strokeWidth:5.6,d:"M64.4 120h25.2m2.8 0h25.2"})),eA.createElement("path",{d:"M0 139.6h25.2m2.8 0h25.2",style:{strokeWidth:5.6},transform:"translate(64.4 100.4)"}),eA.createElement("path",{d:"M0 146.6h36.4m-35 12.6v-7h11.2v5.6h11.2v-5.6h-7m-11.2 5.6h2.8m28 0h-7v-5.6h11.2m0-7v12.6h11.2v-12.6m-5.6 0v12.6",style:{strokeWidth:2.8},transform:"translate(64.4 100.4)"}),P||(P=eA.createElement("path",{strokeWidth:2.8,d:"M120.4 101.8h36.4m-35 12.6v-7H133v5.6h11.2v-5.6h-7M126 113h2.8m28 0h-7v-5.6H161m0-7V113h11.2v-12.6m-5.6 0V113"})),L||(L=eA.createElement("path",{strokeWidth:5.6,d:"M120.4 120h25.2m2.8 0h25.2"})),eA.createElement("path",{d:"M0 139.6h25.2m2.8 0h25.2",style:{strokeWidth:5.6},transform:"translate(120.4 100.4)"}),eA.createElement("path",{d:"M0 146.6h36.4m-35 12.6v-7h11.2v5.6h11.2v-5.6h-7m-11.2 5.6h2.8m28 0h-7v-5.6h11.2m0-7v12.6h11.2v-12.6m-5.6 0v12.6",style:{strokeWidth:2.8},transform:"translate(120.4 100.4)"}),B||(B=eA.createElement("path",{strokeWidth:2.8,d:"M176.4 101.8h36.4m-35 12.6v-7H189v5.6h11.2v-5.6h-7M182 113h2.8m28 0h-7v-5.6H217m0-7V113h11.2v-12.6m-5.6 0V113"})),I||(I=eA.createElement("path",{strokeWidth:5.6,d:"M176.4 120h25.2m2.8 0h25.2"})),eA.createElement("path",{d:"M0 139.6h25.2m2.8 0h25.2",style:{strokeWidth:5.6},transform:"translate(176.4 100.4)"}),eA.createElement("path",{d:"M0 146.6h36.4m-35 12.6v-7h11.2v5.6h11.2v-5.6h-7m-11.2 5.6h2.8m28 0h-7v-5.6h11.2m0-7v12.6h11.2v-12.6m-5.6 0v12.6",style:{strokeWidth:2.8},transform:"translate(176.4 100.4)"}),D||(D=eA.createElement("path",{strokeWidth:2.8,d:"M232.4 101.8h36.4m-35 12.6v-7H245v5.6h11.2v-5.6h-7M238 113h2.8m28 0h-7v-5.6H273m0-7V113h11.2v-12.6m-5.6 0V113"})),U||(U=eA.createElement("path",{strokeWidth:5.6,d:"M232.4 120h25.2m2.8 0h25.2"})),eA.createElement("path",{d:"M0 139.6h25.2m2.8 0h25.2",style:{strokeWidth:5.6},transform:"translate(232.4 100.4)"}),eA.createElement("path",{d:"M0 146.6h36.4m-35 12.6v-7h11.2v5.6h11.2v-5.6h-7m-11.2 5.6h2.8m28 0h-7v-5.6h11.2m0-7v12.6h11.2v-12.6m-5.6 0v12.6",style:{strokeWidth:2.8},transform:"translate(232.4 100.4)"}),z||(z=eA.createElement("path",{strokeWidth:2.8,d:"M288.4 101.8h36.4m-35 12.6v-7H301v5.6h11.2v-5.6h-7M294 113h2.8m28 0h-7v-5.6H329m0-7V113h11.2v-12.6m-5.6 0V113"})),W||(W=eA.createElement("path",{strokeWidth:5.6,d:"M288.4 120h25.2m2.8 0h25.2"})),eA.createElement("path",{d:"M0 139.6h25.2m2.8 0h25.2",style:{strokeWidth:5.6},transform:"translate(288.4 100.4)"}),eA.createElement("path",{d:"M0 146.6h36.4m-35 12.6v-7h11.2v5.6h11.2v-5.6h-7m-11.2 5.6h2.8m28 0h-7v-5.6h11.2m0-7v12.6h11.2v-12.6m-5.6 0v12.6",style:{strokeWidth:2.8},transform:"translate(288.4 100.4)"}),F||(F=eA.createElement("path",{strokeWidth:2.8,d:"M344.4 101.8h36.4m-35 12.6v-7H357v5.6h11.2v-5.6h-7M350 113h2.8m28 0h-7v-5.6H385m0-7V113h11.2v-12.6m-5.6 0V113"})),H||(H=eA.createElement("path",{strokeWidth:5.6,d:"M344.4 120h25.2m2.8 0h25.2"})),eA.createElement("path",{d:"M0 139.6h25.2m2.8 0h25.2",style:{strokeWidth:5.6},transform:"translate(344.4 100.4)"}),eA.createElement("path",{d:"M0 146.6h36.4m-35 12.6v-7h11.2v5.6h11.2v-5.6h-7m-11.2 5.6h2.8m28 0h-7v-5.6h11.2m0-7v12.6h11.2v-12.6m-5.6 0v12.6",style:{strokeWidth:2.8},transform:"translate(344.4 100.4)"}),V||(V=eA.createElement("path",{strokeWidth:2.8,d:"M400.4 101.8h36.4m-35 12.6v-7H413v5.6h11.2v-5.6h-7M406 113h2.8m28 0h-7v-5.6H441m0-7V113h11.2v-12.6m-5.6 0V113"})),q||(q=eA.createElement("path",{strokeWidth:5.6,d:"M400.4 120h25.2m2.8 0h25.2"})),eA.createElement("path",{d:"M0 139.6h25.2m2.8 0h25.2",style:{strokeWidth:5.6},transform:"translate(400.4 100.4)"}),eA.createElement("path",{d:"M0 146.6h36.4m-35 12.6v-7h11.2v5.6h11.2v-5.6h-7m-11.2 5.6h2.8m28 0h-7v-5.6h11.2m0-7v12.6h11.2v-12.6m-5.6 0v12.6",style:{strokeWidth:2.8},transform:"translate(400.4 100.4)"}),K||(K=eA.createElement("path",{strokeWidth:2.8,d:"M456.4 101.8h36.4m-35 12.6v-7H469v5.6h11.2v-5.6h-7M462 113h2.8m28 0h-7v-5.6H497m0-7V113h11.2v-12.6m-5.6 0V113"})),J||(J=eA.createElement("path",{strokeWidth:5.6,d:"M456.4 120h25.2m2.8 0h25.2"})),eA.createElement("path",{d:"M0 139.6h25.2m2.8 0h25.2",style:{strokeWidth:5.6},transform:"translate(456.4 100.4)"}),eA.createElement("path",{d:"M0 146.6h36.4m-35 12.6v-7h11.2v5.6h11.2v-5.6h-7m-11.2 5.6h2.8m28 0h-7v-5.6h11.2m0-7v12.6h11.2v-12.6m-5.6 0v12.6",style:{strokeWidth:2.8},transform:"translate(456.4 100.4)"}),G||(G=eA.createElement("path",{strokeWidth:2.8,d:"M512.4 101.8h36.4m-35 12.6v-7H525v5.6h11.2v-5.6h-7M518 113h2.8m28 0h-7v-5.6H553m0-7V113h11.2v-12.6m-5.6 0V113"})),$||($=eA.createElement("path",{strokeWidth:5.6,d:"M512.4 120h25.2m2.8 0h25.2"})),eA.createElement("path",{d:"M0 139.6h25.2m2.8 0h25.2",style:{strokeWidth:5.6},transform:"translate(512.4 100.4)"}),eA.createElement("path",{d:"M0 146.6h36.4m-35 12.6v-7h11.2v5.6h11.2v-5.6h-7m-11.2 5.6h2.8m28 0h-7v-5.6h11.2m0-7v12.6h11.2v-12.6m-5.6 0v12.6",style:{strokeWidth:2.8},transform:"translate(512.4 100.4)"}),Y||(Y=eA.createElement("path",{strokeWidth:2.8,d:"M568.4 101.8h36.4m-35 12.6v-7H581v5.6h11.2v-5.6h-7M574 113h2.8m28 0h-7v-5.6H609m0-7V113h11.2v-12.6m-5.6 0V113"})),Z||(Z=eA.createElement("path",{strokeWidth:5.6,d:"M568.4 120h25.2m2.8 0h25.2"})),eA.createElement("path",{d:"M0 139.6h25.2m2.8 0h25.2",style:{strokeWidth:5.6},transform:"translate(568.4 100.4)"}),eA.createElement("path",{d:"M0 146.6h36.4m-35 12.6v-7h11.2v5.6h11.2v-5.6h-7m-11.2 5.6h2.8m28 0h-7v-5.6h11.2m0-7v12.6h11.2v-12.6m-5.6 0v12.6",style:{strokeWidth:2.8},transform:"translate(568.4 100.4)"})),X||(X=eA.createElement("g",{fill:"#da0000"},eA.createElement("path",{d:"M290.333 217.637a41.042 41.042 0 0 0 39.451-70.144 45 45 0 0 1-39.45 70.144"}),eA.createElement("path",{d:"M342.825 209.763a34.377 34.377 0 0 0-8.851-63.11 45 45 0 0 1 8.851 63.11M315 225l-2.25-45 2.25-35.428a13.95 13.95 0 0 0 5.312 4.46v26.45l-1.81 44.699zM314.1 141.75l.9.845a6.494 6.494 0 0 0 11.343-6.142A6.138 6.138 0 0 1 315 138.391"}),eA.createElement("path",{d:"M339.667 217.637a41.042 41.042 0 0 1-39.451-70.144 45 45 0 0 0 39.45 70.144"}),eA.createElement("path",{d:"M287.175 209.763a34.377 34.377 0 0 1 8.851-63.11 45 45 0 0 0-8.851 63.11M315 225l2.25-45-2.25-35.428a13.95 13.95 0 0 1-5.312 4.46v26.45l1.81 44.699ZM315.9 141.75l-.9.845a6.494 6.494 0 0 1-11.343-6.142A6.138 6.138 0 0 0 315 138.391"}))))};function tm(){return(tm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var ty=function(e){return eA.createElement("svg",tm({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),Q||(Q=eA.createElement("path",{fill:"currentColor",d:"M14.778.085A.5.5 0 0 1 15 .5V8a.5.5 0 0 1-.314.464L14.5 8l.186.464-.003.001-.006.003-.023.009a12.435 12.435 0 0 1-.397.15c-.264.095-.631.223-1.047.35-.816.252-1.879.523-2.71.523-.847 0-1.548-.28-2.158-.525l-.028-.01C7.68 8.71 7.14 8.5 6.5 8.5c-.7 0-1.638.23-2.437.477A19.626 19.626 0 0 0 3 9.342V15.5a.5.5 0 0 1-1 0V.5a.5.5 0 0 1 1 0v.282c.226-.079.496-.17.79-.26C4.606.272 5.67 0 6.5 0c.84 0 1.524.277 2.121.519l.043.018C9.286.788 9.828 1 10.5 1c.7 0 1.638-.23 2.437-.477a19.587 19.587 0 0 0 1.349-.476l.019-.007.004-.002h.001"})))};function tv(){return(tv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var tg=function(e){return eA.createElement("svg",tv({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 15"},e),ee||(ee=eA.createElement("path",{fill:"#002395",d:"M0 0h8v15H0z"})),et||(et=eA.createElement("path",{fill:"#FFF",d:"M8 0h8v15H8z"})),er||(er=eA.createElement("path",{fill:"#ED2939",d:"M16 0h8v15h-8z"})))};function tb(){return(tb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var t_=function(e){return eA.createElement("svg",tb({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 60 30"},e),en||(en=eA.createElement("path",{fill:"#00247d",d:"M0 0v30h60V0z"})),eo||(eo=eA.createElement("path",{stroke:"#fff",strokeWidth:6,d:"m0 0 60 30m0-30L0 30"})),ea||(ea=eA.createElement("path",{stroke:"#cf142b",strokeWidth:4,d:"m0 0 60 30m0-30L0 30"})),ei||(ei=eA.createElement("path",{stroke:"#fff",strokeWidth:10,d:"M30 0v30M0 15h60"})),el||(el=eA.createElement("path",{stroke:"#cf142b",strokeWidth:6,d:"M30 0v30M0 15h60"})))};function tw(){return(tw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var tx=function(e){return eA.createElement("svg",tw({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 10"},e),ec||(ec=eA.createElement("path",{fill:"#fff",d:"M0 0h16v10H0z"})),es||(es=eA.createElement("path",{fill:"#dc143c",d:"M0 5h16v5H0z"})))};function tO(){return(tO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var tC=function(e){return eA.createElement("svg",tO({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 7410 3900"},e),eu||(eu=eA.createElement("path",{fill:"#b22234",d:"M0 0h7410v3900H0z"})),ef||(ef=eA.createElement("path",{stroke:"#fff",strokeWidth:300,d:"M0 450h7410m0 600H0m0 600h7410m0 600H0m0 600h7410m0 600H0"})),ed||(ed=eA.createElement("path",{fill:"#3c3b6e",d:"M0 0h2964v2100H0z"})),ep||(ep=eA.createElement("g",{fill:"#fff"},eA.createElement("g",{id:"FlagUs_svg__d"},eA.createElement("g",{id:"FlagUs_svg__c"},eA.createElement("g",{id:"FlagUs_svg__e"},eA.createElement("g",{id:"FlagUs_svg__b"},eA.createElement("path",{id:"FlagUs_svg__a",d:"m247 90 70.534 217.082-184.66-134.164h228.253L176.466 307.082z"}),eA.createElement("use",{y:420,href:"#FlagUs_svg__a"}),eA.createElement("use",{y:840,href:"#FlagUs_svg__a"}),eA.createElement("use",{y:1260,href:"#FlagUs_svg__a"})),eA.createElement("use",{y:1680,href:"#FlagUs_svg__a"})),eA.createElement("use",{x:247,y:210,href:"#FlagUs_svg__b"})),eA.createElement("use",{x:494,href:"#FlagUs_svg__c"})),eA.createElement("use",{x:988,href:"#FlagUs_svg__d"}),eA.createElement("use",{x:1976,href:"#FlagUs_svg__c"}),eA.createElement("use",{x:2470,href:"#FlagUs_svg__e"}))),eh||(eh=eA.createElement("path",{fill:"#00247d",d:"M0 0v30h60V0z"})),em||(em=eA.createElement("path",{stroke:"#fff",strokeWidth:6,d:"m0 0 60 30m0-30L0 30"})),ey||(ey=eA.createElement("path",{stroke:"#cf142b",strokeWidth:4,d:"m0 0 60 30m0-30L0 30"})),ev||(ev=eA.createElement("path",{stroke:"#fff",strokeWidth:10,d:"M30 0v30M0 15h60"})),eg||(eg=eA.createElement("path",{stroke:"#cf142b",strokeWidth:6,d:"M30 0v30M0 15h60"})))};function tE(){return(tE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var tS=function(e){return eA.createElement("svg",tE({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),eb||(eb=eA.createElement("path",{fill:"currentColor",d:"M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.012 8.012 0 0 0 16 8c0-4.42-3.58-8-8-8z"})))};function tj(){return(tj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var tk=function(e){return eA.createElement("svg",tj({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),e_||(e_=eA.createElement("path",{fill:"currentColor",d:"M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16zm.93-9.412-1 4.705c-.07.34.029.533.304.533.194 0 .487-.07.686-.246l-.088.416c-.287.346-.92.598-1.465.598-.703 0-1.002-.422-.808-1.319l.738-3.468c.064-.293.006-.399-.287-.47l-.451-.081.082-.381 2.29-.287zM8 5.5a1 1 0 1 1 0-2 1 1 0 0 1 0 2z"})))};function tR(){return(tR=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var tM=function(e){return eA.createElement("svg",tR({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 16 16"},e),ew||(ew=eA.createElement("path",{d:"M14 5a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h12zM2 4a2 2 0 0 0-2 2v5a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2H2z"})),ex||(ex=eA.createElement("path",{d:"M13 10.25a.25.25 0 0 1 .25-.25h.5a.25.25 0 0 1 .25.25v.5a.25.25 0 0 1-.25.25h-.5a.25.25 0 0 1-.25-.25v-.5zm0-2a.25.25 0 0 1 .25-.25h.5a.25.25 0 0 1 .25.25v.5a.25.25 0 0 1-.25.25h-.5a.25.25 0 0 1-.25-.25v-.5zm-5 0A.25.25 0 0 1 8.25 8h.5a.25.25 0 0 1 .25.25v.5a.25.25 0 0 1-.25.25h-.5A.25.25 0 0 1 8 8.75v-.5zm2 0a.25.25 0 0 1 .25-.25h1.5a.25.25 0 0 1 .25.25v.5a.25.25 0 0 1-.25.25h-1.5a.25.25 0 0 1-.25-.25v-.5zm1 2a.25.25 0 0 1 .25-.25h.5a.25.25 0 0 1 .25.25v.5a.25.25 0 0 1-.25.25h-.5a.25.25 0 0 1-.25-.25v-.5zm-5-2A.25.25 0 0 1 6.25 8h.5a.25.25 0 0 1 .25.25v.5a.25.25 0 0 1-.25.25h-.5A.25.25 0 0 1 6 8.75v-.5zm-2 0A.25.25 0 0 1 4.25 8h.5a.25.25 0 0 1 .25.25v.5a.25.25 0 0 1-.25.25h-.5A.25.25 0 0 1 4 8.75v-.5zm-2 0A.25.25 0 0 1 2.25 8h.5a.25.25 0 0 1 .25.25v.5a.25.25 0 0 1-.25.25h-.5A.25.25 0 0 1 2 8.75v-.5zm11-2a.25.25 0 0 1 .25-.25h.5a.25.25 0 0 1 .25.25v.5a.25.25 0 0 1-.25.25h-.5a.25.25 0 0 1-.25-.25v-.5zm-2 0a.25.25 0 0 1 .25-.25h.5a.25.25 0 0 1 .25.25v.5a.25.25 0 0 1-.25.25h-.5a.25.25 0 0 1-.25-.25v-.5zm-2 0A.25.25 0 0 1 9.25 6h.5a.25.25 0 0 1 .25.25v.5a.25.25 0 0 1-.25.25h-.5A.25.25 0 0 1 9 6.75v-.5zm-2 0A.25.25 0 0 1 7.25 6h.5a.25.25 0 0 1 .25.25v.5a.25.25 0 0 1-.25.25h-.5A.25.25 0 0 1 7 6.75v-.5zm-2 0A.25.25 0 0 1 5.25 6h.5a.25.25 0 0 1 .25.25v.5a.25.25 0 0 1-.25.25h-.5A.25.25 0 0 1 5 6.75v-.5zm-3 0A.25.25 0 0 1 2.25 6h1.5a.25.25 0 0 1 .25.25v.5a.25.25 0 0 1-.25.25h-1.5A.25.25 0 0 1 2 6.75v-.5zm0 4a.25.25 0 0 1 .25-.25h.5a.25.25 0 0 1 .25.25v.5a.25.25 0 0 1-.25.25h-.5a.25.25 0 0 1-.25-.25v-.5zm2 0a.25.25 0 0 1 .25-.25h5.5a.25.25 0 0 1 .25.25v.5a.25.25 0 0 1-.25.25h-5.5a.25.25 0 0 1-.25-.25v-.5z"})))};function tN(){return(tN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var tA=function(e){return eA.createElement("svg",tN({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 16 16"},e),eO||(eO=eA.createElement("path",{d:"M0 6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V6zm13 .25v.5c0 .138.112.25.25.25h.5a.25.25 0 0 0 .25-.25v-.5a.25.25 0 0 0-.25-.25h-.5a.25.25 0 0 0-.25.25zM2.25 8a.25.25 0 0 0-.25.25v.5c0 .138.112.25.25.25h.5A.25.25 0 0 0 3 8.75v-.5A.25.25 0 0 0 2.75 8h-.5zM4 8.25v.5c0 .138.112.25.25.25h.5A.25.25 0 0 0 5 8.75v-.5A.25.25 0 0 0 4.75 8h-.5a.25.25 0 0 0-.25.25zM6.25 8a.25.25 0 0 0-.25.25v.5c0 .138.112.25.25.25h.5A.25.25 0 0 0 7 8.75v-.5A.25.25 0 0 0 6.75 8h-.5zM8 8.25v.5c0 .138.112.25.25.25h.5A.25.25 0 0 0 9 8.75v-.5A.25.25 0 0 0 8.75 8h-.5a.25.25 0 0 0-.25.25zM13.25 8a.25.25 0 0 0-.25.25v.5c0 .138.112.25.25.25h.5a.25.25 0 0 0 .25-.25v-.5a.25.25 0 0 0-.25-.25h-.5zm0 2a.25.25 0 0 0-.25.25v.5c0 .138.112.25.25.25h.5a.25.25 0 0 0 .25-.25v-.5a.25.25 0 0 0-.25-.25h-.5zm-3-2a.25.25 0 0 0-.25.25v.5c0 .138.112.25.25.25h1.5a.25.25 0 0 0 .25-.25v-.5a.25.25 0 0 0-.25-.25h-1.5zm.75 2.25v.5c0 .138.112.25.25.25h.5a.25.25 0 0 0 .25-.25v-.5a.25.25 0 0 0-.25-.25h-.5a.25.25 0 0 0-.25.25zM11.25 6a.25.25 0 0 0-.25.25v.5c0 .138.112.25.25.25h.5a.25.25 0 0 0 .25-.25v-.5a.25.25 0 0 0-.25-.25h-.5zM9 6.25v.5c0 .138.112.25.25.25h.5a.25.25 0 0 0 .25-.25v-.5A.25.25 0 0 0 9.75 6h-.5a.25.25 0 0 0-.25.25zM7.25 6a.25.25 0 0 0-.25.25v.5c0 .138.112.25.25.25h.5A.25.25 0 0 0 8 6.75v-.5A.25.25 0 0 0 7.75 6h-.5zM5 6.25v.5c0 .138.112.25.25.25h.5A.25.25 0 0 0 6 6.75v-.5A.25.25 0 0 0 5.75 6h-.5a.25.25 0 0 0-.25.25zM2.25 6a.25.25 0 0 0-.25.25v.5c0 .138.112.25.25.25h1.5A.25.25 0 0 0 4 6.75v-.5A.25.25 0 0 0 3.75 6h-1.5zM2 10.25v.5c0 .138.112.25.25.25h.5a.25.25 0 0 0 .25-.25v-.5a.25.25 0 0 0-.25-.25h-.5a.25.25 0 0 0-.25.25zM4.25 10a.25.25 0 0 0-.25.25v.5c0 .138.112.25.25.25h5.5a.25.25 0 0 0 .25-.25v-.5a.25.25 0 0 0-.25-.25h-5.5z"})))};function tT(){return(tT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var tP=function(e){return eA.createElement("svg",tT({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),eC||(eC=eA.createElement("path",{fill:"currentColor",d:"M2.5 12a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm0-4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm0-4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5z"})))};function tL(){return(tL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var tB=function(e){return eA.createElement("svg",tL({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},e),eE||(eE=eA.createElement("path",{fill:"currentColor",d:"M16 9c4 2 5 9 5 9s1 4-5 4H8c-6 0-5-4-5-4s1-7 5-9m6-5-2-2-2 2-4-2 2 5h8l2-5-4 2Z"})))};function tI(){return(tI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var tD=function(e){return eA.createElement("svg",tI({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),eS||(eS=eA.createElement("path",{fill:"currentColor",d:"M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z"})))};function tU(){return(tU=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var tz=function(e){return eA.createElement("svg",tU({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),ej||(ej=eA.createElement("path",{fill:"currentColor",d:"M3.5 2.5a.5.5 0 0 0-1 0v8.793l-1.146-1.147a.5.5 0 0 0-.708.708l2 1.999.007.007a.497.497 0 0 0 .7-.006l2-2a.5.5 0 0 0-.707-.708L3.5 11.293V2.5zm3.5 1a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5zM7.5 6a.5.5 0 0 0 0 1h5a.5.5 0 0 0 0-1h-5zm0 3a.5.5 0 0 0 0 1h3a.5.5 0 0 0 0-1h-3zm0 3a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1h-1z"})))};function tW(){return(tW=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var tF=function(e){return eA.createElement("svg",tW({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),ek||(ek=eA.createElement("path",{fill:"currentColor",d:"M3.5 12.5a.5.5 0 0 1-1 0V3.707L1.354 4.854a.5.5 0 1 1-.708-.708l2-1.999.007-.007a.498.498 0 0 1 .7.006l2 2a.5.5 0 1 1-.707.708L3.5 3.707V12.5zm3.5-9a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5zM7.5 6a.5.5 0 0 0 0 1h5a.5.5 0 0 0 0-1h-5zm0 3a.5.5 0 0 0 0 1h3a.5.5 0 0 0 0-1h-3zm0 3a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1h-1z"})))};function tH(){return(tH=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var tV=function(e){return eA.createElement("svg",tH({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),eR||(eR=eA.createElement("path",{fill:"currentColor",d:"M14 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h12zM2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2z"})))};function tq(){return(tq=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var tK=function(e){return eA.createElement("svg",tq({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),eM||(eM=eA.createElement("path",{fill:"currentColor",d:"M0 2a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V2z"})))};function tJ(){return(tJ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var tG=function(e){return eA.createElement("svg",tJ({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),eN||(eN=eA.createElement("path",{fill:"currentColor",d:"M3.612 15.443c-.386.198-.824-.149-.746-.592l.83-4.73L.173 6.765c-.329-.314-.158-.888.283-.95l4.898-.696L7.538.792c.197-.39.73-.39.927 0l2.184 4.327 4.898.696c.441.062.612.636.282.95l-3.522 3.356.83 4.73c.078.443-.36.79-.746.592L8 13.187l-4.389 2.256z"})))}},8954:function(e,t,r){"use strict";r.d(t,{_g:function(){return o},J8:function(){return i},Ri:function(){return c},DI:function(){return u},np:function(){return p},Ml:function(){return m},GF:function(){return v},kD:function(){return b},nK:function(){return O},p$:function(){return S},WM:function(){return k},Jp:function(){return M},ZM:function(){return B},op:function(){return q},vc:function(){return J},CU:function(){return $},sf:function(){return Z},Mf:function(){return Q},yl:function(){return ee},V5:function(){return er},Kj:function(){return eo},HP:function(){return el},ZT:function(){return f},uj:function(){return ed},DR:function(){return em},gV:function(){return ev}});let n=(e,t)=>e.length===t.length&&e.every((e,r)=>e===t[r]);var o=n;let a=Boolean(window.document&&window.document.createElement);var i=a;let l=e=>Array.from({length:e});var c=l;let s=(e,t,r)=>c(t).map((t,n)=>c(e).map((e,t)=>r(t,n)));var u=s,f=()=>void 0;let d=e=>{let{onArrowDown:t=f,onArrowLeft:r=f,onArrowRight:n=f,onArrowUp:o=f,onBackspace:a=f,onDelete:i=f,onEnter:l=f,onKeyDown:c=f,onSpace:s=f}=e,u={ArrowUp:o,ArrowDown:t,ArrowLeft:r,ArrowRight:n,Backspace:a,Delete:i,Enter:l," ":s},d=e=>{let t=u[e.key]||f;t(e),c(e)};return d};var p=d;let h=e=>(t,r)=>t===r?0:null===t?"right"===e?1:-1:null===r?"right"===e?-1:1:0;var m=h;let y=e=>{if(0===e.trim().length)return/.*/;try{return RegExp(e,"gi")}catch(e){return/.*/}};var v=y;let g=e=>{let[t="",r]=e.split(","),[,n]=t.match(/:(.*?);/)||[];if("string"!=typeof n)throw Error("Unsupported data URL");let o=globalThis.atob(r),a=new Uint8Array(o.length),i=o.length;for(;i--;)a[i]=o.charCodeAt(i);return new Blob([a],{type:n})};var b=g,_=r(1266),w=r(7618);let x=(e,t)=>{let r=0,n=[],o=t.toLocaleLowerCase(e.locale);for(;r<o.length;){let t=o[r],a=o[r+1],i="".concat(t).concat(a);e.twoCharacterTiles.includes(i)?(n.push(i),r+=i.length):((e.hasCharacter(t)||t===w.BLANK)&&n.push(t),++r)}return n};var O=x;let C=(e,t)=>t===t.toLocaleUpperCase(e),E=(e,t)=>{let r=0,n=[];for(;r<t.length;){let o=t[r],a=t[r].toLocaleLowerCase(e.locale),i=t[r+1],l="".concat(o).concat(i),c=l.toLocaleLowerCase(e.locale);C(e.locale,l)&&e.twoCharacterTiles.includes(c)?(n.push(c),r+=c.length):((e.hasCharacter(a)||a===w.BLANK)&&n.push(a),++r)}return n};var S=E;let j=e=>{let t=e.value.toLocaleLowerCase();if(null===e.selectionStart||null===e.selectionEnd)return t;let r=Math.min(e.selectionStart,e.selectionEnd);return r>0?t.substring(r-1,r):t};var k=j;let R=(e,t,r)=>e.find(e=>e.x===t&&e.y===r);var M=R,N=r(4534);let A=e=>(t,r)=>t.localeCompare(r,e);var T=(e,t)=>e-t;let P=(e,t)=>{let r=A(t);return(t,n)=>{let o=t[e],a=n[e];return"string"==typeof o&&"string"==typeof a?r(o,a):"number"==typeof o&&"number"==typeof a?T(o,a):0}},L=(e,t,r,n)=>{let o=t.rows.flat().filter(e=>!e.isEmpty),a=o.filter(e=>!e.tile.isBlank),i=Object.fromEntries(e.tiles.map(e=>[e.character,{...e,usedCount:0}])),l={character:w.BLANK,count:e.blanksCount,score:e.blankScore,usedCount:o.filter(e=>e.tile.isBlank).length+r.filter(e=>e===w.BLANK).length},c=[...a.map(e=>e.tile.character),...r.filter(e=>e!==w.BLANK)],s=c.filter(e=>void 0===i[e]);for(let e of s)i[e]={character:e,count:0,score:0,usedCount:0};for(let e of c)++i[e].usedCount;let u=P("character",n);return[...Object.values(i).sort(u),l]};var B=L;let I=e=>e.reduce((e,t)=>{let{count:r,usedCount:n}=t;return e+r-n},0),D=e=>e.reduce((e,t)=>{let{count:r}=t;return e+r},0),U=e=>{let t=e.filter(z),r=e.filter(W),n=e.filter(V),o=[];o.push({remainingCount:I(r),tiles:r,translationKey:"common.vowels",totalCount:D(r)}),o.push({remainingCount:I(t),tiles:t,translationKey:"common.consonants",totalCount:D(t)}),o.push({remainingCount:I(n),tiles:n,translationKey:"common.tiles",totalCount:D(n)});let a=e.filter(F),i=e.filter(H);return o.push({remainingCount:I(a),tiles:a,translationKey:"common.two-letter-tiles",totalCount:D(a)}),o.push({remainingCount:I(i),tiles:i,translationKey:"common.blanks",totalCount:D(i)}),o.filter(e=>{let{totalCount:t}=e;return t>0})},z=e=>w.CONSONANTS.includes(e.character),W=e=>w.VOWELS.includes(e.character),F=e=>2===e.character.length,H=e=>e.character===w.BLANK,V=e=>!z(e)&&!W(e)&&!H(e)&&!F(e);var q=U;let K=e=>({pointsFontSize:Math.max(Math.round(.25*e),N.$B),tileFontSize:Math.max(Math.round(.6*e),N.V4),tileSize:e});var J=K;let G=(e,t,r)=>void 0===e?e:e.reduce((e,n)=>{let{matching:o,other:a}=e,i=v(t).test(n.word),l=r.every(e=>{let{x:t,y:r}=e;return n.cells.some(e=>e.x===t&&e.y===r)}),c=i&&l;return{matching:c?[...o,n]:o,other:c?a:[...a,n]}},{matching:[],other:[]});var $=G;let Y=()=>{if(!globalThis.navigator)return _.Locale.EN_US;let e=Object.values(_.Locale),t=e.find(e=>globalThis.navigator.language===e);if(t)return t;let r=e.find(e=>globalThis.navigator.language===e.substring(0,2));return r||_.Locale.EN_US};var Z=Y;let X=e=>"left"===e?"right":"left";var Q=X,ee=e=>e.ctrlKey||e.metaKey;let et=()=>!!globalThis.navigator&&globalThis.navigator.platform.toLowerCase().includes("mac");var er=et;let en=e=>{try{return RegExp(e),!0}catch(e){return!1}};var eo=en;let ea=e=>{let t=[],r=e=>{var r;return null===(r=t.find(t=>ei(t.parameters,e)))||void 0===r?void 0:r.result},n=e=>{let r=t.findIndex(t=>ei(t.parameters,e));r>=0&&t.splice(r,1)},o=(e,r)=>{t.push({parameters:e,result:r})};return Object.assign(function(){for(var t=arguments.length,a=Array(t),i=0;i<t;i++)a[i]=arguments[i];let l=r(a);if(l)return l;let c=e(...a);return c instanceof Promise&&c.catch(()=>{n(a)}),o(a,c),c},{hasCache:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return Boolean(r(t))}})},ei=(e,t)=>e.length===t.length&&e.every((e,r)=>e===t[r]);var el=ea,ec=r(1966);let es=e=>(t,r)=>-e(t,r),eu={[ec.M.BlanksCount]:e=>P("blanksCount",e),[ec.M.ConsonantsCount]:e=>P("consonantsCount",e),[ec.M.Points]:e=>P("points",e),[ec.M.TilesCount]:e=>P("tilesCount",e),[ec.M.VowelsCount]:e=>P("vowelsCount",e),[ec.M.Word]:e=>P("word",e),[ec.M.WordsCount]:e=>P("wordsCount",e)},ef=(e,t,r)=>{if(void 0===e)return e;let n=eu[t.column],o=n(r),a=t.direction===ec.S.Descending?es(o):o,i=[...e].sort(a);return i};var ed=ef;let ep=e=>{let t=A(e);return(e,r)=>"string"==typeof e&&"string"==typeof r?t(e,r):"number"==typeof e&&"number"==typeof r?T(e,r):0},eh=(e,t,r)=>{if(e.length!==t.length)return!1;let n=ep(r),o=[...e].sort(n),a=[...t].sort(n);return o.every((e,t)=>e===a[t])};var em=eh;let ey=(e,t)=>{let r=[...t];return e.map(e=>{let t=r.findIndex(t=>e===w.BLANK?t.isBlank:e===t.character);if(t>=0){let n=r[t];return r=[...r.slice(0,t),...r.slice(t+1)],{character:e,tile:n}}return{character:e,tile:null}})};var ev=ey},9212:function(e,t,r){"use strict";r.r(t);var n=r(5893),o=r(9008),a=r.n(o),i=r(1649),l=r(8700),c=r(4472);r(5794);let s="Scrabble Solver 2 - Free and open-source analysis tool for Scrabble and Literaki. Quickly find top scoring words using given letters and board state. Available in English, French, German, Polish & Spanish.",u=e=>{let{Component:t,pageProps:r}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(a(),{children:[(0,n.jsx)("title",{children:"Scrabble Solver 2 by Kamil Mielnik"}),(0,n.jsx)("meta",{charSet:"utf-8"}),(0,n.jsx)("meta",{name:"author",content:"Kamil Mielnik"}),(0,n.jsx)("meta",{name:"description",content:s}),(0,n.jsx)("meta",{name:"keywords",content:"Scrabble Solver,Scrabble,Solver,Board,Open-source,Open,Source,Word,Finder,Cheating,Literaki,Word,English,Fran\xe7ais,Deutsch,Polski,فارسی,Espa\xf1ol,SOWPODS,TWL06,SJP,FISE-2017,FISE-2,CNRTL,Kamil Mielnik"}),(0,n.jsx)("meta",{name:"robots",content:"index, follow, notranslate, noimageindex"}),(0,n.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0"}),(0,n.jsx)("meta",{property:"og:title",content:s}),(0,n.jsx)("meta",{property:"og:type",content:"website"}),(0,n.jsx)("meta",{property:"og:url",content:"https://scrabble-solver.org"}),(0,n.jsx)("meta",{property:"og:image",content:"https://scrabble-solver.org/og.png"}),(0,n.jsx)("meta",{property:"og:image:type",content:"image/png"}),(0,n.jsx)("meta",{property:"og:image:width",content:"1200"}),(0,n.jsx)("meta",{property:"og:image:height",content:"630"}),(0,n.jsx)("meta",{property:"og:image:alt",content:s})]}),(0,n.jsxs)(i.zt,{store:c.h,children:[(0,n.jsx)(l.QR,{}),(0,n.jsx)(t,{...r})]})]})};t.default=u},4534:function(e,t,r){"use strict";r.d(t,{$B:function(){return w},$L:function(){return Y},$M:function(){return J},$P:function(){return m},BF:function(){return I},D:function(){return H},F1:function(){return s},FZ:function(){return j},HC:function(){return d},IO:function(){return b},Kc:function(){return o},Kw:function(){return x},MA:function(){return l},PF:function(){return Q},PV:function(){return L},Rh:function(){return R},V4:function(){return _},YF:function(){return S},a_:function(){return F},d4:function(){return z},e2:function(){return ee},eU:function(){return K},fl:function(){return D},h4:function(){return i},iF:function(){return P},j$:function(){return n},kD:function(){return X},kr:function(){return h},ku:function(){return W},mM:function(){return G},n6:function(){return k},n_:function(){return E},oj:function(){return O},op:function(){return g},pI:function(){return c},pS:function(){return p},pc:function(){return M},pt:function(){return Z},rV:function(){return V},rx:function(){return $},sk:function(){return T},t:function(){return A},t$:function(){return B},ti:function(){return y},tr:function(){return v},uI:function(){return C},uX:function(){return U},xZ:function(){return q},y7:function(){return N},yg:function(){return u},yr:function(){return f},yz:function(){return a}});let n={xs:480,s:768,m:992,l:1200,xl:1400},o="cubic-bezier(0.33, 1, 0.68, 1)",a="var(--transition)",i="https://github.com/kamilmielnik/scrabble-solver",l=250,c="#c7d8f9",s="#bae3ba",u="#f7c2aa",f="#efe3ae",d="#b284b8",p="#444",h={1:"#f7f1d6",2:"#d6ebd6",3:"#dde4f6",5:"#fbe0d4"},m={2:"#b8d5ed",3:"#86aed1"},y={2:"#fbc997",3:"#f19393"},v=40,g=20,b=3,_=14,w=10,x=64,O=20,C="#d9d9d9",E=5,S=1,j=44+2*S,k=260,R=110,M=682/166,N=60,A=48,T="/logo.svg",P=370,L=45,B=20,I=s,D=0,U=0,z={1:f,2:s,3:c,4:u,5:u,6:u,7:u,8:u,9:u,10:u},W=6,F=0,H=0,V=80,q="var(--color--violet--light)",K="var(--color--inactive)",J=80,G=50,$=40,Y=$,Z=580,X=40,Q=200,ee=[{transform:"translateY(0)"},{transform:"translateY(10%)",offset:.5},{transform:"translateY(0)"}]},4472:function(e,t,r){"use strict";function n(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map(function(e){return"'"+e+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function o(e){return!!e&&!!e[V]}function a(e){var t;return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return r===Object||"function"==typeof r&&Function.toString.call(r)===q}(e)||Array.isArray(e)||!!e[H]||!!(null===(t=e.constructor)||void 0===t?void 0:t[H])||f(e)||d(e))}function i(e,t,r){void 0===r&&(r=!1),0===l(e)?(r?Object.keys:K)(e).forEach(function(n){r&&"symbol"==typeof n||t(n,e[n],e)}):e.forEach(function(r,n){return t(n,r,e)})}function l(e){var t=e[V];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:f(e)?2:d(e)?3:0}function c(e,t){return 2===l(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function s(e,t,r){var n=l(e);2===n?e.set(t,r):3===n?e.add(r):e[t]=r}function u(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function f(e){return U&&e instanceof Map}function d(e){return z&&e instanceof Set}function p(e){return e.o||e.t}function h(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=J(e);delete t[V];for(var r=K(t),n=0;n<r.length;n++){var o=r[n],a=t[o];!1===a.writable&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[o]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function m(e,t){return void 0===t&&(t=!1),v(e)||o(e)||!a(e)||(l(e)>1&&(e.set=e.add=e.clear=e.delete=y),Object.freeze(e),t&&i(e,function(e,t){return m(t,!0)},!0)),e}function y(){n(2)}function v(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function g(e){var t=G[e];return t||n(18,e),t}function b(e,t){t&&(g("Patches"),e.u=[],e.s=[],e.v=t)}function _(e){w(e),e.p.forEach(O),e.p=null}function w(e){e===I&&(I=e.l)}function x(e){return I={p:[],l:I,h:e,m:!0,_:0}}function O(e){var t=e[V];0===t.i||1===t.i?t.j():t.g=!0}function C(e,t){t._=t.p.length;var r=t.p[0],o=void 0!==e&&e!==r;return t.h.O||g("ES5").S(t,e,o),o?(r[V].P&&(_(t),n(4)),a(e)&&(e=E(t,e),t.l||j(t,e)),t.u&&g("Patches").M(r[V].t,e,t.u,t.s)):e=E(t,r,[]),_(t),t.u&&t.v(t.u,t.s),e!==F?e:void 0}function E(e,t,r){if(v(t))return t;var n=t[V];if(!n)return i(t,function(o,a){return S(e,n,t,o,a,r)},!0),t;if(n.A!==e)return t;if(!n.P)return j(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var o=4===n.i||5===n.i?n.o=h(n.k):n.o,a=o,l=!1;3===n.i&&(a=new Set(o),o.clear(),l=!0),i(a,function(t,a){return S(e,n,o,t,a,r,l)}),j(e,o,!1),r&&e.u&&g("Patches").N(n,r,e.u,e.s)}return n.o}function S(e,t,r,n,i,l,u){if(o(i)){var f=E(e,i,l&&t&&3!==t.i&&!c(t.R,n)?l.concat(n):void 0);if(s(r,n,f),!o(f))return;e.m=!1}else u&&r.add(i);if(a(i)&&!v(i)){if(!e.h.D&&e._<1)return;E(e,i),t&&t.A.l||j(e,i)}}function j(e,t,r){void 0===r&&(r=!1),!e.l&&e.h.D&&e.m&&m(t,r)}function k(e,t){var r=e[V];return(r?p(r):e)[t]}function R(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function M(e){e.P||(e.P=!0,e.l&&M(e.l))}function N(e){e.o||(e.o=h(e.t))}function A(e,t,r){var n,o,a,i,l,c,s,u=f(t)?g("MapSet").F(t,r):d(t)?g("MapSet").T(t,r):e.O?(a=o={i:(n=Array.isArray(t))?1:0,A:r?r.A:I,P:!1,I:!1,R:{},l:r,t:t,k:null,o:null,j:null,C:!1},i=$,n&&(a=[o],i=Y),c=(l=Proxy.revocable(a,i)).revoke,s=l.proxy,o.k=s,o.j=c,s):g("ES5").J(t,r);return(r?r.A:I).p.push(u),u}function T(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return h(e)}r.d(t,{I8:function(){return tF},mO:function(){return tq},lj:function(){return tG},j2:function(){return eL},Xb:function(){return eJ},O_:function(){return tX},mc:function(){return eB},_C:function(){return t5},Mj:function(){return tS},uz:function(){return e3},ZO:function(){return e8},Jw:function(){return tt},id:function(){return tr},fZ:function(){return tn},AN:function(){return ty},Or:function(){return tm},$o:function(){return te},md:function(){return e9},w1:function(){return e2},mK:function(){return e5},bs:function(){return tN},En:function(){return tk},Ub:function(){return e7},xU:function(){return tx},yJ:function(){return tu},fN:function(){return e6},QB:function(){return tb},Yj:function(){return tR},Xk:function(){return tf},GL:function(){return td},z$:function(){return tp},x5:function(){return ts},QL:function(){return ta},R:function(){return ti},ZA:function(){return th},Rn:function(){return tO},Zf:function(){return tv},HM:function(){return tM},xj:function(){return t3},TP:function(){return t7},h:function(){return nJ},qM:function(){return nQ},ix:function(){return nZ}});var P,L,B,I,D="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),U="undefined"!=typeof Map,z="undefined"!=typeof Set,W="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,F=D?Symbol.for("immer-nothing"):((B={})["immer-nothing"]=!0,B),H=D?Symbol.for("immer-draftable"):"__$immer_draftable",V=D?Symbol.for("immer-state"):"__$immer_state",q=""+Object.prototype.constructor,K="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,J=Object.getOwnPropertyDescriptors||function(e){var t={};return K(e).forEach(function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)}),t},G={},$={get:function(e,t){if(t===V)return e;var r,n,o=p(e);if(!c(o,t))return(n=R(o,t))?"value"in n?n.value:null===(r=n.get)||void 0===r?void 0:r.call(e.k):void 0;var i=o[t];return e.I||!a(i)?i:i===k(e.t,t)?(N(e),e.o[t]=A(e.A.h,i,e)):i},has:function(e,t){return t in p(e)},ownKeys:function(e){return Reflect.ownKeys(p(e))},set:function(e,t,r){var n=R(p(e),t);if(null==n?void 0:n.set)return n.set.call(e.k,r),!0;if(!e.P){var o=k(p(e),t),a=null==o?void 0:o[V];if(a&&a.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(u(r,o)&&(void 0!==r||c(e.t,t)))return!0;N(e),M(e)}return e.o[t]===r&&(void 0!==r||t in e.o)||Number.isNaN(r)&&Number.isNaN(e.o[t])||(e.o[t]=r,e.R[t]=!0),!0},deleteProperty:function(e,t){return void 0!==k(e.t,t)||t in e.t?(e.R[t]=!1,N(e),M(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=p(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:n.enumerable,value:r[t]}:n},defineProperty:function(){n(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){n(12)}},Y={};i($,function(e,t){Y[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Y.deleteProperty=function(e,t){return Y.set.call(this,e,t,void 0)},Y.set=function(e,t,r){return $.set.call(this,e[0],t,r,e[0])};var Z=new(function(){function e(e){var t=this;this.O=W,this.D=!0,this.produce=function(e,r,o){if("function"==typeof e&&"function"!=typeof r){var i,l=r;return r=e,function(e){var n=this;void 0===e&&(e=l);for(var o=arguments.length,a=Array(o>1?o-1:0),i=1;i<o;i++)a[i-1]=arguments[i];return t.produce(e,function(e){var t;return(t=r).call.apply(t,[n,e].concat(a))})}}if("function"!=typeof r&&n(6),void 0!==o&&"function"!=typeof o&&n(7),a(e)){var c=x(t),s=A(t,e,void 0),u=!0;try{i=r(s),u=!1}finally{u?_(c):w(c)}return"undefined"!=typeof Promise&&i instanceof Promise?i.then(function(e){return b(c,o),C(e,c)},function(e){throw _(c),e}):(b(c,o),C(i,c))}if(!e||"object"!=typeof e){if(void 0===(i=r(e))&&(i=e),i===F&&(i=void 0),t.D&&m(i,!0),o){var f=[],d=[];g("Patches").M(e,i,f,d),o(f,d)}return i}n(21,e)},this.produceWithPatches=function(e,r){if("function"==typeof e)return function(r){for(var n=arguments.length,o=Array(n>1?n-1:0),a=1;a<n;a++)o[a-1]=arguments[a];return t.produceWithPatches(r,function(t){return e.apply(void 0,[t].concat(o))})};var n,o,a=t.produce(e,r,function(e,t){n=e,o=t});return"undefined"!=typeof Promise&&a instanceof Promise?a.then(function(e){return[e,n,o]}):[a,n,o]},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}var t=e.prototype;return t.createDraft=function(e){a(e)||n(8),o(e)&&(o(t=e)||n(22,t),e=function e(t){if(!a(t))return t;var r,n=t[V],o=l(t);if(n){if(!n.P&&(n.i<4||!g("ES5").K(n)))return n.t;n.I=!0,r=T(t,o),n.I=!1}else r=T(t,o);return i(r,function(t,o){var a;n&&(2===l(a=n.t)?a.get(t):a[t])===o||s(r,t,e(o))}),3===o?new Set(r):r}(t));var t,r=x(this),c=A(this,e,void 0);return c[V].C=!0,w(r),c},t.finishDraft=function(e,t){var r=(e&&e[V]).A;return b(r,t),C(void 0,r)},t.setAutoFreeze=function(e){this.D=e},t.setUseProxies=function(e){e&&!W&&n(20),this.O=e},t.applyPatches=function(e,t){for(r=t.length-1;r>=0;r--){var r,n=t[r];if(0===n.path.length&&"replace"===n.op){e=n.value;break}}r>-1&&(t=t.slice(r+1));var a=g("Patches").$;return o(e)?a(e,t):this.produce(e,function(e){return a(e,t)})},e}()),X=Z.produce;function Q(e){return(Q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ee(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function et(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ee(Object(r),!0).forEach(function(t){!function(e,t,r){var n;n=function(e,t){if("object"!==Q(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==Q(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"===Q(n)?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ee(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function er(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}Z.produceWithPatches.bind(Z),Z.setAutoFreeze.bind(Z),Z.setUseProxies.bind(Z),Z.applyPatches.bind(Z),Z.createDraft.bind(Z),Z.finishDraft.bind(Z);var en="function"==typeof Symbol&&Symbol.observable||"@@observable",eo=function(){return Math.random().toString(36).substring(7).split("").join(".")},ea={INIT:"@@redux/INIT"+eo(),REPLACE:"@@redux/REPLACE"+eo(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+eo()}};function ei(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce(function(e,t){return function(){return e(t.apply(void 0,arguments))}})}function el(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return function(){var r=e.apply(void 0,arguments),n=function(){throw Error(er(15))},o={getState:r.getState,dispatch:function(){return n.apply(void 0,arguments)}},a=t.map(function(e){return e(o)});return n=ei.apply(void 0,a)(r.dispatch),et(et({},r),{},{dispatch:n})}}}function ec(e){return function(t){var r=t.dispatch,n=t.getState;return function(t){return function(o){return"function"==typeof o?o(r,n,e):t(o)}}}}var es=ec();es.withExtraArgument=ec,r(4406);var eu=(P=function(e,t){return(P=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}P(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),ef=function(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(a){return function(l){return function(a){if(r)throw TypeError("Generator is already executing.");for(;i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===a[0]||2===a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}},ed=function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e},ep=Object.defineProperty,eh=Object.defineProperties,em=Object.getOwnPropertyDescriptors,ey=Object.getOwnPropertySymbols,ev=Object.prototype.hasOwnProperty,eg=Object.prototype.propertyIsEnumerable,eb=function(e,t,r){return t in e?ep(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},e_=function(e,t){for(var r in t||(t={}))ev.call(t,r)&&eb(e,r,t[r]);if(ey)for(var n=0,o=ey(t);n<o.length;n++){var r=o[n];eg.call(t,r)&&eb(e,r,t[r])}return e},ew=function(e,t){return eh(e,em(t))},ex="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!=arguments.length)return"object"==typeof arguments[0]?ei:ei.apply(null,arguments)};"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;var eO=function(e){function t(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var o=e.apply(this,r)||this;return Object.setPrototypeOf(o,t.prototype),o}return eu(t,e),Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.prototype.concat.apply(this,t)},t.prototype.prepend=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return 1===e.length&&Array.isArray(e[0])?new(t.bind.apply(t,ed([void 0],e[0].concat(this)))):new(t.bind.apply(t,ed([void 0],e.concat(this))))},t}(Array);function eC(e){return a(e)?X(e,function(){}):e}function eE(e,t){function r(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];if(t){var o=t.apply(void 0,r);if(!o)throw Error("prepareAction did not return an object");return e_(e_({type:e,payload:o.payload},"meta"in o&&{meta:o.meta}),"error"in o&&{error:o.error})}return{type:e,payload:r[0]}}return r.toString=function(){return""+e},r.type=e,r.match=function(t){return t.type===e},r}function eS(e){var t,r={},n=[],o={addCase:function(e,t){var n="string"==typeof e?e:e.type;if(n in r)throw Error("addCase cannot be called with two reducers for the same action type");return r[n]=t,o},addMatcher:function(e,t){return n.push({matcher:e,reducer:t}),o},addDefaultCase:function(e){return t=e,o}};return e(o),[r,n,t]}function ej(e){var t,r=e.name;if(!r)throw Error("`name` is a required option for createSlice");var n="function"==typeof e.initialState?e.initialState:eC(e.initialState),i=e.reducers||{},l=Object.keys(i),c={},s={},u={};function f(){var t="function"==typeof e.extraReducers?eS(e.extraReducers):[e.extraReducers],r=t[0],i=t[1],l=void 0===i?[]:i,c=t[2],u=void 0===c?void 0:c,f=e_(e_({},void 0===r?{}:r),s);return function(e,t,r,n){void 0===r&&(r=[]);var i,l="function"==typeof t?eS(t):[t,r,void 0],c=l[0],s=l[1],u=l[2];if("function"==typeof e)i=function(){return eC(e())};else{var f=eC(e);i=function(){return f}}function d(e,t){void 0===e&&(e=i());var r=ed([c[t.type]],s.filter(function(e){return(0,e.matcher)(t)}).map(function(e){return e.reducer}));return 0===r.filter(function(e){return!!e}).length&&(r=[u]),r.reduce(function(e,r){if(r){if(o(e)){var n=r(e,t);return void 0===n?e:n}if(a(e))return X(e,function(e){return r(e,t)});var n=r(e,t);if(void 0===n){if(null===e)return e;throw Error("A case reducer on a non-draftable value must not return undefined")}return n}return e},e)}return d.getInitialState=i,d}(n,function(e){for(var t in f)e.addCase(t,f[t]);for(var r=0;r<l.length;r++){var n=l[r];e.addMatcher(n.matcher,n.reducer)}u&&e.addDefaultCase(u)})}return l.forEach(function(e){var t,n,o=i[e],a=r+"/"+e;"reducer"in o?(t=o.reducer,n=o.prepare):t=o,c[e]=t,s[a]=t,u[e]=n?eE(a,n):eE(a)}),{name:r,reducer:function(e,r){return t||(t=f()),t(e,r)},actions:u,caseReducers:c,getInitialState:function(){return t||(t=f()),t.getInitialState()}}}var ek=function(e){void 0===e&&(e=21);for(var t="",r=e;r--;)t+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return t},eR=["name","message","stack","code"],eM=function(e,t){this.payload=e,this.meta=t},eN=function(e,t){this.payload=e,this.meta=t},eA=function(e){if("object"==typeof e&&null!==e){for(var t={},r=0;r<eR.length;r++){var n=eR[r];"string"==typeof e[n]&&(t[n]=e[n])}return t}return{message:String(e)}};function eT(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}!function(){function e(e,t,r){var n=eE(e+"/fulfilled",function(e,t,r,n){return{payload:e,meta:ew(e_({},n||{}),{arg:r,requestId:t,requestStatus:"fulfilled"})}}),o=eE(e+"/pending",function(e,t,r){return{payload:void 0,meta:ew(e_({},r||{}),{arg:t,requestId:e,requestStatus:"pending"})}}),a=eE(e+"/rejected",function(e,t,n,o,a){return{payload:o,error:(r&&r.serializeError||eA)(e||"Rejected"),meta:ew(e_({},a||{}),{arg:n,requestId:t,rejectedWithValue:!!o,requestStatus:"rejected",aborted:(null==e?void 0:e.name)==="AbortError",condition:(null==e?void 0:e.name)==="ConditionError"})}}),i="undefined"!=typeof AbortController?AbortController:function(){function e(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return e.prototype.abort=function(){},e}();return Object.assign(function(e){return function(l,c,s){var u,f=(null==r?void 0:r.idGenerator)?r.idGenerator(e):ek(),d=new i;function p(e){u=e,d.abort()}var h=function(){var i,h;return i=this,h=function(){var i,h,m,y,v,g;return ef(this,function(b){switch(b.label){case 0:var _;if(b.trys.push([0,4,,5]),!(null!==(_=y=null==(i=null==r?void 0:r.condition)?void 0:i.call(r,e,{getState:c,extra:s}))&&"object"==typeof _&&"function"==typeof _.then))return[3,2];return[4,y];case 1:y=b.sent(),b.label=2;case 2:if(!1===y||d.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return v=new Promise(function(e,t){return d.signal.addEventListener("abort",function(){return t({name:"AbortError",message:u||"Aborted"})})}),l(o(f,e,null==(h=null==r?void 0:r.getPendingMeta)?void 0:h.call(r,{requestId:f,arg:e},{getState:c,extra:s}))),[4,Promise.race([v,Promise.resolve(t(e,{dispatch:l,getState:c,extra:s,requestId:f,signal:d.signal,abort:p,rejectWithValue:function(e,t){return new eM(e,t)},fulfillWithValue:function(e,t){return new eN(e,t)}})).then(function(t){if(t instanceof eM)throw t;return t instanceof eN?n(t.payload,f,e,t.meta):n(t,f,e)})])];case 3:return m=b.sent(),[3,5];case 4:return m=(g=b.sent())instanceof eM?a(null,f,e,g.payload,g.meta):a(g,f,e),[3,5];case 5:return r&&!r.dispatchConditionRejection&&a.match(m)&&m.meta.condition||l(m),[2,m]}})},new Promise(function(e,t){var r=function(e){try{o(h.next(e))}catch(e){t(e)}},n=function(e){try{o(h.throw(e))}catch(e){t(e)}},o=function(t){return t.done?e(t.value):Promise.resolve(t.value).then(r,n)};o((h=h.apply(i,null)).next())})}();return Object.assign(h,{abort:p,requestId:f,arg:e,unwrap:function(){return h.then(eT)}})}},{pending:o,rejected:a,fulfilled:n,typePrefix:e})}e.withTypes=function(){return e}}();var eP="listenerMiddleware";eE(eP+"/add"),eE(eP+"/removeAll"),eE(eP+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:void 0!==r.g?r.g:globalThis),"undefined"!=typeof window&&window.requestAnimationFrame&&window.requestAnimationFrame,function(){function e(e,t){var r=a[e];return r?r.enumerable=t:a[e]=r={configurable:!0,enumerable:t,get:function(){var t=this[V];return $.get(t,e)},set:function(t){var r=this[V];$.set(r,e,t)}},r}function t(e){for(var t=e.length-1;t>=0;t--){var o=e[t][V];if(!o.P)switch(o.i){case 5:n(o)&&M(o);break;case 4:r(o)&&M(o)}}}function r(e){for(var t=e.t,r=e.k,n=K(r),o=n.length-1;o>=0;o--){var a=n[o];if(a!==V){var i=t[a];if(void 0===i&&!c(t,a))return!0;var l=r[a],s=l&&l[V];if(s?s.t!==i:!u(l,i))return!0}}var f=!!t[V];return n.length!==K(t).length+(f?0:1)}function n(e){var t=e.k;if(t.length!==e.t.length)return!0;var r=Object.getOwnPropertyDescriptor(t,t.length-1);if(r&&!r.get)return!0;for(var n=0;n<t.length;n++)if(!t.hasOwnProperty(n))return!0;return!1}var a={};G.ES5||(G.ES5={J:function(t,r){var n=Array.isArray(t),o=function(t,r){if(t){for(var n=Array(r.length),o=0;o<r.length;o++)Object.defineProperty(n,""+o,e(o,!0));return n}var a=J(r);delete a[V];for(var i=K(a),l=0;l<i.length;l++){var c=i[l];a[c]=e(c,t||!!a[c].enumerable)}return Object.create(Object.getPrototypeOf(r),a)}(n,t),a={i:n?5:4,A:r?r.A:I,P:!1,I:!1,R:{},l:r,t:t,k:o,o:null,g:!1,C:!1};return Object.defineProperty(o,V,{value:a,writable:!0}),o},S:function(e,r,a){a?o(r)&&r[V].A===e&&t(e.p):(e.u&&function e(t){if(t&&"object"==typeof t){var r=t[V];if(r){var o=r.t,a=r.k,l=r.R,s=r.i;if(4===s)i(a,function(t){t!==V&&(void 0!==o[t]||c(o,t)?l[t]||e(a[t]):(l[t]=!0,M(r)))}),i(o,function(e){void 0!==a[e]||c(a,e)||(l[e]=!1,M(r))});else if(5===s){if(n(r)&&(M(r),l.length=!0),a.length<o.length)for(var u=a.length;u<o.length;u++)l[u]=!1;else for(var f=o.length;f<a.length;f++)l[f]=!0;for(var d=Math.min(a.length,o.length),p=0;p<d;p++)a.hasOwnProperty(p)||(l[p]=!0),void 0===l[p]&&e(a[p])}}}}(e.p[0]),t(e.p))},K:function(e){return 4===e.i?r(e):n(e)}})}();let eL=eE("initialize"),eB=eE("reset");var eI=r(1266),eD=r(1860),eU=r.n(eD);let ez="auto-group-tiles",eW="board",eF="config-id",eH="input-mode",eV="locale",eq="rack",eK=eU().namespace("scrabble-solver");var eJ={getAutoGroupTiles:()=>eK.get(ez),setAutoGroupTiles(e){eK.set(ez,e,!0)},getBoard(){let e=eK.get(eW);return e?eI.Board.fromJson(JSON.parse(e)):e},setBoard(e){let t=e?JSON.stringify(e.toJson()):e;eK.set(eW,t,!0)},getConfigId:()=>eK.get(eF),setConfigId(e){eK.set(eF,e,!0)},getInputMode:()=>eK.get(eH),setInputMode(e){eK.set(eH,e,!0)},getLocale:()=>eK.get(eV),setLocale(e){eK.set(eV,e,!0)},getRack:()=>eK.get(eq),setRack(e){eK.set(eq,e,!0)}},eG="NOT_FOUND",e$=function(e,t){return e===t},eY=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return function(){for(var t,n=arguments.length,o=Array(n),a=0;a<n;a++)o[a]=arguments[a];var i=0,l={memoizeOptions:void 0},c=o.pop();if("object"==typeof c&&(l=c,c=o.pop()),"function"!=typeof c)throw Error("createSelector expects an output function after the inputs, but received: ["+typeof c+"]");var s=l.memoizeOptions,u=void 0===s?r:s,f=Array.isArray(u)?u:[u],d=function(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every(function(e){return"function"==typeof e}))throw Error("createSelector expects all input-selectors to be functions, but received the following types: ["+t.map(function(e){return"function"==typeof e?"function "+(e.name||"unnamed")+"()":typeof e}).join(", ")+"]");return t}(o),p=e.apply(void 0,[function(){return i++,c.apply(null,arguments)}].concat(f)),h=e(function(){for(var e=[],r=d.length,n=0;n<r;n++)e.push(d[n].apply(null,arguments));return t=p.apply(null,e)});return Object.assign(h,{resultFunc:c,memoizedResultFunc:p,dependencies:d,lastResult:function(){return t},recomputations:function(){return i},resetRecomputations:function(){return i=0}}),h}}(function(e,t){var r,n,o="object"==typeof t?t:{equalityCheck:t},a=o.equalityCheck,i=o.maxSize,l=void 0===i?1:i,c=o.resultEqualityCheck,s=(r=void 0===a?e$:a,function(e,t){if(null===e||null===t||e.length!==t.length)return!1;for(var n=e.length,o=0;o<n;o++)if(!r(e[o],t[o]))return!1;return!0}),u=1===l?{get:function(e){return n&&s(n.key,e)?n.value:eG},put:function(e,t){n={key:e,value:t}},getEntries:function(){return n?[n]:[]},clear:function(){n=void 0}}:function(e,t){var r=[];function n(e){var n=r.findIndex(function(r){return t(e,r.key)});if(n>-1){var o=r[n];return n>0&&(r.splice(n,1),r.unshift(o)),o.value}return eG}return{get:n,put:function(t,o){n(t)===eG&&(r.unshift({key:t,value:o}),r.length>e&&r.pop())},getEntries:function(){return r},clear:function(){r=[]}}}(l,s);function f(){var t=u.get(arguments);if(t===eG){if(t=e.apply(null,arguments),c){var r=u.getEntries().find(function(e){return c(e.value,t)});r&&(t=r.value)}u.put(arguments,t)}return t}return f.clearCache=function(){return u.clear()},f}),eZ=r(9418),eX=r(7618),eQ=r(6743),e0=r(8954);let e1=e=>e.rack,e2=e=>e.dictionary,e5=eY([e=>e.dictionary],e=>(0,eI.isError)(e.error)?e.error:void 0),e6=eY([e=>e.settings],e=>e.locale),e3=eY([e=>e.settings],e=>e.autoGroupTiles),e4=eY([e6,e=>e.settings],(e,t)=>"ltr"===eQ.q0[e].direction||null===t.autoGroupTiles?t.autoGroupTiles:"left"===t.autoGroupTiles?"right":"left"),e8=e=>e.board,e7=eY([e=>e.settings],e=>e.inputMode),e9=eY([e=>e.settings],e=>e.configId),te=eY([e9,e6],eZ.getLocaleConfig),tt=e=>e.cellFilter,tr=eY([tt,(e,t)=>t],(e,t)=>{let{x:r,y:n}=t;return e.some(e=>e.x===r&&e.y===n)}),tn=eY([te,(e,t)=>t],(e,t)=>!t.hasTile()||e.tiles.some(e=>e.character===t.tile.character)),to=eY([e=>e.results],e=>e.results),ta=eY([e=>e.results],e=>e.query),ti=eY([e=>e.results],e=>e.sort),tl=eY([to,ti,e6],e0.uj),tc=eY([tl,ta,tt],e0.CU),ts=eY([tc],e=>e?[...e.matching,...e.other]:e),tu=eY([ts,ta,tt,(e,t)=>t],(e,t,r,n)=>{if(!e)return!1;let o=e[n],a=(0,e0.GF)(t);return!!a.test(o.word)&&(!r||r.every(e=>{let{x:t,y:r}=e;return o.cells.some(e=>e.x===t&&e.y===r)}))}),tf=eY([e=>e.results],e=>e.candidate),td=eY([tf],e=>(null==e?void 0:e.cells)||[]),tp=eY([tf],e=>(null==e?void 0:e.tiles)||[]),th=eY([e=>e.board,td],(e,t)=>e.rows.map((e,r)=>e.map((e,n)=>(0,e0.Jp)(t,n,r)||e)));eY([te,(e,t)=>t],(e,t)=>e.getCellBonus(t));let tm=eY([te,(e,t)=>t],(e,t)=>e.getCharacterPoints(t)),ty=eY([te,(e,t)=>t],(e,t)=>null===t||t===eX.BLANK||e.tiles.some(e=>e.character===t)),tv=eY([te,(e,t)=>t],(e,t)=>e.getTilePoints(t)),tg=eY([e6],e=>eQ.ZP[e]);eY([tg,e6,(e,t)=>t],(e,t,r)=>{let n=e[r];if(void 0===n)throw Error('Untranslated key "'.concat(r,'" in locale "').concat(t,'"'));return n});let tb=e1,t_=eY(e1,e=>e.filter(e=>null!==e)),tw=eY([e=>e.solve],e=>e.lastSolvedParameters),tx=eY([e=>e.solve],e=>e.isLoading),tO=eY([e=>e.solve],e=>(0,eI.isError)(e.error)?e.error:void 0),tC=eY([tw,t_,e6],(e,t,r)=>!(0,e0.DR)(e.characters,t,r)),tE=eY([tw,e=>e.board],(e,t)=>!e.board.equals(t)),tS=eY([tE,tC],(e,t)=>e||t),tj=eY([te,e=>e.board,t_,e6],e0.ZM),tk=eY([tj],e=>e.some(e=>{let{count:t,usedCount:r}=e;return r>t})),tR=eY([tj],e0.op),tM=e=>e.verify,tN=eY([tM],e=>{let{invalidWords:t}=e;return t.length>0}),tA=eJ.getAutoGroupTiles(),tT=void 0!==globalThis.matchMedia&&globalThis.matchMedia("(hover: none)").matches,tP={autoGroupTiles:void 0===tA?"left":tA,configId:eJ.getConfigId()||eZ.scrabble.id,inputMode:eJ.getInputMode()||(tT?"touchscreen":"keyboard"),locale:eJ.getLocale()||(0,e0.sf)()},{configId:tL,locale:tB}=tP,{boardHeight:tI,boardWidth:tD}=(0,eZ.getLocaleConfig)(tL,tB),tU=eI.Board.create(tD,tI),tz=eJ.getBoard()||tU,tW=ej({initialState:tz,name:"board",reducers:{applyResult:(e,t)=>{let r=e.clone(),n=t.payload;return n.cells.forEach(e=>{r.updateCell(e.x,e.y,()=>new eI.Cell({...e,isEmpty:!1}))}),r},change:(e,t)=>{let r=t.payload;return r},changeCellValue:(e,t)=>{let r=e.clone(),{value:n,x:o,y:a}=t.payload,i=!n||n===eX.EMPTY_CELL,l=i?eI.Tile.Null:new eI.Tile({character:n});return r.updateCell(o,a,e=>new eI.Cell({...e,isEmpty:i,tile:l})),r},init:(e,t)=>{let r=t.payload;return r},reset:()=>tU,toggleCellIsBlank:(e,t)=>{let r=e.clone(),{x:n,y:o}=t.payload;return r.updateCell(n,o,e=>{let t=e.isEmpty?e.tile:new eI.Tile({...e.tile,isBlank:!e.tile.isBlank});return new eI.Cell({...e,tile:t})}),r}}});var tF=tW,tH=[];let tV=ej({initialState:tH,name:"cellFilter",reducers:{toggle:(e,t)=>{let{x:r,y:n}=t.payload,o=e.some(e=>e.x===r&&e.y===n);return o?e.filter(e=>e.x!==r||e.y!==n):[...e,t.payload]},reset:()=>tH}});var tq=tV,tK={error:void 0,input:"",isLoading:!1,results:[]};let tJ=ej({initialState:tK,name:"dictionary",reducers:{changeInput:(e,t)=>({...e,input:t.payload}),reset:()=>tK,submit:e=>{let t=tK.error,r=tK.results;return{...e,error:t,isLoading:!0,results:r}},submitFailure:(e,t)=>{let r=t.payload,n=tK.results;return{...e,error:r,isLoading:!1,results:n}},submitSuccess:(e,t)=>{let r=tK.error,n=t.payload;return{...e,error:r,isLoading:!1,results:n}}}});var tG=tJ;let t$=[null,null,null,null,null,null,null],tY=eJ.getRack()||t$,tZ=ej({initialState:tY,name:"rack",reducers:{changeCharacter:(e,t)=>{let{character:r,index:n}=t.payload;return[...e.slice(0,n),r,...e.slice(n+1)]},changeCharacters:(e,t)=>{let{characters:r,index:n}=t.payload;if(0===r.length)return e;let o=e.length,a=[...e.slice(0,n),...r,...e.slice(n+r.length)];return a.slice(0,o)},groupTiles:(e,t)=>{if(null===t.payload)return e;let r=(0,e0.Ml)((0,e0.Mf)(t.payload)),n=[...e].sort(r);return(0,e0._g)(e,n)?e:n},init:(e,t)=>(0,e0._g)(e,t.payload)?e:t.payload,removeTiles:(e,t)=>{let r=t.payload,n=(0,e0.gV)(e,r),o=n.map(e=>{let{character:t,tile:r}=e;return r?null:t});return o},reset:()=>t$}});var tX=tZ,tQ=r(1966);let t0={candidate:null,query:"",results:void 0,sort:{column:tQ.M.Points,direction:tQ.S.Descending}},t1=e=>e===tQ.S.Ascending?tQ.S.Descending:tQ.S.Ascending,t2=ej({initialState:t0,name:"results",reducers:{applyResult:(e,t)=>t0,changeQuery:(e,t)=>{let r=t.payload;return{...e,query:r}},changeResultCandidate:(e,t)=>{let r=t.payload;return{...e,candidate:r}},changeResults:(e,t)=>{let r=t.payload;return{...e,candidate:t0.candidate,query:t0.query,results:r}},sort:(e,t)=>{let r=t.payload,{column:n,direction:o}=e.sort;return{...e,sort:{column:r,direction:n===r?t1(o):o}}},reset:()=>t0}});var t5=t2;let t6=ej({initialState:tP,name:"settings",reducers:{changeAutoGroupTiles:(e,t)=>{let r=t.payload;return{...e,autoGroupTiles:r}},changeConfigId:(e,t)=>{let r=t.payload;return{...e,configId:r}},changeInputMode:(e,t)=>{let r=t.payload;return{...e,inputMode:r}},changeLocale:(e,t)=>{let r=t.payload;return{...e,locale:r}},init:(e,t)=>({...e,...t.payload})}});var t3=t6,t4={error:void 0,isLoading:!1,lastSolvedParameters:{board:tz,characters:[]}};let t8=ej({initialState:t4,name:"solve",reducers:{reset:()=>t4,submit:e=>{let t=t4.error;return{...e,error:t,isLoading:!0}},submitFailure:(e,t)=>{let r=t.payload;return{...e,error:r,isLoading:!1}},submitSuccess:(e,t)=>{let r=t4.error,n=t.payload;return{...e,error:r,isLoading:!1,lastSolvedParameters:n}}}});var t7=t8;let t9=ej({initialState:{isLoading:!1,lastSolvedParameters:{board:tz},invalidWords:[],validWords:[]},name:"verify",reducers:{submit:e=>({...e,isLoading:!0}),submitFailure:e=>({...e,isLoading:!1}),submitSuccess:(e,t)=>{let{board:r,invalidWords:n,validWords:o}=t.payload;return{...e,isLoading:!1,lastSolvedParameters:{board:r},invalidWords:n,validWords:o}}}});var re=function(e){return"@@redux-saga/"+e},rt=re("CANCEL_PROMISE"),rr=re("CHANNEL_END"),rn=re("IO"),ro=re("MATCH"),ra=re("MULTICAST"),ri=re("SAGA_ACTION"),rl=re("SELF_CANCELLATION"),rc=re("TASK"),rs=re("TASK_CANCEL"),ru=re("TERMINATE"),rf=re("LOCATION"),rd=r(7462),rp=function(e){return null==e},rh=function(e){return null!=e},rm=function(e){return"function"==typeof e},ry=function(e){return"string"==typeof e},rv=Array.isArray,rg=function(e){return e&&rm(e.then)},rb=function(e){return e&&rm(e.next)&&rm(e.throw)},r_=function e(t){return t&&(ry(t)||rO(t)||rm(t)||rv(t)&&t.every(e))},rw=function(e){return e&&rm(e.take)&&rm(e.close)},rx=function(e){return rm(e)&&e.hasOwnProperty("toString")},rO=function(e){return Boolean(e)&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype},rC=function(){return!0},rE=function(){},rS=function(e){return e},rj=function(e,t){(0,rd.Z)(e,t),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(function(r){e[r]=t[r]})},rk=function(e,t){var r;return(r=[]).concat.apply(r,t.map(e))};function rR(e,t){var r=e.indexOf(t);r>=0&&e.splice(r,1)}var rM=function(e){throw e},rN=function(e){return{value:e,done:!0}};function rA(e,t,r){void 0===t&&(t=rM),void 0===r&&(r="iterator");var n={meta:{name:r},next:e,throw:t,return:rN,isSagaIterator:!0};return"undefined"!=typeof Symbol&&(n[Symbol.iterator]=function(){return n}),n}function rT(e,t){var r=t.sagaStack;console.error(e),console.error(r)}var rP=function(e){return Array.apply(null,Array(e))},rL=function(e){return e===ru},rB=function(e){return e===rs},rI=function(e){return rL(e)||rB(e)};function rD(e,t){var r,n=Object.keys(e),o=n.length,a=0,i=rv(e)?rP(o):{},l={};return n.forEach(function(e){var n=function(n,l){r||(l||rI(n)?(t.cancel(),t(n,l)):(i[e]=n,++a===o&&(r=!0,t(i))))};n.cancel=rE,l[e]=n}),t.cancel=function(){r||(r=!0,n.forEach(function(e){return l[e].cancel()}))},l}function rU(e){return{name:e.name||"anonymous",location:e[rf]}}var rz="TAKE",rW="CALL",rF="FORK",rH="CANCEL",rV="SELECT",rq=function(e,t){var r;return(r={})[rn]=!0,r.combinator=!1,r.type=e,r.payload=t,r};function rK(e,t){var r;return(void 0===e&&(e="*"),r_(e))?(rh(t)&&console.warn("take(pattern) takes one argument but two were provided. Consider passing an array for listening to several action types"),rq(rz,{pattern:e})):rw(r=e)&&r[ra]&&rh(t)&&r_(t)?rq(rz,{channel:e,pattern:t}):rw(e)?(rh(t)&&console.warn("take(channel) takes one argument but two were provided. Second argument is ignored."),rq(rz,{channel:e})):void 0}function rJ(e,t){return rp(t)&&(t=e,e=void 0),rq("PUT",{channel:e,action:t})}function rG(e,t){var r,n=null;return rm(e)?r=e:(rv(e)?(n=e[0],r=e[1]):(n=e.context,r=e.fn),n&&ry(r)&&rm(n[r])&&(r=n[r])),{context:n,fn:r,args:t}}function r$(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return rq(rW,rG(e,r))}function rY(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return rq(rF,rG(e,r))}function rZ(e){void 0===e&&(e=rS);for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return rq(rV,{selector:e,args:r})}var rX=r$.bind(null,function(e,t){void 0===t&&(t=!0);var r,n=new Promise(function(n){r=setTimeout(n,Math.min(2147483647,e),t)});return n[rt]=function(){clearTimeout(r)},n}),rQ=function(){var e={};return e.promise=new Promise(function(t,r){e.resolve=t,e.reject=r}),e},r0=[],r1=0;function r2(e){r0.push(e),r1||(r1++,r6())}function r5(e){try{return r1++,e()}finally{r6()}}function r6(){var e;for(r1--;!r1&&void 0!==(e=r0.shift());)!function(e){try{r1++,e()}finally{r1--}}(e)}var r3=function(e){return function(t){return e.some(function(e){return ne(e)(t)})}},r4=function(e){return function(t){return e(t)}},r8=function(e){return function(t){return t.type===String(e)}},r7=function(e){return function(t){return t.type===e}},r9=function(){return rC};function ne(e){var t="*"===e?r9:ry(e)?r8:rv(e)?r3:rx(e)?r8:rm(e)?r4:rO(e)?r7:null;if(null===t)throw Error("invalid pattern: "+e);return t(e)}var nt={type:rr},nr=function(e){return e&&e.type===rr};function nn(){var e,t,r,n,o,a,i=(t=!1,n=r=[],o=function(){n===r&&(n=r.slice())},a=function(){t=!0;var e=r=n;n=[],e.forEach(function(e){e(nt)})},(e={})[ra]=!0,e.put=function(e){if(!t){if(nr(e)){a();return}for(var o=r=n,i=0,l=o.length;i<l;i++){var c=o[i];c[ro](e)&&(c.cancel(),c(e))}}},e.take=function(e,r){var a,i;if(void 0===r&&(r=r9),t){e(nt);return}e[ro]=r,o(),n.push(e),e.cancel=(a=function(){o(),rR(n,e)},i=!1,function(){i||(i=!0,a())})},e.close=a,e),l=i.put;return i.put=function(e){if(e[ri]){l(e);return}r2(function(){l(e)})},i}function no(e,t){var r=e[rt];rm(r)&&(t.cancel=r),e.then(t,function(e){t(e,!0)})}var na=0,ni=function(){return++na};function nl(e){e.isRunning()&&e.cancel()}var nc=((L={})[rz]=function(e,t,r){var n=t.channel,o=void 0===n?e.channel:n,a=t.pattern,i=t.maybe,l=function(e){if(e instanceof Error){r(e,!0);return}if(nr(e)&&!i){r(ru);return}r(e)};try{o.take(l,rh(a)?ne(a):null)}catch(e){r(e,!0);return}r.cancel=l.cancel},L.PUT=function(e,t,r){var n=t.channel,o=t.action,a=t.resolve;r2(function(){var t;try{t=(n?n.put:e.dispatch)(o)}catch(e){r(e,!0);return}a&&rg(t)?no(t,r):r(t)})},L.ALL=function(e,t,r,n){var o=n.digestEffect,a=na,i=Object.keys(t);if(0===i.length){r(rv(t)?[]:{});return}var l=rD(t,r);i.forEach(function(e){o(t[e],a,l[e],e)})},L.RACE=function(e,t,r,n){var o=n.digestEffect,a=na,i=Object.keys(t),l=rv(t)?rP(i.length):{},c={},s=!1;i.forEach(function(e){var t=function(t,n){s||(n||rI(t)?(r.cancel(),r(t,n)):(r.cancel(),s=!0,l[e]=t,r(l)))};t.cancel=rE,c[e]=t}),r.cancel=function(){s||(s=!0,i.forEach(function(e){return c[e].cancel()}))},i.forEach(function(e){s||o(t[e],a,c[e],e)})},L[rW]=function(e,t,r,n){var o=t.context,a=t.fn,i=t.args,l=n.task;try{var c=a.apply(o,i);if(rg(c)){no(c,r);return}if(rb(c)){ny(e,c,l.context,na,rU(a),!1,r);return}r(c)}catch(e){r(e,!0)}},L.CPS=function(e,t,r){var n=t.context,o=t.fn,a=t.args;try{var i=function(e,t){rp(e)?r(t):r(e,!0)};o.apply(n,a.concat(i)),i.cancel&&(r.cancel=i.cancel)}catch(e){r(e,!0)}},L[rF]=function(e,t,r,n){var o=t.context,a=t.fn,i=t.args,l=t.detached,c=n.task,s=function(e){var t=e.context,r=e.fn,n=e.args;try{var o=r.apply(t,n);if(rb(o))return o;var a=!1;return rA(function(e){return a?{value:e,done:!0}:(a=!0,{value:o,done:!rg(o)})})}catch(e){return rA(function(){throw e})}}({context:o,fn:a,args:i}),u=s.isSagaIterator?{name:s.meta.name}:rU(a);r5(function(){var t=ny(e,s,c.context,na,u,l,void 0);l?r(t):t.isRunning()?(c.queue.addTask(t),r(t)):t.isAborted()?c.queue.abort(t.error()):r(t)})},L.JOIN=function(e,t,r,n){var o=n.task,a=function(e,t){if(e.isRunning()){var r={task:o,cb:t};t.cancel=function(){e.isRunning()&&rR(e.joiners,r)},e.joiners.push(r)}else e.isAborted()?t(e.error(),!0):t(e.result())};if(rv(t)){if(0===t.length){r([]);return}var i=rD(t,r);t.forEach(function(e,t){a(e,i[t])})}else a(t,r)},L[rH]=function(e,t,r,n){var o=n.task;t===rl?nl(o):rv(t)?t.forEach(nl):nl(t),r()},L[rV]=function(e,t,r){var n=t.selector,o=t.args;try{var a=n.apply(void 0,[e.getState()].concat(o));r(a)}catch(e){r(e,!0)}},L.ACTION_CHANNEL=function(e,t,r){var n=t.pattern,o=function(e){if(void 0===e){var t,r,n,o,a,i,l,c;t=void 0,r=Array(t=10),n=0,o=0,a=0,i=function(e){r[o]=e,o=(o+1)%t,n++},l=function(){if(0!=n){var e=r[a];return r[a]=null,n--,a=(a+1)%t,e}},c=function(){for(var e=[];n;)e.push(l());return e},e={isEmpty:function(){return 0==n},put:function(e){if(n<t)i(e);else{var l;l=2*t,n=(r=c()).length,o=r.length,a=0,r.length=l,t=l,i(e)}},take:l,flush:c}}var s=!1,u=[];return{take:function(t){s&&e.isEmpty()?t(nt):e.isEmpty()?(u.push(t),t.cancel=function(){rR(u,t)}):t(e.take())},put:function(t){if(!s){if(0===u.length)return e.put(t);u.shift()(t)}},flush:function(t){if(s&&e.isEmpty()){t(nt);return}t(e.flush())},close:function(){if(!s){s=!0;var e=u;u=[];for(var t=0,r=e.length;t<r;t++)(0,e[t])(nt)}}}}(t.buffer),a=ne(n),i=function t(r){nr(r)||e.channel.take(t,a),o.put(r)},l=o.close;o.close=function(){i.cancel(),l()},e.channel.take(i,a),r(o)},L.CANCELLED=function(e,t,r,n){r(n.task.isCancelled())},L.FLUSH=function(e,t,r){t.flush(r)},L.GET_CONTEXT=function(e,t,r,n){r(n.task.context[t])},L.SET_CONTEXT=function(e,t,r,n){rj(n.task.context,t),r()},L);function ns(e){var t=e.name,r=e.location;return r?t+" "+r.fileName+"?"+r.lineNumber:t}var nu=null,nf=[],nd=function(e){e.crashedEffect=nu,nf.push(e)},np=function(){nu=null,nf.length=0},nh=function(e){nu=e},nm=function(){var e,t,r=nf[0],n=nf.slice(1),o=r.crashedEffect?(e=r.crashedEffect[rf])?e.code+" "+e.fileName+"?"+e.lineNumber:"":null;return["The above error occurred in task "+ns(r.meta)+(o?" \n when executing effect "+o:"")].concat(n.map(function(e){return" created by "+ns(e.meta)}),[(t=rk(function(e){return e.cancelledTasks},nf)).length?["Tasks cancelled due to error:"].concat(t).join("\n"):""]).join("\n")};function ny(e,t,r,n,o,a,i){var l=e.finalizeRunEffect(function(t,r,n){rg(t)?no(t,n):rb(t)?ny(e,t,s.context,r,o,!1,n):t&&t[rn]?(0,nc[t.type])(e,t.payload,n,u):n(t)});f.cancel=rE;var c={meta:o,cancel:function(){0===c.status&&(c.status=1,f(rs))},status:0},s=function(e,t,r,n,o,a,i){void 0===i&&(i=rE);var l,c,s,u=0,f=null,d=[],p=Object.create(r),h=function(e,t,r){var n,o=[],a=!1;function i(e){t(),c(),r(e,!0)}function l(t){o.push(t),t.cont=function(l,c){!a&&(rR(o,t),t.cont=rE,c?i(l):(t===e&&(n=l),o.length||(a=!0,r(n))))}}function c(){a||(a=!0,o.forEach(function(e){e.cont=rE,e.cancel()}),o=[])}return l(e),{addTask:l,cancelAll:c,abort:i,getTasks:function(){return o}}}(t,function(){d.push.apply(d,h.getTasks().map(function(e){return e.meta.name}))},m);function m(t,r){if(r){if(u=2,nd({meta:o,cancelledTasks:d}),y.isRoot){var n=nm();np(),e.onError(t,{sagaStack:n})}s=t,f&&f.reject(t)}else t===rs?u=1:1!==u&&(u=3),c=t,f&&f.resolve(t);y.cont(t,r),y.joiners.forEach(function(e){e.cb(t,r)}),y.joiners=null}var y=((l={})[rc]=!0,l.id=n,l.meta=o,l.isRoot=a,l.context=p,l.joiners=[],l.queue=h,l.cancel=function(){0===u&&(u=1,h.cancelAll(),m(rs,!1))},l.cont=i,l.end=m,l.setContext=function(e){rj(p,e)},l.toPromise=function(){return f||(f=rQ(),2===u?f.reject(s):0!==u&&f.resolve(c)),f.promise},l.isRunning=function(){return 0===u},l.isCancelled=function(){return 1===u||0===u&&1===t.status},l.isAborted=function(){return 2===u},l.result=function(){return c},l.error=function(){return s},l);return y}(e,c,r,n,o,a,i),u={task:s,digestEffect:d};return i&&(i.cancel=s.cancel),f(),s;function f(e,r){try{var o;r?(o=t.throw(e),np()):rB(e)?(c.status=1,f.cancel(),o=rm(t.return)?t.return(rs):{done:!0,value:rs}):o=rL(e)?rm(t.return)?t.return():{done:!0}:t.next(e),o.done?(1!==c.status&&(c.status=3),c.cont(o.value)):d(o.value,n,f)}catch(e){if(1===c.status)throw e;c.status=2,c.cont(e,!0)}}function d(t,r,n,o){void 0===o&&(o="");var a,i=ni();function c(r,o){a||(a=!0,n.cancel=rE,e.sagaMonitor&&(o?e.sagaMonitor.effectRejected(i,r):e.sagaMonitor.effectResolved(i,r)),o&&nh(t),n(r,o))}e.sagaMonitor&&e.sagaMonitor.effectTriggered({effectId:i,parentEffectId:r,label:o,effect:t}),c.cancel=rE,n.cancel=function(){!a&&(a=!0,c.cancel(),c.cancel=rE,e.sagaMonitor&&e.sagaMonitor.effectCancelled(i))},l(t,i,c)}}function nv(e,t){for(var r,n=e.channel,o=void 0===n?nn():n,a=e.dispatch,i=e.getState,l=e.context,c=void 0===l?{}:l,s=e.sagaMonitor,u=e.effectMiddlewares,f=e.onError,d=arguments.length,p=Array(d>2?d-2:0),h=2;h<d;h++)p[h-2]=arguments[h];var m=t.apply(void 0,p),y=ni();if(s&&(s.rootSagaStarted=s.rootSagaStarted||rE,s.effectTriggered=s.effectTriggered||rE,s.effectResolved=s.effectResolved||rE,s.effectRejected=s.effectRejected||rE,s.effectCancelled=s.effectCancelled||rE,s.actionDispatched=s.actionDispatched||rE,s.rootSagaStarted({effectId:y,saga:t,args:p})),u){var v=ei.apply(void 0,u);r=function(e){return function(t,r,n){return v(function(t){return e(t,r,n)})(t)}}}else r=rS;var g={channel:o,dispatch:function(e){return a(Object.defineProperty(e,ri,{value:!0}))},getState:i,sagaMonitor:s,onError:void 0===f?rT:f,finalizeRunEffect:r};return r5(function(){var e=ny(g,m,c,y,rU(t),!0,void 0);return s&&s.effectResolved(y,e),e})}var ng=function(e){return{done:!0,value:e}},nb={};function n_(e){return rw(e)?"channel":rx(e)?String(e):rm(e)?e.name:String(e)}function nw(e,t,r){var n,o,a,i=t;function l(t,r){if(i===nb)return ng(t);if(r&&!o)throw i=nb,r;n&&n(t);var l=r?e[o](r):e[i]();return i=l.nextState,a=l.effect,n=l.stateUpdater,o=l.errorState,i===nb?ng(t):a}return rA(l,function(e){return l(null,e)},r)}function nx(e,t){for(var r=arguments.length,n=Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];var a,i={done:!1,value:rK(e)},l=function(e){return a=e};return nw({q1:function(){return{nextState:"q2",effect:i,stateUpdater:l}},q2:function(){var e;return{nextState:"q1",effect:(e=a,{done:!1,value:rY.apply(void 0,[t].concat(n,[e]))})}}},"q1","takeEvery("+n_(e)+", "+t.name+")")}function nO(e,t){for(var r,n,o=arguments.length,a=Array(o>2?o-2:0),i=2;i<o;i++)a[i-2]=arguments[i];var l={done:!1,value:rK(e)},c=function(e){return{done:!1,value:rY.apply(void 0,[t].concat(a,[e]))}},s=function(e){var t;return{done:!1,value:(void 0===(t=e)&&(t=rl),rq(rH,t))}},u=function(e){return r=e},f=function(e){return n=e};return nw({q1:function(){return{nextState:"q2",effect:l,stateUpdater:f}},q2:function(){return r?{nextState:"q3",effect:s(r)}:{nextState:"q1",effect:c(n),stateUpdater:u}},q3:function(){return{nextState:"q1",effect:c(n),stateUpdater:u}}},"q1","takeLatest("+n_(e)+", "+t.name+")")}function nC(e,t){for(var r=arguments.length,n=Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];return rY.apply(void 0,[nx,e,t].concat(n))}function nE(e,t){for(var r=arguments.length,n=Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];return rY.apply(void 0,[nO,e,t].concat(n))}let nS=async(e,t)=>{let r;try{r=await window.fetch(e,t)}catch(t){let e=(0,eI.isError)(t)?t.message:"Unknown error";throw Error("Network error: ".concat(e))}if(r.ok)return r;{let e=await r.json();if((0,eI.isError)(e))throw Error(e.message)}throw Error("HTTP ".concat(r.status,": ").concat(r.statusText))},nj=async(e,t)=>{let r=await nS(e,{...t,headers:{"Content-Type":"application/json",...null==t?void 0:t.headers}});return r.json()},nk=async(e,t)=>{let r=await nj("/api/dictionary/".concat(e,"/").concat(encodeURIComponent(t)));return r.map(eI.WordDefinition.fromJson)},nR=async e=>{let{board:t,characters:r,configId:n,locale:o}=e,a=await nj("/api/solve",{method:"POST",body:JSON.stringify({board:t,characters:r,configId:n,locale:o})});return a.map(eI.Result.fromJson)},nM=async e=>{let{board:t,configId:r,locale:n}=e;return nj("/api/verify",{method:"POST",body:JSON.stringify({board:t,configId:r,locale:n})})},nN=()=>fetch("/api/visit",{method:"PUT"}),nA=(0,e0.HP)(nk);function*nT(e){let{payload:t}=e,r=yield rZ(e=>tr(e,t));r&&(yield rJ(tq.actions.toggle(t))),yield rJ(t5.actions.changeResultCandidate(null)),yield rJ(t9.actions.submit())}function*nP(){yield rJ(t5.actions.changeResultCandidate(null))}function*nL(e){let{payload:t}=e,r=yield rZ(e4);yield rJ(tF.actions.applyResult(t)),yield rJ(tq.actions.reset()),yield rJ(tX.actions.removeTiles(t.tiles)),yield rJ(tX.actions.groupTiles(r)),yield rJ(t9.actions.submit())}function*nB(){let e=yield rZ(t_);e.length>0?yield rJ(t7.actions.submit()):yield rJ(t5.actions.reset()),yield rJ(t5.actions.reset()),yield rJ(t9.actions.submit()),yield*nV()}function*nI(){let{input:e}=yield rZ(e2),t=yield rZ(e6);nA.hasCache(t,e)||(yield rX(150));try{let r=yield r$(nA,t,e);yield rJ(tG.actions.submitSuccess(r))}catch(e){yield rJ(tG.actions.submitFailure(e))}}function*nD(){let e=yield rZ(e8);yield r$(nN),e.isEmpty()||(yield*nV(),yield rJ(t9.actions.submit()))}function*nU(){yield rJ(tF.actions.reset()),yield rJ(tq.actions.reset()),yield rJ(tG.actions.reset()),yield rJ(tX.actions.reset()),yield rJ(t5.actions.reset()),yield rJ(t7.actions.reset()),yield rJ(t9.actions.submit())}function*nz(){let e=yield rZ(t_);e.length>0?yield rJ(t7.actions.submit()):yield rJ(t5.actions.reset()),yield rJ(tG.actions.reset()),yield rJ(t5.actions.changeResultCandidate(null)),yield rJ(t9.actions.submit())}function*nW(e){let{payload:t}=e;if(t){let e=yield rZ(e6);yield rJ(tG.actions.changeInput(t.words.join(eQ.q0[e].separator))),yield rJ(tG.actions.submit())}}function*nF(){let e=yield rZ(e8),{config:t}=yield rZ(te),r=yield rZ(e6),n=yield rZ(t_);if(0===n.length){yield rJ(t7.actions.submitSuccess({board:e,characters:n})),yield rJ(t5.actions.changeResults([]));return}try{let o=yield r$(nR,{board:e.toJson(),characters:n,configId:t.id,locale:r});yield rJ(t5.actions.changeResults(o)),yield rJ(t7.actions.submitSuccess({board:e,characters:n}))}catch(e){yield rJ(t5.actions.changeResults([])),yield rJ(t7.actions.submitFailure(e))}}function*nH(){yield rX(150);let e=yield rZ(e8),{config:t}=yield rZ(te),r=yield rZ(e6);try{let{invalidWords:n,validWords:o}=yield r$(nM,{board:e.toJson(),configId:t.id,locale:r});yield rJ(t9.actions.submitSuccess({board:e,invalidWords:n,validWords:o}))}catch(e){yield rJ(t9.actions.submitFailure())}}function*nV(){let{config:e}=yield rZ(te),t=yield rZ(tb);if(e.maximumCharactersCount>t.length){let r=Math.abs(e.maximumCharactersCount-t.length);yield rJ(tX.actions.init([...t,...Array(r).fill(null)]))}else if(e.maximumCharactersCount<t.length){let r=t.filter(Boolean).slice(0,e.maximumCharactersCount),n=Math.abs(e.maximumCharactersCount-r.length),o=yield rZ(e4);yield rJ(tX.actions.init([...r,...Array(n).fill(null)])),yield rJ(tX.actions.groupTiles(o))}}let nq=function(e){var t,r=void 0===e?{}:e,n=r.context,o=void 0===n?{}:n,a=r.channel,i=void 0===a?nn():a,l=r.sagaMonitor,c=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t.indexOf(r=a[n])>=0||(o[r]=e[r]);return o}(r,["context","channel","sagaMonitor"]);function s(e){var r=e.getState,n=e.dispatch;return t=nv.bind(null,(0,rd.Z)({},c,{context:o,channel:i,dispatch:n,getState:r,sagaMonitor:l})),function(e){return function(t){l&&l.actionDispatched&&l.actionDispatched(t);var r=e(t);return i.put(t),r}}}return s.run=function(){return t.apply(void 0,arguments)},s.setContext=function(e){rj(o,e)},s}(),nK=function(e){var t,r=function(e){var t,r,n,o;return void 0===(t=e)&&(t={}),n=void 0===(r=t.thunk)||r,t.immutableCheck,t.serializableCheck,o=new eO,n&&("boolean"==typeof n?o.push(es):o.push(es.withExtraArgument(n.extraArgument))),o},n=e||{},o=n.reducer,a=void 0===o?void 0:o,i=n.middleware,l=void 0===i?r():i,c=n.devTools,s=void 0===c||c,u=n.preloadedState,f=n.enhancers,d=void 0===f?void 0:f;if("function"==typeof a)t=a;else if(function(e){if("object"!=typeof e||null===e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;for(var r=t;null!==Object.getPrototypeOf(r);)r=Object.getPrototypeOf(r);return t===r}(a))t=function(e){for(var t,r=Object.keys(e),n={},o=0;o<r.length;o++){var a=r[o];"function"==typeof e[a]&&(n[a]=e[a])}var i=Object.keys(n);try{!function(e){Object.keys(e).forEach(function(t){var r=e[t];if(void 0===r(void 0,{type:ea.INIT}))throw Error(er(12));if(void 0===r(void 0,{type:ea.PROBE_UNKNOWN_ACTION()}))throw Error(er(13))})}(n)}catch(e){t=e}return function(e,r){if(void 0===e&&(e={}),t)throw t;for(var o=!1,a={},l=0;l<i.length;l++){var c=i[l],s=n[c],u=e[c],f=s(u,r);if(void 0===f)throw r&&r.type,Error(er(14));a[c]=f,o=o||f!==u}return(o=o||i.length!==Object.keys(e).length)?a:e}}(a);else throw Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var p=l;"function"==typeof p&&(p=p(r));var h=el.apply(void 0,p),m=ei;s&&(m=ex(e_({trace:!1},"object"==typeof s&&s)));var y=[h];return Array.isArray(d)?y=ed([h],d):"function"==typeof d&&(y=d(y)),function e(t,r,n){if("function"==typeof r&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw Error(er(0));if("function"==typeof r&&void 0===n&&(n=r,r=void 0),void 0!==n){if("function"!=typeof n)throw Error(er(1));return n(e)(t,r)}if("function"!=typeof t)throw Error(er(2));var o,a=t,i=r,l=[],c=l,s=!1;function u(){c===l&&(c=l.slice())}function f(){if(s)throw Error(er(3));return i}function d(e){if("function"!=typeof e)throw Error(er(4));if(s)throw Error(er(5));var t=!0;return u(),c.push(e),function(){if(t){if(s)throw Error(er(6));t=!1,u();var r=c.indexOf(e);c.splice(r,1),l=null}}}function p(e){if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw Error(er(7));if(void 0===e.type)throw Error(er(8));if(s)throw Error(er(9));try{s=!0,i=a(i,e)}finally{s=!1}for(var t=l=c,r=0;r<t.length;r++)(0,t[r])();return e}return p({type:ea.INIT}),(o={dispatch:p,subscribe:d,getState:f,replaceReducer:function(e){if("function"!=typeof e)throw Error(er(10));a=e,p({type:ea.REPLACE})}})[en]=function(){var e;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw Error(er(11));function t(){e.next&&e.next(f())}return t(),{unsubscribe:d(t)}}})[en]=function(){return this},e},o}(t,void 0===u?void 0:u,m.apply(void 0,y))}({reducer:{board:tF.reducer,cellFilter:tq.reducer,dictionary:tG.reducer,rack:tX.reducer,results:t5.reducer,settings:t3.reducer,solve:t7.reducer,verify:t9.reducer},middleware:[nq]});nq.run(function*(){yield nC(tF.actions.changeCellValue.type,nT),yield nC([tX.actions.changeCharacter.type,tX.actions.changeCharacters.type],nP),yield nC(t5.actions.applyResult.type,nL),yield nC(t5.actions.changeResultCandidate.type,nW),yield nC(t3.actions.changeConfigId.type,nB),yield nC(t3.actions.changeLocale.type,nz),yield nE(tG.actions.submit.type,nI),yield nE(eL.type,nD),yield nE(eB.type,nU),yield nE(t7.actions.submit.type,nF),yield nE(t9.actions.submit.type,nH)});var nJ=nK,nG=r(7294),n$=r(1649);let nY=n$.v9;var nZ=nY;let nX=()=>{let e=nZ(tg),t=nZ(e6),r=(0,nG.useCallback)(function(r){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=e[r];if(void 0===o)throw Error('Untranslated key "'.concat(r,'" in locale "').concat(t,'"'));return Object.entries(n).reduce((e,t)=>{let[r,n]=t;return e.replaceAll("{{".concat(r,"}}"),n)},o)},[e,t]);return r};var nQ=nX},1966:function(e,t,r){"use strict";var n,o,a,i;r.d(t,{M:function(){return o},S:function(){return n}}),(a=n||(n={})).Ascending="ascending",a.Descending="descending",(i=o||(o={})).BlanksCount="blanks-count",i.ConsonantsCount="consonants-count",i.Points="points",i.TilesCount="tiles-count",i.VowelsCount="vowels-count",i.Word="word",i.WordsCount="words-count"},5794:function(){},8250:function(e){e.exports={alert:"Alert_alert__U03J1",iconContainer:"Alert_iconContainer__nIqVi",error:"Alert_error__GtiiB",info:"Alert_info__tuPb_",success:"Alert_success__JUf_v",warning:"Alert_warning__Mellk",icon:"Alert_icon__x2hmA",content:"Alert_content__r08lv"}},5793:function(e){e.exports={badge:"Badge_badge__YL9Gr"}},2996:function(e){e.exports={board:"Board_board__eA_bB",floating:"Board_floating__CH5ty",show:"Board_show__1ChIu",focus:"Board_focus__dIJT4",hidden:"Board_hidden__KQoVq",hide:"Board_hide__Fskbc",rotate:"Board_rotate__ynCR2",wave:"Board_wave__NDbpN"}},9976:function(e){e.exports={actions:"Actions_actions__3ry_t",action:"Actions_action__2tKnh"}},1877:function(e){e.exports={tile:"Cell_tile__bTdCO",sharpTopLeft:"Cell_sharpTopLeft__EGQgw",sharpTopRight:"Cell_sharpTopRight__rzADZ",sharpBottomLeft:"Cell_sharpBottomLeft__YGRug",sharpBottomRight:"Cell_sharpBottomRight__twtbd"}},7807:function(e){e.exports={inputPrompt:"InputPrompt_inputPrompt__YQ2mh",toggleDirection:"InputPrompt_toggleDirection__QOGnQ",input:"InputPrompt_input__OIYI2",insert:"InputPrompt_insert__AZuml",insertIcon:"InputPrompt_insertIcon__QYLKU"}},9888:function(e){e.exports={button:"ToggleDirectionButton_button__d4uxB",icon:"ToggleDirectionButton_icon__86mlv",right:"ToggleDirectionButton_right__KhG7b"}},9057:function(e){e.exports={button:"Button_button__PjVhE",primary:"Button_primary___XGO6",default:"Button_default__NXf3e",icon:"Button_icon__DJGKY",content:"Button_content__XZA3a",label:"Button_label__vFl5U"}},9653:function(e){e.exports={dictionary:"Dictionary_dictionary__0CM4j",isAllowed:"Dictionary_isAllowed__VfACe",isNotAllowed:"Dictionary_isNotAllowed__HvWIM",result:"Dictionary_result__eFJ65",content:"Dictionary_content__Ehz1U",word:"Dictionary_word__Y2PlX",definitions:"Dictionary_definitions__UBslC",definition:"Dictionary_definition__lU1Vz"}},522:function(e){e.exports={dictionaryInput:"DictionaryInput_dictionaryInput__fsGZD",input:"DictionaryInput_input__0ed6F"}},5106:function(e){e.exports={emptyState:"EmptyState_emptyState__iOAMZ",tiles:"EmptyState_tiles____Cln"}},8032:function(e){e.exports={iconButton:"IconButton_iconButton__y4vSg",content:"IconButton_content__LyjuP",icon:"IconButton_icon___Bd1_"}},7710:function(e){e.exports={key:"Key_key__JS7L0"}},5694:function(e){e.exports={loading:"Loading_loading__RkVCa",dim:"Loading_dim__H3eXg",text:"Loading_text__qKHb5",tiles:"Loading_tiles__RNn33"}},6472:function(e){e.exports={modal:"Modal_modal__w8Blv",closeButton:"Modal_closeButton__066hL",afterOpen:"Modal_afterOpen__e8nXQ",container:"Modal_container__KsTsk",beforeClose:"Modal_beforeClose__3RJlh",overlay:"Modal_overlay__lX1Uv",header:"Modal_header__9Nc2I",title:"Modal_title__p4NB1",content:"Modal_content__RDLjq",footer:"Modal_footer__KnjQg"}},3753:function(e){e.exports={section:"Section_section__7MmVe",heading:"Section_heading__9DyRI"}},1624:function(e){e.exports={navButtons:"NavButtons_navButtons__2jdaO",button:"NavButtons_button__1mjyl",separator:"NavButtons_separator__4FwOF",group:"NavButtons_group__kSDjM",error:"NavButtons_error__UMVHy"}},6933:function(e){e.exports={notFound:"NotFound_notFound__yhPFA",link:"NotFound_link__a1OqI",icon:"NotFound_icon__zBP4O",tiles:"NotFound_tiles__Nxd8Z"}},5834:function(e){e.exports={wave:"PlainTiles_wave__MUPo5",tile:"PlainTiles_tile__4eIjX",dropShadow:"PlainTiles_dropShadow__TjPAL",hide:"PlainTiles_hide__ZXQ7t",show:"PlainTiles_show__KuWdS",rotate:"PlainTiles_rotate__mHx2k"}},2524:function(e){e.exports={progress:"Progress_progress__DPtrq"}},9574:function(e){e.exports={rack:"Rack_rack__uEE8X",tile:"Rack_tile__kMzR_",hidden:"Rack_hidden__nukvS",sharpLeft:"Rack_sharpLeft__Sdops",sharpRight:"Rack_sharpRight__9D2pe"}},46:function(e){e.exports={form:"InputPrompt_form__wFpTU",input:"InputPrompt_input__fYiBj"}},4279:function(e){e.exports={rackTile:"RackTile_rackTile__8ofXd"}},1890:function(e){e.exports={radio:"Radio_radio__06IBr",checked:"Radio_checked__MlqJv",icon:"Radio_icon__ORxR0",input:"Radio_input__PFpGB",content:"Radio_content__08chi"}},5590:function(e){e.exports={results:"Results_results__258ah",emptyState:"Results_emptyState__qSRMr",content:"Results_content__zZy9j",listContainer:"Results_listContainer__J7jKU",list:"Results_list__zp7CV",outdated:"Results_outdated__4j0Ql",header:"Results_header__RmHXo",headerButton:"Results_headerButton__qNx0w",headerButtonLabel:"Results_headerButtonLabel__XQiIP",result:"Results_result__bpPGb",highlighted:"Results_highlighted__5x4Wt",notMatching:"Results_notMatching__63y6L",resultContent:"Results_resultContent__fynvQ",word:"Results_word__j20u_",cell:"Results_cell__13BH5",stat:"Results_stat__EguZM",points:"Results_points__7BAKE",solveButton:"Results_solveButton__jYiEd",sortIcon:"Results_sortIcon__y02RA",input:"Results_input__B3K40",highlight:"Results_highlight__JzLAS"}},7166:function(e){e.exports={resultsInput:"ResultsInput_resultsInput__geMao",input:"ResultsInput_input__dc2PT"}},5076:function(e){e.exports={solver:"Solver_solver__o9miv",container:"Solver_container__ABpqJ",content:"Solver_content__s1fWW",boardContainer:"Solver_boardContainer__GBRcW",board:"Solver_board__d5oBN",submitInput:"Solver_submitInput__eic0t",column:"Solver_column__0EMSH",results:"Solver_results__ElAKY",dictionaryContainer:"Solver_dictionaryContainer__uxJRV",dictionary:"Solver_dictionary__09LYB",dictionaryInput:"Solver_dictionaryInput__9BLNF",bottomContainer:"Solver_bottomContainer__VLhkh",bottomContent:"Solver_bottomContent__9rVjO",controls:"Solver_controls__2D9Ez",emptyState:"Solver_emptyState__P5fkX"}},4053:function(e){e.exports={insertButton:"InsertButton_insertButton__RIi9m",icon:"InsertButton_icon___UGZp"}},7381:function(e){e.exports={resultCandidatePicker:"ResultCandidatePicker_resultCandidatePicker__9qtPM",buttons:"ResultCandidatePicker_buttons__9vnga",bothEnabled:"ResultCandidatePicker_bothEnabled__OSkul",button:"ResultCandidatePicker_button__RPcxC",resultCandidate:"ResultCandidatePicker_resultCandidate__ehFwB",content:"ResultCandidatePicker_content__qXcY0",points:"ResultCandidatePicker_points__awikI",word:"ResultCandidatePicker_word__uK_Oo",iconContainer:"ResultCandidatePicker_iconContainer__uQ4FG",spinnerContainer:"ResultCandidatePicker_spinnerContainer__m621u",loading:"ResultCandidatePicker_loading__LJgV5",icon:"ResultCandidatePicker_icon__cTxGI",insert:"ResultCandidatePicker_insert__mLW3V"}},1285:function(e){e.exports={spinner:"Spinner_spinner__bGa03",rotate:"Spinner_rotate__trb0p",hide:"Spinner_hide__oSP5z",show:"Spinner_show__iasps",wave:"Spinner_wave__QVNeH"}},9662:function(e){e.exports={tile:"Tile_tile__14nuL",points1:"Tile_points1__yl4Jl",points2:"Tile_points2__Xsbcp",points3:"Tile_points3__lJKOJ",points4:"Tile_points4__IylBI",points5:"Tile_points5__Kzick",raised:"Tile_raised__WKori",blank:"Tile_blank__q2Ujv",empty:"Tile_empty__DGtO_",invalid:"Tile_invalid__3bxxF",highlighted:"Tile_highlighted__eg00X",points:"Tile_points__z39vV",input:"Tile_input__Rol_n",alert:"Tile_alert__0o8j3"}},5640:function(e){e.exports={tooltip:"Tooltip_tooltip__98Sw9",arrow:"Tooltip_arrow__9oy08"}},2966:function(e){e.exports={de:"i18n_de__m_q6r",es:"i18n_es__gzpC4",fa:"i18n_fa__5puuJ",fr:"i18n_fr__blTY6",gb:"i18n_gb__SNXyz",pl:"i18n_pl__o4VtN",us:"i18n_us__Q_2KD"}},9008:function(e,t,r){e.exports=r(2636)},5675:function(e,t,r){e.exports=r(3740)},2703:function(e,t,r){"use strict";var n=r(414);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,r,o,a,i){if(i!==n){var l=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return r.PropTypes=r,r}},5697:function(e,t,r){e.exports=r(2703)()},414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},7763:function(e,t,r){e.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={exports:{},id:n,loaded:!1};return e[n].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}return r.m=e,r.c=t,r.p="",r(0)}([function(e,t,r){e.exports=r(1)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=(n=r(2))&&n.__esModule?n:{default:n};t.default=o.default,e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e};function o(e){return e&&e.__esModule?e:{default:e}}t.default=s;var a=r(3),i=o(r(4)),l=r(14),c=o(r(15));function s(e){var t=e.activeClassName,r=void 0===t?"":t,o=e.activeIndex,i=void 0===o?-1:o,s=e.activeStyle,u=e.autoEscape,f=e.caseSensitive,d=void 0!==f&&f,p=e.className,h=e.findChunks,m=e.highlightClassName,y=void 0===m?"":m,v=e.highlightStyle,g=void 0===v?{}:v,b=e.highlightTag,_=e.sanitize,w=e.searchWords,x=e.textToHighlight,O=e.unhighlightTag,C=void 0===O?"span":O,E=e.unhighlightClassName,S=void 0===E?"":E,j=e.unhighlightStyle,k=function(e,t){var r={};for(var n in e)!(t.indexOf(n)>=0)&&Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(e,["activeClassName","activeIndex","activeStyle","autoEscape","caseSensitive","className","findChunks","highlightClassName","highlightStyle","highlightTag","sanitize","searchWords","textToHighlight","unhighlightTag","unhighlightClassName","unhighlightStyle"]),R=(0,a.findAll)({autoEscape:u,caseSensitive:d,findChunks:h,sanitize:_,searchWords:w,textToHighlight:x}),M=void 0===b?"mark":b,N=-1,A=(0,c.default)(function(e){var t={};for(var r in e)t[r.toLowerCase()]=e[r];return t});return(0,l.createElement)("span",n({className:p},k,{children:R.map(function(e,t){var n=x.substr(e.start,e.end-e.start);if(!e.highlight)return(0,l.createElement)(C,{children:n,className:S,key:t,style:j});N++;var o=void 0;o="object"==typeof y?d?y[n]:(y=A(y))[n.toLowerCase()]:y;var a=N===+i,c={children:n,className:o+" "+(a?r:""),key:t,style:!0===a&&null!=s?Object.assign({},g,s):g};return"string"!=typeof M&&(c.highlightIndex=N),(0,l.createElement)(M,c)})}))}s.propTypes={activeClassName:i.default.string,activeIndex:i.default.number,activeStyle:i.default.object,autoEscape:i.default.bool,className:i.default.string,findChunks:i.default.func,highlightClassName:i.default.oneOfType([i.default.object,i.default.string]),highlightStyle:i.default.object,highlightTag:i.default.oneOfType([i.default.node,i.default.func,i.default.string]),sanitize:i.default.func,searchWords:i.default.arrayOf(i.default.oneOfType([i.default.string,i.default.instanceOf(RegExp)])).isRequired,textToHighlight:i.default.string.isRequired,unhighlightTag:i.default.oneOfType([i.default.node,i.default.func,i.default.string]),unhighlightClassName:i.default.string,unhighlightStyle:i.default.object},e.exports=t.default},function(e,t){e.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={exports:{},id:n,loaded:!1};return e[n].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}return r.m=e,r.c=t,r.p="",r(0)}([function(e,t,r){e.exports=r(1)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2);Object.defineProperty(t,"combineChunks",{enumerable:!0,get:function(){return n.combineChunks}}),Object.defineProperty(t,"fillInChunks",{enumerable:!0,get:function(){return n.fillInChunks}}),Object.defineProperty(t,"findAll",{enumerable:!0,get:function(){return n.findAll}}),Object.defineProperty(t,"findChunks",{enumerable:!0,get:function(){return n.findChunks}})},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findAll=function(e){var t=e.autoEscape,a=e.caseSensitive,i=e.findChunks,l=e.sanitize,c=e.searchWords,s=e.textToHighlight;return o({chunksToHighlight:r({chunks:(void 0===i?n:i)({autoEscape:t,caseSensitive:void 0!==a&&a,sanitize:l,searchWords:c,textToHighlight:s})}),totalLength:s?s.length:0})};var r=t.combineChunks=function(e){return e.chunks.sort(function(e,t){return e.start-t.start}).reduce(function(e,t){if(0===e.length)return[t];var r=e.pop();if(t.start<=r.end){var n=Math.max(r.end,t.end);e.push({start:r.start,end:n})}else e.push(r,t);return e},[])},n=function(e){var t=e.autoEscape,r=e.caseSensitive,n=e.sanitize,o=void 0===n?a:n,i=e.searchWords,l=e.textToHighlight;return l=o(l),i.filter(function(e){return e}).reduce(function(e,n){n=o(n),t&&(n=n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"));for(var a=RegExp(n,r?"g":"gi"),i=void 0;i=a.exec(l);){var c=i.index,s=a.lastIndex;s>c&&e.push({start:c,end:s}),i.index==a.lastIndex&&a.lastIndex++}return e},[])};t.findChunks=n;var o=t.fillInChunks=function(e){var t=e.chunksToHighlight,r=e.totalLength,n=[],o=function(e,t,r){t-e>0&&n.push({start:e,end:t,highlight:r})};if(0===t.length)o(0,r,!1);else{var a=0;t.forEach(function(e){o(a,e.start,!1),o(e.start,e.end,!0),a=e.end}),o(a,r,!1)}return n};function a(e){return e}}])},function(e,t,r){(function(t){if("production"!==t.env.NODE_ENV){var n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;e.exports=r(6)(function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},!0)}else e.exports=r(13)()}).call(t,r(5))},function(e,t){var r,n,o,a=e.exports={};function i(){throw Error("setTimeout has not been defined")}function l(){throw Error("clearTimeout has not been defined")}function c(e){if(r===setTimeout)return setTimeout(e,0);if((r===i||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:i}catch(e){r=i}try{n="function"==typeof clearTimeout?clearTimeout:l}catch(e){n=l}}();var s=[],u=!1,f=-1;function d(){u&&o&&(u=!1,o.length?s=o.concat(s):f=-1,s.length&&p())}function p(){if(!u){var e=c(d);u=!0;for(var t=s.length;t;){for(o=s,s=[];++f<t;)o&&o[f].run();f=-1,t=s.length}o=null,u=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===l||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function m(){}a.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];s.push(new h(e,t)),1!==s.length||u||c(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={},a.on=m,a.addListener=m,a.once=m,a.off=m,a.removeListener=m,a.removeAllListeners=m,a.emit=m,a.prependListener=m,a.prependOnceListener=m,a.listeners=function(e){return[]},a.binding=function(e){throw Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(e){throw Error("process.chdir is not supported")},a.umask=function(){return 0}},function(e,t,r){(function(t){"use strict";var n=r(7),o=r(8),a=r(9),i=r(10),l=r(11),c=r(12);e.exports=function(e,r){var s="function"==typeof Symbol&&Symbol.iterator,u="<<anonymous>>",f={array:h("array"),bool:h("boolean"),func:h("function"),number:h("number"),object:h("object"),string:h("string"),symbol:h("symbol"),any:p(n.thatReturnsNull),arrayOf:function(e){return p(function(t,r,n,o,a){if("function"!=typeof e)return new d("Property `"+a+"` of component `"+n+"` has invalid PropType notation inside arrayOf.");var i=t[r];if(!Array.isArray(i)){var c=m(i);return new d("Invalid "+o+" `"+a+"` of type "+("`"+c)+"` supplied to `"+n+"`, expected an array.")}for(var s=0;s<i.length;s++){var u=e(i,s,n,o,a+"["+s+"]",l);if(u instanceof Error)return u}return null})},element:p(function(t,r,n,o,a){var i=t[r];if(!e(i)){var l=m(i);return new d("Invalid "+o+" `"+a+"` of type "+("`"+l)+"` supplied to `"+n+"`, expected a single ReactElement.")}return null}),instanceOf:function(e){return p(function(t,r,n,o,a){if(!(t[r]instanceof e)){var i,l=e.name||u,c=(i=t[r]).constructor&&i.constructor.name?i.constructor.name:u;return new d("Invalid "+o+" `"+a+"` of type "+("`"+c)+"` supplied to `"+n+"`, expected instance of `"+l+"`.")}return null})},node:p(function(t,r,n,o,a){return!function t(r){switch(typeof r){case"number":case"string":case"undefined":return!0;case"boolean":return!r;case"object":if(Array.isArray(r))return r.every(t);if(null===r||e(r))return!0;var n=function(e){var t=e&&(s&&e[s]||e["@@iterator"]);if("function"==typeof t)return t}(r);if(!n)return!1;var o,a=n.call(r);if(n!==r.entries){for(;!(o=a.next()).done;)if(!t(o.value))return!1}else for(;!(o=a.next()).done;){var i=o.value;if(i&&!t(i[1]))return!1}return!0;default:return!1}}(t[r])?new d("Invalid "+o+" `"+a+"` supplied to `"+n+"`, expected a ReactNode."):null}),objectOf:function(e){return p(function(t,r,n,o,a){if("function"!=typeof e)return new d("Property `"+a+"` of component `"+n+"` has invalid PropType notation inside objectOf.");var i=t[r],c=m(i);if("object"!==c)return new d("Invalid "+o+" `"+a+"` of type "+("`"+c)+"` supplied to `"+n+"`, expected an object.");for(var s in i)if(i.hasOwnProperty(s)){var u=e(i,s,n,o,a+"."+s,l);if(u instanceof Error)return u}return null})},oneOf:function(e){return Array.isArray(e)?p(function(t,r,n,o,a){for(var i,l=t[r],c=0;c<e.length;c++)if(l===(i=e[c])?0!==l||1/l==1/i:l!=l&&i!=i)return null;var s=JSON.stringify(e);return new d("Invalid "+o+" `"+a+"` of value `"+l+"` "+("supplied to `"+n)+"`, expected one of "+s+".")}):("production"!==t.env.NODE_ENV&&a(!1,"Invalid argument supplied to oneOf, expected an instance of array."),n.thatReturnsNull)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==t.env.NODE_ENV&&a(!1,"Invalid argument supplied to oneOfType, expected an instance of array."),n.thatReturnsNull;for(var r=0;r<e.length;r++){var o=e[r];if("function"!=typeof o)return a(!1,"Invalid argument supplied to oneOfType. Expected an array of check functions, but received %s at index %s.",function(e){var t=y(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}(o),r),n.thatReturnsNull}return p(function(t,r,n,o,a){for(var i=0;i<e.length;i++)if(null==(0,e[i])(t,r,n,o,a,l))return null;return new d("Invalid "+o+" `"+a+"` supplied to `"+n+"`.")})},shape:function(e){return p(function(t,r,n,o,a){var i=t[r],c=m(i);if("object"!==c)return new d("Invalid "+o+" `"+a+"` of type `"+c+"` supplied to `"+n+"`, expected `object`.");for(var s in e){var u=e[s];if(u){var f=u(i,s,n,o,a+"."+s,l);if(f)return f}}return null})},exact:function(e){return p(function(t,r,n,o,a){var c=t[r],s=m(c);if("object"!==s)return new d("Invalid "+o+" `"+a+"` of type `"+s+"` supplied to `"+n+"`, expected `object`.");var u=i({},t[r],e);for(var f in u){var p=e[f];if(!p)return new d("Invalid "+o+" `"+a+"` key `"+f+"` supplied to `"+n+"`.\nBad object: "+JSON.stringify(t[r],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var h=p(c,f,n,o,a+"."+f,l);if(h)return h}return null})}};function d(e){this.message=e,this.stack=""}function p(e){if("production"!==t.env.NODE_ENV)var n={},i=0;function c(c,s,f,p,h,m,y){if(p=p||u,m=m||f,y!==l){if(r)o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");else if("production"!==t.env.NODE_ENV&&"undefined"!=typeof console){var v=p+":"+f;!n[v]&&i<3&&(a(!1,"You are manually calling a React.PropTypes validation function for the `%s` prop on `%s`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.",m,p),n[v]=!0,i++)}}return null!=s[f]?e(s,f,p,h,m):c?new d(null===s[f]?"The "+h+" `"+m+"` is marked as required in `"+p+"`, but its value is `null`.":"The "+h+" `"+m+"` is marked as required in `"+p+"`, but its value is `undefined`."):null}var s=c.bind(null,!1);return s.isRequired=c.bind(null,!0),s}function h(e){return p(function(t,r,n,o,a,i){var l=t[r];if(m(l)!==e){var c=y(l);return new d("Invalid "+o+" `"+a+"` of type "+("`"+c)+"` supplied to `"+n+"`, expected `"+e+"`.")}return null})}function m(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":"symbol"===t||"Symbol"===e["@@toStringTag"]||"function"==typeof Symbol&&e instanceof Symbol?"symbol":t}function y(e){if(null==e)return""+e;var t=m(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}return d.prototype=Error.prototype,f.checkPropTypes=c,f.PropTypes=f,f}}).call(t,r(5))},function(e,t){"use strict";function r(e){return function(){return e}}var n=function(){};n.thatReturns=r,n.thatReturnsFalse=r(!1),n.thatReturnsTrue=r(!0),n.thatReturnsNull=r(null),n.thatReturnsThis=function(){return this},n.thatReturnsArgument=function(e){return e},e.exports=n},function(e,t,r){(function(t){"use strict";var r=function(e){};"production"!==t.env.NODE_ENV&&(r=function(e){if(void 0===e)throw Error("invariant requires an error message argument")}),e.exports=function(e,t,n,o,a,i,l,c){if(r(t),!e){var s;if(void 0===t)s=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,o,a,i,l,c],f=0;(s=Error(t.replace(/%s/g,function(){return u[f++]}))).name="Invariant Violation"}throw s.framesToPop=1,s}}}).call(t,r(5))},function(e,t,r){(function(t){"use strict";var n=r(7);if("production"!==t.env.NODE_ENV){var o=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var o=0,a="Warning: "+e.replace(/%s/g,function(){return r[o++]});"undefined"!=typeof console&&console.error(a);try{throw Error(a)}catch(e){}};n=function(e,t){if(void 0===t)throw Error("`warning(condition, format, ...args)` requires a warning message argument");if(0!==t.indexOf("Failed Composite propType: ")&&!e){for(var r=arguments.length,n=Array(r>2?r-2:0),a=2;a<r;a++)n[a-2]=arguments[a];o.apply(void 0,[t].concat(n))}}}e.exports=n}).call(t,r(5))},function(e,t){/*
|
|
6
|
-
object-assign
|
|
7
|
-
(c) Sindre Sorhus
|
|
8
|
-
@license MIT
|
|
9
|
-
*/"use strict";var r=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;e.exports=!function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var n=Object.getOwnPropertyNames(t).map(function(e){return t[e]});if("0123456789"!==n.join(""))return!1;var o={};if("abcdefghijklmnopqrst".split("").forEach(function(e){o[e]=e}),"abcdefghijklmnopqrst"!==Object.keys(Object.assign({},o)).join(""))return!1;return!0}catch(e){return!1}}()?function(e,t){for(var a,i,l=function(e){if(null==e)throw TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),c=1;c<arguments.length;c++){for(var s in a=Object(arguments[c]))n.call(a,s)&&(l[s]=a[s]);if(r){i=r(a);for(var u=0;u<i.length;u++)o.call(a,i[u])&&(l[i[u]]=a[i[u]])}}return l}:Object.assign},function(e,t){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,r){(function(t){"use strict";if("production"!==t.env.NODE_ENV)var n=r(8),o=r(9),a=r(11),i={};e.exports=function(e,r,l,c,s){if("production"!==t.env.NODE_ENV){for(var u in e)if(e.hasOwnProperty(u)){var f;try{n("function"==typeof e[u],"%s: %s type `%s` is invalid; it must be a function, usually from the `prop-types` package, but received `%s`.",c||"React class",l,u,typeof e[u]),f=e[u](r,u,c,l,null,a)}catch(e){f=e}if(o(!f||f instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",c||"React class",l,u,typeof f),f instanceof Error&&!(f.message in i)){i[f.message]=!0;var d=s?s():"";o(!1,"Failed %s type: %s%s",l,f.message,null!=d?d:"")}}}}}).call(t,r(5))},function(e,t,r){"use strict";var n=r(7),o=r(8),a=r(11);e.exports=function(){function e(e,t,r,n,i,l){l!==a&&o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var r={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return r.checkPropTypes=n,r.PropTypes=r,r}},function(e,t){e.exports=r(7294)},function(e,t){"use strict";var r=function(e,t){return e===t};e.exports=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r,n=void 0,o=[],a=void 0,i=!1,l=function(e,r){return t(e,o[r])};return function(){for(var t=arguments.length,r=Array(t),c=0;c<t;c++)r[c]=arguments[c];return i&&n===this&&r.length===o.length&&r.every(l)?a:(i=!0,n=this,o=r,a=e.apply(this,r))}}}])},9921:function(e,t){"use strict";/** @license React v16.13.1
|
|
10
|
-
* react-is.production.min.js
|
|
11
|
-
*
|
|
12
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
13
|
-
*
|
|
14
|
-
* This source code is licensed under the MIT license found in the
|
|
15
|
-
* LICENSE file in the root directory of this source tree.
|
|
16
|
-
*/var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,i=r?Symbol.for("react.strict_mode"):60108,l=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,s=r?Symbol.for("react.context"):60110,u=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,d=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,y=r?Symbol.for("react.lazy"):60116,v=r?Symbol.for("react.block"):60121,g=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,_=r?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case u:case f:case a:case l:case i:case p:return e;default:switch(e=e&&e.$$typeof){case s:case d:case y:case m:case c:return e;default:return t}}case o:return t}}}function x(e){return w(e)===f}t.AsyncMode=u,t.ConcurrentMode=f,t.ContextConsumer=s,t.ContextProvider=c,t.Element=n,t.ForwardRef=d,t.Fragment=a,t.Lazy=y,t.Memo=m,t.Portal=o,t.Profiler=l,t.StrictMode=i,t.Suspense=p,t.isAsyncMode=function(e){return x(e)||w(e)===u},t.isConcurrentMode=x,t.isContextConsumer=function(e){return w(e)===s},t.isContextProvider=function(e){return w(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return w(e)===d},t.isFragment=function(e){return w(e)===a},t.isLazy=function(e){return w(e)===y},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===l},t.isStrictMode=function(e){return w(e)===i},t.isSuspense=function(e){return w(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===f||e===l||e===i||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===m||e.$$typeof===c||e.$$typeof===s||e.$$typeof===d||e.$$typeof===g||e.$$typeof===b||e.$$typeof===_||e.$$typeof===v)},t.typeOf=w},9864:function(e,t,r){"use strict";e.exports=r(9921)},6871:function(e,t,r){"use strict";function n(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function o(e){this.setState((function(t){var r=this.constructor.getDerivedStateFromProps(e,t);return null!=r?r:null}).bind(this))}function a(e,t){try{var r=this.props,n=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(r,n)}finally{this.props=r,this.state=n}}function i(e){var t=e.prototype;if(!t||!t.isReactComponent)throw Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var r=null,i=null,l=null;if("function"==typeof t.componentWillMount?r="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(r="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?i="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(i="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?l="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(l="UNSAFE_componentWillUpdate"),null!==r||null!==i||null!==l)throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+(e.displayName||e.name)+" uses "+("function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()")+" but also contains the following legacy lifecycles:"+(null!==r?"\n "+r:"")+(null!==i?"\n "+i:"")+(null!==l?"\n "+l:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks");if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=n,t.componentWillReceiveProps=o),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=a;var c=t.componentDidUpdate;t.componentDidUpdate=function(e,t,r){var n=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:r;c.call(this,e,t,n)}}return e}r.r(t),r.d(t,{polyfill:function(){return i}}),n.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0,a.__suppressDeprecationWarning=!0},9983:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bodyOpenClassName=t.portalClassName=void 0;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),a=r(7294),i=h(a),l=h(r(3935)),c=h(r(5697)),s=h(r(8747)),u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(r(7149)),f=r(1112),d=h(f),p=r(6871);function h(e){return e&&e.__esModule?e:{default:e}}function m(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}var y=t.portalClassName="ReactModalPortal",v=t.bodyOpenClassName="ReactModal__Body--open",g=f.canUseDOM&&void 0!==l.default.createPortal,b=function(e){return document.createElement(e)},_=function(){return g?l.default.createPortal:l.default.unstable_renderSubtreeIntoContainer},w=function(e){function t(){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t);for(var e,r,o,a=arguments.length,c=Array(a),u=0;u<a;u++)c[u]=arguments[u];return r=o=m(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(c))),o.removePortal=function(){g||l.default.unmountComponentAtNode(o.node);var e=(0,o.props.parentSelector)();e&&e.contains(o.node)?e.removeChild(o.node):console.warn('React-Modal: "parentSelector" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.')},o.portalRef=function(e){o.portal=e},o.renderPortal=function(e){var r=_()(o,i.default.createElement(s.default,n({defaultStyles:t.defaultStyles},e)),o.node);o.portalRef(r)},m(o,r)}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"componentDidMount",value:function(){f.canUseDOM&&(g||(this.node=b("div")),this.node.className=this.props.portalClassName,(0,this.props.parentSelector)().appendChild(this.node),g||this.renderPortal(this.props))}},{key:"getSnapshotBeforeUpdate",value:function(e){return{prevParent:(0,e.parentSelector)(),nextParent:(0,this.props.parentSelector)()}}},{key:"componentDidUpdate",value:function(e,t,r){if(f.canUseDOM){var n=this.props,o=n.isOpen,a=n.portalClassName;e.portalClassName!==a&&(this.node.className=a);var i=r.prevParent,l=r.nextParent;l!==i&&(i.removeChild(this.node),l.appendChild(this.node)),(e.isOpen||o)&&(g||this.renderPortal(this.props))}}},{key:"componentWillUnmount",value:function(){if(f.canUseDOM&&this.node&&this.portal){var e=this.portal.state,t=Date.now(),r=e.isOpen&&this.props.closeTimeoutMS&&(e.closesAt||t+this.props.closeTimeoutMS);r?(e.beforeClose||this.portal.closeWithTimeout(),setTimeout(this.removePortal,r-t)):this.removePortal()}}},{key:"render",value:function(){return f.canUseDOM&&g?(!this.node&&g&&(this.node=b("div")),_()(i.default.createElement(s.default,n({ref:this.portalRef,defaultStyles:t.defaultStyles},this.props)),this.node)):null}}],[{key:"setAppElement",value:function(e){u.setElement(e)}}]),t}(a.Component);w.propTypes={isOpen:c.default.bool.isRequired,style:c.default.shape({content:c.default.object,overlay:c.default.object}),portalClassName:c.default.string,bodyOpenClassName:c.default.string,htmlOpenClassName:c.default.string,className:c.default.oneOfType([c.default.string,c.default.shape({base:c.default.string.isRequired,afterOpen:c.default.string.isRequired,beforeClose:c.default.string.isRequired})]),overlayClassName:c.default.oneOfType([c.default.string,c.default.shape({base:c.default.string.isRequired,afterOpen:c.default.string.isRequired,beforeClose:c.default.string.isRequired})]),appElement:c.default.oneOfType([c.default.instanceOf(d.default),c.default.instanceOf(f.SafeHTMLCollection),c.default.instanceOf(f.SafeNodeList),c.default.arrayOf(c.default.instanceOf(d.default))]),onAfterOpen:c.default.func,onRequestClose:c.default.func,closeTimeoutMS:c.default.number,ariaHideApp:c.default.bool,shouldFocusAfterRender:c.default.bool,shouldCloseOnOverlayClick:c.default.bool,shouldReturnFocusAfterClose:c.default.bool,preventScroll:c.default.bool,parentSelector:c.default.func,aria:c.default.object,data:c.default.object,role:c.default.string,contentLabel:c.default.string,shouldCloseOnEsc:c.default.bool,overlayRef:c.default.func,contentRef:c.default.func,id:c.default.string,overlayElement:c.default.func,contentElement:c.default.func},w.defaultProps={isOpen:!1,portalClassName:y,bodyOpenClassName:v,role:"dialog",ariaHideApp:!0,closeTimeoutMS:0,shouldFocusAfterRender:!0,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,shouldReturnFocusAfterClose:!0,preventScroll:!1,parentSelector:function(){return document.body},overlayElement:function(e,t){return i.default.createElement("div",e,t)},contentElement:function(e,t){return i.default.createElement("div",e,t)}},w.defaultStyles={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.75)"},content:{position:"absolute",top:"40px",left:"40px",right:"40px",bottom:"40px",border:"1px solid #ccc",background:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",borderRadius:"4px",outline:"none",padding:"20px"}},(0,p.polyfill)(w),t.default=w},8747:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(7294),l=y(r(5697)),c=m(r(9685)),s=y(r(8338)),u=m(r(7149)),f=m(r(2409)),d=r(1112),p=y(d),h=y(r(5003));function m(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function y(e){return e&&e.__esModule?e:{default:e}}r(5063);var v={overlay:"ReactModal__Overlay",content:"ReactModal__Content"},g=0,b=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.setOverlayRef=function(e){r.overlay=e,r.props.overlayRef&&r.props.overlayRef(e)},r.setContentRef=function(e){r.content=e,r.props.contentRef&&r.props.contentRef(e)},r.afterClose=function(){var e=r.props,t=e.appElement,n=e.ariaHideApp,o=e.htmlOpenClassName,a=e.bodyOpenClassName,i=e.parentSelector,l=i&&i().ownerDocument||document;a&&f.remove(l.body,a),o&&f.remove(l.getElementsByTagName("html")[0],o),n&&g>0&&0==(g-=1)&&u.show(t),r.props.shouldFocusAfterRender&&(r.props.shouldReturnFocusAfterClose?(c.returnFocus(r.props.preventScroll),c.teardownScopedFocus()):c.popWithoutFocus()),r.props.onAfterClose&&r.props.onAfterClose(),h.default.deregister(r)},r.open=function(){r.beforeOpen(),r.state.afterOpen&&r.state.beforeClose?(clearTimeout(r.closeTimer),r.setState({beforeClose:!1})):(r.props.shouldFocusAfterRender&&(c.setupScopedFocus(r.node),c.markForFocusLater()),r.setState({isOpen:!0},function(){r.openAnimationFrame=requestAnimationFrame(function(){r.setState({afterOpen:!0}),r.props.isOpen&&r.props.onAfterOpen&&r.props.onAfterOpen({overlayEl:r.overlay,contentEl:r.content})})}))},r.close=function(){r.props.closeTimeoutMS>0?r.closeWithTimeout():r.closeWithoutTimeout()},r.focusContent=function(){return r.content&&!r.contentHasFocus()&&r.content.focus({preventScroll:!0})},r.closeWithTimeout=function(){var e=Date.now()+r.props.closeTimeoutMS;r.setState({beforeClose:!0,closesAt:e},function(){r.closeTimer=setTimeout(r.closeWithoutTimeout,r.state.closesAt-Date.now())})},r.closeWithoutTimeout=function(){r.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},r.afterClose)},r.handleKeyDown=function(e){("Tab"===e.code||9===e.keyCode)&&(0,s.default)(r.content,e),r.props.shouldCloseOnEsc&&("Escape"===e.code||27===e.keyCode)&&(e.stopPropagation(),r.requestClose(e))},r.handleOverlayOnClick=function(e){null===r.shouldClose&&(r.shouldClose=!0),r.shouldClose&&r.props.shouldCloseOnOverlayClick&&(r.ownerHandlesClose()?r.requestClose(e):r.focusContent()),r.shouldClose=null},r.handleContentOnMouseUp=function(){r.shouldClose=!1},r.handleOverlayOnMouseDown=function(e){r.props.shouldCloseOnOverlayClick||e.target!=r.overlay||e.preventDefault()},r.handleContentOnClick=function(){r.shouldClose=!1},r.handleContentOnMouseDown=function(){r.shouldClose=!1},r.requestClose=function(e){return r.ownerHandlesClose()&&r.props.onRequestClose(e)},r.ownerHandlesClose=function(){return r.props.onRequestClose},r.shouldBeClosed=function(){return!r.state.isOpen&&!r.state.beforeClose},r.contentHasFocus=function(){return document.activeElement===r.content||r.content.contains(document.activeElement)},r.buildClassName=function(e,t){var n=(void 0===t?"undefined":o(t))==="object"?t:{base:v[e],afterOpen:v[e]+"--after-open",beforeClose:v[e]+"--before-close"},a=n.base;return r.state.afterOpen&&(a=a+" "+n.afterOpen),r.state.beforeClose&&(a=a+" "+n.beforeClose),"string"==typeof t&&t?a+" "+t:a},r.attributesFromObject=function(e,t){return Object.keys(t).reduce(function(r,n){return r[e+"-"+n]=t[n],r},{})},r.state={afterOpen:!1,beforeClose:!1},r.shouldClose=null,r.moveFromContentToOverlay=null,r}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(e,t){this.props.isOpen&&!e.isOpen?this.open():!this.props.isOpen&&e.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!t.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var e=this.props,t=e.appElement,r=e.ariaHideApp,n=e.htmlOpenClassName,o=e.bodyOpenClassName,a=e.parentSelector,i=a&&a().ownerDocument||document;o&&f.add(i.body,o),n&&f.add(i.getElementsByTagName("html")[0],n),r&&(g+=1,u.hide(t)),h.default.register(this)}},{key:"render",value:function(){var e=this.props,t=e.id,r=e.className,o=e.overlayClassName,a=e.defaultStyles,i=e.children,l=r?{}:a.content,c=o?{}:a.overlay;if(this.shouldBeClosed())return null;var s={ref:this.setOverlayRef,className:this.buildClassName("overlay",o),style:n({},c,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},u=n({id:t,ref:this.setContentRef,style:n({},l,this.props.style.content),className:this.buildClassName("content",r),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",n({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),f=this.props.contentElement(u,i);return this.props.overlayElement(s,f)}}]),t}(i.Component);b.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},b.propTypes={isOpen:l.default.bool.isRequired,defaultStyles:l.default.shape({content:l.default.object,overlay:l.default.object}),style:l.default.shape({content:l.default.object,overlay:l.default.object}),className:l.default.oneOfType([l.default.string,l.default.object]),overlayClassName:l.default.oneOfType([l.default.string,l.default.object]),parentSelector:l.default.func,bodyOpenClassName:l.default.string,htmlOpenClassName:l.default.string,ariaHideApp:l.default.bool,appElement:l.default.oneOfType([l.default.instanceOf(p.default),l.default.instanceOf(d.SafeHTMLCollection),l.default.instanceOf(d.SafeNodeList),l.default.arrayOf(l.default.instanceOf(p.default))]),onAfterOpen:l.default.func,onAfterClose:l.default.func,onRequestClose:l.default.func,closeTimeoutMS:l.default.number,shouldFocusAfterRender:l.default.bool,shouldCloseOnOverlayClick:l.default.bool,shouldReturnFocusAfterClose:l.default.bool,preventScroll:l.default.bool,role:l.default.string,contentLabel:l.default.string,aria:l.default.object,data:l.default.object,children:l.default.node,shouldCloseOnEsc:l.default.bool,overlayRef:l.default.func,contentRef:l.default.func,id:l.default.string,overlayElement:l.default.func,contentElement:l.default.func,testId:l.default.string},t.default=b,e.exports=t.default},7149:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){i&&(i.removeAttribute?i.removeAttribute("aria-hidden"):null!=i.length?i.forEach(function(e){return e.removeAttribute("aria-hidden")}):document.querySelectorAll(i).forEach(function(e){return e.removeAttribute("aria-hidden")})),i=null},t.log=function(){},t.assertNodeList=l,t.setElement=function(e){var t=e;if("string"==typeof t&&a.canUseDOM){var r=document.querySelectorAll(t);l(r,t),t=r}return i=t||i},t.validateElement=c,t.hide=function(e){var t=!0,r=!1,n=void 0;try{for(var o,a=c(e)[Symbol.iterator]();!(t=(o=a.next()).done);t=!0)o.value.setAttribute("aria-hidden","true")}catch(e){r=!0,n=e}finally{try{!t&&a.return&&a.return()}finally{if(r)throw n}}},t.show=function(e){var t=!0,r=!1,n=void 0;try{for(var o,a=c(e)[Symbol.iterator]();!(t=(o=a.next()).done);t=!0)o.value.removeAttribute("aria-hidden")}catch(e){r=!0,n=e}finally{try{!t&&a.return&&a.return()}finally{if(r)throw n}}},t.documentNotReadyOrSSRTesting=function(){i=null};var n,o=(n=r(2473))&&n.__esModule?n:{default:n},a=r(1112),i=null;function l(e,t){if(!e||!e.length)throw Error("react-modal: No elements were found for selector "+t+".")}function c(e){var t=e||i;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,o.default)(!1,"react-modal: App element is not defined. Please use `Modal.setAppElement(el)` or set `appElement={el}`. This is needed so screen readers don't see main content when modal is opened. It is not recommended, but you can opt-out by setting `ariaHideApp={false}`."),[])}},5063:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){for(var e=[a,i],t=0;t<e.length;t++){var r=e[t];r&&r.parentNode&&r.parentNode.removeChild(r)}a=i=null,l=[]},t.log=function(){console.log("bodyTrap ----------"),console.log(l.length);for(var e=[a,i],t=0;t<e.length;t++){var r=e[t]||{};console.log(r.nodeName,r.className,r.id)}console.log("edn bodyTrap ----------")};var n,o=(n=r(5003))&&n.__esModule?n:{default:n},a=void 0,i=void 0,l=[];function c(){0!==l.length&&l[l.length-1].focusContent()}o.default.subscribe(function(e,t){a||i||((a=document.createElement("div")).setAttribute("data-react-modal-body-trap",""),a.style.position="absolute",a.style.opacity="0",a.setAttribute("tabindex","0"),a.addEventListener("focus",c),(i=a.cloneNode()).addEventListener("focus",c)),(l=t).length>0?(document.body.firstChild!==a&&document.body.insertBefore(a,document.body.firstChild),document.body.lastChild!==i&&document.body.appendChild(i)):(a.parentElement&&a.parentElement.removeChild(a),i.parentElement&&i.parentElement.removeChild(i))})},2409:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){var e=document.getElementsByTagName("html")[0];for(var t in r)o(e,r[t]);var a=document.body;for(var i in n)o(a,n[i]);r={},n={}},t.log=function(){};var r={},n={};function o(e,t){e.classList.remove(t)}var a=function(e,t,r){r.forEach(function(r){var n;(n=t)[r]||(n[r]=0),n[r]+=1,e.add(r)})},i=function(e,t,r){r.forEach(function(r){var n;(n=t)[r]&&(n[r]-=1),0===t[r]&&e.remove(r)})};t.add=function(e,t){return a(e.classList,"html"==e.nodeName.toLowerCase()?r:n,t.split(" "))},t.remove=function(e,t){return i(e.classList,"html"==e.nodeName.toLowerCase()?r:n,t.split(" "))}},9685:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){a=[]},t.log=function(){},t.handleBlur=c,t.handleFocus=s,t.markForFocusLater=function(){a.push(document.activeElement)},t.returnFocus=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=null;try{0!==a.length&&(t=a.pop()).focus({preventScroll:e});return}catch(e){console.warn(["You tried to return focus to",t,"but it is not in the DOM anymore"].join(" "))}},t.popWithoutFocus=function(){a.length>0&&a.pop()},t.setupScopedFocus=function(e){i=e,window.addEventListener?(window.addEventListener("blur",c,!1),document.addEventListener("focus",s,!0)):(window.attachEvent("onBlur",c),document.attachEvent("onFocus",s))},t.teardownScopedFocus=function(){i=null,window.addEventListener?(window.removeEventListener("blur",c),document.removeEventListener("focus",s)):(window.detachEvent("onBlur",c),document.detachEvent("onFocus",s))};var n,o=(n=r(7845))&&n.__esModule?n:{default:n},a=[],i=null,l=!1;function c(){l=!0}function s(){l&&(l=!1,i&&setTimeout(function(){i.contains(document.activeElement)||((0,o.default)(i)[0]||i).focus()},0))}},5003:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.log=function(){console.log("portalOpenInstances ----------"),console.log(n.openInstances.length),n.openInstances.forEach(function(e){return console.log(e)}),console.log("end portalOpenInstances ----------")},t.resetState=function(){n=new r};var r=function e(){var t=this;!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,e),this.register=function(e){-1===t.openInstances.indexOf(e)&&(t.openInstances.push(e),t.emit("register"))},this.deregister=function(e){var r=t.openInstances.indexOf(e);-1!==r&&(t.openInstances.splice(r,1),t.emit("deregister"))},this.subscribe=function(e){t.subscribers.push(e)},this.emit=function(e){t.subscribers.forEach(function(r){return r(e,t.openInstances.slice())})},this.openInstances=[],this.subscribers=[]},n=new r;t.default=n},1112:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canUseDOM=t.SafeNodeList=t.SafeHTMLCollection=void 0;var n,o=((n=r(8875))&&n.__esModule?n:{default:n}).default,a=o.canUseDOM?window.HTMLElement:{};t.SafeHTMLCollection=o.canUseDOM?window.HTMLCollection:{},t.SafeNodeList=o.canUseDOM?window.NodeList:{},t.canUseDOM=o.canUseDOM,t.default=a},8338:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var r=(0,o.default)(e);if(!r.length){t.preventDefault();return}var n=void 0,a=t.shiftKey,i=r[0],l=r[r.length-1],c=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return t.activeElement.shadowRoot?e(t.activeElement.shadowRoot):t.activeElement}();if(e===c){if(!a)return;n=l}if(l!==c||a||(n=i),i===c&&a&&(n=l),n){t.preventDefault(),n.focus();return}var s=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null!=s&&"Chrome"!=s[1]&&null==/\biPod\b|\biPad\b/g.exec(navigator.userAgent)){var u=r.indexOf(c);if(u>-1&&(u+=a?-1:1),void 0===(n=r[u])){t.preventDefault(),(n=a?l:i).focus();return}t.preventDefault(),n.focus()}};var n,o=(n=r(7845))&&n.__esModule?n:{default:n};e.exports=t.default},7845:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){return[].slice.call(t.querySelectorAll("*"),0).reduce(function(t,r){return t.concat(r.shadowRoot?e(r.shadowRoot):[r])},[]).filter(n)};var r=/input|select|textarea|button|object|iframe/;function n(e){var t,n=e.getAttribute("tabindex");null===n&&(n=void 0);var o=isNaN(n);return(o||n>=0)&&(t=e.nodeName.toLowerCase(),(r.test(t)&&!e.disabled||"a"===t&&e.href||!o)&&function(e){for(var t=e,r=e.getRootNode&&e.getRootNode();t&&t!==document.body;){if(r&&t===r&&(t=r.host.parentNode),function(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return!0;try{var r=window.getComputedStyle(e),n=r.getPropertyValue("display");return t?"contents"!==n&&("visible"!==r.getPropertyValue("overflow")||e.scrollWidth<=0&&e.scrollHeight<=0):"none"===n}catch(e){return console.warn("Failed to inspect element style"),!1}}(t))return!1;t=t.parentNode}return!0}(e))}e.exports=t.default},3253:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=(n=r(9983))&&n.__esModule?n:{default:n};t.default=o.default,e.exports=t.default},1649:function(e,t,r){"use strict";r.d(t,{zt:function(){return g},I0:function(){return w},v9:function(){return h}});var n=r(1688),o=r(2798),a=r(3935);let i=function(e){e()},l=()=>i;var c=r(7294);let s=(0,c.createContext)(null);function u(){let e=(0,c.useContext)(s);return e}let f=()=>{throw Error("uSES not initialized!")},d=f,p=(e,t)=>e===t,h=function(e=s){let t=e===s?u:()=>(0,c.useContext)(e);return function(e,r=p){let{store:n,subscription:o,getServerState:a}=t(),i=d(o.addNestedSub,n.getState,a||n.getState,e,r);return(0,c.useDebugValue)(i),i}}();r(8679),r(2973);let m={notify(){},get:()=>[]},y=!!("undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement),v=y?c.useLayoutEffect:c.useEffect;var g=function({store:e,context:t,children:r,serverState:n}){let o=(0,c.useMemo)(()=>{let t=function(e,t){let r;let n=m;function o(){i.onStateChange&&i.onStateChange()}function a(){r||(r=t?t.addNestedSub(o):e.subscribe(o),n=function(){let e=l(),t=null,r=null;return{clear(){t=null,r=null},notify(){e(()=>{let e=t;for(;e;)e.callback(),e=e.next})},get(){let e=[],r=t;for(;r;)e.push(r),r=r.next;return e},subscribe(e){let n=!0,o=r={callback:e,next:null,prev:r};return o.prev?o.prev.next=o:t=o,function(){n&&null!==t&&(n=!1,o.next?o.next.prev=o.prev:r=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}())}let i={addNestedSub:function(e){return a(),n.subscribe(e)},notifyNestedSubs:function(){n.notify()},handleChangeWrapper:o,isSubscribed:function(){return Boolean(r)},trySubscribe:a,tryUnsubscribe:function(){r&&(r(),r=void 0,n.clear(),n=m)},getListeners:()=>n};return i}(e);return{store:e,subscription:t,getServerState:n?()=>n:void 0}},[e,n]),a=(0,c.useMemo)(()=>e.getState(),[e]);return v(()=>{let{subscription:t}=o;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),a!==e.getState()&&t.notifyNestedSubs(),()=>{t.tryUnsubscribe(),t.onStateChange=void 0}},[o,a]),c.createElement((t||s).Provider,{value:o},r)};function b(e=s){let t=e===s?u:()=>(0,c.useContext)(e);return function(){let{store:e}=t();return e}}let _=b(),w=function(e=s){let t=e===s?_:b(e);return function(){let e=t();return e.dispatch}}();d=o.useSyncExternalStoreWithSelector,n.useSyncExternalStore,i=a.unstable_batchedUpdates},8359:function(e,t){"use strict";Symbol.for("react.element"),Symbol.for("react.portal"),Symbol.for("react.fragment"),Symbol.for("react.strict_mode"),Symbol.for("react.profiler"),Symbol.for("react.provider"),Symbol.for("react.context"),Symbol.for("react.server_context"),Symbol.for("react.forward_ref"),Symbol.for("react.suspense"),Symbol.for("react.suspense_list"),Symbol.for("react.memo"),Symbol.for("react.lazy"),Symbol.for("react.offscreen"),Symbol.for("react.module.reference")},2973:function(e,t,r){"use strict";r(8359)},1860:function(e){var t,r,n,o;t=this,r=this&&this.define,(o=(n={version:"2.14.2",areas:{},apis:{},nsdelim:".",inherit:function(e,t){for(var r in e)t.hasOwnProperty(r)||Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t},stringify:function(e,t){return void 0===e||"function"==typeof e?e+"":JSON.stringify(e,t||n.replace)},parse:function(e,t){try{return JSON.parse(e,t||n.revive)}catch(t){return e}},fn:function(e,t){for(var r in n.storeAPI[e]=t,n.apis)n.apis[r][e]=t},get:function(e,t){return e.getItem(t)},set:function(e,t,r){e.setItem(t,r)},remove:function(e,t){e.removeItem(t)},key:function(e,t){return e.key(t)},length:function(e){return e.length},clear:function(e){e.clear()},Store:function(e,t,r){var o=n.inherit(n.storeAPI,function(e,t,r){return 0==arguments.length?o.getAll():"function"==typeof t?o.transact(e,t,r):void 0!==t?o.set(e,t,r):"string"==typeof e||"number"==typeof e?o.get(e):"function"==typeof e?o.each(e):e?o.setAll(e,t):o.clear()});o._id=e;try{var a="__store2_test";t.setItem(a,"ok"),o._area=t,t.removeItem(a)}catch(e){o._area=n.storage("fake")}return o._ns=r||"",n.areas[e]||(n.areas[e]=o._area),n.apis[o._ns+o._id]||(n.apis[o._ns+o._id]=o),o},storeAPI:{area:function(e,t){var r=this[e];return r&&r.area||(r=n.Store(e,t,this._ns),this[e]||(this[e]=r)),r},namespace:function(e,t,r){if(r=r||this._delim||n.nsdelim,!e)return this._ns?this._ns.substring(0,this._ns.length-r.length):"";var o=this[e];if((!o||!o.namespace)&&((o=n.Store(this._id,this._area,this._ns+e+r))._delim=r,this[e]||(this[e]=o),!t))for(var a in n.areas)o.area(a,n.areas[a]);return o},isFake:function(e){return e?(this._real=this._area,this._area=n.storage("fake")):!1===e&&(this._area=this._real||this._area),"fake"===this._area.name},toString:function(){return"store"+(this._ns?"."+this.namespace():"")+"["+this._id+"]"},has:function(e){return this._area.has?this._area.has(this._in(e)):this._in(e) in this._area},size:function(){return this.keys().length},each:function(e,t){for(var r=0,o=n.length(this._area);r<o;r++){var a=this._out(n.key(this._area,r));if(void 0!==a&&!1===e.call(this,a,this.get(a),t))break;o>n.length(this._area)&&(o--,r--)}return t||this},keys:function(e){return this.each(function(e,t,r){r.push(e)},e||[])},get:function(e,t){var r,o=n.get(this._area,this._in(e));return"function"==typeof t&&(r=t,t=null),null!==o?n.parse(o,r):null!=t?t:o},getAll:function(e){return this.each(function(e,t,r){r[e]=t},e||{})},transact:function(e,t,r){var n=this.get(e,r),o=t(n);return this.set(e,void 0===o?n:o),this},set:function(e,t,r){var o,a=this.get(e);return null!=a&&!1===r?t:("function"==typeof r&&(o=r,r=void 0),n.set(this._area,this._in(e),n.stringify(t,o),r)||a)},setAll:function(e,t){var r,n;for(var o in e)n=e[o],this.set(o,n,t)!==n&&(r=!0);return r},add:function(e,t,r){var o=this.get(e);if(o instanceof Array)t=o.concat(t);else if(null!==o){var a=typeof o;if(a===typeof t&&"object"===a){for(var i in t)o[i]=t[i];t=o}else t=o+t}return n.set(this._area,this._in(e),n.stringify(t,r)),t},remove:function(e,t){var r=this.get(e,t);return n.remove(this._area,this._in(e)),r},clear:function(){return this._ns?this.each(function(e){n.remove(this._area,this._in(e))},1):n.clear(this._area),this},clearAll:function(){var e=this._area;for(var t in n.areas)n.areas.hasOwnProperty(t)&&(this._area=n.areas[t],this.clear());return this._area=e,this},_in:function(e){return"string"!=typeof e&&(e=n.stringify(e)),this._ns?this._ns+e:e},_out:function(e){return this._ns?e&&0===e.indexOf(this._ns)?e.substring(this._ns.length):void 0:e}},storage:function(e){return n.inherit(n.storageAPI,{items:{},name:e})},storageAPI:{length:0,has:function(e){return this.items.hasOwnProperty(e)},key:function(e){var t=0;for(var r in this.items)if(this.has(r)&&e===t++)return r},setItem:function(e,t){!this.has(e)&&this.length++,this.items[e]=t},removeItem:function(e){this.has(e)&&(delete this.items[e],this.length--)},getItem:function(e){return this.has(e)?this.items[e]:null},clear:function(){for(var e in this.items)this.removeItem(e)}}}).Store("local",function(){try{return localStorage}catch(e){}}())).local=o,o._=n,o.area("session",function(){try{return sessionStorage}catch(e){}}()),o.area("page",n.storage("page")),"function"==typeof r&&void 0!==r.amd?r("store2",[],function(){return o}):e.exports?e.exports=o:(t.store&&(n.conflict=t.store),t.store=o)},3250:function(e,t,r){"use strict";/**
|
|
17
|
-
* @license React
|
|
18
|
-
* use-sync-external-store-shim.production.min.js
|
|
19
|
-
*
|
|
20
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
21
|
-
*
|
|
22
|
-
* This source code is licensed under the MIT license found in the
|
|
23
|
-
* LICENSE file in the root directory of this source tree.
|
|
24
|
-
*/var n=r(7294),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=n.useState,i=n.useEffect,l=n.useLayoutEffect,c=n.useDebugValue;function s(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!o(e,r)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=a({inst:{value:r,getSnapshot:t}}),o=n[0].inst,u=n[1];return l(function(){o.value=r,o.getSnapshot=t,s(o)&&u({inst:o})},[e,r,t]),i(function(){return s(o)&&u({inst:o}),e(function(){s(o)&&u({inst:o})})},[e]),c(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:u},139:function(e,t,r){"use strict";/**
|
|
25
|
-
* @license React
|
|
26
|
-
* use-sync-external-store-shim/with-selector.production.min.js
|
|
27
|
-
*
|
|
28
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
29
|
-
*
|
|
30
|
-
* This source code is licensed under the MIT license found in the
|
|
31
|
-
* LICENSE file in the root directory of this source tree.
|
|
32
|
-
*/var n=r(7294),o=r(1688),a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=o.useSyncExternalStore,l=n.useRef,c=n.useEffect,s=n.useMemo,u=n.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,r,n,o){var f=l(null);if(null===f.current){var d={hasValue:!1,value:null};f.current=d}else d=f.current;f=s(function(){function e(e){if(!c){if(c=!0,i=e,e=n(e),void 0!==o&&d.hasValue){var t=d.value;if(o(t,e))return l=t}return l=e}if(t=l,a(i,e))return t;var r=n(e);return void 0!==o&&o(t,r)?t:(i=e,l=r)}var i,l,c=!1,s=void 0===r?null:r;return[function(){return e(t())},null===s?void 0:function(){return e(s())}]},[t,r,n,o]);var p=i(e,f[0],f[1]);return c(function(){d.hasValue=!0,d.value=p},[p]),u(p),p}},1688:function(e,t,r){"use strict";e.exports=r(3250)},2798:function(e,t,r){"use strict";e.exports=r(139)},2473:function(e){"use strict";e.exports=function(){}},559:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});let o=r(7618),a=n(r(2251)),i=n(r(5275));class l{static create(e,t){return l.fromStringArray(Array(t).fill(Array(e).fill(" ").join("")))}static fromJson(e){return new l({rows:e.map(e=>e.map(a.default.fromJson))})}static fromStringArray(e){return new l({rows:e.map((e,t)=>e.split("").map((e,r)=>new a.default({isEmpty:!e||e===o.EMPTY_CELL,tile:e===o.EMPTY_CELL?i.default.Null:new i.default({character:e}),x:r,y:t})))})}constructor({rows:e}){this.rows=e,this.columnsCount=e[0].length,this.rowsCount=e.length}get center(){let e=Math.floor(this.columnsCount/2),t=Math.floor(this.rowsCount/2);return this.rows[t][e]}clone(){let e=this.rows.map(e=>e.map(e=>e.clone()));return new l({rows:e})}collides(e){return this.collidesUp(e)||this.collidesDown(e)||this.collidesLeft(e)||this.collidesRight(e)}collidesDown({x:e,y:t}){return t<this.rowsCount-1&&!this.rows[t+1][e].isEmpty}collidesLeft({x:e,y:t}){return e>0&&!this.rows[t][e-1].isEmpty}collidesRight({x:e,y:t}){return e<this.columnsCount-1&&!this.rows[t][e+1].isEmpty}collidesUp({x:e,y:t}){return t>0&&!this.rows[t-1][e].isEmpty}equals(e){return this.columnsCount===e.columnsCount&&this.rowsCount===e.rowsCount&&this.rows.every((t,r)=>t.every((t,n)=>t.equals(e.rows[r][n])))}getBlanksCount(){return this.rows.reduce((e,t)=>e+t.reduce((e,t)=>e+(t.tile.isBlank?1:0),0),0)}getColumn(e){return this.rows.map(t=>t[e])}getRow(e){return this.rows[e]}getTilesCount(){return this.rows.reduce((e,t)=>e+t.reduce((e,t)=>e+(t.hasTile()?1:0),0),0)}getWords(){let e=[];for(let t=0;t<this.columnsCount;++t){let r=[];for(let e=0;e<this.rowsCount;++e)r.push(this.rows[e][t]);e.push(r)}let t=new l({rows:e}),r=this.toString().split("\n").concat(t.toString().split("\n")),n=r.flatMap(e=>e.replaceAll(/\s+/g,o.EMPTY_CELL).split(" ")).filter(e=>e.length>1);return n}isEmpty(){return this.rows.every(e=>e.every(({isEmpty:e})=>e))}toJson(){return this.rows.map(e=>e.map(e=>e.toJson()))}toString(){return this.rows.map(e=>e.map(String).join("")).join("\n")}updateCell(e,t,r){this.rows[t][e]=r(this.rows[t][e])}updateRow(e,t){this.rows[e]=t(this.rows[e])}}t.default=l},6936:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBoardJson=void 0;let n=r(9819),o=e=>{if(!Array.isArray(e))return!1;for(let t of e){if(!Array.isArray(e))return!1;for(let e of t)if(!(0,n.isCellJson)(e))return!1}return!0};t.isBoardJson=o},7706:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{constructor({multiplier:e,score:t,x:r,y:n}){this.multiplier=e,this.score=t,this.x=r,this.y=n}canApply(e,t){return t.isEmpty&&this.matchesCellCoordinates(t)}matchesCellCoordinates(e){return this.x===e.x&&this.y===e.y}toJson(){return{multiplier:this.multiplier,score:this.score,type:this.type,x:this.x,y:this.y}}get value(){return{characterMultiplier:1,wordMultiplier:1}}}},2251:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});let o=n(r(5275));class a{static fromJson(e){return new a({isEmpty:e.isEmpty,tile:o.default.fromJson(e.tile),x:e.x,y:e.y})}constructor({isEmpty:e=!0,tile:t=o.default.Null,x:r,y:n}){this.isEmpty=e,this.tile=t,this.x=r,this.y=n}clone(){return new a({isEmpty:this.isEmpty,tile:this.tile.clone(),x:this.x,y:this.y})}equals(e){return this.x===e.x&&this.y===e.y&&this.isEmpty===e.isEmpty&&this.tile.equals(e.tile)}hasTile(){return this.tile!==o.default.Null}isCandidate(){return this.isEmpty&&this.hasTile()}toJson(){return{isEmpty:this.isEmpty,tile:this.tile.toJson(),x:this.x,y:this.y}}toString(){return this.tile.toString()}}t.default=a},9819:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.isCellJson=void 0;let o=n(r(4814)),a=r(214),i=e=>(0,o.default)(e)&&"boolean"==typeof e.isEmpty&&((0,a.isTileJson)(e.tile)||null===e.tile)&&"number"==typeof e.x&&"number"==typeof e.y;t.isCellJson=i},9582:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});let o=r(7618),a=n(r(7706));class i extends a.default{constructor(){super(...arguments),this.type=o.BONUS_CHARACTER}canApply(e,t){return super.canApply(e,t)&&this.matchesCellTileScore(e,t)}matchesCellTileScore(e,t){return void 0===this.score||this.score===e.pointsMap[t.tile.character]}get value(){return{characterMultiplier:this.multiplier,wordMultiplier:1}}}t.default=i},8433:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});let o=r(7618),a=n(r(9582)),i=n(r(8627));class l{static fromJson(e){return new l(e)}constructor(e){this.bonuses=c(e),this.config=e,this.pointsMap=u(this.config)}get allTilesBonusScore(){return this.config.allTilesBonusScore}get alphabet(){return s(this.config)}get blankScore(){return this.config.blankScore}get blanksCount(){return this.config.blanksCount}get boardHeight(){return this.config.boardHeight}get boardWidth(){return this.config.boardWidth}get locale(){return this.config.locale}get twoCharacterTiles(){return this.config.tiles.filter(e=>2===e.character.length).map(e=>e.character)}getCellBonus(e){return this.bonuses.find(t=>t.matchesCellCoordinates(e))}getCellBonusValue(e){return this.getCellBonus(e)?.value||o.NO_BONUS}getCharacterPoints(e){return null===e?void 0:e===o.BLANK?this.blankScore:this.pointsMap[e]}getTwoCharacterTileByPrefix(e){if(1===e.length)return this.twoCharacterTiles.find(t=>t.startsWith(e))}getTilePoints(e){if(null!==e)return e.isBlank?this.blankScore:this.getCharacterPoints(e.character)}hasCharacter(e){return e in this.pointsMap}isTwoCharacterTilePrefix(e){return void 0!==this.getTwoCharacterTileByPrefix(e)}get maximumCharactersCount(){return this.config.maximumCharactersCount}get tiles(){return this.config.tiles}toJson(){return this.config}}let c=e=>e.bonuses.map(e=>{if(e.type===o.BONUS_CHARACTER)return new a.default(e);if(e.type===o.BONUS_WORD)return new i.default(e);throw Error(`Unsupported Bonus type: "${e.type}"`)}),s=e=>e.tiles.map(({character:e})=>e),u=e=>e.tiles.reduce((e,{character:t,score:r})=>({...e,[t]:r}),{});t.default=l},5905:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});let o=n(r(3207));class a extends o.default{constructor(e){super(e.board,e.cells),this.collisions=e.getCollisions()}getCollisions(){return this.collisions}}t.default=a},9594:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});let o=n(r(3207));class a extends o.default{clone(){return new a(this.board,this.cells.map(e=>e.clone()))}getCollisions(){let e=[];return this.cells.filter(e=>e.isEmpty&&(this.board.collidesUp(e)||this.board.collidesDown(e))).forEach(t=>{let r=this.board.getColumn(t.x),n=t.y-1;for(;n>=0&&r[n].hasTile();)--n;let a=r.slice(n+1,t.y);for(n=t.y+1;n<r.length&&r[n].hasTile();)++n;let i=r.slice(t.y+1,n),l=[...a,t,...i];if(l.length>1){let t=new o.default(this.board,l);e.push(t)}}),e}}t.default=a},6634:function(e,t){"use strict";var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.isLocale=void 0,(n=r||(r={})).DE_DE="de-DE",n.EN_GB="en-GB",n.EN_US="en-US",n.ES_ES="es-ES",n.FA_IR="fa-IR",n.FR_FR="fr-FR",n.PL_PL="pl-PL";let o=Object.values(r),a=e=>o.includes(e);t.isLocale=a,t.default=r},3207:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class r{constructor(e,t){this.board=e,this.cells=t}canBePlaced(e){let t=this.getEmptyCellsCount(),r=t>=1&&t<=e.maximumCharactersCount;return r&&(this.hasAtLeast1NonEmptyCell()||this.collides()||this.goesThroughBoardCenter()&&this.board.isEmpty())}clone(){return new r(this.board,this.cells.map(e=>e.clone()))}collides(){return this.cells.some(e=>e.isEmpty&&this.board.collides(e))}getIndexOfFirstCellWithoutTile(){return this.cells.findIndex(e=>!e.hasTile())}getEmptyCellsCount(){return this.cells.filter(e=>e.isEmpty).length}goesThroughBoardCenter(){return this.cells.some(e=>e.x===this.board.center.x&&e.y===this.board.center.y&&e.isEmpty)}hasAtLeast1EmptyCell(){return this.cells.some(e=>e.isEmpty)}hasAtLeast1NonEmptyCell(){return this.cells.some(e=>!e.isEmpty)}getCollisions(){return[]}toJson(){return{cells:this.cells.map(e=>e.toJson()),collisions:this.getCollisions().map(e=>e.toJson()),word:this.toString()}}toString(){return this.cells.reduce((e,t)=>e+t.toString(),"")}}t.default=r},91:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});let o=r(7618),a=n(r(2251));class i{static fromJson(e){return new i({id:e.id,cells:e.cells.map(a.default.fromJson),collisions:e.collisions.map(e=>e.map(a.default.fromJson)),points:e.points})}constructor({cells:e,id:t,collisions:r,points:n}){let o=f(e);this.blanksCount=l(o).length,this.cells=e,this.collisions=r,this.consonantsCount=c(o).length,this.id=t,this.length=e.length,this.points=n,this.pointsRatio=u(o,n),this.tiles=o,this.tilesCount=o.length,this.vowelsCount=s(o).length,this.word=d(e),this.words=p(e,r),this.wordsCount=1+this.collisions.length}toJson(){return{cells:this.cells.map(e=>e.toJson()),id:this.id,collisions:this.collisions.map(e=>e.map(e=>e.toJson())),points:this.points}}}let l=e=>e.filter(({isBlank:e})=>e),c=e=>e.filter(h),s=e=>e.filter(m),u=(e,t)=>t/e.length,f=e=>e.filter(({isEmpty:e})=>e).map(({tile:e})=>e),d=e=>e.reduce((e,t)=>e+t.toString(),""),p=(e,t)=>[e,...t].map(d),h=({character:e,isBlank:t})=>o.CONSONANTS.includes(e)&&!t,m=({character:e,isBlank:t})=>o.VOWELS.includes(e)&&!t;t.default=i},5275:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(7618);class o{static fromJson(e){return e?new o({character:e.character,isBlank:e.isBlank}):o.Null}constructor({character:e,isBlank:t=!1}){this.character=e,this.isBlank=t}clone(){return new o({character:this.character,isBlank:this.isBlank})}equals(e){return this.character===e.character&&this.isBlank===e.isBlank}toJson(){return{character:this.character,isBlank:this.isBlank}}toString(){return this.character}}o.Null=Object.freeze({character:n.EMPTY_CELL,isBlank:!1,clone:()=>o.Null,equals:e=>e===o.Null,toJson:()=>null,toString:()=>n.EMPTY_CELL}),t.default=o},214:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.isTileJson=void 0;let o=n(r(4814)),a=e=>(0,o.default)(e)&&"string"==typeof e.character&&"boolean"==typeof e.isBlank;t.isTileJson=a},5168:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});let o=n(r(3207));class a extends o.default{clone(){return new a(this.board,this.cells.map(e=>e.clone()))}getCollisions(){let e=[];return this.cells.filter(e=>e.isEmpty&&(this.board.collidesLeft(e)||this.board.collidesRight(e))).forEach(t=>{let r=this.board.getRow(t.y),n=t.x-1;for(;n>=0&&r[n].hasTile();)--n;let a=r.slice(n+1,t.x);for(n=t.x+1;n<r.length&&r[n].hasTile();)++n;let i=r.slice(t.x+1,n),l=[...a,t,...i];if(l.length>1){let t=new o.default(this.board,l);e.push(t)}}),e}}t.default=a},8627:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});let o=r(7618),a=n(r(7706));class i extends a.default{constructor(){super(...arguments),this.type=o.BONUS_WORD}get value(){return{characterMultiplier:1,wordMultiplier:this.multiplier}}}t.default=i},1560:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class r{static fromJson(e){return e?new r({definitions:e.definitions,exists:e.exists,isAllowed:e.isAllowed,word:e.word}):r.Null}constructor({definitions:e,exists:t,isAllowed:r,word:n}){this.definitions=e,this.exists=t,this.isAllowed=r,this.word=n}toJson(){return{definitions:this.definitions,exists:this.exists,isAllowed:this.isAllowed,word:this.word}}}r.Null=Object.freeze({definitions:[],exists:!1,isAllowed:!1,word:"",toJson:()=>null}),t.default=r},1266:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.WordDefinition=t.WordBonus=t.VerticalPattern=t.isTileJson=t.Tile=t.Result=t.Pattern=t.isLocale=t.Locale=t.isObject=t.isError=t.HorizontalPattern=t.FinalPattern=t.Config=t.CharacterBonus=t.isCellJson=t.Cell=t.Bonus=t.isBoardJson=t.Board=void 0;var o=r(559);Object.defineProperty(t,"Board",{enumerable:!0,get:function(){return n(o).default}});var a=r(6936);Object.defineProperty(t,"isBoardJson",{enumerable:!0,get:function(){return a.isBoardJson}});var i=r(7706);Object.defineProperty(t,"Bonus",{enumerable:!0,get:function(){return n(i).default}});var l=r(2251);Object.defineProperty(t,"Cell",{enumerable:!0,get:function(){return n(l).default}});var c=r(9819);Object.defineProperty(t,"isCellJson",{enumerable:!0,get:function(){return c.isCellJson}});var s=r(9582);Object.defineProperty(t,"CharacterBonus",{enumerable:!0,get:function(){return n(s).default}});var u=r(8433);Object.defineProperty(t,"Config",{enumerable:!0,get:function(){return n(u).default}});var f=r(5905);Object.defineProperty(t,"FinalPattern",{enumerable:!0,get:function(){return n(f).default}});var d=r(9594);Object.defineProperty(t,"HorizontalPattern",{enumerable:!0,get:function(){return n(d).default}});var p=r(6255);Object.defineProperty(t,"isError",{enumerable:!0,get:function(){return n(p).default}});var h=r(4814);Object.defineProperty(t,"isObject",{enumerable:!0,get:function(){return n(h).default}});var m=r(6634);Object.defineProperty(t,"Locale",{enumerable:!0,get:function(){return n(m).default}}),Object.defineProperty(t,"isLocale",{enumerable:!0,get:function(){return m.isLocale}});var y=r(3207);Object.defineProperty(t,"Pattern",{enumerable:!0,get:function(){return n(y).default}});var v=r(91);Object.defineProperty(t,"Result",{enumerable:!0,get:function(){return n(v).default}});var g=r(5275);Object.defineProperty(t,"Tile",{enumerable:!0,get:function(){return n(g).default}});var b=r(214);Object.defineProperty(t,"isTileJson",{enumerable:!0,get:function(){return b.isTileJson}});var _=r(5168);Object.defineProperty(t,"VerticalPattern",{enumerable:!0,get:function(){return n(_).default}});var w=r(8627);Object.defineProperty(t,"WordBonus",{enumerable:!0,get:function(){return n(w).default}});var x=r(1560);Object.defineProperty(t,"WordDefinition",{enumerable:!0,get:function(){return n(x).default}})},6255:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});let o=n(r(4814)),a=e=>!!(0,o.default)(e)&&"string"==typeof e.message;t.default=a},4814:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=e=>"object"==typeof e&&null!==e},7462:function(e,t,r){"use strict";function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}r.d(t,{Z:function(){return n}})}},function(e){var t=function(t){return e(e.s=t)};e.O(0,[774,179],function(){return t(6840),t(6885)}),_N_E=e.O()}]);
|