radames commited on
Commit
6e6af53
β€’
1 Parent(s): 3c4acd9
frontend/src/lib/Canvas.svelte CHANGED
@@ -40,7 +40,7 @@
40
  }
41
  </script>
42
 
43
- <div class="fixed w-screen h-screen top-0 left-0 overflow-hidden border-4 border-black">
44
  <canvas bind:this={canvasEl} {width} {height} />
45
  </div>
46
 
 
40
  }
41
  </script>
42
 
43
+ <div class="fixed w-screen h-screen max-h-[1024px] top-0 left-0 overflow-hidden border-4 border-black">
44
  <canvas bind:this={canvasEl} {width} {height} />
45
  </div>
46
 
static/_app/immutable/assets/{_layout-d1ea213c.css β†’ _layout-8eeb2150.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::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}[type=text],[type=email],[type=url],[type=password],[type=number],[type=date],[type=datetime-local],[type=month],[type=search],[type=tel],[type=time],[type=week],[multiple],textarea,select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-width:1px;border-radius:0;padding:.5rem .75rem;font-size:1rem;line-height:1.5rem;--tw-shadow: 0 0 #0000}[type=text]:focus,[type=email]:focus,[type=url]:focus,[type=password]:focus,[type=number]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=month]:focus,[type=search]:focus,[type=tel]:focus,[type=time]:focus,[type=week]:focus,[multiple]:focus,textarea:focus,select:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: #2563eb;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);border-color:#2563eb}input::-moz-placeholder,textarea::-moz-placeholder{color:#6b7280;opacity:1}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em}::-webkit-datetime-edit,::-webkit-datetime-edit-year-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-meridiem-field{padding-top:0;padding-bottom:0}select{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[multiple]{background-image:initial;background-position:initial;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[type=checkbox],[type=radio]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;display:inline-block;vertical-align:middle;background-origin:border-box;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex-shrink:0;height:1rem;width:1rem;color:#2563eb;background-color:#fff;border-color:#6b7280;border-width:1px;--tw-shadow: 0 0 #0000}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 2px;--tw-ring-offset-color: #fff;--tw-ring-color: #2563eb;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}[type=checkbox]:checked,[type=radio]:checked{border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}[type=checkbox]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e")}[type=radio]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e")}[type=checkbox]:checked:hover,[type=checkbox]:checked:focus,[type=radio]:checked:hover,[type=radio]:checked:focus{border-color:transparent;background-color:currentColor}[type=checkbox]:indeterminate{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e");border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}[type=checkbox]:indeterminate:hover,[type=checkbox]:indeterminate:focus{border-color:transparent;background-color:currentColor}[type=file]{background:unset;border-color:inherit;border-width:0;border-radius:0;padding:0;font-size:unset;line-height:inherit}[type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}*,: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}.top-0{top:0px}.left-0{left:0px}.z-0{z-index:0}.z-50{z-index:50}.col-span-4{grid-column:span 4 / span 4}.col-span-2{grid-column:span 2 / span 2}.mx-auto{margin-left:auto;margin-right:auto}.ml-2{margin-left:.5rem}.flex{display:flex}.grid{display:grid}.h-screen{height:100vh}.w-screen{width:100vw}.max-w-screen-md{max-width:768px}.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))}.touch-none{touch-action:none}.grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.rounded-2xl{border-radius:1rem}.border-2{border-width:2px}.border-black{--tw-border-opacity: 1;border-color:rgb(0 0 0 / var(--tw-border-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-slate-900{--tw-bg-opacity: 1;background-color:rgb(15 23 42 / var(--tw-bg-opacity))}.px-3{padding-left:.75rem;padding-right:.75rem}.py-8{padding-top:2rem;padding-bottom:2rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.px-2{padding-left:.5rem;padding-right:.5rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.italic{font-style:italic}.leading-normal{line-height:1.5}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.underline{text-decoration-line:underline}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.placeholder\:text-white::-moz-placeholder{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.placeholder\:text-white::placeholder{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.placeholder\:text-opacity-30::-moz-placeholder{--tw-text-opacity: .3}.placeholder\:text-opacity-30::placeholder{--tw-text-opacity: .3}.hover\:text-gray-500:hover{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.hover\:no-underline:hover{text-decoration-line:none}.focus\:border-gray-400:focus{--tw-border-opacity: 1;border-color:rgb(156 163 175 / var(--tw-border-opacity))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.disabled\:opacity-50:disabled{opacity:.5}@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\:bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.dark\:bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.dark\:text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.dark\:text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.dark\:placeholder\:text-black::-moz-placeholder{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.dark\:placeholder\:text-black::placeholder{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.dark\:placeholder\:text-opacity-10::-moz-placeholder{--tw-text-opacity: .1}.dark\:placeholder\:text-opacity-10::placeholder{--tw-text-opacity: .1}}@media (min-width: 768px){.md\:col-span-5{grid-column:span 5 / span 5}.md\:col-span-1{grid-column:span 1 / span 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::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}[type=text],[type=email],[type=url],[type=password],[type=number],[type=date],[type=datetime-local],[type=month],[type=search],[type=tel],[type=time],[type=week],[multiple],textarea,select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-width:1px;border-radius:0;padding:.5rem .75rem;font-size:1rem;line-height:1.5rem;--tw-shadow: 0 0 #0000}[type=text]:focus,[type=email]:focus,[type=url]:focus,[type=password]:focus,[type=number]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=month]:focus,[type=search]:focus,[type=tel]:focus,[type=time]:focus,[type=week]:focus,[multiple]:focus,textarea:focus,select:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: #2563eb;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);border-color:#2563eb}input::-moz-placeholder,textarea::-moz-placeholder{color:#6b7280;opacity:1}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em}::-webkit-datetime-edit,::-webkit-datetime-edit-year-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-meridiem-field{padding-top:0;padding-bottom:0}select{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[multiple]{background-image:initial;background-position:initial;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[type=checkbox],[type=radio]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;display:inline-block;vertical-align:middle;background-origin:border-box;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex-shrink:0;height:1rem;width:1rem;color:#2563eb;background-color:#fff;border-color:#6b7280;border-width:1px;--tw-shadow: 0 0 #0000}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 2px;--tw-ring-offset-color: #fff;--tw-ring-color: #2563eb;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}[type=checkbox]:checked,[type=radio]:checked{border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}[type=checkbox]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e")}[type=radio]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e")}[type=checkbox]:checked:hover,[type=checkbox]:checked:focus,[type=radio]:checked:hover,[type=radio]:checked:focus{border-color:transparent;background-color:currentColor}[type=checkbox]:indeterminate{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e");border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}[type=checkbox]:indeterminate:hover,[type=checkbox]:indeterminate:focus{border-color:transparent;background-color:currentColor}[type=file]{background:unset;border-color:inherit;border-width:0;border-radius:0;padding:0;font-size:unset;line-height:inherit}[type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}*,: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}.top-0{top:0px}.left-0{left:0px}.z-10{z-index:10}.z-0{z-index:0}.col-span-4{grid-column:span 4 / span 4}.col-span-2{grid-column:span 2 / span 2}.mx-auto{margin-left:auto;margin-right:auto}.ml-2{margin-left:.5rem}.flex{display:flex}.grid{display:grid}.h-screen{height:100vh}.max-h-\[1024px\]{max-height:1024px}.w-screen{width:100vw}.max-w-screen-md{max-width:768px}.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))}.touch-none{touch-action:none}.grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.overflow-hidden{overflow:hidden}.rounded-2xl{border-radius:1rem}.border-4{border-width:4px}.border-2{border-width:2px}.border-black{--tw-border-opacity: 1;border-color:rgb(0 0 0 / var(--tw-border-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-slate-900{--tw-bg-opacity: 1;background-color:rgb(15 23 42 / var(--tw-bg-opacity))}.px-3{padding-left:.75rem;padding-right:.75rem}.py-8{padding-top:2rem;padding-bottom:2rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.px-2{padding-left:.5rem;padding-right:.5rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.italic{font-style:italic}.leading-normal{line-height:1.5}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.underline{text-decoration-line:underline}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.placeholder\:text-white::-moz-placeholder{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.placeholder\:text-white::placeholder{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.placeholder\:text-opacity-30::-moz-placeholder{--tw-text-opacity: .3}.placeholder\:text-opacity-30::placeholder{--tw-text-opacity: .3}.hover\:text-gray-500:hover{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.hover\:no-underline:hover{text-decoration-line:none}.focus\:border-gray-400:focus{--tw-border-opacity: 1;border-color:rgb(156 163 175 / var(--tw-border-opacity))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.disabled\:opacity-50:disabled{opacity:.5}@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\:bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.dark\:bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.dark\:text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.dark\:text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.dark\:placeholder\:text-black::-moz-placeholder{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.dark\:placeholder\:text-black::placeholder{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.dark\:placeholder\:text-opacity-10::-moz-placeholder{--tw-text-opacity: .1}.dark\:placeholder\:text-opacity-10::placeholder{--tw-text-opacity: .1}}@media (min-width: 768px){.md\:col-span-5{grid-column:span 5 / span 5}.md\:col-span-1{grid-column:span 1 / span 1}}
static/_app/immutable/assets/_page-08702550.css ADDED
@@ -0,0 +1 @@
 
 
1
+ .cursor.svelte-141kyoc{position:absolute;top:0px;left:0px}canvas.svelte-6dcxg7{transform-origin:0 0}.text.svelte-1du5rzc{max-width:380px;margin:0 16px;text-align:center}.input.svelte-zbscw1{grid-column:span 4 / span 4;border-radius:1rem;border-width:2px;--tw-border-opacity:1;border-color:rgb(0 0 0 / var(--tw-border-opacity));--tw-bg-opacity:1;background-color:rgb(15 23 42 / var(--tw-bg-opacity));padding-left:.5rem;padding-right:.5rem;font-size:.875rem;line-height:1.25rem;font-style:italic;--tw-text-opacity:1;color:rgb(255 255 255 / var(--tw-text-opacity));--tw-shadow:0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.input.svelte-zbscw1::-moz-placeholder{color:rgb(255 255 255 / var(--tw-text-opacity));--tw-text-opacity:.3 }.input.svelte-zbscw1::placeholder{color:rgb(255 255 255 / var(--tw-text-opacity));--tw-text-opacity:.3 }.input.svelte-zbscw1:focus{--tw-border-opacity:1;border-color:rgb(156 163 175 / var(--tw-border-opacity));outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.input.svelte-zbscw1:disabled{opacity:.5}@media (prefers-color-scheme: dark){.input.svelte-zbscw1{--tw-bg-opacity:1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));--tw-text-opacity:1;color:rgb(0 0 0 / var(--tw-text-opacity))}.input.svelte-zbscw1::-moz-placeholder{color:rgb(0 0 0 / var(--tw-text-opacity));--tw-text-opacity:.1 }.input.svelte-zbscw1::placeholder{color:rgb(0 0 0 / var(--tw-text-opacity));--tw-text-opacity:.1 }}@media (min-width: 768px){.input.svelte-zbscw1{grid-column:span 5 / span 5}}.button.svelte-zbscw1{grid-column:span 2 / span 2;margin-left:.5rem;border-radius:1rem;border-width:2px;--tw-border-opacity:1;border-color:rgb(0 0 0 / var(--tw-border-opacity));padding:.5rem;font-size:.75rem;line-height:1rem;font-weight:700;--tw-shadow:0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.button.svelte-zbscw1:focus{--tw-border-opacity:1;border-color:rgb(156 163 175 / var(--tw-border-opacity));outline:2px solid transparent;outline-offset:2px}.button.svelte-zbscw1:disabled{opacity:.5}@media (prefers-color-scheme: dark){.button.svelte-zbscw1{--tw-bg-opacity:1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));--tw-text-opacity:1;color:rgb(0 0 0 / var(--tw-text-opacity))}}@media (min-width: 768px){.button.svelte-zbscw1{grid-column:span 1 / span 1}}
static/_app/immutable/assets/_page-d7e0618a.css DELETED
@@ -1 +0,0 @@
1
- .cursor.svelte-141kyoc{position:absolute;top:0px;left:0px}main.svelte-zg8xt2{position:fixed;top:0px;left:0px;display:flex;height:100vh;width:100vw;touch-action:none;flex-direction:column;align-items:center;justify-content:center;--tw-bg-opacity:1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.text.svelte-zg8xt2{max-width:380px;margin:0 16px;text-align:center}.input.svelte-zbscw1{grid-column:span 4 / span 4;border-radius:1rem;border-width:2px;--tw-border-opacity:1;border-color:rgb(0 0 0 / var(--tw-border-opacity));--tw-bg-opacity:1;background-color:rgb(15 23 42 / var(--tw-bg-opacity));padding-left:.5rem;padding-right:.5rem;font-size:.875rem;line-height:1.25rem;font-style:italic;--tw-text-opacity:1;color:rgb(255 255 255 / var(--tw-text-opacity));--tw-shadow:0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.input.svelte-zbscw1::-moz-placeholder{color:rgb(255 255 255 / var(--tw-text-opacity));--tw-text-opacity:.3 }.input.svelte-zbscw1::placeholder{color:rgb(255 255 255 / var(--tw-text-opacity));--tw-text-opacity:.3 }.input.svelte-zbscw1:focus{--tw-border-opacity:1;border-color:rgb(156 163 175 / var(--tw-border-opacity));outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.input.svelte-zbscw1:disabled{opacity:.5}@media (prefers-color-scheme: dark){.input.svelte-zbscw1{--tw-bg-opacity:1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));--tw-text-opacity:1;color:rgb(0 0 0 / var(--tw-text-opacity))}.input.svelte-zbscw1::-moz-placeholder{color:rgb(0 0 0 / var(--tw-text-opacity));--tw-text-opacity:.1 }.input.svelte-zbscw1::placeholder{color:rgb(0 0 0 / var(--tw-text-opacity));--tw-text-opacity:.1 }}@media (min-width: 768px){.input.svelte-zbscw1{grid-column:span 5 / span 5}}.button.svelte-zbscw1{grid-column:span 2 / span 2;margin-left:.5rem;border-radius:1rem;border-width:2px;--tw-border-opacity:1;border-color:rgb(0 0 0 / var(--tw-border-opacity));padding:.5rem;font-size:.75rem;line-height:1rem;font-weight:700;--tw-shadow:0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.button.svelte-zbscw1:focus{--tw-border-opacity:1;border-color:rgb(156 163 175 / var(--tw-border-opacity));outline:2px solid transparent;outline-offset:2px}.button.svelte-zbscw1:disabled{opacity:.5}@media (prefers-color-scheme: dark){.button.svelte-zbscw1{--tw-bg-opacity:1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));--tw-text-opacity:1;color:rgb(0 0 0 / var(--tw-text-opacity))}}@media (min-width: 768px){.button.svelte-zbscw1{grid-column:span 1 / span 1}}
 
 
static/_app/immutable/chunks/{0-f56af2df.js β†’ 0-d38ff3ba.js} RENAMED
@@ -1 +1 @@
1
- import{_ as r}from"./_layout-1daba58d.js";import{default as t}from"../components/pages/_layout.svelte-a6944661.js";export{t as component,r as shared};
 
