radames commited on
Commit
3635215
β€’
1 Parent(s): 11f5b95

instructions

Browse files
static/_app/immutable/assets/pages/{__layout.svelte-37e5deae.css β†’ __layout.svelte-7926a3a8.css} RENAMED
@@ -1 +1 @@
1
- *,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input:-ms-input-placeholder,textarea:-ms-input-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::-webkit-backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.left-1\/2{left:50%}.top-1\/2{top:50%}.left-0{left:0px}.right-0{right:0px}.top-0{top:0px}.bottom-0{bottom:0px}.z-20{z-index:20}.z-50{z-index:50}.z-10{z-index:10}.z-0{z-index:0}.m-0{margin:0}.m-5{margin:1.25rem}.my-3{margin-top:.75rem;margin-bottom:.75rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.mx-3{margin-left:.75rem;margin-right:.75rem}.mx-1{margin-left:.25rem;margin-right:.25rem}.mt-0{margin-top:0}.mb-2{margin-bottom:.5rem}.mr-1{margin-right:.25rem}.ml-1{margin-left:.25rem}.mt-3{margin-top:.75rem}.box-border{box-sizing:border-box}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.h-full{height:100%}.max-h-\[30vh\]{max-height:30vh}.min-h-\[58px\]{min-height:58px}.min-h-screen{min-height:100vh}.w-full{width:100%}.w-screen{width:100vw}.min-w-\[15ch\]{min-width:15ch}.max-w-md{max-width:28rem}.max-w-\[180px\]{max-width:180px}.max-w-screen-lg{max-width:1024px}.flex-1{flex:1 1 0%}.-translate-x-1\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.resize{resize:both}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.place-content-center{place-content:center}.place-items-center{place-items:center}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-1{gap:.25rem}.whitespace-nowrap{white-space:nowrap}.rounded-sm{border-radius:.125rem}.rounded-md{border-radius:.375rem}.rounded{border-radius:.25rem}.border-0{border-width:0px}.border-\[0\.5px\]{border-width:.5px}.border-\[1\.5px\]{border-width:1.5px}.border-solid{border-style:solid}.border-gray-400{--tw-border-opacity: 1;border-color:rgb(156 163 175 / var(--tw-border-opacity))}.border-opacity-50{--tw-border-opacity: .5}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-\[\#d3d6da\]{--tw-bg-opacity: 1;background-color:rgb(211 214 218 / var(--tw-bg-opacity))}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.bg-gray-700{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.bg-opacity-80{--tw-bg-opacity: .8}.p-0{padding:0}.p-5{padding:1.25rem}.p-3{padding:.75rem}.p-10{padding:2.5rem}.p-1{padding:.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-1{padding-left:.25rem;padding-right:.25rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.text-center{text-align:center}.text-xs{font-size:.75rem;line-height:1rem}.text-base{font-size:1rem;line-height:1.5rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.font-bold{font-weight:700}.font-light{font-weight:300}.font-semibold{font-weight:600}.font-extrabold{font-weight:800}.uppercase{text-transform:uppercase}.tracking-widest{letter-spacing:.1em}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-\[\#1a1a1b\]{--tw-text-opacity: 1;color:rgb(26 26 27 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.underline{-webkit-text-decoration-line:underline;text-decoration-line:underline}.underline-offset-2{text-underline-offset:2px}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-500{transition-duration:.5s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}:root{--cols: 19}.correct,.present,.absent{color:#fff!important}.correct{background-color:#6aaa64!important}.present{background-color:#c9b458!important}.absent{background-color:#787c7e!important}.hover\:scale-105:hover{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:bg-gray-900:hover{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.hover\:no-underline:hover{-webkit-text-decoration-line:none;text-decoration-line:none}@media (prefers-color-scheme: dark){.dark\:bg-\[rgb\(11\,15\,25\)\]{--tw-bg-opacity: 1;background-color:rgb(11 15 25 / var(--tw-bg-opacity))}.dark\:text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}}@media (min-width: 640px){.sm\:block{display:block}.sm\:px-2{padding-left:.5rem;padding-right:.5rem}.sm\:text-base{font-size:1rem;line-height:1.5rem}}
 
1
+ *,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input:-ms-input-placeholder,textarea:-ms-input-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::-webkit-backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.left-1\/2{left:50%}.top-1\/2{top:50%}.left-0{left:0px}.right-0{right:0px}.top-0{top:0px}.bottom-0{bottom:0px}.z-20{z-index:20}.z-50{z-index:50}.z-10{z-index:10}.z-0{z-index:0}.m-0{margin:0}.m-5{margin:1.25rem}.my-3{margin-top:.75rem;margin-bottom:.75rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.mx-3{margin-left:.75rem;margin-right:.75rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.mx-1{margin-left:.25rem;margin-right:.25rem}.mt-0{margin-top:0}.mb-2{margin-bottom:.5rem}.mr-1{margin-right:.25rem}.ml-1{margin-left:.25rem}.mt-3{margin-top:.75rem}.box-border{box-sizing:border-box}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.h-full{height:100%}.max-h-\[30vh\]{max-height:30vh}.min-h-\[58px\]{min-height:58px}.min-h-screen{min-height:100vh}.w-full{width:100%}.w-screen{width:100vw}.min-w-\[15ch\]{min-width:15ch}.max-w-md{max-width:28rem}.max-w-\[180px\]{max-width:180px}.max-w-screen-lg{max-width:1024px}.flex-1{flex:1 1 0%}.-translate-x-1\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.resize{resize:both}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.place-content-center{place-content:center}.place-items-center{place-items:center}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-1{gap:.25rem}.whitespace-nowrap{white-space:nowrap}.rounded-sm{border-radius:.125rem}.rounded-md{border-radius:.375rem}.rounded{border-radius:.25rem}.border-0{border-width:0px}.border-\[0\.5px\]{border-width:.5px}.border-\[1\.5px\]{border-width:1.5px}.border-solid{border-style:solid}.border-gray-400{--tw-border-opacity: 1;border-color:rgb(156 163 175 / var(--tw-border-opacity))}.border-opacity-50{--tw-border-opacity: .5}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-\[\#d3d6da\]{--tw-bg-opacity: 1;background-color:rgb(211 214 218 / var(--tw-bg-opacity))}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.bg-gray-700{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.bg-opacity-80{--tw-bg-opacity: .8}.p-0{padding:0}.p-5{padding:1.25rem}.p-3{padding:.75rem}.p-10{padding:2.5rem}.p-1{padding:.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-1{padding-left:.25rem;padding-right:.25rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.pt-3{padding-top:.75rem}.pb-3{padding-bottom:.75rem}.text-center{text-align:center}.text-xs{font-size:.75rem;line-height:1rem}.text-base{font-size:1rem;line-height:1.5rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.font-bold{font-weight:700}.font-light{font-weight:300}.font-semibold{font-weight:600}.font-extrabold{font-weight:800}.uppercase{text-transform:uppercase}.tracking-widest{letter-spacing:.1em}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-\[\#1a1a1b\]{--tw-text-opacity: 1;color:rgb(26 26 27 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.underline{-webkit-text-decoration-line:underline;text-decoration-line:underline}.underline-offset-2{text-underline-offset:2px}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-500{transition-duration:.5s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}:root{--cols: 19}.correct,.present,.absent{color:#fff!important}.correct{background-color:#6aaa64!important}.present{background-color:#c9b458!important}.absent{background-color:#787c7e!important}.hover\:scale-105:hover{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:bg-gray-900:hover{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.hover\:text-blue-500:hover{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity))}.hover\:no-underline:hover{-webkit-text-decoration-line:none;text-decoration-line:none}@media (prefers-color-scheme: dark){.dark\:bg-\[rgb\(11\,15\,25\)\]{--tw-bg-opacity: 1;background-color:rgb(11 15 25 / var(--tw-bg-opacity))}.dark\:text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}}@media (min-width: 640px){.sm\:block{display:block}.sm\:px-2{padding-left:.5rem;padding-right:.5rem}.sm\:text-base{font-size:1rem;line-height:1.5rem}}
static/_app/immutable/chunks/preload-helper-8235996a.js DELETED
@@ -1 +0,0 @@
1
- const a="modulepreload",o={},u="/embed/huggingface-projects/wordalle/static/_app/immutable/",f=function(s,n){return!n||n.length===0?s():Promise.all(n.map(e=>{if(e=`${u}${e}`,e in o)return;o[e]=!0;const t=e.endsWith(".css"),i=t?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${e}"]${i}`))return;const r=document.createElement("link");if(r.rel=t?"stylesheet":a,t||(r.as="script",r.crossOrigin=""),r.href=e,document.head.appendChild(r),t)return new Promise((l,c)=>{r.addEventListener("load",l),r.addEventListener("error",()=>c(new Error(`Unable to preload CSS for ${e}`)))})})).then(()=>s())};export{f as _};
 
 
static/_app/immutable/chunks/preload-helper-fca94356.js ADDED
@@ -0,0 +1 @@
 
 
1
+ let a="",f="";function d(r){a=r.base,f=r.assets||a}const m="modulepreload",i={},h="/embed/huggingface-projects/wordalle/static/_app/immutable/",b=function(o,n){return!n||n.length===0?o():Promise.all(n.map(e=>{if(e=`${h}${e}`,e in i)return;i[e]=!0;const s=e.endsWith(".css"),l=s?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${e}"]${l}`))return;const t=document.createElement("link");if(t.rel=s?"stylesheet":m,s||(t.as="script",t.crossOrigin=""),t.href=e,document.head.appendChild(t),s)return new Promise((c,u)=>{t.addEventListener("load",c),t.addEventListener("error",()=>u(new Error(`Unable to preload CSS for ${e}`)))})})).then(()=>o())};export{b as _,f as a,a as b,d as s};
static/_app/immutable/manifest.json CHANGED
@@ -1,11 +1,11 @@
1
  {
2
  ".svelte-kit/runtime/client/start.js": {
3
- "file": "start-eac39b20.js",
4
  "src": ".svelte-kit/runtime/client/start.js",
5
  "isEntry": true,
6
  "imports": [
7
  "_index-7118b6c4.js",
8
- "_preload-helper-8235996a.js"
9
  ],
10
  "dynamicImports": [
11
  "src/routes/__layout.svelte",
@@ -14,7 +14,7 @@
14
  ]
15
  },
16
  "src/routes/__layout.svelte": {
17
- "file": "pages/__layout.svelte-4f8272ef.js",
18
  "src": "src/routes/__layout.svelte",
19
  "isEntry": true,
20
  "isDynamicEntry": true,
@@ -22,7 +22,7 @@
22
  "_index-7118b6c4.js"
23
  ],
24
  "css": [
25
- "assets/pages/__layout.svelte-37e5deae.css"
26
  ]
27
  },
28
  ".svelte-kit/runtime/components/error.svelte": {
@@ -35,13 +35,13 @@
35
  ]
36
  },
37
  "src/routes/index.svelte": {
38
- "file": "pages/index.svelte-5ed7efa8.js",
39
  "src": "src/routes/index.svelte",
40
  "isEntry": true,
41
  "isDynamicEntry": true,
42
  "imports": [
43
  "_index-7118b6c4.js",
44
- "_preload-helper-8235996a.js"
45
  ],
46
  "dynamicImports": [
47
  "src/lib/badges/fifteen.svelte",
@@ -59,8 +59,8 @@
59
  "_index-7118b6c4.js": {
60
  "file": "chunks/index-7118b6c4.js"
61
  },
62
- "_preload-helper-8235996a.js": {
63
- "file": "chunks/preload-helper-8235996a.js"
64
  },
65
  "src/lib/badges/fifteen.svelte": {
66
  "file": "chunks/fifteen-6ece83ce.js",
 
1
  {
2
  ".svelte-kit/runtime/client/start.js": {
3
+ "file": "start-15953b66.js",
4
  "src": ".svelte-kit/runtime/client/start.js",
5
  "isEntry": true,
6
  "imports": [
7
  "_index-7118b6c4.js",
8
+ "_preload-helper-fca94356.js"
9
  ],
10
  "dynamicImports": [
11
  "src/routes/__layout.svelte",
 
14
  ]
15
  },
16
  "src/routes/__layout.svelte": {
17
+ "file": "pages/__layout.svelte-687870fa.js",
18
  "src": "src/routes/__layout.svelte",
19
  "isEntry": true,
20
  "isDynamicEntry": true,
 
22
  "_index-7118b6c4.js"
23
  ],
24
  "css": [
25
+ "assets/pages/__layout.svelte-7926a3a8.css"
26
  ]
27
  },
28
  ".svelte-kit/runtime/components/error.svelte": {
 
35
  ]
36
  },
37
  "src/routes/index.svelte": {
38
+ "file": "pages/index.svelte-cba9b380.js",
39
  "src": "src/routes/index.svelte",
40
  "isEntry": true,
41
  "isDynamicEntry": true,
42
  "imports": [
43
  "_index-7118b6c4.js",
44
+ "_preload-helper-fca94356.js"
45
  ],
46
  "dynamicImports": [
47
  "src/lib/badges/fifteen.svelte",
 
59
  "_index-7118b6c4.js": {
60
  "file": "chunks/index-7118b6c4.js"
61
  },
62
+ "_preload-helper-fca94356.js": {
63
+ "file": "chunks/preload-helper-fca94356.js"
64
  },
65
  "src/lib/badges/fifteen.svelte": {
66
  "file": "chunks/fifteen-6ece83ce.js",
static/_app/immutable/pages/{__layout.svelte-4f8272ef.js β†’ __layout.svelte-687870fa.js} RENAMED
File without changes
static/_app/immutable/pages/index.svelte-5ed7efa8.js DELETED
@@ -1,7 +0,0 @@
1
- var Nt=Object.defineProperty;var at=Object.getOwnPropertySymbols;var Ut=Object.prototype.hasOwnProperty,Bt=Object.prototype.propertyIsEnumerable;var st=(n,e,t)=>e in n?Nt(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,lt=(n,e)=>{for(var t in e||(e={}))Ut.call(e,t)&&st(n,t,e[t]);if(at)for(var t of at(e))Bt.call(e,t)&&st(n,t,e[t]);return n};import{S as Me,i as He,s as qe,e as A,k as K,c as j,a as P,m as Z,d,b as u,g as le,J as c,K as xe,L as be,n as Te,M as We,t as oe,h as ie,N as Ue,O as Be,P as Vt,x as Ae,y as Xe,z as je,o as Ie,p as me,C as Re,q as De,r as ce,Q as Ke,R as Pe,T as Ve,l as Oe,j as Le,U as Rt,w as Dt,V as Lt,W as Ye,f as Se,X as Ot,Y as zt}from"../chunks/index-7118b6c4.js";import{_ as ke}from"../chunks/preload-helper-8235996a.js";var pe=(n=>(n.INITIAL="",n.CORRECT="correct",n.PRESENT="present",n.ABSENT="absent",n))(pe||{}),ge=(n=>(n[n.PLAYING=0]="PLAYING",n[n.SUCESS=1]="SUCESS",n[n.FAIL=2]="FAIL",n))(ge||{});function Ft(n,e){const t=[...n],r=t[e];for(const a of[...r].reverse())if(a.letter){a.letter="";break}return t}function Mt(n,e,t){const r=[...n],a=r[e];for(const s of a)if(s.correct===" "&&(s.letter=" "),!s.letter){s.letter=t;break}return r}const ot={[pe.CORRECT]:"#00b81a",[pe.PRESENT]:"#ffc80a",[pe.ABSENT]:"#d9d9d9",[pe.INITIAL]:"#5d5d5d"},ze={2:"two",5:"five",10:"ten",15:"fifteen",20:"twenty",35:"thirtyfive",50:"fifty"},Ht=["\u{1F917} Hugging \u{1F917}","\u{1F9DE} Genius \u{1F9DE}","\u{1F929} Magnificent \u{1F929}","\u{1F632} Impressive \u{1F632}","\u{1F9DA} Splendid \u{1F9DA}","\u2733 Great \u2733","\u{1F361} Phew \u{1F361}"];function it(n,e,t){const r=n.slice();return r[4]=e[t],r[6]=t,r}function ct(n,e,t){const r=n.slice();return r[7]=e[t],r}function qt(n){let e;return{c(){e=A("div"),this.h()},l(t){e=j(t,"DIV",{class:!0}),P(e).forEach(d),this.h()},h(){u(e,"class","spacer svelte-2ngxdh")},m(t,r){le(t,e,r)},d(t){t&&d(e)}}}function Xt(n){let e,t=n[7]+"",r;return{c(){e=A("span"),r=oe(t)},l(a){e=j(a,"SPAN",{});var s=P(e);r=ie(s,t),s.forEach(d)},m(a,s){le(a,e,s),c(e,r)},p:Te,d(a){a&&d(e)}}}function Gt(n){let e,t;return{c(){e=Ue("svg"),t=Ue("path"),this.h()},l(r){e=Be(r,"svg",{xmlns:!0,height:!0,viewBox:!0,width:!0});var a=P(e);t=Be(a,"path",{fill:!0,d:!0}),P(t).forEach(d),a.forEach(d),this.h()},h(){u(t,"fill","currentColor"),u(t,"d","M22 3H7c-.69 0-1.23.35-1.59.88L0 12l5.41 8.11c.36.53.9.89 1.59.89h15c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H7.07L2.4 12l4.66-7H22v14zm-11.59-2L14 13.41 17.59 17 19 15.59 15.41 12 19 8.41 17.59 7 14 10.59 10.41 7 9 8.41 12.59 12 9 15.59z"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"height","24"),u(e,"viewBox","0 0 24 24"),u(e,"width","24")},m(r,a){le(r,e,a),c(e,t)},p:Te,d(r){r&&d(e)}}}function ut(n){let e,t,r,a;function s(g,S){return g[7]==="Backspace"?Gt:Xt}let o=s(n)(n);function i(){return n[3](n[7])}return{c(){e=A("button"),o.c(),this.h()},l(g){e=j(g,"BUTTON",{class:!0});var S=P(e);o.l(S),S.forEach(d),this.h()},h(){u(e,"class",t=(n[0][n[7]]===void 0?"":n[0][n[7]])+" "+(n[7].length>1&&"big")+" svelte-2ngxdh")},m(g,S){le(g,e,S),o.m(e,null),r||(a=xe(e,"click",i),r=!0)},p(g,S){n=g,o.p(n,S),S&1&&t!==(t=(n[0][n[7]]===void 0?"":n[0][n[7]])+" "+(n[7].length>1&&"big")+" svelte-2ngxdh")&&u(e,"class",t)},d(g){g&&d(e),o.d(),r=!1,a()}}}function Yt(n){let e;return{c(){e=A("div"),this.h()},l(t){e=j(t,"DIV",{class:!0}),P(e).forEach(d),this.h()},h(){u(e,"class","spacer svelte-2ngxdh")},m(t,r){le(t,e,r)},d(t){t&&d(e)}}}function ft(n){let e,t,r,a,s=n[6]===1&&qt(),l=n[4],o=[];for(let g=0;g<l.length;g+=1)o[g]=ut(ct(n,l,g));let i=n[6]===1&&Yt();return{c(){e=A("div"),s&&s.c(),t=K();for(let g=0;g<o.length;g+=1)o[g].c();r=K(),i&&i.c(),a=K(),this.h()},l(g){e=j(g,"DIV",{class:!0});var S=P(e);s&&s.l(S),t=Z(S);for(let D=0;D<o.length;D+=1)o[D].l(S);r=Z(S),i&&i.l(S),a=Z(S),S.forEach(d),this.h()},h(){u(e,"class","row svelte-2ngxdh")},m(g,S){le(g,e,S),s&&s.m(e,null),c(e,t);for(let D=0;D<o.length;D+=1)o[D].m(e,null);c(e,r),i&&i.m(e,null),c(e,a)},p(g,S){if(S&7){l=g[4];let D;for(D=0;D<l.length;D+=1){const z=ct(g,l,D);o[D]?o[D].p(z,S):(o[D]=ut(z),o[D].c(),o[D].m(e,r))}for(;D<o.length;D+=1)o[D].d(1);o.length=l.length}},d(g){g&&d(e),s&&s.d(),be(o,g),i&&i.d()}}}function Wt(n){let e,t=n[2],r=[];for(let a=0;a<t.length;a+=1)r[a]=ft(it(n,t,a));return{c(){e=A("div");for(let a=0;a<r.length;a+=1)r[a].c();this.h()},l(a){e=j(a,"DIV",{class:!0});var s=P(e);for(let l=0;l<r.length;l+=1)r[l].l(s);s.forEach(d),this.h()},h(){u(e,"class","my-3 mx-auto select-none max-w-md")},m(a,s){le(a,e,s);for(let l=0;l<r.length;l+=1)r[l].m(e,null)},p(a,[s]){if(s&7){t=a[2];let l;for(l=0;l<t.length;l+=1){const o=it(a,t,l);r[l]?r[l].p(o,s):(r[l]=ft(o),r[l].c(),r[l].m(e,null))}for(;l<r.length;l+=1)r[l].d(1);r.length=t.length}},i:Te,o:Te,d(a){a&&d(e),be(r,a)}}}function Kt(n,e,t){let{letterStates:r}=e;const a=We(),s=["qwertyuiop".split(""),[..."asdfghjkl".split("")],["Enter",..."zxcvbnm".split(""),"Backspace"]],l=o=>a("keyup",o);return n.$$set=o=>{"letterStates"in o&&t(0,r=o.letterStates)},[r,a,s,l]}class Zt extends Me{constructor(e){super(),He(this,e,Kt,Wt,qe,{letterStates:0})}}function Jt(n){const e=n-1;return e*e*e+1}function Fe(n,{delay:e=0,duration:t=400,easing:r=Vt}={}){const a=+getComputedStyle(n).opacity;return{delay:e,duration:t,easing:r,css:s=>`opacity: ${s*a}`}}function ht(n,{delay:e=0,duration:t=400,easing:r=Jt,start:a=0,opacity:s=0}={}){const l=getComputedStyle(n),o=+l.opacity,i=l.transform==="none"?"":l.transform,g=1-a,S=o*(1-s);return{delay:e,duration:t,easing:r,css:(D,z)=>`
2
- transform: ${i} scale(${1-g*z});
3
- opacity: ${o-S*z}
4
- `}}var Ct={exports:{}};(function(n){(function(e){var t=ae(),r=he(),a=C(),s=te(),l={imagePlaceholder:void 0,cacheBust:!1},o={toSvg:i,toPng:S,toJpeg:D,toBlob:z,toPixelData:g,impl:{fontFaces:a,images:s,util:t,inliner:r,options:{}}};n.exports=o;function i(f,p){return p=p||{},B(p),Promise.resolve(f).then(function(_){return q(_,p.filter,!0)}).then(J).then(se).then(x).then(function(_){return Q(_,p.width||t.width(f),p.height||t.height(f))});function x(_){return p.bgcolor&&(_.style.backgroundColor=p.bgcolor),p.width&&(_.style.width=p.width+"px"),p.height&&(_.style.height=p.height+"px"),p.style&&Object.keys(p.style).forEach(function(I){_.style[I]=p.style[I]}),_}}function g(f,p){return V(f,p||{}).then(function(x){return x.getContext("2d").getImageData(0,0,t.width(f),t.height(f)).data})}function S(f,p){return V(f,p||{}).then(function(x){return x.toDataURL()})}function D(f,p){return p=p||{},V(f,p).then(function(x){return x.toDataURL("image/jpeg",p.quality||1)})}function z(f,p){return V(f,p||{}).then(t.canvasToBlob)}function B(f){typeof f.imagePlaceholder=="undefined"?o.impl.options.imagePlaceholder=l.imagePlaceholder:o.impl.options.imagePlaceholder=f.imagePlaceholder,typeof f.cacheBust=="undefined"?o.impl.options.cacheBust=l.cacheBust:o.impl.options.cacheBust=f.cacheBust}function V(f,p){return i(f,p).then(t.makeImage).then(t.delay(100)).then(function(_){var I=x(f);return I.getContext("2d").drawImage(_,0,0),I});function x(_){var I=document.createElement("canvas");if(I.width=p.width||t.width(_),I.height=p.height||t.height(_),p.bgcolor){var E=I.getContext("2d");E.fillStyle=p.bgcolor,E.fillRect(0,0,I.width,I.height)}return I}}function q(f,p,x){if(!x&&p&&!p(f))return Promise.resolve();return Promise.resolve(f).then(_).then(function(w){return I(f,w,p)}).then(function(w){return E(f,w)});function _(w){return w instanceof HTMLCanvasElement?t.makeImage(w.toDataURL()):w.cloneNode(!1)}function I(w,h,F){var T=w.childNodes;if(T.length===0)return Promise.resolve(h);return U(h,t.asArray(T),F).then(function(){return h});function U(y,M,R){var v=Promise.resolve();return M.forEach(function(X){v=v.then(function(){return q(X,R)}).then(function(b){b&&y.appendChild(b)})}),v}}function E(w,h){if(!(h instanceof Element))return h;return Promise.resolve().then(F).then(T).then(U).then(y).then(function(){return h});function F(){M(window.getComputedStyle(w),h.style);function M(R,v){R.cssText?v.cssText=R.cssText:X(R,v);function X(b,$){t.asArray(b).forEach(function(m){$.setProperty(m,b.getPropertyValue(m),b.getPropertyPriority(m))})}}}function T(){[":before",":after"].forEach(function(R){M(R)});function M(R){var v=window.getComputedStyle(w,R),X=v.getPropertyValue("content");if(X===""||X==="none")return;var b=t.uid();h.className=h.className+" "+b;var $=document.createElement("style");$.appendChild(m(b,R,v)),h.appendChild($);function m(N,H,k){var O="."+N+":"+H,re=k.cssText?ee(k):fe(k);return document.createTextNode(O+"{"+re+"}");function ee(G){var de=G.getPropertyValue("content");return G.cssText+" content: "+de+";"}function fe(G){return t.asArray(G).map(de).join("; ")+";";function de(ue){return ue+": "+G.getPropertyValue(ue)+(G.getPropertyPriority(ue)?" !important":"")}}}}}function U(){w instanceof HTMLTextAreaElement&&(h.innerHTML=w.value),w instanceof HTMLInputElement&&h.setAttribute("value",w.value)}function y(){h instanceof SVGElement&&(h.setAttribute("xmlns","http://www.w3.org/2000/svg"),h instanceof SVGRectElement&&["width","height"].forEach(function(M){var R=h.getAttribute(M);!R||h.style.setProperty(M,R)}))}}}function J(f){return a.resolveAll().then(function(p){var x=document.createElement("style");return f.appendChild(x),x.appendChild(document.createTextNode(p)),f})}function se(f){return s.inlineAll(f).then(function(){return f})}function Q(f,p,x){return Promise.resolve(f).then(function(_){return _.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),new XMLSerializer().serializeToString(_)}).then(t.escapeXhtml).then(function(_){return'<foreignObject x="0" y="0" width="100%" height="100%">'+_+"</foreignObject>"}).then(function(_){return'<svg xmlns="http://www.w3.org/2000/svg" width="'+p+'" height="'+x+'">'+_+"</svg>"}).then(function(_){return"data:image/svg+xml;charset=utf-8,"+_})}function ae(){return{escape:y,parseExtension:p,mimeType:x,dataAsUrl:U,isDataUrl:_,canvasToBlob:E,resolveUrl:w,getAndEncode:T,uid:h(),delay:M,asArray:R,escapeXhtml:v,makeImage:F,width:X,height:b};function f(){var m="application/font-woff",N="image/jpeg";return{woff:m,woff2:m,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:N,jpeg:N,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml"}}function p(m){var N=/\.([^\.\/]*?)$/g.exec(m);return N?N[1]:""}function x(m){var N=p(m).toLowerCase();return f()[N]||""}function _(m){return m.search(/^(data:)/)!==-1}function I(m){return new Promise(function(N){for(var H=window.atob(m.toDataURL().split(",")[1]),k=H.length,O=new Uint8Array(k),re=0;re<k;re++)O[re]=H.charCodeAt(re);N(new Blob([O],{type:"image/png"}))})}function E(m){return m.toBlob?new Promise(function(N){m.toBlob(N)}):I(m)}function w(m,N){var H=document.implementation.createHTMLDocument(),k=H.createElement("base");H.head.appendChild(k);var O=H.createElement("a");return H.body.appendChild(O),k.href=N,O.href=m,O.href}function h(){var m=0;return function(){return"u"+N()+m++;function N(){return("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4)}}}function F(m){return new Promise(function(N,H){var k=new Image;k.onload=function(){N(k)},k.onerror=H,k.src=m})}function T(m){var N=3e4;return o.impl.options.cacheBust&&(m+=(/\?/.test(m)?"&":"?")+new Date().getTime()),new Promise(function(H){var k=new XMLHttpRequest;k.onreadystatechange=ee,k.ontimeout=fe,k.responseType="blob",k.timeout=N,k.open("GET",m,!0),k.send();var O;if(o.impl.options.imagePlaceholder){var re=o.impl.options.imagePlaceholder.split(/,/);re&&re[1]&&(O=re[1])}function ee(){if(k.readyState===4){if(k.status!==200){O?H(O):G("cannot fetch resource: "+m+", status: "+k.status);return}var de=new FileReader;de.onloadend=function(){var ue=de.result.split(/,/)[1];H(ue)},de.readAsDataURL(k.response)}}function fe(){O?H(O):G("timeout of "+N+"ms occured while fetching resource: "+m)}function G(de){console.error(de),H("")}})}function U(m,N){return"data:"+N+";base64,"+m}function y(m){return m.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1")}function M(m){return function(N){return new Promise(function(H){setTimeout(function(){H(N)},m)})}}function R(m){for(var N=[],H=m.length,k=0;k<H;k++)N.push(m[k]);return N}function v(m){return m.replace(/#/g,"%23").replace(/\n/g,"%0A")}function X(m){var N=$(m,"border-left-width"),H=$(m,"border-right-width");return m.scrollWidth+N+H}function b(m){var N=$(m,"border-top-width"),H=$(m,"border-bottom-width");return m.scrollHeight+N+H}function $(m,N){var H=window.getComputedStyle(m).getPropertyValue(N);return parseFloat(H.replace("px",""))}}function he(){var f=/url\(['"]?([^'"]+?)['"]?\)/g;return{inlineAll:I,shouldProcess:p,impl:{readUrls:x,inline:_}};function p(E){return E.search(f)!==-1}function x(E){for(var w=[],h;(h=f.exec(E))!==null;)w.push(h[1]);return w.filter(function(F){return!t.isDataUrl(F)})}function _(E,w,h,F){return Promise.resolve(w).then(function(U){return h?t.resolveUrl(U,h):U}).then(F||t.getAndEncode).then(function(U){return t.dataAsUrl(U,t.mimeType(w))}).then(function(U){return E.replace(T(w),"$1"+U+"$3")});function T(U){return new RegExp(`(url\\(['"]?)(`+t.escape(U)+`)(['"]?\\))`,"g")}}function I(E,w,h){if(F())return Promise.resolve(E);return Promise.resolve(E).then(x).then(function(T){var U=Promise.resolve(E);return T.forEach(function(y){U=U.then(function(M){return _(M,y,w,h)})}),U});function F(){return!p(E)}}}function C(){return{resolveAll:f,impl:{readAll:p}};function f(){return p().then(function(x){return Promise.all(x.map(function(_){return _.resolve()}))}).then(function(x){return x.join(`
5
- `)})}function p(){return Promise.resolve(t.asArray(document.styleSheets)).then(_).then(x).then(function(E){return E.map(I)});function x(E){return E.filter(function(w){return w.type===CSSRule.FONT_FACE_RULE}).filter(function(w){return r.shouldProcess(w.style.getPropertyValue("src"))})}function _(E){var w=[];return E.forEach(function(h){try{t.asArray(h.cssRules||[]).forEach(w.push.bind(w))}catch(F){console.log("Error while reading CSS rules from "+h.href,F.toString())}}),w}function I(E){return{resolve:function(){var h=(E.parentStyleSheet||{}).href;return r.inlineAll(E.cssText,h)},src:function(){return E.style.getPropertyValue("src")}}}}}function te(){return{inlineAll:p,impl:{newImage:f}};function f(x){return{inline:_};function _(I){return t.isDataUrl(x.src)?Promise.resolve():Promise.resolve(x.src).then(I||t.getAndEncode).then(function(E){return t.dataAsUrl(E,t.mimeType(x.src))}).then(function(E){return new Promise(function(w,h){x.onload=w,x.onerror=h,x.src=E})})}}function p(x){if(!(x instanceof Element))return Promise.resolve(x);return _(x).then(function(){return x instanceof HTMLImageElement?f(x).inline():Promise.all(t.asArray(x.childNodes).map(function(I){return p(I)}))});function _(I){var E=I.style.getPropertyValue("background");return E?r.inlineAll(E).then(function(w){I.style.setProperty("background",w,I.style.getPropertyPriority("background"))}).then(function(){return I}):Promise.resolve(I)}}}})()})(Ct);var Qt=Ct.exports;function $t(n){switch(n){case"./badges/fifteen.svelte":return ke(()=>import("../chunks/fifteen-6ece83ce.js"),["chunks/fifteen-6ece83ce.js","chunks/index-7118b6c4.js"]);case"./badges/fifty.svelte":return ke(()=>import("../chunks/fifty-230cfc24.js"),["chunks/fifty-230cfc24.js","chunks/index-7118b6c4.js"]);case"./badges/five.svelte":return ke(()=>import("../chunks/five-e7ec1bc4.js"),["chunks/five-e7ec1bc4.js","chunks/index-7118b6c4.js"]);case"./badges/ten.svelte":return ke(()=>import("../chunks/ten-7c9c0a66.js"),["chunks/ten-7c9c0a66.js","chunks/index-7118b6c4.js"]);case"./badges/thirtyfive.svelte":return ke(()=>import("../chunks/thirtyfive-d3270980.js"),["chunks/thirtyfive-d3270980.js","chunks/index-7118b6c4.js"]);case"./badges/twenty.svelte":return ke(()=>import("../chunks/twenty-97dd6623.js"),["chunks/twenty-97dd6623.js","chunks/index-7118b6c4.js"]);case"./badges/two.svelte":return ke(()=>import("../chunks/two-09cc56a1.js"),["chunks/two-09cc56a1.js","chunks/index-7118b6c4.js"]);default:return new Promise(function(e,t){(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(t.bind(null,new Error("Unknown variable dynamic import: "+n)))})}}function dt(n,e,t){const r=n.slice();return r[18]=e[t],r[20]=t,r}function mt(n,e,t){const r=n.slice();return r[21]=e[t],r[23]=t,r}function pt(n,e,t){const r=n.slice();return r[24]=e[t],r}function gt(n){let e,t,r,a;var s=n[6];function l(o){return{props:{classNames:"w-full max-w-[180px]"}}}return s&&(t=new s(l())),{c(){e=A("div"),t&&Ae(t.$$.fragment),this.h()},l(o){e=j(o,"DIV",{class:!0});var i=P(e);t&&Xe(t.$$.fragment,i),i.forEach(d),this.h()},h(){u(e,"class","absolute left-0 right-0 top-0 bottom-0 flex place-content-center place-items-center")},m(o,i){le(o,e,i),t&&je(t,e,null),a=!0},p(o,i){if(s!==(s=o[6])){if(t){Ie();const g=t;me(g.$$.fragment,1,0,()=>{Re(g,1)}),De()}s?(t=new s(l()),Ae(t.$$.fragment),ce(t.$$.fragment,1),je(t,e,null)):t=null}},i(o){a||(t&&ce(t.$$.fragment,o),Ke(()=>{r||(r=Pe(e,ht,{duration:500},!0)),r.run(1)}),a=!0)},o(o){t&&me(t.$$.fragment,o),r||(r=Pe(e,ht,{duration:500},!1)),r.run(0),a=!1},d(o){o&&d(e),t&&Re(t),o&&r&&r.end()}}}function vt(n){let e,t,r,a;return{c(){e=A("div"),t=A("img"),a=K(),this.h()},l(s){e=j(s,"DIV",{});var l=P(e);t=j(l,"IMG",{src:!0,alt:!0,class:!0}),a=Z(l),l.forEach(d),this.h()},h(){Ve(t.src,r=n[9]+n[24])||u(t,"src",r),u(t,"alt",""),u(t,"class","aspect-square w-full h-full")},m(s,l){le(s,e,l),c(e,t),c(e,a)},p(s,l){l&2&&!Ve(t.src,r=s[9]+s[24])&&u(t,"src",r)},d(s){s&&d(e)}}}function wt(n){let e,t;return{c(){e=Ue("rect"),this.h()},l(r){e=Be(r,"rect",{fill:!0,x:!0,y:!0,width:!0,height:!0,rx:!0}),P(e).forEach(d),this.h()},h(){u(e,"fill",t=ot[n[21].state]),u(e,"x",n[23]*(we+ve)),u(e,"y",n[20]*(we+ve)),u(e,"width",we),u(e,"height",we),u(e,"rx",n[11])},m(r,a){le(r,e,a)},p(r,a){a&1&&t!==(t=ot[r[21].state])&&u(e,"fill",t)},d(r){r&&d(e)}}}function _t(n){let e,t=n[18],r=[];for(let a=0;a<t.length;a+=1)r[a]=wt(mt(n,t,a));return{c(){for(let a=0;a<r.length;a+=1)r[a].c();e=Oe()},l(a){for(let s=0;s<r.length;s+=1)r[s].l(a);e=Oe()},m(a,s){for(let l=0;l<r.length;l+=1)r[l].m(a,s);le(a,e,s)},p(a,s){if(s&2049){t=a[18];let l;for(l=0;l<t.length;l+=1){const o=mt(a,t,l);r[l]?r[l].p(o,s):(r[l]=wt(o),r[l].c(),r[l].m(e.parentNode,e))}for(;l<r.length;l+=1)r[l].d(1);r.length=t.length}},d(a){be(r,a),a&&d(e)}}}function er(n){let e,t,r,a,s,l,o,i,g,S,D,z,B,V,q,J,se,Q,ae,he,C,te,f=n[5]?"SAVING..":"SAVE SCREENSHOT",p,x,_,I,E,w,h,F,T=n[2]in ze&&gt(n),U=n[1],y=[];for(let v=0;v<U.length;v+=1)y[v]=vt(pt(n,U,v));let M=n[0],R=[];for(let v=0;v<M.length;v+=1)R[v]=_t(dt(n,M,v));return{c(){e=A("div"),t=A("div"),r=A("div"),a=A("div"),s=A("header"),l=A("h1"),o=oe("WORDALLE \u{1F951}"),i=K(),g=A("span"),S=oe("hf.co/wordalle"),D=K(),z=A("h2"),B=oe(n[8]),V=K(),q=A("div"),T&&T.c(),J=K();for(let v=0;v<y.length;v+=1)y[v].c();se=K(),Q=Ue("svg");for(let v=0;v<R.length;v+=1)R[v].c();he=K(),C=A("div"),te=A("button"),p=oe(f),x=K(),_=A("button"),I=oe("NEXT"),this.h()},l(v){e=j(v,"DIV",{class:!0});var X=P(e);t=j(X,"DIV",{class:!0});var b=P(t);r=j(b,"DIV",{class:!0});var $=P(r);a=j($,"DIV",{class:!0});var m=P(a);s=j(m,"HEADER",{class:!0});var N=P(s);l=j(N,"H1",{class:!0});var H=P(l);o=ie(H,"WORDALLE \u{1F951}"),H.forEach(d),i=Z(N),g=j(N,"SPAN",{class:!0});var k=P(g);S=ie(k,"hf.co/wordalle"),k.forEach(d),N.forEach(d),D=Z(m),z=j(m,"H2",{class:!0});var O=P(z);B=ie(O,n[8]),O.forEach(d),V=Z(m),q=j(m,"DIV",{class:!0});var re=P(q);T&&T.l(re),J=Z(re);for(let ue=0;ue<y.length;ue+=1)y[ue].l(re);re.forEach(d),se=Z(m),Q=Be(m,"svg",{class:!0,viewBox:!0,xmlns:!0});var ee=P(Q);for(let ue=0;ue<R.length;ue+=1)R[ue].l(ee);ee.forEach(d),m.forEach(d),$.forEach(d),he=Z(b),C=j(b,"DIV",{class:!0});var fe=P(C);te=j(fe,"BUTTON",{class:!0});var G=P(te);p=ie(G,f),G.forEach(d),x=Z(fe),_=j(fe,"BUTTON",{class:!0});var de=P(_);I=ie(de,"NEXT"),de.forEach(d),fe.forEach(d),b.forEach(d),X.forEach(d),this.h()},h(){u(l,"class","text-xs font-bold uppercase whitespace-nowrap"),u(g,"class","font-light"),u(s,"class","p-3 flex justify-between items-center"),u(z,"class","text-center uppercase tracking-widest font-extrabold"),u(q,"class","grid grid-cols-3 gap-2 p-3 relative"),u(Q,"class","w-full p-3 mx-auto max-h-[30vh]"),u(Q,"viewBox",ae="0 0 "+(n[0][0].length*(ve+we)-ve)+" "+(n[0].length*(ve+we)-ve)),u(Q,"xmlns","http://www.w3.org/2000/svg"),u(a,"class","p-3"),u(r,"class","border-0"),te.disabled=n[5],u(te,"class","min-w-[15ch] flex-1 mr-1 svelte-oufr2e"),u(_,"class","flex-1 ml-1 svelte-oufr2e"),u(C,"class","p-3 px-6 flex text-base"),u(t,"class","message svelte-oufr2e"),u(e,"class","modal relative z-50 svelte-oufr2e")},m(v,X){le(v,e,X),c(e,t),c(t,r),c(r,a),c(a,s),c(s,l),c(l,o),c(s,i),c(s,g),c(g,S),c(a,D),c(a,z),c(z,B),c(a,V),c(a,q),T&&T.m(q,null),c(q,J);for(let b=0;b<y.length;b+=1)y[b].m(q,null);c(a,se),c(a,Q);for(let b=0;b<R.length;b+=1)R[b].m(Q,null);n[13](a),c(t,he),c(t,C),c(C,te),c(te,p),c(C,x),c(C,_),c(_,I),n[16](e),w=!0,h||(F=[xe(te,"click",n[14]),xe(_,"click",n[15])],h=!0)},p(v,[X]){if(v[2]in ze?T?(T.p(v,X),X&4&&ce(T,1)):(T=gt(v),T.c(),ce(T,1),T.m(q,J)):T&&(Ie(),me(T,1,1,()=>{T=null}),De()),X&514){U=v[1];let b;for(b=0;b<U.length;b+=1){const $=pt(v,U,b);y[b]?y[b].p($,X):(y[b]=vt($),y[b].c(),y[b].m(q,null))}for(;b<y.length;b+=1)y[b].d(1);y.length=U.length}if(X&2049){M=v[0];let b;for(b=0;b<M.length;b+=1){const $=dt(v,M,b);R[b]?R[b].p($,X):(R[b]=_t($),R[b].c(),R[b].m(Q,null))}for(;b<R.length;b+=1)R[b].d(1);R.length=M.length}(!w||X&1&&ae!==(ae="0 0 "+(v[0][0].length*(ve+we)-ve)+" "+(v[0].length*(ve+we)-ve)))&&u(Q,"viewBox",ae),(!w||X&32)&&f!==(f=v[5]?"SAVING..":"SAVE SCREENSHOT")&&Le(p,f),(!w||X&32)&&(te.disabled=v[5])},i(v){w||(ce(T),Ke(()=>{E||(E=Pe(e,Fe,{},!0)),E.run(1)}),w=!0)},o(v){me(T),E||(E=Pe(e,Fe,{},!1)),E.run(0),w=!1},d(v){v&&d(e),T&&T.d(),be(y,v),be(R,v),n[13](null),n[16](null),v&&E&&E.end(),h=!1,Rt(F)}}}const we=10,ve=1;function tr(n,e,t){const r=We();let{board:a}=e,{currentRowIndex:s}=e,{imagePaths:l}=e,{totalStreaks:o}=e;const i=Ht[s],g="";let S,D,z=!1;async function B(C){t(5,z=!0);try{const te=await Qt.toBlob(C,{bgcolor:"#000"}),f=document.createElement("a");f.download=`sucess-${Date.now()}.png`,f.target="_self",f.onclick=async p=>{if(t(5,z=!0),f.href){URL.revokeObjectURL(f.href),t(5,z=!1);return}f.href=URL.createObjectURL(te),t(5,z=!1)},f.click(),console.log("Downloding image.")}catch(te){console.log(te.name,te.message)}}const V=C=>{C.key==="Escape"?r("restart"):C.key===" "&&B(D)};let q;Dt(async()=>{if(o in ze){const C=ze[o];t(6,q=(await $t(`./badges/${C}.svelte`)).default)}window.addEventListener("keyup",V,!0)}),Lt(()=>{window.removeEventListener("keyup",V,!0)});const J=we/10;function se(C){Ye[C?"unshift":"push"](()=>{D=C,t(4,D)})}const Q=()=>B(D),ae=()=>r("restart");function he(C){Ye[C?"unshift":"push"](()=>{S=C,t(3,S)})}return n.$$set=C=>{"board"in C&&t(0,a=C.board),"currentRowIndex"in C&&t(12,s=C.currentRowIndex),"imagePaths"in C&&t(1,l=C.imagePaths),"totalStreaks"in C&&t(2,o=C.totalStreaks)},[a,l,o,S,D,z,q,r,i,g,B,J,s,se,Q,ae,he]}class rr extends Me{constructor(e){super(),He(this,e,tr,er,qe,{board:0,currentRowIndex:12,imagePaths:1,totalStreaks:2})}}function bt(n){let e,t,r,a,s;return{c(){e=A("div"),t=A("button"),r=oe("Try Again"),this.h()},l(l){e=j(l,"DIV",{class:!0});var o=P(e);t=j(o,"BUTTON",{class:!0});var i=P(t);r=ie(i,"Try Again"),i.forEach(d),o.forEach(d),this.h()},h(){u(t,"class","hover:no-underline underline underline-offset-2 hover:scale-105 transition-all duration-200 ease-in-out"),u(e,"class","font-light flex-1 text-xs sm:text-base text-center")},m(l,o){le(l,e,o),c(e,t),c(t,r),a||(s=xe(t,"click",n[3]),a=!0)},p:Te,d(l){l&&d(e),a=!1,s()}}}function nr(n){let e,t,r,a,s,l=n[0]===ge.FAIL&&bt(n);return{c(){e=A("div"),t=oe(n[1]),r=K(),l&&l.c(),this.h()},l(o){e=j(o,"DIV",{class:!0});var i=P(e);t=ie(i,n[1]),r=Z(i),l&&l.l(i),i.forEach(d),this.h()},h(){u(e,"class","message svelte-1sv0qpd")},m(o,i){le(o,e,i),c(e,t),c(e,r),l&&l.m(e,null),s=!0},p(o,[i]){(!s||i&2)&&Le(t,o[1]),o[0]===ge.FAIL?l?l.p(o,i):(l=bt(o),l.c(),l.m(e,null)):l&&(l.d(1),l=null)},i(o){s||(Ke(()=>{a||(a=Pe(e,Fe,{},!0)),a.run(1)}),s=!0)},o(o){a||(a=Pe(e,Fe,{},!1)),a.run(0),s=!1},d(o){o&&d(e),l&&l.d(),o&&a&&a.end()}}}function ar(n,e,t){const r=We();let{gameState:a}=e,{message:s=null}=e;const l=()=>r("restart");return n.$$set=o=>{"gameState"in o&&t(0,a=o.gameState),"message"in o&&t(1,s=o.message)},[a,s,r,l]}class sr extends Me{constructor(e){super(),He(this,e,ar,nr,qe,{gameState:0,message:1})}}function yt(n,e,t){const r=n.slice();return r[27]=e[t],r[29]=t,r}function kt(n,e,t){const r=n.slice();return r[30]=e[t],r[29]=t,r}function Et(n,e,t){const r=n.slice();return r[32]=e[t],r}function xt(n){let e,t,r,a,s,l,o,i,g,S,D,z,B,V,q,J,se,Q,ae,he,C,te,f,p,x,_,I,E,w,h,F,T,U,y,M,R,v,X,b,$,m,N,H,k=n[7]&&Pt(n),O=n[9]===ge.SUCESS&&St(n),re=n[2],ee=[];for(let L=0;L<re.length;L+=1)ee[L]=Tt(Et(n,re,L));let fe=n[5],G=[];for(let L=0;L<fe.length;L+=1)G[L]=jt(yt(n,fe,L));function de(L){n[14](L)}let ue={};return n[4]!==void 0&&(ue.letterStates=n[4]),f=new Zt({props:ue}),Ye.push(()=>zt(f,"letterStates",de)),f.$on("keyup",n[15]),{c(){e=A("div"),k&&k.c(),t=K(),O&&O.c(),r=K(),a=A("header"),s=A("span"),l=oe("Guess the prompt!"),o=K(),i=A("span"),g=K(),S=A("h1"),D=oe("\u{1F951} WORDALLE \u{1F951}"),z=K(),B=A("span"),V=K(),q=A("span"),J=A("button"),se=oe("Skip to next"),Q=K(),ae=A("div");for(let L=0;L<ee.length;L+=1)ee[L].c();he=K(),C=A("div");for(let L=0;L<G.length;L+=1)G[L].c();te=K(),Ae(f.$$.fragment),x=K(),_=A("footer"),I=A("details"),E=A("summary"),w=A("span"),h=oe("Disclaimer"),F=K(),T=A("p"),U=oe(`This demo collects the guesses to help with a research project. The demo stores no
6
- personal data, such as your IP address, email, or account, only your guesses.`),y=K(),M=A("label"),R=A("input"),v=K(),X=A("span"),b=oe("Please uncheck to disable sharing "),$=oe(n[0]),this.h()},l(L){e=j(L,"DIV",{class:!0});var Y=P(e);k&&k.l(Y),t=Z(Y),O&&O.l(Y),r=Z(Y),a=j(Y,"HEADER",{class:!0});var ne=P(a);s=j(ne,"SPAN",{class:!0});var W=P(s);l=ie(W,"Guess the prompt!"),W.forEach(d),o=Z(ne),i=j(ne,"SPAN",{class:!0}),P(i).forEach(d),g=Z(ne),S=j(ne,"H1",{class:!0});var _e=P(S);D=ie(_e,"\u{1F951} WORDALLE \u{1F951}"),_e.forEach(d),z=Z(ne),B=j(ne,"SPAN",{class:!0}),P(B).forEach(d),V=Z(ne),q=j(ne,"SPAN",{class:!0});var Ze=P(q);J=j(Ze,"BUTTON",{tabindex:!0,class:!0});var Je=P(J);se=ie(Je,"Skip to next"),Je.forEach(d),Ze.forEach(d),ne.forEach(d),Q=Z(Y),ae=j(Y,"DIV",{class:!0});var Qe=P(ae);for(let ye=0;ye<ee.length;ye+=1)ee[ye].l(Qe);Qe.forEach(d),he=Z(Y),C=j(Y,"DIV",{class:!0});var $e=P(C);for(let ye=0;ye<G.length;ye+=1)G[ye].l($e);$e.forEach(d),te=Z(Y),Xe(f.$$.fragment,Y),x=Z(Y),_=j(Y,"FOOTER",{class:!0});var et=P(_);I=j(et,"DETAILS",{class:!0});var Ee=P(I);E=j(Ee,"SUMMARY",{class:!0});var tt=P(E);w=j(tt,"SPAN",{});var rt=P(w);h=ie(rt,"Disclaimer"),rt.forEach(d),tt.forEach(d),F=Z(Ee),T=j(Ee,"P",{});var nt=P(T);U=ie(nt,`This demo collects the guesses to help with a research project. The demo stores no
7
- personal data, such as your IP address, email, or account, only your guesses.`),nt.forEach(d),y=Z(Ee),M=j(Ee,"LABEL",{class:!0});var Ce=P(M);R=j(Ce,"INPUT",{type:!0}),v=Z(Ce),X=j(Ce,"SPAN",{class:!0});var Ge=P(X);b=ie(Ge,"Please uncheck to disable sharing "),$=ie(Ge,n[0]),Ge.forEach(d),Ce.forEach(d),Ee.forEach(d),et.forEach(d),Y.forEach(d),this.h()},h(){u(s,"class","font-light flex-1 text-xs sm:text-base"),u(i,"class","sm:block hidden mx-3 flex-1 border-[0.5px] border-opacity-50 border-gray-400"),u(S,"class","text-xl font-bold text-center whitespace-nowrap"),u(B,"class","sm:block hidden mx-3 flex-1 border-[0.5px] border-opacity-50 border-gray-400"),u(J,"tabindex","-1"),u(J,"class","hover:no-underline underline underline-offset-2 hover:scale-105 transition-all duration-200 ease-in-out"),u(q,"class","font-light flex-1 text-xs sm:text-base"),u(a,"class","flex justify-between items-center uppercase sm:px-2 text-center"),u(ae,"class","grid grid-cols-3 gap-2 max-w-md mx-auto p-3"),u(C,"class","board svelte-1y5wh9j"),u(E,"class","my-1"),u(R,"type","checkbox"),u(X,"class","mx-1"),u(M,"class","py-3 flex"),u(I,"class","text-xs cursor-pointer"),u(_,"class","max-w-md mx-auto p-3"),u(e,"class","max-w-screen-lg mx-auto px-1 relative z-0 mt-3")},m(L,Y){le(L,e,Y),k&&k.m(e,null),c(e,t),O&&O.m(e,null),c(e,r),c(e,a),c(a,s),c(s,l),c(a,o),c(a,i),c(a,g),c(a,S),c(S,D),c(a,z),c(a,B),c(a,V),c(a,q),c(q,J),c(J,se),c(e,Q),c(e,ae);for(let ne=0;ne<ee.length;ne+=1)ee[ne].m(ae,null);c(e,he),c(e,C);for(let ne=0;ne<G.length;ne+=1)G[ne].m(C,null);c(e,te),je(f,e,null),c(e,x),c(e,_),c(_,I),c(I,E),c(E,w),c(w,h),c(I,F),c(I,T),c(T,U),c(I,y),c(I,M),c(M,R),R.checked=n[0],c(M,v),c(M,X),c(X,b),c(X,$),m=!0,N||(H=[xe(J,"click",n[13]),xe(R,"change",n[16])],N=!0)},p(L,Y){if(L[7]?k?(k.p(L,Y),Y[0]&128&&ce(k,1)):(k=Pt(L),k.c(),ce(k,1),k.m(e,t)):k&&(Ie(),me(k,1,1,()=>{k=null}),De()),L[9]===ge.SUCESS?O?(O.p(L,Y),Y[0]&512&&ce(O,1)):(O=St(L),O.c(),ce(O,1),O.m(e,r)):O&&(Ie(),me(O,1,1,()=>{O=null}),De()),Y[0]&1028){re=L[2];let W;for(W=0;W<re.length;W+=1){const _e=Et(L,re,W);ee[W]?ee[W].p(_e,Y):(ee[W]=Tt(_e),ee[W].c(),ee[W].m(ae,null))}for(;W<ee.length;W+=1)ee[W].d(1);ee.length=re.length}if(Y[0]&872){fe=L[5];let W;for(W=0;W<fe.length;W+=1){const _e=yt(L,fe,W);G[W]?G[W].p(_e,Y):(G[W]=jt(_e),G[W].c(),G[W].m(C,null))}for(;W<G.length;W+=1)G[W].d(1);G.length=fe.length}const ne={};!p&&Y[0]&16&&(p=!0,ne.letterStates=L[4],Ot(()=>p=!1)),f.$set(ne),Y[0]&1&&(R.checked=L[0]),(!m||Y[0]&1)&&Le($,L[0])},i(L){m||(ce(k),ce(O),ce(f.$$.fragment,L),m=!0)},o(L){me(k),me(O),me(f.$$.fragment,L),m=!1},d(L){L&&d(e),k&&k.d(),O&&O.d(),be(ee,L),be(G,L),Re(f),N=!1,Rt(H)}}}function Pt(n){let e,t;return e=new sr({props:{message:n[7],gameState:n[9]}}),e.$on("restart",n[11]),{c(){Ae(e.$$.fragment)},l(r){Xe(e.$$.fragment,r)},m(r,a){je(e,r,a),t=!0},p(r,a){const s={};a[0]&128&&(s.message=r[7]),a[0]&512&&(s.gameState=r[9]),e.$set(s)},i(r){t||(ce(e.$$.fragment,r),t=!0)},o(r){me(e.$$.fragment,r),t=!1},d(r){Re(e,r)}}}function St(n){let e,t;return e=new rr({props:{board:n[5],currentRowIndex:n[6],imagePaths:n[2],totalStreaks:n[1].length}}),e.$on("restart",n[11]),{c(){Ae(e.$$.fragment)},l(r){Xe(e.$$.fragment,r)},m(r,a){je(e,r,a),t=!0},p(r,a){const s={};a[0]&32&&(s.board=r[5]),a[0]&64&&(s.currentRowIndex=r[6]),a[0]&4&&(s.imagePaths=r[2]),a[0]&2&&(s.totalStreaks=r[1].length),e.$set(s)},i(r){t||(ce(e.$$.fragment,r),t=!0)},o(r){me(e.$$.fragment,r),t=!1},d(r){Re(e,r)}}}function Tt(n){let e,t,r,a;return{c(){e=A("div"),t=A("img"),a=K(),this.h()},l(s){e=j(s,"DIV",{});var l=P(e);t=j(l,"IMG",{src:!0,alt:!0,class:!0}),a=Z(l),l.forEach(d),this.h()},h(){Ve(t.src,r=n[10]+n[32])||u(t,"src",r),u(t,"alt",""),u(t,"class","aspect-square w-full h-full")},m(s,l){le(s,e,l),c(e,t),c(e,a)},p(s,l){l[0]&4&&!Ve(t.src,r=s[10]+s[32])&&u(t,"src",r)},d(s){s&&d(e)}}}function At(n){let e,t,r,a=n[30].letter+"",s,l,o,i,g=n[30].letter+"",S,D,z;return{c(){e=A("div"),t=A("div"),r=A("span"),s=oe(a),o=K(),i=A("div"),S=oe(g),this.h()},l(B){e=j(B,"DIV",{class:!0});var V=P(e);t=j(V,"DIV",{class:!0,style:!0});var q=P(t);r=j(q,"SPAN",{class:!0});var J=P(r);s=ie(J,a),J.forEach(d),q.forEach(d),o=Z(V),i=j(V,"DIV",{class:!0,style:!0});var se=P(i);S=ie(se,g),se.forEach(d),V.forEach(d),this.h()},h(){u(r,"class","letter svelte-1y5wh9j"),u(t,"class",l="front z-0 "+(n[30].correct===" "?"space":"")+" svelte-1y5wh9j"),Se(t,"transition-delay",n[29]*n[3]+"ms"),u(i,"class",D="back z-0 "+n[30].state+" svelte-1y5wh9j"),Se(i,"transition-delay",n[29]*n[3]+"ms"),Se(i,"animation-delay",n[29]*100+"ms"),u(e,"class",z="tile "+(n[30].letter&&"filled")+" "+(n[30].state&&"revealed")+" svelte-1y5wh9j")},m(B,V){le(B,e,V),c(e,t),c(t,r),c(r,s),c(e,o),c(e,i),c(i,S)},p(B,V){V[0]&32&&a!==(a=B[30].letter+"")&&Le(s,a),V[0]&32&&l!==(l="front z-0 "+(B[30].correct===" "?"space":"")+" svelte-1y5wh9j")&&u(t,"class",l),V[0]&8&&Se(t,"transition-delay",B[29]*B[3]+"ms"),V[0]&32&&g!==(g=B[30].letter+"")&&Le(S,g),V[0]&32&&D!==(D="back z-0 "+B[30].state+" svelte-1y5wh9j")&&u(i,"class",D),V[0]&8&&Se(i,"transition-delay",B[29]*B[3]+"ms"),V[0]&32&&z!==(z="tile "+(B[30].letter&&"filled")+" "+(B[30].state&&"revealed")+" svelte-1y5wh9j")&&u(e,"class",z)},d(B){B&&d(e)}}}function jt(n){let e,t,r,a=n[27],s=[];for(let l=0;l<a.length;l+=1)s[l]=At(kt(n,a,l));return{c(){e=A("div");for(let l=0;l<s.length;l+=1)s[l].c();t=K(),this.h()},l(l){e=j(l,"DIV",{class:!0});var o=P(e);for(let i=0;i<s.length;i+=1)s[i].l(o);t=Z(o),o.forEach(d),this.h()},h(){u(e,"class",r="row "+(n[8]===n[29]&&"shake")+" "+(n[9]==ge.SUCESS&&n[6]===n[29]&&"jump")+" svelte-1y5wh9j")},m(l,o){le(l,e,o);for(let i=0;i<s.length;i+=1)s[i].m(e,null);c(e,t)},p(l,o){if(o[0]&40){a=l[27];let i;for(i=0;i<a.length;i+=1){const g=kt(l,a,i);s[i]?s[i].p(g,o):(s[i]=At(g),s[i].c(),s[i].m(e,t))}for(;i<s.length;i+=1)s[i].d(1);s.length=a.length}o[0]&832&&r!==(r="row "+(l[8]===l[29]&&"shake")+" "+(l[9]==ge.SUCESS&&l[6]===l[29]&&"jump")+" svelte-1y5wh9j")&&u(e,"class",r)},d(l){l&&d(e),be(s,l)}}}function lr(n){let e,t,r=n[5]!==void 0&&xt(n);return{c(){r&&r.c(),e=Oe()},l(a){r&&r.l(a),e=Oe()},m(a,s){r&&r.m(a,s),le(a,e,s),t=!0},p(a,s){a[5]!==void 0?r?(r.p(a,s),s[0]&32&&ce(r,1)):(r=xt(a),r.c(),ce(r,1),r.m(e.parentNode,e)):r&&(Ie(),me(r,1,1,()=>{r=null}),De())},i(a){t||(ce(r),t=!0)},o(a){me(r),t=!1},d(a){r&&r.d(a),a&&d(e)}}}const Ne=1e3;function It(){document.body.style.setProperty("--vh",window.innerHeight+"px")}function or(n,e,t){const r="";let a=!0,s,l=[],o;Dt(async()=>{It(),s=await fetch(r+"data").then(h=>h.json()),ae(),window.addEventListener("keyup",he,!0),window.addEventListener("resize",It),window.focus(),document.body.addEventListener("click",()=>window.focus(),!1)}),Lt(()=>{window.removeEventListener("keyup",he,!0)});let i,g,S,D,z={},B,V=0,q="",J=-1,se=ge.PLAYING,Q=!0;function ae(){t(9,se=ge.PLAYING),t(8,J=-1),t(7,q=""),t(6,V=0),t(4,z={}),Q=!0;const h=Object.keys(s),F=l.map(R=>R.idx),T=h.filter((R,v)=>!F.includes(v)),U=~~(Math.random()*T.length),y=T[U];o=h.indexOf(y),i=y.replace(/_/g," "),t(2,g=s[y].slice(0,6));const M=[...i].map(R=>Math.random()>.5?"*":R).join("");console.log("%cCLUE: ","color: red;font-weight:bold",M),S=y.length,t(3,D=Ne/S),t(5,B=Array.from({length:7},()=>Array.from(i).map(R=>({letter:"",correct:R,state:pe.INITIAL})))),document.body.style.setProperty("--cols",`${S}`)}const he=h=>{C(h.key)};function C(h){!Q||(/^[a-zA-Z]$/.test(h)?t(5,B=Mt(B,V,h.toLowerCase())):h==="Backspace"?t(5,B=Ft(B,V)):h==="Enter"&&te())}function te(){const h=[...B],F=h[V],T=lt({},z);if(F.every(U=>U.letter)){F.map(y=>y.letter).join(""),a&&x(F);const U=i.split("");F.forEach((y,M)=>{U[M]===y.letter&&(y.state=T[y.letter]=pe.CORRECT,U[M]=null)}),F.forEach(y=>{!y.state&&U.includes(y.letter)&&(y.state=pe.PRESENT,U[U.indexOf(y.letter)]=null,T[y.letter]||(T[y.letter]=pe.PRESENT))}),F.forEach(y=>{y.state||(y.state=pe.ABSENT,T[y.letter]||(T[y.letter]=pe.ABSENT))}),Q=!1,F.every(y=>y.state===pe.CORRECT)?(t(1,l=[...l,{prompt:i,idx:o}]),setTimeout(()=>{t(9,se=ge.SUCESS)},Ne)):V<B.length-1?(t(6,V++,V),setTimeout(()=>{Q=!0},Ne)):(t(9,se=ge.FAIL),setTimeout(()=>{f(i.toUpperCase(),-1)},Ne))}else p(),f("Not enough letters");t(5,B=h),t(4,z=T)}function f(h,F=1e3){t(7,q=h),F>0&&setTimeout(()=>{t(7,q="")},F)}function p(){t(8,J=V),setTimeout(()=>{t(8,J=-1)},1e3)}async function x(h){const F=h.map(U=>U.letter).join(""),T=h.map(U=>U.correct).join("");fetch(r+"prompt",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({guess:F,correct:T})})}const _=h=>{ae(),h.currentTarget.blur()};function I(h){z=h,t(4,z)}const E=({detail:h})=>C(h);function w(){a=this.checked,t(0,a)}return[a,l,g,D,z,B,V,q,J,se,r,ae,C,_,I,E,w]}class fr extends Me{constructor(e){super(),He(this,e,or,lr,qe,{},null,[-1,-1])}}export{fr as default};
 
 
 
 
 
 
 
 
static/_app/immutable/pages/index.svelte-cba9b380.js ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ var kr=Object.defineProperty;var Yt=Object.getOwnPropertySymbols;var xr=Object.prototype.hasOwnProperty,Pr=Object.prototype.propertyIsEnumerable;var Wt=(n,e,t)=>e in n?kr(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,Gt=(n,e)=>{for(var t in e||(e={}))xr.call(e,t)&&Wt(n,t,e[t]);if(Yt)for(var t of Yt(e))Pr.call(e,t)&&Wt(n,t,e[t]);return n};import{S as ct,i as ut,s as ft,e as g,k as z,c as v,a as _,m as F,d as f,b as u,g as ce,J as i,K as Ve,L as Ae,n as Ge,M as xt,t as K,h as Z,N as at,O as st,P as Sr,x as qe,y as ht,z as Xe,o as Ke,p as we,C as Ze,q as Je,r as fe,Q as Pt,R as Oe,T as ze,l as lt,j as Qe,U as wr,w as _r,V as br,W as kt,f as We,X as Ar,Y as Tr}from"../chunks/index-7118b6c4.js";import{_ as Re,b as qt}from"../chunks/preload-helper-fca94356.js";var be=(n=>(n.INITIAL="",n.CORRECT="correct",n.PRESENT="present",n.ABSENT="absent",n))(be||{}),ye=(n=>(n[n.PLAYING=0]="PLAYING",n[n.SUCESS=1]="SUCESS",n[n.FAIL=2]="FAIL",n))(ye||{});function Ir(n,e){const t=[...n],r=t[e];for(const a of[...r].reverse())if(a.letter){a.letter="";break}return t}function jr(n,e,t){const r=[...n],a=r[e];for(const s of a)if(s.correct===" "&&(s.letter=" "),!s.letter){s.letter=t;break}return r}const Xt={[be.CORRECT]:"#00b81a",[be.PRESENT]:"#ffc80a",[be.ABSENT]:"#d9d9d9",[be.INITIAL]:"#5d5d5d"},ot={2:"two",5:"five",10:"ten",15:"fifteen",20:"twenty",35:"thirtyfive",50:"fifty"},Rr=["\u{1F917} Hugging \u{1F917}","\u{1F9DE} Genius \u{1F9DE}","\u{1F929} Magnificent \u{1F929}","\u{1F632} Impressive \u{1F632}","\u{1F9DA} Splendid \u{1F9DA}","\u2733 Great \u2733","\u{1F361} Phew \u{1F361}"];function Kt(n,e,t){const r=n.slice();return r[4]=e[t],r[6]=t,r}function Zt(n,e,t){const r=n.slice();return r[7]=e[t],r}function Dr(n){let e;return{c(){e=g("div"),this.h()},l(t){e=v(t,"DIV",{class:!0}),_(e).forEach(f),this.h()},h(){u(e,"class","spacer svelte-2ngxdh")},m(t,r){ce(t,e,r)},d(t){t&&f(e)}}}function Lr(n){let e,t=n[7]+"",r;return{c(){e=g("span"),r=K(t)},l(a){e=v(a,"SPAN",{});var s=_(e);r=Z(s,t),s.forEach(f)},m(a,s){ce(a,e,s),i(e,r)},p:Ge,d(a){a&&f(e)}}}function Cr(n){let e,t;return{c(){e=at("svg"),t=at("path"),this.h()},l(r){e=st(r,"svg",{xmlns:!0,height:!0,viewBox:!0,width:!0});var a=_(e);t=st(a,"path",{fill:!0,d:!0}),_(t).forEach(f),a.forEach(f),this.h()},h(){u(t,"fill","currentColor"),u(t,"d","M22 3H7c-.69 0-1.23.35-1.59.88L0 12l5.41 8.11c.36.53.9.89 1.59.89h15c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H7.07L2.4 12l4.66-7H22v14zm-11.59-2L14 13.41 17.59 17 19 15.59 15.41 12 19 8.41 17.59 7 14 10.59 10.41 7 9 8.41 12.59 12 9 15.59z"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"height","24"),u(e,"viewBox","0 0 24 24"),u(e,"width","24")},m(r,a){ce(r,e,a),i(e,t)},p:Ge,d(r){r&&f(e)}}}function Jt(n){let e,t,r,a;function s(w,I){return w[7]==="Backspace"?Cr:Lr}let o=s(n)(n);function c(){return n[3](n[7])}return{c(){e=g("button"),o.c(),this.h()},l(w){e=v(w,"BUTTON",{class:!0});var I=_(e);o.l(I),I.forEach(f),this.h()},h(){u(e,"class",t=(n[0][n[7]]===void 0?"":n[0][n[7]])+" "+(n[7].length>1&&"big")+" svelte-2ngxdh")},m(w,I){ce(w,e,I),o.m(e,null),r||(a=Ve(e,"click",c),r=!0)},p(w,I){n=w,o.p(n,I),I&1&&t!==(t=(n[0][n[7]]===void 0?"":n[0][n[7]])+" "+(n[7].length>1&&"big")+" svelte-2ngxdh")&&u(e,"class",t)},d(w){w&&f(e),o.d(),r=!1,a()}}}function Nr(n){let e;return{c(){e=g("div"),this.h()},l(t){e=v(t,"DIV",{class:!0}),_(e).forEach(f),this.h()},h(){u(e,"class","spacer svelte-2ngxdh")},m(t,r){ce(t,e,r)},d(t){t&&f(e)}}}function Qt(n){let e,t,r,a,s=n[6]===1&&Dr(),l=n[4],o=[];for(let w=0;w<l.length;w+=1)o[w]=Jt(Zt(n,l,w));let c=n[6]===1&&Nr();return{c(){e=g("div"),s&&s.c(),t=z();for(let w=0;w<o.length;w+=1)o[w].c();r=z(),c&&c.c(),a=z(),this.h()},l(w){e=v(w,"DIV",{class:!0});var I=_(e);s&&s.l(I),t=F(I);for(let j=0;j<o.length;j+=1)o[j].l(I);r=F(I),c&&c.l(I),a=F(I),I.forEach(f),this.h()},h(){u(e,"class","row svelte-2ngxdh")},m(w,I){ce(w,e,I),s&&s.m(e,null),i(e,t);for(let j=0;j<o.length;j+=1)o[j].m(e,null);i(e,r),c&&c.m(e,null),i(e,a)},p(w,I){if(I&7){l=w[4];let j;for(j=0;j<l.length;j+=1){const O=Zt(w,l,j);o[j]?o[j].p(O,I):(o[j]=Jt(O),o[j].c(),o[j].m(e,r))}for(;j<o.length;j+=1)o[j].d(1);o.length=l.length}},d(w){w&&f(e),s&&s.d(),Ae(o,w),c&&c.d()}}}function Ur(n){let e,t=n[2],r=[];for(let a=0;a<t.length;a+=1)r[a]=Qt(Kt(n,t,a));return{c(){e=g("div");for(let a=0;a<r.length;a+=1)r[a].c();this.h()},l(a){e=v(a,"DIV",{class:!0});var s=_(e);for(let l=0;l<r.length;l+=1)r[l].l(s);s.forEach(f),this.h()},h(){u(e,"class","my-3 mx-auto select-none max-w-md")},m(a,s){ce(a,e,s);for(let l=0;l<r.length;l+=1)r[l].m(e,null)},p(a,[s]){if(s&7){t=a[2];let l;for(l=0;l<t.length;l+=1){const o=Kt(a,t,l);r[l]?r[l].p(o,s):(r[l]=Qt(o),r[l].c(),r[l].m(e,null))}for(;l<r.length;l+=1)r[l].d(1);r.length=t.length}},i:Ge,o:Ge,d(a){a&&f(e),Ae(r,a)}}}function Br(n,e,t){let{letterStates:r}=e;const a=xt(),s=["qwertyuiop".split(""),[..."asdfghjkl".split("")],["Enter",..."zxcvbnm".split(""),"Backspace"]],l=o=>a("keyup",o);return n.$$set=o=>{"letterStates"in o&&t(0,r=o.letterStates)},[r,a,s,l]}class Vr extends ct{constructor(e){super(),ut(this,e,Br,Ur,ft,{letterStates:0})}}function Or(n){const e=n-1;return e*e*e+1}function it(n,{delay:e=0,duration:t=400,easing:r=Sr}={}){const a=+getComputedStyle(n).opacity;return{delay:e,duration:t,easing:r,css:s=>`opacity: ${s*a}`}}function $t(n,{delay:e=0,duration:t=400,easing:r=Or,start:a=0,opacity:s=0}={}){const l=getComputedStyle(n),o=+l.opacity,c=l.transform==="none"?"":l.transform,w=1-a,I=o*(1-s);return{delay:e,duration:t,easing:r,css:(j,O)=>`
2
+ transform: ${c} scale(${1-w*O});
3
+ opacity: ${o-I*O}
4
+ `}}var yr={exports:{}};(function(n){(function(e){var t=ae(),r=pe(),a=D(),s=$(),l={imagePlaceholder:void 0,cacheBust:!1},o={toSvg:c,toPng:I,toJpeg:j,toBlob:O,toPixelData:w,impl:{fontFaces:a,images:s,util:t,inliner:r,options:{}}};n.exports=o;function c(h,p){return p=p||{},U(p),Promise.resolve(h).then(function(y){return Y(y,p.filter,!0)}).then(J).then(oe).then(A).then(function(y){return Q(y,p.width||t.width(h),p.height||t.height(h))});function A(y){return p.bgcolor&&(y.style.backgroundColor=p.bgcolor),p.width&&(y.style.width=p.width+"px"),p.height&&(y.style.height=p.height+"px"),p.style&&Object.keys(p.style).forEach(function(x){y.style[x]=p.style[x]}),y}}function w(h,p){return B(h,p||{}).then(function(A){return A.getContext("2d").getImageData(0,0,t.width(h),t.height(h)).data})}function I(h,p){return B(h,p||{}).then(function(A){return A.toDataURL()})}function j(h,p){return p=p||{},B(h,p).then(function(A){return A.toDataURL("image/jpeg",p.quality||1)})}function O(h,p){return B(h,p||{}).then(t.canvasToBlob)}function U(h){typeof h.imagePlaceholder=="undefined"?o.impl.options.imagePlaceholder=l.imagePlaceholder:o.impl.options.imagePlaceholder=h.imagePlaceholder,typeof h.cacheBust=="undefined"?o.impl.options.cacheBust=l.cacheBust:o.impl.options.cacheBust=h.cacheBust}function B(h,p){return c(h,p).then(t.makeImage).then(t.delay(100)).then(function(y){var x=A(h);return x.getContext("2d").drawImage(y,0,0),x});function A(y){var x=document.createElement("canvas");if(x.width=p.width||t.width(y),x.height=p.height||t.height(y),p.bgcolor){var S=x.getContext("2d");S.fillStyle=p.bgcolor,S.fillRect(0,0,x.width,x.height)}return x}}function Y(h,p,A){if(!A&&p&&!p(h))return Promise.resolve();return Promise.resolve(h).then(y).then(function(k){return x(h,k,p)}).then(function(k){return S(h,k)});function y(k){return k instanceof HTMLCanvasElement?t.makeImage(k.toDataURL()):k.cloneNode(!1)}function x(k,d,M){var T=k.childNodes;if(T.length===0)return Promise.resolve(d);return C(d,t.asArray(T),M).then(function(){return d});function C(E,G,N){var b=Promise.resolve();return G.forEach(function(W){b=b.then(function(){return Y(W,N)}).then(function(P){P&&E.appendChild(P)})}),b}}function S(k,d){if(!(d instanceof Element))return d;return Promise.resolve().then(M).then(T).then(C).then(E).then(function(){return d});function M(){G(window.getComputedStyle(k),d.style);function G(N,b){N.cssText?b.cssText=N.cssText:W(N,b);function W(P,ee){t.asArray(P).forEach(function(m){ee.setProperty(m,P.getPropertyValue(m),P.getPropertyPriority(m))})}}}function T(){[":before",":after"].forEach(function(N){G(N)});function G(N){var b=window.getComputedStyle(k,N),W=b.getPropertyValue("content");if(W===""||W==="none")return;var P=t.uid();d.className=d.className+" "+P;var ee=document.createElement("style");ee.appendChild(m(P,N,b)),d.appendChild(ee);function m(L,H,V){var re="."+L+":"+H,ie=V.cssText?ve(V):_e(V);return document.createTextNode(re+"{"+ie+"}");function ve(he){var te=he.getPropertyValue("content");return he.cssText+" content: "+te+";"}function _e(he){return t.asArray(he).map(te).join("; ")+";";function te(ue){return ue+": "+he.getPropertyValue(ue)+(he.getPropertyPriority(ue)?" !important":"")}}}}}function C(){k instanceof HTMLTextAreaElement&&(d.innerHTML=k.value),k instanceof HTMLInputElement&&d.setAttribute("value",k.value)}function E(){d instanceof SVGElement&&(d.setAttribute("xmlns","http://www.w3.org/2000/svg"),d instanceof SVGRectElement&&["width","height"].forEach(function(G){var N=d.getAttribute(G);!N||d.style.setProperty(G,N)}))}}}function J(h){return a.resolveAll().then(function(p){var A=document.createElement("style");return h.appendChild(A),A.appendChild(document.createTextNode(p)),h})}function oe(h){return s.inlineAll(h).then(function(){return h})}function Q(h,p,A){return Promise.resolve(h).then(function(y){return y.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),new XMLSerializer().serializeToString(y)}).then(t.escapeXhtml).then(function(y){return'<foreignObject x="0" y="0" width="100%" height="100%">'+y+"</foreignObject>"}).then(function(y){return'<svg xmlns="http://www.w3.org/2000/svg" width="'+p+'" height="'+A+'">'+y+"</svg>"}).then(function(y){return"data:image/svg+xml;charset=utf-8,"+y})}function ae(){return{escape:E,parseExtension:p,mimeType:A,dataAsUrl:C,isDataUrl:y,canvasToBlob:S,resolveUrl:k,getAndEncode:T,uid:d(),delay:G,asArray:N,escapeXhtml:b,makeImage:M,width:W,height:P};function h(){var m="application/font-woff",L="image/jpeg";return{woff:m,woff2:m,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:L,jpeg:L,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml"}}function p(m){var L=/\.([^\.\/]*?)$/g.exec(m);return L?L[1]:""}function A(m){var L=p(m).toLowerCase();return h()[L]||""}function y(m){return m.search(/^(data:)/)!==-1}function x(m){return new Promise(function(L){for(var H=window.atob(m.toDataURL().split(",")[1]),V=H.length,re=new Uint8Array(V),ie=0;ie<V;ie++)re[ie]=H.charCodeAt(ie);L(new Blob([re],{type:"image/png"}))})}function S(m){return m.toBlob?new Promise(function(L){m.toBlob(L)}):x(m)}function k(m,L){var H=document.implementation.createHTMLDocument(),V=H.createElement("base");H.head.appendChild(V);var re=H.createElement("a");return H.body.appendChild(re),V.href=L,re.href=m,re.href}function d(){var m=0;return function(){return"u"+L()+m++;function L(){return("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4)}}}function M(m){return new Promise(function(L,H){var V=new Image;V.onload=function(){L(V)},V.onerror=H,V.src=m})}function T(m){var L=3e4;return o.impl.options.cacheBust&&(m+=(/\?/.test(m)?"&":"?")+new Date().getTime()),new Promise(function(H){var V=new XMLHttpRequest;V.onreadystatechange=ve,V.ontimeout=_e,V.responseType="blob",V.timeout=L,V.open("GET",m,!0),V.send();var re;if(o.impl.options.imagePlaceholder){var ie=o.impl.options.imagePlaceholder.split(/,/);ie&&ie[1]&&(re=ie[1])}function ve(){if(V.readyState===4){if(V.status!==200){re?H(re):he("cannot fetch resource: "+m+", status: "+V.status);return}var te=new FileReader;te.onloadend=function(){var ue=te.result.split(/,/)[1];H(ue)},te.readAsDataURL(V.response)}}function _e(){re?H(re):he("timeout of "+L+"ms occured while fetching resource: "+m)}function he(te){console.error(te),H("")}})}function C(m,L){return"data:"+L+";base64,"+m}function E(m){return m.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1")}function G(m){return function(L){return new Promise(function(H){setTimeout(function(){H(L)},m)})}}function N(m){for(var L=[],H=m.length,V=0;V<H;V++)L.push(m[V]);return L}function b(m){return m.replace(/#/g,"%23").replace(/\n/g,"%0A")}function W(m){var L=ee(m,"border-left-width"),H=ee(m,"border-right-width");return m.scrollWidth+L+H}function P(m){var L=ee(m,"border-top-width"),H=ee(m,"border-bottom-width");return m.scrollHeight+L+H}function ee(m,L){var H=window.getComputedStyle(m).getPropertyValue(L);return parseFloat(H.replace("px",""))}}function pe(){var h=/url\(['"]?([^'"]+?)['"]?\)/g;return{inlineAll:x,shouldProcess:p,impl:{readUrls:A,inline:y}};function p(S){return S.search(h)!==-1}function A(S){for(var k=[],d;(d=h.exec(S))!==null;)k.push(d[1]);return k.filter(function(M){return!t.isDataUrl(M)})}function y(S,k,d,M){return Promise.resolve(k).then(function(C){return d?t.resolveUrl(C,d):C}).then(M||t.getAndEncode).then(function(C){return t.dataAsUrl(C,t.mimeType(k))}).then(function(C){return S.replace(T(k),"$1"+C+"$3")});function T(C){return new RegExp(`(url\\(['"]?)(`+t.escape(C)+`)(['"]?\\))`,"g")}}function x(S,k,d){if(M())return Promise.resolve(S);return Promise.resolve(S).then(A).then(function(T){var C=Promise.resolve(S);return T.forEach(function(E){C=C.then(function(G){return y(G,E,k,d)})}),C});function M(){return!p(S)}}}function D(){return{resolveAll:h,impl:{readAll:p}};function h(){return p().then(function(A){return Promise.all(A.map(function(y){return y.resolve()}))}).then(function(A){return A.join(`
5
+ `)})}function p(){return Promise.resolve(t.asArray(document.styleSheets)).then(y).then(A).then(function(S){return S.map(x)});function A(S){return S.filter(function(k){return k.type===CSSRule.FONT_FACE_RULE}).filter(function(k){return r.shouldProcess(k.style.getPropertyValue("src"))})}function y(S){var k=[];return S.forEach(function(d){try{t.asArray(d.cssRules||[]).forEach(k.push.bind(k))}catch(M){console.log("Error while reading CSS rules from "+d.href,M.toString())}}),k}function x(S){return{resolve:function(){var d=(S.parentStyleSheet||{}).href;return r.inlineAll(S.cssText,d)},src:function(){return S.style.getPropertyValue("src")}}}}}function $(){return{inlineAll:p,impl:{newImage:h}};function h(A){return{inline:y};function y(x){return t.isDataUrl(A.src)?Promise.resolve():Promise.resolve(A.src).then(x||t.getAndEncode).then(function(S){return t.dataAsUrl(S,t.mimeType(A.src))}).then(function(S){return new Promise(function(k,d){A.onload=k,A.onerror=d,A.src=S})})}}function p(A){if(!(A instanceof Element))return Promise.resolve(A);return y(A).then(function(){return A instanceof HTMLImageElement?h(A).inline():Promise.all(t.asArray(A.childNodes).map(function(x){return p(x)}))});function y(x){var S=x.style.getPropertyValue("background");return S?r.inlineAll(S).then(function(k){x.style.setProperty("background",k,x.style.getPropertyPriority("background"))}).then(function(){return x}):Promise.resolve(x)}}}})()})(yr);var zr=yr.exports;function Fr(n){switch(n){case"./badges/fifteen.svelte":return Re(()=>import("../chunks/fifteen-6ece83ce.js"),["chunks/fifteen-6ece83ce.js","chunks/index-7118b6c4.js"]);case"./badges/fifty.svelte":return Re(()=>import("../chunks/fifty-230cfc24.js"),["chunks/fifty-230cfc24.js","chunks/index-7118b6c4.js"]);case"./badges/five.svelte":return Re(()=>import("../chunks/five-e7ec1bc4.js"),["chunks/five-e7ec1bc4.js","chunks/index-7118b6c4.js"]);case"./badges/ten.svelte":return Re(()=>import("../chunks/ten-7c9c0a66.js"),["chunks/ten-7c9c0a66.js","chunks/index-7118b6c4.js"]);case"./badges/thirtyfive.svelte":return Re(()=>import("../chunks/thirtyfive-d3270980.js"),["chunks/thirtyfive-d3270980.js","chunks/index-7118b6c4.js"]);case"./badges/twenty.svelte":return Re(()=>import("../chunks/twenty-97dd6623.js"),["chunks/twenty-97dd6623.js","chunks/index-7118b6c4.js"]);case"./badges/two.svelte":return Re(()=>import("../chunks/two-09cc56a1.js"),["chunks/two-09cc56a1.js","chunks/index-7118b6c4.js"]);default:return new Promise(function(e,t){(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(t.bind(null,new Error("Unknown variable dynamic import: "+n)))})}}function er(n,e,t){const r=n.slice();return r[18]=e[t],r[20]=t,r}function tr(n,e,t){const r=n.slice();return r[21]=e[t],r[23]=t,r}function rr(n,e,t){const r=n.slice();return r[24]=e[t],r}function nr(n){let e,t,r,a;var s=n[6];function l(o){return{props:{classNames:"w-full max-w-[180px]"}}}return s&&(t=new s(l())),{c(){e=g("div"),t&&qe(t.$$.fragment),this.h()},l(o){e=v(o,"DIV",{class:!0});var c=_(e);t&&ht(t.$$.fragment,c),c.forEach(f),this.h()},h(){u(e,"class","absolute left-0 right-0 top-0 bottom-0 flex place-content-center place-items-center")},m(o,c){ce(o,e,c),t&&Xe(t,e,null),a=!0},p(o,c){if(s!==(s=o[6])){if(t){Ke();const w=t;we(w.$$.fragment,1,0,()=>{Ze(w,1)}),Je()}s?(t=new s(l()),qe(t.$$.fragment),fe(t.$$.fragment,1),Xe(t,e,null)):t=null}},i(o){a||(t&&fe(t.$$.fragment,o),Pt(()=>{r||(r=Oe(e,$t,{duration:500},!0)),r.run(1)}),a=!0)},o(o){t&&we(t.$$.fragment,o),r||(r=Oe(e,$t,{duration:500},!1)),r.run(0),a=!1},d(o){o&&f(e),t&&Ze(t),o&&r&&r.end()}}}function ar(n){let e,t,r,a;return{c(){e=g("div"),t=g("img"),a=z(),this.h()},l(s){e=v(s,"DIV",{});var l=_(e);t=v(l,"IMG",{src:!0,alt:!0,class:!0}),a=F(l),l.forEach(f),this.h()},h(){ze(t.src,r=n[9]+n[24])||u(t,"src",r),u(t,"alt",""),u(t,"class","aspect-square w-full h-full")},m(s,l){ce(s,e,l),i(e,t),i(e,a)},p(s,l){l&2&&!ze(t.src,r=s[9]+s[24])&&u(t,"src",r)},d(s){s&&f(e)}}}function sr(n){let e,t;return{c(){e=at("rect"),this.h()},l(r){e=st(r,"rect",{fill:!0,x:!0,y:!0,width:!0,height:!0,rx:!0}),_(e).forEach(f),this.h()},h(){u(e,"fill",t=Xt[n[21].state]),u(e,"x",n[23]*(xe+ke)),u(e,"y",n[20]*(xe+ke)),u(e,"width",xe),u(e,"height",xe),u(e,"rx",n[11])},m(r,a){ce(r,e,a)},p(r,a){a&1&&t!==(t=Xt[r[21].state])&&u(e,"fill",t)},d(r){r&&f(e)}}}function lr(n){let e,t=n[18],r=[];for(let a=0;a<t.length;a+=1)r[a]=sr(tr(n,t,a));return{c(){for(let a=0;a<r.length;a+=1)r[a].c();e=lt()},l(a){for(let s=0;s<r.length;s+=1)r[s].l(a);e=lt()},m(a,s){for(let l=0;l<r.length;l+=1)r[l].m(a,s);ce(a,e,s)},p(a,s){if(s&2049){t=a[18];let l;for(l=0;l<t.length;l+=1){const o=tr(a,t,l);r[l]?r[l].p(o,s):(r[l]=sr(o),r[l].c(),r[l].m(e.parentNode,e))}for(;l<r.length;l+=1)r[l].d(1);r.length=t.length}},d(a){Ae(r,a),a&&f(e)}}}function Mr(n){let e,t,r,a,s,l,o,c,w,I,j,O,U,B,Y,J,oe,Q,ae,pe,D,$,h=n[5]?"SAVING..":"SAVE SCREENSHOT",p,A,y,x,S,k,d,M,T=n[2]in ot&&nr(n),C=n[1],E=[];for(let b=0;b<C.length;b+=1)E[b]=ar(rr(n,C,b));let G=n[0],N=[];for(let b=0;b<G.length;b+=1)N[b]=lr(er(n,G,b));return{c(){e=g("div"),t=g("div"),r=g("div"),a=g("div"),s=g("header"),l=g("h1"),o=K("WORDALLE \u{1F951}"),c=z(),w=g("span"),I=K("hf.co/wordalle"),j=z(),O=g("h2"),U=K(n[8]),B=z(),Y=g("div"),T&&T.c(),J=z();for(let b=0;b<E.length;b+=1)E[b].c();oe=z(),Q=at("svg");for(let b=0;b<N.length;b+=1)N[b].c();pe=z(),D=g("div"),$=g("button"),p=K(h),A=z(),y=g("button"),x=K("NEXT"),this.h()},l(b){e=v(b,"DIV",{class:!0});var W=_(e);t=v(W,"DIV",{class:!0});var P=_(t);r=v(P,"DIV",{class:!0});var ee=_(r);a=v(ee,"DIV",{class:!0});var m=_(a);s=v(m,"HEADER",{class:!0});var L=_(s);l=v(L,"H1",{class:!0});var H=_(l);o=Z(H,"WORDALLE \u{1F951}"),H.forEach(f),c=F(L),w=v(L,"SPAN",{class:!0});var V=_(w);I=Z(V,"hf.co/wordalle"),V.forEach(f),L.forEach(f),j=F(m),O=v(m,"H2",{class:!0});var re=_(O);U=Z(re,n[8]),re.forEach(f),B=F(m),Y=v(m,"DIV",{class:!0});var ie=_(Y);T&&T.l(ie),J=F(ie);for(let ue=0;ue<E.length;ue+=1)E[ue].l(ie);ie.forEach(f),oe=F(m),Q=st(m,"svg",{class:!0,viewBox:!0,xmlns:!0});var ve=_(Q);for(let ue=0;ue<N.length;ue+=1)N[ue].l(ve);ve.forEach(f),m.forEach(f),ee.forEach(f),pe=F(P),D=v(P,"DIV",{class:!0});var _e=_(D);$=v(_e,"BUTTON",{class:!0});var he=_($);p=Z(he,h),he.forEach(f),A=F(_e),y=v(_e,"BUTTON",{class:!0});var te=_(y);x=Z(te,"NEXT"),te.forEach(f),_e.forEach(f),P.forEach(f),W.forEach(f),this.h()},h(){u(l,"class","text-xs font-bold uppercase whitespace-nowrap"),u(w,"class","font-light"),u(s,"class","p-3 flex justify-between items-center"),u(O,"class","text-center uppercase tracking-widest font-extrabold"),u(Y,"class","grid grid-cols-3 gap-2 p-3 relative"),u(Q,"class","w-full p-3 mx-auto max-h-[30vh]"),u(Q,"viewBox",ae="0 0 "+(n[0][0].length*(ke+xe)-ke)+" "+(n[0].length*(ke+xe)-ke)),u(Q,"xmlns","http://www.w3.org/2000/svg"),u(a,"class","p-3"),u(r,"class","border-0"),$.disabled=n[5],u($,"class","min-w-[15ch] flex-1 mr-1 svelte-oufr2e"),u(y,"class","flex-1 ml-1 svelte-oufr2e"),u(D,"class","p-3 px-6 flex text-base"),u(t,"class","message svelte-oufr2e"),u(e,"class","modal relative z-50 svelte-oufr2e")},m(b,W){ce(b,e,W),i(e,t),i(t,r),i(r,a),i(a,s),i(s,l),i(l,o),i(s,c),i(s,w),i(w,I),i(a,j),i(a,O),i(O,U),i(a,B),i(a,Y),T&&T.m(Y,null),i(Y,J);for(let P=0;P<E.length;P+=1)E[P].m(Y,null);i(a,oe),i(a,Q);for(let P=0;P<N.length;P+=1)N[P].m(Q,null);n[13](a),i(t,pe),i(t,D),i(D,$),i($,p),i(D,A),i(D,y),i(y,x),n[16](e),k=!0,d||(M=[Ve($,"click",n[14]),Ve(y,"click",n[15])],d=!0)},p(b,[W]){if(b[2]in ot?T?(T.p(b,W),W&4&&fe(T,1)):(T=nr(b),T.c(),fe(T,1),T.m(Y,J)):T&&(Ke(),we(T,1,1,()=>{T=null}),Je()),W&514){C=b[1];let P;for(P=0;P<C.length;P+=1){const ee=rr(b,C,P);E[P]?E[P].p(ee,W):(E[P]=ar(ee),E[P].c(),E[P].m(Y,null))}for(;P<E.length;P+=1)E[P].d(1);E.length=C.length}if(W&2049){G=b[0];let P;for(P=0;P<G.length;P+=1){const ee=er(b,G,P);N[P]?N[P].p(ee,W):(N[P]=lr(ee),N[P].c(),N[P].m(Q,null))}for(;P<N.length;P+=1)N[P].d(1);N.length=G.length}(!k||W&1&&ae!==(ae="0 0 "+(b[0][0].length*(ke+xe)-ke)+" "+(b[0].length*(ke+xe)-ke)))&&u(Q,"viewBox",ae),(!k||W&32)&&h!==(h=b[5]?"SAVING..":"SAVE SCREENSHOT")&&Qe(p,h),(!k||W&32)&&($.disabled=b[5])},i(b){k||(fe(T),Pt(()=>{S||(S=Oe(e,it,{},!0)),S.run(1)}),k=!0)},o(b){we(T),S||(S=Oe(e,it,{},!1)),S.run(0),k=!1},d(b){b&&f(e),T&&T.d(),Ae(E,b),Ae(N,b),n[13](null),n[16](null),b&&S&&S.end(),d=!1,wr(M)}}}const xe=10,ke=1;function Hr(n,e,t){const r=xt();let{board:a}=e,{currentRowIndex:s}=e,{imagePaths:l}=e,{totalStreaks:o}=e;const c=Rr[s],w="";let I,j,O=!1;async function U(D){t(5,O=!0);try{const $=await zr.toBlob(D,{bgcolor:"#000"}),h=document.createElement("a");h.download=`sucess-${Date.now()}.png`,h.target="_self",h.onclick=async p=>{if(t(5,O=!0),h.href){URL.revokeObjectURL(h.href),t(5,O=!1);return}h.href=URL.createObjectURL($),t(5,O=!1)},h.click(),console.log("Downloding image.")}catch($){console.log($.name,$.message)}}const B=D=>{D.key==="Escape"?r("restart"):D.key===" "&&U(j)};let Y;_r(async()=>{if(o in ot){const D=ot[o];t(6,Y=(await Fr(`./badges/${D}.svelte`)).default)}window.addEventListener("keyup",B,!0)}),br(()=>{window.removeEventListener("keyup",B,!0)});const J=xe/10;function oe(D){kt[D?"unshift":"push"](()=>{j=D,t(4,j)})}const Q=()=>U(j),ae=()=>r("restart");function pe(D){kt[D?"unshift":"push"](()=>{I=D,t(3,I)})}return n.$$set=D=>{"board"in D&&t(0,a=D.board),"currentRowIndex"in D&&t(12,s=D.currentRowIndex),"imagePaths"in D&&t(1,l=D.imagePaths),"totalStreaks"in D&&t(2,o=D.totalStreaks)},[a,l,o,I,j,O,Y,r,c,w,U,J,s,oe,Q,ae,pe]}class Yr extends ct{constructor(e){super(),ut(this,e,Hr,Mr,ft,{board:0,currentRowIndex:12,imagePaths:1,totalStreaks:2})}}function or(n){let e,t,r,a,s;return{c(){e=g("div"),t=g("button"),r=K("Try Again"),this.h()},l(l){e=v(l,"DIV",{class:!0});var o=_(e);t=v(o,"BUTTON",{class:!0});var c=_(t);r=Z(c,"Try Again"),c.forEach(f),o.forEach(f),this.h()},h(){u(t,"class","hover:no-underline underline underline-offset-2 hover:scale-105 transition-all duration-200 ease-in-out"),u(e,"class","font-light flex-1 text-xs sm:text-base text-center")},m(l,o){ce(l,e,o),i(e,t),i(t,r),a||(s=Ve(t,"click",n[3]),a=!0)},p:Ge,d(l){l&&f(e),a=!1,s()}}}function Wr(n){let e,t,r,a,s,l=n[0]===ye.FAIL&&or(n);return{c(){e=g("div"),t=K(n[1]),r=z(),l&&l.c(),this.h()},l(o){e=v(o,"DIV",{class:!0});var c=_(e);t=Z(c,n[1]),r=F(c),l&&l.l(c),c.forEach(f),this.h()},h(){u(e,"class","message svelte-1sv0qpd")},m(o,c){ce(o,e,c),i(e,t),i(e,r),l&&l.m(e,null),s=!0},p(o,[c]){(!s||c&2)&&Qe(t,o[1]),o[0]===ye.FAIL?l?l.p(o,c):(l=or(o),l.c(),l.m(e,null)):l&&(l.d(1),l=null)},i(o){s||(Pt(()=>{a||(a=Oe(e,it,{},!0)),a.run(1)}),s=!0)},o(o){a||(a=Oe(e,it,{},!1)),a.run(0),s=!1},d(o){o&&f(e),l&&l.d(),o&&a&&a.end()}}}function Gr(n,e,t){const r=xt();let{gameState:a}=e,{message:s=null}=e;const l=()=>r("restart");return n.$$set=o=>{"gameState"in o&&t(0,a=o.gameState),"message"in o&&t(1,s=o.message)},[a,s,r,l]}class qr extends ct{constructor(e){super(),ut(this,e,Gr,Wr,ft,{gameState:0,message:1})}}function ir(n,e,t){const r=n.slice();return r[27]=e[t],r[29]=t,r}function cr(n,e,t){const r=n.slice();return r[30]=e[t],r[29]=t,r}function ur(n,e,t){const r=n.slice();return r[32]=e[t],r}function fr(n){let e,t,r,a,s,l,o,c,w,I,j,O,U,B,Y,J,oe,Q,ae,pe,D,$,h,p,A,y,x,S,k,d,M,T,C,E,G,N,b,W,P,ee,m,L,H,V,re,ie,ve,_e,he,te,ue,De,St,dt,Le,At,mt,Ee,Ce,Fe,pt,gt,Me,vt,wt,Pe,Te,_t,Ie,bt,$e,He,yt,Tt,se=n[7]&&hr(n),le=n[9]===ye.SUCESS&&dr(n),Ne=n[2],de=[];for(let R=0;R<Ne.length;R+=1)de[R]=mr(ur(n,Ne,R));let Ue=n[5],me=[];for(let R=0;R<Ue.length;R+=1)me[R]=gr(ir(n,Ue,R));function Er(R){n[14](R)}let It={};return n[4]!==void 0&&(It.letterStates=n[4]),h=new Vr({props:It}),kt.push(()=>Tr(h,"letterStates",Er)),h.$on("keyup",n[15]),{c(){e=g("div"),se&&se.c(),t=z(),le&&le.c(),r=z(),a=g("header"),s=g("span"),l=K("Guess the prompt!"),o=z(),c=g("span"),w=z(),I=g("h1"),j=K("\u{1F951} WORDALLE \u{1F951}"),O=z(),U=g("span"),B=z(),Y=g("span"),J=g("button"),oe=K("Skip to next"),Q=z(),ae=g("div");for(let R=0;R<de.length;R+=1)de[R].c();pe=z(),D=g("div");for(let R=0;R<me.length;R+=1)me[R].c();$=z(),qe(h.$$.fragment),A=z(),y=g("footer"),x=g("details"),S=g("summary"),k=g("span"),d=K("About"),M=z(),T=g("p"),C=K("Welcome to Wordalle! The game that marries "),E=g("a"),G=K("DALLE mini"),N=K(" & Wordle!\u201D"),b=z(),W=g("h2"),P=K("Instructions"),ee=z(),m=g("p"),L=K(`You are given a board with a grid of letters. You must guess the prompt used to generate
6
+ the images.`),H=z(),V=g("p"),re=K(`Your guess must contain the same number of letters as tiles. After you guess, the tiles
7
+ will be revealed.`),ie=z(),ve=g("h2"),_e=K("Example"),he=z(),te=g("p"),ue=K(`The green tiles are correct letter placements. The yellow tiles are correct letters but in
8
+ wrong position and the gray tiles are letters not present in the prompt.
9
+ `),De=g("img"),dt=z(),Le=g("img"),mt=z(),Ee=g("details"),Ce=g("summary"),Fe=g("span"),pt=K("Disclaimer"),gt=z(),Me=g("p"),vt=K(`This demo collects the guesses to help with a research project. The demo stores no
10
+ personal data, such as your IP address, email, or account, only your guesses.`),wt=z(),Pe=g("label"),Te=g("input"),_t=z(),Ie=g("span"),bt=K("Please uncheck to disable sharing "),$e=K(n[0]),this.h()},l(R){e=v(R,"DIV",{class:!0});var q=_(e);se&&se.l(q),t=F(q),le&&le.l(q),r=F(q),a=v(q,"HEADER",{class:!0});var ne=_(a);s=v(ne,"SPAN",{class:!0});var X=_(s);l=Z(X,"Guess the prompt!"),X.forEach(f),o=F(ne),c=v(ne,"SPAN",{class:!0}),_(c).forEach(f),w=F(ne),I=v(ne,"H1",{class:!0});var Se=_(I);j=Z(Se,"\u{1F951} WORDALLE \u{1F951}"),Se.forEach(f),O=F(ne),U=v(ne,"SPAN",{class:!0}),_(U).forEach(f),B=F(ne),Y=v(ne,"SPAN",{class:!0});var jt=_(Y);J=v(jt,"BUTTON",{tabindex:!0,class:!0});var Rt=_(J);oe=Z(Rt,"Skip to next"),Rt.forEach(f),jt.forEach(f),ne.forEach(f),Q=F(q),ae=v(q,"DIV",{class:!0});var Dt=_(ae);for(let je=0;je<de.length;je+=1)de[je].l(Dt);Dt.forEach(f),pe=F(q),D=v(q,"DIV",{class:!0});var Lt=_(D);for(let je=0;je<me.length;je+=1)me[je].l(Lt);Lt.forEach(f),$=F(q),ht(h.$$.fragment,q),A=F(q),y=v(q,"FOOTER",{class:!0});var et=_(y);x=v(et,"DETAILS",{class:!0});var ge=_(x);S=v(ge,"SUMMARY",{class:!0});var Ct=_(S);k=v(Ct,"SPAN",{});var Nt=_(k);d=Z(Nt,"About"),Nt.forEach(f),Ct.forEach(f),M=F(ge),T=v(ge,"P",{});var tt=_(T);C=Z(tt,"Welcome to Wordalle! The game that marries "),E=v(tt,"A",{href:!0,target:!0,rel:!0,class:!0});var Ut=_(E);G=Z(Ut,"DALLE mini"),Ut.forEach(f),N=Z(tt," & Wordle!\u201D"),tt.forEach(f),b=F(ge),W=v(ge,"H2",{class:!0});var Bt=_(W);P=Z(Bt,"Instructions"),Bt.forEach(f),ee=F(ge),m=v(ge,"P",{});var Vt=_(m);L=Z(Vt,`You are given a board with a grid of letters. You must guess the prompt used to generate
11
+ the images.`),Vt.forEach(f),H=F(ge),V=v(ge,"P",{});var Ot=_(V);re=Z(Ot,`Your guess must contain the same number of letters as tiles. After you guess, the tiles
12
+ will be revealed.`),Ot.forEach(f),ie=F(ge),ve=v(ge,"H2",{class:!0});var zt=_(ve);_e=Z(zt,"Example"),zt.forEach(f),he=F(ge),te=v(ge,"P",{class:!0});var Ye=_(te);ue=Z(Ye,`The green tiles are correct letter placements. The yellow tiles are correct letters but in
13
+ wrong position and the gray tiles are letters not present in the prompt.
14
+ `),De=v(Ye,"IMG",{alt:!0,src:!0}),dt=F(Ye),Le=v(Ye,"IMG",{alt:!0,src:!0}),Ye.forEach(f),ge.forEach(f),mt=F(et),Ee=v(et,"DETAILS",{class:!0});var Be=_(Ee);Ce=v(Be,"SUMMARY",{class:!0});var Ft=_(Ce);Fe=v(Ft,"SPAN",{});var Mt=_(Fe);pt=Z(Mt,"Disclaimer"),Mt.forEach(f),Ft.forEach(f),gt=F(Be),Me=v(Be,"P",{});var Ht=_(Me);vt=Z(Ht,`This demo collects the guesses to help with a research project. The demo stores no
15
+ personal data, such as your IP address, email, or account, only your guesses.`),Ht.forEach(f),wt=F(Be),Pe=v(Be,"LABEL",{class:!0});var rt=_(Pe);Te=v(rt,"INPUT",{type:!0}),_t=F(rt),Ie=v(rt,"SPAN",{class:!0});var Et=_(Ie);bt=Z(Et,"Please uncheck to disable sharing "),$e=Z(Et,n[0]),Et.forEach(f),rt.forEach(f),Be.forEach(f),et.forEach(f),q.forEach(f),this.h()},h(){u(s,"class","font-light flex-1 text-xs sm:text-base"),u(c,"class","sm:block hidden mx-3 flex-1 border-[0.5px] border-opacity-50 border-gray-400"),u(I,"class","text-xl font-bold text-center whitespace-nowrap"),u(U,"class","sm:block hidden mx-3 flex-1 border-[0.5px] border-opacity-50 border-gray-400"),u(J,"tabindex","-1"),u(J,"class","hover:no-underline underline underline-offset-2 hover:scale-105 transition-all duration-200 ease-in-out"),u(Y,"class","font-light flex-1 text-xs sm:text-base"),u(a,"class","flex justify-between items-center uppercase sm:px-2 text-center"),u(ae,"class","grid grid-cols-3 gap-2 max-w-md mx-auto p-3"),u(D,"class","board svelte-1y5wh9j"),u(S,"class","cursor-pointer my-2"),u(E,"href","https://huggingface.co/spaces/dalle-mini/dalle-mini"),u(E,"target","_blank"),u(E,"rel","noopener noreferrer"),u(E,"class","underline hover:text-blue-500 hover:no-underline"),u(W,"class","font-bold my-2"),u(ve,"class","font-bold my-2"),u(De,"alt","wordalle example for dog eating pastas"),ze(De.src,St=qt+"/img1.jpg")||u(De,"src",St),u(Le,"alt","wordalle example for cat eating noodle "),ze(Le.src,At=qt+"/img2.jpg")||u(Le,"src",At),u(te,"class","pb-3"),u(x,"class","text-xs my-3"),u(Ce,"class","cursor-pointer my-2"),u(Te,"type","checkbox"),u(Ie,"class","mx-1"),u(Pe,"class","py-3 flex"),u(Ee,"class","text-xs my-3"),u(y,"class","max-w-md mx-auto pt-3"),u(e,"class","max-w-screen-lg mx-auto px-1 relative z-0 mt-3")},m(R,q){ce(R,e,q),se&&se.m(e,null),i(e,t),le&&le.m(e,null),i(e,r),i(e,a),i(a,s),i(s,l),i(a,o),i(a,c),i(a,w),i(a,I),i(I,j),i(a,O),i(a,U),i(a,B),i(a,Y),i(Y,J),i(J,oe),i(e,Q),i(e,ae);for(let ne=0;ne<de.length;ne+=1)de[ne].m(ae,null);i(e,pe),i(e,D);for(let ne=0;ne<me.length;ne+=1)me[ne].m(D,null);i(e,$),Xe(h,e,null),i(e,A),i(e,y),i(y,x),i(x,S),i(S,k),i(k,d),i(x,M),i(x,T),i(T,C),i(T,E),i(E,G),i(T,N),i(x,b),i(x,W),i(W,P),i(x,ee),i(x,m),i(m,L),i(x,H),i(x,V),i(V,re),i(x,ie),i(x,ve),i(ve,_e),i(x,he),i(x,te),i(te,ue),i(te,De),i(te,dt),i(te,Le),i(y,mt),i(y,Ee),i(Ee,Ce),i(Ce,Fe),i(Fe,pt),i(Ee,gt),i(Ee,Me),i(Me,vt),i(Ee,wt),i(Ee,Pe),i(Pe,Te),Te.checked=n[0],i(Pe,_t),i(Pe,Ie),i(Ie,bt),i(Ie,$e),He=!0,yt||(Tt=[Ve(J,"click",n[13]),Ve(Te,"change",n[16])],yt=!0)},p(R,q){if(R[7]?se?(se.p(R,q),q[0]&128&&fe(se,1)):(se=hr(R),se.c(),fe(se,1),se.m(e,t)):se&&(Ke(),we(se,1,1,()=>{se=null}),Je()),R[9]===ye.SUCESS?le?(le.p(R,q),q[0]&512&&fe(le,1)):(le=dr(R),le.c(),fe(le,1),le.m(e,r)):le&&(Ke(),we(le,1,1,()=>{le=null}),Je()),q[0]&1028){Ne=R[2];let X;for(X=0;X<Ne.length;X+=1){const Se=ur(R,Ne,X);de[X]?de[X].p(Se,q):(de[X]=mr(Se),de[X].c(),de[X].m(ae,null))}for(;X<de.length;X+=1)de[X].d(1);de.length=Ne.length}if(q[0]&872){Ue=R[5];let X;for(X=0;X<Ue.length;X+=1){const Se=ir(R,Ue,X);me[X]?me[X].p(Se,q):(me[X]=gr(Se),me[X].c(),me[X].m(D,null))}for(;X<me.length;X+=1)me[X].d(1);me.length=Ue.length}const ne={};!p&&q[0]&16&&(p=!0,ne.letterStates=R[4],Ar(()=>p=!1)),h.$set(ne),q[0]&1&&(Te.checked=R[0]),(!He||q[0]&1)&&Qe($e,R[0])},i(R){He||(fe(se),fe(le),fe(h.$$.fragment,R),He=!0)},o(R){we(se),we(le),we(h.$$.fragment,R),He=!1},d(R){R&&f(e),se&&se.d(),le&&le.d(),Ae(de,R),Ae(me,R),Ze(h),yt=!1,wr(Tt)}}}function hr(n){let e,t;return e=new qr({props:{message:n[7],gameState:n[9]}}),e.$on("restart",n[11]),{c(){qe(e.$$.fragment)},l(r){ht(e.$$.fragment,r)},m(r,a){Xe(e,r,a),t=!0},p(r,a){const s={};a[0]&128&&(s.message=r[7]),a[0]&512&&(s.gameState=r[9]),e.$set(s)},i(r){t||(fe(e.$$.fragment,r),t=!0)},o(r){we(e.$$.fragment,r),t=!1},d(r){Ze(e,r)}}}function dr(n){let e,t;return e=new Yr({props:{board:n[5],currentRowIndex:n[6],imagePaths:n[2],totalStreaks:n[1].length}}),e.$on("restart",n[11]),{c(){qe(e.$$.fragment)},l(r){ht(e.$$.fragment,r)},m(r,a){Xe(e,r,a),t=!0},p(r,a){const s={};a[0]&32&&(s.board=r[5]),a[0]&64&&(s.currentRowIndex=r[6]),a[0]&4&&(s.imagePaths=r[2]),a[0]&2&&(s.totalStreaks=r[1].length),e.$set(s)},i(r){t||(fe(e.$$.fragment,r),t=!0)},o(r){we(e.$$.fragment,r),t=!1},d(r){Ze(e,r)}}}function mr(n){let e,t,r,a;return{c(){e=g("div"),t=g("img"),a=z(),this.h()},l(s){e=v(s,"DIV",{});var l=_(e);t=v(l,"IMG",{src:!0,alt:!0,class:!0}),a=F(l),l.forEach(f),this.h()},h(){ze(t.src,r=n[10]+n[32])||u(t,"src",r),u(t,"alt",""),u(t,"class","aspect-square w-full h-full")},m(s,l){ce(s,e,l),i(e,t),i(e,a)},p(s,l){l[0]&4&&!ze(t.src,r=s[10]+s[32])&&u(t,"src",r)},d(s){s&&f(e)}}}function pr(n){let e,t,r,a=n[30].letter+"",s,l,o,c,w=n[30].letter+"",I,j,O;return{c(){e=g("div"),t=g("div"),r=g("span"),s=K(a),o=z(),c=g("div"),I=K(w),this.h()},l(U){e=v(U,"DIV",{class:!0});var B=_(e);t=v(B,"DIV",{class:!0,style:!0});var Y=_(t);r=v(Y,"SPAN",{class:!0});var J=_(r);s=Z(J,a),J.forEach(f),Y.forEach(f),o=F(B),c=v(B,"DIV",{class:!0,style:!0});var oe=_(c);I=Z(oe,w),oe.forEach(f),B.forEach(f),this.h()},h(){u(r,"class","letter svelte-1y5wh9j"),u(t,"class",l="front z-0 "+(n[30].correct===" "?"space":"")+" svelte-1y5wh9j"),We(t,"transition-delay",n[29]*n[3]+"ms"),u(c,"class",j="back z-0 "+n[30].state+" svelte-1y5wh9j"),We(c,"transition-delay",n[29]*n[3]+"ms"),We(c,"animation-delay",n[29]*100+"ms"),u(e,"class",O="tile "+(n[30].letter&&"filled")+" "+(n[30].state&&"revealed")+" svelte-1y5wh9j")},m(U,B){ce(U,e,B),i(e,t),i(t,r),i(r,s),i(e,o),i(e,c),i(c,I)},p(U,B){B[0]&32&&a!==(a=U[30].letter+"")&&Qe(s,a),B[0]&32&&l!==(l="front z-0 "+(U[30].correct===" "?"space":"")+" svelte-1y5wh9j")&&u(t,"class",l),B[0]&8&&We(t,"transition-delay",U[29]*U[3]+"ms"),B[0]&32&&w!==(w=U[30].letter+"")&&Qe(I,w),B[0]&32&&j!==(j="back z-0 "+U[30].state+" svelte-1y5wh9j")&&u(c,"class",j),B[0]&8&&We(c,"transition-delay",U[29]*U[3]+"ms"),B[0]&32&&O!==(O="tile "+(U[30].letter&&"filled")+" "+(U[30].state&&"revealed")+" svelte-1y5wh9j")&&u(e,"class",O)},d(U){U&&f(e)}}}function gr(n){let e,t,r,a=n[27],s=[];for(let l=0;l<a.length;l+=1)s[l]=pr(cr(n,a,l));return{c(){e=g("div");for(let l=0;l<s.length;l+=1)s[l].c();t=z(),this.h()},l(l){e=v(l,"DIV",{class:!0});var o=_(e);for(let c=0;c<s.length;c+=1)s[c].l(o);t=F(o),o.forEach(f),this.h()},h(){u(e,"class",r="row "+(n[8]===n[29]&&"shake")+" "+(n[9]==ye.SUCESS&&n[6]===n[29]&&"jump")+" svelte-1y5wh9j")},m(l,o){ce(l,e,o);for(let c=0;c<s.length;c+=1)s[c].m(e,null);i(e,t)},p(l,o){if(o[0]&40){a=l[27];let c;for(c=0;c<a.length;c+=1){const w=cr(l,a,c);s[c]?s[c].p(w,o):(s[c]=pr(w),s[c].c(),s[c].m(e,t))}for(;c<s.length;c+=1)s[c].d(1);s.length=a.length}o[0]&832&&r!==(r="row "+(l[8]===l[29]&&"shake")+" "+(l[9]==ye.SUCESS&&l[6]===l[29]&&"jump")+" svelte-1y5wh9j")&&u(e,"class",r)},d(l){l&&f(e),Ae(s,l)}}}function Xr(n){let e,t,r=n[5]!==void 0&&fr(n);return{c(){r&&r.c(),e=lt()},l(a){r&&r.l(a),e=lt()},m(a,s){r&&r.m(a,s),ce(a,e,s),t=!0},p(a,s){a[5]!==void 0?r?(r.p(a,s),s[0]&32&&fe(r,1)):(r=fr(a),r.c(),fe(r,1),r.m(e.parentNode,e)):r&&(Ke(),we(r,1,1,()=>{r=null}),Je())},i(a){t||(fe(r),t=!0)},o(a){we(r),t=!1},d(a){r&&r.d(a),a&&f(e)}}}const nt=1e3;function vr(){document.body.style.setProperty("--vh",window.innerHeight+"px")}function Kr(n,e,t){const r="";let a=!0,s,l=[],o;_r(async()=>{vr(),s=await fetch(r+"data").then(d=>d.json()),ae(),window.addEventListener("keyup",pe,!0),window.addEventListener("resize",vr),window.focus(),document.body.addEventListener("click",()=>window.focus(),!1)}),br(()=>{window.removeEventListener("keyup",pe,!0)});let c,w,I,j,O={},U,B=0,Y="",J=-1,oe=ye.PLAYING,Q=!0;function ae(){t(9,oe=ye.PLAYING),t(8,J=-1),t(7,Y=""),t(6,B=0),t(4,O={}),Q=!0;const d=Object.keys(s),M=l.map(N=>N.idx),T=d.filter((N,b)=>!M.includes(b)),C=~~(Math.random()*T.length),E=T[C];o=d.indexOf(E),c="cat eating noodle",t(2,w=s[E].slice(0,6));const G=[...c].map(N=>Math.random()>.5?"*":N).join("");console.log("%cCLUE: ","color: red;font-weight:bold",G),I=c.length,t(3,j=nt/I),t(5,U=Array.from({length:7},()=>Array.from(c).map(N=>({letter:"",correct:N,state:be.INITIAL})))),document.body.style.setProperty("--cols",`${I}`)}const pe=d=>{D(d.key)};function D(d){!Q||(/^[a-zA-Z]$/.test(d)?t(5,U=jr(U,B,d.toLowerCase())):d==="Backspace"?t(5,U=Ir(U,B)):d==="Enter"&&$())}function $(){const d=[...U],M=d[B],T=Gt({},O);if(M.every(C=>C.letter)){M.map(E=>E.letter).join(""),a&&A(M);const C=c.split("");M.forEach((E,G)=>{C[G]===E.letter&&(E.state=T[E.letter]=be.CORRECT,C[G]=null)}),M.forEach(E=>{!E.state&&C.includes(E.letter)&&(E.state=be.PRESENT,C[C.indexOf(E.letter)]=null,T[E.letter]||(T[E.letter]=be.PRESENT))}),M.forEach(E=>{E.state||(E.state=be.ABSENT,T[E.letter]||(T[E.letter]=be.ABSENT))}),Q=!1,M.every(E=>E.state===be.CORRECT)?(t(1,l=[...l,{prompt:c,idx:o}]),setTimeout(()=>{t(9,oe=ye.SUCESS)},nt)):B<U.length-1?(t(6,B++,B),setTimeout(()=>{Q=!0},nt)):(t(9,oe=ye.FAIL),setTimeout(()=>{h(c.toUpperCase(),-1)},nt))}else p(),h("Not enough letters");t(5,U=d),t(4,O=T)}function h(d,M=1e3){t(7,Y=d),M>0&&setTimeout(()=>{t(7,Y="")},M)}function p(){t(8,J=B),setTimeout(()=>{t(8,J=-1)},1e3)}async function A(d){const M=d.map(C=>C.letter).join(""),T=d.map(C=>C.correct).join("");fetch(r+"prompt",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({guess:M,correct:T})})}const y=d=>{ae(),d.currentTarget.blur()};function x(d){O=d,t(4,O)}const S=({detail:d})=>D(d);function k(){a=this.checked,t(0,a)}return[a,l,w,j,O,U,B,Y,J,oe,r,ae,D,y,x,S,k]}class $r extends ct{constructor(e){super(),ut(this,e,Kr,Xr,ft,{},null,[-1,-1])}}export{$r as default};
static/_app/immutable/start-15953b66.js ADDED
@@ -0,0 +1 @@
 
 
1
+ var tt=Object.defineProperty,nt=Object.defineProperties;var st=Object.getOwnPropertyDescriptors;var ue=Object.getOwnPropertySymbols;var Ve=Object.prototype.hasOwnProperty,qe=Object.prototype.propertyIsEnumerable;var ze=(n,e,t)=>e in n?tt(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,P=(n,e)=>{for(var t in e||(e={}))Ve.call(e,t)&&ze(n,t,e[t]);if(ue)for(var t of ue(e))qe.call(e,t)&&ze(n,t,e[t]);return n},se=(n,e)=>nt(n,st(e));var Je=(n,e)=>{var t={};for(var i in n)Ve.call(n,i)&&e.indexOf(i)<0&&(t[i]=n[i]);if(n!=null&&ue)for(var i of ue(n))e.indexOf(i)<0&&qe.call(n,i)&&(t[i]=n[i]);return t};import{s as Qe,n as ye,S as rt,i as it,e as at,c as ot,a as ct,d as z,b as ve,f as B,g as V,t as lt,h as ft,j as ut,k as dt,l as T,m as pt,o as Y,p as j,q as G,r as I,u as ht,v as _t,w as Re,x as q,y as ie,z as J,A as ae,B as oe,C as K,D as ce,E as Ke}from"./chunks/index-7118b6c4.js";import{_ as $e,s as mt,a as gt}from"./chunks/preload-helper-fca94356.js";const H=[];function de(n,e=ye){let t;const i=new Set;function l(s){if(Qe(n,s)&&(n=s,t)){const r=!H.length;for(const a of i)a[1](),H.push(a,n);if(r){for(let a=0;a<H.length;a+=2)H[a][0](H[a+1]);H.length=0}}}function c(s){l(s(n))}function u(s,r=ye){const a=[s,r];return i.add(a),i.size===1&&(t=e(l)||ye),s(n),()=>{i.delete(a),i.size===0&&(t(),t=null)}}return{set:l,update:c,subscribe:u}}function wt(n){let e,t,i;const l=[n[1]||{}];var c=n[0][0];function u(s){let r={};for(let a=0;a<l.length;a+=1)r=ce(r,l[a]);return{props:r}}return c&&(e=new c(u())),{c(){e&&q(e.$$.fragment),t=T()},l(s){e&&ie(e.$$.fragment,s),t=T()},m(s,r){e&&J(e,s,r),V(s,t,r),i=!0},p(s,r){const a=r&2?ae(l,[oe(s[1]||{})]):{};if(c!==(c=s[0][0])){if(e){Y();const d=e;j(d.$$.fragment,1,0,()=>{K(d,1)}),G()}c?(e=new c(u()),q(e.$$.fragment),I(e.$$.fragment,1),J(e,t.parentNode,t)):e=null}else c&&e.$set(a)},i(s){i||(e&&I(e.$$.fragment,s),i=!0)},o(s){e&&j(e.$$.fragment,s),i=!1},d(s){s&&z(t),e&&K(e,s)}}}function bt(n){let e,t,i;const l=[n[1]||{}];var c=n[0][0];function u(s){let r={$$slots:{default:[kt]},$$scope:{ctx:s}};for(let a=0;a<l.length;a+=1)r=ce(r,l[a]);return{props:r}}return c&&(e=new c(u(n))),{c(){e&&q(e.$$.fragment),t=T()},l(s){e&&ie(e.$$.fragment,s),t=T()},m(s,r){e&&J(e,s,r),V(s,t,r),i=!0},p(s,r){const a=r&2?ae(l,[oe(s[1]||{})]):{};if(r&525&&(a.$$scope={dirty:r,ctx:s}),c!==(c=s[0][0])){if(e){Y();const d=e;j(d.$$.fragment,1,0,()=>{K(d,1)}),G()}c?(e=new c(u(s)),q(e.$$.fragment),I(e.$$.fragment,1),J(e,t.parentNode,t)):e=null}else c&&e.$set(a)},i(s){i||(e&&I(e.$$.fragment,s),i=!0)},o(s){e&&j(e.$$.fragment,s),i=!1},d(s){s&&z(t),e&&K(e,s)}}}function yt(n){let e,t,i;const l=[n[2]||{}];var c=n[0][1];function u(s){let r={};for(let a=0;a<l.length;a+=1)r=ce(r,l[a]);return{props:r}}return c&&(e=new c(u())),{c(){e&&q(e.$$.fragment),t=T()},l(s){e&&ie(e.$$.fragment,s),t=T()},m(s,r){e&&J(e,s,r),V(s,t,r),i=!0},p(s,r){const a=r&4?ae(l,[oe(s[2]||{})]):{};if(c!==(c=s[0][1])){if(e){Y();const d=e;j(d.$$.fragment,1,0,()=>{K(d,1)}),G()}c?(e=new c(u()),q(e.$$.fragment),I(e.$$.fragment,1),J(e,t.parentNode,t)):e=null}else c&&e.$set(a)},i(s){i||(e&&I(e.$$.fragment,s),i=!0)},o(s){e&&j(e.$$.fragment,s),i=!1},d(s){s&&z(t),e&&K(e,s)}}}function vt(n){let e,t,i;const l=[n[2]||{}];var c=n[0][1];function u(s){let r={$$slots:{default:[$t]},$$scope:{ctx:s}};for(let a=0;a<l.length;a+=1)r=ce(r,l[a]);return{props:r}}return c&&(e=new c(u(n))),{c(){e&&q(e.$$.fragment),t=T()},l(s){e&&ie(e.$$.fragment,s),t=T()},m(s,r){e&&J(e,s,r),V(s,t,r),i=!0},p(s,r){const a=r&4?ae(l,[oe(s[2]||{})]):{};if(r&521&&(a.$$scope={dirty:r,ctx:s}),c!==(c=s[0][1])){if(e){Y();const d=e;j(d.$$.fragment,1,0,()=>{K(d,1)}),G()}c?(e=new c(u(s)),q(e.$$.fragment),I(e.$$.fragment,1),J(e,t.parentNode,t)):e=null}else c&&e.$set(a)},i(s){i||(e&&I(e.$$.fragment,s),i=!0)},o(s){e&&j(e.$$.fragment,s),i=!1},d(s){s&&z(t),e&&K(e,s)}}}function $t(n){let e,t,i;const l=[n[3]||{}];var c=n[0][2];function u(s){let r={};for(let a=0;a<l.length;a+=1)r=ce(r,l[a]);return{props:r}}return c&&(e=new c(u())),{c(){e&&q(e.$$.fragment),t=T()},l(s){e&&ie(e.$$.fragment,s),t=T()},m(s,r){e&&J(e,s,r),V(s,t,r),i=!0},p(s,r){const a=r&8?ae(l,[oe(s[3]||{})]):{};if(c!==(c=s[0][2])){if(e){Y();const d=e;j(d.$$.fragment,1,0,()=>{K(d,1)}),G()}c?(e=new c(u()),q(e.$$.fragment),I(e.$$.fragment,1),J(e,t.parentNode,t)):e=null}else c&&e.$set(a)},i(s){i||(e&&I(e.$$.fragment,s),i=!0)},o(s){e&&j(e.$$.fragment,s),i=!1},d(s){s&&z(t),e&&K(e,s)}}}function kt(n){let e,t,i,l;const c=[vt,yt],u=[];function s(r,a){return r[0][2]?0:1}return e=s(n),t=u[e]=c[e](n),{c(){t.c(),i=T()},l(r){t.l(r),i=T()},m(r,a){u[e].m(r,a),V(r,i,a),l=!0},p(r,a){let d=e;e=s(r),e===d?u[e].p(r,a):(Y(),j(u[d],1,1,()=>{u[d]=null}),G(),t=u[e],t?t.p(r,a):(t=u[e]=c[e](r),t.c()),I(t,1),t.m(i.parentNode,i))},i(r){l||(I(t),l=!0)},o(r){j(t),l=!1},d(r){u[e].d(r),r&&z(i)}}}function Be(n){let e,t=n[5]&&Me(n);return{c(){e=at("div"),t&&t.c(),this.h()},l(i){e=ot(i,"DIV",{id:!0,"aria-live":!0,"aria-atomic":!0,style:!0});var l=ct(e);t&&t.l(l),l.forEach(z),this.h()},h(){ve(e,"id","svelte-announcer"),ve(e,"aria-live","assertive"),ve(e,"aria-atomic","true"),B(e,"position","absolute"),B(e,"left","0"),B(e,"top","0"),B(e,"clip","rect(0 0 0 0)"),B(e,"clip-path","inset(50%)"),B(e,"overflow","hidden"),B(e,"white-space","nowrap"),B(e,"width","1px"),B(e,"height","1px")},m(i,l){V(i,e,l),t&&t.m(e,null)},p(i,l){i[5]?t?t.p(i,l):(t=Me(i),t.c(),t.m(e,null)):t&&(t.d(1),t=null)},d(i){i&&z(e),t&&t.d()}}}function Me(n){let e;return{c(){e=lt(n[6])},l(t){e=ft(t,n[6])},m(t,i){V(t,e,i)},p(t,i){i&64&&ut(e,t[6])},d(t){t&&z(e)}}}function Et(n){let e,t,i,l,c;const u=[bt,wt],s=[];function r(d,S){return d[0][1]?0:1}e=r(n),t=s[e]=u[e](n);let a=n[4]&&Be(n);return{c(){t.c(),i=dt(),a&&a.c(),l=T()},l(d){t.l(d),i=pt(d),a&&a.l(d),l=T()},m(d,S){s[e].m(d,S),V(d,i,S),a&&a.m(d,S),V(d,l,S),c=!0},p(d,[S]){let E=e;e=r(d),e===E?s[e].p(d,S):(Y(),j(s[E],1,1,()=>{s[E]=null}),G(),t=s[e],t?t.p(d,S):(t=s[e]=u[e](d),t.c()),I(t,1),t.m(i.parentNode,i)),d[4]?a?a.p(d,S):(a=Be(d),a.c(),a.m(l.parentNode,l)):a&&(a.d(1),a=null)},i(d){c||(I(t),c=!0)},o(d){j(t),c=!1},d(d){s[e].d(d),d&&z(i),a&&a.d(d),d&&z(l)}}}function Rt(n,e,t){let{stores:i}=e,{page:l}=e,{components:c}=e,{props_0:u=null}=e,{props_1:s=null}=e,{props_2:r=null}=e;ht("__svelte__",i),_t(i.page.notify);let a=!1,d=!1,S=null;return Re(()=>{const E=i.page.subscribe(()=>{a&&(t(5,d=!0),t(6,S=document.title||"untitled page"))});return t(4,a=!0),E}),n.$$set=E=>{"stores"in E&&t(7,i=E.stores),"page"in E&&t(8,l=E.page),"components"in E&&t(0,c=E.components),"props_0"in E&&t(1,u=E.props_0),"props_1"in E&&t(2,s=E.props_1),"props_2"in E&&t(3,r=E.props_2)},n.$$.update=()=>{n.$$.dirty&384&&i.page.set(l)},[c,u,s,r,a,d,S,i,l]}class Lt extends rt{constructor(e){super(),it(this,e,Rt,Et,Qe,{stores:7,page:8,components:0,props_0:1,props_1:2,props_2:3})}}const St={},pe=[()=>$e(()=>import("./pages/__layout.svelte-687870fa.js"),["pages/__layout.svelte-687870fa.js","assets/pages/__layout.svelte-7926a3a8.css","chunks/index-7118b6c4.js"]),()=>$e(()=>import("./error.svelte-2aae800a.js"),["error.svelte-2aae800a.js","chunks/index-7118b6c4.js"]),()=>$e(()=>import("./pages/index.svelte-cba9b380.js"),["pages/index.svelte-cba9b380.js","assets/pages/index.svelte-b52b250e.css","chunks/index-7118b6c4.js","chunks/preload-helper-fca94356.js"])],Ut={"":[[0,2],[1]]};function At(n){n.client}function We(n){return n instanceof Error||n&&n.name&&n.message?n:new Error(JSON.stringify(n))}function Ye(n){if(n.fallthrough)throw new Error("fallthrough is no longer supported. Use matchers instead: https://kit.svelte.dev/docs/routing#advanced-routing-matching");if("maxage"in n)throw new Error("maxage should be replaced with cache: { maxage }");const e=n.status&&n.status>=400&&n.status<=599&&!n.redirect;if(n.error||e){const t=n.status;if(!n.error&&e)return{status:t||500,error:new Error};const i=typeof n.error=="string"?new Error(n.error):n.error;return i instanceof Error?!t||t<400||t>599?(console.warn('"error" returned from load() without a valid status code \u2014 defaulting to 500'),{status:500,error:i}):{status:t,error:i}:{status:500,error:new Error(`"error" property returned from load() must be a string or instance of Error, received type "${typeof i}"`)}}if(n.redirect){if(!n.status||Math.floor(n.status/100)!==3)throw new Error('"redirect" property returned from load() must be accompanied by a 3xx status code');if(typeof n.redirect!="string")throw new Error('"redirect" property returned from load() must be a string')}if(n.dependencies&&(!Array.isArray(n.dependencies)||n.dependencies.some(t=>typeof t!="string")))throw new Error('"dependencies" property returned from load() must be of type string[]');if(n.context)throw new Error('You are returning "context" from a load function. "context" was renamed to "stuff", please adjust your code accordingly.');return n}function Nt(n,e){return n==="/"||e==="ignore"?n:e==="never"?n.endsWith("/")?n.slice(0,-1):n:e==="always"&&!n.endsWith("/")?n+"/":n}function Ge(n){let e=n.baseURI;if(!e){const t=n.getElementsByTagName("base");e=t.length?t[0].href:n.URL}return e}function Le(){return{x:pageXOffset,y:pageYOffset}}function Fe(n){return n.composedPath().find(t=>t instanceof Node&&t.nodeName.toUpperCase()==="A")}function Xe(n){return n instanceof SVGAElement?new URL(n.href.baseVal,document.baseURI):new URL(n.href)}function He(n){const e=de(n);let t=!0;function i(){t=!0,e.update(u=>u)}function l(u){t=!1,e.set(u)}function c(u){let s;return e.subscribe(r=>{(s===void 0||t&&r!==s)&&u(s=r)})}return{notify:i,set:l,subscribe:c}}function xt(){const{set:n,subscribe:e}=de(!1),t="1656003529048";let i;async function l(){clearTimeout(i);const u=await fetch(`${gt}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(u.ok){const{version:s}=await u.json(),r=s!==t;return r&&(n(!0),clearTimeout(i)),r}else throw new Error(`Version check failed: ${u.status}`)}return{subscribe:e,check:l}}function Ot(n){let e=5381,t=n.length;if(typeof n=="string")for(;t;)e=e*33^n.charCodeAt(--t);else for(;t;)e=e*33^n[--t];return(e>>>0).toString(36)}const Se=window.fetch;function Pt(n,e){let i=`script[sveltekit\\:data-type="data"][sveltekit\\:data-url=${JSON.stringify(typeof n=="string"?n:n.url)}]`;e&&typeof e.body=="string"&&(i+=`[sveltekit\\:data-body="${Ot(e.body)}"]`);const l=document.querySelector(i);if(l&&l.textContent){const c=JSON.parse(l.textContent),{body:u}=c,s=Je(c,["body"]);return Promise.resolve(new Response(u,s))}return Se(n,e)}const Tt=/^(\.\.\.)?(\w+)(?:=(\w+))?$/;function jt(n){const e=[],t=[];let i=!0;return{pattern:n===""?/^\/$/:new RegExp(`^${decodeURIComponent(n).split(/(?:@[a-zA-Z0-9_-]+)?(?:\/|$)/).map((c,u,s)=>{const r=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(c);if(r)return e.push(r[1]),t.push(r[2]),"(?:/(.*))?";const a=u===s.length-1;return c&&"/"+c.split(/\[(.+?)\]/).map((d,S)=>{if(S%2){const[,E,Z,F]=Tt.exec(d);return e.push(Z),t.push(F),E?"(.*?)":"([^/]+?)"}return a&&d.includes(".")&&(i=!1),d.normalize().replace(/%5[Bb]/g,"[").replace(/%5[Dd]/g,"]").replace(/#/g,"%23").replace(/\?/g,"%3F").replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}).join("")}).join("")}${i?"/?":""}$`),names:e,types:t}}function It(n,e,t,i){const l={};for(let c=0;c<e.length;c+=1){const u=e[c],s=t[c],r=n[c+1]||"";if(s){const a=i[s];if(!a)throw new Error(`Missing "${s}" param matcher`);if(!a(r))return}l[u]=r}return l}function Ct(n,e,t){return Object.entries(e).map(([l,[c,u,s]])=>{const{pattern:r,names:a,types:d}=jt(l);return{id:l,exec:S=>{const E=r.exec(S);if(E)return It(E,a,d,t)},a:c.map(S=>n[S]),b:u.map(S=>n[S]),has_shadow:!!s}})}const et="sveltekit:scroll",M="sveltekit:index",ke=Ct(pe,Ut,St),Dt=pe[0](),zt=pe[1](),Ze={};let re={};try{re=JSON.parse(sessionStorage[et])}catch{}function Ee(n){re[n]=Le()}function Vt({target:n,session:e,base:t,trailing_slash:i}){var Ce;const l=new Map,c=[],u={url:He({}),page:He({}),navigating:de(null),session:de(e),updated:xt()},s={id:null,promise:null},r={before_navigate:[],after_navigate:[]};let a={branch:[],error:null,session_id:0,stuff:Ze,url:null},d=!1,S=!0,E=!1,Z=1,F=null,Ue,Ae,Ne=!1;u.session.subscribe(async o=>{Ae=o,Ne&&(Z+=1,ge(new URL(location.href),[],!0))}),Ne=!0;let X=!0,C=(Ce=history.state)==null?void 0:Ce[M];C||(C=Date.now(),history.replaceState(se(P({},history.state),{[M]:C}),"",location.href));const he=re[C];he&&(history.scrollRestoration="manual",scrollTo(he.x,he.y));let _e=!1,me,xe;async function Oe(o,{noscroll:p=!1,replaceState:g=!1,keepfocus:f=!1,state:h={}},w){const $=new URL(o,Ge(document));if(X)return be({url:$,scroll:p?Le():null,keepfocus:f,redirect_chain:w,details:{state:h,replaceState:g},accepted:()=>{},blocked:()=>{}});await te($)}async function Pe(o){const p=Ie(o);if(!p)throw new Error("Attempted to prefetch a URL that does not belong to this app");return s.promise=je(p,!1),s.id=p.id,s.promise}async function ge(o,p,g,f,h){var R,U,A;const w=Ie(o),$=xe={};let _=w&&await je(w,g);if(!_&&o.origin===location.origin&&o.pathname===location.pathname&&(_=await ee({status:404,error:new Error(`Not found: ${o.pathname}`),url:o,routeId:null})),!_)return await te(o),!1;if(xe!==$)return!1;if(c.length=0,_.redirect)if(p.length>10||p.includes(o.pathname))_=await ee({status:500,error:new Error("Redirect loop"),url:o,routeId:null});else return X?Oe(new URL(_.redirect,o).href,{},[...p,o.pathname]):await te(new URL(_.redirect,location.href)),!1;else((U=(R=_.props)==null?void 0:R.page)==null?void 0:U.status)>=400&&await u.updated.check()&&await te(o);if(E=!0,f&&f.details){const{details:y}=f,v=y.replaceState?0:1;y.state[M]=C+=v,history[y.replaceState?"replaceState":"pushState"](y.state,"",o)}if(d?(a=_.state,_.props.page&&(_.props.page.url=o),Ue.$set(_.props)):Te(_),f){const{scroll:y,keepfocus:v}=f;if(!v){const b=document.body,k=b.getAttribute("tabindex");(A=getSelection())==null||A.removeAllRanges(),b.tabIndex=-1,b.focus({preventScroll:!0}),k!==null?b.setAttribute("tabindex",k):b.removeAttribute("tabindex")}if(await Ke(),S){const b=o.hash&&document.getElementById(o.hash.slice(1));y?scrollTo(y.x,y.y):b?b.scrollIntoView():scrollTo(0,0)}}else await Ke();s.promise=null,s.id=null,S=!0,_.props.page&&(me=_.props.page);const m=_.state.branch[_.state.branch.length-1];X=(m==null?void 0:m.module.router)!==!1,h&&h(),E=!1}function Te(o){a=o.state;const p=document.querySelector("style[data-sveltekit]");if(p&&p.remove(),me=o.props.page,Ue=new Lt({target:n,props:se(P({},o.props),{stores:u}),hydrate:!0}),X){const g={from:null,to:new URL(location.href)};r.after_navigate.forEach(f=>f(g))}d=!0}async function we({url:o,params:p,stuff:g,branch:f,status:h,error:w,routeId:$}){var v,b;const _=f.filter(Boolean),m=_.find(k=>{var N;return(N=k.loaded)==null?void 0:N.redirect}),R={redirect:(v=m==null?void 0:m.loaded)==null?void 0:v.redirect,state:{url:o,params:p,branch:f,error:w,stuff:g,session_id:Z},props:{components:_.map(k=>k.module.default)}};for(let k=0;k<_.length;k+=1){const N=_[k].loaded;R.props[`props_${k}`]=N?await N.props:null}if(!a.url||o.href!==a.url.href||a.error!==w||a.stuff!==g){R.props.page={error:w,params:p,routeId:$,status:h,stuff:g,url:o};const k=(N,L)=>{Object.defineProperty(R.props.page,N,{get:()=>{throw new Error(`$page.${N} has been replaced by $page.url.${L}`)}})};k("origin","origin"),k("path","pathname"),k("query","searchParams")}const A=_[_.length-1],y=(b=A==null?void 0:A.loaded)==null?void 0:b.cache;if(y){const k=o.pathname+o.search;let N=!1;const L=()=>{l.get(k)===R&&l.delete(k),O(),clearTimeout(x)},x=setTimeout(L,y.maxage*1e3),O=u.session.subscribe(()=>{N&&L()});N=!0,l.set(k,R)}return R}async function Q({status:o,error:p,module:g,url:f,params:h,stuff:w,props:$,routeId:_}){const m={module:g,uses:{params:new Set,url:!1,session:!1,stuff:!1,dependencies:new Set},loaded:null,stuff:w};function R(y){const{href:v}=new URL(y,f);m.uses.dependencies.add(v)}$&&m.uses.dependencies.add(f.href);const U={};for(const y in h)Object.defineProperty(U,y,{get(){return m.uses.params.add(y),h[y]},enumerable:!0});const A=Ae;if(g.load){const y={routeId:_,params:U,props:$||{},get url(){return m.uses.url=!0,new Proxy(f,{get:(b,k)=>{if(k==="hash")throw new Error("url.hash is inaccessible from load. Consider accessing hash from the page store within the script tag of your component.");return Reflect.get(b,k,b)}})},get session(){return m.uses.session=!0,A},get stuff(){return m.uses.stuff=!0,P({},w)},async fetch(b,k){let N;typeof b=="string"?N=b:(N=b.url,k=P({body:b.method==="GET"||b.method==="HEAD"?void 0:await b.blob(),cache:b.cache,credentials:b.credentials,headers:b.headers,integrity:b.integrity,keepalive:b.keepalive,method:b.method,mode:b.mode,redirect:b.redirect,referrer:b.referrer,referrerPolicy:b.referrerPolicy,signal:b.signal},k));const L=new URL(N,f).href;return R(L),d?Se(L,k):Pt(N,k)},status:o!=null?o:null,error:p!=null?p:null};let v;if(v=await g.load.call(null,y),!v)throw new Error("load function must return a value");m.loaded=Ye(v),m.loaded.stuff&&(m.stuff=m.loaded.stuff),m.loaded.dependencies&&m.loaded.dependencies.forEach(R)}else $&&(m.loaded=Ye({props:$}));return m}async function je({id:o,url:p,params:g,route:f},h){var b,k,N;if(s.id===o&&s.promise)return s.promise;if(!h){const L=l.get(o);if(L)return L}const{a:w,b:$,has_shadow:_}=f,m=a.url&&{url:o!==a.url.pathname+a.url.search,params:Object.keys(g).filter(L=>a.params[L]!==g[L]),session:Z!==a.session_id};let R=[],U=Ze,A=!1,y=200,v=null;w.forEach(L=>L().catch(()=>{}));e:for(let L=0;L<w.length;L+=1){let x;try{if(!w[L])continue;const O=await w[L](),D=a.branch[L];if(!D||O!==D.module||m.url&&D.uses.url||m.params.some(W=>D.uses.params.has(W))||m.session&&D.uses.session||Array.from(D.uses.dependencies).some(W=>c.some(fe=>fe(W)))||A&&D.uses.stuff){let W={};const fe=_&&L===w.length-1;if(fe){const ne=await Se(`${p.pathname}${p.pathname.endsWith("/")?"":"/"}__data.json${p.search}`,{headers:{"x-sveltekit-load":"true"}});if(ne.ok){const De=ne.headers.get("x-sveltekit-location");if(De)return{redirect:De,props:{},state:a};W=ne.status===204?{}:await ne.json()}else y=ne.status,v=new Error("Failed to load data")}if(v||(x=await Q({module:O,url:p,params:g,props:W,stuff:U,routeId:f.id})),x&&(fe&&(x.uses.url=!0),x.loaded)){if(x.loaded.error&&(y=x.loaded.status,v=x.loaded.error),x.loaded.redirect)return{redirect:x.loaded.redirect,props:{},state:a};x.loaded.stuff&&(A=!0)}}else x=D}catch(O){y=500,v=We(O)}if(v){for(;L--;)if($[L]){let O,D,le=L;for(;!(D=R[le]);)le-=1;try{if(O=await Q({status:y,error:v,module:await $[L](),url:p,params:g,stuff:D.stuff,routeId:f.id}),(b=O==null?void 0:O.loaded)!=null&&b.error)continue;(k=O==null?void 0:O.loaded)!=null&&k.stuff&&(U=P(P({},U),O.loaded.stuff)),R=R.slice(0,le+1).concat(O);break e}catch{continue}}return await ee({status:y,error:v,url:p,routeId:f.id})}else(N=x==null?void 0:x.loaded)!=null&&N.stuff&&(U=P(P({},U),x.loaded.stuff)),R.push(x)}return await we({url:p,params:g,stuff:U,branch:R,status:y,error:v,routeId:f.id})}async function ee({status:o,error:p,url:g,routeId:f}){var _,m;const h={},w=await Q({module:await Dt,url:g,params:h,stuff:{},routeId:f}),$=await Q({status:o,error:p,module:await zt,url:g,params:h,stuff:w&&w.loaded&&w.loaded.stuff||{},routeId:f});return await we({url:g,params:h,stuff:P(P({},(_=w==null?void 0:w.loaded)==null?void 0:_.stuff),(m=$==null?void 0:$.loaded)==null?void 0:m.stuff),branch:[w,$],status:o,error:p,routeId:f})}function Ie(o){if(o.origin!==location.origin||!o.pathname.startsWith(t))return;const p=decodeURI(o.pathname.slice(t.length)||"/");for(const g of ke){const f=g.exec(p);if(f)return{id:o.pathname+o.search,route:g,params:f,url:o}}}async function be({url:o,scroll:p,keepfocus:g,redirect_chain:f,details:h,accepted:w,blocked:$}){const _=a.url;let m=!1;const R={from:_,to:o,cancel:()=>m=!0};if(r.before_navigate.forEach(y=>y(R)),m){$();return}const U=Nt(o.pathname,i),A=new URL(o.origin+U+o.search+o.hash);Ee(C),w(),d&&u.navigating.set({from:a.url,to:A}),await ge(A,f,!1,{scroll:p,keepfocus:g,details:h},()=>{const y={from:_,to:A};r.after_navigate.forEach(v=>v(y)),u.navigating.set(null)})}function te(o){return location.href=o.href,new Promise(()=>{})}return{after_navigate:o=>{Re(()=>(r.after_navigate.push(o),()=>{const p=r.after_navigate.indexOf(o);r.after_navigate.splice(p,1)}))},before_navigate:o=>{Re(()=>(r.before_navigate.push(o),()=>{const p=r.before_navigate.indexOf(o);r.before_navigate.splice(p,1)}))},disable_scroll_handling:()=>{(E||!d)&&(S=!1)},goto:(o,p={})=>Oe(o,p,[]),invalidate:o=>{if(typeof o=="function")c.push(o);else{const{href:p}=new URL(o,location.href);c.push(g=>g===p)}return F||(F=Promise.resolve().then(async()=>{await ge(new URL(location.href),[],!0),F=null})),F},prefetch:async o=>{const p=new URL(o,Ge(document));await Pe(p)},prefetch_routes:async o=>{const g=(o?ke.filter(f=>o.some(h=>f.exec(h))):ke).map(f=>Promise.all(f.a.map(h=>h())));await Promise.all(g)},_start_router:()=>{history.scrollRestoration="manual",addEventListener("beforeunload",f=>{let h=!1;const w={from:a.url,to:null,cancel:()=>h=!0};r.before_navigate.forEach($=>$(w)),h?(f.preventDefault(),f.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{if(document.visibilityState==="hidden"){Ee(C);try{sessionStorage[et]=JSON.stringify(re)}catch{}}});const o=f=>{const h=Fe(f);h&&h.href&&h.hasAttribute("sveltekit:prefetch")&&Pe(Xe(h))};let p;const g=f=>{clearTimeout(p),p=setTimeout(()=>{var h;(h=f.target)==null||h.dispatchEvent(new CustomEvent("sveltekit:trigger_prefetch",{bubbles:!0}))},20)};addEventListener("touchstart",o),addEventListener("mousemove",g),addEventListener("sveltekit:trigger_prefetch",o),addEventListener("click",f=>{if(!X||f.button||f.which!==1||f.metaKey||f.ctrlKey||f.shiftKey||f.altKey||f.defaultPrevented)return;const h=Fe(f);if(!h||!h.href)return;const w=h instanceof SVGAElement,$=Xe(h);if(!w&&$.origin==="null")return;const _=(h.getAttribute("rel")||"").split(/\s+/);if(h.hasAttribute("download")||_.includes("external")||h.hasAttribute("sveltekit:reload")||(w?h.target.baseVal:h.target))return;const[m,R]=$.href.split("#");if(R!==void 0&&m===location.href.split("#")[0]){_e=!0,Ee(C),u.page.set(se(P({},me),{url:$})),u.page.notify();return}be({url:$,scroll:h.hasAttribute("sveltekit:noscroll")?Le():null,keepfocus:!1,redirect_chain:[],details:{state:{},replaceState:$.href===location.href},accepted:()=>f.preventDefault(),blocked:()=>f.preventDefault()})}),addEventListener("popstate",f=>{if(f.state&&X){if(f.state[M]===C)return;be({url:new URL(location.href),scroll:re[f.state[M]],keepfocus:!1,redirect_chain:[],details:null,accepted:()=>{C=f.state[M]},blocked:()=>{const h=C-f.state[M];history.go(h)}})}}),addEventListener("hashchange",()=>{_e&&(_e=!1,history.replaceState(se(P({},history.state),{[M]:++C}),"",location.href))})},_hydrate:async({status:o,error:p,nodes:g,params:f,routeId:h})=>{const w=new URL(location.href),$=[];let _={},m,R;try{for(let U=0;U<g.length;U+=1){const A=U===g.length-1;let y;if(A){const b=document.querySelector('script[sveltekit\\:data-type="props"]');b&&(y=JSON.parse(b.textContent))}const v=await Q({module:await pe[g[U]](),url:w,params:f,stuff:_,status:A?o:void 0,error:A?p:void 0,props:y,routeId:h});if(y&&(v.uses.dependencies.add(w.href),v.uses.url=!0),$.push(v),v&&v.loaded)if(v.loaded.error){if(p)throw v.loaded.error;R={status:v.loaded.status,error:v.loaded.error,url:w,routeId:h}}else v.loaded.stuff&&(_=P(P({},_),v.loaded.stuff))}m=R?await ee(R):await we({url:w,params:f,stuff:_,branch:$,status:o,error:p,routeId:h})}catch(U){if(p)throw U;m=await ee({status:500,error:We(U),url:w,routeId:h})}m.redirect&&await te(new URL(m.redirect,location.href)),Te(m)}}}async function Bt({paths:n,target:e,session:t,route:i,spa:l,trailing_slash:c,hydrate:u}){const s=Vt({target:e,session:t,base:n.base,trailing_slash:c});At({client:s}),mt(n),u&&await s._hydrate(u),i&&(l&&s.goto(location.href,{replaceState:!0}),s._start_router()),dispatchEvent(new CustomEvent("sveltekit:start"))}export{Bt as start};
static/_app/immutable/start-eac39b20.js DELETED
@@ -1 +0,0 @@
1
- var st=Object.defineProperty,rt=Object.defineProperties;var it=Object.getOwnPropertyDescriptors;var ue=Object.getOwnPropertySymbols;var Ve=Object.prototype.hasOwnProperty,qe=Object.prototype.propertyIsEnumerable;var ze=(n,e,t)=>e in n?st(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,P=(n,e)=>{for(var t in e||(e={}))Ve.call(e,t)&&ze(n,t,e[t]);if(ue)for(var t of ue(e))qe.call(e,t)&&ze(n,t,e[t]);return n},se=(n,e)=>rt(n,it(e));var Je=(n,e)=>{var t={};for(var i in n)Ve.call(n,i)&&e.indexOf(i)<0&&(t[i]=n[i]);if(n!=null&&ue)for(var i of ue(n))e.indexOf(i)<0&&qe.call(n,i)&&(t[i]=n[i]);return t};import{s as et,n as ye,S as at,i as ot,e as ct,c as lt,a as ft,d as z,b as ve,f as B,g as V,t as ut,h as dt,j as pt,k as ht,l as T,m as _t,o as Y,p as j,q as G,r as I,u as mt,v as gt,w as Re,x as q,y as ie,z as J,A as ae,B as oe,C as K,D as ce,E as Ke}from"./chunks/index-7118b6c4.js";import{_ as $e}from"./chunks/preload-helper-8235996a.js";const H=[];function de(n,e=ye){let t;const i=new Set;function l(s){if(et(n,s)&&(n=s,t)){const r=!H.length;for(const a of i)a[1](),H.push(a,n);if(r){for(let a=0;a<H.length;a+=2)H[a][0](H[a+1]);H.length=0}}}function c(s){l(s(n))}function u(s,r=ye){const a=[s,r];return i.add(a),i.size===1&&(t=e(l)||ye),s(n),()=>{i.delete(a),i.size===0&&(t(),t=null)}}return{set:l,update:c,subscribe:u}}let Be="",tt="";function wt(n){Be=n.base,tt=n.assets||Be}function bt(n){let e,t,i;const l=[n[1]||{}];var c=n[0][0];function u(s){let r={};for(let a=0;a<l.length;a+=1)r=ce(r,l[a]);return{props:r}}return c&&(e=new c(u())),{c(){e&&q(e.$$.fragment),t=T()},l(s){e&&ie(e.$$.fragment,s),t=T()},m(s,r){e&&J(e,s,r),V(s,t,r),i=!0},p(s,r){const a=r&2?ae(l,[oe(s[1]||{})]):{};if(c!==(c=s[0][0])){if(e){Y();const d=e;j(d.$$.fragment,1,0,()=>{K(d,1)}),G()}c?(e=new c(u()),q(e.$$.fragment),I(e.$$.fragment,1),J(e,t.parentNode,t)):e=null}else c&&e.$set(a)},i(s){i||(e&&I(e.$$.fragment,s),i=!0)},o(s){e&&j(e.$$.fragment,s),i=!1},d(s){s&&z(t),e&&K(e,s)}}}function yt(n){let e,t,i;const l=[n[1]||{}];var c=n[0][0];function u(s){let r={$$slots:{default:[Et]},$$scope:{ctx:s}};for(let a=0;a<l.length;a+=1)r=ce(r,l[a]);return{props:r}}return c&&(e=new c(u(n))),{c(){e&&q(e.$$.fragment),t=T()},l(s){e&&ie(e.$$.fragment,s),t=T()},m(s,r){e&&J(e,s,r),V(s,t,r),i=!0},p(s,r){const a=r&2?ae(l,[oe(s[1]||{})]):{};if(r&525&&(a.$$scope={dirty:r,ctx:s}),c!==(c=s[0][0])){if(e){Y();const d=e;j(d.$$.fragment,1,0,()=>{K(d,1)}),G()}c?(e=new c(u(s)),q(e.$$.fragment),I(e.$$.fragment,1),J(e,t.parentNode,t)):e=null}else c&&e.$set(a)},i(s){i||(e&&I(e.$$.fragment,s),i=!0)},o(s){e&&j(e.$$.fragment,s),i=!1},d(s){s&&z(t),e&&K(e,s)}}}function vt(n){let e,t,i;const l=[n[2]||{}];var c=n[0][1];function u(s){let r={};for(let a=0;a<l.length;a+=1)r=ce(r,l[a]);return{props:r}}return c&&(e=new c(u())),{c(){e&&q(e.$$.fragment),t=T()},l(s){e&&ie(e.$$.fragment,s),t=T()},m(s,r){e&&J(e,s,r),V(s,t,r),i=!0},p(s,r){const a=r&4?ae(l,[oe(s[2]||{})]):{};if(c!==(c=s[0][1])){if(e){Y();const d=e;j(d.$$.fragment,1,0,()=>{K(d,1)}),G()}c?(e=new c(u()),q(e.$$.fragment),I(e.$$.fragment,1),J(e,t.parentNode,t)):e=null}else c&&e.$set(a)},i(s){i||(e&&I(e.$$.fragment,s),i=!0)},o(s){e&&j(e.$$.fragment,s),i=!1},d(s){s&&z(t),e&&K(e,s)}}}function $t(n){let e,t,i;const l=[n[2]||{}];var c=n[0][1];function u(s){let r={$$slots:{default:[kt]},$$scope:{ctx:s}};for(let a=0;a<l.length;a+=1)r=ce(r,l[a]);return{props:r}}return c&&(e=new c(u(n))),{c(){e&&q(e.$$.fragment),t=T()},l(s){e&&ie(e.$$.fragment,s),t=T()},m(s,r){e&&J(e,s,r),V(s,t,r),i=!0},p(s,r){const a=r&4?ae(l,[oe(s[2]||{})]):{};if(r&521&&(a.$$scope={dirty:r,ctx:s}),c!==(c=s[0][1])){if(e){Y();const d=e;j(d.$$.fragment,1,0,()=>{K(d,1)}),G()}c?(e=new c(u(s)),q(e.$$.fragment),I(e.$$.fragment,1),J(e,t.parentNode,t)):e=null}else c&&e.$set(a)},i(s){i||(e&&I(e.$$.fragment,s),i=!0)},o(s){e&&j(e.$$.fragment,s),i=!1},d(s){s&&z(t),e&&K(e,s)}}}function kt(n){let e,t,i;const l=[n[3]||{}];var c=n[0][2];function u(s){let r={};for(let a=0;a<l.length;a+=1)r=ce(r,l[a]);return{props:r}}return c&&(e=new c(u())),{c(){e&&q(e.$$.fragment),t=T()},l(s){e&&ie(e.$$.fragment,s),t=T()},m(s,r){e&&J(e,s,r),V(s,t,r),i=!0},p(s,r){const a=r&8?ae(l,[oe(s[3]||{})]):{};if(c!==(c=s[0][2])){if(e){Y();const d=e;j(d.$$.fragment,1,0,()=>{K(d,1)}),G()}c?(e=new c(u()),q(e.$$.fragment),I(e.$$.fragment,1),J(e,t.parentNode,t)):e=null}else c&&e.$set(a)},i(s){i||(e&&I(e.$$.fragment,s),i=!0)},o(s){e&&j(e.$$.fragment,s),i=!1},d(s){s&&z(t),e&&K(e,s)}}}function Et(n){let e,t,i,l;const c=[$t,vt],u=[];function s(r,a){return r[0][2]?0:1}return e=s(n),t=u[e]=c[e](n),{c(){t.c(),i=T()},l(r){t.l(r),i=T()},m(r,a){u[e].m(r,a),V(r,i,a),l=!0},p(r,a){let d=e;e=s(r),e===d?u[e].p(r,a):(Y(),j(u[d],1,1,()=>{u[d]=null}),G(),t=u[e],t?t.p(r,a):(t=u[e]=c[e](r),t.c()),I(t,1),t.m(i.parentNode,i))},i(r){l||(I(t),l=!0)},o(r){j(t),l=!1},d(r){u[e].d(r),r&&z(i)}}}function Me(n){let e,t=n[5]&&We(n);return{c(){e=ct("div"),t&&t.c(),this.h()},l(i){e=lt(i,"DIV",{id:!0,"aria-live":!0,"aria-atomic":!0,style:!0});var l=ft(e);t&&t.l(l),l.forEach(z),this.h()},h(){ve(e,"id","svelte-announcer"),ve(e,"aria-live","assertive"),ve(e,"aria-atomic","true"),B(e,"position","absolute"),B(e,"left","0"),B(e,"top","0"),B(e,"clip","rect(0 0 0 0)"),B(e,"clip-path","inset(50%)"),B(e,"overflow","hidden"),B(e,"white-space","nowrap"),B(e,"width","1px"),B(e,"height","1px")},m(i,l){V(i,e,l),t&&t.m(e,null)},p(i,l){i[5]?t?t.p(i,l):(t=We(i),t.c(),t.m(e,null)):t&&(t.d(1),t=null)},d(i){i&&z(e),t&&t.d()}}}function We(n){let e;return{c(){e=ut(n[6])},l(t){e=dt(t,n[6])},m(t,i){V(t,e,i)},p(t,i){i&64&&pt(e,t[6])},d(t){t&&z(e)}}}function Rt(n){let e,t,i,l,c;const u=[yt,bt],s=[];function r(d,S){return d[0][1]?0:1}e=r(n),t=s[e]=u[e](n);let a=n[4]&&Me(n);return{c(){t.c(),i=ht(),a&&a.c(),l=T()},l(d){t.l(d),i=_t(d),a&&a.l(d),l=T()},m(d,S){s[e].m(d,S),V(d,i,S),a&&a.m(d,S),V(d,l,S),c=!0},p(d,[S]){let E=e;e=r(d),e===E?s[e].p(d,S):(Y(),j(s[E],1,1,()=>{s[E]=null}),G(),t=s[e],t?t.p(d,S):(t=s[e]=u[e](d),t.c()),I(t,1),t.m(i.parentNode,i)),d[4]?a?a.p(d,S):(a=Me(d),a.c(),a.m(l.parentNode,l)):a&&(a.d(1),a=null)},i(d){c||(I(t),c=!0)},o(d){j(t),c=!1},d(d){s[e].d(d),d&&z(i),a&&a.d(d),d&&z(l)}}}function Lt(n,e,t){let{stores:i}=e,{page:l}=e,{components:c}=e,{props_0:u=null}=e,{props_1:s=null}=e,{props_2:r=null}=e;mt("__svelte__",i),gt(i.page.notify);let a=!1,d=!1,S=null;return Re(()=>{const E=i.page.subscribe(()=>{a&&(t(5,d=!0),t(6,S=document.title||"untitled page"))});return t(4,a=!0),E}),n.$$set=E=>{"stores"in E&&t(7,i=E.stores),"page"in E&&t(8,l=E.page),"components"in E&&t(0,c=E.components),"props_0"in E&&t(1,u=E.props_0),"props_1"in E&&t(2,s=E.props_1),"props_2"in E&&t(3,r=E.props_2)},n.$$.update=()=>{n.$$.dirty&384&&i.page.set(l)},[c,u,s,r,a,d,S,i,l]}class St extends at{constructor(e){super(),ot(this,e,Lt,Rt,et,{stores:7,page:8,components:0,props_0:1,props_1:2,props_2:3})}}const Ut={},pe=[()=>$e(()=>import("./pages/__layout.svelte-4f8272ef.js"),["pages/__layout.svelte-4f8272ef.js","assets/pages/__layout.svelte-37e5deae.css","chunks/index-7118b6c4.js"]),()=>$e(()=>import("./error.svelte-2aae800a.js"),["error.svelte-2aae800a.js","chunks/index-7118b6c4.js"]),()=>$e(()=>import("./pages/index.svelte-5ed7efa8.js"),["pages/index.svelte-5ed7efa8.js","assets/pages/index.svelte-b52b250e.css","chunks/index-7118b6c4.js","chunks/preload-helper-8235996a.js"])],At={"":[[0,2],[1]]};function Nt(n){n.client}function Ye(n){return n instanceof Error||n&&n.name&&n.message?n:new Error(JSON.stringify(n))}function Ge(n){if(n.fallthrough)throw new Error("fallthrough is no longer supported. Use matchers instead: https://kit.svelte.dev/docs/routing#advanced-routing-matching");if("maxage"in n)throw new Error("maxage should be replaced with cache: { maxage }");const e=n.status&&n.status>=400&&n.status<=599&&!n.redirect;if(n.error||e){const t=n.status;if(!n.error&&e)return{status:t||500,error:new Error};const i=typeof n.error=="string"?new Error(n.error):n.error;return i instanceof Error?!t||t<400||t>599?(console.warn('"error" returned from load() without a valid status code \u2014 defaulting to 500'),{status:500,error:i}):{status:t,error:i}:{status:500,error:new Error(`"error" property returned from load() must be a string or instance of Error, received type "${typeof i}"`)}}if(n.redirect){if(!n.status||Math.floor(n.status/100)!==3)throw new Error('"redirect" property returned from load() must be accompanied by a 3xx status code');if(typeof n.redirect!="string")throw new Error('"redirect" property returned from load() must be a string')}if(n.dependencies&&(!Array.isArray(n.dependencies)||n.dependencies.some(t=>typeof t!="string")))throw new Error('"dependencies" property returned from load() must be of type string[]');if(n.context)throw new Error('You are returning "context" from a load function. "context" was renamed to "stuff", please adjust your code accordingly.');return n}function xt(n,e){return n==="/"||e==="ignore"?n:e==="never"?n.endsWith("/")?n.slice(0,-1):n:e==="always"&&!n.endsWith("/")?n+"/":n}function Fe(n){let e=n.baseURI;if(!e){const t=n.getElementsByTagName("base");e=t.length?t[0].href:n.URL}return e}function Le(){return{x:pageXOffset,y:pageYOffset}}function Xe(n){return n.composedPath().find(t=>t instanceof Node&&t.nodeName.toUpperCase()==="A")}function He(n){return n instanceof SVGAElement?new URL(n.href.baseVal,document.baseURI):new URL(n.href)}function Ze(n){const e=de(n);let t=!0;function i(){t=!0,e.update(u=>u)}function l(u){t=!1,e.set(u)}function c(u){let s;return e.subscribe(r=>{(s===void 0||t&&r!==s)&&u(s=r)})}return{notify:i,set:l,subscribe:c}}function Ot(){const{set:n,subscribe:e}=de(!1),t="1655838611775";let i;async function l(){clearTimeout(i);const u=await fetch(`${tt}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(u.ok){const{version:s}=await u.json(),r=s!==t;return r&&(n(!0),clearTimeout(i)),r}else throw new Error(`Version check failed: ${u.status}`)}return{subscribe:e,check:l}}function Pt(n){let e=5381,t=n.length;if(typeof n=="string")for(;t;)e=e*33^n.charCodeAt(--t);else for(;t;)e=e*33^n[--t];return(e>>>0).toString(36)}const Se=window.fetch;function Tt(n,e){let i=`script[sveltekit\\:data-type="data"][sveltekit\\:data-url=${JSON.stringify(typeof n=="string"?n:n.url)}]`;e&&typeof e.body=="string"&&(i+=`[sveltekit\\:data-body="${Pt(e.body)}"]`);const l=document.querySelector(i);if(l&&l.textContent){const c=JSON.parse(l.textContent),{body:u}=c,s=Je(c,["body"]);return Promise.resolve(new Response(u,s))}return Se(n,e)}const jt=/^(\.\.\.)?(\w+)(?:=(\w+))?$/;function It(n){const e=[],t=[];let i=!0;return{pattern:n===""?/^\/$/:new RegExp(`^${decodeURIComponent(n).split(/(?:@[a-zA-Z0-9_-]+)?(?:\/|$)/).map((c,u,s)=>{const r=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(c);if(r)return e.push(r[1]),t.push(r[2]),"(?:/(.*))?";const a=u===s.length-1;return c&&"/"+c.split(/\[(.+?)\]/).map((d,S)=>{if(S%2){const[,E,Z,F]=jt.exec(d);return e.push(Z),t.push(F),E?"(.*?)":"([^/]+?)"}return a&&d.includes(".")&&(i=!1),d.normalize().replace(/%5[Bb]/g,"[").replace(/%5[Dd]/g,"]").replace(/#/g,"%23").replace(/\?/g,"%3F").replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}).join("")}).join("")}${i?"/?":""}$`),names:e,types:t}}function Ct(n,e,t,i){const l={};for(let c=0;c<e.length;c+=1){const u=e[c],s=t[c],r=n[c+1]||"";if(s){const a=i[s];if(!a)throw new Error(`Missing "${s}" param matcher`);if(!a(r))return}l[u]=r}return l}function Dt(n,e,t){return Object.entries(e).map(([l,[c,u,s]])=>{const{pattern:r,names:a,types:d}=It(l);return{id:l,exec:S=>{const E=r.exec(S);if(E)return Ct(E,a,d,t)},a:c.map(S=>n[S]),b:u.map(S=>n[S]),has_shadow:!!s}})}const nt="sveltekit:scroll",M="sveltekit:index",ke=Dt(pe,At,Ut),zt=pe[0](),Vt=pe[1](),Qe={};let re={};try{re=JSON.parse(sessionStorage[nt])}catch{}function Ee(n){re[n]=Le()}function qt({target:n,session:e,base:t,trailing_slash:i}){var Ce;const l=new Map,c=[],u={url:Ze({}),page:Ze({}),navigating:de(null),session:de(e),updated:Ot()},s={id:null,promise:null},r={before_navigate:[],after_navigate:[]};let a={branch:[],error:null,session_id:0,stuff:Qe,url:null},d=!1,S=!0,E=!1,Z=1,F=null,Ue,Ae,Ne=!1;u.session.subscribe(async o=>{Ae=o,Ne&&(Z+=1,ge(new URL(location.href),[],!0))}),Ne=!0;let X=!0,C=(Ce=history.state)==null?void 0:Ce[M];C||(C=Date.now(),history.replaceState(se(P({},history.state),{[M]:C}),"",location.href));const he=re[C];he&&(history.scrollRestoration="manual",scrollTo(he.x,he.y));let _e=!1,me,xe;async function Oe(o,{noscroll:p=!1,replaceState:g=!1,keepfocus:f=!1,state:h={}},w){const $=new URL(o,Fe(document));if(X)return be({url:$,scroll:p?Le():null,keepfocus:f,redirect_chain:w,details:{state:h,replaceState:g},accepted:()=>{},blocked:()=>{}});await te($)}async function Pe(o){const p=Ie(o);if(!p)throw new Error("Attempted to prefetch a URL that does not belong to this app");return s.promise=je(p,!1),s.id=p.id,s.promise}async function ge(o,p,g,f,h){var R,U,A;const w=Ie(o),$=xe={};let _=w&&await je(w,g);if(!_&&o.origin===location.origin&&o.pathname===location.pathname&&(_=await ee({status:404,error:new Error(`Not found: ${o.pathname}`),url:o,routeId:null})),!_)return await te(o),!1;if(xe!==$)return!1;if(c.length=0,_.redirect)if(p.length>10||p.includes(o.pathname))_=await ee({status:500,error:new Error("Redirect loop"),url:o,routeId:null});else return X?Oe(new URL(_.redirect,o).href,{},[...p,o.pathname]):await te(new URL(_.redirect,location.href)),!1;else((U=(R=_.props)==null?void 0:R.page)==null?void 0:U.status)>=400&&await u.updated.check()&&await te(o);if(E=!0,f&&f.details){const{details:y}=f,v=y.replaceState?0:1;y.state[M]=C+=v,history[y.replaceState?"replaceState":"pushState"](y.state,"",o)}if(d?(a=_.state,_.props.page&&(_.props.page.url=o),Ue.$set(_.props)):Te(_),f){const{scroll:y,keepfocus:v}=f;if(!v){const b=document.body,k=b.getAttribute("tabindex");(A=getSelection())==null||A.removeAllRanges(),b.tabIndex=-1,b.focus({preventScroll:!0}),k!==null?b.setAttribute("tabindex",k):b.removeAttribute("tabindex")}if(await Ke(),S){const b=o.hash&&document.getElementById(o.hash.slice(1));y?scrollTo(y.x,y.y):b?b.scrollIntoView():scrollTo(0,0)}}else await Ke();s.promise=null,s.id=null,S=!0,_.props.page&&(me=_.props.page);const m=_.state.branch[_.state.branch.length-1];X=(m==null?void 0:m.module.router)!==!1,h&&h(),E=!1}function Te(o){a=o.state;const p=document.querySelector("style[data-sveltekit]");if(p&&p.remove(),me=o.props.page,Ue=new St({target:n,props:se(P({},o.props),{stores:u}),hydrate:!0}),X){const g={from:null,to:new URL(location.href)};r.after_navigate.forEach(f=>f(g))}d=!0}async function we({url:o,params:p,stuff:g,branch:f,status:h,error:w,routeId:$}){var v,b;const _=f.filter(Boolean),m=_.find(k=>{var N;return(N=k.loaded)==null?void 0:N.redirect}),R={redirect:(v=m==null?void 0:m.loaded)==null?void 0:v.redirect,state:{url:o,params:p,branch:f,error:w,stuff:g,session_id:Z},props:{components:_.map(k=>k.module.default)}};for(let k=0;k<_.length;k+=1){const N=_[k].loaded;R.props[`props_${k}`]=N?await N.props:null}if(!a.url||o.href!==a.url.href||a.error!==w||a.stuff!==g){R.props.page={error:w,params:p,routeId:$,status:h,stuff:g,url:o};const k=(N,L)=>{Object.defineProperty(R.props.page,N,{get:()=>{throw new Error(`$page.${N} has been replaced by $page.url.${L}`)}})};k("origin","origin"),k("path","pathname"),k("query","searchParams")}const A=_[_.length-1],y=(b=A==null?void 0:A.loaded)==null?void 0:b.cache;if(y){const k=o.pathname+o.search;let N=!1;const L=()=>{l.get(k)===R&&l.delete(k),O(),clearTimeout(x)},x=setTimeout(L,y.maxage*1e3),O=u.session.subscribe(()=>{N&&L()});N=!0,l.set(k,R)}return R}async function Q({status:o,error:p,module:g,url:f,params:h,stuff:w,props:$,routeId:_}){const m={module:g,uses:{params:new Set,url:!1,session:!1,stuff:!1,dependencies:new Set},loaded:null,stuff:w};function R(y){const{href:v}=new URL(y,f);m.uses.dependencies.add(v)}$&&m.uses.dependencies.add(f.href);const U={};for(const y in h)Object.defineProperty(U,y,{get(){return m.uses.params.add(y),h[y]},enumerable:!0});const A=Ae;if(g.load){const y={routeId:_,params:U,props:$||{},get url(){return m.uses.url=!0,new Proxy(f,{get:(b,k)=>{if(k==="hash")throw new Error("url.hash is inaccessible from load. Consider accessing hash from the page store within the script tag of your component.");return Reflect.get(b,k,b)}})},get session(){return m.uses.session=!0,A},get stuff(){return m.uses.stuff=!0,P({},w)},async fetch(b,k){let N;typeof b=="string"?N=b:(N=b.url,k=P({body:b.method==="GET"||b.method==="HEAD"?void 0:await b.blob(),cache:b.cache,credentials:b.credentials,headers:b.headers,integrity:b.integrity,keepalive:b.keepalive,method:b.method,mode:b.mode,redirect:b.redirect,referrer:b.referrer,referrerPolicy:b.referrerPolicy,signal:b.signal},k));const L=new URL(N,f).href;return R(L),d?Se(L,k):Tt(N,k)},status:o!=null?o:null,error:p!=null?p:null};let v;if(v=await g.load.call(null,y),!v)throw new Error("load function must return a value");m.loaded=Ge(v),m.loaded.stuff&&(m.stuff=m.loaded.stuff),m.loaded.dependencies&&m.loaded.dependencies.forEach(R)}else $&&(m.loaded=Ge({props:$}));return m}async function je({id:o,url:p,params:g,route:f},h){var b,k,N;if(s.id===o&&s.promise)return s.promise;if(!h){const L=l.get(o);if(L)return L}const{a:w,b:$,has_shadow:_}=f,m=a.url&&{url:o!==a.url.pathname+a.url.search,params:Object.keys(g).filter(L=>a.params[L]!==g[L]),session:Z!==a.session_id};let R=[],U=Qe,A=!1,y=200,v=null;w.forEach(L=>L().catch(()=>{}));e:for(let L=0;L<w.length;L+=1){let x;try{if(!w[L])continue;const O=await w[L](),D=a.branch[L];if(!D||O!==D.module||m.url&&D.uses.url||m.params.some(W=>D.uses.params.has(W))||m.session&&D.uses.session||Array.from(D.uses.dependencies).some(W=>c.some(fe=>fe(W)))||A&&D.uses.stuff){let W={};const fe=_&&L===w.length-1;if(fe){const ne=await Se(`${p.pathname}${p.pathname.endsWith("/")?"":"/"}__data.json${p.search}`,{headers:{"x-sveltekit-load":"true"}});if(ne.ok){const De=ne.headers.get("x-sveltekit-location");if(De)return{redirect:De,props:{},state:a};W=ne.status===204?{}:await ne.json()}else y=ne.status,v=new Error("Failed to load data")}if(v||(x=await Q({module:O,url:p,params:g,props:W,stuff:U,routeId:f.id})),x&&(fe&&(x.uses.url=!0),x.loaded)){if(x.loaded.error&&(y=x.loaded.status,v=x.loaded.error),x.loaded.redirect)return{redirect:x.loaded.redirect,props:{},state:a};x.loaded.stuff&&(A=!0)}}else x=D}catch(O){y=500,v=Ye(O)}if(v){for(;L--;)if($[L]){let O,D,le=L;for(;!(D=R[le]);)le-=1;try{if(O=await Q({status:y,error:v,module:await $[L](),url:p,params:g,stuff:D.stuff,routeId:f.id}),(b=O==null?void 0:O.loaded)!=null&&b.error)continue;(k=O==null?void 0:O.loaded)!=null&&k.stuff&&(U=P(P({},U),O.loaded.stuff)),R=R.slice(0,le+1).concat(O);break e}catch{continue}}return await ee({status:y,error:v,url:p,routeId:f.id})}else(N=x==null?void 0:x.loaded)!=null&&N.stuff&&(U=P(P({},U),x.loaded.stuff)),R.push(x)}return await we({url:p,params:g,stuff:U,branch:R,status:y,error:v,routeId:f.id})}async function ee({status:o,error:p,url:g,routeId:f}){var _,m;const h={},w=await Q({module:await zt,url:g,params:h,stuff:{},routeId:f}),$=await Q({status:o,error:p,module:await Vt,url:g,params:h,stuff:w&&w.loaded&&w.loaded.stuff||{},routeId:f});return await we({url:g,params:h,stuff:P(P({},(_=w==null?void 0:w.loaded)==null?void 0:_.stuff),(m=$==null?void 0:$.loaded)==null?void 0:m.stuff),branch:[w,$],status:o,error:p,routeId:f})}function Ie(o){if(o.origin!==location.origin||!o.pathname.startsWith(t))return;const p=decodeURI(o.pathname.slice(t.length)||"/");for(const g of ke){const f=g.exec(p);if(f)return{id:o.pathname+o.search,route:g,params:f,url:o}}}async function be({url:o,scroll:p,keepfocus:g,redirect_chain:f,details:h,accepted:w,blocked:$}){const _=a.url;let m=!1;const R={from:_,to:o,cancel:()=>m=!0};if(r.before_navigate.forEach(y=>y(R)),m){$();return}const U=xt(o.pathname,i),A=new URL(o.origin+U+o.search+o.hash);Ee(C),w(),d&&u.navigating.set({from:a.url,to:A}),await ge(A,f,!1,{scroll:p,keepfocus:g,details:h},()=>{const y={from:_,to:A};r.after_navigate.forEach(v=>v(y)),u.navigating.set(null)})}function te(o){return location.href=o.href,new Promise(()=>{})}return{after_navigate:o=>{Re(()=>(r.after_navigate.push(o),()=>{const p=r.after_navigate.indexOf(o);r.after_navigate.splice(p,1)}))},before_navigate:o=>{Re(()=>(r.before_navigate.push(o),()=>{const p=r.before_navigate.indexOf(o);r.before_navigate.splice(p,1)}))},disable_scroll_handling:()=>{(E||!d)&&(S=!1)},goto:(o,p={})=>Oe(o,p,[]),invalidate:o=>{if(typeof o=="function")c.push(o);else{const{href:p}=new URL(o,location.href);c.push(g=>g===p)}return F||(F=Promise.resolve().then(async()=>{await ge(new URL(location.href),[],!0),F=null})),F},prefetch:async o=>{const p=new URL(o,Fe(document));await Pe(p)},prefetch_routes:async o=>{const g=(o?ke.filter(f=>o.some(h=>f.exec(h))):ke).map(f=>Promise.all(f.a.map(h=>h())));await Promise.all(g)},_start_router:()=>{history.scrollRestoration="manual",addEventListener("beforeunload",f=>{let h=!1;const w={from:a.url,to:null,cancel:()=>h=!0};r.before_navigate.forEach($=>$(w)),h?(f.preventDefault(),f.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{if(document.visibilityState==="hidden"){Ee(C);try{sessionStorage[nt]=JSON.stringify(re)}catch{}}});const o=f=>{const h=Xe(f);h&&h.href&&h.hasAttribute("sveltekit:prefetch")&&Pe(He(h))};let p;const g=f=>{clearTimeout(p),p=setTimeout(()=>{var h;(h=f.target)==null||h.dispatchEvent(new CustomEvent("sveltekit:trigger_prefetch",{bubbles:!0}))},20)};addEventListener("touchstart",o),addEventListener("mousemove",g),addEventListener("sveltekit:trigger_prefetch",o),addEventListener("click",f=>{if(!X||f.button||f.which!==1||f.metaKey||f.ctrlKey||f.shiftKey||f.altKey||f.defaultPrevented)return;const h=Xe(f);if(!h||!h.href)return;const w=h instanceof SVGAElement,$=He(h);if(!w&&$.origin==="null")return;const _=(h.getAttribute("rel")||"").split(/\s+/);if(h.hasAttribute("download")||_.includes("external")||h.hasAttribute("sveltekit:reload")||(w?h.target.baseVal:h.target))return;const[m,R]=$.href.split("#");if(R!==void 0&&m===location.href.split("#")[0]){_e=!0,Ee(C),u.page.set(se(P({},me),{url:$})),u.page.notify();return}be({url:$,scroll:h.hasAttribute("sveltekit:noscroll")?Le():null,keepfocus:!1,redirect_chain:[],details:{state:{},replaceState:$.href===location.href},accepted:()=>f.preventDefault(),blocked:()=>f.preventDefault()})}),addEventListener("popstate",f=>{if(f.state&&X){if(f.state[M]===C)return;be({url:new URL(location.href),scroll:re[f.state[M]],keepfocus:!1,redirect_chain:[],details:null,accepted:()=>{C=f.state[M]},blocked:()=>{const h=C-f.state[M];history.go(h)}})}}),addEventListener("hashchange",()=>{_e&&(_e=!1,history.replaceState(se(P({},history.state),{[M]:++C}),"",location.href))})},_hydrate:async({status:o,error:p,nodes:g,params:f,routeId:h})=>{const w=new URL(location.href),$=[];let _={},m,R;try{for(let U=0;U<g.length;U+=1){const A=U===g.length-1;let y;if(A){const b=document.querySelector('script[sveltekit\\:data-type="props"]');b&&(y=JSON.parse(b.textContent))}const v=await Q({module:await pe[g[U]](),url:w,params:f,stuff:_,status:A?o:void 0,error:A?p:void 0,props:y,routeId:h});if(y&&(v.uses.dependencies.add(w.href),v.uses.url=!0),$.push(v),v&&v.loaded)if(v.loaded.error){if(p)throw v.loaded.error;R={status:v.loaded.status,error:v.loaded.error,url:w,routeId:h}}else v.loaded.stuff&&(_=P(P({},_),v.loaded.stuff))}m=R?await ee(R):await we({url:w,params:f,stuff:_,branch:$,status:o,error:p,routeId:h})}catch(U){if(p)throw U;m=await ee({status:500,error:Ye(U),url:w,routeId:h})}m.redirect&&await te(new URL(m.redirect,location.href)),Te(m)}}}async function Mt({paths:n,target:e,session:t,route:i,spa:l,trailing_slash:c,hydrate:u}){const s=qt({target:e,session:t,base:n.base,trailing_slash:c});Nt({client:s}),wt(n),u&&await s._hydrate(u),i&&(l&&s.goto(location.href,{replaceState:!0}),s._start_router()),dispatchEvent(new CustomEvent("sveltekit:start"))}export{Mt as start};
 
 
static/_app/version.json CHANGED
@@ -1 +1 @@
1
- {"version":"1655838611775"}
 
1
+ {"version":"1656003529048"}
static/img1.jpg ADDED
static/img2.jpg ADDED
static/index.html CHANGED
@@ -6,13 +6,13 @@
6
  <meta name="viewport" content="width=device-width, initial-scale=1" />
7
  <script src="https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/4.3.1/iframeResizer.contentWindow.min.js"></script>
8
  <meta http-equiv="content-security-policy" content="">
9
- <link rel="stylesheet" href="/embed/huggingface-projects/wordalle/static/_app/immutable/assets/pages/__layout.svelte-37e5deae.css">
10
  <link rel="stylesheet" href="/embed/huggingface-projects/wordalle/static/_app/immutable/assets/pages/index.svelte-b52b250e.css">
11
- <link rel="modulepreload" href="/embed/huggingface-projects/wordalle/static/_app/immutable/start-eac39b20.js">
12
  <link rel="modulepreload" href="/embed/huggingface-projects/wordalle/static/_app/immutable/chunks/index-7118b6c4.js">
13
- <link rel="modulepreload" href="/embed/huggingface-projects/wordalle/static/_app/immutable/chunks/preload-helper-8235996a.js">
14
- <link rel="modulepreload" href="/embed/huggingface-projects/wordalle/static/_app/immutable/pages/__layout.svelte-4f8272ef.js">
15
- <link rel="modulepreload" href="/embed/huggingface-projects/wordalle/static/_app/immutable/pages/index.svelte-5ed7efa8.js">
16
  </head>
17
  <body class="dark:bg-[rgb(11,15,25)] bg-white dark:text-white text-black">
18
  <div>
@@ -22,7 +22,7 @@
22
 
23
 
24
  <script type="module" data-sveltekit-hydrate="2eq20f">
25
- import { start } from "/embed/huggingface-projects/wordalle/static/_app/immutable/start-eac39b20.js";
26
  start({
27
  target: document.querySelector('[data-sveltekit-hydrate="2eq20f"]').parentNode,
28
  paths: {"base":"/embed/huggingface-projects/wordalle/static","assets":"/embed/huggingface-projects/wordalle/static"},
 
6
  <meta name="viewport" content="width=device-width, initial-scale=1" />
7
  <script src="https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/4.3.1/iframeResizer.contentWindow.min.js"></script>
8
  <meta http-equiv="content-security-policy" content="">
9
+ <link rel="stylesheet" href="/embed/huggingface-projects/wordalle/static/_app/immutable/assets/pages/__layout.svelte-7926a3a8.css">
10
  <link rel="stylesheet" href="/embed/huggingface-projects/wordalle/static/_app/immutable/assets/pages/index.svelte-b52b250e.css">
11
+ <link rel="modulepreload" href="/embed/huggingface-projects/wordalle/static/_app/immutable/start-15953b66.js">
12
  <link rel="modulepreload" href="/embed/huggingface-projects/wordalle/static/_app/immutable/chunks/index-7118b6c4.js">
13
+ <link rel="modulepreload" href="/embed/huggingface-projects/wordalle/static/_app/immutable/chunks/preload-helper-fca94356.js">
14
+ <link rel="modulepreload" href="/embed/huggingface-projects/wordalle/static/_app/immutable/pages/__layout.svelte-687870fa.js">
15
+ <link rel="modulepreload" href="/embed/huggingface-projects/wordalle/static/_app/immutable/pages/index.svelte-cba9b380.js">
16
  </head>
17
  <body class="dark:bg-[rgb(11,15,25)] bg-white dark:text-white text-black">
18
  <div>
 
22
 
23
 
24
  <script type="module" data-sveltekit-hydrate="2eq20f">
25
+ import { start } from "/embed/huggingface-projects/wordalle/static/_app/immutable/start-15953b66.js";
26
  start({
27
  target: document.querySelector('[data-sveltekit-hydrate="2eq20f"]').parentNode,
28
  paths: {"base":"/embed/huggingface-projects/wordalle/static","assets":"/embed/huggingface-projects/wordalle/static"},