1
+ import{_ as r}from"./_layout-1daba58d.js";import{default as t}from"../components/pages/_layout.svelte-9e51eb23.js";export{t as component,r as shared};
static/_app/immutable/chunks/1-7ba5dd96.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{default as t}from"../components/error.svelte-96c74a18.js";export{t as component};
static/_app/immutable/chunks/1-ea6b1854.js DELETED
@@ -1 +0,0 @@
1
- import{default as t}from"../components/error.svelte-030a0882.js";export{t as component};
 
 
static/_app/immutable/chunks/2-00e4e453.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{default as t}from"../components/pages/_page.svelte-673bcd1c.js";export{t as component};
static/_app/immutable/chunks/2-e536610e.js DELETED
@@ -1 +0,0 @@
1
- import{default as t}from"../components/pages/_page.svelte-7e536a42.js";export{t as component};
 
 
static/_app/immutable/chunks/{index-1f793c88.js β†’ index-753a1ad2.js} RENAMED
@@ -1 +1 @@
1
- function M(){}function nt(t,e){for(const n in e)t[n]=e[n];return t}function K(t){return t()}function I(){return Object.create(null)}function v(t){t.forEach(K)}function it(t){return typeof t=="function"}function $t(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}function rt(t){return Object.keys(t).length===0}function ct(t,...e){if(t==null)return M;const n=t.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}function vt(t,e,n){t.$$.on_destroy.push(ct(e,n))}function Et(t,e,n,i){if(t){const r=W(t,e,n,i);return t[0](r)}}function W(t,e,n,i){return t[1]&&i?nt(n.ctx.slice(),t[1](i(e))):n.ctx}function St(t,e,n,i){if(t[2]&&i){const r=t[2](i(n));if(e.dirty===void 0)return r;if(typeof r=="object"){const u=[],c=Math.max(e.dirty.length,r.length);for(let o=0;o<c;o+=1)u[o]=e.dirty[o]|r[o];return u}return e.dirty|r}return e.dirty}function Nt(t,e,n,i,r,u){if(r){const c=W(e,n,i,u);t.p(c,r)}}function kt(t){if(t.ctx.length>32){const e=[],n=t.ctx.length/32;for(let i=0;i<n;i++)e[i]=-1;return e}return-1}const Q=typeof window<"u";let At=Q?()=>window.performance.now():()=>Date.now(),R=Q?t=>requestAnimationFrame(t):M;const w=new Set;function U(t){w.forEach(e=>{e.c(t)||(w.delete(e),e.f())}),w.size!==0&&R(U)}function Mt(t){let e;return w.size===0&&R(U),{promise:new Promise(n=>{w.add(e={c:t,f:n})}),abort(){w.delete(e)}}}let j=!1;function st(){j=!0}function lt(){j=!1}function ot(t,e,n,i){for(;t<e;){const r=t+(e-t>>1);n(r)<=i?t=r+1:e=r}return t}function ut(t){if(t.hydrate_init)return;t.hydrate_init=!0;let e=t.childNodes;if(t.nodeName==="HEAD"){const s=[];for(let l=0;l<e.length;l++){const f=e[l];f.claim_order!==void 0&&s.push(f)}e=s}const n=new Int32Array(e.length+1),i=new Int32Array(e.length);n[0]=-1;let r=0;for(let s=0;s<e.length;s++){const l=e[s].claim_order,f=(r>0&&e[n[r]].claim_order<=l?r+1:ot(1,r,d=>e[n[d]].claim_order,l))-1;i[s]=n[f]+1;const _=f+1;n[_]=s,r=Math.max(_,r)}const u=[],c=[];let o=e.length-1;for(let s=n[r]+1;s!=0;s=i[s-1]){for(u.push(e[s-1]);o>=s;o--)c.push(e[o]);o--}for(;o>=0;o--)c.push(e[o]);u.reverse(),c.sort((s,l)=>s.claim_order-l.claim_order);for(let s=0,l=0;s<c.length;s++){for(;l<u.length&&c[s].claim_order>=u[l].claim_order;)l++;const f=l<u.length?u[l]:null;t.insertBefore(c[s],f)}}function at(t,e){if(j){for(ut(t),(t.actual_end_child===void 0||t.actual_end_child!==null&&t.actual_end_child.parentNode!==t)&&(t.actual_end_child=t.firstChild);t.actual_end_child!==null&&t.actual_end_child.claim_order===void 0;)t.actual_end_child=t.actual_end_child.nextSibling;e!==t.actual_end_child?(e.claim_order!==void 0||e.parentNode!==t)&&t.insertBefore(e,t.actual_end_child):t.actual_end_child=e.nextSibling}else(e.parentNode!==t||e.nextSibling!==null)&&t.appendChild(e)}function jt(t,e,n){j&&!n?at(t,e):(e.parentNode!==t||e.nextSibling!=n)&&t.insertBefore(e,n||null)}function ft(t){t.parentNode.removeChild(t)}function dt(t){return document.createElement(t)}function _t(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function T(t){return document.createTextNode(t)}function Ct(){return T(" ")}function Pt(){return T("")}function zt(t,e,n,i){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n,i)}function Bt(t,e,n){n==null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function ht(t){return Array.from(t.childNodes)}function mt(t){t.claim_info===void 0&&(t.claim_info={last_index:0,total_claimed:0})}function V(t,e,n,i,r=!1){mt(t);const u=(()=>{for(let c=t.claim_info.last_index;c<t.length;c++){const o=t[c];if(e(o)){const s=n(o);return s===void 0?t.splice(c,1):t[c]=s,r||(t.claim_info.last_index=c),o}}for(let c=t.claim_info.last_index-1;c>=0;c--){const o=t[c];if(e(o)){const s=n(o);return s===void 0?t.splice(c,1):t[c]=s,r?s===void 0&&t.claim_info.last_index--:t.claim_info.last_index=c,o}}return i()})();return u.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,u}function X(t,e,n,i){return V(t,r=>r.nodeName===e,r=>{const u=[];for(let c=0;c<r.attributes.length;c++){const o=r.attributes[c];n[o.name]||u.push(o.name)}u.forEach(c=>r.removeAttribute(c))},()=>i(e))}function Dt(t,e,n){return X(t,e,n,dt)}function Lt(t,e,n){return X(t,e,n,_t)}function pt(t,e){return V(t,n=>n.nodeType===3,n=>{const i=""+e;if(n.data.startsWith(i)){if(n.data.length!==i.length)return n.splitText(i.length)}else n.data=i},()=>T(e),!0)}function Ot(t){return pt(t," ")}function Tt(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function qt(t,e,n,i){n===null?t.style.removeProperty(e):t.style.setProperty(e,n,i?"important":"")}let $;function b(t){$=t}function q(){if(!$)throw new Error("Function called outside component initialization");return $}function Ft(t){q().$$.on_mount.push(t)}function Ht(t){q().$$.after_update.push(t)}function It(t){q().$$.on_destroy.push(t)}const x=[],G=[],k=[],J=[],Y=Promise.resolve();let L=!1;function Z(){L||(L=!0,Y.then(tt))}function Gt(){return Z(),Y}function O(t){k.push(t)}const D=new Set;let N=0;function tt(){const t=$;do{for(;N<x.length;){const e=x[N];N++,b(e),yt(e.$$)}for(b(null),x.length=0,N=0;G.length;)G.pop()();for(let e=0;e<k.length;e+=1){const n=k[e];D.has(n)||(D.add(n),n())}k.length=0}while(x.length);for(;J.length;)J.pop()();L=!1,D.clear(),b(t)}function yt(t){if(t.fragment!==null){t.update(),v(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(O)}}const A=new Set;let g;function Jt(){g={r:0,c:[],p:g}}function Kt(){g.r||v(g.c),g=g.p}function et(t,e){t&&t.i&&(A.delete(t),t.i(e))}function gt(t,e,n,i){if(t&&t.o){if(A.has(t))return;A.add(t),g.c.push(()=>{A.delete(t),i&&(n&&t.d(1),i())}),t.o(e)}else i&&i()}function Wt(t,e){gt(t,1,1,()=>{e.delete(t.key)})}function Qt(t,e,n,i,r,u,c,o,s,l,f,_){let d=t.length,m=u.length,h=d;const C={};for(;h--;)C[t[h].key]=h;const E=[],P=new Map,z=new Map;for(h=m;h--;){const a=_(r,u,h),p=n(a);let y=c.get(p);y?i&&y.p(a,e):(y=l(p,a),y.c()),P.set(p,E[h]=y),p in C&&z.set(p,Math.abs(h-C[p]))}const F=new Set,H=new Set;function B(a){et(a,1),a.m(o,f),c.set(a.key,a),f=a.first,m--}for(;d&&m;){const a=E[m-1],p=t[d-1],y=a.key,S=p.key;a===p?(f=a.first,d--,m--):P.has(S)?!c.has(y)||F.has(y)?B(a):H.has(S)?d--:z.get(y)>z.get(S)?(H.add(y),B(a)):(F.add(S),d--):(s(p,c),d--)}for(;d--;){const a=t[d];P.has(a.key)||s(a,c)}for(;m;)B(E[m-1]);return E}function Rt(t){t&&t.c()}function Ut(t,e){t&&t.l(e)}function wt(t,e,n,i){const{fragment:r,on_mount:u,on_destroy:c,after_update:o}=t.$$;r&&r.m(e,n),i||O(()=>{const s=u.map(K).filter(it);c?c.push(...s):v(s),t.$$.on_mount=[]}),o.forEach(O)}function xt(t,e){const n=t.$$;n.fragment!==null&&(v(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function bt(t,e){t.$$.dirty[0]===-1&&(x.push(t),Z(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function Vt(t,e,n,i,r,u,c,o=[-1]){const s=$;b(t);const l=t.$$={fragment:null,ctx:null,props:u,update:M,not_equal:r,bound:I(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:I(),dirty:o,skip_bound:!1,root:e.target||s.$$.root};c&&c(l.root);let f=!1;if(l.ctx=n?n(t,e.props||{},(_,d,...m)=>{const h=m.length?m[0]:d;return l.ctx&&r(l.ctx[_],l.ctx[_]=h)&&(!l.skip_bound&&l.bound[_]&&l.bound[_](h),f&&bt(t,_)),d}):[],l.update(),f=!0,v(l.before_update),l.fragment=i?i(l.ctx):!1,e.target){if(e.hydrate){st();const _=ht(e.target);l.fragment&&l.fragment.l(_),_.forEach(ft)}else l.fragment&&l.fragment.c();e.intro&&et(t.$$.fragment),wt(t,e.target,e.anchor,e.customElement),lt(),tt()}b(s)}class Xt{$destroy(){xt(this,1),this.$destroy=M}$on(e,n){const i=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return i.push(n),()=>{const r=i.indexOf(n);r!==-1&&i.splice(r,1)}}$set(e){this.$$set&&!rt(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}export{M as A,Et as B,Nt as C,kt as D,St as E,at as F,vt as G,At as H,Mt as I,_t as J,Lt as K,zt as L,v as M,It as N,Qt as O,Wt as P,Xt as S,Ct as a,jt as b,Ot as c,Kt as d,Pt as e,et as f,Jt as g,ft as h,Vt as i,Ht as j,dt as k,Dt as l,ht as m,Bt as n,Ft as o,qt as p,T as q,pt as r,$t as s,gt as t,Tt as u,Rt as v,Ut as w,wt as x,xt as y,Gt as z};
 
1
+ function M(){}function nt(t,e){for(const n in e)t[n]=e[n];return t}function K(t){return t()}function I(){return Object.create(null)}function v(t){t.forEach(K)}function it(t){return typeof t=="function"}function $t(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}function rt(t){return Object.keys(t).length===0}function ct(t,...e){if(t==null)return M;const n=t.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}function vt(t,e,n){t.$$.on_destroy.push(ct(e,n))}function Et(t,e,n,i){if(t){const r=Q(t,e,n,i);return t[0](r)}}function Q(t,e,n,i){return t[1]&&i?nt(n.ctx.slice(),t[1](i(e))):n.ctx}function St(t,e,n,i){if(t[2]&&i){const r=t[2](i(n));if(e.dirty===void 0)return r;if(typeof r=="object"){const u=[],c=Math.max(e.dirty.length,r.length);for(let o=0;o<c;o+=1)u[o]=e.dirty[o]|r[o];return u}return e.dirty|r}return e.dirty}function Nt(t,e,n,i,r,u){if(r){const c=Q(e,n,i,u);t.p(c,r)}}function kt(t){if(t.ctx.length>32){const e=[],n=t.ctx.length/32;for(let i=0;i<n;i++)e[i]=-1;return e}return-1}const W=typeof window<"u";let At=W?()=>window.performance.now():()=>Date.now(),R=W?t=>requestAnimationFrame(t):M;const w=new Set;function U(t){w.forEach(e=>{e.c(t)||(w.delete(e),e.f())}),w.size!==0&&R(U)}function Mt(t){let e;return w.size===0&&R(U),{promise:new Promise(n=>{w.add(e={c:t,f:n})}),abort(){w.delete(e)}}}let j=!1;function st(){j=!0}function lt(){j=!1}function ot(t,e,n,i){for(;t<e;){const r=t+(e-t>>1);n(r)<=i?t=r+1:e=r}return t}function ut(t){if(t.hydrate_init)return;t.hydrate_init=!0;let e=t.childNodes;if(t.nodeName==="HEAD"){const s=[];for(let l=0;l<e.length;l++){const f=e[l];f.claim_order!==void 0&&s.push(f)}e=s}const n=new Int32Array(e.length+1),i=new Int32Array(e.length);n[0]=-1;let r=0;for(let s=0;s<e.length;s++){const l=e[s].claim_order,f=(r>0&&e[n[r]].claim_order<=l?r+1:ot(1,r,d=>e[n[d]].claim_order,l))-1;i[s]=n[f]+1;const _=f+1;n[_]=s,r=Math.max(_,r)}const u=[],c=[];let o=e.length-1;for(let s=n[r]+1;s!=0;s=i[s-1]){for(u.push(e[s-1]);o>=s;o--)c.push(e[o]);o--}for(;o>=0;o--)c.push(e[o]);u.reverse(),c.sort((s,l)=>s.claim_order-l.claim_order);for(let s=0,l=0;s<c.length;s++){for(;l<u.length&&c[s].claim_order>=u[l].claim_order;)l++;const f=l<u.length?u[l]:null;t.insertBefore(c[s],f)}}function at(t,e){if(j){for(ut(t),(t.actual_end_child===void 0||t.actual_end_child!==null&&t.actual_end_child.parentNode!==t)&&(t.actual_end_child=t.firstChild);t.actual_end_child!==null&&t.actual_end_child.claim_order===void 0;)t.actual_end_child=t.actual_end_child.nextSibling;e!==t.actual_end_child?(e.claim_order!==void 0||e.parentNode!==t)&&t.insertBefore(e,t.actual_end_child):t.actual_end_child=e.nextSibling}else(e.parentNode!==t||e.nextSibling!==null)&&t.appendChild(e)}function jt(t,e,n){j&&!n?at(t,e):(e.parentNode!==t||e.nextSibling!=n)&&t.insertBefore(e,n||null)}function ft(t){t.parentNode.removeChild(t)}function dt(t){return document.createElement(t)}function _t(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function T(t){return document.createTextNode(t)}function Ct(){return T(" ")}function Pt(){return T("")}function zt(t,e,n,i){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n,i)}function Bt(t,e,n){n==null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function ht(t){return Array.from(t.childNodes)}function mt(t){t.claim_info===void 0&&(t.claim_info={last_index:0,total_claimed:0})}function V(t,e,n,i,r=!1){mt(t);const u=(()=>{for(let c=t.claim_info.last_index;c<t.length;c++){const o=t[c];if(e(o)){const s=n(o);return s===void 0?t.splice(c,1):t[c]=s,r||(t.claim_info.last_index=c),o}}for(let c=t.claim_info.last_index-1;c>=0;c--){const o=t[c];if(e(o)){const s=n(o);return s===void 0?t.splice(c,1):t[c]=s,r?s===void 0&&t.claim_info.last_index--:t.claim_info.last_index=c,o}}return i()})();return u.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,u}function X(t,e,n,i){return V(t,r=>r.nodeName===e,r=>{const u=[];for(let c=0;c<r.attributes.length;c++){const o=r.attributes[c];n[o.name]||u.push(o.name)}u.forEach(c=>r.removeAttribute(c))},()=>i(e))}function Dt(t,e,n){return X(t,e,n,dt)}function Lt(t,e,n){return X(t,e,n,_t)}function pt(t,e){return V(t,n=>n.nodeType===3,n=>{const i=""+e;if(n.data.startsWith(i)){if(n.data.length!==i.length)return n.splitText(i.length)}else n.data=i},()=>T(e),!0)}function Ot(t){return pt(t," ")}function Tt(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function qt(t,e,n,i){n===null?t.style.removeProperty(e):t.style.setProperty(e,n,i?"important":"")}let $;function b(t){$=t}function q(){if(!$)throw new Error("Function called outside component initialization");return $}function Ft(t){q().$$.on_mount.push(t)}function Ht(t){q().$$.after_update.push(t)}function It(t){q().$$.on_destroy.push(t)}const x=[],G=[],k=[],J=[],Y=Promise.resolve();let L=!1;function Z(){L||(L=!0,Y.then(tt))}function Gt(){return Z(),Y}function O(t){k.push(t)}const D=new Set;let N=0;function tt(){const t=$;do{for(;N<x.length;){const e=x[N];N++,b(e),yt(e.$$)}for(b(null),x.length=0,N=0;G.length;)G.pop()();for(let e=0;e<k.length;e+=1){const n=k[e];D.has(n)||(D.add(n),n())}k.length=0}while(x.length);for(;J.length;)J.pop()();L=!1,D.clear(),b(t)}function yt(t){if(t.fragment!==null){t.update(),v(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(O)}}const A=new Set;let g;function Jt(){g={r:0,c:[],p:g}}function Kt(){g.r||v(g.c),g=g.p}function et(t,e){t&&t.i&&(A.delete(t),t.i(e))}function gt(t,e,n,i){if(t&&t.o){if(A.has(t))return;A.add(t),g.c.push(()=>{A.delete(t),i&&(n&&t.d(1),i())}),t.o(e)}else i&&i()}function Qt(t,e){gt(t,1,1,()=>{e.delete(t.key)})}function Wt(t,e,n,i,r,u,c,o,s,l,f,_){let d=t.length,m=u.length,h=d;const C={};for(;h--;)C[t[h].key]=h;const E=[],P=new Map,z=new Map;for(h=m;h--;){const a=_(r,u,h),p=n(a);let y=c.get(p);y?i&&y.p(a,e):(y=l(p,a),y.c()),P.set(p,E[h]=y),p in C&&z.set(p,Math.abs(h-C[p]))}const F=new Set,H=new Set;function B(a){et(a,1),a.m(o,f),c.set(a.key,a),f=a.first,m--}for(;d&&m;){const a=E[m-1],p=t[d-1],y=a.key,S=p.key;a===p?(f=a.first,d--,m--):P.has(S)?!c.has(y)||F.has(y)?B(a):H.has(S)?d--:z.get(y)>z.get(S)?(H.add(y),B(a)):(F.add(S),d--):(s(p,c),d--)}for(;d--;){const a=t[d];P.has(a.key)||s(a,c)}for(;m;)B(E[m-1]);return E}function Rt(t){t&&t.c()}function Ut(t,e){t&&t.l(e)}function wt(t,e,n,i){const{fragment:r,on_mount:u,on_destroy:c,after_update:o}=t.$$;r&&r.m(e,n),i||O(()=>{const s=u.map(K).filter(it);c?c.push(...s):v(s),t.$$.on_mount=[]}),o.forEach(O)}function xt(t,e){const n=t.$$;n.fragment!==null&&(v(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function bt(t,e){t.$$.dirty[0]===-1&&(x.push(t),Z(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function Vt(t,e,n,i,r,u,c,o=[-1]){const s=$;b(t);const l=t.$$={fragment:null,ctx:null,props:u,update:M,not_equal:r,bound:I(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:I(),dirty:o,skip_bound:!1,root:e.target||s.$$.root};c&&c(l.root);let f=!1;if(l.ctx=n?n(t,e.props||{},(_,d,...m)=>{const h=m.length?m[0]:d;return l.ctx&&r(l.ctx[_],l.ctx[_]=h)&&(!l.skip_bound&&l.bound[_]&&l.bound[_](h),f&&bt(t,_)),d}):[],l.update(),f=!0,v(l.before_update),l.fragment=i?i(l.ctx):!1,e.target){if(e.hydrate){st();const _=ht(e.target);l.fragment&&l.fragment.l(_),_.forEach(ft)}else l.fragment&&l.fragment.c();e.intro&&et(t.$$.fragment),wt(t,e.target,e.anchor,e.customElement),lt(),tt()}b(s)}class Xt{$destroy(){xt(this,1),this.$destroy=M}$on(e,n){const i=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return i.push(n),()=>{const r=i.indexOf(n);r!==-1&&i.splice(r,1)}}$set(e){this.$$set&&!rt(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}export{M as A,Et as B,Nt as C,kt as D,St as E,at as F,vt as G,At as H,Mt as I,_t as J,Lt as K,G as L,zt as M,v as N,It as O,Wt as P,Qt as Q,Xt as S,Ct as a,jt as b,Ot as c,Kt as d,Pt as e,et as f,Jt as g,ft as h,Vt as i,Ht as j,dt as k,Dt as l,ht as m,Bt as n,Ft as o,qt as p,T as q,pt as r,$t as s,gt as t,Tt as u,Rt as v,Ut as w,wt as x,xt as y,Gt as z};
static/_app/immutable/chunks/{index-b3d11e3e.js β†’ index-9f7684d6.js} RENAMED
@@ -1 +1 @@
1
- import{A as f,s as l}from"./index-1f793c88.js";const e=[];function h(n,u=f){let o;const i=new Set;function r(t){if(l(n,t)&&(n=t,o)){const c=!e.length;for(const s of i)s[1](),e.push(s,n);if(c){for(let s=0;s<e.length;s+=2)e[s][0](e[s+1]);e.length=0}}}function b(t){r(t(n))}function p(t,c=f){const s=[t,c];return i.add(s),i.size===1&&(o=u(r)||f),t(n),()=>{i.delete(s),i.size===0&&(o(),o=null)}}return{set:r,update:b,subscribe:p}}export{h as w};
 
1
+ import{A as f,s as l}from"./index-753a1ad2.js";const e=[];function h(n,u=f){let o;const i=new Set;function r(t){if(l(n,t)&&(n=t,o)){const c=!e.length;for(const s of i)s[1](),e.push(s,n);if(c){for(let s=0;s<e.length;s+=2)e[s][0](e[s+1]);e.length=0}}}function b(t){r(t(n))}function p(t,c=f){const s=[t,c];return i.add(s),i.size===1&&(o=u(r)||f),t(n),()=>{i.delete(s),i.size===0&&(o(),o=null)}}return{set:r,update:b,subscribe:p}}export{h as w};
static/_app/immutable/chunks/{singletons-a44f94dd.js β†’ singletons-f23f00e3.js} RENAMED
@@ -1 +1 @@
1
- import{w as u}from"./index-b3d11e3e.js";let f="",b="";function g(n){f=n.base,b=n.assets||f}function m(n){let e=n.baseURI;if(!e){const t=n.getElementsByTagName("base");e=t.length?t[0].href:n.URL}return e}function _(){return{x:pageXOffset,y:pageYOffset}}function k(n){let e,t=null,r=null,a=null;for(const s of n.composedPath())s instanceof Element&&(!e&&s.nodeName.toUpperCase()==="A"&&(e=s),t===null&&(t=l(s,"data-sveltekit-noscroll")),r===null&&(r=l(s,"data-sveltekit-prefetch")),a===null&&(a=l(s,"data-sveltekit-reload")));const o=e&&new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI);return{a:e,url:o,options:{noscroll:t,prefetch:r,reload:a}}}function l(n,e){const t=n.getAttribute(e);return t===null?t:t===""?!0:(t==="off",!1)}function d(n){const e=u(n);let t=!0;function r(){t=!0,e.update(s=>s)}function a(s){t=!1,e.set(s)}function o(s){let i;return e.subscribe(c=>{(i===void 0||t&&c!==i)&&s(i=c)})}return{notify:r,set:a,subscribe:o}}function p(){const{set:n,subscribe:e}=u(!1);let t;async function r(){clearTimeout(t);const a=await fetch(`${b}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(a.ok){const{version:o}=await a.json(),s=o!=="1663903188059";return s&&(n(!0),clearTimeout(t)),s}else throw new Error(`Version check failed: ${a.status}`)}return{subscribe:e,check:r}}function v(n){n.client}const w={url:d({}),page:d({}),navigating:u(null),updated:p()};export{_ as a,g as b,k as f,m as g,v as i,w as s};
 
1
+ import{w as u}from"./index-9f7684d6.js";let f="",b="";function g(n){f=n.base,b=n.assets||f}function m(n){let e=n.baseURI;if(!e){const t=n.getElementsByTagName("base");e=t.length?t[0].href:n.URL}return e}function _(){return{x:pageXOffset,y:pageYOffset}}function k(n){let e,t=null,r=null,a=null;for(const s of n.composedPath())s instanceof Element&&(!e&&s.nodeName.toUpperCase()==="A"&&(e=s),t===null&&(t=l(s,"data-sveltekit-noscroll")),r===null&&(r=l(s,"data-sveltekit-prefetch")),a===null&&(a=l(s,"data-sveltekit-reload")));const o=e&&new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI);return{a:e,url:o,options:{noscroll:t,prefetch:r,reload:a}}}function l(n,e){const t=n.getAttribute(e);return t===null?t:t===""?!0:(t==="off",!1)}function d(n){const e=u(n);let t=!0;function r(){t=!0,e.update(s=>s)}function a(s){t=!1,e.set(s)}function o(s){let i;return e.subscribe(c=>{(i===void 0||t&&c!==i)&&s(i=c)})}return{notify:r,set:a,subscribe:o}}function p(){const{set:n,subscribe:e}=u(!1);let t;async function r(){clearTimeout(t);const a=await fetch(`${b}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(a.ok){const{version:o}=await a.json(),s=o!=="1663965759116";return s&&(n(!0),clearTimeout(t)),s}else throw new Error(`Version check failed: ${a.status}`)}return{subscribe:e,check:r}}function v(n){n.client}const w={url:d({}),page:d({}),navigating:u(null),updated:p()};export{_ as a,g as b,k as f,m as g,v as i,w as s};
static/_app/immutable/components/{error.svelte-030a0882.js β†’ error.svelte-96c74a18.js} RENAMED
@@ -1 +1 @@
1
- import{S as A,i as C,s as F,k as v,q as k,a as h,e as q,l as g,m as E,r as $,h as p,c as R,b as u,F as P,u as S,A as w,G}from"../chunks/index-1f793c88.js";import{s as H}from"../chunks/singletons-a44f94dd.js";const O=()=>{const t=H,s={page:{subscribe:t.page.subscribe},navigating:{subscribe:t.navigating.subscribe},updated:t.updated};return Object.defineProperties(s,{preloading:{get(){return console.error("stores.preloading is deprecated; use stores.navigating instead"),{subscribe:t.navigating.subscribe}},enumerable:!1},session:{get(){return B(),{}},enumerable:!1}}),s},z={subscribe(t){return O().page.subscribe(t)}};function B(){throw new Error("stores.session is no longer available. See https://github.com/sveltejs/kit/discussions/5883")}function N(t){let s,i=t[0].error.frame+"",o;return{c(){s=v("pre"),o=k(i)},l(r){s=g(r,"PRE",{});var a=E(s);o=$(a,i),a.forEach(p)},m(r,a){u(r,s,a),P(s,o)},p(r,a){a&1&&i!==(i=r[0].error.frame+"")&&S(o,i)},d(r){r&&p(s)}}}function y(t){let s,i=t[0].error.stack+"",o;return{c(){s=v("pre"),o=k(i)},l(r){s=g(r,"PRE",{});var a=E(s);o=$(a,i),a.forEach(p)},m(r,a){u(r,s,a),P(s,o)},p(r,a){a&1&&i!==(i=r[0].error.stack+"")&&S(o,i)},d(r){r&&p(s)}}}function D(t){let s,i=t[0].status+"",o,r,a,b=t[0].error.message+"",_,d,c,m,l=t[0].error.frame&&N(t),n=t[0].error.stack&&y(t);return{c(){s=v("h1"),o=k(i),r=h(),a=v("pre"),_=k(b),d=h(),l&&l.c(),c=h(),n&&n.c(),m=q()},l(e){s=g(e,"H1",{});var f=E(s);o=$(f,i),f.forEach(p),r=R(e),a=g(e,"PRE",{});var j=E(a);_=$(j,b),j.forEach(p),d=R(e),l&&l.l(e),c=R(e),n&&n.l(e),m=q()},m(e,f){u(e,s,f),P(s,o),u(e,r,f),u(e,a,f),P(a,_),u(e,d,f),l&&l.m(e,f),u(e,c,f),n&&n.m(e,f),u(e,m,f)},p(e,[f]){f&1&&i!==(i=e[0].status+"")&&S(o,i),f&1&&b!==(b=e[0].error.message+"")&&S(_,b),e[0].error.frame?l?l.p(e,f):(l=N(e),l.c(),l.m(c.parentNode,c)):l&&(l.d(1),l=null),e[0].error.stack?n?n.p(e,f):(n=y(e),n.c(),n.m(m.parentNode,m)):n&&(n.d(1),n=null)},i:w,o:w,d(e){e&&p(s),e&&p(r),e&&p(a),e&&p(d),l&&l.d(e),e&&p(c),n&&n.d(e),e&&p(m)}}}function I(t,s,i){let o;return G(t,z,r=>i(0,o=r)),[o]}class L extends A{constructor(s){super(),C(this,s,I,D,F,{})}}export{L as default};
 
1
+ import{S as A,i as C,s as F,k as v,q as k,a as h,e as q,l as g,m as E,r as $,h as p,c as R,b as u,F as P,u as S,A as w,G}from"../chunks/index-753a1ad2.js";import{s as H}from"../chunks/singletons-f23f00e3.js";const O=()=>{const t=H,s={page:{subscribe:t.page.subscribe},navigating:{subscribe:t.navigating.subscribe},updated:t.updated};return Object.defineProperties(s,{preloading:{get(){return console.error("stores.preloading is deprecated; use stores.navigating instead"),{subscribe:t.navigating.subscribe}},enumerable:!1},session:{get(){return B(),{}},enumerable:!1}}),s},z={subscribe(t){return O().page.subscribe(t)}};function B(){throw new Error("stores.session is no longer available. See https://github.com/sveltejs/kit/discussions/5883")}function N(t){let s,i=t[0].error.frame+"",o;return{c(){s=v("pre"),o=k(i)},l(r){s=g(r,"PRE",{});var a=E(s);o=$(a,i),a.forEach(p)},m(r,a){u(r,s,a),P(s,o)},p(r,a){a&1&&i!==(i=r[0].error.frame+"")&&S(o,i)},d(r){r&&p(s)}}}function y(t){let s,i=t[0].error.stack+"",o;return{c(){s=v("pre"),o=k(i)},l(r){s=g(r,"PRE",{});var a=E(s);o=$(a,i),a.forEach(p)},m(r,a){u(r,s,a),P(s,o)},p(r,a){a&1&&i!==(i=r[0].error.stack+"")&&S(o,i)},d(r){r&&p(s)}}}function D(t){let s,i=t[0].status+"",o,r,a,b=t[0].error.message+"",_,d,c,m,l=t[0].error.frame&&N(t),n=t[0].error.stack&&y(t);return{c(){s=v("h1"),o=k(i),r=h(),a=v("pre"),_=k(b),d=h(),l&&l.c(),c=h(),n&&n.c(),m=q()},l(e){s=g(e,"H1",{});var f=E(s);o=$(f,i),f.forEach(p),r=R(e),a=g(e,"PRE",{});var j=E(a);_=$(j,b),j.forEach(p),d=R(e),l&&l.l(e),c=R(e),n&&n.l(e),m=q()},m(e,f){u(e,s,f),P(s,o),u(e,r,f),u(e,a,f),P(a,_),u(e,d,f),l&&l.m(e,f),u(e,c,f),n&&n.m(e,f),u(e,m,f)},p(e,[f]){f&1&&i!==(i=e[0].status+"")&&S(o,i),f&1&&b!==(b=e[0].error.message+"")&&S(_,b),e[0].error.frame?l?l.p(e,f):(l=N(e),l.c(),l.m(c.parentNode,c)):l&&(l.d(1),l=null),e[0].error.stack?n?n.p(e,f):(n=y(e),n.c(),n.m(m.parentNode,m)):n&&(n.d(1),n=null)},i:w,o:w,d(e){e&&p(s),e&&p(r),e&&p(a),e&&p(d),l&&l.d(e),e&&p(c),n&&n.d(e),e&&p(m)}}}function I(t,s,i){let o;return G(t,z,r=>i(0,o=r)),[o]}class L extends A{constructor(s){super(),C(this,s,I,D,F,{})}}export{L as default};
static/_app/immutable/components/pages/{_layout.svelte-a6944661.js β†’ _layout.svelte-9e51eb23.js} RENAMED
@@ -1 +1 @@
1
- import{S as l,i,s as r,B as u,C as f,D as _,E as c,f as p,t as d}from"../../chunks/index-1f793c88.js";function m(n){let s;const o=n[1].default,e=u(o,n,n[0],null);return{c(){e&&e.c()},l(t){e&&e.l(t)},m(t,a){e&&e.m(t,a),s=!0},p(t,[a]){e&&e.p&&(!s||a&1)&&f(e,o,t,t[0],s?c(o,t[0],a,null):_(t[0]),null)},i(t){s||(p(e,t),s=!0)},o(t){d(e,t),s=!1},d(t){e&&e.d(t)}}}function $(n,s,o){let{$$slots:e={},$$scope:t}=s;return n.$$set=a=>{"$$scope"in a&&o(0,t=a.$$scope)},[t,e]}class h extends l{constructor(s){super(),i(this,s,$,m,r,{})}}export{h as default};
 
1
+ import{S as l,i,s as r,B as u,C as f,D as _,E as c,f as p,t as d}from"../../chunks/index-753a1ad2.js";function m(n){let s;const o=n[1].default,e=u(o,n,n[0],null);return{c(){e&&e.c()},l(t){e&&e.l(t)},m(t,a){e&&e.m(t,a),s=!0},p(t,[a]){e&&e.p&&(!s||a&1)&&f(e,o,t,t[0],s?c(o,t[0],a,null):_(t[0]),null)},i(t){s||(p(e,t),s=!0)},o(t){d(e,t),s=!1},d(t){e&&e.d(t)}}}function $(n,s,o){let{$$slots:e={},$$scope:t}=s;return n.$$set=a=>{"$$scope"in a&&o(0,t=a.$$scope)},[t,e]}class h extends l{constructor(s){super(),i(this,s,$,m,r,{})}}export{h as default};
static/_app/immutable/components/pages/_page.svelte-673bcd1c.js ADDED
The diff for this file is too large to render. See raw diff
 
static/_app/immutable/components/pages/_page.svelte-7e536a42.js DELETED
@@ -1 +0,0 @@
1
- import{H as tt,I as gn,S as ze,i as Fe,s as Ve,J as nt,K as it,m as x,h as U,n as E,b as oe,F as R,A as rt,G as xe,k as V,q as Ke,a as ce,l as J,r as He,c as de,L as st,u as bn,f as C,g as ge,t as $,d as be,M as On,N as wn,e as re,O as En,P as In,v as gt,w as bt,x as Ot,y as wt,o as kn}from"../../chunks/index-1f793c88.js";import{w as Je}from"../../chunks/index-b3d11e3e.js";const Pn=Je(!1),Sn=crypto.randomUUID(),Et=Je(JSON.parse(localStorage.user||JSON.stringify(Sn)));Et.subscribe(e=>localStorage.user=JSON.stringify(e));var Tn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},K={},v={};Object.defineProperty(v,"__esModule",{value:!0});var An=Object.defineProperty,Ln=Object.defineProperties,Rn=Object.getOwnPropertyDescriptors,ve=Object.getOwnPropertySymbols,It=Object.prototype.hasOwnProperty,kt=Object.prototype.propertyIsEnumerable,ot=(e,t,n)=>t in e?An(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,he=(e,t)=>{for(var n in t||(t={}))It.call(t,n)&&ot(e,n,t[n]);if(ve)for(var n of ve(t))kt.call(t,n)&&ot(e,n,t[n]);return e},Oe=(e,t)=>Ln(e,Rn(t)),Un=(e,t)=>{var n={};for(var i in e)It.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&ve)for(var i of ve(e))t.indexOf(i)<0&&kt.call(e,i)&&(n[i]=e[i]);return n},Nn=(e,t,n)=>new Promise((i,s)=>{var r=c=>{try{a(n.next(c))}catch(u){s(u)}},l=c=>{try{a(n.throw(c))}catch(u){s(u)}},a=c=>c.done?i(c.value):Promise.resolve(c.value).then(r,l);a((n=n.apply(e,t)).next())});function Cn(e,t=e){}function Dn(e,t,n=t){}function Mn(e){}function xn(e,t){}function W(e,t){throw new Error(t)}function y(e,t="Expected value to be non-nullable"){return e}var Pt=(e=>(e[e.UPDATE_PRESENCE=100]="UPDATE_PRESENCE",e[e.BROADCAST_EVENT=103]="BROADCAST_EVENT",e[e.FETCH_STORAGE=200]="FETCH_STORAGE",e[e.UPDATE_STORAGE=201]="UPDATE_STORAGE",e))(Pt||{}),St=(e=>(e[e.INIT=0]="INIT",e[e.SET_PARENT_KEY=1]="SET_PARENT_KEY",e[e.CREATE_LIST=2]="CREATE_LIST",e[e.UPDATE_OBJECT=3]="UPDATE_OBJECT",e[e.CREATE_OBJECT=4]="CREATE_OBJECT",e[e.DELETE_CRDT=5]="DELETE_CRDT",e[e.DELETE_OBJECT_KEY=6]="DELETE_OBJECT_KEY",e[e.CREATE_MAP=7]="CREATE_MAP",e[e.CREATE_REGISTER=8]="CREATE_REGISTER",e))(St||{}),Tt=(e=>(e[e.OBJECT=0]="OBJECT",e[e.LIST=1]="LIST",e[e.MAP=2]="MAP",e[e.REGISTER=3]="REGISTER",e))(Tt||{});function Kn(e){return e.type===0&&!At(e)}function At(e){return e.parentId!==void 0&&e.parentKey!==void 0}var Lt=(e=>(e[e.UPDATE_PRESENCE=100]="UPDATE_PRESENCE",e[e.USER_JOINED=101]="USER_JOINED",e[e.USER_LEFT=102]="USER_LEFT",e[e.BROADCASTED_EVENT=103]="BROADCASTED_EVENT",e[e.ROOM_STATE=104]="ROOM_STATE",e[e.INITIAL_STORAGE_STATE=200]="INITIAL_STORAGE_STATE",e[e.UPDATE_STORAGE=201]="UPDATE_STORAGE",e))(Lt||{});function Hn(e){return e==="my-presence"||e==="others"||e==="event"||e==="error"||e==="connection"||e==="history"}var Rt=(e=>(e[e.CLOSE_ABNORMAL=1006]="CLOSE_ABNORMAL",e[e.INVALID_MESSAGE_FORMAT=4e3]="INVALID_MESSAGE_FORMAT",e[e.NOT_ALLOWED=4001]="NOT_ALLOWED",e[e.MAX_NUMBER_OF_MESSAGES_PER_SECONDS=4002]="MAX_NUMBER_OF_MESSAGES_PER_SECONDS",e[e.MAX_NUMBER_OF_CONCURRENT_CONNECTIONS=4003]="MAX_NUMBER_OF_CONCURRENT_CONNECTIONS",e[e.MAX_NUMBER_OF_MESSAGES_PER_DAY_PER_APP=4004]="MAX_NUMBER_OF_MESSAGES_PER_DAY_PER_APP",e[e.MAX_NUMBER_OF_CONCURRENT_CONNECTIONS_PER_ROOM=4005]="MAX_NUMBER_OF_CONCURRENT_CONNECTIONS_PER_ROOM",e[e.CLOSE_WITHOUT_RETRY=4999]="CLOSE_WITHOUT_RETRY",e))(Rt||{}),te=32,Be=126;function F(e,t){return e!==void 0&&t!==void 0?ye(Ut(ae(e),ae(t))):e!==void 0?zn(e):t!==void 0?jn(t):ye([te+1])}function jn(e){const t=[],n=ae(e);for(let i=0;i<n.length;i++){const s=n[i];if(s<=te+1){if(t.push(te),n.length-1===i){t.push(Be);break}}else{t.push(s-1);break}}return ye(t)}function zn(e){const t=[],n=ae(e);for(let i=0;i<n.length;i++){const s=n[i];if(s===Be){if(t.push(s),n.length-1===i){t.push(te+1);break}}else{t.push(s+1);break}}return ye(t)}function Ut(e,t){let n=0;const i=[];for(;;){const s=e[n]||te,r=t[n]||Be;if(s>r)throw new Error(`Impossible to generate position between ${e} and ${t}`);if(s===r){i.push(s),n++;continue}if(r-s===1){i.push(s),i.push(...Ut(e.slice(n+1),[]));break}const l=r+s>>1;i.push(l);break}return i}function ae(e){const t=[];for(let n=0;n<e.length;n++)t.push(e.charCodeAt(n));return t}function ye(e){return String.fromCharCode(...e)}function Nt(e,t){const n=ae(e),i=ae(t),s=Math.max(n.length,i.length);for(let r=0;r<s;r++){const l=n[r]===void 0?te:n[r],a=i[r]===void 0?te:i[r];if(l!==a)return l-a}throw new Error(`Impossible to compare similar position "${e}" and "${t}"`)}function at(e,t){return Object.freeze({type:"HasParent",node:e,key:t})}var lt=Object.freeze({type:"NoParent"});function ct(e){return Object.freeze({type:"Orphaned",oldKey:e})}var we=class{constructor(){this._parent=lt}_getParentKeyOrThrow(){switch(this.parent.type){case"HasParent":return this.parent.key;case"NoParent":throw new Error("Parent key is missing");case"Orphaned":return this.parent.oldKey;default:return W(this.parent,"Unknown state")}}get _pool(){return this.__pool}get roomId(){return this.__pool?this.__pool.roomId:null}get _id(){return this.__id}get parent(){return this._parent}get _parentNode(){switch(this.parent.type){case"HasParent":return this.parent.node;case"NoParent":return null;case"Orphaned":return null;default:return W(this.parent,"Unknown state")}}get _parentKey(){switch(this.parent.type){case"HasParent":return this.parent.key;case"NoParent":return null;case"Orphaned":return this.parent.oldKey;default:return W(this.parent,"Unknown state")}}_apply(e,t){switch(e.type){case 5:return this.parent.type==="HasParent"?this.parent.node._detachChild(this):{modified:!1}}return{modified:!1}}_setParentLink(e,t){switch(this.parent.type){case"HasParent":if(this.parent.node!==e)throw new Error("Cannot set parent: node already has a parent");this._parent=at(e,t);return;case"Orphaned":case"NoParent":{this._parent=at(e,t);return}default:return W(this.parent,"Unknown state")}}_attach(e,t){if(this.__id||this.__pool)throw new Error("Cannot attach node: already attached");t.addNode(e,this),this.__id=e,this.__pool=t}_detach(){switch(this.__pool&&this.__id&&this.__pool.deleteNode(this.__id),this.parent.type){case"HasParent":{this._parent=ct(this.parent.key);break}case"NoParent":{this._parent=lt;break}case"Orphaned":{this._parent=ct(this.parent.oldKey);break}default:W(this.parent,"Unknown state")}this.__pool=void 0}invalidate(){this._cachedImmutable!==void 0&&(this._cachedImmutable=void 0,this.parent.type==="HasParent"&&this.parent.node.invalidate())}toImmutable(){return this._cachedImmutable===void 0&&(this._cachedImmutable=this._toImmutable()),this._cachedImmutable}},G=class extends we{constructor(e){super(),this._data=e}get data(){return this._data}static _deserialize([e,t],n,i){const s=new G(t.data);return s._attach(e,i),s}_toOps(e,t,n){if(this._id===void 0)throw new Error("Cannot serialize register if parentId or parentKey is undefined");return[{type:8,opId:n==null?void 0:n.generateOpId(),id:this._id,parentId:e,parentKey:t,data:this.data}]}_serialize(){if(this.parent.type!=="HasParent")throw new Error("Cannot serialize LiveRegister if parent is missing");return{type:3,parentId:y(this.parent.node._id,"Parent node expected to have ID"),parentKey:this.parent.key,data:this.data}}_attachChild(e){throw new Error("Method not implemented.")}_detachChild(e){throw new Error("Method not implemented.")}_apply(e,t){return super._apply(e,t)}_toImmutable(){return this._data}},X=class extends we{constructor(e){if(super(),this.unacknowledgedSet=new Map,e){const t=[];for(const n of e){const i=se(n[1]);i._setParentLink(this,n[0]),t.push([n[0],i])}this._map=new Map(t)}else this._map=new Map}_toOps(e,t,n){if(this._id===void 0)throw new Error("Cannot serialize item is not attached");const i=[],s={id:this._id,opId:n==null?void 0:n.generateOpId(),type:7,parentId:e,parentKey:t};i.push(s);for(const[r,l]of this._map)i.push(...l._toOps(this._id,r,n));return i}static _deserialize([e,t],n,i){const s=new X;s._attach(e,i);const r=n.get(e);if(r===void 0)return s;for(const[l,a]of r){const c=Mt([l,a],n,i);c._setParentLink(s,a.parentKey),s._map.set(a.parentKey,c),s.invalidate()}return s}_attach(e,t){super._attach(e,t);for(const[n,i]of this._map)L(i)&&i._attach(t.generateId(),t)}_attachChild(e,t){if(this._pool===void 0)throw new Error("Can't attach child if managed pool is not present");const{id:n,parentKey:i,opId:s}=e,r=i,l=ue(e);if(this._pool.getNode(n)!==void 0)return{modified:!1};if(t===2){const u=this.unacknowledgedSet.get(r);if(u===s)return this.unacknowledgedSet.delete(r),{modified:!1};if(u!==void 0)return{modified:!1}}else t===1&&this.unacknowledgedSet.delete(r);const a=this._map.get(r);let c;if(a){const u=y(this._id);c=a._toOps(u,r),a._detach()}else c=[{type:5,id:n}];return l._setParentLink(this,r),l._attach(n,this._pool),this._map.set(r,l),this.invalidate(),{modified:{node:this,type:"LiveMap",updates:{[r]:{type:"update"}}},reverse:c}}_detach(){super._detach();for(const e of this._map.values())e._detach()}_detachChild(e){const t=y(this._id),n=y(e._parentKey),i=e._toOps(t,n,this._pool);for(const[r,l]of this._map)l===e&&(this._map.delete(r),this.invalidate());return e._detach(),{modified:{node:this,type:"LiveMap",updates:{[n]:{type:"delete"}}},reverse:i}}_serialize(){if(this.parent.type!=="HasParent")throw new Error("Cannot serialize LiveMap if parent is missing");return{type:2,parentId:y(this.parent.node._id,"Parent node expected to have ID"),parentKey:this.parent.key}}get(e){const t=this._map.get(e);if(t!==void 0)return ee(t)}set(e,t){const n=this._map.get(e);n&&n._detach();const i=se(t);if(i._setParentLink(this,e),this._map.set(e,i),this.invalidate(),this._pool&&this._id){const s=this._pool.generateId();i._attach(s,this._pool);const r=new Map;r.set(this._id,{node:this,type:"LiveMap",updates:{[e]:{type:"update"}}});const l=i._toOps(this._id,e,this._pool);this.unacknowledgedSet.set(e,y(l[0].opId)),this._pool.dispatch(i._toOps(this._id,e,this._pool),n?n._toOps(this._id,e):[{type:5,id:s}],r)}}get size(){return this._map.size}has(e){return this._map.has(e)}delete(e){const t=this._map.get(e);if(t===void 0)return!1;if(t._detach(),this._map.delete(e),this.invalidate(),this._pool&&t._id){const n=y(this._id),i=new Map;i.set(n,{node:this,type:"LiveMap",updates:{[e]:{type:"delete"}}}),this._pool.dispatch([{type:5,id:t._id,opId:this._pool.generateOpId()}],t._toOps(n,e),i)}return!0}entries(){const e=this._map.entries();return{[Symbol.iterator](){return this},next(){const t=e.next();if(t.done)return{done:!0,value:void 0};const i=t.value[0],s=ee(t.value[1]);return{value:[i,s]}}}}[Symbol.iterator](){return this.entries()}keys(){return this._map.keys()}values(){const e=this._map.values();return{[Symbol.iterator](){return this},next(){const t=e.next();return t.done?{done:!0,value:void 0}:{value:ee(t.value)}}}}forEach(e){for(const t of this)e(t[1],t[0],this)}toImmutable(){return super.toImmutable()}_toImmutable(){const e=new Map;for(const[t,n]of this._map)e.set(t,n.toImmutable());return $e(e)}},q=class extends we{constructor(e={}){super(),this._propToLastUpdate=new Map;for(const t in e){const n=e[t];n!==void 0&&L(n)&&n._setParentLink(this,t)}this._map=new Map(Object.entries(e))}_toOps(e,t,n){if(this._id===void 0)throw new Error("Cannot serialize item is not attached");const i=n==null?void 0:n.generateOpId(),s=[],r=e!==void 0&&t!==void 0?{type:4,id:this._id,opId:i,parentId:e,parentKey:t,data:{}}:{type:4,id:this._id,opId:i,data:{}};s.push(r);for(const[l,a]of this._map)L(a)?s.push(...a._toOps(this._id,l,n)):r.data[l]=a;return s}static _deserialize([e,t],n,i){const s=new q(t.data);return s._attach(e,i),this._deserializeChildren(s,n,i)}static _deserializeChildren(e,t,n){const i=t.get(y(e._id));if(i===void 0)return e;for(const[s,r]of i){const l=Jn([s,r],t,n);me(l)&&l._setParentLink(e,r.parentKey),e._map.set(r.parentKey,l),e.invalidate()}return e}_attach(e,t){super._attach(e,t);for(const[n,i]of this._map)L(i)&&i._attach(t.generateId(),t)}_attachChild(e,t){if(this._pool===void 0)throw new Error("Can't attach child if managed pool is not present");const{id:n,opId:i,parentKey:s}=e,r=Ct(e);if(this._pool.getNode(n)!==void 0)return this._propToLastUpdate.get(s)===i&&this._propToLastUpdate.delete(s),{modified:!1};if(t===0)this._propToLastUpdate.set(s,y(i));else if(this._propToLastUpdate.get(s)!==void 0)return this._propToLastUpdate.get(s)===i?(this._propToLastUpdate.delete(s),{modified:!1}):{modified:!1};const l=y(this._id),a=this._map.get(s);let c;return L(a)?(c=a._toOps(l,s),a._detach()):a===void 0?c=[{type:6,id:l,key:s}]:c=[{type:3,id:l,data:{[s]:a}}],this._map.set(s,r),this.invalidate(),me(r)&&(r._setParentLink(this,s),r._attach(n,this._pool)),{reverse:c,modified:{node:this,type:"LiveObject",updates:{[s]:{type:"update"}}}}}_detachChild(e){if(e){const t=y(this._id),n=y(e._parentKey),i=e._toOps(t,n,this._pool);for(const[r,l]of this._map)l===e&&(this._map.delete(r),this.invalidate());return e._detach(),{modified:{node:this,type:"LiveObject",updates:{[n]:{type:"delete"}}},reverse:i}}return{modified:!1}}_detach(){super._detach();for(const e of this._map.values())L(e)&&e._detach()}_apply(e,t){return e.type===3?this._applyUpdate(e,t):e.type===6?this._applyDeleteObjectKey(e):super._apply(e,t)}_serialize(){const e={};for(const[t,n]of this._map)L(n)||(e[t]=n);return this.parent.type==="HasParent"&&this.parent.node._id?{type:0,parentId:this.parent.node._id,parentKey:this.parent.key,data:e}:{type:0,data:e}}_applyUpdate(e,t){let n=!1;const i=y(this._id),s=[],r={type:3,id:i,data:{}};s.push(r);for(const a in e.data){const c=this._map.get(a);L(c)?(s.push(...c._toOps(i,a)),c._detach()):c!==void 0?r.data[a]=c:c===void 0&&s.push({type:6,id:i,key:a})}const l={};for(const a in e.data){const c=e.data[a];if(c===void 0)continue;if(t)this._propToLastUpdate.set(a,y(e.opId));else if(this._propToLastUpdate.get(a)===void 0)n=!0;else if(this._propToLastUpdate.get(a)===e.opId){this._propToLastUpdate.delete(a);continue}else continue;const u=this._map.get(a);L(u)&&u._detach(),n=!0,l[a]={type:"update"},this._map.set(a,c),this.invalidate()}return Object.keys(r.data).length!==0&&s.unshift(r),n?{modified:{node:this,type:"LiveObject",updates:l},reverse:s}:{modified:!1}}_applyDeleteObjectKey(e){const t=e.key;if(this._map.has(t)===!1)return{modified:!1};if(this._propToLastUpdate.get(t)!==void 0)return{modified:!1};const n=this._map.get(t),i=y(this._id);let s=[];return L(n)?(s=n._toOps(i,e.key),n._detach()):n!==void 0&&(s=[{type:3,id:i,data:{[t]:n}}]),this._map.delete(t),this.invalidate(),{modified:{node:this,type:"LiveObject",updates:{[e.key]:{type:"delete"}}},reverse:s}}toObject(){return Qn(this._map)}set(e,t){this.update({[e]:t})}get(e){return this._map.get(e)}delete(e){const t=e,n=this._map.get(t);if(n===void 0)return;if(this._pool===void 0||this._id===void 0){L(n)&&n._detach(),this._map.delete(t),this.invalidate();return}let i;L(n)?(n._detach(),i=n._toOps(this._id,t)):i=[{type:3,data:{[t]:n},id:this._id}],this._map.delete(t),this.invalidate();const s=new Map;s.set(this._id,{node:this,type:"LiveObject",updates:{[e]:{type:"delete"}}}),this._pool.dispatch([{type:6,key:t,id:this._id,opId:this._pool.generateOpId()}],i,s)}update(e){if(this._pool===void 0||this._id===void 0){for(const c in e){const u=e[c];if(u===void 0)continue;const g=this._map.get(c);L(g)&&g._detach(),L(u)&&u._setParentLink(this,c),this._map.set(c,u),this.invalidate()}return}const t=[],n=[],i=this._pool.generateOpId(),s={},r={id:this._id,type:3,data:{}},l={};for(const c in e){const u=e[c];if(u===void 0)continue;const g=this._map.get(c);if(L(g)?(n.push(...g._toOps(this._id,c)),g._detach()):g===void 0?n.push({type:6,id:this._id,key:c}):r.data[c]=g,L(u)){u._setParentLink(this,c),u._attach(this._pool.generateId(),this._pool);const m=u._toOps(this._id,c,this._pool),I=m.find(b=>b.parentId===this._id);I&&this._propToLastUpdate.set(c,y(I.opId)),t.push(...m)}else s[c]=u,this._propToLastUpdate.set(c,i);this._map.set(c,u),this.invalidate(),l[c]={type:"update"}}Object.keys(r.data).length!==0&&n.unshift(r),Object.keys(s).length!==0&&t.unshift({opId:i,id:this._id,type:3,data:s});const a=new Map;a.set(this._id,{node:this,type:"LiveObject",updates:l}),this._pool.dispatch(t,n,a)}toImmutable(){return super.toImmutable()}_toImmutable(){const e={};for(const[t,n]of this._map)e[t]=me(n)?n.toImmutable():n;return e}},$e=e=>e;function Fn(e){return e.filter(t=>t!=null)}function Vn(e){const t=he({},e);return Object.keys(e).forEach(n=>{const i=n;t[i]===void 0&&delete t[i]}),t}function ue(e){return se(Ct(e))}function Ct(e){switch(e.type){case 8:return e.data;case 4:return new q(e.data);case 7:return new X;case 2:return new Q;default:return W(e,"Unknown creation Op")}}function Dt(e,t){return e===t?!0:e.parent.type==="HasParent"?Dt(e.parent.node,t):!1}function Mt([e,t],n,i){switch(t.type){case 0:return q._deserialize([e,t],n,i);case 1:return Q._deserialize([e,t],n,i);case 2:return X._deserialize([e,t],n,i);case 3:return G._deserialize([e,t],n,i);default:throw new Error("Unexpected CRDT type")}}function Jn([e,t],n,i){switch(t.type){case 0:return q._deserialize([e,t],n,i);case 1:return Q._deserialize([e,t],n,i);case 2:return X._deserialize([e,t],n,i);case 3:return t.data;default:throw new Error("Unexpected CRDT type")}}function me(e){return xt(e)||Bn(e)||Kt(e)}function L(e){return me(e)||$n(e)}function xt(e){return e instanceof Q}function Bn(e){return e instanceof X}function Kt(e){return e instanceof q}function $n(e){return e instanceof G}function ee(e){return e instanceof G?e.data:e instanceof Q||e instanceof X||e instanceof q?e:W(e,"Unknown AbstractCrdt")}function se(e){return e instanceof q||e instanceof X||e instanceof Q?e:new G(e)}function Gn(e,t){const n=[];return e.forEach((i,s)=>{t.get(s)||n.push({type:5,id:s})}),t.forEach((i,s)=>{const r=e.get(s);if(r)i.type===0&&(r.type!==0||JSON.stringify(i.data)!==JSON.stringify(r.data))&&n.push({type:3,id:s,data:i.data}),i.parentKey!==r.parentKey&&n.push({type:1,id:s,parentKey:y(i.parentKey,"Parent key must not be missing")});else switch(i.type){case 3:n.push({type:8,id:s,parentId:i.parentId,parentKey:i.parentKey,data:i.data});break;case 1:n.push({type:2,id:s,parentId:i.parentId,parentKey:i.parentKey});break;case 0:n.push(i.parentId?{type:4,id:s,parentId:i.parentId,parentKey:i.parentKey,data:i.data}:{type:4,id:s,data:i.data});break;case 2:n.push({type:7,id:s,parentId:i.parentId,parentKey:i.parentKey});break}}),n}function Yn(e,t){const n=e.updates;for(const[i,s]of jt(t.updates))n[i]=s;return Oe(he({},t),{updates:n})}function Wn(e,t){const n=e.updates;for(const[i,s]of jt(t.updates))n[i]=s;return Oe(he({},t),{updates:n})}function Xn(e,t){const n=e.updates;return Oe(he({},t),{updates:n.concat(t.updates)})}function qn(e,t){return e?e.type==="LiveObject"&&t.type==="LiveObject"?Yn(e,t):e.type==="LiveMap"&&t.type==="LiveMap"?Wn(e,t):e.type==="LiveList"&&t.type==="LiveList"?Xn(e,t):t:t}function dt(e){const t=typeof e;return e==null||t==="string"||t==="boolean"||t==="number"||Array.isArray(e)||Ge(e)}function Ge(e){return e!==null&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"}function Ht(e,t=""){if(!dt)return{path:t||"root",value:e};if(typeof e!="object"||e===null)return!1;for(const[n,i]of Object.entries(e)){const s=t?t+"."+n:n;if(!dt(i))return{path:s,value:i};if(typeof i=="object"){const r=Ht(i,s);if(r)return r}}return!1}function Qn(e){const t={};for(const[n,i]of e)t[n]=i;return t}function jt(e){return Object.entries(e)}function zt(e){try{return JSON.parse(e)}catch{return}}function Ft(e){try{const t=e.replace(/-/g,"+").replace(/_/g,"/");return decodeURIComponent(atob(t).split("").map(function(i){return"%"+("00"+i.charCodeAt(0).toString(16)).slice(-2)}).join(""))}catch{return atob(e)}}function Zn(e,t){return Nt(e._getParentKeyOrThrow(),t._getParentKeyOrThrow())}var Q=class extends we{constructor(e=[]){super(),this._items=[],this._implicitlyDeletedItems=new WeakSet,this._unacknowledgedSets=new Map;let t;for(let n=0;n<e.length;n++){const i=F(t),s=se(e[n]);s._setParentLink(this,i),this._items.push(s),t=i}}static _deserialize([e],t,n){const i=new Q;i._attach(e,n);const s=t.get(e);if(s===void 0)return i;for(const[r,l]of s){const a=Mt([r,l],t,n);a._setParentLink(i,l.parentKey),i._insertAndSort(a)}return i}_toOps(e,t,n){if(this._id===void 0)throw new Error("Cannot serialize item is not attached");const i=[],s={id:this._id,opId:n==null?void 0:n.generateOpId(),type:2,parentId:e,parentKey:t};i.push(s);for(const r of this._items)i.push(...r._toOps(this._id,r._getParentKeyOrThrow(),n));return i}_insertAndSort(e){this._items.push(e),this._sortItems()}_sortItems(){this._items.sort(Zn),this.invalidate()}_indexOfPosition(e){return this._items.findIndex(t=>t._getParentKeyOrThrow()===e)}_attach(e,t){super._attach(e,t);for(const n of this._items)n._attach(t.generateId(),t)}_detach(){super._detach();for(const e of this._items)e._detach()}_applySetRemote(e){if(this._pool===void 0)throw new Error("Can't attach child if managed pool is not present");const{id:t,parentKey:n}=e,i=ue(e);i._attach(t,this._pool),i._setParentLink(this,n);const s=e.deletedId,r=this._indexOfPosition(n);if(r!==-1){const l=this._items[r];if(l._id===s)return l._detach(),this._items[r]=i,{modified:w(this,[ie(r,i)]),reverse:[]};{this._implicitlyDeletedItems.add(l),this._items[r]=i;const a=[ie(r,i)],c=this._detachItemAssociatedToSetOperation(e.deletedId);return c&&a.push(c),{modified:w(this,a),reverse:[]}}}else{const l=[],a=this._detachItemAssociatedToSetOperation(e.deletedId);return a&&l.push(a),this._insertAndSort(i),l.push(z(this._indexOfPosition(n),i)),{reverse:[],modified:w(this,l)}}}_applySetAck(e){if(this._pool===void 0)throw new Error("Can't attach child if managed pool is not present");const t=[],n=this._detachItemAssociatedToSetOperation(e.deletedId);n&&t.push(n);const i=this._unacknowledgedSets.get(e.parentKey);if(i!==void 0){if(i!==e.opId)return t.length===0?{modified:!1}:{modified:w(this,t),reverse:[]};this._unacknowledgedSets.delete(e.parentKey)}const s=this._indexOfPosition(e.parentKey),r=this._items.find(l=>l._id===e.id);if(r!==void 0){if(r._parentKey===e.parentKey)return{modified:t.length>0?w(this,t):!1,reverse:[]};s!==-1&&(this._implicitlyDeletedItems.add(this._items[s]),this._items.splice(s,1),t.push(_e(s)));const l=this._items.indexOf(r);r._setParentLink(this,e.parentKey),this._sortItems();const a=this._items.indexOf(r);return a!==l&&t.push(Z(l,a,r)),{modified:t.length>0?w(this,t):!1,reverse:[]}}else{const l=this._pool.getNode(e.id);if(l&&this._implicitlyDeletedItems.has(l)){l._setParentLink(this,e.parentKey),this._implicitlyDeletedItems.delete(l),this._insertAndSort(l);const a=this._items.indexOf(l);return{modified:w(this,[s===-1?z(a,l):ie(a,l),...t]),reverse:[]}}else{s!==-1&&this._items.splice(s,1);const{newItem:a,newIndex:c}=this._createAttachItemAndSort(e,e.parentKey);return{modified:w(this,[s===-1?z(c,a):ie(c,a),...t]),reverse:[]}}}}_detachItemAssociatedToSetOperation(e){if(e===void 0||this._pool===void 0)return null;const t=this._pool.getNode(e);if(t===void 0)return null;const n=this._detachChild(t);return n.modified===!1?null:n.modified.updates[0]}_applyRemoteInsert(e){if(this._pool===void 0)throw new Error("Can't attach child if managed pool is not present");const t=e.parentKey,n=this._indexOfPosition(t);n!==-1&&this._shiftItemPosition(n,t);const{newItem:i,newIndex:s}=this._createAttachItemAndSort(e,t);return{modified:w(this,[z(s,i)]),reverse:[]}}_applyInsertAck(e){const t=this._items.find(s=>s._id===e.id),n=e.parentKey,i=this._indexOfPosition(n);if(t){if(t._parentKey===n)return{modified:!1};{const s=this._items.indexOf(t);i!==-1&&this._shiftItemPosition(i,n),t._setParentLink(this,n),this._sortItems();const r=this._indexOfPosition(n);return r===s?{modified:!1}:{modified:w(this,[Z(s,r,t)]),reverse:[]}}}else{const s=y(this._pool).getNode(e.id);if(s&&this._implicitlyDeletedItems.has(s)){s._setParentLink(this,n),this._implicitlyDeletedItems.delete(s),this._insertAndSort(s);const r=this._indexOfPosition(n);return{modified:w(this,[z(r,s)]),reverse:[]}}else{i!==-1&&this._shiftItemPosition(i,n);const{newItem:r,newIndex:l}=this._createAttachItemAndSort(e,n);return{modified:w(this,[z(l,r)]),reverse:[]}}}}_applyInsertUndoRedo(e){var t;const{id:n,parentKey:i}=e,s=ue(e);if(((t=this._pool)==null?void 0:t.getNode(n))!==void 0)return{modified:!1};s._attach(n,y(this._pool)),s._setParentLink(this,i);const r=this._indexOfPosition(i);let l=i;if(r!==-1){const c=this._items[r]?this._items[r]._getParentKeyOrThrow():void 0,u=this._items[r+1]?this._items[r+1]._getParentKeyOrThrow():void 0;l=F(c,u),s._setParentLink(this,l)}this._insertAndSort(s);const a=this._indexOfPosition(l);return{modified:w(this,[z(a,s)]),reverse:[{type:5,id:n}]}}_applySetUndoRedo(e){var t;const{id:n,parentKey:i}=e,s=ue(e);if(((t=this._pool)==null?void 0:t.getNode(n))!==void 0)return{modified:!1};this._unacknowledgedSets.set(i,y(e.opId));const r=this._indexOfPosition(i);s._attach(n,y(this._pool)),s._setParentLink(this,i);const l=i;if(r!==-1){const a=this._items[r];a._detach(),this._items[r]=s;const c=a._toOps(y(this._id),i,this._pool);Ue(c,e.id);const u=[ie(r,s)],g=this._detachItemAssociatedToSetOperation(e.deletedId);return g&&u.push(g),{modified:w(this,u),reverse:c}}else{this._insertAndSort(s),this._detachItemAssociatedToSetOperation(e.deletedId);const a=this._indexOfPosition(l);return{reverse:[{type:5,id:n}],modified:w(this,[z(a,s)])}}}_attachChild(e,t){if(this._pool===void 0)throw new Error("Can't attach child if managed pool is not present");let n;return e.intent==="set"?t===1?n=this._applySetRemote(e):t===2?n=this._applySetAck(e):n=this._applySetUndoRedo(e):t===1?n=this._applyRemoteInsert(e):t===2?n=this._applyInsertAck(e):n=this._applyInsertUndoRedo(e),n.modified!==!1&&this.invalidate(),n}_detachChild(e){if(e){const t=y(e._parentKey),n=e._toOps(y(this._id),t,this._pool),i=this._items.indexOf(e);return i===-1?{modified:!1}:(this._items.splice(i,1),this.invalidate(),e._detach(),{modified:w(this,[_e(i)]),reverse:n})}return{modified:!1}}_applySetChildKeyRemote(e,t){var n;if(this._implicitlyDeletedItems.has(t)){this._implicitlyDeletedItems.delete(t),t._setParentLink(this,e),this._insertAndSort(t);const r=this._items.indexOf(t);return{modified:w(this,[z(r,t)]),reverse:[]}}const i=t._parentKey;if(e===i)return{modified:!1};const s=this._indexOfPosition(e);if(s===-1){const r=this._items.indexOf(t);t._setParentLink(this,e),this._sortItems();const l=this._items.indexOf(t);return l===r?{modified:!1}:{modified:w(this,[Z(r,l,t)]),reverse:[]}}else{this._items[s]._setParentLink(this,F(e,(n=this._items[s+1])==null?void 0:n._getParentKeyOrThrow()));const r=this._items.indexOf(t);t._setParentLink(this,e),this._sortItems();const l=this._items.indexOf(t);return l===r?{modified:!1}:{modified:w(this,[Z(r,l,t)]),reverse:[]}}}_applySetChildKeyAck(e,t){var n,i;const s=y(t._parentKey);if(this._implicitlyDeletedItems.has(t)){const r=this._indexOfPosition(e);return this._implicitlyDeletedItems.delete(t),r!==-1&&this._items[r]._setParentLink(this,F(e,(n=this._items[r+1])==null?void 0:n._getParentKeyOrThrow())),t._setParentLink(this,e),this._insertAndSort(t),{modified:!1}}else{if(e===s)return{modified:!1};const r=this._items.indexOf(t),l=this._indexOfPosition(e);l!==-1&&this._items[l]._setParentLink(this,F(e,(i=this._items[l+1])==null?void 0:i._getParentKeyOrThrow())),t._setParentLink(this,e),this._sortItems();const a=this._items.indexOf(t);return r===a?{modified:!1}:{modified:w(this,[Z(r,a,t)]),reverse:[]}}}_applySetChildKeyUndoRedo(e,t){var n;const i=y(t._parentKey),s=this._items.indexOf(t),r=this._indexOfPosition(e);r!==-1&&this._items[r]._setParentLink(this,F(e,(n=this._items[r+1])==null?void 0:n._getParentKeyOrThrow())),t._setParentLink(this,e),this._sortItems();const l=this._items.indexOf(t);return s===l?{modified:!1}:{modified:w(this,[Z(s,l,t)]),reverse:[{type:1,id:y(t._id),parentKey:i}]}}_setChildKey(e,t,n){return n===1?this._applySetChildKeyRemote(e,t):n===2?this._applySetChildKeyAck(e,t):this._applySetChildKeyUndoRedo(e,t)}_apply(e,t){return super._apply(e,t)}_serialize(){if(this.parent.type!=="HasParent")throw new Error("Cannot serialize LiveList if parent is missing");return{type:1,parentId:y(this.parent.node._id,"Parent node expected to have ID"),parentKey:this.parent.key}}get length(){return this._items.length}push(e){return this.insert(e,this.length)}insert(e,t){if(t<0||t>this._items.length)throw new Error(`Cannot insert list item at index "${t}". index should be between 0 and ${this._items.length}`);const n=this._items[t-1]?this._items[t-1]._getParentKeyOrThrow():void 0,i=this._items[t]?this._items[t]._getParentKeyOrThrow():void 0,s=F(n,i),r=se(e);if(r._setParentLink(this,s),this._insertAndSort(r),this._pool&&this._id){const l=this._pool.generateId();r._attach(l,this._pool),this._pool.dispatch(r._toOps(this._id,s,this._pool),[{type:5,id:l}],new Map([[this._id,w(this,[z(t,r)])]]))}}move(e,t){if(t<0)throw new Error("targetIndex cannot be less than 0");if(t>=this._items.length)throw new Error("targetIndex cannot be greater or equal than the list length");if(e<0)throw new Error("index cannot be less than 0");if(e>=this._items.length)throw new Error("index cannot be greater or equal than the list length");let n=null,i=null;e<t?(i=t===this._items.length-1?void 0:this._items[t+1]._getParentKeyOrThrow(),n=this._items[t]._getParentKeyOrThrow()):(i=this._items[t]._getParentKeyOrThrow(),n=t===0?void 0:this._items[t-1]._getParentKeyOrThrow());const s=F(n,i),r=this._items[e],l=r._getParentKeyOrThrow();if(r._setParentLink(this,s),this._sortItems(),this._pool&&this._id){const a=new Map([[this._id,w(this,[Z(e,t,r)])]]);this._pool.dispatch([{type:1,id:y(r._id),opId:this._pool.generateOpId(),parentKey:s}],[{type:1,id:y(r._id),parentKey:l}],a)}}delete(e){if(e<0||e>=this._items.length)throw new Error(`Cannot delete list item at index "${e}". index should be between 0 and ${this._items.length-1}`);const t=this._items[e];if(t._detach(),this._items.splice(e,1),this.invalidate(),this._pool){const n=t._id;if(n){const i=new Map;i.set(y(this._id),w(this,[_e(e)])),this._pool.dispatch([{id:n,opId:this._pool.generateOpId(),type:5}],t._toOps(y(this._id),t._getParentKeyOrThrow()),i)}}}clear(){if(this._pool){const e=[],t=[],n=[];for(const s of this._items){s._detach();const r=s._id;r&&(e.push({type:5,id:r,opId:this._pool.generateOpId()}),t.push(...s._toOps(y(this._id),s._getParentKeyOrThrow())),n.push(_e(0)))}this._items=[],this.invalidate();const i=new Map;i.set(y(this._id),w(this,n)),this._pool.dispatch(e,t,i)}else{for(const e of this._items)e._detach();this._items=[],this.invalidate()}}set(e,t){if(e<0||e>=this._items.length)throw new Error(`Cannot set list item at index "${e}". index should be between 0 and ${this._items.length-1}`);const n=this._items[e],i=n._getParentKeyOrThrow(),s=n._id;n._detach();const r=se(t);if(r._setParentLink(this,i),this._items[e]=r,this.invalidate(),this._pool&&this._id){const l=this._pool.generateId();r._attach(l,this._pool);const a=new Map;a.set(this._id,w(this,[ie(e,r)]));const c=r._toOps(this._id,i,this._pool);Ue(c,s),this._unacknowledgedSets.set(i,y(c[0].opId));const u=n._toOps(this._id,i,void 0);Ue(u,l),this._pool.dispatch(c,u,a)}}toArray(){return this._items.map(e=>ee(e))}every(e){return this.toArray().every(e)}filter(e){return this.toArray().filter(e)}find(e){return this.toArray().find(e)}findIndex(e){return this.toArray().findIndex(e)}forEach(e){return this.toArray().forEach(e)}get(e){if(!(e<0||e>=this._items.length))return ee(this._items[e])}indexOf(e,t){return this.toArray().indexOf(e,t)}lastIndexOf(e,t){return this.toArray().lastIndexOf(e,t)}map(e){return this._items.map((t,n)=>e(ee(t),n))}some(e){return this.toArray().some(e)}[Symbol.iterator](){return new ei(this._items)}_createAttachItemAndSort(e,t){const n=ue(e);n._attach(e.id,y(this._pool)),n._setParentLink(this,t),this._insertAndSort(n);const i=this._indexOfPosition(t);return{newItem:n,newIndex:i}}_shiftItemPosition(e,t){var n;const i=F(t,this._items.length>e+1?(n=this._items[e+1])==null?void 0:n._getParentKeyOrThrow():void 0);this._items[e]._setParentLink(this,i)}toImmutable(){return super.toImmutable()}_toImmutable(){return this._items.map(t=>t.toImmutable())}},ei=class{constructor(e){this._innerIterator=e[Symbol.iterator]()}[Symbol.iterator](){return this}next(){const e=this._innerIterator.next();return e.done?{done:!0,value:void 0}:{value:ee(e.value)}}};function w(e,t){return{node:e,type:"LiveList",updates:t}}function ie(e,t){return{index:e,type:"set",item:t instanceof G?t.data:t}}function _e(e){return{index:e,type:"delete"}}function z(e,t){return{index:e,type:"insert",item:t instanceof G?t.data:t}}function Z(e,t,n){return{index:t,type:"move",previousIndex:e,item:n instanceof G?n.data:n}}function Ue(e,t){if(e.length===0)throw new Error("Internal error. Serialized LiveStructure should have at least 1 operation");const n=e[0];n.intent="set",n.deletedId=t}var ti=["websocket:presence","websocket:storage","room:read","room:write","rooms:read","rooms:write"];function ni(e){if(!Ge(e))return!1;const{iat:t,exp:n}=e;return typeof t=="number"&&typeof n=="number"}function ii(e){const t=Date.now()/1e3;return t>e.exp-300||t<e.iat+300}function ri(e){return ti.includes(e)}function Vt(e){return Array.isArray(e)&&e.every(t=>typeof t=="string")}function Jt(e){return typeof e.appId=="string"&&e.roomId===void 0&&Vt(e.scopes)}function Ye(e){return typeof e.appId=="string"&&typeof e.roomId=="string"&&typeof e.actor=="number"&&(e.id===void 0||typeof e.id=="string")&&Vt(e.scopes)&&(e.maxConnectionsPerRoom===void 0||typeof e.maxConnectionsPerRoom=="number")}function si(e){return Jt(e)||Ye(e)}function oi(e){const t=e.split(".");if(t.length!==3)throw new Error("Authentication error: invalid JWT token");const n=zt(Ft(t[1]));if(n&&ni(n))return n;throw new Error("Authentication error: missing JWT metadata")}function ai(e){const t=oi(e);if(t&&Ye(t))return Un(t,["maxConnections"]);throw new Error("Authentication error: we expected a room token but did not get one. Hint: if you are using a callback, ensure the room is passed when creating the token. For more information: https://liveblocks.io/docs/api-reference/liveblocks-client#createClientCallback")}function li(e){return Object.defineProperty(e,"count",{value:e.length,enumerable:!1}),Object.defineProperty(e,"toArray",{value:()=>e,enumerable:!1}),$e(e)}function Bt(e){return e===null||typeof e=="string"||typeof e=="number"||typeof e=="boolean"}function $t(e){return Array.isArray(e)}function ci(e){return!Bt(e)&&!$t(e)}v.__spreadValues=he;v.__spreadProps=Oe;v.__async=Nn;v.deprecate=Cn;v.deprecateIf=Dn;v.throwUsageError=Mn;v.errorIf=xn;v.assertNever=W;v.nn=y;v.ClientMsgCode=Pt;v.OpCode=St;v.CrdtType=Tt;v.isRootCrdt=Kn;v.isChildCrdt=At;v.ServerMsgCode=Lt;v.isRoomEventName=Hn;v.WebsocketCloseCodes=Rt;v.LiveRegister=G;v.makePosition=F;v.comparePosition=Nt;v.LiveList=Q;v.LiveMap=X;v.LiveObject=q;v.freeze=$e;v.compact=Fn;v.compactObject=Vn;v.isSameNodeOrChildOf=Dt;v.isLiveNode=L;v.isLiveList=xt;v.isLiveObject=Kt;v.getTreesDiffOperations=Gn;v.mergeStorageUpdates=qn;v.isPlainObject=Ge;v.findNonSerializableValue=Ht;v.tryParseJson=zt;v.b64decode=Ft;v.isTokenExpired=ii;v.isScope=ri;v.isAppOnlyAuthToken=Jt;v.isRoomAuthToken=Ye;v.isAuthToken=si;v.parseRoomAuthToken=ai;v.asArrayWithLegacyMethods=li;v.isJsonScalar=Bt;v.isJsonArray=$t;v.isJsonObject=ci;Object.defineProperty(K,"__esModule",{value:!0});var _=v;function B(){const e=new Set,t=new Set;function n(l){return t.add(l),()=>t.delete(l)}function i(l){return e.add(l),()=>e.delete(l)}function s(l){e.forEach(a=>a(l)),e.clear(),t.forEach(a=>a(l))}function r(){e.clear(),t.clear()}return{notify:s,subscribe:n,subscribeOnce:i,clear:r,observable:{subscribe:n,subscribeOnce:i}}}function Gt(e,t){let n=!1;const i=_.__spreadValues.call(void 0,{},e);return Object.keys(t).forEach(s=>{const r=s,l=t[r];i[r]!==l&&(l===void 0?delete i[r]:i[r]=l,n=!0)}),n?i:e}var Ee=class{constructor(){this._ev=B()}get didInvalidate(){return this._ev.observable}invalidate(){this._cache!==void 0&&(this._cache=void 0,this._ev.notify())}get current(){var e;return(e=this._cache)!=null?e:this._cache=this._toImmutable()}},di=class extends Ee{constructor(e){super(),this._me=_.freeze.call(void 0,_.compactObject.call(void 0,e))}_toImmutable(){return this._me}patch(e){const t=this._me,n=Gt(t,e);t!==n&&(this._me=_.freeze.call(void 0,n),this.invalidate())}};function ui(e,t){return _.freeze.call(void 0,_.compactObject.call(void 0,_.__spreadProps.call(void 0,_.__spreadValues.call(void 0,{},e),{presence:t})))}var hi=class extends Ee{constructor(){super(),this._connections={},this._presences={},this._users={}}_toImmutable(){const e=_.compact.call(void 0,Object.keys(this._presences).map(t=>this.getUser(Number(t))));return _.asArrayWithLegacyMethods.call(void 0,e)}clearOthers(){this._connections={},this._presences={},this._users={},this.invalidate()}_getUser(e){const t=this._connections[e],n=this._presences[e];if(t!==void 0&&n!==void 0)return ui(t,n)}getUser(e){const t=this._users[e];if(t)return t;const n=this._getUser(e);if(n)return this._users[e]=n,n}_invalidateUser(e){this._users[e]!==void 0&&delete this._users[e],this.invalidate()}setConnection(e,t,n){this._connections[e]=_.freeze.call(void 0,{connectionId:e,id:t,info:n}),this._presences[e]!==void 0&&this._invalidateUser(e)}removeConnection(e){delete this._connections[e],delete this._presences[e],this._invalidateUser(e)}setOther(e,t){this._presences[e]=_.freeze.call(void 0,_.compactObject.call(void 0,t)),this._connections[e]!==void 0&&this._invalidateUser(e)}patchOther(e,t){const n=this._presences[e];if(n===void 0)return;const i=Gt(n,t);n!==i&&(this._presences[e]=_.freeze.call(void 0,i),this._invalidateUser(e))}},fi=class extends Ee{constructor(e){super(),this._value=_.freeze.call(void 0,_.compactObject.call(void 0,e))}_toImmutable(){return this._value}set(e){this._value=_.freeze.call(void 0,e),this.invalidate()}},pi=class extends Ee{constructor(e,t){super(),this._refs=e,this._refs.forEach(n=>{n.didInvalidate.subscribe(()=>this.invalidate())}),this._transform=t}_toImmutable(){return this._transform(this._refs[0].current,this._refs[1].current)}},Ne=[250,500,1e3,2e3,4e3,8e3,1e4],Ce=[2e3,3e4,6e4,3e5],_i=3e4,mi=2e3;function vi(e){let t=0;return()=>`${e}:${t++}`}function De(e){return e.state==="open"||e.state==="connecting"}function yi(e,t,n){const i={roomId:t.roomId,getNode:o=>e.nodes.get(o),addNode:(o,d)=>void e.nodes.set(o,d),deleteNode:o=>void e.nodes.delete(o),generateId:()=>`${N()}:${e.clock++}`,generateOpId:()=>`${N()}:${e.opClock++}`,dispatch(o,d,h){const f=e.activeBatch;f?(f.ops.push(...o),h.forEach((p,S)=>{f.updates.storageUpdates.set(S,_.mergeStorageUpdates.call(void 0,f.updates.storageUpdates.get(S),p))}),f.reverseOps.push(...d)):(I(d),e.redoStack=[],qe(o),b({storageUpdates:h}))}},s={customEvent:B(),me:B(),others:B(),error:B(),connection:B(),storage:B(),history:B(),storageDidLoad:B()},r=n||{authenticate(o,d){const h=e.token,f=h!==null&&_.parseRoomAuthToken.call(void 0,h);if(f&&!_.isTokenExpired.call(void 0,f)){const p=d(h);ne(f,p)}else return o(t.roomId).then(({token:p})=>{if(e.connection.current.state!=="authenticating")return;const S=_.parseRoomAuthToken.call(void 0,p),k=d(p);ne(S,k),e.token=p}).catch(p=>Yt())},send(o){if(e.socket===null)throw new Error("Can't send message if socket is null");e.socket.send(JSON.stringify(o))},delayFlush(o){return setTimeout(M,o)},startHeartbeatInterval(){return setInterval(Te,_i)},schedulePongTimeout(){return setTimeout(nn,mi)},scheduleReconnect(o){return setTimeout(H,o)}},l=new pi([e.connection,e.me],(o,d)=>De(o)?{connectionId:o.id,id:o.userId,info:o.userInfo,presence:d}:null);function a(o){if(o.items.length===0)throw new Error("Internal error: cannot load storage without items");e.root?u(o.items):e.root=g(o.items);for(const d in e.initialStorage)e.root.get(d)===void 0&&e.root.set(d,e.initialStorage[d])}function c(o){const d=new Map;let h=null;for(const[f,p]of o)if(_.isRootCrdt.call(void 0,p))h=[f,p];else{const S=[f,p],k=d.get(p.parentId);k!==void 0?k.push(S):d.set(p.parentId,[S])}if(h===null)throw new Error("Root can't be null");return[h,d]}function u(o){if(!e.root)return;const d=new Map;e.nodes.forEach((p,S)=>{d.set(S,p._serialize())});const h=_.getTreesDiffOperations.call(void 0,d,new Map(o)),f=A(h,!1);b(f.updates)}function g(o){const[d,h]=c(o);return _.LiveObject._deserialize(d,h,i)}function m(o){e.undoStack.length>=50&&e.undoStack.shift(),e.undoStack.push(o),Ie()}function I(o){e.pausedHistory!==null?e.pausedHistory.unshift(...o):m(o)}function b({storageUpdates:o=new Map,presence:d=!1,others:h=[]}){if(h.length>0){const f=e.others.current;for(const p of h)s.others.notify({others:f,event:p})}if(d&&s.me.notify(e.me.current),o.size>0){const f=Array.from(o.values());s.storage.notify(f)}}function N(){const o=e.connection.current;if(De(o))return o.id;if(e.lastConnectionId!==null)return e.lastConnectionId;throw new Error("Internal. Tried to get connection id but connection was never open")}function A(o,d){const h={reverse:[],updates:{storageUpdates:new Map,presence:!1}},f=new Set;for(const p of o)if(p.type==="presence"){const S={type:"presence",data:{}};for(const k in p.data)S.data[k]=e.me.current[k];if(e.me.patch(p.data),e.buffer.me===null)e.buffer.me={type:"partial",data:p.data};else for(const k in p.data)e.buffer.me.data[k]=p.data[k];h.reverse.unshift(S),h.updates.presence=!0}else{let S;p.opId||(p.opId=i.generateOpId()),d?S=0:S=e.offlineOperations.delete(_.nn.call(void 0,p.opId))?2:1;const k=O(p,S);if(k.modified){const Re=k.modified.node.parent.type==="HasParent"?_.nn.call(void 0,k.modified.node.parent.node._id,"Expected parent node to have an ID"):void 0;(!Re||!f.has(Re))&&(h.updates.storageUpdates.set(_.nn.call(void 0,k.modified.node._id),_.mergeStorageUpdates.call(void 0,h.updates.storageUpdates.get(_.nn.call(void 0,k.modified.node._id)),k.modified)),h.reverse.unshift(...k.reverse)),(p.type===2||p.type===7||p.type===4)&&f.add(_.nn.call(void 0,k.modified.node._id))}}return h}function O(o,d){switch(o.type){case 6:case 3:case 5:{const h=e.nodes.get(o.id);return h===void 0?{modified:!1}:h._apply(o,d===0)}case 1:{const h=e.nodes.get(o.id);return h===void 0?{modified:!1}:h.parent.type==="HasParent"&&_.isLiveList.call(void 0,h.parent.node)?h.parent.node._setChildKey(o.parentKey,h,d):{modified:!1}}case 4:case 2:case 7:case 8:{if(o.parentId===void 0)return{modified:!1};const h=e.nodes.get(o.parentId);return h===void 0?{modified:!1}:h._attachChild(o,d)}}}function P(o,d){return s.storage.subscribe(h=>{const f=h.filter(p=>_.isSameNodeOrChildOf.call(void 0,p.node,o));f.length>0&&d(f)})}function T(o,d){return s.storage.subscribe(h=>{for(const f of h)f.node._id===o._id&&d(f.node)})}function D(o,d,h){if(typeof o=="string"&&_.isRoomEventName.call(void 0,o)){if(typeof d!="function")throw new Error("Second argument must be a callback function");const f=d;switch(o){case"event":return s.customEvent.subscribe(f);case"my-presence":return s.me.subscribe(f);case"others":{const p=f;return s.others.subscribe(({others:S,event:k})=>p(S,k))}case"error":return s.error.subscribe(f);case"connection":return s.connection.subscribe(f);case"storage":return s.storage.subscribe(f);case"history":return s.history.subscribe(f);default:return _.assertNever.call(void 0,o,"Unknown event")}}if(d===void 0||typeof o=="function")if(typeof o=="function"){const f=o;return s.storage.subscribe(f)}else throw new Error("Please specify a listener callback");if(_.isLiveNode.call(void 0,o)){const f=o;return h!=null&&h.isDeep?P(f,d):T(f,d)}throw new Error(`"${o}" is not a valid event name`)}function Y(){return e.connection.current.state}function H(){var o,d,h,f;if(e.connection.current.state!=="closed"&&e.connection.current.state!=="unavailable")return null;const p=Ei(t.authentication,(d=(o=t.polyfills)==null?void 0:o.fetch)!=null?d:t.fetchPolyfill),S=wi(t.liveblocksServer,(f=(h=t.polyfills)==null?void 0:h.WebSocket)!=null?f:t.WebSocketPolyfill);j({state:"authenticating"}),r.authenticate(p,S)}function fe(o,d){const h={};e.buffer.me===null&&(e.buffer.me={type:"partial",data:{}});for(const f in o){const p=o[f];p!==void 0&&(e.buffer.me.data[f]=p,h[f]=e.me.current[f])}e.me.patch(o),e.activeBatch?(d!=null&&d.addToHistory&&e.activeBatch.reverseOps.push({type:"presence",data:h}),e.activeBatch.updates.presence=!0):(M(),d!=null&&d.addToHistory&&I([{type:"presence",data:h}]),b({presence:!0}))}function ne(o,d){d.addEventListener("message",pe),d.addEventListener("open",Se),d.addEventListener("close",le),d.addEventListener("error",Pe),j({state:"connecting",id:o.actor,userInfo:o.info,userId:o.id}),e.idFactory=vi(o.actor),e.socket=d}function Yt(o){e.token=null,j({state:"unavailable"}),e.numberOfRetry++,e.timeoutHandles.reconnect=r.scheduleReconnect(ke())}function Wt(o){o==="visible"&&e.connection.current.state==="open"&&Te()}function Xt(o){if(o.targetActor!==void 0){const h=e.others.getUser(o.actor);e.others.setOther(o.actor,o.data);const f=e.others.getUser(o.actor);if(h===void 0&&f!==void 0)return{type:"enter",user:f}}else e.others.patchOther(o.actor,o.data);const d=e.others.getUser(o.actor);if(d)return{type:"update",updates:o.data,user:d}}function qt(o){const d=e.others.getUser(o.actor);return d?(e.others.removeConnection(o.actor),{type:"leave",user:d}):null}function Qt(o){for(const d in o.users){const h=o.users[d],f=Number(d);e.others.setConnection(f,h.id,h.info)}return{type:"reset"}}function Zt(){e.connection.current.state==="unavailable"&&Xe()}function Ie(){s.history.notify({canUndo:Ze(),canRedo:et()})}function en(o){e.others.setConnection(o.actor,o.id,o.info),e.buffer.messages.push({type:100,data:e.me.current,targetActor:o.actor}),M();const d=e.others.getUser(o.actor);return d?{type:"enter",user:d}:void 0}function We(o){return _.isJsonObject.call(void 0,o)?o:null}function tn(o){const d=_.tryParseJson.call(void 0,o);return d===void 0?null:_.isJsonArray.call(void 0,d)?_.compact.call(void 0,d.map(h=>We(h))):_.compact.call(void 0,[We(d)])}function pe(o){if(o.data==="pong"){clearTimeout(e.timeoutHandles.pongTimeout);return}const d=tn(o.data);if(d===null||d.length===0)return;const h={storageUpdates:new Map,others:[]};for(const f of d)switch(f.type){case 101:{const p=en(f);p&&h.others.push(p);break}case 100:{const p=Xt(f);p&&h.others.push(p);break}case 103:{s.customEvent.notify({connectionId:f.actor,event:f.event});break}case 102:{const p=qt(f);p&&h.others.push(p);break}case 104:{h.others.push(Qt(f));break}case 200:{const p=new Map(e.offlineOperations);a(f),rn(p),Le==null||Le(),s.storageDidLoad.notify();break}case 201:{A(f.ops,!1).updates.storageUpdates.forEach((S,k)=>{h.storageUpdates.set(k,_.mergeStorageUpdates.call(void 0,h.storageUpdates.get(k),S))});break}}b(h)}function le(o){if(e.socket=null,clearTimeout(e.timeoutHandles.pongTimeout),clearInterval(e.intervalHandles.heartbeat),e.timeoutHandles.flush&&clearTimeout(e.timeoutHandles.flush),clearTimeout(e.timeoutHandles.reconnect),e.others.clearOthers(),b({others:[{type:"reset"}]}),o.code>=4e3&&o.code<=4100){j({state:"failed"});const d=new Oi(o.reason,o.code);s.error.notify(d);const h=ke(!0);e.numberOfRetry++,j({state:"unavailable"}),e.timeoutHandles.reconnect=r.scheduleReconnect(h)}else if(o.code===4999)j({state:"closed"});else{const d=ke();e.numberOfRetry++,j({state:"unavailable"}),e.timeoutHandles.reconnect=r.scheduleReconnect(d)}}function j(o){e.connection.set(o),s.connection.notify(o.state)}function ke(o=!1){return o?Ce[e.numberOfRetry<Ce.length?e.numberOfRetry:Ce.length-1]:Ne[e.numberOfRetry<Ne.length?e.numberOfRetry:Ne.length-1]}function Pe(){}function Se(){clearInterval(e.intervalHandles.heartbeat),e.intervalHandles.heartbeat=r.startHeartbeatInterval(),e.connection.current.state==="connecting"&&(j(_.__spreadProps.call(void 0,_.__spreadValues.call(void 0,{},e.connection.current),{state:"open"})),e.numberOfRetry=0,e.lastConnectionId!==void 0&&(e.buffer.me={type:"full",data:_.__spreadValues.call(void 0,{},e.me.current)},M()),e.lastConnectionId=e.connection.current.id,e.root&&e.buffer.messages.push({type:200}),M())}function Te(){e.socket!==null&&(clearTimeout(e.timeoutHandles.pongTimeout),e.timeoutHandles.pongTimeout=r.schedulePongTimeout(),e.socket.readyState===e.socket.OPEN&&e.socket.send("ping"))}function nn(){Xe()}function Xe(){e.socket&&(e.socket.removeEventListener("open",Se),e.socket.removeEventListener("message",pe),e.socket.removeEventListener("close",le),e.socket.removeEventListener("error",Pe),e.socket.close(),e.socket=null),j({state:"unavailable"}),clearTimeout(e.timeoutHandles.pongTimeout),e.timeoutHandles.flush&&clearTimeout(e.timeoutHandles.flush),clearTimeout(e.timeoutHandles.reconnect),clearInterval(e.intervalHandles.heartbeat),H()}function rn(o){if(o.size===0)return;const d=[],h=Array.from(o.values()),f=A(h,!0);d.push({type:201,ops:h}),b(f.updates),r.send(d)}function M(){const o=e.buffer.storageOperations;if(o.length>0&&o.forEach(f=>{e.offlineOperations.set(_.nn.call(void 0,f.opId),f)}),e.socket===null||e.socket.readyState!==e.socket.OPEN){e.buffer.storageOperations=[];return}const d=Date.now();if(d-e.lastFlushTime>t.throttleDelay){const f=sn(e);if(f.length===0)return;r.send(f),e.buffer={messages:[],storageOperations:[],me:null},e.lastFlushTime=d}else e.timeoutHandles.flush!==null&&clearTimeout(e.timeoutHandles.flush),e.timeoutHandles.flush=r.delayFlush(t.throttleDelay-(d-e.lastFlushTime))}function sn(o){const d=[];o.buffer.me&&d.push(o.buffer.me.type==="full"?{type:100,targetActor:-1,data:o.buffer.me.data}:{type:100,data:o.buffer.me.data});for(const h of o.buffer.messages)d.push(h);return o.buffer.storageOperations.length>0&&d.push({type:201,ops:o.buffer.storageOperations}),d}function on(){e.socket&&(e.socket.removeEventListener("open",Se),e.socket.removeEventListener("message",pe),e.socket.removeEventListener("close",le),e.socket.removeEventListener("error",Pe),e.socket.close(),e.socket=null),j({state:"closed"}),e.timeoutHandles.flush&&clearTimeout(e.timeoutHandles.flush),clearTimeout(e.timeoutHandles.reconnect),clearTimeout(e.timeoutHandles.pongTimeout),clearInterval(e.intervalHandles.heartbeat),e.others.clearOthers(),b({others:[{type:"reset"}]}),Object.values(s).forEach(o=>o.clear())}function an(){return e.me.current}function ln(){return e.others.current}function cn(o,d={shouldQueueEventIfNotReady:!1}){e.socket===null&&!d.shouldQueueEventIfNotReady||(e.buffer.messages.push({type:103,event:o}),M())}function qe(o){e.buffer.storageOperations.push(...o),M()}let Ae=null,Le=null;function Qe(){return Ae===null&&(e.buffer.messages.push({type:200}),M(),Ae=new Promise(o=>Le=o)),Ae}function dn(){const o=e.root;return o!==void 0?o:(Qe(),null)}function un(){return _.__async.call(void 0,this,null,function*(){return e.root?Promise.resolve({root:e.root}):(yield Qe(),{root:_.nn.call(void 0,e.root)})})}function hn(){if(e.activeBatch)throw new Error("undo is not allowed during a batch");const o=e.undoStack.pop();if(o===void 0)return;e.pausedHistory=null;const d=A(o,!0);b(d.updates),e.redoStack.push(d.reverse),Ie();for(const h of o)h.type!=="presence"&&e.buffer.storageOperations.push(h);M()}function Ze(){return e.undoStack.length>0}function fn(){if(e.activeBatch)throw new Error("redo is not allowed during a batch");const o=e.redoStack.pop();if(o===void 0)return;e.pausedHistory=null;const d=A(o,!0);b(d.updates),e.undoStack.push(d.reverse),Ie();for(const h of o)h.type!=="presence"&&e.buffer.storageOperations.push(h);M()}function et(){return e.redoStack.length>0}function pn(o){if(e.activeBatch)return o();e.activeBatch={ops:[],updates:{storageUpdates:new Map,presence:!1,others:[]},reverseOps:[]};try{return o()}finally{const d=e.activeBatch;e.activeBatch=null,d.reverseOps.length>0&&I(d.reverseOps),d.ops.length>0&&(e.redoStack=[]),d.ops.length>0&&qe(d.ops),b(d.updates),M()}}function _n(){e.pausedHistory=[]}function mn(){const o=e.pausedHistory;e.pausedHistory=null,o!==null&&o.length>0&&m(o)}function vn(){e.socket&&(e.socket=null)}function yn(o){le(o)}return{onClose:le,onMessage:pe,authenticationSuccess:ne,heartbeat:Te,onNavigatorOnline:Zt,simulateSocketClose:vn,simulateSendCloseEvent:yn,onVisibilityChange:Wt,getUndoStack:()=>e.undoStack,getItemsCount:()=>e.nodes.size,connect:H,disconnect:on,subscribe:D,updatePresence:fe,broadcastEvent:cn,batch:pn,undo:hn,redo:fn,canUndo:Ze,canRedo:et,pauseHistory:_n,resumeHistory:mn,getStorage:un,getStorageSnapshot:dn,events:{customEvent:s.customEvent.observable,others:s.others.observable,me:s.me.observable,error:s.error.observable,connection:s.connection.observable,storage:s.storage.observable,history:s.history.observable,storageDidLoad:s.storageDidLoad.observable},getConnectionState:Y,isSelfAware:()=>De(e.connection.current),getSelf:()=>l.current,getPresence:an,getOthers:ln}}function gi(e,t){const n=new hi,i=new fi({state:"closed"});return{token:null,lastConnectionId:null,socket:null,numberOfRetry:0,lastFlushTime:0,timeoutHandles:{flush:null,reconnect:0,pongTimeout:0},buffer:{me:{type:"full",data:e},messages:[],storageOperations:[]},intervalHandles:{heartbeat:0},connection:i,me:new di(e),others:n,initialStorage:t,idFactory:null,clock:0,opClock:0,nodes:new Map,root:void 0,undoStack:[],redoStack:[],pausedHistory:null,activeBatch:null,offlineOperations:new Map}}function bi(e,t){const{initialPresence:n,initialStorage:i}=e,s=gi(typeof n=="function"?n(t.roomId):n,typeof i=="function"?i(t.roomId):i),r=yi(s,t),l={id:t.roomId,getConnectionState:r.getConnectionState,isSelfAware:r.isSelfAware,getSelf:r.getSelf,subscribe:r.subscribe,getPresence:r.getPresence,updatePresence:r.updatePresence,getOthers:r.getOthers,broadcastEvent:r.broadcastEvent,getStorage:r.getStorage,getStorageSnapshot:r.getStorageSnapshot,events:r.events,batch:r.batch,history:{undo:r.undo,redo:r.redo,canUndo:r.canUndo,canRedo:r.canRedo,pause:r.pauseHistory,resume:r.resumeHistory},__INTERNAL_DO_NOT_USE:{simulateCloseWebsocket:r.simulateSocketClose,simulateSendCloseEvent:r.simulateSendCloseEvent}};return{connect:r.connect,disconnect:r.disconnect,onNavigatorOnline:r.onNavigatorOnline,onVisibilityChange:r.onVisibilityChange,room:l}}var Oi=class extends Error{constructor(e,t){super(e),this.code=t}};function wi(e,t){if(typeof window>"u"&&t===void 0)throw new Error("To use Liveblocks client in a non-dom environment, you need to provide a WebSocket polyfill.");const n=t||WebSocket;return i=>new n(`${e}/?token=${i}&version=0.18.2`)}function Ei(e,t){if(e.type==="public"){if(typeof window>"u"&&t===void 0)throw new Error("To use Liveblocks client in a non-dom environment with a publicApiKey, you need to provide a fetch polyfill.");return n=>ut(t||fetch,e.url,{room:n,publicApiKey:e.publicApiKey})}if(e.type==="private"){if(typeof window>"u"&&t===void 0)throw new Error("To use Liveblocks client in a non-dom environment with a url as auth endpoint, you need to provide a fetch polyfill.");return n=>ut(t||fetch,e.url,{room:n})}if(e.type==="custom")return n=>_.__async.call(void 0,this,null,function*(){const i=yield e.callback(n);if(!i||!i.token)throw new Error('Authentication error. We expect the authentication callback to return a token, but it does not. Hint: the return value should look like: { token: "..." }');return i});throw new Error("Internal error. Unexpected authentication type")}function ut(e,t,n){return _.__async.call(void 0,this,null,function*(){const i=yield e(t,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});if(!i.ok)throw new Me(`Expected a status 200 but got ${i.status} when doing a POST request on "${t}"`);let s;try{s=yield i.json()}catch(l){throw new Me(`Expected a JSON response when doing a POST request on "${t}". ${l}`)}if(!_.isPlainObject.call(void 0,s)||typeof s.token!="string")throw new Me(`Expected a JSON response of the form \`{ token: "..." }\` when doing a POST request on "${t}", but got ${JSON.stringify(s)}`);const{token:r}=s;return{token:r}})}var Me=class extends Error{constructor(e){super(e)}};function Ii(e){const t=e,n=ki(e),i=new Map;function s(a){const c=i.get(a);return c?c.room:null}function r(a,c){var u,g;let m=i.get(a);if(m)return m.room;if(_.deprecateIf.call(void 0,c.initialPresence===null||c.initialPresence===void 0,"Please provide an initial presence value for the current user when entering the room."),m=bi({initialPresence:(u=c.initialPresence)!=null?u:{},initialStorage:c.initialStorage},{roomId:a,throttleDelay:n,polyfills:t.polyfills,WebSocketPolyfill:t.WebSocketPolyfill,fetchPolyfill:t.fetchPolyfill,liveblocksServer:(t==null?void 0:t.liveblocksServer)||"wss://api.liveblocks.io/v6",authentication:Pi(t,a)}),i.set(a,m),!c.DO_NOT_USE_withoutConnecting){if(typeof atob>"u"){if(((g=t.polyfills)==null?void 0:g.atob)===void 0)throw new Error("You need to polyfill atob to use the client in your environment. Please follow the instructions at https://liveblocks.io/docs/errors/liveblocks-client/atob-polyfill");Tn.atob=t.polyfills.atob}m.connect()}return m.room}function l(a){const c=i.get(a);c&&(c.disconnect(),i.delete(a))}return typeof window<"u"&&typeof window.addEventListener<"u"&&window.addEventListener("online",()=>{for(const[,a]of i)a.onNavigatorOnline()}),typeof document<"u"&&document.addEventListener("visibilitychange",()=>{for(const[,a]of i)a.onVisibilityChange(document.visibilityState)}),{getRoom:s,enter:r,leave:l}}function ki(e){if(e.throttle===void 0)return 100;if(typeof e.throttle!="number"||e.throttle<80||e.throttle>1e3)throw new Error("throttle should be a number between 80 and 1000.");return e.throttle}function Pi(e,t){const{publicApiKey:n,authEndpoint:i}=e;if(i!==void 0&&n!==void 0)throw new Error("You cannot use both publicApiKey and authEndpoint. Please use either publicApiKey or authEndpoint, but not both. For more information: https://liveblocks.io/docs/api-reference/liveblocks-client#createClient");if(typeof n=="string"){if(n.startsWith("sk_"))throw new Error("Invalid publicApiKey. You are using the secret key which is not supported. Please use the public key instead. For more information: https://liveblocks.io/docs/api-reference/liveblocks-client#createClientPublicKey");if(!n.startsWith("pk_"))throw new Error("Invalid key. Please use the public key format: pk_<public key>. For more information: https://liveblocks.io/docs/api-reference/liveblocks-client#createClientPublicKey");return{type:"public",publicApiKey:n,url:Si(e,t)}}if(typeof i=="string")return{type:"private",url:i};if(typeof i=="function")return{type:"custom",callback:i};throw i!==void 0?new Error("authEndpoint must be a string or a function. For more information: https://liveblocks.io/docs/api-reference/liveblocks-client#createClientAuthEndpoint"):new Error("Invalid Liveblocks client options. For more information: https://liveblocks.io/docs/api-reference/liveblocks-client#createClient")}function Si(e,t){return e.publicAuthorizeEndpoint?e.publicAuthorizeEndpoint.replace("{roomId}",t):`https://api.liveblocks.io/v2/rooms/${encodeURIComponent(t)}/public/authorize`}function Ti(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!Object.is(e[n],t[n]))return!1;return!0}function Ai(e,t){if(typeof e!="object"||e===null||typeof t!="object"||t===null||Object.prototype.toString.call(e)!=="[object Object]"||Object.prototype.toString.call(t)!=="[object Object]")return!1;const n=Object.keys(e);return n.length!==Object.keys(t).length?!1:n.every(i=>Object.prototype.hasOwnProperty.call(t,i)&&Object.is(e[i],t[i]))}function Li(e,t){if(Object.is(e,t))return!0;const n=Array.isArray(e),i=Array.isArray(t);return n||i?!n||!i?!1:Ti(e,t):Ai(e,t)}K.LiveList=_.LiveList;K.LiveMap=_.LiveMap;K.LiveObject=_.LiveObject;K.createClient=Ii;K.shallow=Li;K.LiveList;K.LiveMap;K.LiveObject;const Ri=K.createClient;K.shallow;function ht(e){return Object.prototype.toString.call(e)==="[object Date]"}function je(e,t,n,i){if(typeof n=="number"||ht(n)){const s=i-n,r=(n-t)/(e.dt||1/60),l=e.opts.stiffness*s,a=e.opts.damping*r,c=(l-a)*e.inv_mass,u=(r+c)*e.dt;return Math.abs(u)<e.opts.precision&&Math.abs(s)<e.opts.precision?i:(e.settled=!1,ht(n)?new Date(n.getTime()+u):n+u)}else{if(Array.isArray(n))return n.map((s,r)=>je(e,t[r],n[r],i[r]));if(typeof n=="object"){const s={};for(const r in n)s[r]=je(e,t[r],n[r],i[r]);return s}else throw new Error(`Cannot spring ${typeof n} values`)}}function Ui(e,t={}){const n=Je(e),{stiffness:i=.15,damping:s=.8,precision:r=.01}=t;let l,a,c,u=e,g=e,m=1,I=0,b=!1;function N(O,P={}){g=O;const T=c={};if(e==null||P.hard||A.stiffness>=1&&A.damping>=1)return b=!0,l=tt(),u=O,n.set(e=g),Promise.resolve();if(P.soft){const D=P.soft===!0?.5:+P.soft;I=1/(D*60),m=0}return a||(l=tt(),b=!1,a=gn(D=>{if(b)return b=!1,a=null,!1;m=Math.min(m+I,1);const Y={inv_mass:m,opts:A,settled:!0,dt:(D-l)*60/1e3},H=je(Y,u,e,g);return l=D,u=e,n.set(e=H),Y.settled&&(a=null),!Y.settled})),new Promise(D=>{a.promise.then(()=>{T===c&&D()})})}const A={set:N,update:(O,P)=>N(O(g,e),P),subscribe:n.subscribe,stiffness:i,damping:s,precision:r};return A}function Ni(e){let t,n,i;return{c(){t=nt("svg"),n=nt("path"),this.h()},l(s){t=it(s,"svg",{class:!0,fill:!0,height:!0,style:!0,viewBox:!0,width:!0,xmlns:!0});var r=x(t);n=it(r,"path",{d:!0,fill:!0}),x(n).forEach(U),r.forEach(U),this.h()},h(){E(n,"d","M5.65376 12.3673H5.46026L5.31717 12.4976L0.500002 16.8829L0.500002 1.19841L11.7841 12.3673H5.65376Z"),E(n,"fill",e[0]),E(t,"class","cursor svelte-141kyoc"),E(t,"fill","none"),E(t,"height","36"),E(t,"style",i=`transform: translateX(${e[1].x}px) translateY(${e[1].y}px)`),E(t,"viewBox","0 0 24 36"),E(t,"width","24"),E(t,"xmlns","http://www.w3.org/2000/svg")},m(s,r){oe(s,t,r),R(t,n)},p(s,[r]){r&1&&E(n,"fill",s[0]),r&2&&i!==(i=`transform: translateX(${s[1].x}px) translateY(${s[1].y}px)`)&&E(t,"style",i)},i:rt,o:rt,d(s){s&&U(t)}}}function Ci(e,t,n){let i,{color:s=""}=t,{x:r=0}=t,{y:l=0}=t;const a=Ui({x:r,y:l},{stiffness:.07,damping:.35});return xe(e,a,c=>n(1,i=c)),e.$$set=c=>{"color"in c&&n(0,s=c.color),"x"in c&&n(3,r=c.x),"y"in c&&n(4,l=c.y)},e.$$.update=()=>{e.$$.dirty&24&&a.set({x:r,y:l})},[s,i,a,r,l]}class Di extends ze{constructor(t){super(),Fe(this,t,Ci,Ni,Ve,{color:0,x:3,y:4})}}function ft(e,t,n){const i=e.slice();return i[8]=t[n].connectionId,i[9]=t[n].presence,i}function pt(e){let t=[],n=new Map,i,s,r=[...e[1]];const l=a=>a[8];for(let a=0;a<r.length;a+=1){let c=ft(e,r,a),u=l(c);n.set(u,t[a]=mt(u,c))}return{c(){for(let a=0;a<t.length;a+=1)t[a].c();i=re()},l(a){for(let c=0;c<t.length;c+=1)t[c].l(a);i=re()},m(a,c){for(let u=0;u<t.length;u+=1)t[u].m(a,c);oe(a,i,c),s=!0},p(a,c){c&18&&(r=[...a[1]],ge(),t=En(t,c,l,1,a,r,n,i.parentNode,In,mt,i,ft),be())},i(a){if(!s){for(let c=0;c<r.length;c+=1)C(t[c]);s=!0}},o(a){for(let c=0;c<t.length;c+=1)$(t[c]);s=!1},d(a){for(let c=0;c<t.length;c+=1)t[c].d(a);a&&U(i)}}}function _t(e){let t,n;return t=new Di({props:{color:e[4][e[8]%e[4].length],x:e[9].cursor.x,y:e[9].cursor.y}}),{c(){gt(t.$$.fragment)},l(i){bt(t.$$.fragment,i)},m(i,s){Ot(t,i,s),n=!0},p(i,s){const r={};s&2&&(r.color=i[4][i[8]%i[4].length]),s&2&&(r.x=i[9].cursor.x),s&2&&(r.y=i[9].cursor.y),t.$set(r)},i(i){n||(C(t.$$.fragment,i),n=!0)},o(i){$(t.$$.fragment,i),n=!1},d(i){wt(t,i)}}}function mt(e,t){var l;let n,i,s,r=((l=t[9])==null?void 0:l.cursor)&&_t(t);return{key:e,first:null,c(){n=re(),r&&r.c(),i=re(),this.h()},l(a){n=re(),r&&r.l(a),i=re(),this.h()},h(){this.first=n},m(a,c){oe(a,n,c),r&&r.m(a,c),oe(a,i,c),s=!0},p(a,c){var u;t=a,(u=t[9])!=null&&u.cursor?r?(r.p(t,c),c&2&&C(r,1)):(r=_t(t),r.c(),C(r,1),r.m(i.parentNode,i)):r&&(ge(),$(r,1,1,()=>{r=null}),be())},i(a){s||(C(r),s=!0)},o(a){$(r),s=!1},d(a){a&&U(n),r&&r.d(a),a&&U(i)}}}function Mi(e){var g;let t,n,i=(g=e[0])!=null&&g.cursor?`${e[0].cursor.x} \xD7 ${e[0].cursor.y}`:"Move your cursor to broadcast its position to other people in the room.",s,r,l,a,c,u=e[1]&&pt(e);return{c(){t=V("main"),n=V("div"),s=Ke(i),r=ce(),u&&u.c(),this.h()},l(m){t=J(m,"MAIN",{class:!0});var I=x(t);n=J(I,"DIV",{class:!0});var b=x(n);s=He(b,i),b.forEach(U),r=de(I),u&&u.l(I),I.forEach(U),this.h()},h(){E(n,"class","text svelte-zg8xt2"),E(t,"class","svelte-zg8xt2")},m(m,I){oe(m,t,I),R(t,n),R(n,s),R(t,r),u&&u.m(t,null),l=!0,a||(c=[st(t,"pointerleave",e[3]),st(t,"pointermove",e[2])],a=!0)},p(m,[I]){var b;(!l||I&1)&&i!==(i=(b=m[0])!=null&&b.cursor?`${m[0].cursor.x} \xD7 ${m[0].cursor.y}`:"Move your cursor to broadcast its position to other people in the room.")&&bn(s,i),m[1]?u?(u.p(m,I),I&2&&C(u,1)):(u=pt(m),u.c(),C(u,1),u.m(t,null)):u&&(ge(),$(u,1,1,()=>{u=null}),be())},i(m){l||(C(u),l=!0)},o(m){$(u),l=!1},d(m){m&&U(t),u&&u.d(),a=!1,On(c)}}}function xi(e,t,n){let{room:i}=t,s=i.getPresence(),r=i.getOthers();const l=i.subscribe("my-presence",m=>{n(0,s=m)}),a=i.subscribe("others",m=>{n(1,r=m)});wn(()=>{l(),a()});function c(m){m.preventDefault(),i.updatePresence({cursor:{x:Math.round(m.clientX),y:Math.round(m.clientY)}})}function u(){i.updatePresence({cursor:null})}const g=["#E57373","#9575CD","#4FC3F7","#81C784","#FFF176","#FF8A65","#F06292","#7986CB"];return e.$$set=m=>{"room"in m&&n(5,i=m.room)},[s,r,c,u,g,i]}class Ki extends ze{constructor(t){super(),Fe(this,t,xi,Mi,Ve,{room:5})}}function vt(e){let t,n;return t=new Ki({props:{room:e[0]}}),{c(){gt(t.$$.fragment)},l(i){bt(t.$$.fragment,i)},m(i,s){Ot(t,i,s),n=!0},p(i,s){const r={};s&1&&(r.room=i[0]),t.$set(r)},i(i){n||(C(t.$$.fragment,i),n=!0)},o(i){$(t.$$.fragment,i),n=!1},d(i){wt(t,i)}}}function Hi(e){let t,n,i,s,r,l,a,c,u,g,m,I,b,N,A,O=e[0]&&vt(e);return{c(){t=V("div"),n=V("h1"),i=Ke("Stable Diffussion Outpainting Multiplayer"),s=ce(),r=V("p"),l=ce(),a=V("div"),c=V("form"),u=V("input"),g=ce(),m=V("button"),I=Ke("Create Palette"),b=ce(),N=V("div"),O&&O.c(),this.h()},l(P){t=J(P,"DIV",{class:!0});var T=x(t);n=J(T,"H1",{class:!0});var D=x(n);i=He(D,"Stable Diffussion Outpainting Multiplayer"),D.forEach(U),s=de(T),r=J(T,"P",{class:!0}),x(r).forEach(U),l=de(T),a=J(T,"DIV",{class:!0});var Y=x(a);c=J(Y,"FORM",{class:!0});var H=x(c);u=J(H,"INPUT",{class:!0,placeholder:!0,title:!0,type:!0,name:!0}),g=de(H),m=J(H,"BUTTON",{class:!0,title:!0});var fe=x(m);I=He(fe,"Create Palette"),fe.forEach(U),H.forEach(U),Y.forEach(U),b=de(T),N=J(T,"DIV",{class:!0});var ne=x(N);O&&O.l(ne),ne.forEach(U),T.forEach(U),this.h()},h(){E(n,"class","text-3xl font-bold leading-normal"),E(r,"class","text-sm"),E(u,"class","input svelte-zbscw1"),E(u,"placeholder","A photo of a beautiful sunset in San Francisco"),E(u,"title","Input prompt to generate image and obtain palette"),E(u,"type","text"),E(u,"name","prompt"),u.disabled=e[1],E(m,"class","button svelte-zbscw1"),m.disabled=e[1],E(m,"title","Generate Palette"),E(c,"class","grid grid-cols-6"),E(a,"class","relative top-0 z-50 bg-white dark:bg-black py-3"),E(N,"class","relative"),E(t,"class","max-w-screen-md mx-auto px-3 py-8 relative z-0")},m(P,T){oe(P,t,T),R(t,n),R(n,i),R(t,s),R(t,r),R(t,l),R(t,a),R(a,c),R(c,u),R(c,g),R(c,m),R(m,I),R(t,b),R(t,N),O&&O.m(N,null),A=!0},p(P,[T]){(!A||T&2)&&(u.disabled=P[1]),(!A||T&2)&&(m.disabled=P[1]),P[0]?O?(O.p(P,T),T&1&&C(O,1)):(O=vt(P),O.c(),C(O,1),O.m(N,null)):O&&(ge(),$(O,1,1,()=>{O=null}),be())},i(P){A||(C(O),A=!0)},o(P){$(O),A=!1},d(P){P&&U(t),O&&O.d()}}}let yt="sveltekit-live-cursors";function ji(e,t,n){let i,s;xe(e,Et,a=>n(2,i=a)),xe(e,Pn,a=>n(1,s=a));let r,l;return kn(()=>(r=Ri({publicApiKey:"pk_live_6o9jIg1m7lFJp5kc7HgYgE3S"}),n(0,l=r.enter(yt,{initialPresence:{cursor:null},initialStorage:{}})),console.log("room",l),()=>{r&&l&&r.leave(yt)})),e.$$.update=()=>{e.$$.dirty&4&&console.log("whoami",i)},[l,s,i]}class Vi extends ze{constructor(t){super(),Fe(this,t,ji,Hi,Ve,{})}}export{Vi as default};
 
 
static/_app/immutable/{start-143f58bd.js β†’ start-552ac7b2.js} RENAMED
@@ -1 +1 @@
1
- import{S as Ge,i as We,s as He,a as Me,e as z,c as Xe,b as W,g as ie,t as K,d as le,f as x,h as F,j as Ye,o as be,k as Qe,l as Ze,m as et,n as ge,p as C,q as tt,r as nt,u as rt,v as H,w as Se,x as M,y as X,z as De}from"./chunks/index-1f793c88.js";import{g as Ce,f as qe,s as G,a as ve,b as at,i as st}from"./chunks/singletons-a44f94dd.js";const ot=function(){const e=document.createElement("link").relList;return e&&e.supports&&e.supports("modulepreload")?"modulepreload":"preload"}(),it=function(r,e){return new URL(r,e).href},Ve={},se=function(e,t,c){return!t||t.length===0?e():Promise.all(t.map(o=>{if(o=it(o,c),o in Ve)return;Ve[o]=!0;const d=o.endsWith(".css"),n=d?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${o}"]${n}`))return;const f=document.createElement("link");if(f.rel=d?"stylesheet":ot,d||(f.as="script",f.crossOrigin=""),f.href=o,document.head.appendChild(f),d)return new Promise((w,_)=>{f.addEventListener("load",w),f.addEventListener("error",()=>_(new Error(`Unable to preload CSS for ${o}`)))})})).then(()=>e())};class we{constructor(e,t){this.status=e,typeof t=="string"?this.body={message:t}:t?this.body=t:this.body={message:`Error: ${e}`}}toString(){return JSON.stringify(this.body)}}class Be{constructor(e,t){this.status=e,this.location=t}}function lt(r,e){return r==="/"||e==="ignore"?r:e==="never"?r.endsWith("/")?r.slice(0,-1):r:e==="always"&&!r.endsWith("/")?r+"/":r}function ct(r){for(const e in r)r[e]=r[e].replace(/%23/g,"#").replace(/%3[Bb]/g,";").replace(/%2[Cc]/g,",").replace(/%2[Ff]/g,"/").replace(/%3[Ff]/g,"?").replace(/%3[Aa]/g,":").replace(/%40/g,"@").replace(/%26/g,"&").replace(/%3[Dd]/g,"=").replace(/%2[Bb]/g,"+").replace(/%24/g,"$");return r}const ft=["href","pathname","search","searchParams","toString","toJSON"];function ut(r,e){const t=new URL(r);for(const c of ft){let o=t[c];Object.defineProperty(t,c,{get(){return e(),o},enumerable:!0,configurable:!0})}return t[Symbol.for("nodejs.util.inspect.custom")]=(c,o,d)=>d(r,o),dt(t),t}function dt(r){Object.defineProperty(r,"hash",{get(){throw new Error("Cannot access event.url.hash. Consider using `$page.url.hash` inside a component instead")}})}function pt(r){let e=5381,t=r.length;if(typeof r=="string")for(;t;)e=e*33^r.charCodeAt(--t);else for(;t;)e=e*33^r[--t];return(e>>>0).toString(36)}const Re=window.fetch;window.fetch=(r,e)=>{if((r instanceof Request?r.method:(e==null?void 0:e.method)||"GET")!=="GET"){const c=new URL(r instanceof Request?r.url:r.toString(),document.baseURI).href;oe.delete(c)}return Re(r,e)};const oe=new Map;function ht(r,e,t){let o=`script[data-sveltekit-fetched][data-url=${JSON.stringify(typeof r=="string"?r:r.url)}]`;t&&typeof t.body=="string"&&(o+=`[data-hash="${pt(t.body)}"]`);const d=document.querySelector(o);if(d!=null&&d.textContent){const{body:n,...f}=JSON.parse(d.textContent),w=d.getAttribute("data-ttl");return w&&oe.set(e,{body:n,init:f,ttl:1e3*Number(w)}),Promise.resolve(new Response(n,f))}return Re(r,t)}function mt(r,e){const t=oe.get(r);if(t){if(performance.now()<t.ttl)return new Response(t.body,t.init);oe.delete(r)}return Re(r,e)}const _t=/^(\.\.\.)?(\w+)(?:=(\w+))?$/;function gt(r){const e=[],t=[];let c=!0;return{pattern:r===""?/^\/$/:new RegExp(`^${r.split(/(?:\/|$)/).filter(wt).map((d,n,f)=>{const w=decodeURIComponent(d),_=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(w);if(_)return e.push(_[1]),t.push(_[2]),"(?:/(.*))?";const b=n===f.length-1;return w&&"/"+w.split(/\[(.+?)\]/).map(($,S)=>{if(S%2){const N=_t.exec($);if(!N)throw new Error(`Invalid param: ${$}. Params and matcher names can only have underscores and alphanumeric characters.`);const[,j,T,q]=N;return e.push(T),t.push(q),j?"(.*?)":"([^/]+?)"}return b&&$.includes(".")&&(c=!1),$.normalize().replace(/%5[Bb]/g,"[").replace(/%5[Dd]/g,"]").replace(/#/g,"%23").replace(/\?/g,"%3F").replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}).join("")}).join("")}${c?"/?":""}$`),names:e,types:t}}function wt(r){return!/^\([^)]+\)$/.test(r)}function yt(r,e,t,c){const o={};for(let d=0;d<e.length;d+=1){const n=e[d],f=t[d],w=r[d+1]||"";if(f){const _=c[f];if(!_)throw new Error(`Missing "${f}" param matcher`);if(!_(w))return}o[n]=w}return o}function bt(r,e,t,c){const o=new Set(e);return Object.entries(t).map(([f,[w,_,b]])=>{const{pattern:$,names:S,types:N}=gt(f),j={id:f,exec:T=>{const q=$.exec(T);if(q)return yt(q,S,N,c)},errors:[1,...b||[]].map(T=>r[T]),layouts:[0,..._||[]].map(n),leaf:d(w)};return j.errors.length=j.layouts.length=Math.max(j.errors.length,j.layouts.length),j});function d(f){const w=f<0;return w&&(f=~f),[w,r[f]]}function n(f){return f===void 0?f:[o.has(f),r[f]]}}function vt(r){let e,t,c;var o=r[0][0];function d(n){return{props:{data:n[2],form:n[1]}}}return o&&(e=new o(d(r))),{c(){e&&H(e.$$.fragment),t=z()},l(n){e&&Se(e.$$.fragment,n),t=z()},m(n,f){e&&M(e,n,f),W(n,t,f),c=!0},p(n,f){const w={};if(f&4&&(w.data=n[2]),f&2&&(w.form=n[1]),o!==(o=n[0][0])){if(e){ie();const _=e;K(_.$$.fragment,1,0,()=>{X(_,1)}),le()}o?(e=new o(d(n)),H(e.$$.fragment),x(e.$$.fragment,1),M(e,t.parentNode,t)):e=null}else o&&e.$set(w)},i(n){c||(e&&x(e.$$.fragment,n),c=!0)},o(n){e&&K(e.$$.fragment,n),c=!1},d(n){n&&F(t),e&&X(e,n)}}}function kt(r){let e,t,c;var o=r[0][0];function d(n){return{props:{data:n[2],$$slots:{default:[Et]},$$scope:{ctx:n}}}}return o&&(e=new o(d(r))),{c(){e&&H(e.$$.fragment),t=z()},l(n){e&&Se(e.$$.fragment,n),t=z()},m(n,f){e&&M(e,n,f),W(n,t,f),c=!0},p(n,f){const w={};if(f&4&&(w.data=n[2]),f&523&&(w.$$scope={dirty:f,ctx:n}),o!==(o=n[0][0])){if(e){ie();const _=e;K(_.$$.fragment,1,0,()=>{X(_,1)}),le()}o?(e=new o(d(n)),H(e.$$.fragment),x(e.$$.fragment,1),M(e,t.parentNode,t)):e=null}else o&&e.$set(w)},i(n){c||(e&&x(e.$$.fragment,n),c=!0)},o(n){e&&K(e.$$.fragment,n),c=!1},d(n){n&&F(t),e&&X(e,n)}}}function Et(r){let e,t,c;var o=r[0][1];function d(n){return{props:{data:n[3],form:n[1]}}}return o&&(e=new o(d(r))),{c(){e&&H(e.$$.fragment),t=z()},l(n){e&&Se(e.$$.fragment,n),t=z()},m(n,f){e&&M(e,n,f),W(n,t,f),c=!0},p(n,f){const w={};if(f&8&&(w.data=n[3]),f&2&&(w.form=n[1]),o!==(o=n[0][1])){if(e){ie();const _=e;K(_.$$.fragment,1,0,()=>{X(_,1)}),le()}o?(e=new o(d(n)),H(e.$$.fragment),x(e.$$.fragment,1),M(e,t.parentNode,t)):e=null}else o&&e.$set(w)},i(n){c||(e&&x(e.$$.fragment,n),c=!0)},o(n){e&&K(e.$$.fragment,n),c=!1},d(n){n&&F(t),e&&X(e,n)}}}function Je(r){let e,t=r[5]&&ze(r);return{c(){e=Qe("div"),t&&t.c(),this.h()},l(c){e=Ze(c,"DIV",{id:!0,"aria-live":!0,"aria-atomic":!0,style:!0});var o=et(e);t&&t.l(o),o.forEach(F),this.h()},h(){ge(e,"id","svelte-announcer"),ge(e,"aria-live","assertive"),ge(e,"aria-atomic","true"),C(e,"position","absolute"),C(e,"left","0"),C(e,"top","0"),C(e,"clip","rect(0 0 0 0)"),C(e,"clip-path","inset(50%)"),C(e,"overflow","hidden"),C(e,"white-space","nowrap"),C(e,"width","1px"),C(e,"height","1px")},m(c,o){W(c,e,o),t&&t.m(e,null)},p(c,o){c[5]?t?t.p(c,o):(t=ze(c),t.c(),t.m(e,null)):t&&(t.d(1),t=null)},d(c){c&&F(e),t&&t.d()}}}function ze(r){let e;return{c(){e=tt(r[6])},l(t){e=nt(t,r[6])},m(t,c){W(t,e,c)},p(t,c){c&64&&rt(e,t[6])},d(t){t&&F(e)}}}function St(r){let e,t,c,o,d;const n=[kt,vt],f=[];function w(b,$){return b[0][1]?0:1}e=w(r),t=f[e]=n[e](r);let _=r[4]&&Je(r);return{c(){t.c(),c=Me(),_&&_.c(),o=z()},l(b){t.l(b),c=Xe(b),_&&_.l(b),o=z()},m(b,$){f[e].m(b,$),W(b,c,$),_&&_.m(b,$),W(b,o,$),d=!0},p(b,[$]){let S=e;e=w(b),e===S?f[e].p(b,$):(ie(),K(f[S],1,1,()=>{f[S]=null}),le(),t=f[e],t?t.p(b,$):(t=f[e]=n[e](b),t.c()),x(t,1),t.m(c.parentNode,c)),b[4]?_?_.p(b,$):(_=Je(b),_.c(),_.m(o.parentNode,o)):_&&(_.d(1),_=null)},i(b){d||(x(t),d=!0)},o(b){K(t),d=!1},d(b){f[e].d(b),b&&F(c),_&&_.d(b),b&&F(o)}}}function Rt(r,e,t){let{stores:c}=e,{page:o}=e,{components:d}=e,{form:n}=e,{data_0:f=null}=e,{data_1:w=null}=e;Ye(c.page.notify);let _=!1,b=!1,$=null;return be(()=>{const S=c.page.subscribe(()=>{_&&(t(5,b=!0),t(6,$=document.title||"untitled page"))});return t(4,_=!0),S}),r.$$set=S=>{"stores"in S&&t(7,c=S.stores),"page"in S&&t(8,o=S.page),"components"in S&&t(0,d=S.components),"form"in S&&t(1,n=S.form),"data_0"in S&&t(2,f=S.data_0),"data_1"in S&&t(3,w=S.data_1)},r.$$.update=()=>{r.$$.dirty&384&&c.page.set(o)},[d,n,f,w,_,b,$,c,o]}class $t extends Ge{constructor(e){super(),We(this,e,Rt,St,He,{stores:7,page:8,components:0,form:1,data_0:2,data_1:3})}}const Lt={},ce=[()=>se(()=>import("./chunks/0-f56af2df.js"),["chunks/0-f56af2df.js","chunks/_layout-1daba58d.js","components/pages/_layout.svelte-a6944661.js","assets/_layout-d1ea213c.css","chunks/index-1f793c88.js"],import.meta.url),()=>se(()=>import("./chunks/1-ea6b1854.js"),["chunks/1-ea6b1854.js","components/error.svelte-030a0882.js","chunks/index-1f793c88.js","chunks/singletons-a44f94dd.js","chunks/index-b3d11e3e.js"],import.meta.url),()=>se(()=>import("./chunks/2-e536610e.js"),["chunks/2-e536610e.js","components/pages/_page.svelte-7e536a42.js","assets/_page-d7e0618a.css","chunks/index-1f793c88.js","chunks/index-b3d11e3e.js"],import.meta.url)],Pt=[],Ot={"":[2]},jt={handleError:({error:r})=>(console.error(r),{message:"Internal Error"})},Ut="/__data.js",Fe="sveltekit:scroll",J="sveltekit:index",ne=bt(ce,Pt,Ot,Lt),ke=ce[0],Ee=ce[1];ke();Ee();let ee={};try{ee=JSON.parse(sessionStorage[Fe])}catch{}function ye(r){ee[r]=ve()}function It({target:r,base:e,trailing_slash:t}){var Ne;const c=[],o={id:null,promise:null},d={before_navigate:[],after_navigate:[]};let n={branch:[],error:null,session_id:0,url:null},f=!1,w=!0,_=!1,b=1,$=null,S=!1,N,j=(Ne=history.state)==null?void 0:Ne[J];j||(j=Date.now(),history.replaceState({...history.state,[J]:j},"",location.href));const T=ee[j];T&&(history.scrollRestoration="manual",scrollTo(T.x,T.y));let q=!1,V,$e;function Le(){if(!$){const a=new URL(location.href);$=Promise.resolve().then(async()=>{const i=pe(a,!0);await Oe(i,a,[]),$=null,S=!1})}return $}async function fe(a,{noscroll:i=!1,replaceState:p=!1,keepfocus:s=!1,state:l={}},h){return typeof a=="string"&&(a=new URL(a,Ce(document))),he({url:a,scroll:i?ve():null,keepfocus:s,redirect_chain:h,details:{state:l,replaceState:p},accepted:()=>{},blocked:()=>{},type:"goto"})}async function Pe(a){const i=pe(a,!1);if(!i)throw new Error("Attempted to prefetch a URL that does not belong to this app");return o.promise=Ie(i),o.id=i.id,o.promise}async function Oe(a,i,p,s,l){var v,k;const h=$e={};let m=a&&await Ie(a);if(!m&&i.origin===location.origin&&i.pathname===location.pathname&&(m=await te({status:404,error:new Error(`Not found: ${i.pathname}`),url:i,routeId:null})),!m)return await Q(i),!1;if(i=(a==null?void 0:a.url)||i,$e!==h)return!1;if(c.length=0,m.type==="redirect")if(p.length>10||p.includes(i.pathname))m=await te({status:500,error:new Error("Redirect loop"),url:i,routeId:null});else return fe(new URL(m.location,i).href,{},[...p,i.pathname]),!1;else((k=(v=m.props)==null?void 0:v.page)==null?void 0:k.status)>=400&&await G.updated.check()&&await Q(i);if(_=!0,s&&s.details){const{details:y}=s,g=y.replaceState?0:1;y.state[J]=j+=g,history[y.replaceState?"replaceState":"pushState"](y.state,"",i)}if(f){n=m.state,m.props.page&&(m.props.page.url=i);const y=ae();N.$set(m.props),y()}else je(m);if(s){const{scroll:y,keepfocus:g}=s;if(!g){const E=document.body,U=E.getAttribute("tabindex");E.tabIndex=-1,E.focus({preventScroll:!0}),setTimeout(()=>{var L;(L=getSelection())==null||L.removeAllRanges()}),U!==null?E.setAttribute("tabindex",U):E.removeAttribute("tabindex")}if(await De(),w){const E=i.hash&&document.getElementById(i.hash.slice(1));y?scrollTo(y.x,y.y):E?E.scrollIntoView():scrollTo(0,0)}}else await De();o.promise=null,o.id=null,w=!0,m.props.page&&(V=m.props.page),l&&l(),_=!1}function je(a){var l,h;n=a.state;const i=document.querySelector("style[data-sveltekit]");i&&i.remove(),V=a.props.page;const p=ae();N=new $t({target:r,props:{...a.props,stores:G},hydrate:!0}),p();const s={from:null,to:re("to",{params:n.params,routeId:(h=(l=n.route)==null?void 0:l.id)!=null?h:null,url:new URL(location.href)}),type:"load"};d.after_navigate.forEach(m=>m(s)),f=!0}async function Y({url:a,params:i,branch:p,status:s,error:l,route:h,form:m}){var U;const v=p.filter(Boolean),k={type:"loaded",state:{url:a,params:i,branch:p,error:l,route:h,session_id:b},props:{components:v.map(L=>L.node.component)}};m!==void 0&&(k.props.form=m);let y={},g=!V;for(let L=0;L<v.length;L+=1){const I=v[L];y={...y,...I.data},(g||!n.branch.some(A=>A===I))&&(k.props[`data_${L}`]=y,g=g||Object.keys((U=I.data)!=null?U:{}).length>0)}if(g||(g=Object.keys(V.data).length!==Object.keys(y).length),!n.url||a.href!==n.url.href||n.error!==l||g){k.props.page={error:l,params:i,routeId:h&&h.id,status:s,url:a,data:g?y:V.data};const L=(I,A)=>{Object.defineProperty(k.props.page,I,{get:()=>{throw new Error(`$page.${I} has been replaced by $page.url.${A}`)}})};L("origin","origin"),L("path","pathname"),L("query","searchParams")}return k}async function ue({loader:a,parent:i,url:p,params:s,routeId:l,server_data_node:h}){var y,g,E,U,L;let m=null;const v={dependencies:new Set,params:new Set,parent:!1,url:!1},k=await a();if((y=k.shared)!=null&&y.load){let I=function(...u){for(const R of u){const{href:O}=new URL(R,p);v.dependencies.add(O)}};const A={};for(const u in s)Object.defineProperty(A,u,{get(){return v.params.add(u),s[u]},enumerable:!0});const B={routeId:l,params:A,data:(g=h==null?void 0:h.data)!=null?g:null,url:ut(p,()=>{v.url=!0}),async fetch(u,R){let O;typeof u=="string"?O=u:(O=u.url,R={body:u.method==="GET"||u.method==="HEAD"?void 0:await u.blob(),cache:u.cache,credentials:u.credentials,headers:u.headers,integrity:u.integrity,keepalive:u.keepalive,method:u.method,mode:u.mode,redirect:u.redirect,referrer:u.referrer,referrerPolicy:u.referrerPolicy,signal:u.signal,...R});const P=new URL(O,p).href;return I(P),f?mt(P,R):ht(O,P,R)},setHeaders:()=>{},depends:I,parent(){return v.parent=!0,i()}};Object.defineProperties(B,{props:{get(){throw new Error("@migration task: Replace `props` with `data` stuff https://github.com/sveltejs/kit/discussions/5774#discussioncomment-3292693")},enumerable:!1},session:{get(){throw new Error("session is no longer available. See https://github.com/sveltejs/kit/discussions/5883")},enumerable:!1},stuff:{get(){throw new Error("@migration task: Remove stuff https://github.com/sveltejs/kit/discussions/5774#discussioncomment-3292693")},enumerable:!1}}),m=(E=await k.shared.load.call(null,B))!=null?E:null}return{node:k,loader:a,server:h,shared:(U=k.shared)!=null&&U.load?{type:"data",data:m,uses:v}:null,data:(L=m!=null?m:h==null?void 0:h.data)!=null?L:null}}function Ue(a,i,p){if(S)return!0;if(!p)return!1;if(p.parent&&i||a.url&&p.url)return!0;for(const s of a.params)if(p.params.has(s))return!0;for(const s of p.dependencies)if(c.some(l=>l(new URL(s))))return!0;return!1}function de(a,i){var p,s;return(a==null?void 0:a.type)==="data"?{type:"data",data:a.data,uses:{dependencies:new Set((p=a.uses.dependencies)!=null?p:[]),params:new Set((s=a.uses.params)!=null?s:[]),parent:!!a.uses.parent,url:!!a.uses.url}}:(a==null?void 0:a.type)==="skip"&&i!=null?i:null}async function Ie({id:a,invalidating:i,url:p,params:s,route:l}){var B;if(o.id===a&&o.promise)return o.promise;const{errors:h,layouts:m,leaf:v}=l,k=n.url&&{url:a!==n.url.pathname+n.url.search,params:Object.keys(s).filter(u=>n.params[u]!==s[u])},y=[...m,v];h.forEach(u=>u==null?void 0:u().catch(()=>{})),y.forEach(u=>u==null?void 0:u[1]().catch(()=>{}));let g=null;const E=y.reduce((u,R,O)=>{var D;const P=n.branch[O],Z=!!(R!=null&&R[0])&&((P==null?void 0:P.loader)!==R[1]||Ue(k,u.some(Boolean),(D=P.server)==null?void 0:D.uses));return u.push(Z),u},[]);if(E.some(Boolean)){try{g=await Ke(p,E)}catch(u){return te({status:500,error:u,url:p,routeId:l.id})}if(g.type==="redirect")return g}const U=g==null?void 0:g.nodes;let L=!1;const I=y.map(async(u,R)=>{var D;if(!u)return;const O=n.branch[R],P=U==null?void 0:U[R];if((!P||P.type==="skip")&&u[1]===(O==null?void 0:O.loader)&&!Ue(k,L,(D=O.shared)==null?void 0:D.uses))return O;if(L=!0,(P==null?void 0:P.type)==="error")throw P;return ue({loader:u[1],url:p,params:s,routeId:l.id,parent:async()=>{var Te;const me={};for(let _e=0;_e<R;_e+=1)Object.assign(me,(Te=await I[_e])==null?void 0:Te.data);return me},server_data_node:de(P===void 0&&u[0]?{type:"skip"}:P!=null?P:null,O==null?void 0:O.server)})});for(const u of I)u.catch(()=>{});const A=[];for(let u=0;u<y.length;u+=1)if(y[u])try{A.push(await I[u])}catch(R){if(R instanceof Be)return{type:"redirect",location:R.location};let O=500,P;for(U!=null&&U.includes(R)?(O=(B=R.status)!=null?B:O,P=R.error):R instanceof we?(O=R.status,P=R.body):P=xe(R,{params:s,url:p,routeId:l.id});u--;)if(h[u]){let Z,D=u;for(;!A[D];)D-=1;try{return Z={node:await h[u](),loader:h[u],data:{},server:null,shared:null},await Y({url:p,params:s,branch:A.slice(0,D+1).concat(Z),status:O,error:P,route:l})}catch{continue}}await Q(p);return}else A.push(void 0);return await Y({url:p,params:s,branch:A,status:200,error:null,route:l,form:i?void 0:null})}async function te({status:a,error:i,url:p,routeId:s}){var y;const l={},h=await ke();let m=null;if(h.server)try{const g=await Ke(p,[!0]);if(g.type!=="data"||g.nodes[0]&&g.nodes[0].type!=="data")throw 0;m=(y=g.nodes[0])!=null?y:null}catch{await Q(p);return}const v=await ue({loader:ke,url:p,params:l,routeId:s,parent:()=>Promise.resolve({}),server_data_node:de(m)}),k={node:await Ee(),loader:Ee,shared:null,server:null,data:null};return await Y({url:p,params:l,branch:[v,k],status:a,error:i instanceof we?i.body:xe(i,{url:p,params:l,routeId:null}),route:null})}function pe(a,i){if(Ae(a))return;const p=decodeURI(a.pathname.slice(e.length)||"/");for(const s of ne){const l=s.exec(p);if(l){const h=new URL(a.origin+lt(a.pathname,t)+a.search+a.hash);return{id:h.pathname+h.search,invalidating:i,route:s,params:ct(l),url:h}}}}function Ae(a){return a.origin!==location.origin||!a.pathname.startsWith(e)}async function he({url:a,scroll:i,keepfocus:p,redirect_chain:s,details:l,type:h,delta:m,accepted:v,blocked:k}){var L,I,A,B;let y=!1;const g=pe(a,!1),E={from:re("from",{params:n.params,routeId:(I=(L=n.route)==null?void 0:L.id)!=null?I:null,url:n.url}),to:re("to",{params:(A=g==null?void 0:g.params)!=null?A:null,routeId:(B=g==null?void 0:g.route.id)!=null?B:null,url:a}),type:h};m!==void 0&&(E.delta=m);const U={...E,cancel:()=>{y=!0}};if(d.before_navigate.forEach(u=>u(U)),y){k();return}ye(j),v(),f&&G.navigating.set(E),await Oe(g,a,s,{scroll:i,keepfocus:p,details:l},()=>{d.after_navigate.forEach(u=>u(E)),G.navigating.set(null)})}function Q(a){return location.href=a.href,new Promise(()=>{})}return{after_navigate:a=>{be(()=>(d.after_navigate.push(a),()=>{const i=d.after_navigate.indexOf(a);d.after_navigate.splice(i,1)}))},before_navigate:a=>{be(()=>(d.before_navigate.push(a),()=>{const i=d.before_navigate.indexOf(a);d.before_navigate.splice(i,1)}))},disable_scroll_handling:()=>{(_||!f)&&(w=!1)},goto:(a,i={})=>fe(a,i,[]),invalidate:a=>{if(a===void 0)throw new Error("`invalidate()` (with no arguments) has been replaced by `invalidateAll()`");if(typeof a=="function")c.push(a);else{const{href:i}=new URL(a,location.href);c.push(p=>p.href===i)}return Le()},invalidateAll:()=>(S=!0,Le()),prefetch:async a=>{const i=new URL(a,Ce(document));await Pe(i)},prefetch_routes:async a=>{const p=(a?ne.filter(s=>a.some(l=>s.exec(l))):ne).map(s=>Promise.all([...s.layouts,s.leaf].map(l=>l==null?void 0:l[1]())));await Promise.all(p)},apply_action:async a=>{if(a.type==="error"){const i=new URL(location.href),{branch:p,route:s}=n;if(!s)return;let l=n.branch.length;for(;l--;)if(s.errors[l]){let h,m=l;for(;!p[m];)m-=1;try{h={node:await s.errors[l](),loader:s.errors[l],data:{},server:null,shared:null};const v=await Y({url:i,params:n.params,branch:p.slice(0,m+1).concat(h),status:500,error:a.error,route:s});n=v.state;const k=ae();N.$set(v.props),k();return}catch{continue}}}else if(a.type==="redirect")fe(a.location,{},[]);else{const i={form:a.data};a.status!==V.status&&(i.page={...V,status:a.status});const p=ae();N.$set(i),p()}},_start_router:()=>{history.scrollRestoration="manual",addEventListener("beforeunload",s=>{var m,v;let l=!1;const h={from:re("from",{params:n.params,routeId:(v=(m=n.route)==null?void 0:m.id)!=null?v:null,url:n.url}),to:null,type:"unload",cancel:()=>l=!0};d.before_navigate.forEach(k=>k(h)),l?(s.preventDefault(),s.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{if(document.visibilityState==="hidden"){ye(j);try{sessionStorage[Fe]=JSON.stringify(ee)}catch{}}});const a=s=>{const{url:l,options:h}=qe(s);if(l&&h.prefetch){if(Ae(l))return;Pe(l)}};let i;const p=s=>{clearTimeout(i),i=setTimeout(()=>{var l;(l=s.target)==null||l.dispatchEvent(new CustomEvent("sveltekit:trigger_prefetch",{bubbles:!0}))},20)};addEventListener("touchstart",a),addEventListener("mousemove",p),addEventListener("sveltekit:trigger_prefetch",a),addEventListener("click",s=>{if(s.button||s.which!==1||s.metaKey||s.ctrlKey||s.shiftKey||s.altKey||s.defaultPrevented)return;const{a:l,url:h,options:m}=qe(s);if(!l||!h)return;const v=l instanceof SVGAElement;if(!v&&!(h.protocol==="https:"||h.protocol==="http:"))return;const k=(l.getAttribute("rel")||"").split(/\s+/);if(l.hasAttribute("download")||k.includes("external")||m.reload||(v?l.target.baseVal:l.target))return;const[y,g]=h.href.split("#");if(g!==void 0&&y===location.href.split("#")[0]){q=!0,ye(j),n.url=h,G.page.set({...V,url:h}),G.page.notify();return}he({url:h,scroll:m.noscroll?ve():null,keepfocus:!1,redirect_chain:[],details:{state:{},replaceState:h.href===location.href},accepted:()=>s.preventDefault(),blocked:()=>s.preventDefault(),type:"link"})}),addEventListener("popstate",s=>{if(s.state){if(s.state[J]===j)return;const l=s.state[J]-j;he({url:new URL(location.href),scroll:ee[s.state[J]],keepfocus:!1,redirect_chain:[],details:null,accepted:()=>{j=s.state[J]},blocked:()=>{history.go(-l)},type:"popstate",delta:l})}}),addEventListener("hashchange",()=>{q&&(q=!1,history.replaceState({...history.state,[J]:++j},"",location.href))});for(const s of document.querySelectorAll("link"))s.rel==="icon"&&(s.href=s.href);addEventListener("pageshow",s=>{s.persisted&&G.navigating.set(null)})},_hydrate:async({status:a,error:i,node_ids:p,params:s,routeId:l,data:h,form:m})=>{var y;const v=new URL(location.href);let k;try{const g=p.map(async(E,U)=>{const L=h[U];return ue({loader:ce[E],url:v,params:s,routeId:l,parent:async()=>{const I={};for(let A=0;A<U;A+=1)Object.assign(I,(await g[A]).data);return I},server_data_node:de(L)})});k=await Y({url:v,params:s,branch:await Promise.all(g),status:a,error:i,form:m,route:(y=ne.find(E=>E.id===l))!=null?y:null})}catch(g){const E=g;if(E instanceof Be){await Q(new URL(g.location,location.href));return}k=await te({status:E instanceof we?E.status:500,error:E,url:v,routeId:l})}je(k)}}}let At=1;async function Ke(r,e){const t=new URL(r);t.pathname=r.pathname.replace(/\/$/,"")+Ut,t.searchParams.set("__invalid",e.map(o=>o?"y":"n").join("")),t.searchParams.set("__id",String(At++)),await se(()=>import(t.href),[],import.meta.url);const c=window.__sveltekit_data;return delete window.__sveltekit_data,c}function xe(r,e){var t;return(t=jt.handleError({error:r,event:e}))!=null?t:{message:"Internal Error"}}const Nt=["hash","href","host","hostname","origin","pathname","port","protocol","search","searchParams","toString","toJSON"];function re(r,e){for(const t of Nt)Object.defineProperty(e,t,{get(){throw new Error(`The navigation shape changed - ${r}.${t} should now be ${r}.url.${t}`)}});return e}function ae(){return()=>{}}async function Ct({env:r,hydrate:e,paths:t,target:c,trailing_slash:o}){at(t);const d=It({target:c,base:t.base,trailing_slash:o});st({client:d}),e?await d._hydrate(e):d.goto(location.href,{replaceState:!0}),d._start_router()}export{Ct as start};
 
1
+ import{S as Ge,i as We,s as He,a as Me,e as z,c as Xe,b as W,g as ie,t as K,d as le,f as x,h as F,j as Ye,o as be,k as Qe,l as Ze,m as et,n as ge,p as C,q as tt,r as nt,u as rt,v as H,w as Se,x as M,y as X,z as De}from"./chunks/index-753a1ad2.js";import{g as Ce,f as qe,s as G,a as ve,b as at,i as st}from"./chunks/singletons-f23f00e3.js";const ot=function(){const e=document.createElement("link").relList;return e&&e.supports&&e.supports("modulepreload")?"modulepreload":"preload"}(),it=function(r,e){return new URL(r,e).href},Ve={},se=function(e,t,c){return!t||t.length===0?e():Promise.all(t.map(o=>{if(o=it(o,c),o in Ve)return;Ve[o]=!0;const d=o.endsWith(".css"),n=d?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${o}"]${n}`))return;const f=document.createElement("link");if(f.rel=d?"stylesheet":ot,d||(f.as="script",f.crossOrigin=""),f.href=o,document.head.appendChild(f),d)return new Promise((w,_)=>{f.addEventListener("load",w),f.addEventListener("error",()=>_(new Error(`Unable to preload CSS for ${o}`)))})})).then(()=>e())};class we{constructor(e,t){this.status=e,typeof t=="string"?this.body={message:t}:t?this.body=t:this.body={message:`Error: ${e}`}}toString(){return JSON.stringify(this.body)}}class Be{constructor(e,t){this.status=e,this.location=t}}function lt(r,e){return r==="/"||e==="ignore"?r:e==="never"?r.endsWith("/")?r.slice(0,-1):r:e==="always"&&!r.endsWith("/")?r+"/":r}function ct(r){for(const e in r)r[e]=r[e].replace(/%23/g,"#").replace(/%3[Bb]/g,";").replace(/%2[Cc]/g,",").replace(/%2[Ff]/g,"/").replace(/%3[Ff]/g,"?").replace(/%3[Aa]/g,":").replace(/%40/g,"@").replace(/%26/g,"&").replace(/%3[Dd]/g,"=").replace(/%2[Bb]/g,"+").replace(/%24/g,"$");return r}const ft=["href","pathname","search","searchParams","toString","toJSON"];function ut(r,e){const t=new URL(r);for(const c of ft){let o=t[c];Object.defineProperty(t,c,{get(){return e(),o},enumerable:!0,configurable:!0})}return t[Symbol.for("nodejs.util.inspect.custom")]=(c,o,d)=>d(r,o),dt(t),t}function dt(r){Object.defineProperty(r,"hash",{get(){throw new Error("Cannot access event.url.hash. Consider using `$page.url.hash` inside a component instead")}})}function pt(r){let e=5381,t=r.length;if(typeof r=="string")for(;t;)e=e*33^r.charCodeAt(--t);else for(;t;)e=e*33^r[--t];return(e>>>0).toString(36)}const Re=window.fetch;window.fetch=(r,e)=>{if((r instanceof Request?r.method:(e==null?void 0:e.method)||"GET")!=="GET"){const c=new URL(r instanceof Request?r.url:r.toString(),document.baseURI).href;oe.delete(c)}return Re(r,e)};const oe=new Map;function ht(r,e,t){let o=`script[data-sveltekit-fetched][data-url=${JSON.stringify(typeof r=="string"?r:r.url)}]`;t&&typeof t.body=="string"&&(o+=`[data-hash="${pt(t.body)}"]`);const d=document.querySelector(o);if(d!=null&&d.textContent){const{body:n,...f}=JSON.parse(d.textContent),w=d.getAttribute("data-ttl");return w&&oe.set(e,{body:n,init:f,ttl:1e3*Number(w)}),Promise.resolve(new Response(n,f))}return Re(r,t)}function mt(r,e){const t=oe.get(r);if(t){if(performance.now()<t.ttl)return new Response(t.body,t.init);oe.delete(r)}return Re(r,e)}const _t=/^(\.\.\.)?(\w+)(?:=(\w+))?$/;function gt(r){const e=[],t=[];let c=!0;return{pattern:r===""?/^\/$/:new RegExp(`^${r.split(/(?:\/|$)/).filter(wt).map((d,n,f)=>{const w=decodeURIComponent(d),_=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(w);if(_)return e.push(_[1]),t.push(_[2]),"(?:/(.*))?";const b=n===f.length-1;return w&&"/"+w.split(/\[(.+?)\]/).map(($,S)=>{if(S%2){const N=_t.exec($);if(!N)throw new Error(`Invalid param: ${$}. Params and matcher names can only have underscores and alphanumeric characters.`);const[,j,T,q]=N;return e.push(T),t.push(q),j?"(.*?)":"([^/]+?)"}return b&&$.includes(".")&&(c=!1),$.normalize().replace(/%5[Bb]/g,"[").replace(/%5[Dd]/g,"]").replace(/#/g,"%23").replace(/\?/g,"%3F").replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}).join("")}).join("")}${c?"/?":""}$`),names:e,types:t}}function wt(r){return!/^\([^)]+\)$/.test(r)}function yt(r,e,t,c){const o={};for(let d=0;d<e.length;d+=1){const n=e[d],f=t[d],w=r[d+1]||"";if(f){const _=c[f];if(!_)throw new Error(`Missing "${f}" param matcher`);if(!_(w))return}o[n]=w}return o}function bt(r,e,t,c){const o=new Set(e);return Object.entries(t).map(([f,[w,_,b]])=>{const{pattern:$,names:S,types:N}=gt(f),j={id:f,exec:T=>{const q=$.exec(T);if(q)return yt(q,S,N,c)},errors:[1,...b||[]].map(T=>r[T]),layouts:[0,..._||[]].map(n),leaf:d(w)};return j.errors.length=j.layouts.length=Math.max(j.errors.length,j.layouts.length),j});function d(f){const w=f<0;return w&&(f=~f),[w,r[f]]}function n(f){return f===void 0?f:[o.has(f),r[f]]}}function vt(r){let e,t,c;var o=r[0][0];function d(n){return{props:{data:n[2],form:n[1]}}}return o&&(e=new o(d(r))),{c(){e&&H(e.$$.fragment),t=z()},l(n){e&&Se(e.$$.fragment,n),t=z()},m(n,f){e&&M(e,n,f),W(n,t,f),c=!0},p(n,f){const w={};if(f&4&&(w.data=n[2]),f&2&&(w.form=n[1]),o!==(o=n[0][0])){if(e){ie();const _=e;K(_.$$.fragment,1,0,()=>{X(_,1)}),le()}o?(e=new o(d(n)),H(e.$$.fragment),x(e.$$.fragment,1),M(e,t.parentNode,t)):e=null}else o&&e.$set(w)},i(n){c||(e&&x(e.$$.fragment,n),c=!0)},o(n){e&&K(e.$$.fragment,n),c=!1},d(n){n&&F(t),e&&X(e,n)}}}function kt(r){let e,t,c;var o=r[0][0];function d(n){return{props:{data:n[2],$$slots:{default:[Et]},$$scope:{ctx:n}}}}return o&&(e=new o(d(r))),{c(){e&&H(e.$$.fragment),t=z()},l(n){e&&Se(e.$$.fragment,n),t=z()},m(n,f){e&&M(e,n,f),W(n,t,f),c=!0},p(n,f){const w={};if(f&4&&(w.data=n[2]),f&523&&(w.$$scope={dirty:f,ctx:n}),o!==(o=n[0][0])){if(e){ie();const _=e;K(_.$$.fragment,1,0,()=>{X(_,1)}),le()}o?(e=new o(d(n)),H(e.$$.fragment),x(e.$$.fragment,1),M(e,t.parentNode,t)):e=null}else o&&e.$set(w)},i(n){c||(e&&x(e.$$.fragment,n),c=!0)},o(n){e&&K(e.$$.fragment,n),c=!1},d(n){n&&F(t),e&&X(e,n)}}}function Et(r){let e,t,c;var o=r[0][1];function d(n){return{props:{data:n[3],form:n[1]}}}return o&&(e=new o(d(r))),{c(){e&&H(e.$$.fragment),t=z()},l(n){e&&Se(e.$$.fragment,n),t=z()},m(n,f){e&&M(e,n,f),W(n,t,f),c=!0},p(n,f){const w={};if(f&8&&(w.data=n[3]),f&2&&(w.form=n[1]),o!==(o=n[0][1])){if(e){ie();const _=e;K(_.$$.fragment,1,0,()=>{X(_,1)}),le()}o?(e=new o(d(n)),H(e.$$.fragment),x(e.$$.fragment,1),M(e,t.parentNode,t)):e=null}else o&&e.$set(w)},i(n){c||(e&&x(e.$$.fragment,n),c=!0)},o(n){e&&K(e.$$.fragment,n),c=!1},d(n){n&&F(t),e&&X(e,n)}}}function Je(r){let e,t=r[5]&&ze(r);return{c(){e=Qe("div"),t&&t.c(),this.h()},l(c){e=Ze(c,"DIV",{id:!0,"aria-live":!0,"aria-atomic":!0,style:!0});var o=et(e);t&&t.l(o),o.forEach(F),this.h()},h(){ge(e,"id","svelte-announcer"),ge(e,"aria-live","assertive"),ge(e,"aria-atomic","true"),C(e,"position","absolute"),C(e,"left","0"),C(e,"top","0"),C(e,"clip","rect(0 0 0 0)"),C(e,"clip-path","inset(50%)"),C(e,"overflow","hidden"),C(e,"white-space","nowrap"),C(e,"width","1px"),C(e,"height","1px")},m(c,o){W(c,e,o),t&&t.m(e,null)},p(c,o){c[5]?t?t.p(c,o):(t=ze(c),t.c(),t.m(e,null)):t&&(t.d(1),t=null)},d(c){c&&F(e),t&&t.d()}}}function ze(r){let e;return{c(){e=tt(r[6])},l(t){e=nt(t,r[6])},m(t,c){W(t,e,c)},p(t,c){c&64&&rt(e,t[6])},d(t){t&&F(e)}}}function St(r){let e,t,c,o,d;const n=[kt,vt],f=[];function w(b,$){return b[0][1]?0:1}e=w(r),t=f[e]=n[e](r);let _=r[4]&&Je(r);return{c(){t.c(),c=Me(),_&&_.c(),o=z()},l(b){t.l(b),c=Xe(b),_&&_.l(b),o=z()},m(b,$){f[e].m(b,$),W(b,c,$),_&&_.m(b,$),W(b,o,$),d=!0},p(b,[$]){let S=e;e=w(b),e===S?f[e].p(b,$):(ie(),K(f[S],1,1,()=>{f[S]=null}),le(),t=f[e],t?t.p(b,$):(t=f[e]=n[e](b),t.c()),x(t,1),t.m(c.parentNode,c)),b[4]?_?_.p(b,$):(_=Je(b),_.c(),_.m(o.parentNode,o)):_&&(_.d(1),_=null)},i(b){d||(x(t),d=!0)},o(b){K(t),d=!1},d(b){f[e].d(b),b&&F(c),_&&_.d(b),b&&F(o)}}}function Rt(r,e,t){let{stores:c}=e,{page:o}=e,{components:d}=e,{form:n}=e,{data_0:f=null}=e,{data_1:w=null}=e;Ye(c.page.notify);let _=!1,b=!1,$=null;return be(()=>{const S=c.page.subscribe(()=>{_&&(t(5,b=!0),t(6,$=document.title||"untitled page"))});return t(4,_=!0),S}),r.$$set=S=>{"stores"in S&&t(7,c=S.stores),"page"in S&&t(8,o=S.page),"components"in S&&t(0,d=S.components),"form"in S&&t(1,n=S.form),"data_0"in S&&t(2,f=S.data_0),"data_1"in S&&t(3,w=S.data_1)},r.$$.update=()=>{r.$$.dirty&384&&c.page.set(o)},[d,n,f,w,_,b,$,c,o]}class $t extends Ge{constructor(e){super(),We(this,e,Rt,St,He,{stores:7,page:8,components:0,form:1,data_0:2,data_1:3})}}const Lt={},ce=[()=>se(()=>import("./chunks/0-d38ff3ba.js"),["chunks/0-d38ff3ba.js","chunks/_layout-1daba58d.js","components/pages/_layout.svelte-9e51eb23.js","assets/_layout-8eeb2150.css","chunks/index-753a1ad2.js"],import.meta.url),()=>se(()=>import("./chunks/1-7ba5dd96.js"),["chunks/1-7ba5dd96.js","components/error.svelte-96c74a18.js","chunks/index-753a1ad2.js","chunks/singletons-f23f00e3.js","chunks/index-9f7684d6.js"],import.meta.url),()=>se(()=>import("./chunks/2-00e4e453.js"),["chunks/2-00e4e453.js","components/pages/_page.svelte-673bcd1c.js","assets/_page-08702550.css","chunks/index-753a1ad2.js","chunks/index-9f7684d6.js"],import.meta.url)],Pt=[],Ot={"":[2]},jt={handleError:({error:r})=>(console.error(r),{message:"Internal Error"})},Ut="/__data.js",Fe="sveltekit:scroll",J="sveltekit:index",ne=bt(ce,Pt,Ot,Lt),ke=ce[0],Ee=ce[1];ke();Ee();let ee={};try{ee=JSON.parse(sessionStorage[Fe])}catch{}function ye(r){ee[r]=ve()}function It({target:r,base:e,trailing_slash:t}){var Ne;const c=[],o={id:null,promise:null},d={before_navigate:[],after_navigate:[]};let n={branch:[],error:null,session_id:0,url:null},f=!1,w=!0,_=!1,b=1,$=null,S=!1,N,j=(Ne=history.state)==null?void 0:Ne[J];j||(j=Date.now(),history.replaceState({...history.state,[J]:j},"",location.href));const T=ee[j];T&&(history.scrollRestoration="manual",scrollTo(T.x,T.y));let q=!1,V,$e;function Le(){if(!$){const a=new URL(location.href);$=Promise.resolve().then(async()=>{const i=pe(a,!0);await Oe(i,a,[]),$=null,S=!1})}return $}async function fe(a,{noscroll:i=!1,replaceState:p=!1,keepfocus:s=!1,state:l={}},h){return typeof a=="string"&&(a=new URL(a,Ce(document))),he({url:a,scroll:i?ve():null,keepfocus:s,redirect_chain:h,details:{state:l,replaceState:p},accepted:()=>{},blocked:()=>{},type:"goto"})}async function Pe(a){const i=pe(a,!1);if(!i)throw new Error("Attempted to prefetch a URL that does not belong to this app");return o.promise=Ie(i),o.id=i.id,o.promise}async function Oe(a,i,p,s,l){var v,k;const h=$e={};let m=a&&await Ie(a);if(!m&&i.origin===location.origin&&i.pathname===location.pathname&&(m=await te({status:404,error:new Error(`Not found: ${i.pathname}`),url:i,routeId:null})),!m)return await Q(i),!1;if(i=(a==null?void 0:a.url)||i,$e!==h)return!1;if(c.length=0,m.type==="redirect")if(p.length>10||p.includes(i.pathname))m=await te({status:500,error:new Error("Redirect loop"),url:i,routeId:null});else return fe(new URL(m.location,i).href,{},[...p,i.pathname]),!1;else((k=(v=m.props)==null?void 0:v.page)==null?void 0:k.status)>=400&&await G.updated.check()&&await Q(i);if(_=!0,s&&s.details){const{details:y}=s,g=y.replaceState?0:1;y.state[J]=j+=g,history[y.replaceState?"replaceState":"pushState"](y.state,"",i)}if(f){n=m.state,m.props.page&&(m.props.page.url=i);const y=ae();N.$set(m.props),y()}else je(m);if(s){const{scroll:y,keepfocus:g}=s;if(!g){const E=document.body,U=E.getAttribute("tabindex");E.tabIndex=-1,E.focus({preventScroll:!0}),setTimeout(()=>{var L;(L=getSelection())==null||L.removeAllRanges()}),U!==null?E.setAttribute("tabindex",U):E.removeAttribute("tabindex")}if(await De(),w){const E=i.hash&&document.getElementById(i.hash.slice(1));y?scrollTo(y.x,y.y):E?E.scrollIntoView():scrollTo(0,0)}}else await De();o.promise=null,o.id=null,w=!0,m.props.page&&(V=m.props.page),l&&l(),_=!1}function je(a){var l,h;n=a.state;const i=document.querySelector("style[data-sveltekit]");i&&i.remove(),V=a.props.page;const p=ae();N=new $t({target:r,props:{...a.props,stores:G},hydrate:!0}),p();const s={from:null,to:re("to",{params:n.params,routeId:(h=(l=n.route)==null?void 0:l.id)!=null?h:null,url:new URL(location.href)}),type:"load"};d.after_navigate.forEach(m=>m(s)),f=!0}async function Y({url:a,params:i,branch:p,status:s,error:l,route:h,form:m}){var U;const v=p.filter(Boolean),k={type:"loaded",state:{url:a,params:i,branch:p,error:l,route:h,session_id:b},props:{components:v.map(L=>L.node.component)}};m!==void 0&&(k.props.form=m);let y={},g=!V;for(let L=0;L<v.length;L+=1){const I=v[L];y={...y,...I.data},(g||!n.branch.some(A=>A===I))&&(k.props[`data_${L}`]=y,g=g||Object.keys((U=I.data)!=null?U:{}).length>0)}if(g||(g=Object.keys(V.data).length!==Object.keys(y).length),!n.url||a.href!==n.url.href||n.error!==l||g){k.props.page={error:l,params:i,routeId:h&&h.id,status:s,url:a,data:g?y:V.data};const L=(I,A)=>{Object.defineProperty(k.props.page,I,{get:()=>{throw new Error(`$page.${I} has been replaced by $page.url.${A}`)}})};L("origin","origin"),L("path","pathname"),L("query","searchParams")}return k}async function ue({loader:a,parent:i,url:p,params:s,routeId:l,server_data_node:h}){var y,g,E,U,L;let m=null;const v={dependencies:new Set,params:new Set,parent:!1,url:!1},k=await a();if((y=k.shared)!=null&&y.load){let I=function(...u){for(const R of u){const{href:O}=new URL(R,p);v.dependencies.add(O)}};const A={};for(const u in s)Object.defineProperty(A,u,{get(){return v.params.add(u),s[u]},enumerable:!0});const B={routeId:l,params:A,data:(g=h==null?void 0:h.data)!=null?g:null,url:ut(p,()=>{v.url=!0}),async fetch(u,R){let O;typeof u=="string"?O=u:(O=u.url,R={body:u.method==="GET"||u.method==="HEAD"?void 0:await u.blob(),cache:u.cache,credentials:u.credentials,headers:u.headers,integrity:u.integrity,keepalive:u.keepalive,method:u.method,mode:u.mode,redirect:u.redirect,referrer:u.referrer,referrerPolicy:u.referrerPolicy,signal:u.signal,...R});const P=new URL(O,p).href;return I(P),f?mt(P,R):ht(O,P,R)},setHeaders:()=>{},depends:I,parent(){return v.parent=!0,i()}};Object.defineProperties(B,{props:{get(){throw new Error("@migration task: Replace `props` with `data` stuff https://github.com/sveltejs/kit/discussions/5774#discussioncomment-3292693")},enumerable:!1},session:{get(){throw new Error("session is no longer available. See https://github.com/sveltejs/kit/discussions/5883")},enumerable:!1},stuff:{get(){throw new Error("@migration task: Remove stuff https://github.com/sveltejs/kit/discussions/5774#discussioncomment-3292693")},enumerable:!1}}),m=(E=await k.shared.load.call(null,B))!=null?E:null}return{node:k,loader:a,server:h,shared:(U=k.shared)!=null&&U.load?{type:"data",data:m,uses:v}:null,data:(L=m!=null?m:h==null?void 0:h.data)!=null?L:null}}function Ue(a,i,p){if(S)return!0;if(!p)return!1;if(p.parent&&i||a.url&&p.url)return!0;for(const s of a.params)if(p.params.has(s))return!0;for(const s of p.dependencies)if(c.some(l=>l(new URL(s))))return!0;return!1}function de(a,i){var p,s;return(a==null?void 0:a.type)==="data"?{type:"data",data:a.data,uses:{dependencies:new Set((p=a.uses.dependencies)!=null?p:[]),params:new Set((s=a.uses.params)!=null?s:[]),parent:!!a.uses.parent,url:!!a.uses.url}}:(a==null?void 0:a.type)==="skip"&&i!=null?i:null}async function Ie({id:a,invalidating:i,url:p,params:s,route:l}){var B;if(o.id===a&&o.promise)return o.promise;const{errors:h,layouts:m,leaf:v}=l,k=n.url&&{url:a!==n.url.pathname+n.url.search,params:Object.keys(s).filter(u=>n.params[u]!==s[u])},y=[...m,v];h.forEach(u=>u==null?void 0:u().catch(()=>{})),y.forEach(u=>u==null?void 0:u[1]().catch(()=>{}));let g=null;const E=y.reduce((u,R,O)=>{var D;const P=n.branch[O],Z=!!(R!=null&&R[0])&&((P==null?void 0:P.loader)!==R[1]||Ue(k,u.some(Boolean),(D=P.server)==null?void 0:D.uses));return u.push(Z),u},[]);if(E.some(Boolean)){try{g=await Ke(p,E)}catch(u){return te({status:500,error:u,url:p,routeId:l.id})}if(g.type==="redirect")return g}const U=g==null?void 0:g.nodes;let L=!1;const I=y.map(async(u,R)=>{var D;if(!u)return;const O=n.branch[R],P=U==null?void 0:U[R];if((!P||P.type==="skip")&&u[1]===(O==null?void 0:O.loader)&&!Ue(k,L,(D=O.shared)==null?void 0:D.uses))return O;if(L=!0,(P==null?void 0:P.type)==="error")throw P;return ue({loader:u[1],url:p,params:s,routeId:l.id,parent:async()=>{var Te;const me={};for(let _e=0;_e<R;_e+=1)Object.assign(me,(Te=await I[_e])==null?void 0:Te.data);return me},server_data_node:de(P===void 0&&u[0]?{type:"skip"}:P!=null?P:null,O==null?void 0:O.server)})});for(const u of I)u.catch(()=>{});const A=[];for(let u=0;u<y.length;u+=1)if(y[u])try{A.push(await I[u])}catch(R){if(R instanceof Be)return{type:"redirect",location:R.location};let O=500,P;for(U!=null&&U.includes(R)?(O=(B=R.status)!=null?B:O,P=R.error):R instanceof we?(O=R.status,P=R.body):P=xe(R,{params:s,url:p,routeId:l.id});u--;)if(h[u]){let Z,D=u;for(;!A[D];)D-=1;try{return Z={node:await h[u](),loader:h[u],data:{},server:null,shared:null},await Y({url:p,params:s,branch:A.slice(0,D+1).concat(Z),status:O,error:P,route:l})}catch{continue}}await Q(p);return}else A.push(void 0);return await Y({url:p,params:s,branch:A,status:200,error:null,route:l,form:i?void 0:null})}async function te({status:a,error:i,url:p,routeId:s}){var y;const l={},h=await ke();let m=null;if(h.server)try{const g=await Ke(p,[!0]);if(g.type!=="data"||g.nodes[0]&&g.nodes[0].type!=="data")throw 0;m=(y=g.nodes[0])!=null?y:null}catch{await Q(p);return}const v=await ue({loader:ke,url:p,params:l,routeId:s,parent:()=>Promise.resolve({}),server_data_node:de(m)}),k={node:await Ee(),loader:Ee,shared:null,server:null,data:null};return await Y({url:p,params:l,branch:[v,k],status:a,error:i instanceof we?i.body:xe(i,{url:p,params:l,routeId:null}),route:null})}function pe(a,i){if(Ae(a))return;const p=decodeURI(a.pathname.slice(e.length)||"/");for(const s of ne){const l=s.exec(p);if(l){const h=new URL(a.origin+lt(a.pathname,t)+a.search+a.hash);return{id:h.pathname+h.search,invalidating:i,route:s,params:ct(l),url:h}}}}function Ae(a){return a.origin!==location.origin||!a.pathname.startsWith(e)}async function he({url:a,scroll:i,keepfocus:p,redirect_chain:s,details:l,type:h,delta:m,accepted:v,blocked:k}){var L,I,A,B;let y=!1;const g=pe(a,!1),E={from:re("from",{params:n.params,routeId:(I=(L=n.route)==null?void 0:L.id)!=null?I:null,url:n.url}),to:re("to",{params:(A=g==null?void 0:g.params)!=null?A:null,routeId:(B=g==null?void 0:g.route.id)!=null?B:null,url:a}),type:h};m!==void 0&&(E.delta=m);const U={...E,cancel:()=>{y=!0}};if(d.before_navigate.forEach(u=>u(U)),y){k();return}ye(j),v(),f&&G.navigating.set(E),await Oe(g,a,s,{scroll:i,keepfocus:p,details:l},()=>{d.after_navigate.forEach(u=>u(E)),G.navigating.set(null)})}function Q(a){return location.href=a.href,new Promise(()=>{})}return{after_navigate:a=>{be(()=>(d.after_navigate.push(a),()=>{const i=d.after_navigate.indexOf(a);d.after_navigate.splice(i,1)}))},before_navigate:a=>{be(()=>(d.before_navigate.push(a),()=>{const i=d.before_navigate.indexOf(a);d.before_navigate.splice(i,1)}))},disable_scroll_handling:()=>{(_||!f)&&(w=!1)},goto:(a,i={})=>fe(a,i,[]),invalidate:a=>{if(a===void 0)throw new Error("`invalidate()` (with no arguments) has been replaced by `invalidateAll()`");if(typeof a=="function")c.push(a);else{const{href:i}=new URL(a,location.href);c.push(p=>p.href===i)}return Le()},invalidateAll:()=>(S=!0,Le()),prefetch:async a=>{const i=new URL(a,Ce(document));await Pe(i)},prefetch_routes:async a=>{const p=(a?ne.filter(s=>a.some(l=>s.exec(l))):ne).map(s=>Promise.all([...s.layouts,s.leaf].map(l=>l==null?void 0:l[1]())));await Promise.all(p)},apply_action:async a=>{if(a.type==="error"){const i=new URL(location.href),{branch:p,route:s}=n;if(!s)return;let l=n.branch.length;for(;l--;)if(s.errors[l]){let h,m=l;for(;!p[m];)m-=1;try{h={node:await s.errors[l](),loader:s.errors[l],data:{},server:null,shared:null};const v=await Y({url:i,params:n.params,branch:p.slice(0,m+1).concat(h),status:500,error:a.error,route:s});n=v.state;const k=ae();N.$set(v.props),k();return}catch{continue}}}else if(a.type==="redirect")fe(a.location,{},[]);else{const i={form:a.data};a.status!==V.status&&(i.page={...V,status:a.status});const p=ae();N.$set(i),p()}},_start_router:()=>{history.scrollRestoration="manual",addEventListener("beforeunload",s=>{var m,v;let l=!1;const h={from:re("from",{params:n.params,routeId:(v=(m=n.route)==null?void 0:m.id)!=null?v:null,url:n.url}),to:null,type:"unload",cancel:()=>l=!0};d.before_navigate.forEach(k=>k(h)),l?(s.preventDefault(),s.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{if(document.visibilityState==="hidden"){ye(j);try{sessionStorage[Fe]=JSON.stringify(ee)}catch{}}});const a=s=>{const{url:l,options:h}=qe(s);if(l&&h.prefetch){if(Ae(l))return;Pe(l)}};let i;const p=s=>{clearTimeout(i),i=setTimeout(()=>{var l;(l=s.target)==null||l.dispatchEvent(new CustomEvent("sveltekit:trigger_prefetch",{bubbles:!0}))},20)};addEventListener("touchstart",a),addEventListener("mousemove",p),addEventListener("sveltekit:trigger_prefetch",a),addEventListener("click",s=>{if(s.button||s.which!==1||s.metaKey||s.ctrlKey||s.shiftKey||s.altKey||s.defaultPrevented)return;const{a:l,url:h,options:m}=qe(s);if(!l||!h)return;const v=l instanceof SVGAElement;if(!v&&!(h.protocol==="https:"||h.protocol==="http:"))return;const k=(l.getAttribute("rel")||"").split(/\s+/);if(l.hasAttribute("download")||k.includes("external")||m.reload||(v?l.target.baseVal:l.target))return;const[y,g]=h.href.split("#");if(g!==void 0&&y===location.href.split("#")[0]){q=!0,ye(j),n.url=h,G.page.set({...V,url:h}),G.page.notify();return}he({url:h,scroll:m.noscroll?ve():null,keepfocus:!1,redirect_chain:[],details:{state:{},replaceState:h.href===location.href},accepted:()=>s.preventDefault(),blocked:()=>s.preventDefault(),type:"link"})}),addEventListener("popstate",s=>{if(s.state){if(s.state[J]===j)return;const l=s.state[J]-j;he({url:new URL(location.href),scroll:ee[s.state[J]],keepfocus:!1,redirect_chain:[],details:null,accepted:()=>{j=s.state[J]},blocked:()=>{history.go(-l)},type:"popstate",delta:l})}}),addEventListener("hashchange",()=>{q&&(q=!1,history.replaceState({...history.state,[J]:++j},"",location.href))});for(const s of document.querySelectorAll("link"))s.rel==="icon"&&(s.href=s.href);addEventListener("pageshow",s=>{s.persisted&&G.navigating.set(null)})},_hydrate:async({status:a,error:i,node_ids:p,params:s,routeId:l,data:h,form:m})=>{var y;const v=new URL(location.href);let k;try{const g=p.map(async(E,U)=>{const L=h[U];return ue({loader:ce[E],url:v,params:s,routeId:l,parent:async()=>{const I={};for(let A=0;A<U;A+=1)Object.assign(I,(await g[A]).data);return I},server_data_node:de(L)})});k=await Y({url:v,params:s,branch:await Promise.all(g),status:a,error:i,form:m,route:(y=ne.find(E=>E.id===l))!=null?y:null})}catch(g){const E=g;if(E instanceof Be){await Q(new URL(g.location,location.href));return}k=await te({status:E instanceof we?E.status:500,error:E,url:v,routeId:l})}je(k)}}}let At=1;async function Ke(r,e){const t=new URL(r);t.pathname=r.pathname.replace(/\/$/,"")+Ut,t.searchParams.set("__invalid",e.map(o=>o?"y":"n").join("")),t.searchParams.set("__id",String(At++)),await se(()=>import(t.href),[],import.meta.url);const c=window.__sveltekit_data;return delete window.__sveltekit_data,c}function xe(r,e){var t;return(t=jt.handleError({error:r,event:e}))!=null?t:{message:"Internal Error"}}const Nt=["hash","href","host","hostname","origin","pathname","port","protocol","search","searchParams","toString","toJSON"];function re(r,e){for(const t of Nt)Object.defineProperty(e,t,{get(){throw new Error(`The navigation shape changed - ${r}.${t} should now be ${r}.url.${t}`)}});return e}function ae(){return()=>{}}async function Ct({env:r,hydrate:e,paths:t,target:c,trailing_slash:o}){at(t);const d=It({target:c,base:t.base,trailing_slash:o});st({client:d}),e?await d._hydrate(e):d.goto(location.href,{replaceState:!0}),d._start_router()}export{Ct as start};
static/_app/version.json CHANGED
@@ -1 +1 @@
1
- {"version":"1663903188059"}
 
1
+ {"version":"1663965759116"}
static/index.html CHANGED
@@ -6,32 +6,32 @@
6
  <meta name="viewport" content="width=device-width" />
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 href="/embed/huggingface-projects/stable-diffusion-multiplayer/static/_app/immutable/assets/_layout-d1ea213c.css" rel="stylesheet">
10
- <link href="/embed/huggingface-projects/stable-diffusion-multiplayer/static/_app/immutable/assets/_page-d7e0618a.css" rel="stylesheet">
11
- <link rel="modulepreload" href="/embed/huggingface-projects/stable-diffusion-multiplayer/static/_app/immutable/start-143f58bd.js">
12
- <link rel="modulepreload" href="/embed/huggingface-projects/stable-diffusion-multiplayer/static/_app/immutable/chunks/index-1f793c88.js">
13
- <link rel="modulepreload" href="/embed/huggingface-projects/stable-diffusion-multiplayer/static/_app/immutable/chunks/singletons-a44f94dd.js">
14
- <link rel="modulepreload" href="/embed/huggingface-projects/stable-diffusion-multiplayer/static/_app/immutable/chunks/index-b3d11e3e.js">
15
- <link rel="modulepreload" href="/embed/huggingface-projects/stable-diffusion-multiplayer/static/_app/immutable/components/pages/_layout.svelte-a6944661.js">
16
  <link rel="modulepreload" href="/embed/huggingface-projects/stable-diffusion-multiplayer/static/_app/immutable/modules/pages/_layout.ts-b8ee4d7c.js">
17
  <link rel="modulepreload" href="/embed/huggingface-projects/stable-diffusion-multiplayer/static/_app/immutable/chunks/_layout-1daba58d.js">
18
- <link rel="modulepreload" href="/embed/huggingface-projects/stable-diffusion-multiplayer/static/_app/immutable/components/pages/_page.svelte-7e536a42.js">
19
  </head>
20
  <body class="dark:bg-[rgb(11,15,25)] bg-white dark:text-white text-black">
21
  <div>
22
 
23
 
24
- <div class="max-w-screen-md mx-auto px-3 py-8 relative z-0"><h1 class="text-3xl font-bold leading-normal">Stable Diffussion Outpainting Multiplayer</h1>
25
- <p class="text-sm"></p>
26
- <div class="relative top-0 z-50 bg-white dark:bg-black py-3"><form class="grid grid-cols-6"><input class="input svelte-zbscw1" placeholder="A photo of a beautiful sunset in San Francisco" title="Input prompt to generate image and obtain palette" type="text" name="prompt" >
27
- <button class="button svelte-zbscw1" title="Generate Palette">Create Palette
28
- </button></form></div>
29
- <div class="relative"></div>
30
  </div>
31
 
32
 
33
- <script type="module" data-sveltekit-hydrate="praw4j">
34
- import { start } from "/embed/huggingface-projects/stable-diffusion-multiplayer/static/_app/immutable/start-143f58bd.js";
35
 
36
  start({
37
  env: {"PUBLIC_DEV_MODE":"PROD","PUBLIC_WS_ENDPOINT":"wss://spaces.huggingface.tech/stabilityai/stable-diffusion/queue/join"},
@@ -45,7 +45,7 @@
45
  form: null
46
  },
47
  paths: {"base":"/embed/huggingface-projects/stable-diffusion-multiplayer/static","assets":"/embed/huggingface-projects/stable-diffusion-multiplayer/static"},
48
- target: document.querySelector('[data-sveltekit-hydrate="praw4j"]').parentNode,
49
  trailing_slash: "never"
50
  });
51
  </script>
 
6
  <meta name="viewport" content="width=device-width" />
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 href="/embed/huggingface-projects/stable-diffusion-multiplayer/static/_app/immutable/assets/_layout-8eeb2150.css" rel="stylesheet">
10
+ <link href="/embed/huggingface-projects/stable-diffusion-multiplayer/static/_app/immutable/assets/_page-08702550.css" rel="stylesheet">
11
+ <link rel="modulepreload" href="/embed/huggingface-projects/stable-diffusion-multiplayer/static/_app/immutable/start-552ac7b2.js">
12
+ <link rel="modulepreload" href="/embed/huggingface-projects/stable-diffusion-multiplayer/static/_app/immutable/chunks/index-753a1ad2.js">
13
+ <link rel="modulepreload" href="/embed/huggingface-projects/stable-diffusion-multiplayer/static/_app/immutable/chunks/singletons-f23f00e3.js">
14
+ <link rel="modulepreload" href="/embed/huggingface-projects/stable-diffusion-multiplayer/static/_app/immutable/chunks/index-9f7684d6.js">
15
+ <link rel="modulepreload" href="/embed/huggingface-projects/stable-diffusion-multiplayer/static/_app/immutable/components/pages/_layout.svelte-9e51eb23.js">
16
  <link rel="modulepreload" href="/embed/huggingface-projects/stable-diffusion-multiplayer/static/_app/immutable/modules/pages/_layout.ts-b8ee4d7c.js">
17
  <link rel="modulepreload" href="/embed/huggingface-projects/stable-diffusion-multiplayer/static/_app/immutable/chunks/_layout-1daba58d.js">
18
+ <link rel="modulepreload" href="/embed/huggingface-projects/stable-diffusion-multiplayer/static/_app/immutable/components/pages/_page.svelte-673bcd1c.js">
19
  </head>
20
  <body class="dark:bg-[rgb(11,15,25)] bg-white dark:text-white text-black">
21
  <div>
22
 
23
 
24
+ <div class="max-w-screen-md mx-auto px-3 py-8 relative"><div class="relative z-10"><h1 class="text-3xl font-bold leading-normal">Stable Diffussion Outpainting Multiplayer</h1>
25
+ <p class="text-sm"></p>
26
+ <div class="relative bg-white dark:bg-black py-3"><form class="grid grid-cols-6"><input class="input svelte-zbscw1" placeholder="A photo of a beautiful sunset in San Francisco" title="Input prompt to generate image and obtain palette" type="text" name="prompt" >
27
+ <button class="button svelte-zbscw1" title="Generate Palette">Create Palette
28
+ </button></form></div></div>
29
+ <div class="relative z-0"></div>
30
  </div>
31
 
32
 
33
+ <script type="module" data-sveltekit-hydrate="8g83i1">
34
+ import { start } from "/embed/huggingface-projects/stable-diffusion-multiplayer/static/_app/immutable/start-552ac7b2.js";
35
 
36
  start({
37
  env: {"PUBLIC_DEV_MODE":"PROD","PUBLIC_WS_ENDPOINT":"wss://spaces.huggingface.tech/stabilityai/stable-diffusion/queue/join"},
 
45
  form: null
46
  },
47
  paths: {"base":"/embed/huggingface-projects/stable-diffusion-multiplayer/static","assets":"/embed/huggingface-projects/stable-diffusion-multiplayer/static"},
48
+ target: document.querySelector('[data-sveltekit-hydrate="8g83i1"]').parentNode,
49
  trailing_slash: "never"
50
  });
51
  </script>
static/vite-manifest.json CHANGED
@@ -1,11 +1,11 @@
1
  {
2
  "node_modules/@sveltejs/kit/src/runtime/client/start.js": {
3
- "file": "_app/immutable/start-143f58bd.js",
4
  "src": "node_modules/@sveltejs/kit/src/runtime/client/start.js",
5
  "isEntry": true,
6
  "imports": [
7
- "_index-1f793c88.js",
8
- "_singletons-a44f94dd.js"
9
  ],
10
  "dynamicImports": [
11
  ".svelte-kit/generated/nodes/0.js",
@@ -14,35 +14,35 @@
14
  ]
15
  },
16
  "src/routes/+layout.svelte": {
17
- "file": "_app/immutable/components/pages/_layout.svelte-a6944661.js",
18
  "src": "src/routes/+layout.svelte",
19
  "isEntry": true,
20
  "imports": [
21
- "_index-1f793c88.js"
22
  ],
23
  "css": [
24
- "_app/immutable/assets/_layout-d1ea213c.css"
25
  ]
26
  },
27
  "node_modules/@sveltejs/kit/src/runtime/components/error.svelte": {
28
- "file": "_app/immutable/components/error.svelte-030a0882.js",
29
  "src": "node_modules/@sveltejs/kit/src/runtime/components/error.svelte",
30
  "isEntry": true,
31
  "imports": [
32
- "_index-1f793c88.js",
33
- "_singletons-a44f94dd.js"
34
  ]
35
  },
36
  "src/routes/+page.svelte": {
37
- "file": "_app/immutable/components/pages/_page.svelte-7e536a42.js",
38
  "src": "src/routes/+page.svelte",
39
  "isEntry": true,
40
  "imports": [
41
- "_index-1f793c88.js",
42
- "_index-b3d11e3e.js"
43
  ],
44
  "css": [
45
- "_app/immutable/assets/_page-d7e0618a.css"
46
  ]
47
  },
48
  "src/routes/+layout.ts": {
@@ -53,26 +53,26 @@
53
  "__layout-1daba58d.js"
54
  ]
55
  },
56
- "_singletons-a44f94dd.js": {
57
- "file": "_app/immutable/chunks/singletons-a44f94dd.js",
58
  "imports": [
59
- "_index-b3d11e3e.js"
60
  ]
61
  },
62
- "_index-1f793c88.js": {
63
- "file": "_app/immutable/chunks/index-1f793c88.js"
64
  },
65
- "_index-b3d11e3e.js": {
66
- "file": "_app/immutable/chunks/index-b3d11e3e.js",
67
  "imports": [
68
- "_index-1f793c88.js"
69
  ]
70
  },
71
  "__layout-1daba58d.js": {
72
  "file": "_app/immutable/chunks/_layout-1daba58d.js"
73
  },
74
  ".svelte-kit/generated/nodes/0.js": {
75
- "file": "_app/immutable/chunks/0-f56af2df.js",
76
  "src": ".svelte-kit/generated/nodes/0.js",
77
  "isDynamicEntry": true,
78
  "imports": [
@@ -81,7 +81,7 @@
81
  ]
82
  },
83
  ".svelte-kit/generated/nodes/1.js": {
84
- "file": "_app/immutable/chunks/1-ea6b1854.js",
85
  "src": ".svelte-kit/generated/nodes/1.js",
86
  "isDynamicEntry": true,
87
  "imports": [
@@ -89,7 +89,7 @@
89
  ]
90
  },
91
  ".svelte-kit/generated/nodes/2.js": {
92
- "file": "_app/immutable/chunks/2-e536610e.js",
93
  "src": ".svelte-kit/generated/nodes/2.js",
94
  "isDynamicEntry": true,
95
  "imports": [
@@ -97,11 +97,11 @@
97
  ]
98
  },
99
  "src/routes/+page.css": {
100
- "file": "_app/immutable/assets/_page-d7e0618a.css",
101
  "src": "src/routes/+page.css"
102
  },
103
  "src/routes/+layout.css": {
104
- "file": "_app/immutable/assets/_layout-d1ea213c.css",
105
  "src": "src/routes/+layout.css"
106
  }
107
  }
 
1
  {
2
  "node_modules/@sveltejs/kit/src/runtime/client/start.js": {
3
+ "file": "_app/immutable/start-552ac7b2.js",
4
  "src": "node_modules/@sveltejs/kit/src/runtime/client/start.js",
5
  "isEntry": true,
6
  "imports": [
7
+ "_index-753a1ad2.js",
8
+ "_singletons-f23f00e3.js"
9
  ],
10
  "dynamicImports": [
11
  ".svelte-kit/generated/nodes/0.js",
 
14
  ]
15
  },
16
  "src/routes/+layout.svelte": {
17
+ "file": "_app/immutable/components/pages/_layout.svelte-9e51eb23.js",
18
  "src": "src/routes/+layout.svelte",
19
  "isEntry": true,
20
  "imports": [
21
+ "_index-753a1ad2.js"
22
  ],
23
  "css": [
24
+ "_app/immutable/assets/_layout-8eeb2150.css"
25
  ]
26
  },
27
  "node_modules/@sveltejs/kit/src/runtime/components/error.svelte": {
28
+ "file": "_app/immutable/components/error.svelte-96c74a18.js",
29
  "src": "node_modules/@sveltejs/kit/src/runtime/components/error.svelte",
30
  "isEntry": true,
31
  "imports": [
32
+ "_index-753a1ad2.js",
33
+ "_singletons-f23f00e3.js"
34
  ]
35
  },
36
  "src/routes/+page.svelte": {
37
+ "file": "_app/immutable/components/pages/_page.svelte-673bcd1c.js",
38
  "src": "src/routes/+page.svelte",
39
  "isEntry": true,
40
  "imports": [
41
+ "_index-753a1ad2.js",
42
+ "_index-9f7684d6.js"
43
  ],
44
  "css": [
45
+ "_app/immutable/assets/_page-08702550.css"
46
  ]
47
  },
48
  "src/routes/+layout.ts": {
 
53
  "__layout-1daba58d.js"
54
  ]
55
  },
56
+ "_singletons-f23f00e3.js": {
57
+ "file": "_app/immutable/chunks/singletons-f23f00e3.js",
58
  "imports": [
59
+ "_index-9f7684d6.js"
60
  ]
61
  },
62
+ "_index-753a1ad2.js": {
63
+ "file": "_app/immutable/chunks/index-753a1ad2.js"
64
  },
65
+ "_index-9f7684d6.js": {
66
+ "file": "_app/immutable/chunks/index-9f7684d6.js",
67
  "imports": [
68
+ "_index-753a1ad2.js"
69
  ]
70
  },
71
  "__layout-1daba58d.js": {
72
  "file": "_app/immutable/chunks/_layout-1daba58d.js"
73
  },
74
  ".svelte-kit/generated/nodes/0.js": {
75
+ "file": "_app/immutable/chunks/0-d38ff3ba.js",
76
  "src": ".svelte-kit/generated/nodes/0.js",
77
  "isDynamicEntry": true,
78
  "imports": [
 
81
  ]
82
  },
83
  ".svelte-kit/generated/nodes/1.js": {
84
+ "file": "_app/immutable/chunks/1-7ba5dd96.js",
85
  "src": ".svelte-kit/generated/nodes/1.js",
86
  "isDynamicEntry": true,
87
  "imports": [
 
89
  ]
90
  },
91
  ".svelte-kit/generated/nodes/2.js": {
92
+ "file": "_app/immutable/chunks/2-00e4e453.js",
93
  "src": ".svelte-kit/generated/nodes/2.js",
94
  "isDynamicEntry": true,
95
  "imports": [
 
97
  ]
98
  },
99
  "src/routes/+page.css": {
100
+ "file": "_app/immutable/assets/_page-08702550.css",
101
  "src": "src/routes/+page.css"
102
  },
103
  "src/routes/+layout.css": {
104
+ "file": "_app/immutable/assets/_layout-8eeb2150.css",
105
  "src": "src/routes/+layout.css"
106
  }
107
  }