diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000000000000000000000000000000000000..3d24738aa1590a931da1ce056ee51fc8a141f769 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,34 @@ +# Include any files or directories that you don't want to be copied to your +# container here (e.g., local build artifacts, temporary files, etc.). +# +# For more help, visit the .dockerignore file reference guide at +# https://docs.docker.com/engine/reference/builder/#dockerignore-file + +**/.classpath +**/.dockerignore +**/.env +**/.git +**/.gitignore +**/.project +**/.settings +**/.toolstarget +**/.vs +**/.vscode +**/.next +**/.cache +**/*.*proj.user +**/*.dbmdl +**/*.jfm +**/charts +**/docker-compose* +**/compose* +**/Dockerfile* +**/node_modules +**/npm-debug.log +**/obj +**/secrets.dev.yaml +**/values.dev.yaml +**/build +**/dist +LICENSE +README.md diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..61a169b8d050dfc907022268ef9aab615775aad1 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,37 @@ +# syntax=docker/dockerfile:1 + +# Comments are provided throughout this file to help you get started. +# If you need more help, visit the Dockerfile reference guide at +# https://docs.docker.com/engine/reference/builder/ + +ARG NODE_VERSION=18 + +FROM node:${NODE_VERSION}-alpine + +# Use production node environment by default. +ENV NODE_ENV production + + +WORKDIR /usr/src/app + +# Download dependencies as a separate step to take advantage of Docker's caching. +# Leverage a cache mount to /root/.npm to speed up subsequent builds. +# Leverage a bind mounts to package.json and package-lock.json to avoid having to copy them into +# into this layer. +RUN --mount=type=bind,source=package.json,target=package.json \ + --mount=type=bind,source=package-lock.json,target=package-lock.json \ + --mount=type=cache,target=/root/.npm \ + npm ci --omit=dev + +# Run the application as a non-root user. +USER node + +# Copy the rest of the source files into the image. +COPY package.json ./package.json +COPY build ./build + +# Expose the port that the application listens on. +EXPOSE 7860 + +# Run the application. +CMD node build diff --git a/build/client/_app/immutable/assets/0.qDOF2h1a.css b/build/client/_app/immutable/assets/0.qDOF2h1a.css new file mode 100644 index 0000000000000000000000000000000000000000..89728d30f83bc6a1f7c2479be2b6833a0209cde9 --- /dev/null +++ b/build/client/_app/immutable/assets/0.qDOF2h1a.css @@ -0,0 +1 @@ +*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{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,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}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-feature-settings:normal;font-variation-settings:normal;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-feature-settings:inherit;font-variation-settings: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}dialog{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}[hidden]{display:none}.dark .list-nav a:hover,.dark .list-nav button:hover,.dark .list-option:hover{background-color:rgb(var(--color-primary-500) / .1)}.dark .table-interactive tbody tr:hover:hover{background-color:rgb(var(--color-primary-500) / .1)}@media (min-width: 768px){.\!legend{font-size:1.5rem!important;line-height:2rem!important}.legend{font-size:1.5rem;line-height:2rem}}.dark .bg-primary-hover-token:hover{background-color:rgb(var(--color-primary-500) / .1)}body{background-color:rgb(var(--color-surface-50));font-size:1rem;line-height:1.5rem;font-family:var(--theme-font-family-base);color:rgba(var(--theme-font-color-base))}.dark body{background-color:rgb(var(--color-surface-900));color:rgba(var(--theme-font-color-dark))}::-moz-selection{background-color:rgb(var(--color-primary-500) / .3)}::selection{background-color:rgb(var(--color-primary-500) / .3)}html{-webkit-tap-highlight-color:rgba(128,128,128,.5);scrollbar-color:rgba(0,0,0,.2) rgba(255,255,255,.05)}::-webkit-scrollbar{width:.5rem;height:.5rem}::-webkit-scrollbar-track{padding-left:1px;padding-right:1px;background-color:rgb(var(--color-surface-50))!important}.dark ::-webkit-scrollbar-track{background-color:rgb(var(--color-surface-900))!important}::-webkit-scrollbar-thumb{background-color:rgb(var(--color-surface-400));border-radius:var(--theme-rounded-base)}.dark ::-webkit-scrollbar-thumb{background-color:rgb(var(--color-surface-500))}::-webkit-scrollbar-corner{background-color:rgb(var(--color-surface-50))!important}.dark ::-webkit-scrollbar-corner{background-color:rgb(var(--color-surface-900))!important}html.dark{scrollbar-color:rgba(255,255,255,.1) rgba(0,0,0,.05)}hr:not(.divider){display:block;border-top-width:1px;border-style:solid;border-color:rgb(var(--color-surface-300))}.dark hr:not(.divider){border-color:rgb(var(--color-surface-600))}fieldset,legend,label{display:block}::-moz-placeholder{color:rgb(var(--color-surface-500))}::placeholder{color:rgb(var(--color-surface-500))}.dark ::-moz-placeholder{color:rgb(var(--color-surface-400))}.dark ::placeholder{color:rgb(var(--color-surface-400))}:is(.dark input::-webkit-calendar-picker-indicator){--tw-invert: invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}input[type=search]::-webkit-search-cancel-button{-webkit-appearance:none;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm121.6 313.1c4.7 4.7 4.7 12.3 0 17L338 377.6c-4.7 4.7-12.3 4.7-17 0L256 312l-65.1 65.6c-4.7 4.7-12.3 4.7-17 0L134.4 338c-4.7-4.7-4.7-12.3 0-17l65.6-65-65.6-65.1c-4.7-4.7-4.7-12.3 0-17l39.6-39.6c4.7-4.7 12.3-4.7 17 0l65 65.7 65.1-65.6c4.7-4.7 12.3-4.7 17 0l39.6 39.6c4.7 4.7 4.7 12.3 0 17L312 256l65.6 65.1z'/%3E%3C/svg%3E") no-repeat 50% 50%;pointer-events:none;height:1rem;width:1rem;border-radius:9999px;background-size:contain;opacity:0}input[type=search]:focus::-webkit-search-cancel-button{pointer-events:auto;opacity:1}:is(.dark input[type=search]::-webkit-search-cancel-button){--tw-invert: invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}progress{webkit-appearance:none;-moz-appearance:none;-webkit-appearance:none;appearance:none;height:.5rem;width:100%;overflow:hidden;border-radius:var(--theme-rounded-base);background-color:rgb(var(--color-surface-400))}.dark progress{background-color:rgb(var(--color-surface-500))}progress::-webkit-progress-bar{background-color:rgb(var(--color-surface-400))}.dark progress::-webkit-progress-bar{background-color:rgb(var(--color-surface-500))}progress::-webkit-progress-value{background-color:rgb(var(--color-surface-900))}.dark progress::-webkit-progress-value{background-color:rgb(var(--color-surface-50))}::-moz-progress-bar{background-color:rgb(var(--color-surface-900))}.dark ::-moz-progress-bar{background-color:rgb(var(--color-surface-50))}:indeterminate::-moz-progress-bar{width:0}input[type=file]:not(.file-dropzone-input)::file-selector-button:disabled{cursor:not-allowed;opacity:.5}input[type=file]:not(.file-dropzone-input)::file-selector-button:disabled:hover{--tw-brightness: brightness(1);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}input[type=file]:not(.file-dropzone-input)::file-selector-button:disabled:active{--tw-scale-x: 1;--tw-scale-y: 1;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))}input[type=file]:not(.file-dropzone-input)::file-selector-button{font-size:.875rem;line-height:1.25rem;padding:.375rem .75rem;white-space:nowrap;text-align:center;display:inline-flex;align-items:center;justify-content:center;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;border-radius:var(--theme-rounded-base);background-color:rgb(var(--color-surface-900));color:rgb(var(--color-surface-50));margin-right:.5rem;border-width:0px}input[type=file]:not(.file-dropzone-input)::file-selector-button>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}input[type=file]:not(.file-dropzone-input)::file-selector-button:hover{--tw-brightness: brightness(1.15);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}input[type=file]:not(.file-dropzone-input)::file-selector-button:active{--tw-scale-x: 95%;--tw-scale-y: 95%;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));--tw-brightness: brightness(.9);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.dark input[type=file]:not(.file-dropzone-input)::file-selector-button{background-color:rgb(var(--color-surface-50));color:rgb(var(--color-surface-900))}[type=range]{width:100%;accent-color:rgb(var(--color-surface-900) / 1)}:is(.dark [type=range]){accent-color:rgb(var(--color-surface-50) / 1)}[data-sort]{cursor:pointer}[data-sort]:hover:hover,.dark [data-sort]:hover:hover{background-color:rgb(var(--color-primary-500) / .1)}[data-sort]:after{margin-left:.5rem!important;opacity:0;--tw-content: "↓" !important;content:var(--tw-content)!important}[data-popup]{position:absolute;top:0;left:0;display:none;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}:root [data-theme=skeleton]{--theme-font-family-base: system-ui;--theme-font-family-heading: system-ui;--theme-font-color-base: 0 0 0;--theme-font-color-dark: 255 255 255;--theme-rounded-base: 9999px;--theme-rounded-container: 8px;--theme-border-base: 1px;--on-primary: 0 0 0;--on-secondary: 255 255 255;--on-tertiary: 0 0 0;--on-success: 0 0 0;--on-warning: 0 0 0;--on-error: 255 255 255;--on-surface: 255 255 255;--color-primary-50: 219 245 236;--color-primary-100: 207 241 230;--color-primary-200: 195 238 224;--color-primary-300: 159 227 205;--color-primary-400: 87 207 167;--color-primary-500: 15 186 129;--color-primary-600: 14 167 116;--color-primary-700: 11 140 97;--color-primary-800: 9 112 77;--color-primary-900: 7 91 63;--color-secondary-50: 229 227 251;--color-secondary-100: 220 218 250;--color-secondary-200: 211 209 249;--color-secondary-300: 185 181 245;--color-secondary-400: 132 126 237;--color-secondary-500: 79 70 229;--color-secondary-600: 71 63 206;--color-secondary-700: 59 53 172;--color-secondary-800: 47 42 137;--color-secondary-900: 39 34 112;--color-tertiary-50: 219 242 252;--color-tertiary-100: 207 237 251;--color-tertiary-200: 195 233 250;--color-tertiary-300: 159 219 246;--color-tertiary-400: 86 192 240;--color-tertiary-500: 14 165 233;--color-tertiary-600: 13 149 210;--color-tertiary-700: 11 124 175;--color-tertiary-800: 8 99 140;--color-tertiary-900: 7 81 114;--color-success-50: 237 247 220;--color-success-100: 230 245 208;--color-success-200: 224 242 197;--color-success-300: 206 235 162;--color-success-400: 169 219 92;--color-success-500: 132 204 22;--color-success-600: 119 184 20;--color-success-700: 99 153 17;--color-success-800: 79 122 13;--color-success-900: 65 100 11;--color-warning-50: 252 244 218;--color-warning-100: 251 240 206;--color-warning-200: 250 236 193;--color-warning-300: 247 225 156;--color-warning-400: 240 202 82;--color-warning-500: 234 179 8;--color-warning-600: 211 161 7;--color-warning-700: 176 134 6;--color-warning-800: 140 107 5;--color-warning-900: 115 88 4;--color-error-50: 249 221 234;--color-error-100: 246 209 228;--color-error-200: 244 198 221;--color-error-300: 238 163 200;--color-error-400: 225 94 159;--color-error-500: 212 25 118;--color-error-600: 191 23 106;--color-error-700: 159 19 89;--color-error-800: 127 15 71;--color-error-900: 104 12 58;--color-surface-50: 228 230 238;--color-surface-100: 219 222 233;--color-surface-200: 210 214 227;--color-surface-300: 182 189 210;--color-surface-400: 128 140 177;--color-surface-500: 73 90 143;--color-surface-600: 66 81 129;--color-surface-700: 55 68 107;--color-surface-800: 44 54 86;--color-surface-900: 36 44 70}:root [data-theme=crimson]{--theme-font-family-base: Inter, 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";--theme-font-family-heading: system-ui;--theme-font-color-base: var(--color-surface-900);--theme-font-color-dark: var(--color-surface-50);--theme-rounded-base: 24px;--theme-rounded-container: 24px;--theme-border-base: 1px;--on-primary: 255 255 255;--on-secondary: 255 255 255;--on-tertiary: 0 0 0;--on-success: 0 0 0;--on-warning: 0 0 0;--on-error: 0 0 0;--on-surface: 255 255 255;--color-primary-50: 249 220 226;--color-primary-100: 246 208 216;--color-primary-200: 244 197 206;--color-primary-300: 238 162 177;--color-primary-400: 225 92 119;--color-primary-500: 212 22 60;--color-primary-600: 191 20 54;--color-primary-700: 159 17 45;--color-primary-800: 127 13 36;--color-primary-900: 104 11 29;--color-secondary-50: 227 237 243;--color-secondary-100: 218 231 239;--color-secondary-200: 209 225 235;--color-secondary-300: 181 206 223;--color-secondary-400: 126 170 199;--color-secondary-500: 70 133 175;--color-secondary-600: 63 120 158;--color-secondary-700: 53 100 131;--color-secondary-800: 42 80 105;--color-secondary-900: 34 65 86;--color-tertiary-50: 246 244 244;--color-tertiary-100: 242 240 240;--color-tertiary-200: 239 237 236;--color-tertiary-300: 230 226 225;--color-tertiary-400: 211 204 203;--color-tertiary-500: 192 182 180;--color-tertiary-600: 173 164 162;--color-tertiary-700: 144 137 135;--color-tertiary-800: 115 109 108;--color-tertiary-900: 94 89 88;--color-success-50: 246 250 239;--color-success-100: 243 248 234;--color-success-200: 240 247 229;--color-success-300: 230 241 213;--color-success-400: 212 231 182;--color-success-500: 193 221 151;--color-success-600: 174 199 136;--color-success-700: 145 166 113;--color-success-800: 116 133 91;--color-success-900: 95 108 74;--color-warning-50: 251 246 231;--color-warning-100: 250 243 223;--color-warning-200: 248 240 215;--color-warning-300: 244 231 191;--color-warning-400: 236 212 142;--color-warning-500: 228 194 94;--color-warning-600: 205 175 85;--color-warning-700: 171 146 71;--color-warning-800: 137 116 56;--color-warning-900: 112 95 46;--color-error-50: 248 236 236;--color-error-100: 246 229 230;--color-error-200: 244 223 224;--color-error-300: 237 204 205;--color-error-400: 224 165 167;--color-error-500: 210 127 129;--color-error-600: 189 114 116;--color-error-700: 158 95 97;--color-error-800: 126 76 77;--color-error-900: 103 62 63;--color-surface-50: 223 224 226;--color-surface-100: 213 213 217;--color-surface-200: 202 203 207;--color-surface-300: 170 171 179;--color-surface-400: 107 109 121;--color-surface-500: 43 46 64;--color-surface-600: 39 41 58;--color-surface-700: 32 35 48;--color-surface-800: 26 28 38;--color-surface-900: 21 23 31}*,: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-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--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-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--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: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.hide-scrollbar::-webkit-scrollbar{display:none}.hide-scrollbar{-ms-overflow-style:none;scrollbar-width:none}.dark .divider-vertical{border-color:rgb(var(--color-surface-600))}.h2{font-size:1.5rem;line-height:2rem;font-family:var(--theme-font-family-heading)}.h3{font-size:1.25rem;line-height:1.75rem;font-family:var(--theme-font-family-heading)}.h4{font-size:1.125rem;line-height:1.75rem;font-family:var(--theme-font-family-heading)}.h5{font-size:1rem;line-height:1.5rem;font-family:var(--theme-font-family-heading)}.h6{font-size:.875rem;line-height:1.25rem;font-family:var(--theme-font-family-heading)}.anchor{--tw-text-opacity: 1;color:rgb(var(--color-primary-700) / var(--tw-text-opacity));text-decoration-line:underline}.anchor:hover{--tw-brightness: brightness(1.1);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}:is(.dark .anchor){--tw-text-opacity: 1;color:rgb(var(--color-primary-500) / var(--tw-text-opacity))}.dark .blockquote{color:rgba(var(--theme-font-color-dark))}.dark .kbd{background-color:rgb(var(--color-surface-600))}.time{font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(var(--color-surface-500) / var(--tw-text-opacity))}:is(.dark .time){--tw-text-opacity: 1;color:rgb(var(--color-surface-400) / var(--tw-text-opacity))}.pre{overflow-x:auto;white-space:pre-wrap;background-color:#171717e6;padding:1rem;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1rem;line-height:1.5rem;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity));border-radius:var(--theme-rounded-container)}.code{white-space:nowrap;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:.75rem;line-height:1rem;--tw-text-opacity: 1;color:rgb(var(--color-primary-700) / var(--tw-text-opacity));background-color:rgb(var(--color-primary-500) / .3);border-radius:.25rem;padding:.125rem .25rem}:is(.dark .code){--tw-text-opacity: 1;color:rgb(var(--color-primary-400) / var(--tw-text-opacity));background-color:rgb(var(--color-primary-500) / .2)}.alert{display:flex;flex-direction:column;align-items:flex-start;padding:1rem;color:rgb(var(--color-surface-900));border-radius:var(--theme-rounded-container)}.alert>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.dark .alert{color:rgb(var(--color-surface-50))}.badge{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;font-size:.75rem;line-height:1rem;font-weight:600;padding:.25rem .5rem;border-radius:var(--theme-rounded-base)}.badge>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}:is(.dark .badge-glass){background-color:rgb(var(--color-surface-500) / .2);--tw-ring-color: rgb(250 250 250 / .05)}.dark .crumb-separator{color:rgb(var(--color-surface-200))}.btn:disabled,.btn-icon:disabled,.btn-group>*:disabled{cursor:not-allowed!important;opacity:.5!important}.btn:disabled:hover,.btn-icon:disabled:hover,.btn-group>*:disabled:hover{--tw-brightness: brightness(1);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.btn:disabled:active,.btn-icon:disabled:active,.btn-group>*:disabled:active{--tw-scale-x: 1;--tw-scale-y: 1;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))}.btn{font-size:1rem;line-height:1.5rem;padding-left:1.25rem;padding-right:1.25rem;padding-top:9px;padding-bottom:9px;white-space:nowrap;text-align:center;display:inline-flex;align-items:center;justify-content:center;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;border-radius:var(--theme-rounded-base)}.btn>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.btn:hover{--tw-brightness: brightness(1.15);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.btn:active{--tw-scale-x: 95%;--tw-scale-y: 95%;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));--tw-brightness: brightness(.9);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.btn-sm{padding:.375rem .75rem;font-size:.875rem;line-height:1.25rem}.btn-icon{font-size:1rem;line-height:1.5rem;padding-left:1.25rem;padding-right:1.25rem;white-space:nowrap;text-align:center;display:inline-flex;align-items:center;justify-content:center;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;padding:0;aspect-ratio:1 / 1;width:43px;border-radius:9999px}.btn-icon>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.btn-icon:hover{--tw-brightness: brightness(1.15);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.btn-icon:active{--tw-scale-x: 95%;--tw-scale-y: 95%;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));--tw-brightness: brightness(.9);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.btn-icon-sm{aspect-ratio:1 / 1;width:33px;font-size:.875rem;line-height:1.25rem}.btn-group{display:inline-flex;flex-direction:row;overflow:hidden;border-radius:var(--theme-rounded-base);isolation:isolate}.btn-group>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(0px * var(--tw-space-x-reverse));margin-left:calc(0px * calc(1 - var(--tw-space-x-reverse)))}.btn-group button,.btn-group a,.btn-group-vertical button,.btn-group-vertical a{font-size:1rem;line-height:1.5rem;padding-left:1.25rem;padding-right:1.25rem;padding-top:9px;padding-bottom:9px;white-space:nowrap;text-align:center;display:inline-flex;align-items:center;justify-content:center;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;color:inherit!important;text-decoration-line:none!important}.btn-group button>:not([hidden])~:not([hidden]),.btn-group a>:not([hidden])~:not([hidden]),.btn-group-vertical button>:not([hidden])~:not([hidden]),.btn-group-vertical a>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.btn-group button:hover,.btn-group a:hover,.btn-group-vertical button:hover,.btn-group-vertical a:hover{--tw-brightness: brightness(1.15);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);background-color:rgb(var(--color-surface-50) / 3%)}.btn-group button:active,.btn-group a:active,.btn-group-vertical button:active,.btn-group-vertical a:active{background-color:rgb(var(--color-surface-900) / 3%)}.btn-group>*+*{border-top-width:0px;border-left-width:1px;border-color:rgb(var(--color-surface-500) / .2)}.card{background-color:rgb(var(--color-surface-100));--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);--tw-ring-inset: inset;--tw-ring-color: rgb(23 23 23 / .05);border-radius:var(--theme-rounded-container)}.dark .card{background-color:rgb(var(--color-surface-800));--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);--tw-ring-inset: inset;--tw-ring-color: rgb(250 250 250 / .05)}a.card{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}a.card:hover{--tw-brightness: brightness(1.05);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.codeblock pre{counter-reset:line}.codeblock code.lineNumbers>span.line{counter-increment:line}.codeblock code.lineNumbers>span.line:before{content:counter(line) "";opacity:.5}.chip{cursor:pointer;white-space:nowrap;padding:.375rem .75rem;text-align:center;font-size:.75rem;line-height:1rem;border-radius:.25rem;display:inline-flex;align-items:center;justify-content:center;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.chip>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}a.chip:hover,button.chip:hover{--tw-brightness: brightness(1.15);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.chip-disabled,.chip:disabled{cursor:not-allowed!important;opacity:.5!important}.chip-disabled:active,.chip:disabled:active{--tw-scale-x: 1;--tw-scale-y: 1;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))}.\!legend{font-size:1.25rem!important;line-height:1.75rem!important;font-family:var(--theme-font-family-heading)!important}.legend{font-size:1.25rem;line-height:1.75rem;font-family:var(--theme-font-family-heading)}.label>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.\!input{width:100%!important;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter!important;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter!important;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important;transition-duration:.2s!important;background-color:rgb(var(--color-surface-200))!important;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color) !important;--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color) !important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)!important;border-width:var(--theme-border-base)!important;border-color:rgb(var(--color-surface-400))!important}.input,.textarea,.select,.input-group{width:100%;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.2s;background-color:rgb(var(--color-surface-200));--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color) !important;--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color) !important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)!important;border-width:var(--theme-border-base);border-color:rgb(var(--color-surface-400))}.dark .input,.dark .textarea,.dark .select,.dark .input-group{background-color:rgb(var(--color-surface-700));border-color:rgb(var(--color-surface-500))}.dark .\!input{background-color:rgb(var(--color-surface-700))!important;border-color:rgb(var(--color-surface-500))!important}.\!input:hover{--tw-brightness: brightness(1.05) !important;filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.input:hover,.textarea:hover,.select:hover,.input-group:hover{--tw-brightness: brightness(1.05);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.\!input:focus{--tw-brightness: brightness(1.05) !important;filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.input:focus,.textarea:focus,.select:focus,.input-group:focus{--tw-brightness: brightness(1.05);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.\!input:focus-within{--tw-border-opacity: 1 !important;border-color:rgb(var(--color-primary-500) / var(--tw-border-opacity))!important}.input:focus-within,.textarea:focus-within,.select:focus-within,.input-group:focus-within{--tw-border-opacity: 1;border-color:rgb(var(--color-primary-500) / var(--tw-border-opacity))}.\!input{border-radius:var(--theme-rounded-base)!important}.input,.input-group{border-radius:var(--theme-rounded-base)}.textarea,.select{border-radius:var(--theme-rounded-container)}.select>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.select{padding:.5rem 2rem .5rem .5rem}.select[size]{background-image:none}.select optgroup>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.select optgroup{font-weight:700}.select optgroup option{margin-left:0;padding-left:0}.select optgroup option:first-of-type{margin-top:.75rem}.select optgroup option:last-child{margin-bottom:.75rem!important}.select option{cursor:pointer;padding:.5rem 1rem;background-color:rgb(var(--color-surface-200));border-radius:var(--theme-rounded-base)}.dark .select option{background-color:rgb(var(--color-surface-700))}.select option:checked{background:rgb(var(--color-primary-500)) linear-gradient(0deg,rgb(var(--color-primary-500)) 0% 100%);color:rgb(var(--on-primary))}.checkbox,.radio{height:1.25rem;width:1.25rem;cursor:pointer;border-radius:.25rem;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color) !important;--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color) !important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)!important;background-color:rgb(var(--color-surface-200));border-width:var(--theme-border-base);border-color:rgb(var(--color-surface-400))}.dark .checkbox,.dark .radio{background-color:rgb(var(--color-surface-700));border-color:rgb(var(--color-surface-500))}.checkbox:hover,.radio:hover{--tw-brightness: brightness(1.05);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.checkbox:focus,.radio:focus{--tw-brightness: brightness(1.05);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);--tw-border-opacity: 1;border-color:rgb(var(--color-primary-500) / var(--tw-border-opacity))}.checkbox:checked,.checkbox:indeterminate,.radio:checked{--tw-bg-opacity: 1;background-color:rgb(var(--color-primary-500) / var(--tw-bg-opacity))}.checkbox:checked:hover,.checkbox:indeterminate:hover,.radio:checked:hover{--tw-bg-opacity: 1;background-color:rgb(var(--color-primary-500) / var(--tw-bg-opacity))}.checkbox:checked:focus,.checkbox:indeterminate:focus,.radio:checked:focus{--tw-bg-opacity: 1;background-color:rgb(var(--color-primary-500) / var(--tw-bg-opacity));--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(0px + 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)}.radio{border-radius:var(--theme-rounded-base)}.\!input[type=file]{padding:.25rem!important}.input[type=file]{padding:.25rem}.\!input[type=color]{height:2.5rem!important;width:2.5rem!important;cursor:pointer!important;overflow:hidden!important;border-style:none!important;border-radius:var(--theme-rounded-base)!important;-webkit-appearance:none!important}.input[type=color]{height:2.5rem;width:2.5rem;cursor:pointer;overflow:hidden;border-style:none;border-radius:var(--theme-rounded-base);-webkit-appearance:none}.\!input[type=color]::-webkit-color-swatch-wrapper{padding:0!important}.input[type=color]::-webkit-color-swatch-wrapper{padding:0}.\!input[type=color]::-webkit-color-swatch{border-style:none!important}.input[type=color]::-webkit-color-swatch{border-style:none}.\!input[type=color]::-webkit-color-swatch:hover{--tw-brightness: brightness(1.1) !important;filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.input[type=color]::-webkit-color-swatch:hover{--tw-brightness: brightness(1.1);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.\!input[type=color]::-moz-color-swatch{border-style:none!important}.input[type=color]::-moz-color-swatch{border-style:none}.\!input:disabled{cursor:not-allowed!important;opacity:.5!important}.input:disabled,.textarea:disabled,.select:disabled,.input-group>input:disabled,.input-group>textarea:disabled,.input-group>select:disabled{cursor:not-allowed!important;opacity:.5!important}.\!input:disabled:hover{--tw-brightness: brightness(1) !important;filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.input:disabled:hover,.textarea:disabled:hover,.select:disabled:hover,.input-group>input:disabled:hover,.input-group>textarea:disabled:hover,.input-group>select:disabled:hover{--tw-brightness: brightness(1) !important;filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.\!input[readonly],.input[readonly],.textarea[readonly],.select[readonly]{cursor:not-allowed!important;border-color:transparent!important}.\!input[readonly]:hover,.input[readonly]:hover,.textarea[readonly]:hover,.select[readonly]:hover{--tw-brightness: brightness(1) !important;filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.dark .input-group select option{background-color:rgb(var(--color-surface-700))}.dark .input-group-divider input,.dark .input-group-divider select,.dark .input-group-divider div,.dark .input-group-divider a{border-color:rgb(var(--color-surface-500))}.dark .input-group-divider input:focus,.dark .input-group-divider select:focus,.dark .input-group-divider div:focus,.dark .input-group-divider a:focus{border-color:rgb(var(--color-surface-500))}.dark .input-group-shim{color:rgb(var(--color-surface-300))}:is(.dark .input-success){--tw-border-opacity: 1;border-color:rgb(var(--color-success-500) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(var(--color-success-200) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(var(--color-success-700) / var(--tw-text-opacity))}:is(.dark .input-warning){--tw-border-opacity: 1;border-color:rgb(var(--color-warning-500) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(var(--color-warning-200) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(var(--color-warning-700) / var(--tw-text-opacity))}.input-error{--tw-border-opacity: 1;border-color:rgb(var(--color-error-500) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(var(--color-error-200) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(var(--color-error-500) / var(--tw-text-opacity))}:is(.dark .input-error){--tw-border-opacity: 1;border-color:rgb(var(--color-error-500) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(var(--color-error-200) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(var(--color-error-500) / var(--tw-text-opacity))}.input-error::-moz-placeholder{--tw-text-opacity: 1;color:rgb(var(--color-error-500) / var(--tw-text-opacity))}.input-error::placeholder{--tw-text-opacity: 1;color:rgb(var(--color-error-500) / var(--tw-text-opacity))}:is(.dark .variant-form-material){background-color:rgb(var(--color-surface-500) / .2)}.list,.list-dl,.list-nav ul{list-style-type:none}.list>:not([hidden])~:not([hidden]),.list-dl>:not([hidden])~:not([hidden]),.list-nav ul>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.list li{display:flex;align-items:center;border-radius:var(--theme-rounded-base)}.list li>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.list-nav a,.list-nav button,.list-option{display:flex;align-items:center;padding:.5rem 1rem;outline:2px solid transparent;outline-offset:2px;cursor:pointer;border-radius:var(--theme-rounded-base)}.list-nav a>:not([hidden])~:not([hidden]),.list-nav button>:not([hidden])~:not([hidden]),.list-option>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.list-nav a:hover,.list-nav button:hover,.list-option:hover,.dark .list-nav a:hover,.dark .list-nav button:hover,.dark .list-option:hover{background-color:rgb(var(--color-primary-500) / .1)}.list-nav a:focus,.list-nav button:focus,.list-option:focus{background-color:rgb(var(--color-primary-400) / .2);--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color) !important;--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color) !important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)!important;color:rgb(var(--color-primary-700))}.dark .list-nav a:focus,.dark .list-nav button:focus,.dark .list-option:focus{color:rgb(var(--color-primary-200))}:is(.dark .list-nav a:focus),:is(.dark .list-nav button:focus),:is(.dark .list-option:focus){background-color:rgb(var(--color-primary-500) / .2)}.dark .logo-item{background-color:rgb(var(--color-surface-800))}:is(.dark .logo-item){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.placeholder{height:1.25rem;background-color:rgb(var(--color-surface-300));border-radius:var(--theme-rounded-base)}.dark .placeholder,.dark .placeholder-circle{background-color:rgb(var(--color-surface-600))}.table-container{width:100%;overflow-x:auto;border-radius:var(--theme-rounded-container)}.table{width:100%;table-layout:auto;overflow:hidden;background-color:rgb(var(--color-surface-100));border-radius:var(--theme-rounded-container);display:table}.dark .table{background-color:rgb(var(--color-surface-800))}.table-interactive tbody tr{cursor:pointer}.table-interactive tbody tr:hover:hover,.dark .table-interactive tbody tr:hover:hover{background-color:rgb(var(--color-primary-500) / .1)}.table-interactive tbody tr:hover:nth-child(2n):hover{background-color:rgb(var(--color-primary-500) / .1)}.dark .table-interactive tbody tr:hover:nth-child(2n):hover{background-color:rgb(var(--color-primary-500) / .1)}.table-sort-asc:after{opacity:.5;--tw-content: "↑" !important;content:var(--tw-content)!important}.table-sort-dsc:after{opacity:.5;--tw-content: "↓" !important;content:var(--tw-content)!important}.table thead{border-bottom-width:1px;border-color:rgb(var(--color-surface-500) / .2);background-color:rgb(var(--color-surface-200))}.dark .table thead{background-color:rgb(var(--color-surface-700))}.table thead tr{text-align:left;text-transform:capitalize}.table thead th{padding:1rem;font-weight:700}.table tbody tr{border-bottom-width:1px;border-color:rgb(var(--color-surface-500) / .2)}.table tbody tr:nth-child(2n){background-color:rgb(var(--color-surface-500) / .05)}.table tbody td{white-space:nowrap;padding:1rem .75rem;vertical-align:top;font-size:.875rem;line-height:1.25rem}.table tfoot{background-color:rgb(var(--color-surface-100))}.dark .table tfoot{background-color:rgb(var(--color-surface-800))}.table tfoot tr{text-align:left;text-transform:capitalize}.table tfoot th,.table tfoot td{padding:1rem}.w-modal{width:100%;max-width:640px}.modal *:focus:not([tabindex="-1"]):not(.input):not(.textarea):not(.select):not(.input-group){outline-style:auto;outline-color:-webkit-focus-ring-color}[data-popup] .\!arrow{position:absolute!important;height:.5rem!important;width:.5rem!important;--tw-rotate: 45deg !important;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))!important}[data-popup] .arrow{position:absolute;height:.5rem;width:.5rem;--tw-rotate: 45deg;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))}:is(.dark .variant-outline-primary){--tw-ring-opacity: 1;--tw-ring-color: rgb(var(--color-primary-500) / var(--tw-ring-opacity))}:is(.dark .variant-outline-secondary){--tw-ring-opacity: 1;--tw-ring-color: rgb(var(--color-secondary-500) / var(--tw-ring-opacity))}:is(.dark .variant-outline-tertiary){--tw-ring-opacity: 1;--tw-ring-color: rgb(var(--color-tertiary-500) / var(--tw-ring-opacity))}:is(.dark .variant-outline-success){--tw-ring-opacity: 1;--tw-ring-color: rgb(var(--color-success-500) / var(--tw-ring-opacity))}:is(.dark .variant-outline-warning){--tw-ring-opacity: 1;--tw-ring-color: rgb(var(--color-warning-500) / var(--tw-ring-opacity))}:is(.dark .variant-outline-error){--tw-ring-opacity: 1;--tw-ring-color: rgb(var(--color-error-500) / var(--tw-ring-opacity))}:is(.dark .variant-outline),:is(.dark .variant-outline-surface){--tw-ring-opacity: 1;--tw-ring-color: rgb(var(--color-surface-500) / var(--tw-ring-opacity))}.variant-filled{background-color:rgb(var(--color-surface-900));color:rgb(var(--color-surface-50))}.dark .variant-filled{background-color:rgb(var(--color-surface-50));color:rgb(var(--color-surface-900))}.variant-filled-primary{--tw-bg-opacity: 1;background-color:rgb(var(--color-primary-500) / var(--tw-bg-opacity));color:rgb(var(--on-primary))}:is(.dark .variant-filled-primary){--tw-bg-opacity: 1;background-color:rgb(var(--color-primary-500) / var(--tw-bg-opacity));color:rgb(var(--on-primary))}.variant-filled-secondary{--tw-bg-opacity: 1;background-color:rgb(var(--color-secondary-500) / var(--tw-bg-opacity));color:rgb(var(--on-secondary))}:is(.dark .variant-filled-secondary){--tw-bg-opacity: 1;background-color:rgb(var(--color-secondary-500) / var(--tw-bg-opacity));color:rgb(var(--on-secondary))}:is(.dark .variant-filled-tertiary){--tw-bg-opacity: 1;background-color:rgb(var(--color-tertiary-500) / var(--tw-bg-opacity));color:rgb(var(--on-tertiary))}:is(.dark .variant-filled-success){--tw-bg-opacity: 1;background-color:rgb(var(--color-success-500) / var(--tw-bg-opacity));color:rgb(var(--on-success))}:is(.dark .variant-filled-warning){--tw-bg-opacity: 1;background-color:rgb(var(--color-warning-500) / var(--tw-bg-opacity));color:rgb(var(--on-warning))}:is(.dark .variant-filled-error){--tw-bg-opacity: 1;background-color:rgb(var(--color-error-500) / var(--tw-bg-opacity));color:rgb(var(--on-error))}.variant-filled-surface{background-color:rgb(var(--color-surface-400));color:rgb(var(--on-surface))}.dark .variant-filled-surface{background-color:rgb(var(--color-surface-500))}:is(.dark .variant-filled-surface){color:rgb(var(--on-surface))}:is(.dark .variant-ringed){--tw-ring-opacity: 1;--tw-ring-color: rgb(var(--color-surface-500) / var(--tw-ring-opacity));background-color:transparent}:is(.dark .variant-ringed-primary){--tw-ring-opacity: 1;--tw-ring-color: rgb(var(--color-primary-500) / var(--tw-ring-opacity));background-color:transparent}:is(.dark .variant-ringed-secondary){--tw-ring-opacity: 1;--tw-ring-color: rgb(var(--color-secondary-500) / var(--tw-ring-opacity));background-color:transparent}:is(.dark .variant-ringed-tertiary){--tw-ring-opacity: 1;--tw-ring-color: rgb(var(--color-tertiary-500) / var(--tw-ring-opacity));background-color:transparent}:is(.dark .variant-ringed-success){--tw-ring-opacity: 1;--tw-ring-color: rgb(var(--color-success-500) / var(--tw-ring-opacity));background-color:transparent}:is(.dark .variant-ringed-warning){--tw-ring-opacity: 1;--tw-ring-color: rgb(var(--color-warning-500) / var(--tw-ring-opacity));background-color:transparent}:is(.dark .variant-ringed-error){--tw-ring-opacity: 1;--tw-ring-color: rgb(var(--color-error-500) / var(--tw-ring-opacity));background-color:transparent}:is(.dark .variant-ringed-surface){--tw-ring-opacity: 1;--tw-ring-color: rgb(var(--color-surface-500) / var(--tw-ring-opacity));background-color:transparent}:is(.dark .variant-ghost-primary){--tw-ring-opacity: 1;--tw-ring-color: rgb(var(--color-primary-500) / var(--tw-ring-opacity));background-color:rgb(var(--color-primary-500) / .2)}:is(.dark .variant-ghost-secondary){--tw-ring-opacity: 1;--tw-ring-color: rgb(var(--color-secondary-500) / var(--tw-ring-opacity));background-color:rgb(var(--color-secondary-500) / .2)}:is(.dark .variant-ghost-tertiary){--tw-ring-opacity: 1;--tw-ring-color: rgb(var(--color-tertiary-500) / var(--tw-ring-opacity));background-color:rgb(var(--color-tertiary-500) / .2)}:is(.dark .variant-ghost-success){--tw-ring-opacity: 1;--tw-ring-color: rgb(var(--color-success-500) / var(--tw-ring-opacity));background-color:rgb(var(--color-success-500) / .2)}:is(.dark .variant-ghost-warning){--tw-ring-opacity: 1;--tw-ring-color: rgb(var(--color-warning-500) / var(--tw-ring-opacity));background-color:rgb(var(--color-warning-500) / .2)}:is(.dark .variant-ghost-error){--tw-ring-opacity: 1;--tw-ring-color: rgb(var(--color-error-500) / var(--tw-ring-opacity));background-color:rgb(var(--color-error-500) / .2)}.variant-ghost,.variant-ghost-surface{--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);--tw-ring-inset: inset;--tw-ring-opacity: 1;--tw-ring-color: rgb(var(--color-surface-500) / var(--tw-ring-opacity));background-color:rgb(var(--color-surface-500) / .2)}:is(.dark .variant-ghost),:is(.dark .variant-ghost-surface){--tw-ring-opacity: 1;--tw-ring-color: rgb(var(--color-surface-500) / var(--tw-ring-opacity));background-color:rgb(var(--color-surface-500) / .2)}.dark .variant-soft-primary{color:rgb(var(--color-primary-200))}:is(.dark .variant-soft-primary){background-color:rgb(var(--color-primary-500) / .2)}.dark .variant-soft-secondary{color:rgb(var(--color-secondary-200))}:is(.dark .variant-soft-secondary){background-color:rgb(var(--color-secondary-500) / .2)}.dark .variant-soft-tertiary{color:rgb(var(--color-tertiary-200))}:is(.dark .variant-soft-tertiary){background-color:rgb(var(--color-tertiary-500) / .2)}.dark .variant-soft-success{color:rgb(var(--color-success-200))}:is(.dark .variant-soft-success){background-color:rgb(var(--color-success-500) / .2)}.dark .variant-soft-warning{color:rgb(var(--color-warning-200))}:is(.dark .variant-soft-warning){background-color:rgb(var(--color-warning-500) / .2)}.dark .variant-soft-error{color:rgb(var(--color-error-200))}:is(.dark .variant-soft-error){background-color:rgb(var(--color-error-500) / .2)}.variant-soft,.variant-soft-surface{background-color:rgb(var(--color-surface-400) / .2);--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color) !important;--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color) !important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)!important;color:rgb(var(--color-surface-700))}.dark .variant-soft,.dark .variant-soft-surface{color:rgb(var(--color-surface-200))}:is(.dark .variant-soft),:is(.dark .variant-soft-surface){background-color:rgb(var(--color-surface-500) / .2)}:is(.dark .variant-glass-primary){background-color:rgb(var(--color-primary-500) / .2)}:is(.dark .variant-glass-secondary){background-color:rgb(var(--color-secondary-500) / .2)}:is(.dark .variant-glass-tertiary){background-color:rgb(var(--color-tertiary-500) / .2)}:is(.dark .variant-glass-success){background-color:rgb(var(--color-success-500) / .2)}:is(.dark .variant-glass-warning){background-color:rgb(var(--color-warning-500) / .2)}:is(.dark .variant-glass-error){background-color:rgb(var(--color-error-500) / .2)}:is(.dark .variant-glass-surface){background-color:rgb(var(--color-surface-500) / .2)}:is(.dark .variant-glass){background-color:rgb(var(--color-surface-900) / .3)}@media (min-width: 768px){.h2{font-size:2.25rem;line-height:2.5rem}.h3{font-size:1.5rem;line-height:2rem}.h4{font-size:1.25rem;line-height:1.75rem}.h5{font-size:1.125rem;line-height:1.75rem}.h6{font-size:1rem;line-height:1.5rem}.\!legend{font-size:1.5rem!important;line-height:2rem!important}.legend{font-size:1.5rem;line-height:2rem}.table tbody td{white-space:normal}}@media (min-width: 1024px){.alert{flex-direction:row;align-items:center}.alert>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse));--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.-left-full{left:-100%}.bottom-0{bottom:0}.left-0{left:0}.right-0{right:0}.top-0{top:0}.isolate{isolation:isolate}.z-10{z-index:10}.z-40{z-index:40}.z-\[1\]{z-index:1}.z-\[888\]{z-index:888}.z-\[999\]{z-index:999}.-mt-\[15px\]{margin-top:-15px}.mb-4{margin-bottom:1rem}.ml-12{margin-left:3rem}.ml-16{margin-left:4rem}.ml-3{margin-left:.75rem}.ml-4{margin-left:1rem}.ml-8{margin-left:2rem}.mr-2{margin-right:.5rem}.mt-\[15px\]{margin-top:15px}.box-border{box-sizing:border-box}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.contents{display:contents}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.h-0{height:0px}.h-10{height:2.5rem}.h-2{height:.5rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-\[50\%\]{height:50%}.h-auto{height:auto}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.max-h-\[200px\]{max-height:200px}.min-h-full{min-height:100%}.w-0{width:0px}.w-12{width:3rem}.w-16{width:4rem}.w-20{width:5rem}.w-24{width:6rem}.w-3{width:.75rem}.w-36{width:9rem}.w-5{width:1.25rem}.w-\[50\%\]{width:50%}.w-\[70\%\]{width:70%}.w-\[90\%\]{width:90%}.w-auto{width:auto}.w-full{width:100%}.min-w-\[150px\]{min-width:150px}.max-w-\[640px\]{max-width:640px}.flex-1{flex:1 1 0%}.flex-auto{flex:1 1 auto}.flex-none{flex:none}.origin-\[50\%_50\%\]{transform-origin:50% 50%}.translate-x-\[100\%\],.translate-x-full{--tw-translate-x: 100%;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))}.-rotate-90{--tw-rotate: -90deg;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))}.rotate-180{--tw-rotate: 180deg;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))}.scale-\[0\.8\]{--tw-scale-x: .8;--tw-scale-y: .8;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))}.scale-\[105\%\]{--tw-scale-x: 105%;--tw-scale-y: 105%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.\!cursor-not-allowed{cursor:not-allowed!important}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.resize{resize:both}.list-none{list-style-type:none}.grid-cols-\[auto_1fr_auto\]{grid-template-columns:auto 1fr auto}.grid-rows-\[auto_1fr_auto\]{grid-template-rows:auto 1fr auto}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.items-stretch{align-items:stretch}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0{gap:0px}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-y-2{row-gap:.5rem}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-hidden{overflow-y:hidden}.whitespace-pre-wrap{white-space:pre-wrap}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.border{border-width:1px}.border-0{border-width:0px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.bg-neutral-900\/90{background-color:#171717e6}.bg-surface-400{--tw-bg-opacity: 1;background-color:rgb(var(--color-surface-400) / var(--tw-bg-opacity))}.bg-surface-50{--tw-bg-opacity: 1;background-color:rgb(var(--color-surface-50) / var(--tw-bg-opacity))}.bg-surface-900{--tw-bg-opacity: 1;background-color:rgb(var(--color-surface-900) / var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-white\/75{background-color:#ffffffbf}.fill-current{fill:currentColor}.fill-surface-50{fill:rgb(var(--color-surface-50) / 1)}.fill-surface-900{fill:rgb(var(--color-surface-900) / 1)}.fill-transparent{fill:transparent}.stroke-surface-500\/30{stroke:rgb(var(--color-surface-500) / .3)}.stroke-surface-900{stroke:rgb(var(--color-surface-900) / 1)}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0{padding:0}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-4{padding:1rem}.\!px-3{padding-left:.75rem!important;padding-right:.75rem!important}.\!py-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.\!py-1\.5{padding-top:.375rem!important;padding-bottom:.375rem!important}.px-4{padding-left:1rem;padding-right:1rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pl-4{padding-left:1rem}.pt-1{padding-top:.25rem}.text-center{text-align:center}.text-start{text-align:start}.\!text-sm{font-size:.875rem!important;line-height:1.25rem!important}.text-2xl{font-size:1.5rem;line-height:2rem}.text-base{font-size:1rem;line-height:1.5rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.\!text-white{--tw-text-opacity: 1 !important;color:rgb(255 255 255 / var(--tw-text-opacity))!important}.text-primary-500{--tw-text-opacity: 1;color:rgb(var(--color-primary-500) / var(--tw-text-opacity))}.text-surface-50{--tw-text-opacity: 1;color:rgb(var(--color-surface-50) / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-white\/50{color:#ffffff80}.accent-surface-900{accent-color:rgb(var(--color-surface-900) / 1)}.opacity-0{opacity:0}.opacity-10{opacity:.1}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-75{opacity:.75}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.-outline-offset-\[3px\]{outline-offset:-3px}.\!ring-0{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color) !important;--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color) !important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)!important}.ring{--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(3px + 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)}.ring-\[1px\]{--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)}.ring-surface-500\/30{--tw-ring-color: rgb(var(--color-surface-500) / .3)}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow{--tw-drop-shadow: drop-shadow(0 1px 2px rgb(0 0 0 / .1)) drop-shadow(0 1px 1px rgb(0 0 0 / .06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.invert{--tw-invert: invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\[stroke-dashoffset\]{transition-property:stroke-dashoffset;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\[width\]{transition-property:width;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-100{transition-duration:.1s}.duration-300{transition-duration:.3s}.duration-\[200ms\]{transition-duration:.2s}.dark .bg-primary-backdrop-token{background-color:rgb(var(--color-primary-900) / .7)}.bg-primary-hover-token:hover,.dark .bg-primary-hover-token:hover{background-color:rgb(var(--color-primary-500) / .1)}.bg-primary-active-token{background-color:rgb(var(--color-primary-500))!important;color:rgb(var(--on-primary));fill:rgb(var(--on-primary))}.dark .bg-primary-50-900-token{background-color:rgb(var(--color-primary-900))}.dark .bg-primary-100-800-token{background-color:rgb(var(--color-primary-800))}.dark .bg-primary-200-700-token{background-color:rgb(var(--color-primary-700))}.dark .bg-primary-300-600-token{background-color:rgb(var(--color-primary-600))}.dark .bg-primary-400-500-token{background-color:rgb(var(--color-primary-500))}.dark .bg-primary-900-50-token{background-color:rgb(var(--color-primary-50))}.dark .bg-primary-800-100-token{background-color:rgb(var(--color-primary-100))}.dark .bg-primary-700-200-token{background-color:rgb(var(--color-primary-200))}.dark .bg-primary-600-300-token{background-color:rgb(var(--color-primary-300))}.dark .bg-primary-500-400-token{background-color:rgb(var(--color-primary-400))}.dark .bg-secondary-backdrop-token{background-color:rgb(var(--color-secondary-900) / .7)}.dark .bg-secondary-hover-token:hover{background-color:rgb(var(--color-secondary-500) / .1)}.dark .bg-secondary-50-900-token{background-color:rgb(var(--color-secondary-900))}.dark .bg-secondary-100-800-token{background-color:rgb(var(--color-secondary-800))}.dark .bg-secondary-200-700-token{background-color:rgb(var(--color-secondary-700))}.dark .bg-secondary-300-600-token{background-color:rgb(var(--color-secondary-600))}.dark .bg-secondary-400-500-token{background-color:rgb(var(--color-secondary-500))}.dark .bg-secondary-900-50-token{background-color:rgb(var(--color-secondary-50))}.dark .bg-secondary-800-100-token{background-color:rgb(var(--color-secondary-100))}.dark .bg-secondary-700-200-token{background-color:rgb(var(--color-secondary-200))}.dark .bg-secondary-600-300-token{background-color:rgb(var(--color-secondary-300))}.dark .bg-secondary-500-400-token{background-color:rgb(var(--color-secondary-400))}.dark .bg-tertiary-backdrop-token{background-color:rgb(var(--color-tertiary-900) / .7)}.dark .bg-tertiary-hover-token:hover{background-color:rgb(var(--color-tertiary-500) / .1)}.dark .bg-tertiary-50-900-token{background-color:rgb(var(--color-tertiary-900))}.dark .bg-tertiary-100-800-token{background-color:rgb(var(--color-tertiary-800))}.dark .bg-tertiary-200-700-token{background-color:rgb(var(--color-tertiary-700))}.dark .bg-tertiary-300-600-token{background-color:rgb(var(--color-tertiary-600))}.dark .bg-tertiary-400-500-token{background-color:rgb(var(--color-tertiary-500))}.dark .bg-tertiary-900-50-token{background-color:rgb(var(--color-tertiary-50))}.dark .bg-tertiary-800-100-token{background-color:rgb(var(--color-tertiary-100))}.dark .bg-tertiary-700-200-token{background-color:rgb(var(--color-tertiary-200))}.dark .bg-tertiary-600-300-token{background-color:rgb(var(--color-tertiary-300))}.dark .bg-tertiary-500-400-token{background-color:rgb(var(--color-tertiary-400))}.dark .bg-success-backdrop-token{background-color:rgb(var(--color-success-900) / .7)}.dark .bg-success-hover-token:hover{background-color:rgb(var(--color-success-500) / .1)}.dark .bg-success-50-900-token{background-color:rgb(var(--color-success-900))}.dark .bg-success-100-800-token{background-color:rgb(var(--color-success-800))}.dark .bg-success-200-700-token{background-color:rgb(var(--color-success-700))}.dark .bg-success-300-600-token{background-color:rgb(var(--color-success-600))}.dark .bg-success-400-500-token{background-color:rgb(var(--color-success-500))}.dark .bg-success-900-50-token{background-color:rgb(var(--color-success-50))}.dark .bg-success-800-100-token{background-color:rgb(var(--color-success-100))}.dark .bg-success-700-200-token{background-color:rgb(var(--color-success-200))}.dark .bg-success-600-300-token{background-color:rgb(var(--color-success-300))}.dark .bg-success-500-400-token{background-color:rgb(var(--color-success-400))}.dark .bg-warning-backdrop-token{background-color:rgb(var(--color-warning-900) / .7)}.dark .bg-warning-hover-token:hover{background-color:rgb(var(--color-warning-500) / .1)}.dark .bg-warning-50-900-token{background-color:rgb(var(--color-warning-900))}.dark .bg-warning-100-800-token{background-color:rgb(var(--color-warning-800))}.dark .bg-warning-200-700-token{background-color:rgb(var(--color-warning-700))}.dark .bg-warning-300-600-token{background-color:rgb(var(--color-warning-600))}.dark .bg-warning-400-500-token{background-color:rgb(var(--color-warning-500))}.dark .bg-warning-900-50-token{background-color:rgb(var(--color-warning-50))}.dark .bg-warning-800-100-token{background-color:rgb(var(--color-warning-100))}.dark .bg-warning-700-200-token{background-color:rgb(var(--color-warning-200))}.dark .bg-warning-600-300-token{background-color:rgb(var(--color-warning-300))}.dark .bg-warning-500-400-token{background-color:rgb(var(--color-warning-400))}.dark .bg-error-backdrop-token{background-color:rgb(var(--color-error-900) / .7)}.dark .bg-error-hover-token:hover{background-color:rgb(var(--color-error-500) / .1)}.dark .bg-error-50-900-token{background-color:rgb(var(--color-error-900))}.dark .bg-error-100-800-token{background-color:rgb(var(--color-error-800))}.dark .bg-error-200-700-token{background-color:rgb(var(--color-error-700))}.dark .bg-error-300-600-token{background-color:rgb(var(--color-error-600))}.dark .bg-error-400-500-token{background-color:rgb(var(--color-error-500))}.dark .bg-error-900-50-token{background-color:rgb(var(--color-error-50))}.dark .bg-error-800-100-token{background-color:rgb(var(--color-error-100))}.dark .bg-error-700-200-token{background-color:rgb(var(--color-error-200))}.dark .bg-error-600-300-token{background-color:rgb(var(--color-error-300))}.dark .bg-error-500-400-token{background-color:rgb(var(--color-error-400))}.bg-surface-backdrop-token{background-color:rgb(var(--color-surface-400) / .7)}.dark .bg-surface-backdrop-token{background-color:rgb(var(--color-surface-900) / .7)}.dark .bg-surface-hover-token:hover{background-color:rgb(var(--color-surface-500) / .1)}.dark .bg-surface-50-900-token{background-color:rgb(var(--color-surface-900))}.bg-surface-100-800-token{background-color:rgb(var(--color-surface-100))}.dark .bg-surface-100-800-token{background-color:rgb(var(--color-surface-800))}.bg-surface-200-700-token{background-color:rgb(var(--color-surface-200))}.dark .bg-surface-200-700-token{background-color:rgb(var(--color-surface-700))}.dark .bg-surface-300-600-token{background-color:rgb(var(--color-surface-600))}.bg-surface-400-500-token{background-color:rgb(var(--color-surface-400))}.dark .bg-surface-400-500-token{background-color:rgb(var(--color-surface-500))}.bg-surface-900-50-token{background-color:rgb(var(--color-surface-900))}.dark .bg-surface-900-50-token{background-color:rgb(var(--color-surface-50))}.dark .bg-surface-800-100-token{background-color:rgb(var(--color-surface-100))}.dark .bg-surface-700-200-token{background-color:rgb(var(--color-surface-200))}.dark .bg-surface-600-300-token{background-color:rgb(var(--color-surface-300))}.dark .bg-surface-500-400-token{background-color:rgb(var(--color-surface-400))}.border-token{border-width:var(--theme-border-base)}.dark .border-primary-50-900-token,.dark .divide-primary-50-900-token{border-color:rgb(var(--color-primary-900))}.dark .border-primary-100-800-token,.dark .divide-primary-100-800-token{border-color:rgb(var(--color-primary-800))}.dark .border-primary-200-700-token,.dark .divide-primary-200-700-token{border-color:rgb(var(--color-primary-700))}.dark .border-primary-300-600-token,.dark .divide-primary-300-600-token{border-color:rgb(var(--color-primary-600))}.dark .border-primary-400-500-token,.dark .divide-primary-400-500-token{border-color:rgb(var(--color-primary-500))}.dark .border-primary-900-50-token,.dark .divide-primary-900-50-token{border-color:rgb(var(--color-primary-50))}.dark .border-primary-800-100-token,.dark .divide-primary-800-100-token{border-color:rgb(var(--color-primary-100))}.dark .border-primary-700-200-token,.dark .divide-primary-700-200-token{border-color:rgb(var(--color-primary-200))}.dark .border-primary-600-300-token,.dark .divide-primary-600-300-token{border-color:rgb(var(--color-primary-300))}.dark .border-primary-500-400-token,.dark .divide-primary-500-400-token{border-color:rgb(var(--color-primary-400))}.dark .border-secondary-50-900-token,.dark .divide-secondary-50-900-token{border-color:rgb(var(--color-secondary-900))}.dark .border-secondary-100-800-token,.dark .divide-secondary-100-800-token{border-color:rgb(var(--color-secondary-800))}.dark .border-secondary-200-700-token,.dark .divide-secondary-200-700-token{border-color:rgb(var(--color-secondary-700))}.dark .border-secondary-300-600-token,.dark .divide-secondary-300-600-token{border-color:rgb(var(--color-secondary-600))}.dark .border-secondary-400-500-token,.dark .divide-secondary-400-500-token{border-color:rgb(var(--color-secondary-500))}.dark .border-secondary-900-50-token,.dark .divide-secondary-900-50-token{border-color:rgb(var(--color-secondary-50))}.dark .border-secondary-800-100-token,.dark .divide-secondary-800-100-token{border-color:rgb(var(--color-secondary-100))}.dark .border-secondary-700-200-token,.dark .divide-secondary-700-200-token{border-color:rgb(var(--color-secondary-200))}.dark .border-secondary-600-300-token,.dark .divide-secondary-600-300-token{border-color:rgb(var(--color-secondary-300))}.dark .border-secondary-500-400-token,.dark .divide-secondary-500-400-token{border-color:rgb(var(--color-secondary-400))}.dark .border-tertiary-50-900-token,.dark .divide-tertiary-50-900-token{border-color:rgb(var(--color-tertiary-900))}.dark .border-tertiary-100-800-token,.dark .divide-tertiary-100-800-token{border-color:rgb(var(--color-tertiary-800))}.dark .border-tertiary-200-700-token,.dark .divide-tertiary-200-700-token{border-color:rgb(var(--color-tertiary-700))}.dark .border-tertiary-300-600-token,.dark .divide-tertiary-300-600-token{border-color:rgb(var(--color-tertiary-600))}.dark .border-tertiary-400-500-token,.dark .divide-tertiary-400-500-token{border-color:rgb(var(--color-tertiary-500))}.dark .border-tertiary-900-50-token,.dark .divide-tertiary-900-50-token{border-color:rgb(var(--color-tertiary-50))}.dark .border-tertiary-800-100-token,.dark .divide-tertiary-800-100-token{border-color:rgb(var(--color-tertiary-100))}.dark .border-tertiary-700-200-token,.dark .divide-tertiary-700-200-token{border-color:rgb(var(--color-tertiary-200))}.dark .border-tertiary-600-300-token,.dark .divide-tertiary-600-300-token{border-color:rgb(var(--color-tertiary-300))}.dark .border-tertiary-500-400-token,.dark .divide-tertiary-500-400-token{border-color:rgb(var(--color-tertiary-400))}.dark .border-success-50-900-token,.dark .divide-success-50-900-token{border-color:rgb(var(--color-success-900))}.dark .border-success-100-800-token,.dark .divide-success-100-800-token{border-color:rgb(var(--color-success-800))}.dark .border-success-200-700-token,.dark .divide-success-200-700-token{border-color:rgb(var(--color-success-700))}.dark .border-success-300-600-token,.dark .divide-success-300-600-token{border-color:rgb(var(--color-success-600))}.dark .border-success-400-500-token,.dark .divide-success-400-500-token{border-color:rgb(var(--color-success-500))}.dark .border-success-900-50-token,.dark .divide-success-900-50-token{border-color:rgb(var(--color-success-50))}.dark .border-success-800-100-token,.dark .divide-success-800-100-token{border-color:rgb(var(--color-success-100))}.dark .border-success-700-200-token,.dark .divide-success-700-200-token{border-color:rgb(var(--color-success-200))}.dark .border-success-600-300-token,.dark .divide-success-600-300-token{border-color:rgb(var(--color-success-300))}.dark .border-success-500-400-token,.dark .divide-success-500-400-token{border-color:rgb(var(--color-success-400))}.dark .border-warning-50-900-token,.dark .divide-warning-50-900-token{border-color:rgb(var(--color-warning-900))}.dark .border-warning-100-800-token,.dark .divide-warning-100-800-token{border-color:rgb(var(--color-warning-800))}.dark .border-warning-200-700-token,.dark .divide-warning-200-700-token{border-color:rgb(var(--color-warning-700))}.dark .border-warning-300-600-token,.dark .divide-warning-300-600-token{border-color:rgb(var(--color-warning-600))}.dark .border-warning-400-500-token,.dark .divide-warning-400-500-token{border-color:rgb(var(--color-warning-500))}.dark .border-warning-900-50-token,.dark .divide-warning-900-50-token{border-color:rgb(var(--color-warning-50))}.dark .border-warning-800-100-token,.dark .divide-warning-800-100-token{border-color:rgb(var(--color-warning-100))}.dark .border-warning-700-200-token,.dark .divide-warning-700-200-token{border-color:rgb(var(--color-warning-200))}.dark .border-warning-600-300-token,.dark .divide-warning-600-300-token{border-color:rgb(var(--color-warning-300))}.dark .border-warning-500-400-token,.dark .divide-warning-500-400-token{border-color:rgb(var(--color-warning-400))}.dark .border-error-50-900-token,.dark .divide-error-50-900-token{border-color:rgb(var(--color-error-900))}.dark .border-error-100-800-token,.dark .divide-error-100-800-token{border-color:rgb(var(--color-error-800))}.dark .border-error-200-700-token,.dark .divide-error-200-700-token{border-color:rgb(var(--color-error-700))}.dark .border-error-300-600-token,.dark .divide-error-300-600-token{border-color:rgb(var(--color-error-600))}.dark .border-error-400-500-token,.dark .divide-error-400-500-token{border-color:rgb(var(--color-error-500))}.dark .border-error-900-50-token,.dark .divide-error-900-50-token{border-color:rgb(var(--color-error-50))}.dark .border-error-800-100-token,.dark .divide-error-800-100-token{border-color:rgb(var(--color-error-100))}.dark .border-error-700-200-token,.dark .divide-error-700-200-token{border-color:rgb(var(--color-error-200))}.dark .border-error-600-300-token,.dark .divide-error-600-300-token{border-color:rgb(var(--color-error-300))}.dark .border-error-500-400-token,.dark .divide-error-500-400-token{border-color:rgb(var(--color-error-400))}.dark .border-surface-50-900-token,.dark .divide-surface-50-900-token{border-color:rgb(var(--color-surface-900))}.dark .border-surface-100-800-token,.dark .divide-surface-100-800-token{border-color:rgb(var(--color-surface-800))}.dark .border-surface-200-700-token,.dark .divide-surface-200-700-token{border-color:rgb(var(--color-surface-700))}.dark .border-surface-300-600-token,.dark .divide-surface-300-600-token{border-color:rgb(var(--color-surface-600))}.border-surface-400-500-token{border-color:rgb(var(--color-surface-400))}.dark .border-surface-400-500-token,.dark .divide-surface-400-500-token{border-color:rgb(var(--color-surface-500))}.border-surface-900-50-token{border-color:rgb(var(--color-surface-900))}.dark .border-surface-900-50-token,.dark .divide-surface-900-50-token{border-color:rgb(var(--color-surface-50))}.dark .border-surface-800-100-token,.dark .divide-surface-800-100-token{border-color:rgb(var(--color-surface-100))}.dark .border-surface-700-200-token,.dark .divide-surface-700-200-token{border-color:rgb(var(--color-surface-200))}.dark .border-surface-600-300-token,.dark .divide-surface-600-300-token{border-color:rgb(var(--color-surface-300))}.dark .border-surface-500-400-token,.dark .divide-surface-500-400-token{border-color:rgb(var(--color-surface-400))}.rounded-token{border-radius:var(--theme-rounded-base)}.rounded-container-token{border-radius:var(--theme-rounded-container)}.rounded-tl-container-token{border-top-left-radius:var(--theme-rounded-container)}.rounded-tr-container-token{border-top-right-radius:var(--theme-rounded-container)}.rounded-bl-container-token{border-bottom-left-radius:var(--theme-rounded-container)}.rounded-br-container-token{border-bottom-right-radius:var(--theme-rounded-container)}.fill-token{fill:rgba(var(--theme-font-color-base))}.dark .fill-token{fill:rgba(var(--theme-font-color-dark))}.text-token{color:rgba(var(--theme-font-color-base))}.dark .text-token{color:rgba(var(--theme-font-color-dark))}.dark .text-primary-50-900-token{color:rgb(var(--color-primary-900))}.dark .decoration-primary-50-900-token{text-decoration-color:rgb(var(--color-primary-900))}.dark .text-primary-100-800-token{color:rgb(var(--color-primary-800))}.dark .decoration-primary-100-800-token{text-decoration-color:rgb(var(--color-primary-800))}.dark .text-primary-200-700-token{color:rgb(var(--color-primary-700))}.dark .decoration-primary-200-700-token{text-decoration-color:rgb(var(--color-primary-700))}.dark .text-primary-300-600-token{color:rgb(var(--color-primary-600))}.dark .decoration-primary-300-600-token{text-decoration-color:rgb(var(--color-primary-600))}.dark .text-primary-400-500-token{color:rgb(var(--color-primary-500))}.dark .decoration-primary-400-500-token{text-decoration-color:rgb(var(--color-primary-500))}.dark .text-primary-900-50-token{color:rgb(var(--color-primary-50))}.dark .decoration-primary-900-50-token{text-decoration-color:rgb(var(--color-primary-50))}.dark .text-primary-800-100-token{color:rgb(var(--color-primary-100))}.dark .decoration-primary-800-100-token{text-decoration-color:rgb(var(--color-primary-100))}.dark .text-primary-700-200-token{color:rgb(var(--color-primary-200))}.dark .decoration-primary-700-200-token{text-decoration-color:rgb(var(--color-primary-200))}.dark .text-primary-600-300-token{color:rgb(var(--color-primary-300))}.dark .decoration-primary-600-300-token{text-decoration-color:rgb(var(--color-primary-300))}.dark .text-primary-500-400-token{color:rgb(var(--color-primary-400))}.dark .decoration-primary-500-400-token{text-decoration-color:rgb(var(--color-primary-400))}.dark .text-secondary-50-900-token{color:rgb(var(--color-secondary-900))}.dark .decoration-secondary-50-900-token{text-decoration-color:rgb(var(--color-secondary-900))}.dark .text-secondary-100-800-token{color:rgb(var(--color-secondary-800))}.dark .decoration-secondary-100-800-token{text-decoration-color:rgb(var(--color-secondary-800))}.dark .text-secondary-200-700-token{color:rgb(var(--color-secondary-700))}.dark .decoration-secondary-200-700-token{text-decoration-color:rgb(var(--color-secondary-700))}.dark .text-secondary-300-600-token{color:rgb(var(--color-secondary-600))}.dark .decoration-secondary-300-600-token{text-decoration-color:rgb(var(--color-secondary-600))}.dark .text-secondary-400-500-token{color:rgb(var(--color-secondary-500))}.dark .decoration-secondary-400-500-token{text-decoration-color:rgb(var(--color-secondary-500))}.dark .text-secondary-900-50-token{color:rgb(var(--color-secondary-50))}.dark .decoration-secondary-900-50-token{text-decoration-color:rgb(var(--color-secondary-50))}.dark .text-secondary-800-100-token{color:rgb(var(--color-secondary-100))}.dark .decoration-secondary-800-100-token{text-decoration-color:rgb(var(--color-secondary-100))}.dark .text-secondary-700-200-token{color:rgb(var(--color-secondary-200))}.dark .decoration-secondary-700-200-token{text-decoration-color:rgb(var(--color-secondary-200))}.dark .text-secondary-600-300-token{color:rgb(var(--color-secondary-300))}.dark .decoration-secondary-600-300-token{text-decoration-color:rgb(var(--color-secondary-300))}.dark .text-secondary-500-400-token{color:rgb(var(--color-secondary-400))}.dark .decoration-secondary-500-400-token{text-decoration-color:rgb(var(--color-secondary-400))}.dark .text-tertiary-50-900-token{color:rgb(var(--color-tertiary-900))}.dark .decoration-tertiary-50-900-token{text-decoration-color:rgb(var(--color-tertiary-900))}.dark .text-tertiary-100-800-token{color:rgb(var(--color-tertiary-800))}.dark .decoration-tertiary-100-800-token{text-decoration-color:rgb(var(--color-tertiary-800))}.dark .text-tertiary-200-700-token{color:rgb(var(--color-tertiary-700))}.dark .decoration-tertiary-200-700-token{text-decoration-color:rgb(var(--color-tertiary-700))}.dark .text-tertiary-300-600-token{color:rgb(var(--color-tertiary-600))}.dark .decoration-tertiary-300-600-token{text-decoration-color:rgb(var(--color-tertiary-600))}.dark .text-tertiary-400-500-token{color:rgb(var(--color-tertiary-500))}.dark .decoration-tertiary-400-500-token{text-decoration-color:rgb(var(--color-tertiary-500))}.dark .text-tertiary-900-50-token{color:rgb(var(--color-tertiary-50))}.dark .decoration-tertiary-900-50-token{text-decoration-color:rgb(var(--color-tertiary-50))}.dark .text-tertiary-800-100-token{color:rgb(var(--color-tertiary-100))}.dark .decoration-tertiary-800-100-token{text-decoration-color:rgb(var(--color-tertiary-100))}.dark .text-tertiary-700-200-token{color:rgb(var(--color-tertiary-200))}.dark .decoration-tertiary-700-200-token{text-decoration-color:rgb(var(--color-tertiary-200))}.dark .text-tertiary-600-300-token{color:rgb(var(--color-tertiary-300))}.dark .decoration-tertiary-600-300-token{text-decoration-color:rgb(var(--color-tertiary-300))}.dark .text-tertiary-500-400-token{color:rgb(var(--color-tertiary-400))}.dark .decoration-tertiary-500-400-token{text-decoration-color:rgb(var(--color-tertiary-400))}.dark .text-success-50-900-token{color:rgb(var(--color-success-900))}.dark .decoration-success-50-900-token{text-decoration-color:rgb(var(--color-success-900))}.dark .text-success-100-800-token{color:rgb(var(--color-success-800))}.dark .decoration-success-100-800-token{text-decoration-color:rgb(var(--color-success-800))}.dark .text-success-200-700-token{color:rgb(var(--color-success-700))}.dark .decoration-success-200-700-token{text-decoration-color:rgb(var(--color-success-700))}.dark .text-success-300-600-token{color:rgb(var(--color-success-600))}.dark .decoration-success-300-600-token{text-decoration-color:rgb(var(--color-success-600))}.dark .text-success-400-500-token{color:rgb(var(--color-success-500))}.dark .decoration-success-400-500-token{text-decoration-color:rgb(var(--color-success-500))}.dark .text-success-900-50-token{color:rgb(var(--color-success-50))}.dark .decoration-success-900-50-token{text-decoration-color:rgb(var(--color-success-50))}.dark .text-success-800-100-token{color:rgb(var(--color-success-100))}.dark .decoration-success-800-100-token{text-decoration-color:rgb(var(--color-success-100))}.dark .text-success-700-200-token{color:rgb(var(--color-success-200))}.dark .decoration-success-700-200-token{text-decoration-color:rgb(var(--color-success-200))}.dark .text-success-600-300-token{color:rgb(var(--color-success-300))}.dark .decoration-success-600-300-token{text-decoration-color:rgb(var(--color-success-300))}.dark .text-success-500-400-token{color:rgb(var(--color-success-400))}.dark .decoration-success-500-400-token{text-decoration-color:rgb(var(--color-success-400))}.dark .text-warning-50-900-token{color:rgb(var(--color-warning-900))}.dark .decoration-warning-50-900-token{text-decoration-color:rgb(var(--color-warning-900))}.dark .text-warning-100-800-token{color:rgb(var(--color-warning-800))}.dark .decoration-warning-100-800-token{text-decoration-color:rgb(var(--color-warning-800))}.dark .text-warning-200-700-token{color:rgb(var(--color-warning-700))}.dark .decoration-warning-200-700-token{text-decoration-color:rgb(var(--color-warning-700))}.dark .text-warning-300-600-token{color:rgb(var(--color-warning-600))}.dark .decoration-warning-300-600-token{text-decoration-color:rgb(var(--color-warning-600))}.dark .text-warning-400-500-token{color:rgb(var(--color-warning-500))}.dark .decoration-warning-400-500-token{text-decoration-color:rgb(var(--color-warning-500))}.dark .text-warning-900-50-token{color:rgb(var(--color-warning-50))}.dark .decoration-warning-900-50-token{text-decoration-color:rgb(var(--color-warning-50))}.dark .text-warning-800-100-token{color:rgb(var(--color-warning-100))}.dark .decoration-warning-800-100-token{text-decoration-color:rgb(var(--color-warning-100))}.dark .text-warning-700-200-token{color:rgb(var(--color-warning-200))}.dark .decoration-warning-700-200-token{text-decoration-color:rgb(var(--color-warning-200))}.dark .text-warning-600-300-token{color:rgb(var(--color-warning-300))}.dark .decoration-warning-600-300-token{text-decoration-color:rgb(var(--color-warning-300))}.dark .text-warning-500-400-token{color:rgb(var(--color-warning-400))}.dark .decoration-warning-500-400-token{text-decoration-color:rgb(var(--color-warning-400))}.dark .text-error-50-900-token{color:rgb(var(--color-error-900))}.dark .decoration-error-50-900-token{text-decoration-color:rgb(var(--color-error-900))}.dark .text-error-100-800-token{color:rgb(var(--color-error-800))}.dark .decoration-error-100-800-token{text-decoration-color:rgb(var(--color-error-800))}.dark .text-error-200-700-token{color:rgb(var(--color-error-700))}.dark .decoration-error-200-700-token{text-decoration-color:rgb(var(--color-error-700))}.dark .text-error-300-600-token{color:rgb(var(--color-error-600))}.dark .decoration-error-300-600-token{text-decoration-color:rgb(var(--color-error-600))}.dark .text-error-400-500-token{color:rgb(var(--color-error-500))}.dark .decoration-error-400-500-token{text-decoration-color:rgb(var(--color-error-500))}.dark .text-error-900-50-token{color:rgb(var(--color-error-50))}.dark .decoration-error-900-50-token{text-decoration-color:rgb(var(--color-error-50))}.dark .text-error-800-100-token{color:rgb(var(--color-error-100))}.dark .decoration-error-800-100-token{text-decoration-color:rgb(var(--color-error-100))}.dark .text-error-700-200-token{color:rgb(var(--color-error-200))}.dark .decoration-error-700-200-token{text-decoration-color:rgb(var(--color-error-200))}.dark .text-error-600-300-token{color:rgb(var(--color-error-300))}.dark .decoration-error-600-300-token{text-decoration-color:rgb(var(--color-error-300))}.dark .text-error-500-400-token{color:rgb(var(--color-error-400))}.dark .decoration-error-500-400-token{text-decoration-color:rgb(var(--color-error-400))}.dark .text-surface-50-900-token{color:rgb(var(--color-surface-900))}.dark .decoration-surface-50-900-token{text-decoration-color:rgb(var(--color-surface-900))}.dark .text-surface-100-800-token{color:rgb(var(--color-surface-800))}.dark .decoration-surface-100-800-token{text-decoration-color:rgb(var(--color-surface-800))}.dark .text-surface-200-700-token{color:rgb(var(--color-surface-700))}.dark .decoration-surface-200-700-token{text-decoration-color:rgb(var(--color-surface-700))}.dark .text-surface-300-600-token{color:rgb(var(--color-surface-600))}.dark .decoration-surface-300-600-token{text-decoration-color:rgb(var(--color-surface-600))}.dark .text-surface-400-500-token{color:rgb(var(--color-surface-500))}.dark .decoration-surface-400-500-token{text-decoration-color:rgb(var(--color-surface-500))}.dark .text-surface-900-50-token{color:rgb(var(--color-surface-50))}.dark .decoration-surface-900-50-token{text-decoration-color:rgb(var(--color-surface-50))}.dark .text-surface-800-100-token{color:rgb(var(--color-surface-100))}.dark .decoration-surface-800-100-token{text-decoration-color:rgb(var(--color-surface-100))}.dark .text-surface-700-200-token{color:rgb(var(--color-surface-200))}.dark .decoration-surface-700-200-token{text-decoration-color:rgb(var(--color-surface-200))}.dark .text-surface-600-300-token{color:rgb(var(--color-surface-300))}.dark .decoration-surface-600-300-token{text-decoration-color:rgb(var(--color-surface-300))}.dark .text-surface-500-400-token{color:rgb(var(--color-surface-400))}.dark .decoration-surface-500-400-token{text-decoration-color:rgb(var(--color-surface-400))}.dark .ring-outline-token{--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);--tw-ring-inset: inset;--tw-ring-color: rgb(250 250 250 / .05)}.dark .ring-primary-50-900-token{--tw-ring-color: rgb(var(--color-primary-900) / 1)}.dark .ring-primary-100-800-token{--tw-ring-color: rgb(var(--color-primary-800) / 1)}.dark .ring-primary-200-700-token{--tw-ring-color: rgb(var(--color-primary-700) / 1)}.dark .ring-primary-300-600-token{--tw-ring-color: rgb(var(--color-primary-600) / 1)}.dark .ring-primary-400-500-token{--tw-ring-color: rgb(var(--color-primary-500) / 1)}.dark .ring-primary-900-50-token{--tw-ring-color: rgb(var(--color-primary-50) / 1)}.dark .ring-primary-800-100-token{--tw-ring-color: rgb(var(--color-primary-100) / 1)}.dark .ring-primary-700-200-token{--tw-ring-color: rgb(var(--color-primary-200) / 1)}.dark .ring-primary-600-300-token{--tw-ring-color: rgb(var(--color-primary-300) / 1)}.dark .ring-primary-500-400-token{--tw-ring-color: rgb(var(--color-primary-400) / 1)}.dark .ring-secondary-50-900-token{--tw-ring-color: rgb(var(--color-secondary-900) / 1)}.dark .ring-secondary-100-800-token{--tw-ring-color: rgb(var(--color-secondary-800) / 1)}.dark .ring-secondary-200-700-token{--tw-ring-color: rgb(var(--color-secondary-700) / 1)}.dark .ring-secondary-300-600-token{--tw-ring-color: rgb(var(--color-secondary-600) / 1)}.dark .ring-secondary-400-500-token{--tw-ring-color: rgb(var(--color-secondary-500) / 1)}.dark .ring-secondary-900-50-token{--tw-ring-color: rgb(var(--color-secondary-50) / 1)}.dark .ring-secondary-800-100-token{--tw-ring-color: rgb(var(--color-secondary-100) / 1)}.dark .ring-secondary-700-200-token{--tw-ring-color: rgb(var(--color-secondary-200) / 1)}.dark .ring-secondary-600-300-token{--tw-ring-color: rgb(var(--color-secondary-300) / 1)}.dark .ring-secondary-500-400-token{--tw-ring-color: rgb(var(--color-secondary-400) / 1)}.dark .ring-tertiary-50-900-token{--tw-ring-color: rgb(var(--color-tertiary-900) / 1)}.dark .ring-tertiary-100-800-token{--tw-ring-color: rgb(var(--color-tertiary-800) / 1)}.dark .ring-tertiary-200-700-token{--tw-ring-color: rgb(var(--color-tertiary-700) / 1)}.dark .ring-tertiary-300-600-token{--tw-ring-color: rgb(var(--color-tertiary-600) / 1)}.dark .ring-tertiary-400-500-token{--tw-ring-color: rgb(var(--color-tertiary-500) / 1)}.dark .ring-tertiary-900-50-token{--tw-ring-color: rgb(var(--color-tertiary-50) / 1)}.dark .ring-tertiary-800-100-token{--tw-ring-color: rgb(var(--color-tertiary-100) / 1)}.dark .ring-tertiary-700-200-token{--tw-ring-color: rgb(var(--color-tertiary-200) / 1)}.dark .ring-tertiary-600-300-token{--tw-ring-color: rgb(var(--color-tertiary-300) / 1)}.dark .ring-tertiary-500-400-token{--tw-ring-color: rgb(var(--color-tertiary-400) / 1)}.dark .ring-success-50-900-token{--tw-ring-color: rgb(var(--color-success-900) / 1)}.dark .ring-success-100-800-token{--tw-ring-color: rgb(var(--color-success-800) / 1)}.dark .ring-success-200-700-token{--tw-ring-color: rgb(var(--color-success-700) / 1)}.dark .ring-success-300-600-token{--tw-ring-color: rgb(var(--color-success-600) / 1)}.dark .ring-success-400-500-token{--tw-ring-color: rgb(var(--color-success-500) / 1)}.dark .ring-success-900-50-token{--tw-ring-color: rgb(var(--color-success-50) / 1)}.dark .ring-success-800-100-token{--tw-ring-color: rgb(var(--color-success-100) / 1)}.dark .ring-success-700-200-token{--tw-ring-color: rgb(var(--color-success-200) / 1)}.dark .ring-success-600-300-token{--tw-ring-color: rgb(var(--color-success-300) / 1)}.dark .ring-success-500-400-token{--tw-ring-color: rgb(var(--color-success-400) / 1)}.dark .ring-warning-50-900-token{--tw-ring-color: rgb(var(--color-warning-900) / 1)}.dark .ring-warning-100-800-token{--tw-ring-color: rgb(var(--color-warning-800) / 1)}.dark .ring-warning-200-700-token{--tw-ring-color: rgb(var(--color-warning-700) / 1)}.dark .ring-warning-300-600-token{--tw-ring-color: rgb(var(--color-warning-600) / 1)}.dark .ring-warning-400-500-token{--tw-ring-color: rgb(var(--color-warning-500) / 1)}.dark .ring-warning-900-50-token{--tw-ring-color: rgb(var(--color-warning-50) / 1)}.dark .ring-warning-800-100-token{--tw-ring-color: rgb(var(--color-warning-100) / 1)}.dark .ring-warning-700-200-token{--tw-ring-color: rgb(var(--color-warning-200) / 1)}.dark .ring-warning-600-300-token{--tw-ring-color: rgb(var(--color-warning-300) / 1)}.dark .ring-warning-500-400-token{--tw-ring-color: rgb(var(--color-warning-400) / 1)}.dark .ring-error-50-900-token{--tw-ring-color: rgb(var(--color-error-900) / 1)}.dark .ring-error-100-800-token{--tw-ring-color: rgb(var(--color-error-800) / 1)}.dark .ring-error-200-700-token{--tw-ring-color: rgb(var(--color-error-700) / 1)}.dark .ring-error-300-600-token{--tw-ring-color: rgb(var(--color-error-600) / 1)}.dark .ring-error-400-500-token{--tw-ring-color: rgb(var(--color-error-500) / 1)}.dark .ring-error-900-50-token{--tw-ring-color: rgb(var(--color-error-50) / 1)}.dark .ring-error-800-100-token{--tw-ring-color: rgb(var(--color-error-100) / 1)}.dark .ring-error-700-200-token{--tw-ring-color: rgb(var(--color-error-200) / 1)}.dark .ring-error-600-300-token{--tw-ring-color: rgb(var(--color-error-300) / 1)}.dark .ring-error-500-400-token{--tw-ring-color: rgb(var(--color-error-400) / 1)}.dark .ring-surface-50-900-token{--tw-ring-color: rgb(var(--color-surface-900) / 1)}.dark .ring-surface-100-800-token{--tw-ring-color: rgb(var(--color-surface-800) / 1)}.dark .ring-surface-200-700-token{--tw-ring-color: rgb(var(--color-surface-700) / 1)}.dark .ring-surface-300-600-token{--tw-ring-color: rgb(var(--color-surface-600) / 1)}.dark .ring-surface-400-500-token{--tw-ring-color: rgb(var(--color-surface-500) / 1)}.dark .ring-surface-900-50-token{--tw-ring-color: rgb(var(--color-surface-50) / 1)}.dark .ring-surface-800-100-token{--tw-ring-color: rgb(var(--color-surface-100) / 1)}.dark .ring-surface-700-200-token{--tw-ring-color: rgb(var(--color-surface-200) / 1)}.dark .ring-surface-600-300-token{--tw-ring-color: rgb(var(--color-surface-300) / 1)}.dark .ring-surface-500-400-token{--tw-ring-color: rgb(var(--color-surface-400) / 1)}.dark .hover\:bg-primary-hover-token:hover:hover{background-color:rgb(var(--color-primary-500) / .1)}.hover\:variant-soft:hover{background-color:rgb(var(--color-surface-400) / .2);--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color) !important;--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color) !important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)!important;color:rgb(var(--color-surface-700))}.dark .hover\:variant-soft:hover{color:rgb(var(--color-surface-200))}:is(.dark .hover\:variant-soft:hover){background-color:rgb(var(--color-surface-500) / .2)}.hover\:opacity-100:hover{opacity:1}.hover\:brightness-\[105\%\]:hover{--tw-brightness: brightness(105%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.hover\:bg-primary-hover-token:hover:hover,.dark .hover\:bg-primary-hover-token:hover:hover{background-color:rgb(var(--color-primary-500) / .1)}.disabled\:\!opacity-0:disabled{opacity:0!important}:is(.dark .dark\:bg-surface-300){--tw-bg-opacity: 1;background-color:rgb(var(--color-surface-300) / var(--tw-bg-opacity))}:is(.dark .dark\:bg-surface-700){--tw-bg-opacity: 1;background-color:rgb(var(--color-surface-700) / var(--tw-bg-opacity))}:is(.dark .dark\:stroke-surface-50){stroke:rgb(var(--color-surface-50) / 1)}:is(.dark .dark\:accent-surface-50){accent-color:rgb(var(--color-surface-50) / 1)}:is(.dark .dark\:hover\:brightness-110:hover){--tw-brightness: brightness(1.1);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}@media (min-width: 768px){.md\:w-auto{width:auto}.md\:flex-row{flex-direction:row}.md\:space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.md\:space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse))}}.\[\&\:\:-webkit-details-marker\]\:hidden::-webkit-details-marker{display:none}@font-face{font-family:Fira Mono;font-style:normal;font-display:swap;font-weight:400;src:url(./fira-mono-cyrillic-ext-400-normal.dOGCK5uJ.woff2) format("woff2"),url(./fira-mono-all-400-normal.dpry7Ug7.woff) format("woff");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Fira Mono;font-style:normal;font-display:swap;font-weight:400;src:url(./fira-mono-cyrillic-400-normal.N-vuOVMo.woff2) format("woff2"),url(./fira-mono-all-400-normal.dpry7Ug7.woff) format("woff");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Fira Mono;font-style:normal;font-display:swap;font-weight:400;src:url(./fira-mono-greek-ext-400-normal.rKiNtwjr.woff2) format("woff2"),url(./fira-mono-all-400-normal.dpry7Ug7.woff) format("woff");unicode-range:U+1F00-1FFF}@font-face{font-family:Fira Mono;font-style:normal;font-display:swap;font-weight:400;src:url(./fira-mono-greek-400-normal.At854Oju.woff2) format("woff2"),url(./fira-mono-all-400-normal.dpry7Ug7.woff) format("woff");unicode-range:U+0370-03FF}@font-face{font-family:Fira Mono;font-style:normal;font-display:swap;font-weight:400;src:url(./fira-mono-latin-ext-400-normal.-l34kfv6.woff2) format("woff2"),url(./fira-mono-all-400-normal.dpry7Ug7.woff) format("woff");unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Fira Mono;font-style:normal;font-display:swap;font-weight:400;src:url(./fira-mono-latin-400-normal.yoy1YEIp.woff2) format("woff2"),url(./fira-mono-all-400-normal.dpry7Ug7.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}:root{--font-body: Arial, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;--font-mono: "Fira Mono", monospace;--color-bg-0: rgb(202, 216, 228);--color-bg-1: hsl(209, 36%, 86%);--color-bg-2: hsl(224, 44%, 95%);--color-theme-1: #ff3e00;--color-theme-2: #4075a6;--color-text: rgba(0, 0, 0, .7);--column-width: 42rem;--column-margin-top: 4rem;font-family:var(--font-body);color:var(--color-text)}body{min-height:100vh;margin:0;background-attachment:fixed;background-color:var(--color-bg-1);background-size:100vw 100vh;background-image:radial-gradient(50% 50% at 50% 50%,#ffffffbf,#fff0),linear-gradient(180deg,var(--color-bg-0) 0%,var(--color-bg-1) 15%,var(--color-bg-2) 50%)}h1,h2,p{font-weight:400}p{line-height:1.5}a{color:var(--color-theme-2);text-decoration:none}a:hover{text-decoration:underline}h1{font-size:2rem;text-align:center}h2{font-size:1rem}pre{font-size:16px;font-family:var(--font-mono);background-color:#ffffff73;border-radius:3px;box-shadow:2px 2px 6px #ffffff40;padding:.5em;overflow-x:auto;color:var(--color-text)}.text-column{display:flex;max-width:48rem;flex:.6;flex-direction:column;justify-content:center;margin:0 auto}input,button{font-size:inherit;font-family:inherit}button:focus:not(:focus-visible){outline:none}@media (min-width: 720px){h1{font-size:2.4rem}}.visually-hidden{border:0;clip:rect(0 0 0 0);height:auto;margin:0;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.splitpanes.modern-theme .splitpanes__pane{background-color:transparent;overflow:visible}.splitpanes.modern-theme .splitpanes__splitter{background-color:#ccc;position:relative}.splitpanes.modern-theme .splitpanes__splitter:before{content:"";position:absolute;left:0;top:0;transition:opacity .4s;background-color:#2db9d2;opacity:0;z-index:1}.splitpanes.modern-theme .splitpanes__splitter:hover:before{opacity:1}.splitpanes.modern-theme .splitpanes__splitter.splitpanes__splitter__active{z-index:2}.modern-theme.splitpanes--vertical>.splitpanes__splitter:before{left:-3px;right:-3px;height:100%;cursor:col-resize}.app.svelte-1i03v0h{display:flex;flex-direction:column;min-height:100vh}main.svelte-1i03v0h{flex:1;display:flex;flex-direction:column;padding:1rem;width:100%;max-width:100rem;margin:0 auto;box-sizing:border-box;justify-content:center;height:100vh}footer.svelte-1i03v0h{display:flex;flex-direction:column;justify-content:center;align-items:center;padding:12px}@media (min-width: 480px){footer.svelte-1i03v0h{padding:12px 0}} diff --git a/build/client/_app/immutable/assets/2.hjG-dZS5.css b/build/client/_app/immutable/assets/2.hjG-dZS5.css new file mode 100644 index 0000000000000000000000000000000000000000..44785948077b1f47c6574ae5dafcd979fe0a2b02 --- /dev/null +++ b/build/client/_app/immutable/assets/2.hjG-dZS5.css @@ -0,0 +1 @@ +div.splitpanes--horizontal.splitpanes--dragging{cursor:row-resize}div.splitpanes--vertical.splitpanes--dragging{cursor:col-resize}.splitpanes{display:flex;width:100%;height:100%}.splitpanes--vertical{flex-direction:row}.splitpanes--horizontal{flex-direction:column}.splitpanes--dragging *{-webkit-user-select:none;-moz-user-select:none;user-select:none}.splitpanes__pane{width:100%;height:100%;overflow:hidden}.splitpanes--vertical .splitpanes__pane{transition:width .2s ease-out}.splitpanes--horizontal .splitpanes__pane{transition:height .2s ease-out}.splitpanes--vertical>.splitpanes__pane{transition:width .2s ease-out}.splitpanes--horizontal>.splitpanes__pane{transition:height .2s ease-out}.splitpanes--dragging .splitpanes__pane{transition:none;pointer-events:none}.splitpanes--freeze .splitpanes__pane{transition:none}.splitpanes__splitter{touch-action:none}.splitpanes--vertical>.splitpanes__splitter{min-width:1px}.splitpanes--horizontal>.splitpanes__splitter{min-height:1px}.splitpanes.default-theme .splitpanes__pane{background-color:#f2f2f2}.splitpanes.default-theme .splitpanes__splitter{background-color:#fff;box-sizing:border-box;position:relative;flex-shrink:0}.splitpanes.default-theme .splitpanes__splitter:before,.splitpanes.default-theme .splitpanes__splitter:after{content:"";position:absolute;top:50%;left:50%;background-color:#00000026;transition:background-color .3s}.splitpanes.default-theme .splitpanes__splitter:hover:before,.splitpanes.default-theme .splitpanes__splitter:hover:after{background-color:#00000040}.splitpanes.default-theme .splitpanes__splitter:first-child{cursor:auto}.default-theme.splitpanes .splitpanes .splitpanes__splitter{z-index:1}.default-theme.splitpanes--vertical>.splitpanes__splitter,.default-theme .splitpanes--vertical>.splitpanes__splitter{width:7px;border-left:1px solid #eee;cursor:col-resize}.default-theme.splitpanes--vertical>.splitpanes__splitter:before,.default-theme.splitpanes--vertical>.splitpanes__splitter:after,.default-theme .splitpanes--vertical>.splitpanes__splitter:before,.default-theme .splitpanes--vertical>.splitpanes__splitter:after{transform:translateY(-50%);width:1px;height:30px}.default-theme.splitpanes--vertical>.splitpanes__splitter:before,.default-theme .splitpanes--vertical>.splitpanes__splitter:before{margin-left:-2px}.default-theme.splitpanes--vertical>.splitpanes__splitter:after,.default-theme .splitpanes--vertical>.splitpanes__splitter:after{margin-left:1px}.default-theme.splitpanes--horizontal>.splitpanes__splitter,.default-theme .splitpanes--horizontal>.splitpanes__splitter{height:7px;border-top:1px solid #eee;cursor:row-resize}.default-theme.splitpanes--horizontal>.splitpanes__splitter:before,.default-theme.splitpanes--horizontal>.splitpanes__splitter:after,.default-theme .splitpanes--horizontal>.splitpanes__splitter:before,.default-theme .splitpanes--horizontal>.splitpanes__splitter:after{transform:translate(-50%);width:30px;height:1px}.default-theme.splitpanes--horizontal>.splitpanes__splitter:before,.default-theme .splitpanes--horizontal>.splitpanes__splitter:before{margin-top:-2px}.default-theme.splitpanes--horizontal>.splitpanes__splitter:after,.default-theme .splitpanes--horizontal>.splitpanes__splitter:after{margin-top:1px}.llm-health-status.svelte-a20mi8{color:#708090;font-size:12px;display:inline-flex;align-items:center;min-width:200px}.dot.svelte-a20mi8{width:20px;height:20px}.llm-health-status.svelte-1wcf73j{color:#708090;font-size:12px;display:inline-flex;align-items:center}.dot.svelte-1wcf73j{width:20px;height:20px}.modal.svelte-sfudwy{position:fixed;top:0;left:0;width:100%;height:100%;background:#00000080;display:flex;justify-content:center;align-items:center;z-index:999}.popup.svelte-sfudwy{background:#fff;padding:20px;border-radius:8px;box-shadow:0 0 10px #0000004d;max-width:80%;width:50%}textarea.svelte-sfudwy{min-height:200px;resize:vertical;padding:10px;border:1px solid #ccc;border-radius:4px;width:100%;font-size:14px;margin-bottom:10px;box-sizing:border-box}button.svelte-sfudwy{margin-top:10px;padding:10px 20px;background-color:#1976d2;color:#fff;border:1px solid transparent;border-radius:4px;cursor:pointer;transition:background-color .3s;box-sizing:border-box}button.svelte-sfudwy:hover{background-color:#1565c0}.anim-indeterminate.svelte-12wvf64{transform-origin:0% 50%;animation:svelte-12wvf64-anim-indeterminate 2s infinite linear}@keyframes svelte-12wvf64-anim-indeterminate{0%{transform:translate(0) scaleX(0)}40%{transform:translate(0) scaleX(.4)}to{transform:translate(100%) scaleX(.5)}}.search-result.svelte-dwjxto{margin-bottom:20px}.title.svelte-dwjxto{font-weight:700}.annotation.svelte-dwjxto{overflow:hidden;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;text-overflow:ellipsis;white-space:normal}a.svelte-dwjxto{cursor:pointer}.full-text.svelte-dwjxto{display:block;white-space:normal}.title.svelte-dwjxto{color:#1a0dab}.search-results.svelte-1ptibtq.svelte-1ptibtq{flex:1;overflow-y:auto;padding:1rem}.settings-bar.svelte-1ptibtq.svelte-1ptibtq{margin-bottom:10px}.settings-bar.svelte-1ptibtq label.svelte-1ptibtq{margin-right:10px}.loading-container.svelte-1cldj37.svelte-1cldj37{display:flex;justify-content:center;align-items:center;align-self:center;width:3rem;height:90%;margin-left:5px}.loading-status.svelte-1cldj37.svelte-1cldj37{display:flex;justify-content:center;align-items:center;align-self:center}.grow-wrap.svelte-1cldj37.svelte-1cldj37{display:grid}.grow-wrap.svelte-1cldj37.svelte-1cldj37:after{content:attr(data-replicated-value) " ";white-space:pre-wrap;visibility:hidden;max-width:100%;max-height:250px;display:block;overflow-x:hidden}.grow-wrap.svelte-1cldj37>textarea.svelte-1cldj37{resize:none;overflow:hidden}.grow-wrap.svelte-1cldj37>textarea.svelte-1cldj37,.grow-wrap.svelte-1cldj37.svelte-1cldj37:after{padding:1rem;border:1px solid #ccc;border-radius:4px;width:100%;font-size:14px;margin-bottom:10px;box-sizing:border-box;grid-area:1/1/2/2}.grow-wrap.svelte-1cldj37>textarea .svelte-1cldj37:focus,.grow-wrap.svelte-1cldj37:after .svelte-1cldj37:focus{outline:none;border-color:#1976d2}.grow-wrap.svelte-1cldj37>textarea .svelte-1cldj37:placeholder,.grow-wrap.svelte-1cldj37:after .svelte-1cldj37:placeholder{color:#aaa}.auto-expand-textarea.svelte-1cldj37.svelte-1cldj37{box-sizing:border-box;width:100%;font-size:16px;border:1px solid #ccc;resize:vertical;overflow-y:hidden;min-height:1rem}.search-column.svelte-1cldj37.svelte-1cldj37{flex:1;display:flex;flex-direction:column;border-right:1px solid #ccc}.search-bar.svelte-1cldj37.svelte-1cldj37{padding:1rem}.search-bar.svelte-1cldj37 textarea.svelte-1cldj37{width:100%;max-width:100%;padding:1rem;box-sizing:border-box}.textarea-column.svelte-1cldj37.svelte-1cldj37{flex:1;display:flex;flex-direction:column}.textarea.svelte-1cldj37.svelte-1cldj37{width:100%;height:100%;margin:10px;border:none;outline:none;resize:none;background:transparent}@media (max-width: 767px){.search-column.svelte-1cldj37.svelte-1cldj37,.textarea-column.svelte-1cldj37.svelte-1cldj37{border-right:none}}.search-second-bar.svelte-1cldj37.svelte-1cldj37{display:flex;justify-content:space-between;flex-wrap:wrap}.search-second-bar.svelte-1cldj37 .status-components.svelte-1cldj37{flex:1;margin-right:10px;margin-top:10px}@media (max-width: 600px){.search-second-bar.svelte-1cldj37.svelte-1cldj37{flex-direction:column}.search-second-bar.svelte-1cldj37 .status-components.svelte-1cldj37{width:100%;margin-right:0;margin-bottom:10px}}textarea.svelte-1cldj37.svelte-1cldj37{border:1px solid #ccc;border-radius:4px;width:100%;font-size:14px;margin-bottom:10px;box-sizing:border-box;padding:1rem} diff --git a/build/client/_app/immutable/assets/_layout.DFy0E8-Z.css b/build/client/_app/immutable/assets/_layout.DFy0E8-Z.css new file mode 100644 index 0000000000000000000000000000000000000000..8eb33c836fff8995d0a7db8bae73c7245f05c509 --- /dev/null +++ b/build/client/_app/immutable/assets/_layout.DFy0E8-Z.css @@ -0,0 +1 @@ +*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{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,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}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-feature-settings:normal;font-variation-settings:normal;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-feature-settings:inherit;font-variation-settings: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}dialog{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}[hidden]{display:none}.dark .list-nav a:hover,.dark .list-nav button:hover,.dark .list-option:hover{background-color:rgb(var(--color-primary-500) / .1)}.dark .table-interactive tbody tr:hover:hover{background-color:rgb(var(--color-primary-500) / .1)}@media (min-width: 768px){.\!legend{font-size:1.5rem!important;line-height:2rem!important}.legend{font-size:1.5rem;line-height:2rem}}.dark .bg-primary-hover-token:hover{background-color:rgb(var(--color-primary-500) / .1)}body{background-color:rgb(var(--color-surface-50));font-size:1rem;line-height:1.5rem;font-family:var(--theme-font-family-base);color:rgba(var(--theme-font-color-base))}.dark body{background-color:rgb(var(--color-surface-900));color:rgba(var(--theme-font-color-dark))}::-moz-selection{background-color:rgb(var(--color-primary-500) / .3)}::selection{background-color:rgb(var(--color-primary-500) / .3)}html{-webkit-tap-highlight-color:rgba(128,128,128,.5);scrollbar-color:rgba(0,0,0,.2) rgba(255,255,255,.05)}::-webkit-scrollbar{width:.5rem;height:.5rem}::-webkit-scrollbar-track{padding-left:1px;padding-right:1px;background-color:rgb(var(--color-surface-50))!important}.dark ::-webkit-scrollbar-track{background-color:rgb(var(--color-surface-900))!important}::-webkit-scrollbar-thumb{background-color:rgb(var(--color-surface-400));border-radius:var(--theme-rounded-base)}.dark ::-webkit-scrollbar-thumb{background-color:rgb(var(--color-surface-500))}::-webkit-scrollbar-corner{background-color:rgb(var(--color-surface-50))!important}.dark ::-webkit-scrollbar-corner{background-color:rgb(var(--color-surface-900))!important}html.dark{scrollbar-color:rgba(255,255,255,.1) rgba(0,0,0,.05)}hr:not(.divider){display:block;border-top-width:1px;border-style:solid;border-color:rgb(var(--color-surface-300))}.dark hr:not(.divider){border-color:rgb(var(--color-surface-600))}fieldset,legend,label{display:block}::-moz-placeholder{color:rgb(var(--color-surface-500))}::placeholder{color:rgb(var(--color-surface-500))}.dark ::-moz-placeholder{color:rgb(var(--color-surface-400))}.dark ::placeholder{color:rgb(var(--color-surface-400))}:is(.dark input::-webkit-calendar-picker-indicator){--tw-invert: invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}input[type=search]::-webkit-search-cancel-button{-webkit-appearance:none;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm121.6 313.1c4.7 4.7 4.7 12.3 0 17L338 377.6c-4.7 4.7-12.3 4.7-17 0L256 312l-65.1 65.6c-4.7 4.7-12.3 4.7-17 0L134.4 338c-4.7-4.7-4.7-12.3 0-17l65.6-65-65.6-65.1c-4.7-4.7-4.7-12.3 0-17l39.6-39.6c4.7-4.7 12.3-4.7 17 0l65 65.7 65.1-65.6c4.7-4.7 12.3-4.7 17 0l39.6 39.6c4.7 4.7 4.7 12.3 0 17L312 256l65.6 65.1z'/%3E%3C/svg%3E") no-repeat 50% 50%;pointer-events:none;height:1rem;width:1rem;border-radius:9999px;background-size:contain;opacity:0}input[type=search]:focus::-webkit-search-cancel-button{pointer-events:auto;opacity:1}:is(.dark input[type=search]::-webkit-search-cancel-button){--tw-invert: invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}progress{webkit-appearance:none;-moz-appearance:none;-webkit-appearance:none;appearance:none;height:.5rem;width:100%;overflow:hidden;border-radius:var(--theme-rounded-base);background-color:rgb(var(--color-surface-400))}.dark progress{background-color:rgb(var(--color-surface-500))}progress::-webkit-progress-bar{background-color:rgb(var(--color-surface-400))}.dark progress::-webkit-progress-bar{background-color:rgb(var(--color-surface-500))}progress::-webkit-progress-value{background-color:rgb(var(--color-surface-900))}.dark progress::-webkit-progress-value{background-color:rgb(var(--color-surface-50))}::-moz-progress-bar{background-color:rgb(var(--color-surface-900))}.dark ::-moz-progress-bar{background-color:rgb(var(--color-surface-50))}:indeterminate::-moz-progress-bar{width:0}input[type=file]:not(.file-dropzone-input)::file-selector-button:disabled{cursor:not-allowed;opacity:.5}input[type=file]:not(.file-dropzone-input)::file-selector-button:disabled:hover{--tw-brightness: brightness(1);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}input[type=file]:not(.file-dropzone-input)::file-selector-button:disabled:active{--tw-scale-x: 1;--tw-scale-y: 1;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))}input[type=file]:not(.file-dropzone-input)::file-selector-button{font-size:.875rem;line-height:1.25rem;padding:.375rem .75rem;white-space:nowrap;text-align:center;display:inline-flex;align-items:center;justify-content:center;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;border-radius:var(--theme-rounded-base);background-color:rgb(var(--color-surface-900));color:rgb(var(--color-surface-50));margin-right:.5rem;border-width:0px}input[type=file]:not(.file-dropzone-input)::file-selector-button>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}input[type=file]:not(.file-dropzone-input)::file-selector-button:hover{--tw-brightness: brightness(1.15);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}input[type=file]:not(.file-dropzone-input)::file-selector-button:active{--tw-scale-x: 95%;--tw-scale-y: 95%;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));--tw-brightness: brightness(.9);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.dark input[type=file]:not(.file-dropzone-input)::file-selector-button{background-color:rgb(var(--color-surface-50));color:rgb(var(--color-surface-900))}[type=range]{width:100%;accent-color:rgb(var(--color-surface-900) / 1)}:is(.dark [type=range]){accent-color:rgb(var(--color-surface-50) / 1)}[data-sort]{cursor:pointer}[data-sort]:hover:hover,.dark [data-sort]:hover:hover{background-color:rgb(var(--color-primary-500) / .1)}[data-sort]:after{margin-left:.5rem!important;opacity:0;--tw-content: "↓" !important;content:var(--tw-content)!important}[data-popup]{position:absolute;top:0;left:0;display:none;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}:root [data-theme=skeleton]{--theme-font-family-base: system-ui;--theme-font-family-heading: system-ui;--theme-font-color-base: 0 0 0;--theme-font-color-dark: 255 255 255;--theme-rounded-base: 9999px;--theme-rounded-container: 8px;--theme-border-base: 1px;--on-primary: 0 0 0;--on-secondary: 255 255 255;--on-tertiary: 0 0 0;--on-success: 0 0 0;--on-warning: 0 0 0;--on-error: 255 255 255;--on-surface: 255 255 255;--color-primary-50: 219 245 236;--color-primary-100: 207 241 230;--color-primary-200: 195 238 224;--color-primary-300: 159 227 205;--color-primary-400: 87 207 167;--color-primary-500: 15 186 129;--color-primary-600: 14 167 116;--color-primary-700: 11 140 97;--color-primary-800: 9 112 77;--color-primary-900: 7 91 63;--color-secondary-50: 229 227 251;--color-secondary-100: 220 218 250;--color-secondary-200: 211 209 249;--color-secondary-300: 185 181 245;--color-secondary-400: 132 126 237;--color-secondary-500: 79 70 229;--color-secondary-600: 71 63 206;--color-secondary-700: 59 53 172;--color-secondary-800: 47 42 137;--color-secondary-900: 39 34 112;--color-tertiary-50: 219 242 252;--color-tertiary-100: 207 237 251;--color-tertiary-200: 195 233 250;--color-tertiary-300: 159 219 246;--color-tertiary-400: 86 192 240;--color-tertiary-500: 14 165 233;--color-tertiary-600: 13 149 210;--color-tertiary-700: 11 124 175;--color-tertiary-800: 8 99 140;--color-tertiary-900: 7 81 114;--color-success-50: 237 247 220;--color-success-100: 230 245 208;--color-success-200: 224 242 197;--color-success-300: 206 235 162;--color-success-400: 169 219 92;--color-success-500: 132 204 22;--color-success-600: 119 184 20;--color-success-700: 99 153 17;--color-success-800: 79 122 13;--color-success-900: 65 100 11;--color-warning-50: 252 244 218;--color-warning-100: 251 240 206;--color-warning-200: 250 236 193;--color-warning-300: 247 225 156;--color-warning-400: 240 202 82;--color-warning-500: 234 179 8;--color-warning-600: 211 161 7;--color-warning-700: 176 134 6;--color-warning-800: 140 107 5;--color-warning-900: 115 88 4;--color-error-50: 249 221 234;--color-error-100: 246 209 228;--color-error-200: 244 198 221;--color-error-300: 238 163 200;--color-error-400: 225 94 159;--color-error-500: 212 25 118;--color-error-600: 191 23 106;--color-error-700: 159 19 89;--color-error-800: 127 15 71;--color-error-900: 104 12 58;--color-surface-50: 228 230 238;--color-surface-100: 219 222 233;--color-surface-200: 210 214 227;--color-surface-300: 182 189 210;--color-surface-400: 128 140 177;--color-surface-500: 73 90 143;--color-surface-600: 66 81 129;--color-surface-700: 55 68 107;--color-surface-800: 44 54 86;--color-surface-900: 36 44 70}:root [data-theme=crimson]{--theme-font-family-base: Inter, 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";--theme-font-family-heading: system-ui;--theme-font-color-base: var(--color-surface-900);--theme-font-color-dark: var(--color-surface-50);--theme-rounded-base: 24px;--theme-rounded-container: 24px;--theme-border-base: 1px;--on-primary: 255 255 255;--on-secondary: 255 255 255;--on-tertiary: 0 0 0;--on-success: 0 0 0;--on-warning: 0 0 0;--on-error: 0 0 0;--on-surface: 255 255 255;--color-primary-50: 249 220 226;--color-primary-100: 246 208 216;--color-primary-200: 244 197 206;--color-primary-300: 238 162 177;--color-primary-400: 225 92 119;--color-primary-500: 212 22 60;--color-primary-600: 191 20 54;--color-primary-700: 159 17 45;--color-primary-800: 127 13 36;--color-primary-900: 104 11 29;--color-secondary-50: 227 237 243;--color-secondary-100: 218 231 239;--color-secondary-200: 209 225 235;--color-secondary-300: 181 206 223;--color-secondary-400: 126 170 199;--color-secondary-500: 70 133 175;--color-secondary-600: 63 120 158;--color-secondary-700: 53 100 131;--color-secondary-800: 42 80 105;--color-secondary-900: 34 65 86;--color-tertiary-50: 246 244 244;--color-tertiary-100: 242 240 240;--color-tertiary-200: 239 237 236;--color-tertiary-300: 230 226 225;--color-tertiary-400: 211 204 203;--color-tertiary-500: 192 182 180;--color-tertiary-600: 173 164 162;--color-tertiary-700: 144 137 135;--color-tertiary-800: 115 109 108;--color-tertiary-900: 94 89 88;--color-success-50: 246 250 239;--color-success-100: 243 248 234;--color-success-200: 240 247 229;--color-success-300: 230 241 213;--color-success-400: 212 231 182;--color-success-500: 193 221 151;--color-success-600: 174 199 136;--color-success-700: 145 166 113;--color-success-800: 116 133 91;--color-success-900: 95 108 74;--color-warning-50: 251 246 231;--color-warning-100: 250 243 223;--color-warning-200: 248 240 215;--color-warning-300: 244 231 191;--color-warning-400: 236 212 142;--color-warning-500: 228 194 94;--color-warning-600: 205 175 85;--color-warning-700: 171 146 71;--color-warning-800: 137 116 56;--color-warning-900: 112 95 46;--color-error-50: 248 236 236;--color-error-100: 246 229 230;--color-error-200: 244 223 224;--color-error-300: 237 204 205;--color-error-400: 224 165 167;--color-error-500: 210 127 129;--color-error-600: 189 114 116;--color-error-700: 158 95 97;--color-error-800: 126 76 77;--color-error-900: 103 62 63;--color-surface-50: 223 224 226;--color-surface-100: 213 213 217;--color-surface-200: 202 203 207;--color-surface-300: 170 171 179;--color-surface-400: 107 109 121;--color-surface-500: 43 46 64;--color-surface-600: 39 41 58;--color-surface-700: 32 35 48;--color-surface-800: 26 28 38;--color-surface-900: 21 23 31}*,: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-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--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-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--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: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.hide-scrollbar::-webkit-scrollbar{display:none}.hide-scrollbar{-ms-overflow-style:none;scrollbar-width:none}.dark .divider-vertical{border-color:rgb(var(--color-surface-600))}.h2{font-size:1.5rem;line-height:2rem;font-family:var(--theme-font-family-heading)}.h3{font-size:1.25rem;line-height:1.75rem;font-family:var(--theme-font-family-heading)}.h4{font-size:1.125rem;line-height:1.75rem;font-family:var(--theme-font-family-heading)}.h5{font-size:1rem;line-height:1.5rem;font-family:var(--theme-font-family-heading)}.h6{font-size:.875rem;line-height:1.25rem;font-family:var(--theme-font-family-heading)}.anchor{--tw-text-opacity: 1;color:rgb(var(--color-primary-700) / var(--tw-text-opacity));text-decoration-line:underline}.anchor:hover{--tw-brightness: brightness(1.1);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}:is(.dark .anchor){--tw-text-opacity: 1;color:rgb(var(--color-primary-500) / var(--tw-text-opacity))}.dark .blockquote{color:rgba(var(--theme-font-color-dark))}.dark .kbd{background-color:rgb(var(--color-surface-600))}.time{font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(var(--color-surface-500) / var(--tw-text-opacity))}:is(.dark .time){--tw-text-opacity: 1;color:rgb(var(--color-surface-400) / var(--tw-text-opacity))}.pre{overflow-x:auto;white-space:pre-wrap;background-color:#171717e6;padding:1rem;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1rem;line-height:1.5rem;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity));border-radius:var(--theme-rounded-container)}.code{white-space:nowrap;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:.75rem;line-height:1rem;--tw-text-opacity: 1;color:rgb(var(--color-primary-700) / var(--tw-text-opacity));background-color:rgb(var(--color-primary-500) / .3);border-radius:.25rem;padding:.125rem .25rem}:is(.dark .code){--tw-text-opacity: 1;color:rgb(var(--color-primary-400) / var(--tw-text-opacity));background-color:rgb(var(--color-primary-500) / .2)}.alert{display:flex;flex-direction:column;align-items:flex-start;padding:1rem;color:rgb(var(--color-surface-900));border-radius:var(--theme-rounded-container)}.alert>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.dark .alert{color:rgb(var(--color-surface-50))}.badge{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;font-size:.75rem;line-height:1rem;font-weight:600;padding:.25rem .5rem;border-radius:var(--theme-rounded-base)}.badge>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}:is(.dark .badge-glass){background-color:rgb(var(--color-surface-500) / .2);--tw-ring-color: rgb(250 250 250 / .05)}.dark .crumb-separator{color:rgb(var(--color-surface-200))}.btn:disabled,.btn-icon:disabled,.btn-group>*:disabled{cursor:not-allowed!important;opacity:.5!important}.btn:disabled:hover,.btn-icon:disabled:hover,.btn-group>*:disabled:hover{--tw-brightness: brightness(1);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.btn:disabled:active,.btn-icon:disabled:active,.btn-group>*:disabled:active{--tw-scale-x: 1;--tw-scale-y: 1;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))}.btn{font-size:1rem;line-height:1.5rem;padding-left:1.25rem;padding-right:1.25rem;padding-top:9px;padding-bottom:9px;white-space:nowrap;text-align:center;display:inline-flex;align-items:center;justify-content:center;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;border-radius:var(--theme-rounded-base)}.btn>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.btn:hover{--tw-brightness: brightness(1.15);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.btn:active{--tw-scale-x: 95%;--tw-scale-y: 95%;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));--tw-brightness: brightness(.9);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.btn-sm{padding:.375rem .75rem;font-size:.875rem;line-height:1.25rem}.btn-icon{font-size:1rem;line-height:1.5rem;padding-left:1.25rem;padding-right:1.25rem;white-space:nowrap;text-align:center;display:inline-flex;align-items:center;justify-content:center;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;padding:0;aspect-ratio:1 / 1;width:43px;border-radius:9999px}.btn-icon>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.btn-icon:hover{--tw-brightness: brightness(1.15);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.btn-icon:active{--tw-scale-x: 95%;--tw-scale-y: 95%;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));--tw-brightness: brightness(.9);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.btn-icon-sm{aspect-ratio:1 / 1;width:33px;font-size:.875rem;line-height:1.25rem}.btn-group{display:inline-flex;flex-direction:row;overflow:hidden;border-radius:var(--theme-rounded-base);isolation:isolate}.btn-group>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(0px * var(--tw-space-x-reverse));margin-left:calc(0px * calc(1 - var(--tw-space-x-reverse)))}.btn-group button,.btn-group a,.btn-group-vertical button,.btn-group-vertical a{font-size:1rem;line-height:1.5rem;padding-left:1.25rem;padding-right:1.25rem;padding-top:9px;padding-bottom:9px;white-space:nowrap;text-align:center;display:inline-flex;align-items:center;justify-content:center;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;color:inherit!important;text-decoration-line:none!important}.btn-group button>:not([hidden])~:not([hidden]),.btn-group a>:not([hidden])~:not([hidden]),.btn-group-vertical button>:not([hidden])~:not([hidden]),.btn-group-vertical a>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.btn-group button:hover,.btn-group a:hover,.btn-group-vertical button:hover,.btn-group-vertical a:hover{--tw-brightness: brightness(1.15);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);background-color:rgb(var(--color-surface-50) / 3%)}.btn-group button:active,.btn-group a:active,.btn-group-vertical button:active,.btn-group-vertical a:active{background-color:rgb(var(--color-surface-900) / 3%)}.btn-group>*+*{border-top-width:0px;border-left-width:1px;border-color:rgb(var(--color-surface-500) / .2)}.card{background-color:rgb(var(--color-surface-100));--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);--tw-ring-inset: inset;--tw-ring-color: rgb(23 23 23 / .05);border-radius:var(--theme-rounded-container)}.dark .card{background-color:rgb(var(--color-surface-800));--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);--tw-ring-inset: inset;--tw-ring-color: rgb(250 250 250 / .05)}a.card{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}a.card:hover{--tw-brightness: brightness(1.05);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.codeblock pre{counter-reset:line}.codeblock code.lineNumbers>span.line{counter-increment:line}.codeblock code.lineNumbers>span.line:before{content:counter(line) "";opacity:.5}.chip{cursor:pointer;white-space:nowrap;padding:.375rem .75rem;text-align:center;font-size:.75rem;line-height:1rem;border-radius:.25rem;display:inline-flex;align-items:center;justify-content:center;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.chip>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}a.chip:hover,button.chip:hover{--tw-brightness: brightness(1.15);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.chip-disabled,.chip:disabled{cursor:not-allowed!important;opacity:.5!important}.chip-disabled:active,.chip:disabled:active{--tw-scale-x: 1;--tw-scale-y: 1;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))}.\!legend{font-size:1.25rem!important;line-height:1.75rem!important;font-family:var(--theme-font-family-heading)!important}.legend{font-size:1.25rem;line-height:1.75rem;font-family:var(--theme-font-family-heading)}.label>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.\!input{width:100%!important;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter!important;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter!important;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important;transition-duration:.2s!important;background-color:rgb(var(--color-surface-200))!important;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color) !important;--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color) !important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)!important;border-width:var(--theme-border-base)!important;border-color:rgb(var(--color-surface-400))!important}.input,.textarea,.select,.input-group{width:100%;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.2s;background-color:rgb(var(--color-surface-200));--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color) !important;--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color) !important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)!important;border-width:var(--theme-border-base);border-color:rgb(var(--color-surface-400))}.dark .input,.dark .textarea,.dark .select,.dark .input-group{background-color:rgb(var(--color-surface-700));border-color:rgb(var(--color-surface-500))}.dark .\!input{background-color:rgb(var(--color-surface-700))!important;border-color:rgb(var(--color-surface-500))!important}.\!input:hover{--tw-brightness: brightness(1.05) !important;filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.input:hover,.textarea:hover,.select:hover,.input-group:hover{--tw-brightness: brightness(1.05);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.\!input:focus{--tw-brightness: brightness(1.05) !important;filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.input:focus,.textarea:focus,.select:focus,.input-group:focus{--tw-brightness: brightness(1.05);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.\!input:focus-within{--tw-border-opacity: 1 !important;border-color:rgb(var(--color-primary-500) / var(--tw-border-opacity))!important}.input:focus-within,.textarea:focus-within,.select:focus-within,.input-group:focus-within{--tw-border-opacity: 1;border-color:rgb(var(--color-primary-500) / var(--tw-border-opacity))}.\!input{border-radius:var(--theme-rounded-base)!important}.input,.input-group{border-radius:var(--theme-rounded-base)}.textarea,.select{border-radius:var(--theme-rounded-container)}.select>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.select{padding:.5rem 2rem .5rem .5rem}.select[size]{background-image:none}.select optgroup>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.select optgroup{font-weight:700}.select optgroup option{margin-left:0;padding-left:0}.select optgroup option:first-of-type{margin-top:.75rem}.select optgroup option:last-child{margin-bottom:.75rem!important}.select option{cursor:pointer;padding:.5rem 1rem;background-color:rgb(var(--color-surface-200));border-radius:var(--theme-rounded-base)}.dark .select option{background-color:rgb(var(--color-surface-700))}.select option:checked{background:rgb(var(--color-primary-500)) linear-gradient(0deg,rgb(var(--color-primary-500)) 0% 100%);color:rgb(var(--on-primary))}.checkbox,.radio{height:1.25rem;width:1.25rem;cursor:pointer;border-radius:.25rem;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color) !important;--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color) !important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)!important;background-color:rgb(var(--color-surface-200));border-width:var(--theme-border-base);border-color:rgb(var(--color-surface-400))}.dark .checkbox,.dark .radio{background-color:rgb(var(--color-surface-700));border-color:rgb(var(--color-surface-500))}.checkbox:hover,.radio:hover{--tw-brightness: brightness(1.05);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.checkbox:focus,.radio:focus{--tw-brightness: brightness(1.05);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);--tw-border-opacity: 1;border-color:rgb(var(--color-primary-500) / var(--tw-border-opacity))}.checkbox:checked,.checkbox:indeterminate,.radio:checked{--tw-bg-opacity: 1;background-color:rgb(var(--color-primary-500) / var(--tw-bg-opacity))}.checkbox:checked:hover,.checkbox:indeterminate:hover,.radio:checked:hover{--tw-bg-opacity: 1;background-color:rgb(var(--color-primary-500) / var(--tw-bg-opacity))}.checkbox:checked:focus,.checkbox:indeterminate:focus,.radio:checked:focus{--tw-bg-opacity: 1;background-color:rgb(var(--color-primary-500) / var(--tw-bg-opacity));--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(0px + 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)}.radio{border-radius:var(--theme-rounded-base)}.\!input[type=file]{padding:.25rem!important}.input[type=file]{padding:.25rem}.\!input[type=color]{height:2.5rem!important;width:2.5rem!important;cursor:pointer!important;overflow:hidden!important;border-style:none!important;border-radius:var(--theme-rounded-base)!important;-webkit-appearance:none!important}.input[type=color]{height:2.5rem;width:2.5rem;cursor:pointer;overflow:hidden;border-style:none;border-radius:var(--theme-rounded-base);-webkit-appearance:none}.\!input[type=color]::-webkit-color-swatch-wrapper{padding:0!important}.input[type=color]::-webkit-color-swatch-wrapper{padding:0}.\!input[type=color]::-webkit-color-swatch{border-style:none!important}.input[type=color]::-webkit-color-swatch{border-style:none}.\!input[type=color]::-webkit-color-swatch:hover{--tw-brightness: brightness(1.1) !important;filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.input[type=color]::-webkit-color-swatch:hover{--tw-brightness: brightness(1.1);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.\!input[type=color]::-moz-color-swatch{border-style:none!important}.input[type=color]::-moz-color-swatch{border-style:none}.\!input:disabled{cursor:not-allowed!important;opacity:.5!important}.input:disabled,.textarea:disabled,.select:disabled,.input-group>input:disabled,.input-group>textarea:disabled,.input-group>select:disabled{cursor:not-allowed!important;opacity:.5!important}.\!input:disabled:hover{--tw-brightness: brightness(1) !important;filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.input:disabled:hover,.textarea:disabled:hover,.select:disabled:hover,.input-group>input:disabled:hover,.input-group>textarea:disabled:hover,.input-group>select:disabled:hover{--tw-brightness: brightness(1) !important;filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.\!input[readonly],.input[readonly],.textarea[readonly],.select[readonly]{cursor:not-allowed!important;border-color:transparent!important}.\!input[readonly]:hover,.input[readonly]:hover,.textarea[readonly]:hover,.select[readonly]:hover{--tw-brightness: brightness(1) !important;filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.dark .input-group select option{background-color:rgb(var(--color-surface-700))}.dark .input-group-divider input,.dark .input-group-divider select,.dark .input-group-divider div,.dark .input-group-divider a{border-color:rgb(var(--color-surface-500))}.dark .input-group-divider input:focus,.dark .input-group-divider select:focus,.dark .input-group-divider div:focus,.dark .input-group-divider a:focus{border-color:rgb(var(--color-surface-500))}.dark .input-group-shim{color:rgb(var(--color-surface-300))}:is(.dark .input-success){--tw-border-opacity: 1;border-color:rgb(var(--color-success-500) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(var(--color-success-200) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(var(--color-success-700) / var(--tw-text-opacity))}:is(.dark .input-warning){--tw-border-opacity: 1;border-color:rgb(var(--color-warning-500) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(var(--color-warning-200) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(var(--color-warning-700) / var(--tw-text-opacity))}.input-error{--tw-border-opacity: 1;border-color:rgb(var(--color-error-500) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(var(--color-error-200) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(var(--color-error-500) / var(--tw-text-opacity))}:is(.dark .input-error){--tw-border-opacity: 1;border-color:rgb(var(--color-error-500) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(var(--color-error-200) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(var(--color-error-500) / var(--tw-text-opacity))}.input-error::-moz-placeholder{--tw-text-opacity: 1;color:rgb(var(--color-error-500) / var(--tw-text-opacity))}.input-error::placeholder{--tw-text-opacity: 1;color:rgb(var(--color-error-500) / var(--tw-text-opacity))}:is(.dark .variant-form-material){background-color:rgb(var(--color-surface-500) / .2)}.list,.list-dl,.list-nav ul{list-style-type:none}.list>:not([hidden])~:not([hidden]),.list-dl>:not([hidden])~:not([hidden]),.list-nav ul>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.list li{display:flex;align-items:center;border-radius:var(--theme-rounded-base)}.list li>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.list-nav a,.list-nav button,.list-option{display:flex;align-items:center;padding:.5rem 1rem;outline:2px solid transparent;outline-offset:2px;cursor:pointer;border-radius:var(--theme-rounded-base)}.list-nav a>:not([hidden])~:not([hidden]),.list-nav button>:not([hidden])~:not([hidden]),.list-option>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.list-nav a:hover,.list-nav button:hover,.list-option:hover,.dark .list-nav a:hover,.dark .list-nav button:hover,.dark .list-option:hover{background-color:rgb(var(--color-primary-500) / .1)}.list-nav a:focus,.list-nav button:focus,.list-option:focus{background-color:rgb(var(--color-primary-400) / .2);--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color) !important;--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color) !important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)!important;color:rgb(var(--color-primary-700))}.dark .list-nav a:focus,.dark .list-nav button:focus,.dark .list-option:focus{color:rgb(var(--color-primary-200))}:is(.dark .list-nav a:focus),:is(.dark .list-nav button:focus),:is(.dark .list-option:focus){background-color:rgb(var(--color-primary-500) / .2)}.dark .logo-item{background-color:rgb(var(--color-surface-800))}:is(.dark .logo-item){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.placeholder{height:1.25rem;background-color:rgb(var(--color-surface-300));border-radius:var(--theme-rounded-base)}.dark .placeholder,.dark .placeholder-circle{background-color:rgb(var(--color-surface-600))}.table-container{width:100%;overflow-x:auto;border-radius:var(--theme-rounded-container)}.table{width:100%;table-layout:auto;overflow:hidden;background-color:rgb(var(--color-surface-100));border-radius:var(--theme-rounded-container);display:table}.dark .table{background-color:rgb(var(--color-surface-800))}.table-interactive tbody tr{cursor:pointer}.table-interactive tbody tr:hover:hover,.dark .table-interactive tbody tr:hover:hover{background-color:rgb(var(--color-primary-500) / .1)}.table-interactive tbody tr:hover:nth-child(2n):hover{background-color:rgb(var(--color-primary-500) / .1)}.dark .table-interactive tbody tr:hover:nth-child(2n):hover{background-color:rgb(var(--color-primary-500) / .1)}.table-sort-asc:after{opacity:.5;--tw-content: "↑" !important;content:var(--tw-content)!important}.table-sort-dsc:after{opacity:.5;--tw-content: "↓" !important;content:var(--tw-content)!important}.table thead{border-bottom-width:1px;border-color:rgb(var(--color-surface-500) / .2);background-color:rgb(var(--color-surface-200))}.dark .table thead{background-color:rgb(var(--color-surface-700))}.table thead tr{text-align:left;text-transform:capitalize}.table thead th{padding:1rem;font-weight:700}.table tbody tr{border-bottom-width:1px;border-color:rgb(var(--color-surface-500) / .2)}.table tbody tr:nth-child(2n){background-color:rgb(var(--color-surface-500) / .05)}.table tbody td{white-space:nowrap;padding:1rem .75rem;vertical-align:top;font-size:.875rem;line-height:1.25rem}.table tfoot{background-color:rgb(var(--color-surface-100))}.dark .table tfoot{background-color:rgb(var(--color-surface-800))}.table tfoot tr{text-align:left;text-transform:capitalize}.table tfoot th,.table tfoot td{padding:1rem}.w-modal{width:100%;max-width:640px}.modal *:focus:not([tabindex="-1"]):not(.input):not(.textarea):not(.select):not(.input-group){outline-style:auto;outline-color:-webkit-focus-ring-color}[data-popup] .\!arrow{position:absolute!important;height:.5rem!important;width:.5rem!important;--tw-rotate: 45deg !important;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))!important}[data-popup] .arrow{position:absolute;height:.5rem;width:.5rem;--tw-rotate: 45deg;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))}:is(.dark .variant-outline-primary){--tw-ring-opacity: 1;--tw-ring-color: rgb(var(--color-primary-500) / var(--tw-ring-opacity))}:is(.dark .variant-outline-secondary){--tw-ring-opacity: 1;--tw-ring-color: rgb(var(--color-secondary-500) / var(--tw-ring-opacity))}:is(.dark .variant-outline-tertiary){--tw-ring-opacity: 1;--tw-ring-color: rgb(var(--color-tertiary-500) / var(--tw-ring-opacity))}:is(.dark .variant-outline-success){--tw-ring-opacity: 1;--tw-ring-color: rgb(var(--color-success-500) / var(--tw-ring-opacity))}:is(.dark .variant-outline-warning){--tw-ring-opacity: 1;--tw-ring-color: rgb(var(--color-warning-500) / var(--tw-ring-opacity))}:is(.dark .variant-outline-error){--tw-ring-opacity: 1;--tw-ring-color: rgb(var(--color-error-500) / var(--tw-ring-opacity))}:is(.dark .variant-outline),:is(.dark .variant-outline-surface){--tw-ring-opacity: 1;--tw-ring-color: rgb(var(--color-surface-500) / var(--tw-ring-opacity))}.variant-filled{background-color:rgb(var(--color-surface-900));color:rgb(var(--color-surface-50))}.dark .variant-filled{background-color:rgb(var(--color-surface-50));color:rgb(var(--color-surface-900))}.variant-filled-primary{--tw-bg-opacity: 1;background-color:rgb(var(--color-primary-500) / var(--tw-bg-opacity));color:rgb(var(--on-primary))}:is(.dark .variant-filled-primary){--tw-bg-opacity: 1;background-color:rgb(var(--color-primary-500) / var(--tw-bg-opacity));color:rgb(var(--on-primary))}.variant-filled-secondary{--tw-bg-opacity: 1;background-color:rgb(var(--color-secondary-500) / var(--tw-bg-opacity));color:rgb(var(--on-secondary))}:is(.dark .variant-filled-secondary){--tw-bg-opacity: 1;background-color:rgb(var(--color-secondary-500) / var(--tw-bg-opacity));color:rgb(var(--on-secondary))}:is(.dark .variant-filled-tertiary){--tw-bg-opacity: 1;background-color:rgb(var(--color-tertiary-500) / var(--tw-bg-opacity));color:rgb(var(--on-tertiary))}:is(.dark .variant-filled-success){--tw-bg-opacity: 1;background-color:rgb(var(--color-success-500) / var(--tw-bg-opacity));color:rgb(var(--on-success))}:is(.dark .variant-filled-warning){--tw-bg-opacity: 1;background-color:rgb(var(--color-warning-500) / var(--tw-bg-opacity));color:rgb(var(--on-warning))}:is(.dark .variant-filled-error){--tw-bg-opacity: 1;background-color:rgb(var(--color-error-500) / var(--tw-bg-opacity));color:rgb(var(--on-error))}.variant-filled-surface{background-color:rgb(var(--color-surface-400));color:rgb(var(--on-surface))}.dark .variant-filled-surface{background-color:rgb(var(--color-surface-500))}:is(.dark .variant-filled-surface){color:rgb(var(--on-surface))}:is(.dark .variant-ringed){--tw-ring-opacity: 1;--tw-ring-color: rgb(var(--color-surface-500) / var(--tw-ring-opacity));background-color:transparent}:is(.dark .variant-ringed-primary){--tw-ring-opacity: 1;--tw-ring-color: rgb(var(--color-primary-500) / var(--tw-ring-opacity));background-color:transparent}:is(.dark .variant-ringed-secondary){--tw-ring-opacity: 1;--tw-ring-color: rgb(var(--color-secondary-500) / var(--tw-ring-opacity));background-color:transparent}:is(.dark .variant-ringed-tertiary){--tw-ring-opacity: 1;--tw-ring-color: rgb(var(--color-tertiary-500) / var(--tw-ring-opacity));background-color:transparent}:is(.dark .variant-ringed-success){--tw-ring-opacity: 1;--tw-ring-color: rgb(var(--color-success-500) / var(--tw-ring-opacity));background-color:transparent}:is(.dark .variant-ringed-warning){--tw-ring-opacity: 1;--tw-ring-color: rgb(var(--color-warning-500) / var(--tw-ring-opacity));background-color:transparent}:is(.dark .variant-ringed-error){--tw-ring-opacity: 1;--tw-ring-color: rgb(var(--color-error-500) / var(--tw-ring-opacity));background-color:transparent}:is(.dark .variant-ringed-surface){--tw-ring-opacity: 1;--tw-ring-color: rgb(var(--color-surface-500) / var(--tw-ring-opacity));background-color:transparent}:is(.dark .variant-ghost-primary){--tw-ring-opacity: 1;--tw-ring-color: rgb(var(--color-primary-500) / var(--tw-ring-opacity));background-color:rgb(var(--color-primary-500) / .2)}:is(.dark .variant-ghost-secondary){--tw-ring-opacity: 1;--tw-ring-color: rgb(var(--color-secondary-500) / var(--tw-ring-opacity));background-color:rgb(var(--color-secondary-500) / .2)}:is(.dark .variant-ghost-tertiary){--tw-ring-opacity: 1;--tw-ring-color: rgb(var(--color-tertiary-500) / var(--tw-ring-opacity));background-color:rgb(var(--color-tertiary-500) / .2)}:is(.dark .variant-ghost-success){--tw-ring-opacity: 1;--tw-ring-color: rgb(var(--color-success-500) / var(--tw-ring-opacity));background-color:rgb(var(--color-success-500) / .2)}:is(.dark .variant-ghost-warning){--tw-ring-opacity: 1;--tw-ring-color: rgb(var(--color-warning-500) / var(--tw-ring-opacity));background-color:rgb(var(--color-warning-500) / .2)}:is(.dark .variant-ghost-error){--tw-ring-opacity: 1;--tw-ring-color: rgb(var(--color-error-500) / var(--tw-ring-opacity));background-color:rgb(var(--color-error-500) / .2)}.variant-ghost,.variant-ghost-surface{--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);--tw-ring-inset: inset;--tw-ring-opacity: 1;--tw-ring-color: rgb(var(--color-surface-500) / var(--tw-ring-opacity));background-color:rgb(var(--color-surface-500) / .2)}:is(.dark .variant-ghost),:is(.dark .variant-ghost-surface){--tw-ring-opacity: 1;--tw-ring-color: rgb(var(--color-surface-500) / var(--tw-ring-opacity));background-color:rgb(var(--color-surface-500) / .2)}.dark .variant-soft-primary{color:rgb(var(--color-primary-200))}:is(.dark .variant-soft-primary){background-color:rgb(var(--color-primary-500) / .2)}.dark .variant-soft-secondary{color:rgb(var(--color-secondary-200))}:is(.dark .variant-soft-secondary){background-color:rgb(var(--color-secondary-500) / .2)}.dark .variant-soft-tertiary{color:rgb(var(--color-tertiary-200))}:is(.dark .variant-soft-tertiary){background-color:rgb(var(--color-tertiary-500) / .2)}.dark .variant-soft-success{color:rgb(var(--color-success-200))}:is(.dark .variant-soft-success){background-color:rgb(var(--color-success-500) / .2)}.dark .variant-soft-warning{color:rgb(var(--color-warning-200))}:is(.dark .variant-soft-warning){background-color:rgb(var(--color-warning-500) / .2)}.dark .variant-soft-error{color:rgb(var(--color-error-200))}:is(.dark .variant-soft-error){background-color:rgb(var(--color-error-500) / .2)}.variant-soft,.variant-soft-surface{background-color:rgb(var(--color-surface-400) / .2);--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color) !important;--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color) !important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)!important;color:rgb(var(--color-surface-700))}.dark .variant-soft,.dark .variant-soft-surface{color:rgb(var(--color-surface-200))}:is(.dark .variant-soft),:is(.dark .variant-soft-surface){background-color:rgb(var(--color-surface-500) / .2)}:is(.dark .variant-glass-primary){background-color:rgb(var(--color-primary-500) / .2)}:is(.dark .variant-glass-secondary){background-color:rgb(var(--color-secondary-500) / .2)}:is(.dark .variant-glass-tertiary){background-color:rgb(var(--color-tertiary-500) / .2)}:is(.dark .variant-glass-success){background-color:rgb(var(--color-success-500) / .2)}:is(.dark .variant-glass-warning){background-color:rgb(var(--color-warning-500) / .2)}:is(.dark .variant-glass-error){background-color:rgb(var(--color-error-500) / .2)}:is(.dark .variant-glass-surface){background-color:rgb(var(--color-surface-500) / .2)}:is(.dark .variant-glass){background-color:rgb(var(--color-surface-900) / .3)}@media (min-width: 768px){.h2{font-size:2.25rem;line-height:2.5rem}.h3{font-size:1.5rem;line-height:2rem}.h4{font-size:1.25rem;line-height:1.75rem}.h5{font-size:1.125rem;line-height:1.75rem}.h6{font-size:1rem;line-height:1.5rem}.\!legend{font-size:1.5rem!important;line-height:2rem!important}.legend{font-size:1.5rem;line-height:2rem}.table tbody td{white-space:normal}}@media (min-width: 1024px){.alert{flex-direction:row;align-items:center}.alert>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse));--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.-left-full{left:-100%}.bottom-0{bottom:0}.left-0{left:0}.right-0{right:0}.top-0{top:0}.isolate{isolation:isolate}.z-10{z-index:10}.z-40{z-index:40}.z-\[1\]{z-index:1}.z-\[888\]{z-index:888}.z-\[999\]{z-index:999}.-mt-\[15px\]{margin-top:-15px}.mb-4{margin-bottom:1rem}.ml-12{margin-left:3rem}.ml-16{margin-left:4rem}.ml-3{margin-left:.75rem}.ml-4{margin-left:1rem}.ml-8{margin-left:2rem}.mr-2{margin-right:.5rem}.mt-\[15px\]{margin-top:15px}.box-border{box-sizing:border-box}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.contents{display:contents}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.h-0{height:0px}.h-10{height:2.5rem}.h-2{height:.5rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-\[50\%\]{height:50%}.h-auto{height:auto}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.max-h-\[200px\]{max-height:200px}.min-h-full{min-height:100%}.w-0{width:0px}.w-12{width:3rem}.w-16{width:4rem}.w-20{width:5rem}.w-24{width:6rem}.w-3{width:.75rem}.w-36{width:9rem}.w-5{width:1.25rem}.w-\[50\%\]{width:50%}.w-\[70\%\]{width:70%}.w-\[90\%\]{width:90%}.w-auto{width:auto}.w-full{width:100%}.min-w-\[150px\]{min-width:150px}.max-w-\[640px\]{max-width:640px}.flex-1{flex:1 1 0%}.flex-auto{flex:1 1 auto}.flex-none{flex:none}.origin-\[50\%_50\%\]{transform-origin:50% 50%}.translate-x-\[100\%\],.translate-x-full{--tw-translate-x: 100%;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))}.-rotate-90{--tw-rotate: -90deg;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))}.rotate-180{--tw-rotate: 180deg;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))}.scale-\[0\.8\]{--tw-scale-x: .8;--tw-scale-y: .8;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))}.scale-\[105\%\]{--tw-scale-x: 105%;--tw-scale-y: 105%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.\!cursor-not-allowed{cursor:not-allowed!important}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.resize{resize:both}.list-none{list-style-type:none}.grid-cols-\[auto_1fr_auto\]{grid-template-columns:auto 1fr auto}.grid-rows-\[auto_1fr_auto\]{grid-template-rows:auto 1fr auto}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.items-stretch{align-items:stretch}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0{gap:0px}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-y-2{row-gap:.5rem}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-hidden{overflow-y:hidden}.whitespace-pre-wrap{white-space:pre-wrap}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.border{border-width:1px}.border-0{border-width:0px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.bg-neutral-900\/90{background-color:#171717e6}.bg-surface-400{--tw-bg-opacity: 1;background-color:rgb(var(--color-surface-400) / var(--tw-bg-opacity))}.bg-surface-50{--tw-bg-opacity: 1;background-color:rgb(var(--color-surface-50) / var(--tw-bg-opacity))}.bg-surface-900{--tw-bg-opacity: 1;background-color:rgb(var(--color-surface-900) / var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-white\/75{background-color:#ffffffbf}.fill-current{fill:currentColor}.fill-surface-50{fill:rgb(var(--color-surface-50) / 1)}.fill-surface-900{fill:rgb(var(--color-surface-900) / 1)}.fill-transparent{fill:transparent}.stroke-surface-500\/30{stroke:rgb(var(--color-surface-500) / .3)}.stroke-surface-900{stroke:rgb(var(--color-surface-900) / 1)}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0{padding:0}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-4{padding:1rem}.\!px-3{padding-left:.75rem!important;padding-right:.75rem!important}.\!py-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.\!py-1\.5{padding-top:.375rem!important;padding-bottom:.375rem!important}.px-4{padding-left:1rem;padding-right:1rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pl-4{padding-left:1rem}.pt-1{padding-top:.25rem}.text-center{text-align:center}.text-start{text-align:start}.\!text-sm{font-size:.875rem!important;line-height:1.25rem!important}.text-2xl{font-size:1.5rem;line-height:2rem}.text-base{font-size:1rem;line-height:1.5rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.\!text-white{--tw-text-opacity: 1 !important;color:rgb(255 255 255 / var(--tw-text-opacity))!important}.text-primary-500{--tw-text-opacity: 1;color:rgb(var(--color-primary-500) / var(--tw-text-opacity))}.text-surface-50{--tw-text-opacity: 1;color:rgb(var(--color-surface-50) / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-white\/50{color:#ffffff80}.accent-surface-900{accent-color:rgb(var(--color-surface-900) / 1)}.opacity-0{opacity:0}.opacity-10{opacity:.1}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-75{opacity:.75}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.-outline-offset-\[3px\]{outline-offset:-3px}.\!ring-0{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color) !important;--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color) !important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)!important}.ring{--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(3px + 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)}.ring-\[1px\]{--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)}.ring-surface-500\/30{--tw-ring-color: rgb(var(--color-surface-500) / .3)}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow{--tw-drop-shadow: drop-shadow(0 1px 2px rgb(0 0 0 / .1)) drop-shadow(0 1px 1px rgb(0 0 0 / .06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.invert{--tw-invert: invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\[stroke-dashoffset\]{transition-property:stroke-dashoffset;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\[width\]{transition-property:width;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-100{transition-duration:.1s}.duration-300{transition-duration:.3s}.duration-\[200ms\]{transition-duration:.2s}.dark .bg-primary-backdrop-token{background-color:rgb(var(--color-primary-900) / .7)}.bg-primary-hover-token:hover,.dark .bg-primary-hover-token:hover{background-color:rgb(var(--color-primary-500) / .1)}.bg-primary-active-token{background-color:rgb(var(--color-primary-500))!important;color:rgb(var(--on-primary));fill:rgb(var(--on-primary))}.dark .bg-primary-50-900-token{background-color:rgb(var(--color-primary-900))}.dark .bg-primary-100-800-token{background-color:rgb(var(--color-primary-800))}.dark .bg-primary-200-700-token{background-color:rgb(var(--color-primary-700))}.dark .bg-primary-300-600-token{background-color:rgb(var(--color-primary-600))}.dark .bg-primary-400-500-token{background-color:rgb(var(--color-primary-500))}.dark .bg-primary-900-50-token{background-color:rgb(var(--color-primary-50))}.dark .bg-primary-800-100-token{background-color:rgb(var(--color-primary-100))}.dark .bg-primary-700-200-token{background-color:rgb(var(--color-primary-200))}.dark .bg-primary-600-300-token{background-color:rgb(var(--color-primary-300))}.dark .bg-primary-500-400-token{background-color:rgb(var(--color-primary-400))}.dark .bg-secondary-backdrop-token{background-color:rgb(var(--color-secondary-900) / .7)}.dark .bg-secondary-hover-token:hover{background-color:rgb(var(--color-secondary-500) / .1)}.dark .bg-secondary-50-900-token{background-color:rgb(var(--color-secondary-900))}.dark .bg-secondary-100-800-token{background-color:rgb(var(--color-secondary-800))}.dark .bg-secondary-200-700-token{background-color:rgb(var(--color-secondary-700))}.dark .bg-secondary-300-600-token{background-color:rgb(var(--color-secondary-600))}.dark .bg-secondary-400-500-token{background-color:rgb(var(--color-secondary-500))}.dark .bg-secondary-900-50-token{background-color:rgb(var(--color-secondary-50))}.dark .bg-secondary-800-100-token{background-color:rgb(var(--color-secondary-100))}.dark .bg-secondary-700-200-token{background-color:rgb(var(--color-secondary-200))}.dark .bg-secondary-600-300-token{background-color:rgb(var(--color-secondary-300))}.dark .bg-secondary-500-400-token{background-color:rgb(var(--color-secondary-400))}.dark .bg-tertiary-backdrop-token{background-color:rgb(var(--color-tertiary-900) / .7)}.dark .bg-tertiary-hover-token:hover{background-color:rgb(var(--color-tertiary-500) / .1)}.dark .bg-tertiary-50-900-token{background-color:rgb(var(--color-tertiary-900))}.dark .bg-tertiary-100-800-token{background-color:rgb(var(--color-tertiary-800))}.dark .bg-tertiary-200-700-token{background-color:rgb(var(--color-tertiary-700))}.dark .bg-tertiary-300-600-token{background-color:rgb(var(--color-tertiary-600))}.dark .bg-tertiary-400-500-token{background-color:rgb(var(--color-tertiary-500))}.dark .bg-tertiary-900-50-token{background-color:rgb(var(--color-tertiary-50))}.dark .bg-tertiary-800-100-token{background-color:rgb(var(--color-tertiary-100))}.dark .bg-tertiary-700-200-token{background-color:rgb(var(--color-tertiary-200))}.dark .bg-tertiary-600-300-token{background-color:rgb(var(--color-tertiary-300))}.dark .bg-tertiary-500-400-token{background-color:rgb(var(--color-tertiary-400))}.dark .bg-success-backdrop-token{background-color:rgb(var(--color-success-900) / .7)}.dark .bg-success-hover-token:hover{background-color:rgb(var(--color-success-500) / .1)}.dark .bg-success-50-900-token{background-color:rgb(var(--color-success-900))}.dark .bg-success-100-800-token{background-color:rgb(var(--color-success-800))}.dark .bg-success-200-700-token{background-color:rgb(var(--color-success-700))}.dark .bg-success-300-600-token{background-color:rgb(var(--color-success-600))}.dark .bg-success-400-500-token{background-color:rgb(var(--color-success-500))}.dark .bg-success-900-50-token{background-color:rgb(var(--color-success-50))}.dark .bg-success-800-100-token{background-color:rgb(var(--color-success-100))}.dark .bg-success-700-200-token{background-color:rgb(var(--color-success-200))}.dark .bg-success-600-300-token{background-color:rgb(var(--color-success-300))}.dark .bg-success-500-400-token{background-color:rgb(var(--color-success-400))}.dark .bg-warning-backdrop-token{background-color:rgb(var(--color-warning-900) / .7)}.dark .bg-warning-hover-token:hover{background-color:rgb(var(--color-warning-500) / .1)}.dark .bg-warning-50-900-token{background-color:rgb(var(--color-warning-900))}.dark .bg-warning-100-800-token{background-color:rgb(var(--color-warning-800))}.dark .bg-warning-200-700-token{background-color:rgb(var(--color-warning-700))}.dark .bg-warning-300-600-token{background-color:rgb(var(--color-warning-600))}.dark .bg-warning-400-500-token{background-color:rgb(var(--color-warning-500))}.dark .bg-warning-900-50-token{background-color:rgb(var(--color-warning-50))}.dark .bg-warning-800-100-token{background-color:rgb(var(--color-warning-100))}.dark .bg-warning-700-200-token{background-color:rgb(var(--color-warning-200))}.dark .bg-warning-600-300-token{background-color:rgb(var(--color-warning-300))}.dark .bg-warning-500-400-token{background-color:rgb(var(--color-warning-400))}.dark .bg-error-backdrop-token{background-color:rgb(var(--color-error-900) / .7)}.dark .bg-error-hover-token:hover{background-color:rgb(var(--color-error-500) / .1)}.dark .bg-error-50-900-token{background-color:rgb(var(--color-error-900))}.dark .bg-error-100-800-token{background-color:rgb(var(--color-error-800))}.dark .bg-error-200-700-token{background-color:rgb(var(--color-error-700))}.dark .bg-error-300-600-token{background-color:rgb(var(--color-error-600))}.dark .bg-error-400-500-token{background-color:rgb(var(--color-error-500))}.dark .bg-error-900-50-token{background-color:rgb(var(--color-error-50))}.dark .bg-error-800-100-token{background-color:rgb(var(--color-error-100))}.dark .bg-error-700-200-token{background-color:rgb(var(--color-error-200))}.dark .bg-error-600-300-token{background-color:rgb(var(--color-error-300))}.dark .bg-error-500-400-token{background-color:rgb(var(--color-error-400))}.bg-surface-backdrop-token{background-color:rgb(var(--color-surface-400) / .7)}.dark .bg-surface-backdrop-token{background-color:rgb(var(--color-surface-900) / .7)}.dark .bg-surface-hover-token:hover{background-color:rgb(var(--color-surface-500) / .1)}.dark .bg-surface-50-900-token{background-color:rgb(var(--color-surface-900))}.bg-surface-100-800-token{background-color:rgb(var(--color-surface-100))}.dark .bg-surface-100-800-token{background-color:rgb(var(--color-surface-800))}.bg-surface-200-700-token{background-color:rgb(var(--color-surface-200))}.dark .bg-surface-200-700-token{background-color:rgb(var(--color-surface-700))}.dark .bg-surface-300-600-token{background-color:rgb(var(--color-surface-600))}.bg-surface-400-500-token{background-color:rgb(var(--color-surface-400))}.dark .bg-surface-400-500-token{background-color:rgb(var(--color-surface-500))}.bg-surface-900-50-token{background-color:rgb(var(--color-surface-900))}.dark .bg-surface-900-50-token{background-color:rgb(var(--color-surface-50))}.dark .bg-surface-800-100-token{background-color:rgb(var(--color-surface-100))}.dark .bg-surface-700-200-token{background-color:rgb(var(--color-surface-200))}.dark .bg-surface-600-300-token{background-color:rgb(var(--color-surface-300))}.dark .bg-surface-500-400-token{background-color:rgb(var(--color-surface-400))}.border-token{border-width:var(--theme-border-base)}.dark .border-primary-50-900-token,.dark .divide-primary-50-900-token{border-color:rgb(var(--color-primary-900))}.dark .border-primary-100-800-token,.dark .divide-primary-100-800-token{border-color:rgb(var(--color-primary-800))}.dark .border-primary-200-700-token,.dark .divide-primary-200-700-token{border-color:rgb(var(--color-primary-700))}.dark .border-primary-300-600-token,.dark .divide-primary-300-600-token{border-color:rgb(var(--color-primary-600))}.dark .border-primary-400-500-token,.dark .divide-primary-400-500-token{border-color:rgb(var(--color-primary-500))}.dark .border-primary-900-50-token,.dark .divide-primary-900-50-token{border-color:rgb(var(--color-primary-50))}.dark .border-primary-800-100-token,.dark .divide-primary-800-100-token{border-color:rgb(var(--color-primary-100))}.dark .border-primary-700-200-token,.dark .divide-primary-700-200-token{border-color:rgb(var(--color-primary-200))}.dark .border-primary-600-300-token,.dark .divide-primary-600-300-token{border-color:rgb(var(--color-primary-300))}.dark .border-primary-500-400-token,.dark .divide-primary-500-400-token{border-color:rgb(var(--color-primary-400))}.dark .border-secondary-50-900-token,.dark .divide-secondary-50-900-token{border-color:rgb(var(--color-secondary-900))}.dark .border-secondary-100-800-token,.dark .divide-secondary-100-800-token{border-color:rgb(var(--color-secondary-800))}.dark .border-secondary-200-700-token,.dark .divide-secondary-200-700-token{border-color:rgb(var(--color-secondary-700))}.dark .border-secondary-300-600-token,.dark .divide-secondary-300-600-token{border-color:rgb(var(--color-secondary-600))}.dark .border-secondary-400-500-token,.dark .divide-secondary-400-500-token{border-color:rgb(var(--color-secondary-500))}.dark .border-secondary-900-50-token,.dark .divide-secondary-900-50-token{border-color:rgb(var(--color-secondary-50))}.dark .border-secondary-800-100-token,.dark .divide-secondary-800-100-token{border-color:rgb(var(--color-secondary-100))}.dark .border-secondary-700-200-token,.dark .divide-secondary-700-200-token{border-color:rgb(var(--color-secondary-200))}.dark .border-secondary-600-300-token,.dark .divide-secondary-600-300-token{border-color:rgb(var(--color-secondary-300))}.dark .border-secondary-500-400-token,.dark .divide-secondary-500-400-token{border-color:rgb(var(--color-secondary-400))}.dark .border-tertiary-50-900-token,.dark .divide-tertiary-50-900-token{border-color:rgb(var(--color-tertiary-900))}.dark .border-tertiary-100-800-token,.dark .divide-tertiary-100-800-token{border-color:rgb(var(--color-tertiary-800))}.dark .border-tertiary-200-700-token,.dark .divide-tertiary-200-700-token{border-color:rgb(var(--color-tertiary-700))}.dark .border-tertiary-300-600-token,.dark .divide-tertiary-300-600-token{border-color:rgb(var(--color-tertiary-600))}.dark .border-tertiary-400-500-token,.dark .divide-tertiary-400-500-token{border-color:rgb(var(--color-tertiary-500))}.dark .border-tertiary-900-50-token,.dark .divide-tertiary-900-50-token{border-color:rgb(var(--color-tertiary-50))}.dark .border-tertiary-800-100-token,.dark .divide-tertiary-800-100-token{border-color:rgb(var(--color-tertiary-100))}.dark .border-tertiary-700-200-token,.dark .divide-tertiary-700-200-token{border-color:rgb(var(--color-tertiary-200))}.dark .border-tertiary-600-300-token,.dark .divide-tertiary-600-300-token{border-color:rgb(var(--color-tertiary-300))}.dark .border-tertiary-500-400-token,.dark .divide-tertiary-500-400-token{border-color:rgb(var(--color-tertiary-400))}.dark .border-success-50-900-token,.dark .divide-success-50-900-token{border-color:rgb(var(--color-success-900))}.dark .border-success-100-800-token,.dark .divide-success-100-800-token{border-color:rgb(var(--color-success-800))}.dark .border-success-200-700-token,.dark .divide-success-200-700-token{border-color:rgb(var(--color-success-700))}.dark .border-success-300-600-token,.dark .divide-success-300-600-token{border-color:rgb(var(--color-success-600))}.dark .border-success-400-500-token,.dark .divide-success-400-500-token{border-color:rgb(var(--color-success-500))}.dark .border-success-900-50-token,.dark .divide-success-900-50-token{border-color:rgb(var(--color-success-50))}.dark .border-success-800-100-token,.dark .divide-success-800-100-token{border-color:rgb(var(--color-success-100))}.dark .border-success-700-200-token,.dark .divide-success-700-200-token{border-color:rgb(var(--color-success-200))}.dark .border-success-600-300-token,.dark .divide-success-600-300-token{border-color:rgb(var(--color-success-300))}.dark .border-success-500-400-token,.dark .divide-success-500-400-token{border-color:rgb(var(--color-success-400))}.dark .border-warning-50-900-token,.dark .divide-warning-50-900-token{border-color:rgb(var(--color-warning-900))}.dark .border-warning-100-800-token,.dark .divide-warning-100-800-token{border-color:rgb(var(--color-warning-800))}.dark .border-warning-200-700-token,.dark .divide-warning-200-700-token{border-color:rgb(var(--color-warning-700))}.dark .border-warning-300-600-token,.dark .divide-warning-300-600-token{border-color:rgb(var(--color-warning-600))}.dark .border-warning-400-500-token,.dark .divide-warning-400-500-token{border-color:rgb(var(--color-warning-500))}.dark .border-warning-900-50-token,.dark .divide-warning-900-50-token{border-color:rgb(var(--color-warning-50))}.dark .border-warning-800-100-token,.dark .divide-warning-800-100-token{border-color:rgb(var(--color-warning-100))}.dark .border-warning-700-200-token,.dark .divide-warning-700-200-token{border-color:rgb(var(--color-warning-200))}.dark .border-warning-600-300-token,.dark .divide-warning-600-300-token{border-color:rgb(var(--color-warning-300))}.dark .border-warning-500-400-token,.dark .divide-warning-500-400-token{border-color:rgb(var(--color-warning-400))}.dark .border-error-50-900-token,.dark .divide-error-50-900-token{border-color:rgb(var(--color-error-900))}.dark .border-error-100-800-token,.dark .divide-error-100-800-token{border-color:rgb(var(--color-error-800))}.dark .border-error-200-700-token,.dark .divide-error-200-700-token{border-color:rgb(var(--color-error-700))}.dark .border-error-300-600-token,.dark .divide-error-300-600-token{border-color:rgb(var(--color-error-600))}.dark .border-error-400-500-token,.dark .divide-error-400-500-token{border-color:rgb(var(--color-error-500))}.dark .border-error-900-50-token,.dark .divide-error-900-50-token{border-color:rgb(var(--color-error-50))}.dark .border-error-800-100-token,.dark .divide-error-800-100-token{border-color:rgb(var(--color-error-100))}.dark .border-error-700-200-token,.dark .divide-error-700-200-token{border-color:rgb(var(--color-error-200))}.dark .border-error-600-300-token,.dark .divide-error-600-300-token{border-color:rgb(var(--color-error-300))}.dark .border-error-500-400-token,.dark .divide-error-500-400-token{border-color:rgb(var(--color-error-400))}.dark .border-surface-50-900-token,.dark .divide-surface-50-900-token{border-color:rgb(var(--color-surface-900))}.dark .border-surface-100-800-token,.dark .divide-surface-100-800-token{border-color:rgb(var(--color-surface-800))}.dark .border-surface-200-700-token,.dark .divide-surface-200-700-token{border-color:rgb(var(--color-surface-700))}.dark .border-surface-300-600-token,.dark .divide-surface-300-600-token{border-color:rgb(var(--color-surface-600))}.border-surface-400-500-token{border-color:rgb(var(--color-surface-400))}.dark .border-surface-400-500-token,.dark .divide-surface-400-500-token{border-color:rgb(var(--color-surface-500))}.border-surface-900-50-token{border-color:rgb(var(--color-surface-900))}.dark .border-surface-900-50-token,.dark .divide-surface-900-50-token{border-color:rgb(var(--color-surface-50))}.dark .border-surface-800-100-token,.dark .divide-surface-800-100-token{border-color:rgb(var(--color-surface-100))}.dark .border-surface-700-200-token,.dark .divide-surface-700-200-token{border-color:rgb(var(--color-surface-200))}.dark .border-surface-600-300-token,.dark .divide-surface-600-300-token{border-color:rgb(var(--color-surface-300))}.dark .border-surface-500-400-token,.dark .divide-surface-500-400-token{border-color:rgb(var(--color-surface-400))}.rounded-token{border-radius:var(--theme-rounded-base)}.rounded-container-token{border-radius:var(--theme-rounded-container)}.rounded-tl-container-token{border-top-left-radius:var(--theme-rounded-container)}.rounded-tr-container-token{border-top-right-radius:var(--theme-rounded-container)}.rounded-bl-container-token{border-bottom-left-radius:var(--theme-rounded-container)}.rounded-br-container-token{border-bottom-right-radius:var(--theme-rounded-container)}.fill-token{fill:rgba(var(--theme-font-color-base))}.dark .fill-token{fill:rgba(var(--theme-font-color-dark))}.text-token{color:rgba(var(--theme-font-color-base))}.dark .text-token{color:rgba(var(--theme-font-color-dark))}.dark .text-primary-50-900-token{color:rgb(var(--color-primary-900))}.dark .decoration-primary-50-900-token{text-decoration-color:rgb(var(--color-primary-900))}.dark .text-primary-100-800-token{color:rgb(var(--color-primary-800))}.dark .decoration-primary-100-800-token{text-decoration-color:rgb(var(--color-primary-800))}.dark .text-primary-200-700-token{color:rgb(var(--color-primary-700))}.dark .decoration-primary-200-700-token{text-decoration-color:rgb(var(--color-primary-700))}.dark .text-primary-300-600-token{color:rgb(var(--color-primary-600))}.dark .decoration-primary-300-600-token{text-decoration-color:rgb(var(--color-primary-600))}.dark .text-primary-400-500-token{color:rgb(var(--color-primary-500))}.dark .decoration-primary-400-500-token{text-decoration-color:rgb(var(--color-primary-500))}.dark .text-primary-900-50-token{color:rgb(var(--color-primary-50))}.dark .decoration-primary-900-50-token{text-decoration-color:rgb(var(--color-primary-50))}.dark .text-primary-800-100-token{color:rgb(var(--color-primary-100))}.dark .decoration-primary-800-100-token{text-decoration-color:rgb(var(--color-primary-100))}.dark .text-primary-700-200-token{color:rgb(var(--color-primary-200))}.dark .decoration-primary-700-200-token{text-decoration-color:rgb(var(--color-primary-200))}.dark .text-primary-600-300-token{color:rgb(var(--color-primary-300))}.dark .decoration-primary-600-300-token{text-decoration-color:rgb(var(--color-primary-300))}.dark .text-primary-500-400-token{color:rgb(var(--color-primary-400))}.dark .decoration-primary-500-400-token{text-decoration-color:rgb(var(--color-primary-400))}.dark .text-secondary-50-900-token{color:rgb(var(--color-secondary-900))}.dark .decoration-secondary-50-900-token{text-decoration-color:rgb(var(--color-secondary-900))}.dark .text-secondary-100-800-token{color:rgb(var(--color-secondary-800))}.dark .decoration-secondary-100-800-token{text-decoration-color:rgb(var(--color-secondary-800))}.dark .text-secondary-200-700-token{color:rgb(var(--color-secondary-700))}.dark .decoration-secondary-200-700-token{text-decoration-color:rgb(var(--color-secondary-700))}.dark .text-secondary-300-600-token{color:rgb(var(--color-secondary-600))}.dark .decoration-secondary-300-600-token{text-decoration-color:rgb(var(--color-secondary-600))}.dark .text-secondary-400-500-token{color:rgb(var(--color-secondary-500))}.dark .decoration-secondary-400-500-token{text-decoration-color:rgb(var(--color-secondary-500))}.dark .text-secondary-900-50-token{color:rgb(var(--color-secondary-50))}.dark .decoration-secondary-900-50-token{text-decoration-color:rgb(var(--color-secondary-50))}.dark .text-secondary-800-100-token{color:rgb(var(--color-secondary-100))}.dark .decoration-secondary-800-100-token{text-decoration-color:rgb(var(--color-secondary-100))}.dark .text-secondary-700-200-token{color:rgb(var(--color-secondary-200))}.dark .decoration-secondary-700-200-token{text-decoration-color:rgb(var(--color-secondary-200))}.dark .text-secondary-600-300-token{color:rgb(var(--color-secondary-300))}.dark .decoration-secondary-600-300-token{text-decoration-color:rgb(var(--color-secondary-300))}.dark .text-secondary-500-400-token{color:rgb(var(--color-secondary-400))}.dark .decoration-secondary-500-400-token{text-decoration-color:rgb(var(--color-secondary-400))}.dark .text-tertiary-50-900-token{color:rgb(var(--color-tertiary-900))}.dark .decoration-tertiary-50-900-token{text-decoration-color:rgb(var(--color-tertiary-900))}.dark .text-tertiary-100-800-token{color:rgb(var(--color-tertiary-800))}.dark .decoration-tertiary-100-800-token{text-decoration-color:rgb(var(--color-tertiary-800))}.dark .text-tertiary-200-700-token{color:rgb(var(--color-tertiary-700))}.dark .decoration-tertiary-200-700-token{text-decoration-color:rgb(var(--color-tertiary-700))}.dark .text-tertiary-300-600-token{color:rgb(var(--color-tertiary-600))}.dark .decoration-tertiary-300-600-token{text-decoration-color:rgb(var(--color-tertiary-600))}.dark .text-tertiary-400-500-token{color:rgb(var(--color-tertiary-500))}.dark .decoration-tertiary-400-500-token{text-decoration-color:rgb(var(--color-tertiary-500))}.dark .text-tertiary-900-50-token{color:rgb(var(--color-tertiary-50))}.dark .decoration-tertiary-900-50-token{text-decoration-color:rgb(var(--color-tertiary-50))}.dark .text-tertiary-800-100-token{color:rgb(var(--color-tertiary-100))}.dark .decoration-tertiary-800-100-token{text-decoration-color:rgb(var(--color-tertiary-100))}.dark .text-tertiary-700-200-token{color:rgb(var(--color-tertiary-200))}.dark .decoration-tertiary-700-200-token{text-decoration-color:rgb(var(--color-tertiary-200))}.dark .text-tertiary-600-300-token{color:rgb(var(--color-tertiary-300))}.dark .decoration-tertiary-600-300-token{text-decoration-color:rgb(var(--color-tertiary-300))}.dark .text-tertiary-500-400-token{color:rgb(var(--color-tertiary-400))}.dark .decoration-tertiary-500-400-token{text-decoration-color:rgb(var(--color-tertiary-400))}.dark .text-success-50-900-token{color:rgb(var(--color-success-900))}.dark .decoration-success-50-900-token{text-decoration-color:rgb(var(--color-success-900))}.dark .text-success-100-800-token{color:rgb(var(--color-success-800))}.dark .decoration-success-100-800-token{text-decoration-color:rgb(var(--color-success-800))}.dark .text-success-200-700-token{color:rgb(var(--color-success-700))}.dark .decoration-success-200-700-token{text-decoration-color:rgb(var(--color-success-700))}.dark .text-success-300-600-token{color:rgb(var(--color-success-600))}.dark .decoration-success-300-600-token{text-decoration-color:rgb(var(--color-success-600))}.dark .text-success-400-500-token{color:rgb(var(--color-success-500))}.dark .decoration-success-400-500-token{text-decoration-color:rgb(var(--color-success-500))}.dark .text-success-900-50-token{color:rgb(var(--color-success-50))}.dark .decoration-success-900-50-token{text-decoration-color:rgb(var(--color-success-50))}.dark .text-success-800-100-token{color:rgb(var(--color-success-100))}.dark .decoration-success-800-100-token{text-decoration-color:rgb(var(--color-success-100))}.dark .text-success-700-200-token{color:rgb(var(--color-success-200))}.dark .decoration-success-700-200-token{text-decoration-color:rgb(var(--color-success-200))}.dark .text-success-600-300-token{color:rgb(var(--color-success-300))}.dark .decoration-success-600-300-token{text-decoration-color:rgb(var(--color-success-300))}.dark .text-success-500-400-token{color:rgb(var(--color-success-400))}.dark .decoration-success-500-400-token{text-decoration-color:rgb(var(--color-success-400))}.dark .text-warning-50-900-token{color:rgb(var(--color-warning-900))}.dark .decoration-warning-50-900-token{text-decoration-color:rgb(var(--color-warning-900))}.dark .text-warning-100-800-token{color:rgb(var(--color-warning-800))}.dark .decoration-warning-100-800-token{text-decoration-color:rgb(var(--color-warning-800))}.dark .text-warning-200-700-token{color:rgb(var(--color-warning-700))}.dark .decoration-warning-200-700-token{text-decoration-color:rgb(var(--color-warning-700))}.dark .text-warning-300-600-token{color:rgb(var(--color-warning-600))}.dark .decoration-warning-300-600-token{text-decoration-color:rgb(var(--color-warning-600))}.dark .text-warning-400-500-token{color:rgb(var(--color-warning-500))}.dark .decoration-warning-400-500-token{text-decoration-color:rgb(var(--color-warning-500))}.dark .text-warning-900-50-token{color:rgb(var(--color-warning-50))}.dark .decoration-warning-900-50-token{text-decoration-color:rgb(var(--color-warning-50))}.dark .text-warning-800-100-token{color:rgb(var(--color-warning-100))}.dark .decoration-warning-800-100-token{text-decoration-color:rgb(var(--color-warning-100))}.dark .text-warning-700-200-token{color:rgb(var(--color-warning-200))}.dark .decoration-warning-700-200-token{text-decoration-color:rgb(var(--color-warning-200))}.dark .text-warning-600-300-token{color:rgb(var(--color-warning-300))}.dark .decoration-warning-600-300-token{text-decoration-color:rgb(var(--color-warning-300))}.dark .text-warning-500-400-token{color:rgb(var(--color-warning-400))}.dark .decoration-warning-500-400-token{text-decoration-color:rgb(var(--color-warning-400))}.dark .text-error-50-900-token{color:rgb(var(--color-error-900))}.dark .decoration-error-50-900-token{text-decoration-color:rgb(var(--color-error-900))}.dark .text-error-100-800-token{color:rgb(var(--color-error-800))}.dark .decoration-error-100-800-token{text-decoration-color:rgb(var(--color-error-800))}.dark .text-error-200-700-token{color:rgb(var(--color-error-700))}.dark .decoration-error-200-700-token{text-decoration-color:rgb(var(--color-error-700))}.dark .text-error-300-600-token{color:rgb(var(--color-error-600))}.dark .decoration-error-300-600-token{text-decoration-color:rgb(var(--color-error-600))}.dark .text-error-400-500-token{color:rgb(var(--color-error-500))}.dark .decoration-error-400-500-token{text-decoration-color:rgb(var(--color-error-500))}.dark .text-error-900-50-token{color:rgb(var(--color-error-50))}.dark .decoration-error-900-50-token{text-decoration-color:rgb(var(--color-error-50))}.dark .text-error-800-100-token{color:rgb(var(--color-error-100))}.dark .decoration-error-800-100-token{text-decoration-color:rgb(var(--color-error-100))}.dark .text-error-700-200-token{color:rgb(var(--color-error-200))}.dark .decoration-error-700-200-token{text-decoration-color:rgb(var(--color-error-200))}.dark .text-error-600-300-token{color:rgb(var(--color-error-300))}.dark .decoration-error-600-300-token{text-decoration-color:rgb(var(--color-error-300))}.dark .text-error-500-400-token{color:rgb(var(--color-error-400))}.dark .decoration-error-500-400-token{text-decoration-color:rgb(var(--color-error-400))}.dark .text-surface-50-900-token{color:rgb(var(--color-surface-900))}.dark .decoration-surface-50-900-token{text-decoration-color:rgb(var(--color-surface-900))}.dark .text-surface-100-800-token{color:rgb(var(--color-surface-800))}.dark .decoration-surface-100-800-token{text-decoration-color:rgb(var(--color-surface-800))}.dark .text-surface-200-700-token{color:rgb(var(--color-surface-700))}.dark .decoration-surface-200-700-token{text-decoration-color:rgb(var(--color-surface-700))}.dark .text-surface-300-600-token{color:rgb(var(--color-surface-600))}.dark .decoration-surface-300-600-token{text-decoration-color:rgb(var(--color-surface-600))}.dark .text-surface-400-500-token{color:rgb(var(--color-surface-500))}.dark .decoration-surface-400-500-token{text-decoration-color:rgb(var(--color-surface-500))}.dark .text-surface-900-50-token{color:rgb(var(--color-surface-50))}.dark .decoration-surface-900-50-token{text-decoration-color:rgb(var(--color-surface-50))}.dark .text-surface-800-100-token{color:rgb(var(--color-surface-100))}.dark .decoration-surface-800-100-token{text-decoration-color:rgb(var(--color-surface-100))}.dark .text-surface-700-200-token{color:rgb(var(--color-surface-200))}.dark .decoration-surface-700-200-token{text-decoration-color:rgb(var(--color-surface-200))}.dark .text-surface-600-300-token{color:rgb(var(--color-surface-300))}.dark .decoration-surface-600-300-token{text-decoration-color:rgb(var(--color-surface-300))}.dark .text-surface-500-400-token{color:rgb(var(--color-surface-400))}.dark .decoration-surface-500-400-token{text-decoration-color:rgb(var(--color-surface-400))}.dark .ring-outline-token{--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);--tw-ring-inset: inset;--tw-ring-color: rgb(250 250 250 / .05)}.dark .ring-primary-50-900-token{--tw-ring-color: rgb(var(--color-primary-900) / 1)}.dark .ring-primary-100-800-token{--tw-ring-color: rgb(var(--color-primary-800) / 1)}.dark .ring-primary-200-700-token{--tw-ring-color: rgb(var(--color-primary-700) / 1)}.dark .ring-primary-300-600-token{--tw-ring-color: rgb(var(--color-primary-600) / 1)}.dark .ring-primary-400-500-token{--tw-ring-color: rgb(var(--color-primary-500) / 1)}.dark .ring-primary-900-50-token{--tw-ring-color: rgb(var(--color-primary-50) / 1)}.dark .ring-primary-800-100-token{--tw-ring-color: rgb(var(--color-primary-100) / 1)}.dark .ring-primary-700-200-token{--tw-ring-color: rgb(var(--color-primary-200) / 1)}.dark .ring-primary-600-300-token{--tw-ring-color: rgb(var(--color-primary-300) / 1)}.dark .ring-primary-500-400-token{--tw-ring-color: rgb(var(--color-primary-400) / 1)}.dark .ring-secondary-50-900-token{--tw-ring-color: rgb(var(--color-secondary-900) / 1)}.dark .ring-secondary-100-800-token{--tw-ring-color: rgb(var(--color-secondary-800) / 1)}.dark .ring-secondary-200-700-token{--tw-ring-color: rgb(var(--color-secondary-700) / 1)}.dark .ring-secondary-300-600-token{--tw-ring-color: rgb(var(--color-secondary-600) / 1)}.dark .ring-secondary-400-500-token{--tw-ring-color: rgb(var(--color-secondary-500) / 1)}.dark .ring-secondary-900-50-token{--tw-ring-color: rgb(var(--color-secondary-50) / 1)}.dark .ring-secondary-800-100-token{--tw-ring-color: rgb(var(--color-secondary-100) / 1)}.dark .ring-secondary-700-200-token{--tw-ring-color: rgb(var(--color-secondary-200) / 1)}.dark .ring-secondary-600-300-token{--tw-ring-color: rgb(var(--color-secondary-300) / 1)}.dark .ring-secondary-500-400-token{--tw-ring-color: rgb(var(--color-secondary-400) / 1)}.dark .ring-tertiary-50-900-token{--tw-ring-color: rgb(var(--color-tertiary-900) / 1)}.dark .ring-tertiary-100-800-token{--tw-ring-color: rgb(var(--color-tertiary-800) / 1)}.dark .ring-tertiary-200-700-token{--tw-ring-color: rgb(var(--color-tertiary-700) / 1)}.dark .ring-tertiary-300-600-token{--tw-ring-color: rgb(var(--color-tertiary-600) / 1)}.dark .ring-tertiary-400-500-token{--tw-ring-color: rgb(var(--color-tertiary-500) / 1)}.dark .ring-tertiary-900-50-token{--tw-ring-color: rgb(var(--color-tertiary-50) / 1)}.dark .ring-tertiary-800-100-token{--tw-ring-color: rgb(var(--color-tertiary-100) / 1)}.dark .ring-tertiary-700-200-token{--tw-ring-color: rgb(var(--color-tertiary-200) / 1)}.dark .ring-tertiary-600-300-token{--tw-ring-color: rgb(var(--color-tertiary-300) / 1)}.dark .ring-tertiary-500-400-token{--tw-ring-color: rgb(var(--color-tertiary-400) / 1)}.dark .ring-success-50-900-token{--tw-ring-color: rgb(var(--color-success-900) / 1)}.dark .ring-success-100-800-token{--tw-ring-color: rgb(var(--color-success-800) / 1)}.dark .ring-success-200-700-token{--tw-ring-color: rgb(var(--color-success-700) / 1)}.dark .ring-success-300-600-token{--tw-ring-color: rgb(var(--color-success-600) / 1)}.dark .ring-success-400-500-token{--tw-ring-color: rgb(var(--color-success-500) / 1)}.dark .ring-success-900-50-token{--tw-ring-color: rgb(var(--color-success-50) / 1)}.dark .ring-success-800-100-token{--tw-ring-color: rgb(var(--color-success-100) / 1)}.dark .ring-success-700-200-token{--tw-ring-color: rgb(var(--color-success-200) / 1)}.dark .ring-success-600-300-token{--tw-ring-color: rgb(var(--color-success-300) / 1)}.dark .ring-success-500-400-token{--tw-ring-color: rgb(var(--color-success-400) / 1)}.dark .ring-warning-50-900-token{--tw-ring-color: rgb(var(--color-warning-900) / 1)}.dark .ring-warning-100-800-token{--tw-ring-color: rgb(var(--color-warning-800) / 1)}.dark .ring-warning-200-700-token{--tw-ring-color: rgb(var(--color-warning-700) / 1)}.dark .ring-warning-300-600-token{--tw-ring-color: rgb(var(--color-warning-600) / 1)}.dark .ring-warning-400-500-token{--tw-ring-color: rgb(var(--color-warning-500) / 1)}.dark .ring-warning-900-50-token{--tw-ring-color: rgb(var(--color-warning-50) / 1)}.dark .ring-warning-800-100-token{--tw-ring-color: rgb(var(--color-warning-100) / 1)}.dark .ring-warning-700-200-token{--tw-ring-color: rgb(var(--color-warning-200) / 1)}.dark .ring-warning-600-300-token{--tw-ring-color: rgb(var(--color-warning-300) / 1)}.dark .ring-warning-500-400-token{--tw-ring-color: rgb(var(--color-warning-400) / 1)}.dark .ring-error-50-900-token{--tw-ring-color: rgb(var(--color-error-900) / 1)}.dark .ring-error-100-800-token{--tw-ring-color: rgb(var(--color-error-800) / 1)}.dark .ring-error-200-700-token{--tw-ring-color: rgb(var(--color-error-700) / 1)}.dark .ring-error-300-600-token{--tw-ring-color: rgb(var(--color-error-600) / 1)}.dark .ring-error-400-500-token{--tw-ring-color: rgb(var(--color-error-500) / 1)}.dark .ring-error-900-50-token{--tw-ring-color: rgb(var(--color-error-50) / 1)}.dark .ring-error-800-100-token{--tw-ring-color: rgb(var(--color-error-100) / 1)}.dark .ring-error-700-200-token{--tw-ring-color: rgb(var(--color-error-200) / 1)}.dark .ring-error-600-300-token{--tw-ring-color: rgb(var(--color-error-300) / 1)}.dark .ring-error-500-400-token{--tw-ring-color: rgb(var(--color-error-400) / 1)}.dark .ring-surface-50-900-token{--tw-ring-color: rgb(var(--color-surface-900) / 1)}.dark .ring-surface-100-800-token{--tw-ring-color: rgb(var(--color-surface-800) / 1)}.dark .ring-surface-200-700-token{--tw-ring-color: rgb(var(--color-surface-700) / 1)}.dark .ring-surface-300-600-token{--tw-ring-color: rgb(var(--color-surface-600) / 1)}.dark .ring-surface-400-500-token{--tw-ring-color: rgb(var(--color-surface-500) / 1)}.dark .ring-surface-900-50-token{--tw-ring-color: rgb(var(--color-surface-50) / 1)}.dark .ring-surface-800-100-token{--tw-ring-color: rgb(var(--color-surface-100) / 1)}.dark .ring-surface-700-200-token{--tw-ring-color: rgb(var(--color-surface-200) / 1)}.dark .ring-surface-600-300-token{--tw-ring-color: rgb(var(--color-surface-300) / 1)}.dark .ring-surface-500-400-token{--tw-ring-color: rgb(var(--color-surface-400) / 1)}.dark .hover\:bg-primary-hover-token:hover:hover{background-color:rgb(var(--color-primary-500) / .1)}.hover\:variant-soft:hover{background-color:rgb(var(--color-surface-400) / .2);--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color) !important;--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color) !important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)!important;color:rgb(var(--color-surface-700))}.dark .hover\:variant-soft:hover{color:rgb(var(--color-surface-200))}:is(.dark .hover\:variant-soft:hover){background-color:rgb(var(--color-surface-500) / .2)}.hover\:opacity-100:hover{opacity:1}.hover\:brightness-\[105\%\]:hover{--tw-brightness: brightness(105%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.hover\:bg-primary-hover-token:hover:hover,.dark .hover\:bg-primary-hover-token:hover:hover{background-color:rgb(var(--color-primary-500) / .1)}.disabled\:\!opacity-0:disabled{opacity:0!important}:is(.dark .dark\:bg-surface-300){--tw-bg-opacity: 1;background-color:rgb(var(--color-surface-300) / var(--tw-bg-opacity))}:is(.dark .dark\:bg-surface-700){--tw-bg-opacity: 1;background-color:rgb(var(--color-surface-700) / var(--tw-bg-opacity))}:is(.dark .dark\:stroke-surface-50){stroke:rgb(var(--color-surface-50) / 1)}:is(.dark .dark\:accent-surface-50){accent-color:rgb(var(--color-surface-50) / 1)}:is(.dark .dark\:hover\:brightness-110:hover){--tw-brightness: brightness(1.1);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}@media (min-width: 768px){.md\:w-auto{width:auto}.md\:flex-row{flex-direction:row}.md\:space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.md\:space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse))}}.\[\&\:\:-webkit-details-marker\]\:hidden::-webkit-details-marker{display:none}@font-face{font-family:Fira Mono;font-style:normal;font-display:swap;font-weight:400;src:url(/_app/immutable/assets/fira-mono-cyrillic-ext-400-normal.dOGCK5uJ.woff2) format("woff2"),url(/_app/immutable/assets/fira-mono-all-400-normal.dpry7Ug7.woff) format("woff");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Fira Mono;font-style:normal;font-display:swap;font-weight:400;src:url(/_app/immutable/assets/fira-mono-cyrillic-400-normal.N-vuOVMo.woff2) format("woff2"),url(/_app/immutable/assets/fira-mono-all-400-normal.dpry7Ug7.woff) format("woff");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Fira Mono;font-style:normal;font-display:swap;font-weight:400;src:url(/_app/immutable/assets/fira-mono-greek-ext-400-normal.rKiNtwjr.woff2) format("woff2"),url(/_app/immutable/assets/fira-mono-all-400-normal.dpry7Ug7.woff) format("woff");unicode-range:U+1F00-1FFF}@font-face{font-family:Fira Mono;font-style:normal;font-display:swap;font-weight:400;src:url(/_app/immutable/assets/fira-mono-greek-400-normal.At854Oju.woff2) format("woff2"),url(/_app/immutable/assets/fira-mono-all-400-normal.dpry7Ug7.woff) format("woff");unicode-range:U+0370-03FF}@font-face{font-family:Fira Mono;font-style:normal;font-display:swap;font-weight:400;src:url(/_app/immutable/assets/fira-mono-latin-ext-400-normal.-l34kfv6.woff2) format("woff2"),url(/_app/immutable/assets/fira-mono-all-400-normal.dpry7Ug7.woff) format("woff");unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Fira Mono;font-style:normal;font-display:swap;font-weight:400;src:url(/_app/immutable/assets/fira-mono-latin-400-normal.yoy1YEIp.woff2) format("woff2"),url(/_app/immutable/assets/fira-mono-all-400-normal.dpry7Ug7.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}:root{--font-body: Arial, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;--font-mono: "Fira Mono", monospace;--color-bg-0: rgb(202, 216, 228);--color-bg-1: hsl(209, 36%, 86%);--color-bg-2: hsl(224, 44%, 95%);--color-theme-1: #ff3e00;--color-theme-2: #4075a6;--color-text: rgba(0, 0, 0, .7);--column-width: 42rem;--column-margin-top: 4rem;font-family:var(--font-body);color:var(--color-text)}body{min-height:100vh;margin:0;background-attachment:fixed;background-color:var(--color-bg-1);background-size:100vw 100vh;background-image:radial-gradient(50% 50% at 50% 50%,#ffffffbf,#fff0),linear-gradient(180deg,var(--color-bg-0) 0%,var(--color-bg-1) 15%,var(--color-bg-2) 50%)}h1,h2,p{font-weight:400}p{line-height:1.5}a{color:var(--color-theme-2);text-decoration:none}a:hover{text-decoration:underline}h1{font-size:2rem;text-align:center}h2{font-size:1rem}pre{font-size:16px;font-family:var(--font-mono);background-color:#ffffff73;border-radius:3px;box-shadow:2px 2px 6px #ffffff40;padding:.5em;overflow-x:auto;color:var(--color-text)}.text-column{display:flex;max-width:48rem;flex:.6;flex-direction:column;justify-content:center;margin:0 auto}input,button{font-size:inherit;font-family:inherit}button:focus:not(:focus-visible){outline:none}@media (min-width: 720px){h1{font-size:2.4rem}}.visually-hidden{border:0;clip:rect(0 0 0 0);height:auto;margin:0;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.splitpanes.modern-theme .splitpanes__pane{background-color:transparent;overflow:visible}.splitpanes.modern-theme .splitpanes__splitter{background-color:#ccc;position:relative}.splitpanes.modern-theme .splitpanes__splitter:before{content:"";position:absolute;left:0;top:0;transition:opacity .4s;background-color:#2db9d2;opacity:0;z-index:1}.splitpanes.modern-theme .splitpanes__splitter:hover:before{opacity:1}.splitpanes.modern-theme .splitpanes__splitter.splitpanes__splitter__active{z-index:2}.modern-theme.splitpanes--vertical>.splitpanes__splitter:before{left:-3px;right:-3px;height:100%;cursor:col-resize}.app.svelte-1i03v0h{display:flex;flex-direction:column;min-height:100vh}main.svelte-1i03v0h{flex:1;display:flex;flex-direction:column;padding:1rem;width:100%;max-width:100rem;margin:0 auto;box-sizing:border-box;justify-content:center;height:100vh}footer.svelte-1i03v0h{display:flex;flex-direction:column;justify-content:center;align-items:center;padding:12px}@media (min-width: 480px){footer.svelte-1i03v0h{padding:12px 0}} diff --git a/build/client/_app/immutable/assets/_page.hjG-dZS5.css b/build/client/_app/immutable/assets/_page.hjG-dZS5.css new file mode 100644 index 0000000000000000000000000000000000000000..44785948077b1f47c6574ae5dafcd979fe0a2b02 --- /dev/null +++ b/build/client/_app/immutable/assets/_page.hjG-dZS5.css @@ -0,0 +1 @@ +div.splitpanes--horizontal.splitpanes--dragging{cursor:row-resize}div.splitpanes--vertical.splitpanes--dragging{cursor:col-resize}.splitpanes{display:flex;width:100%;height:100%}.splitpanes--vertical{flex-direction:row}.splitpanes--horizontal{flex-direction:column}.splitpanes--dragging *{-webkit-user-select:none;-moz-user-select:none;user-select:none}.splitpanes__pane{width:100%;height:100%;overflow:hidden}.splitpanes--vertical .splitpanes__pane{transition:width .2s ease-out}.splitpanes--horizontal .splitpanes__pane{transition:height .2s ease-out}.splitpanes--vertical>.splitpanes__pane{transition:width .2s ease-out}.splitpanes--horizontal>.splitpanes__pane{transition:height .2s ease-out}.splitpanes--dragging .splitpanes__pane{transition:none;pointer-events:none}.splitpanes--freeze .splitpanes__pane{transition:none}.splitpanes__splitter{touch-action:none}.splitpanes--vertical>.splitpanes__splitter{min-width:1px}.splitpanes--horizontal>.splitpanes__splitter{min-height:1px}.splitpanes.default-theme .splitpanes__pane{background-color:#f2f2f2}.splitpanes.default-theme .splitpanes__splitter{background-color:#fff;box-sizing:border-box;position:relative;flex-shrink:0}.splitpanes.default-theme .splitpanes__splitter:before,.splitpanes.default-theme .splitpanes__splitter:after{content:"";position:absolute;top:50%;left:50%;background-color:#00000026;transition:background-color .3s}.splitpanes.default-theme .splitpanes__splitter:hover:before,.splitpanes.default-theme .splitpanes__splitter:hover:after{background-color:#00000040}.splitpanes.default-theme .splitpanes__splitter:first-child{cursor:auto}.default-theme.splitpanes .splitpanes .splitpanes__splitter{z-index:1}.default-theme.splitpanes--vertical>.splitpanes__splitter,.default-theme .splitpanes--vertical>.splitpanes__splitter{width:7px;border-left:1px solid #eee;cursor:col-resize}.default-theme.splitpanes--vertical>.splitpanes__splitter:before,.default-theme.splitpanes--vertical>.splitpanes__splitter:after,.default-theme .splitpanes--vertical>.splitpanes__splitter:before,.default-theme .splitpanes--vertical>.splitpanes__splitter:after{transform:translateY(-50%);width:1px;height:30px}.default-theme.splitpanes--vertical>.splitpanes__splitter:before,.default-theme .splitpanes--vertical>.splitpanes__splitter:before{margin-left:-2px}.default-theme.splitpanes--vertical>.splitpanes__splitter:after,.default-theme .splitpanes--vertical>.splitpanes__splitter:after{margin-left:1px}.default-theme.splitpanes--horizontal>.splitpanes__splitter,.default-theme .splitpanes--horizontal>.splitpanes__splitter{height:7px;border-top:1px solid #eee;cursor:row-resize}.default-theme.splitpanes--horizontal>.splitpanes__splitter:before,.default-theme.splitpanes--horizontal>.splitpanes__splitter:after,.default-theme .splitpanes--horizontal>.splitpanes__splitter:before,.default-theme .splitpanes--horizontal>.splitpanes__splitter:after{transform:translate(-50%);width:30px;height:1px}.default-theme.splitpanes--horizontal>.splitpanes__splitter:before,.default-theme .splitpanes--horizontal>.splitpanes__splitter:before{margin-top:-2px}.default-theme.splitpanes--horizontal>.splitpanes__splitter:after,.default-theme .splitpanes--horizontal>.splitpanes__splitter:after{margin-top:1px}.llm-health-status.svelte-a20mi8{color:#708090;font-size:12px;display:inline-flex;align-items:center;min-width:200px}.dot.svelte-a20mi8{width:20px;height:20px}.llm-health-status.svelte-1wcf73j{color:#708090;font-size:12px;display:inline-flex;align-items:center}.dot.svelte-1wcf73j{width:20px;height:20px}.modal.svelte-sfudwy{position:fixed;top:0;left:0;width:100%;height:100%;background:#00000080;display:flex;justify-content:center;align-items:center;z-index:999}.popup.svelte-sfudwy{background:#fff;padding:20px;border-radius:8px;box-shadow:0 0 10px #0000004d;max-width:80%;width:50%}textarea.svelte-sfudwy{min-height:200px;resize:vertical;padding:10px;border:1px solid #ccc;border-radius:4px;width:100%;font-size:14px;margin-bottom:10px;box-sizing:border-box}button.svelte-sfudwy{margin-top:10px;padding:10px 20px;background-color:#1976d2;color:#fff;border:1px solid transparent;border-radius:4px;cursor:pointer;transition:background-color .3s;box-sizing:border-box}button.svelte-sfudwy:hover{background-color:#1565c0}.anim-indeterminate.svelte-12wvf64{transform-origin:0% 50%;animation:svelte-12wvf64-anim-indeterminate 2s infinite linear}@keyframes svelte-12wvf64-anim-indeterminate{0%{transform:translate(0) scaleX(0)}40%{transform:translate(0) scaleX(.4)}to{transform:translate(100%) scaleX(.5)}}.search-result.svelte-dwjxto{margin-bottom:20px}.title.svelte-dwjxto{font-weight:700}.annotation.svelte-dwjxto{overflow:hidden;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;text-overflow:ellipsis;white-space:normal}a.svelte-dwjxto{cursor:pointer}.full-text.svelte-dwjxto{display:block;white-space:normal}.title.svelte-dwjxto{color:#1a0dab}.search-results.svelte-1ptibtq.svelte-1ptibtq{flex:1;overflow-y:auto;padding:1rem}.settings-bar.svelte-1ptibtq.svelte-1ptibtq{margin-bottom:10px}.settings-bar.svelte-1ptibtq label.svelte-1ptibtq{margin-right:10px}.loading-container.svelte-1cldj37.svelte-1cldj37{display:flex;justify-content:center;align-items:center;align-self:center;width:3rem;height:90%;margin-left:5px}.loading-status.svelte-1cldj37.svelte-1cldj37{display:flex;justify-content:center;align-items:center;align-self:center}.grow-wrap.svelte-1cldj37.svelte-1cldj37{display:grid}.grow-wrap.svelte-1cldj37.svelte-1cldj37:after{content:attr(data-replicated-value) " ";white-space:pre-wrap;visibility:hidden;max-width:100%;max-height:250px;display:block;overflow-x:hidden}.grow-wrap.svelte-1cldj37>textarea.svelte-1cldj37{resize:none;overflow:hidden}.grow-wrap.svelte-1cldj37>textarea.svelte-1cldj37,.grow-wrap.svelte-1cldj37.svelte-1cldj37:after{padding:1rem;border:1px solid #ccc;border-radius:4px;width:100%;font-size:14px;margin-bottom:10px;box-sizing:border-box;grid-area:1/1/2/2}.grow-wrap.svelte-1cldj37>textarea .svelte-1cldj37:focus,.grow-wrap.svelte-1cldj37:after .svelte-1cldj37:focus{outline:none;border-color:#1976d2}.grow-wrap.svelte-1cldj37>textarea .svelte-1cldj37:placeholder,.grow-wrap.svelte-1cldj37:after .svelte-1cldj37:placeholder{color:#aaa}.auto-expand-textarea.svelte-1cldj37.svelte-1cldj37{box-sizing:border-box;width:100%;font-size:16px;border:1px solid #ccc;resize:vertical;overflow-y:hidden;min-height:1rem}.search-column.svelte-1cldj37.svelte-1cldj37{flex:1;display:flex;flex-direction:column;border-right:1px solid #ccc}.search-bar.svelte-1cldj37.svelte-1cldj37{padding:1rem}.search-bar.svelte-1cldj37 textarea.svelte-1cldj37{width:100%;max-width:100%;padding:1rem;box-sizing:border-box}.textarea-column.svelte-1cldj37.svelte-1cldj37{flex:1;display:flex;flex-direction:column}.textarea.svelte-1cldj37.svelte-1cldj37{width:100%;height:100%;margin:10px;border:none;outline:none;resize:none;background:transparent}@media (max-width: 767px){.search-column.svelte-1cldj37.svelte-1cldj37,.textarea-column.svelte-1cldj37.svelte-1cldj37{border-right:none}}.search-second-bar.svelte-1cldj37.svelte-1cldj37{display:flex;justify-content:space-between;flex-wrap:wrap}.search-second-bar.svelte-1cldj37 .status-components.svelte-1cldj37{flex:1;margin-right:10px;margin-top:10px}@media (max-width: 600px){.search-second-bar.svelte-1cldj37.svelte-1cldj37{flex-direction:column}.search-second-bar.svelte-1cldj37 .status-components.svelte-1cldj37{width:100%;margin-right:0;margin-bottom:10px}}textarea.svelte-1cldj37.svelte-1cldj37{border:1px solid #ccc;border-radius:4px;width:100%;font-size:14px;margin-bottom:10px;box-sizing:border-box;padding:1rem} diff --git a/build/client/_app/immutable/assets/fira-mono-all-400-normal.dpry7Ug7.woff b/build/client/_app/immutable/assets/fira-mono-all-400-normal.dpry7Ug7.woff new file mode 100644 index 0000000000000000000000000000000000000000..7f61fe99798cf6ff84ee440ca3890f90fdfe62ce Binary files /dev/null and b/build/client/_app/immutable/assets/fira-mono-all-400-normal.dpry7Ug7.woff differ diff --git a/build/client/_app/immutable/assets/fira-mono-cyrillic-400-normal.N-vuOVMo.woff2 b/build/client/_app/immutable/assets/fira-mono-cyrillic-400-normal.N-vuOVMo.woff2 new file mode 100644 index 0000000000000000000000000000000000000000..48cf9cf8dc584fb48b262ea1315d3edb87b68475 Binary files /dev/null and b/build/client/_app/immutable/assets/fira-mono-cyrillic-400-normal.N-vuOVMo.woff2 differ diff --git a/build/client/_app/immutable/assets/fira-mono-cyrillic-ext-400-normal.dOGCK5uJ.woff2 b/build/client/_app/immutable/assets/fira-mono-cyrillic-ext-400-normal.dOGCK5uJ.woff2 new file mode 100644 index 0000000000000000000000000000000000000000..d63320267ec6d8adf9264ec1fd84c2b24a755793 Binary files /dev/null and b/build/client/_app/immutable/assets/fira-mono-cyrillic-ext-400-normal.dOGCK5uJ.woff2 differ diff --git a/build/client/_app/immutable/assets/fira-mono-greek-400-normal.At854Oju.woff2 b/build/client/_app/immutable/assets/fira-mono-greek-400-normal.At854Oju.woff2 new file mode 100644 index 0000000000000000000000000000000000000000..01061b4da321163d52a0c856e82df5f2cf0cb8c6 Binary files /dev/null and b/build/client/_app/immutable/assets/fira-mono-greek-400-normal.At854Oju.woff2 differ diff --git a/build/client/_app/immutable/assets/fira-mono-greek-ext-400-normal.rKiNtwjr.woff2 b/build/client/_app/immutable/assets/fira-mono-greek-ext-400-normal.rKiNtwjr.woff2 new file mode 100644 index 0000000000000000000000000000000000000000..4dc2f4b3d954b342f3b0af1e49f9e90d5da34fdd Binary files /dev/null and b/build/client/_app/immutable/assets/fira-mono-greek-ext-400-normal.rKiNtwjr.woff2 differ diff --git a/build/client/_app/immutable/assets/fira-mono-latin-400-normal.yoy1YEIp.woff2 b/build/client/_app/immutable/assets/fira-mono-latin-400-normal.yoy1YEIp.woff2 new file mode 100644 index 0000000000000000000000000000000000000000..edc71a868ab6867ccab1e3b3b772033909548799 Binary files /dev/null and b/build/client/_app/immutable/assets/fira-mono-latin-400-normal.yoy1YEIp.woff2 differ diff --git a/build/client/_app/immutable/assets/fira-mono-latin-ext-400-normal.-l34kfv6.woff2 b/build/client/_app/immutable/assets/fira-mono-latin-ext-400-normal.-l34kfv6.woff2 new file mode 100644 index 0000000000000000000000000000000000000000..43e41c8563b8e6e119f0bd93d8c4b3f472efd993 Binary files /dev/null and b/build/client/_app/immutable/assets/fira-mono-latin-ext-400-normal.-l34kfv6.woff2 differ diff --git a/build/client/_app/immutable/chunks/entry.6sYS-0PY.js b/build/client/_app/immutable/chunks/entry.6sYS-0PY.js new file mode 100644 index 0000000000000000000000000000000000000000..82bb094727703811e75aa2b3ff5caf4ebb500c04 --- /dev/null +++ b/build/client/_app/immutable/chunks/entry.6sYS-0PY.js @@ -0,0 +1,3 @@ +import{n as ce,s as rt,v as at}from"./scheduler.Ze4Bbz0A.js";new URL("sveltekit-internal://");function ot(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function st(e){return e.split("%25").map(decodeURI).join("%25")}function it(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function le({href:e}){return e.split("#")[0]}const ct=["href","pathname","search","toString","toJSON"];function lt(e,t,n){const r=new URL(e);Object.defineProperty(r,"searchParams",{value:new Proxy(r.searchParams,{get(a,s){if(s==="get"||s==="getAll"||s==="has")return o=>(n(o),a[s](o));t();const i=Reflect.get(a,s);return typeof i=="function"?i.bind(a):i}}),enumerable:!0,configurable:!0});for(const a of ct)Object.defineProperty(r,a,{get(){return t(),e[a]},enumerable:!0,configurable:!0});return r}const ft="/__data.json",ut=".html__data.json";function dt(e){return e.endsWith(".html")?e.replace(/\.html$/,ut):e.replace(/\/$/,"")+ft}function ht(...e){let t=5381;for(const n of e)if(typeof n=="string"){let r=n.length;for(;r;)t=t*33^n.charCodeAt(--r)}else if(ArrayBuffer.isView(n)){const r=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let a=r.length;for(;a;)t=t*33^r[--a]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}const Ne=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||"GET")!=="GET"&&C.delete(ge(e)),Ne(e,t));const C=new Map;function pt(e){const t=atob(e),n=new Uint8Array(t.length);for(let r=0;r0){const r=ge(e,n),a=C.get(r);if(a){if(performance.now(){const a=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(r);if(a)return t.push({name:a[1],matcher:a[2],optional:!1,rest:!0,chained:!0}),"(?:/(.*))?";const s=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(r);if(s)return t.push({name:s[1],matcher:s[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!r)return;const i=r.split(/\[(.+?)\](?!\])/);return"/"+i.map((c,l)=>{if(l%2){if(c.startsWith("x+"))return fe(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return fe(String.fromCharCode(...c.slice(2).split("-").map(p=>parseInt(p,16))));const d=mt.exec(c),[,g,u,f,h]=d;return t.push({name:f,matcher:h,optional:!!g,rest:!!u,chained:u?l===1&&i[0]==="":!1}),u?"(.*?)":g?"([^/]*)?":"([^/]+?)"}return fe(c)}).join("")}).join("")}/?$`),params:t}}function wt(e){return!/^\([^)]+\)$/.test(e)}function vt(e){return e.slice(1).split("/").filter(wt)}function bt(e,t,n){const r={},a=e.slice(1),s=a.filter(o=>o!==void 0);let i=0;for(let o=0;od).join("/"),i=0),l===void 0){c.rest&&(r[c.name]="");continue}if(!c.matcher||n[c.matcher](l)){r[c.name]=l;const d=t[o+1],g=a[o+1];d&&!d.rest&&d.optional&&g&&c.chained&&(i=0),!d&&!g&&Object.keys(r).length===s.length&&(i=0);continue}if(c.optional&&c.chained){i++;continue}return}if(!i)return r}function fe(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function Et({nodes:e,server_loads:t,dictionary:n,matchers:r}){const a=new Set(t);return Object.entries(n).map(([o,[c,l,d]])=>{const{pattern:g,params:u}=yt(o),f={id:o,exec:h=>{const p=g.exec(h);if(p)return bt(p,u,r)},errors:[1,...d||[]].map(h=>e[h]),layouts:[0,...l||[]].map(i),leaf:s(c)};return f.errors.length=f.layouts.length=Math.max(f.errors.length,f.layouts.length),f});function s(o){const c=o<0;return c&&(o=~o),[c,e[o]]}function i(o){return o===void 0?o:[a.has(o),e[o]]}}function Oe(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function Re(e,t,n=JSON.stringify){const r=n(t);try{sessionStorage[e]=r}catch{}}const U=[];function Xt(e,t){return{subscribe:te(e,t).subscribe}}function te(e,t=ce){let n;const r=new Set;function a(o){if(rt(e,o)&&(e=o,n)){const c=!U.length;for(const l of r)l[1](),U.push(l,e);if(c){for(let l=0;l{r.delete(l),r.size===0&&n&&(n(),n=null)}}return{set:a,update:s,subscribe:i}}const A=globalThis.__sveltekit_5oh4s6?.base??"",kt=globalThis.__sveltekit_5oh4s6?.assets??A,St="1706612561657",je="sveltekit:snapshot",$e="sveltekit:scroll",De="sveltekit:states",At="sveltekit:pageurl",N="sveltekit:history",F="sveltekit:navigation",z={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},H=location.origin;function Ce(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){const n=document.getElementsByTagName("base");t=n.length?n[0].href:document.URL}return new URL(e,t)}function _e(){return{x:pageXOffset,y:pageYOffset}}function x(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const Ie={...z,"":z.hover};function Ve(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function Fe(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=Ve(e)}}function de(e,t){let n;try{n=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI)}catch{}const r=e instanceof SVGAElement?e.target.baseVal:e.target,a=!n||!!r||ne(n,t)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),s=n?.origin===H&&e.hasAttribute("download");return{url:n,external:a,target:r,download:s}}function Y(e){let t=null,n=null,r=null,a=null,s=null,i=null,o=e;for(;o&&o!==document.documentElement;)r===null&&(r=x(o,"preload-code")),a===null&&(a=x(o,"preload-data")),t===null&&(t=x(o,"keepfocus")),n===null&&(n=x(o,"noscroll")),s===null&&(s=x(o,"reload")),i===null&&(i=x(o,"replacestate")),o=Ve(o);function c(l){switch(l){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:Ie[r??"off"],preload_data:Ie[a??"off"],keepfocus:c(t),noscroll:c(n),reload:c(s),replace_state:c(i)}}function Le(e){const t=te(e);let n=!0;function r(){n=!0,t.update(i=>i)}function a(i){n=!1,t.set(i)}function s(i){let o;return t.subscribe(c=>{(o===void 0||n&&c!==o)&&i(o=c)})}return{notify:r,set:a,subscribe:s}}function Rt(){const{set:e,subscribe:t}=te(!1);let n;async function r(){clearTimeout(n);try{const a=await fetch(`${kt}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!a.ok)return!1;const i=(await a.json()).version!==St;return i&&(e(!0),clearTimeout(n)),i}catch{return!1}}return{subscribe:t,check:r}}function ne(e,t){return e.origin!==H||!e.pathname.startsWith(t)}const It=-1,Lt=-2,Pt=-3,Tt=-4,Ut=-5,xt=-6;function Nt(e,t){if(typeof e=="number")return a(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,r=Array(n.length);function a(s,i=!1){if(s===It)return;if(s===Pt)return NaN;if(s===Tt)return 1/0;if(s===Ut)return-1/0;if(s===xt)return-0;if(i)throw new Error("Invalid input");if(s in r)return r[s];const o=n[s];if(!o||typeof o!="object")r[s]=o;else if(Array.isArray(o))if(typeof o[0]=="string"){const c=o[0],l=t?.[c];if(l)return r[s]=l(a(o[1]));switch(c){case"Date":r[s]=new Date(o[1]);break;case"Set":const d=new Set;r[s]=d;for(let f=1;ft!=null)}class re{constructor(t,n){this.status=t,typeof n=="string"?this.body={message:n}:n?this.body=n:this.body={message:`Error: ${t}`}}toString(){return JSON.stringify(this.body)}}class Ge{constructor(t,n){this.status=t,this.location=n}}class me extends Error{constructor(t,n,r){super(r),this.status=t,this.text=n}}const $t="x-sveltekit-invalidated",Dt="x-sveltekit-trailing-slash";function J(e){return e instanceof re||e instanceof me?e.status:500}function Ct(e){return e instanceof me?e.text:"Internal Error"}const T=Oe($e)??{},q=Oe(je)??{},Vt=history.pushState,ye=history.replaceState,L={url:Le({}),page:Le({}),navigating:te(null),updated:Rt()};function we(e){T[e]=_e()}function Ft(e,t){let n=e+1;for(;T[n];)delete T[n],n+=1;for(n=t+1;q[n];)delete q[n],n+=1}function j(e){return location.href=e.href,new Promise(()=>{})}function Pe(){}let ae,he,W,I,pe,$;const Me=[],X=[];let O=null;const He=[],qt=[];let V=[],y={branch:[],error:null,url:null},ve=!1,Z=!1,Te=!0,G=!1,D=!1,Be=!1,be=!1,Ee,w,k,S,Q;async function Zt(e,t,n){document.URL!==location.href&&(location.href=location.href),$=e,ae=Et(e),I=document.documentElement,pe=t,he=e.nodes[0],W=e.nodes[1],he(),W(),w=history.state?.[N],k=history.state?.[F],w||(w=k=Date.now(),ye.call(history,{...history.state,[N]:w,[F]:k},""));const r=T[w];r&&(history.scrollRestoration="manual",scrollTo(r.x,r.y)),n?await Yt(pe,n):Kt(location.href,{replaceState:!0}),zt()}function Ke(e){X.some(t=>t?.snapshot)&&(q[e]=X.map(t=>t?.snapshot?.capture()))}function ze(e){q[e]?.forEach((t,n)=>{X[n]?.snapshot?.restore(t)})}function Ue(){we(w),Re($e,T),Ke(k),Re(je,q)}async function Ye(e,t,n,r){return K({type:"goto",url:Ce(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:r,accept:()=>{t.invalidateAll&&(be=!0)}})}async function Gt(e){return O={id:e.id,promise:We(e).then(t=>(t.type==="loaded"&&t.state.error&&(O=null),t))},O.promise}async function ue(e){const t=ae.find(n=>n.exec(Xe(e)));t&&await Promise.all([...t.layouts,t.leaf].map(n=>n?.[1]()))}function Je(e,t){y=e.state;const n=document.querySelector("style[data-sveltekit]");n&&n.remove(),S=e.props.page,Ee=new $.root({target:t,props:{...e.props,stores:L,components:X},hydrate:!0}),ze(k);const r={from:null,to:{params:y.params,route:{id:y.route?.id??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};V.forEach(a=>a(r)),Z=!0}async function ee({url:e,params:t,branch:n,status:r,error:a,route:s,form:i}){let o="never";if(A&&(e.pathname===A||e.pathname===A+"/"))o="always";else for(const f of n)f?.slash!==void 0&&(o=f.slash);e.pathname=ot(e.pathname,o),e.search=e.search;const c={type:"loaded",state:{url:e,params:t,branch:n,error:a,route:s},props:{constructors:jt(n).map(f=>f.node.component),page:S}};i!==void 0&&(c.props.form=i);let l={},d=!S,g=0;for(let f=0;f(o&&(c.route=!0),u[f])}),params:new Proxy(r,{get:(u,f)=>(o&&c.params.add(f),u[f])}),data:s?.data??null,url:lt(n,()=>{o&&(c.url=!0)},u=>{o&&c.search_params.add(u)}),async fetch(u,f){let h;u instanceof Request?(h=u.url,f={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,...f}):h=u;const p=new URL(h,n);return o&&d(p.href),p.origin===n.origin&&(h=p.href.slice(n.origin.length)),Z?_t(h,p.href,f):gt(h,f)},setHeaders:()=>{},depends:d,parent(){return o&&(c.parent=!0),t()},untrack(u){o=!1;try{return u()}finally{o=!0}}};i=await l.universal.load.call(null,g)??null}return{node:l,loader:e,server:s,universal:l.universal?.load?{type:"data",data:i,uses:c}:null,data:i??s?.data??null,slash:l.universal?.trailingSlash??s?.slash}}function xe(e,t,n,r,a,s){if(be)return!0;if(!a)return!1;if(a.parent&&e||a.route&&t||a.url&&n)return!0;for(const i of a.search_params)if(r.has(i))return!0;for(const i of a.params)if(s[i]!==y.params[i])return!0;for(const i of a.dependencies)if(Me.some(o=>o(new URL(i))))return!0;return!1}function Se(e,t){return e?.type==="data"?e:e?.type==="skip"?t??null:null}function Mt(e,t){if(!e)return new Set(t.searchParams.keys());const n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const r of n){const a=e.searchParams.getAll(r),s=t.searchParams.getAll(r);a.every(i=>s.includes(i))&&s.every(i=>a.includes(i))&&n.delete(r)}return n}async function We({id:e,invalidating:t,url:n,params:r,route:a}){if(O?.id===e)return O.promise;const{errors:s,layouts:i,leaf:o}=a,c=[...i,o];s.forEach(_=>_?.().catch(()=>{})),c.forEach(_=>_?.[1]().catch(()=>{}));let l=null;const d=y.url?e!==y.url.pathname+y.url.search:!1,g=y.route?a.id!==y.route.id:!1,u=Mt(y.url,n);let f=!1;const h=c.map((_,m)=>{const v=y.branch[m],b=!!_?.[0]&&(v?.loader!==_[1]||xe(f,g,d,u,v.server?.uses,r));return b&&(f=!0),b});if(h.some(Boolean)){try{l=await et(n,h)}catch(_){return oe({status:J(_),error:await M(_,{url:n,params:r,route:{id:a.id}}),url:n,route:a})}if(l.type==="redirect")return l}const p=l?.nodes;let R=!1;const E=c.map(async(_,m)=>{if(!_)return;const v=y.branch[m],b=p?.[m];if((!b||b.type==="skip")&&_[1]===v?.loader&&!xe(R,g,d,u,v.universal?.uses,r))return v;if(R=!0,b?.type==="error")throw b;return ke({loader:_[1],url:n,params:r,route:a,parent:async()=>{const se={};for(let ie=0;ie{});const P=[];for(let _=0;_Promise.resolve({}),server_data_node:Se(s)}),c={node:await W(),loader:W,universal:null,server:null,data:null};return await ee({url:n,params:a,branch:[o,c],status:e,error:t,route:null})}function Ae(e,t){if(!e||ne(e,A))return;let n;try{n=$.hooks.reroute({url:new URL(e)})??e.pathname}catch{return}const r=Xe(n);for(const a of ae){const s=a.exec(r);if(s)return{id:e.pathname+e.search,invalidating:t,route:a,params:it(s),url:e}}}function Xe(e){return st(e.slice(A.length)||"/")}function Ze({url:e,type:t,intent:n,delta:r}){let a=!1;const s=nt(y,n,e,t);r!==void 0&&(s.navigation.delta=r);const i={...s.navigation,cancel:()=>{a=!0,s.reject(new Error("navigation cancelled"))}};return G||He.forEach(o=>o(i)),a?null:s}async function K({type:e,url:t,popped:n,keepfocus:r,noscroll:a,replace_state:s,state:i={},redirect_count:o=0,nav_token:c={},accept:l=Pe,block:d=Pe}){const g=Ae(t,!1),u=Ze({url:t,type:e,delta:n?.delta,intent:g});if(!u){d();return}const f=w,h=k;l(),G=!0,Z&&L.navigating.set(u.navigation),Q=c;let p=g&&await We(g);if(!p){if(ne(t,A))return await j(t);p=await Qe(t,{id:null},await M(new me(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404)}if(t=g?.url||t,Q!==c)return u.reject(new Error("navigation aborted")),!1;if(p.type==="redirect")if(o>=20)p=await oe({status:500,error:await M(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}});else return Ye(new URL(p.location,t).href,{},o+1,c),!1;else p.props.page.status>=400&&await L.updated.check()&&await j(t);if(Me.length=0,be=!1,we(f),Ke(h),p.props.page.url.pathname!==t.pathname&&(t.pathname=p.props.page.url.pathname),i=n?n.state:i,!n){const _=s?0:1,m={[N]:w+=_,[F]:k+=_,[De]:i};(s?ye:Vt).call(history,m,"",t),s||Ft(w,k)}if(O=null,p.props.page.state=i,Z){y=p.state,p.props.page&&(p.props.page.url=t);const _=(await Promise.all(qt.map(m=>m(u.navigation)))).filter(m=>typeof m=="function");if(_.length>0){let m=function(){V=V.filter(v=>!_.includes(v))};_.push(m),callbacks.after_navigate.push(..._)}Ee.$set(p.props),Be=!0}else Je(p,pe);const{activeElement:R}=document;await at();const E=n?n.scroll:a?_e():null;if(Te){const _=t.hash&&document.getElementById(decodeURIComponent(t.hash.slice(1)));E?scrollTo(E.x,E.y):_?_.scrollIntoView():scrollTo(0,0)}const P=document.activeElement!==R&&document.activeElement!==document.body;!r&&!P&&Jt(),Te=!0,p.props.page&&(S=p.props.page),G=!1,e==="popstate"&&ze(k),u.fulfil(void 0),V.forEach(_=>_(u.navigation)),L.navigating.set(null)}async function Qe(e,t,n,r){return e.origin===H&&e.pathname===location.pathname&&!ve?await oe({status:r,error:n,url:e,route:t}):await j(e)}function Bt(){let e;I.addEventListener("mousemove",s=>{const i=s.target;clearTimeout(e),e=setTimeout(()=>{r(i,2)},20)});function t(s){r(s.composedPath()[0],1)}I.addEventListener("mousedown",t),I.addEventListener("touchstart",t,{passive:!0});const n=new IntersectionObserver(s=>{for(const i of s)i.isIntersecting&&(ue(i.target.href),n.unobserve(i.target))},{threshold:0});function r(s,i){const o=Fe(s,I);if(!o)return;const{url:c,external:l,download:d}=de(o,A);if(l||d)return;const g=Y(o);if(!g.reload)if(i<=g.preload_data){const u=Ae(c,!1);u&&Gt(u)}else i<=g.preload_code&&ue(c.pathname)}function a(){n.disconnect();for(const s of I.querySelectorAll("a")){const{url:i,external:o,download:c}=de(s,A);if(o||c)continue;const l=Y(s);l.reload||(l.preload_code===z.viewport&&n.observe(s),l.preload_code===z.eager&&ue(i.pathname))}}V.push(a),a()}function M(e,t){if(e instanceof re)return e.body;const n=J(e),r=Ct(e);return $.hooks.handleError({error:e,event:t,status:n,message:r})??{message:r}}function Kt(e,t={}){return e=Ce(e),e.origin!==H?Promise.reject(new Error("goto: invalid URL")):Ye(e,t,0)}function zt(){history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let n=!1;if(Ue(),!G){const r=nt(y,void 0,null,"leave"),a={...r.navigation,cancel:()=>{n=!0,r.reject(new Error("navigation cancelled"))}};He.forEach(s=>s(a))}n?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Ue()}),navigator.connection?.saveData||Bt(),I.addEventListener("click",t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const n=Fe(t.composedPath()[0],I);if(!n)return;const{url:r,external:a,target:s,download:i}=de(n,A);if(!r)return;if(s==="_parent"||s==="_top"){if(window.parent!==window)return}else if(s&&s!=="_self")return;const o=Y(n);if(!(n instanceof SVGAElement)&&r.protocol!==location.protocol&&!(r.protocol==="https:"||r.protocol==="http:")||i)return;if(a||o.reload){Ze({url:r,type:"link"})?G=!0:t.preventDefault();return}const[l,d]=r.href.split("#");if(d!==void 0&&l===le(location)){const[,g]=y.url.href.split("#");if(g===d){t.preventDefault(),d===""||d==="top"&&n.ownerDocument.getElementById("top")===null?window.scrollTo({top:0}):n.ownerDocument.getElementById(d)?.scrollIntoView();return}if(D=!0,we(w),e(r),!o.replace_state)return;D=!1}t.preventDefault(),K({type:"link",url:r,keepfocus:o.keepfocus,noscroll:o.noscroll,replace_state:o.replace_state??r.href===location.href})}),I.addEventListener("submit",t=>{if(t.defaultPrevented)return;const n=HTMLFormElement.prototype.cloneNode.call(t.target),r=t.submitter;if((r?.formMethod||n.method)!=="get")return;const s=new URL(r?.hasAttribute("formaction")&&r?.formAction||n.action);if(ne(s,A))return;const i=t.target,o=Y(i);if(o.reload)return;t.preventDefault(),t.stopPropagation();const c=new FormData(i),l=r?.getAttribute("name");l&&c.append(l,r?.getAttribute("value")??""),s.search=new URLSearchParams(c).toString(),K({type:"form",url:s,keepfocus:o.keepfocus,noscroll:o.noscroll,replace_state:o.replace_state??s.href===location.href})}),addEventListener("popstate",async t=>{if(t.state?.[N]){const n=t.state[N];if(Q={},n===w)return;const r=T[n],a=t.state[De]??{},s=new URL(t.state[At]??location.href),i=t.state[F],o=le(location)===le(y.url);if(i===k&&(Be||o)){e(s),T[w]=_e(),r&&scrollTo(r.x,r.y),a!==S.state&&(S={...S,state:a},Ee.$set({page:S})),w=n;return}const l=n-w;await K({type:"popstate",url:s,popped:{state:a,scroll:r,delta:l},accept:()=>{w=n,k=i},block:()=>{history.go(-l)},nav_token:Q})}else if(!D){const n=new URL(location.href);e(n)}}),addEventListener("hashchange",()=>{D&&(D=!1,ye.call(history,{...history.state,[N]:++w,[F]:k},"",location.href))});for(const t of document.querySelectorAll("link"))t.rel==="icon"&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&L.navigating.set(null)});function e(t){y.url=t,L.page.set({...S,url:t}),L.page.notify()}}async function Yt(e,{status:t=200,error:n,node_ids:r,params:a,route:s,data:i,form:o}){ve=!0;const c=new URL(location.href);({params:a={},route:s={id:null}}=Ae(c,!1)||{});let l;try{const d=r.map(async(f,h)=>{const p=i[h];return p?.uses&&(p.uses=tt(p.uses)),ke({loader:$.nodes[f],url:c,params:a,route:s,parent:async()=>{const R={};for(let E=0;Ef===s.id);if(u){const f=u.layouts;for(let h=0;ha?"1":"0").join(""));const r=await Ne(n.href);if(!r.ok){let a;throw r.headers.get("content-type")?.includes("application/json")?a=await r.json():r.status===404?a="Not Found":r.status===500&&(a="Internal Error"),new re(r.status,a)}return new Promise(async a=>{const s=new Map,i=r.body.getReader(),o=new TextDecoder;function c(d){return Nt(d,{Promise:g=>new Promise((u,f)=>{s.set(g,{fulfil:u,reject:f})})})}let l="";for(;;){const{done:d,value:g}=await i.read();if(d&&!l)break;for(l+=!g&&l?` +`:o.decode(g,{stream:!0});;){const u=l.indexOf(` +`);if(u===-1)break;const f=JSON.parse(l.slice(0,u));if(l=l.slice(u+1),f.type==="redirect")return a(f);if(f.type==="data")f.nodes?.forEach(h=>{h?.type==="data"&&(h.uses=tt(h.uses),h.data=c(h.data))}),a(f);else if(f.type==="chunk"){const{id:h,data:p,error:R}=f,E=s.get(h);s.delete(h),R?E.reject(c(R)):E.fulfil(c(p))}}}})}function tt(e){return{dependencies:new Set(e?.dependencies??[]),params:new Set(e?.params??[]),parent:!!e?.parent,route:!!e?.route,url:!!e?.url,search_params:new Set(e?.search_params??[])}}function Jt(){const e=document.querySelector("[autofocus]");if(e)e.focus();else{const t=document.body,n=t.getAttribute("tabindex");t.tabIndex=-1,t.focus({preventScroll:!0,focusVisible:!1}),n!==null?t.setAttribute("tabindex",n):t.removeAttribute("tabindex");const r=getSelection();if(r&&r.type!=="None"){const a=[];for(let s=0;s{if(r.rangeCount===a.length){for(let s=0;s{a=c,s=l});return i.catch(()=>{}),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url},to:n&&{params:t?.params??null,route:{id:t?.route?.id??null},url:n},willUnload:!t,type:r,complete:i},fulfil:a,reject:s}}export{Zt as a,Xt as r,L as s,te as w}; diff --git a/build/client/_app/immutable/chunks/entry.PoeC27Kh.js b/build/client/_app/immutable/chunks/entry.PoeC27Kh.js new file mode 100644 index 0000000000000000000000000000000000000000..12746ab59fef66e221aa53a4b37c615ecf37d84a --- /dev/null +++ b/build/client/_app/immutable/chunks/entry.PoeC27Kh.js @@ -0,0 +1,3 @@ +import{n as ce,s as rt,v as at}from"./scheduler.Ze4Bbz0A.js";new URL("sveltekit-internal://");function ot(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function st(e){return e.split("%25").map(decodeURI).join("%25")}function it(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function le({href:e}){return e.split("#")[0]}const ct=["href","pathname","search","toString","toJSON"];function lt(e,t,n){const r=new URL(e);Object.defineProperty(r,"searchParams",{value:new Proxy(r.searchParams,{get(a,s){if(s==="get"||s==="getAll"||s==="has")return o=>(n(o),a[s](o));t();const i=Reflect.get(a,s);return typeof i=="function"?i.bind(a):i}}),enumerable:!0,configurable:!0});for(const a of ct)Object.defineProperty(r,a,{get(){return t(),e[a]},enumerable:!0,configurable:!0});return r}const ft="/__data.json",ut=".html__data.json";function dt(e){return e.endsWith(".html")?e.replace(/\.html$/,ut):e.replace(/\/$/,"")+ft}function ht(...e){let t=5381;for(const n of e)if(typeof n=="string"){let r=n.length;for(;r;)t=t*33^n.charCodeAt(--r)}else if(ArrayBuffer.isView(n)){const r=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let a=r.length;for(;a;)t=t*33^r[--a]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}const Ne=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||"GET")!=="GET"&&C.delete(ge(e)),Ne(e,t));const C=new Map;function pt(e){const t=atob(e),n=new Uint8Array(t.length);for(let r=0;r0){const r=ge(e,n),a=C.get(r);if(a){if(performance.now(){const a=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(r);if(a)return t.push({name:a[1],matcher:a[2],optional:!1,rest:!0,chained:!0}),"(?:/(.*))?";const s=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(r);if(s)return t.push({name:s[1],matcher:s[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!r)return;const i=r.split(/\[(.+?)\](?!\])/);return"/"+i.map((c,l)=>{if(l%2){if(c.startsWith("x+"))return fe(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return fe(String.fromCharCode(...c.slice(2).split("-").map(p=>parseInt(p,16))));const d=mt.exec(c),[,g,u,f,h]=d;return t.push({name:f,matcher:h,optional:!!g,rest:!!u,chained:u?l===1&&i[0]==="":!1}),u?"(.*?)":g?"([^/]*)?":"([^/]+?)"}return fe(c)}).join("")}).join("")}/?$`),params:t}}function wt(e){return!/^\([^)]+\)$/.test(e)}function vt(e){return e.slice(1).split("/").filter(wt)}function bt(e,t,n){const r={},a=e.slice(1),s=a.filter(o=>o!==void 0);let i=0;for(let o=0;od).join("/"),i=0),l===void 0){c.rest&&(r[c.name]="");continue}if(!c.matcher||n[c.matcher](l)){r[c.name]=l;const d=t[o+1],g=a[o+1];d&&!d.rest&&d.optional&&g&&c.chained&&(i=0),!d&&!g&&Object.keys(r).length===s.length&&(i=0);continue}if(c.optional&&c.chained){i++;continue}return}if(!i)return r}function fe(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function kt({nodes:e,server_loads:t,dictionary:n,matchers:r}){const a=new Set(t);return Object.entries(n).map(([o,[c,l,d]])=>{const{pattern:g,params:u}=yt(o),f={id:o,exec:h=>{const p=g.exec(h);if(p)return bt(p,u,r)},errors:[1,...d||[]].map(h=>e[h]),layouts:[0,...l||[]].map(i),leaf:s(c)};return f.errors.length=f.layouts.length=Math.max(f.errors.length,f.layouts.length),f});function s(o){const c=o<0;return c&&(o=~o),[c,e[o]]}function i(o){return o===void 0?o:[a.has(o),e[o]]}}function Oe(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function Re(e,t,n=JSON.stringify){const r=n(t);try{sessionStorage[e]=r}catch{}}const U=[];function Xt(e,t){return{subscribe:te(e,t).subscribe}}function te(e,t=ce){let n;const r=new Set;function a(o){if(rt(e,o)&&(e=o,n)){const c=!U.length;for(const l of r)l[1](),U.push(l,e);if(c){for(let l=0;l{r.delete(l),r.size===0&&n&&(n(),n=null)}}return{set:a,update:s,subscribe:i}}const A=globalThis.__sveltekit_6lkak0?.base??"",Et=globalThis.__sveltekit_6lkak0?.assets??A,St="1706605005056",je="sveltekit:snapshot",$e="sveltekit:scroll",De="sveltekit:states",At="sveltekit:pageurl",N="sveltekit:history",F="sveltekit:navigation",z={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},H=location.origin;function Ce(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){const n=document.getElementsByTagName("base");t=n.length?n[0].href:document.URL}return new URL(e,t)}function _e(){return{x:pageXOffset,y:pageYOffset}}function x(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const Ie={...z,"":z.hover};function Ve(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function Fe(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=Ve(e)}}function de(e,t){let n;try{n=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI)}catch{}const r=e instanceof SVGAElement?e.target.baseVal:e.target,a=!n||!!r||ne(n,t)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),s=n?.origin===H&&e.hasAttribute("download");return{url:n,external:a,target:r,download:s}}function Y(e){let t=null,n=null,r=null,a=null,s=null,i=null,o=e;for(;o&&o!==document.documentElement;)r===null&&(r=x(o,"preload-code")),a===null&&(a=x(o,"preload-data")),t===null&&(t=x(o,"keepfocus")),n===null&&(n=x(o,"noscroll")),s===null&&(s=x(o,"reload")),i===null&&(i=x(o,"replacestate")),o=Ve(o);function c(l){switch(l){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:Ie[r??"off"],preload_data:Ie[a??"off"],keepfocus:c(t),noscroll:c(n),reload:c(s),replace_state:c(i)}}function Le(e){const t=te(e);let n=!0;function r(){n=!0,t.update(i=>i)}function a(i){n=!1,t.set(i)}function s(i){let o;return t.subscribe(c=>{(o===void 0||n&&c!==o)&&i(o=c)})}return{notify:r,set:a,subscribe:s}}function Rt(){const{set:e,subscribe:t}=te(!1);let n;async function r(){clearTimeout(n);try{const a=await fetch(`${Et}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!a.ok)return!1;const i=(await a.json()).version!==St;return i&&(e(!0),clearTimeout(n)),i}catch{return!1}}return{subscribe:t,check:r}}function ne(e,t){return e.origin!==H||!e.pathname.startsWith(t)}const It=-1,Lt=-2,Pt=-3,Tt=-4,Ut=-5,xt=-6;function Nt(e,t){if(typeof e=="number")return a(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,r=Array(n.length);function a(s,i=!1){if(s===It)return;if(s===Pt)return NaN;if(s===Tt)return 1/0;if(s===Ut)return-1/0;if(s===xt)return-0;if(i)throw new Error("Invalid input");if(s in r)return r[s];const o=n[s];if(!o||typeof o!="object")r[s]=o;else if(Array.isArray(o))if(typeof o[0]=="string"){const c=o[0],l=t?.[c];if(l)return r[s]=l(a(o[1]));switch(c){case"Date":r[s]=new Date(o[1]);break;case"Set":const d=new Set;r[s]=d;for(let f=1;ft!=null)}class re{constructor(t,n){this.status=t,typeof n=="string"?this.body={message:n}:n?this.body=n:this.body={message:`Error: ${t}`}}toString(){return JSON.stringify(this.body)}}class Ge{constructor(t,n){this.status=t,this.location=n}}class me extends Error{constructor(t,n,r){super(r),this.status=t,this.text=n}}const $t="x-sveltekit-invalidated",Dt="x-sveltekit-trailing-slash";function J(e){return e instanceof re||e instanceof me?e.status:500}function Ct(e){return e instanceof me?e.text:"Internal Error"}const T=Oe($e)??{},q=Oe(je)??{},Vt=history.pushState,ye=history.replaceState,L={url:Le({}),page:Le({}),navigating:te(null),updated:Rt()};function we(e){T[e]=_e()}function Ft(e,t){let n=e+1;for(;T[n];)delete T[n],n+=1;for(n=t+1;q[n];)delete q[n],n+=1}function j(e){return location.href=e.href,new Promise(()=>{})}function Pe(){}let ae,he,W,I,pe,$;const Me=[],X=[];let O=null;const He=[],qt=[];let V=[],y={branch:[],error:null,url:null},ve=!1,Z=!1,Te=!0,G=!1,D=!1,Be=!1,be=!1,ke,w,E,S,Q;async function Zt(e,t,n){document.URL!==location.href&&(location.href=location.href),$=e,ae=kt(e),I=document.documentElement,pe=t,he=e.nodes[0],W=e.nodes[1],he(),W(),w=history.state?.[N],E=history.state?.[F],w||(w=E=Date.now(),ye.call(history,{...history.state,[N]:w,[F]:E},""));const r=T[w];r&&(history.scrollRestoration="manual",scrollTo(r.x,r.y)),n?await Yt(pe,n):Kt(location.href,{replaceState:!0}),zt()}function Ke(e){X.some(t=>t?.snapshot)&&(q[e]=X.map(t=>t?.snapshot?.capture()))}function ze(e){q[e]?.forEach((t,n)=>{X[n]?.snapshot?.restore(t)})}function Ue(){we(w),Re($e,T),Ke(E),Re(je,q)}async function Ye(e,t,n,r){return K({type:"goto",url:Ce(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:r,accept:()=>{t.invalidateAll&&(be=!0)}})}async function Gt(e){return O={id:e.id,promise:We(e).then(t=>(t.type==="loaded"&&t.state.error&&(O=null),t))},O.promise}async function ue(e){const t=ae.find(n=>n.exec(Xe(e)));t&&await Promise.all([...t.layouts,t.leaf].map(n=>n?.[1]()))}function Je(e,t){y=e.state;const n=document.querySelector("style[data-sveltekit]");n&&n.remove(),S=e.props.page,ke=new $.root({target:t,props:{...e.props,stores:L,components:X},hydrate:!0}),ze(E);const r={from:null,to:{params:y.params,route:{id:y.route?.id??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};V.forEach(a=>a(r)),Z=!0}async function ee({url:e,params:t,branch:n,status:r,error:a,route:s,form:i}){let o="never";if(A&&(e.pathname===A||e.pathname===A+"/"))o="always";else for(const f of n)f?.slash!==void 0&&(o=f.slash);e.pathname=ot(e.pathname,o),e.search=e.search;const c={type:"loaded",state:{url:e,params:t,branch:n,error:a,route:s},props:{constructors:jt(n).map(f=>f.node.component),page:S}};i!==void 0&&(c.props.form=i);let l={},d=!S,g=0;for(let f=0;f(o&&(c.route=!0),u[f])}),params:new Proxy(r,{get:(u,f)=>(o&&c.params.add(f),u[f])}),data:s?.data??null,url:lt(n,()=>{o&&(c.url=!0)},u=>{o&&c.search_params.add(u)}),async fetch(u,f){let h;u instanceof Request?(h=u.url,f={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,...f}):h=u;const p=new URL(h,n);return o&&d(p.href),p.origin===n.origin&&(h=p.href.slice(n.origin.length)),Z?_t(h,p.href,f):gt(h,f)},setHeaders:()=>{},depends:d,parent(){return o&&(c.parent=!0),t()},untrack(u){o=!1;try{return u()}finally{o=!0}}};i=await l.universal.load.call(null,g)??null}return{node:l,loader:e,server:s,universal:l.universal?.load?{type:"data",data:i,uses:c}:null,data:i??s?.data??null,slash:l.universal?.trailingSlash??s?.slash}}function xe(e,t,n,r,a,s){if(be)return!0;if(!a)return!1;if(a.parent&&e||a.route&&t||a.url&&n)return!0;for(const i of a.search_params)if(r.has(i))return!0;for(const i of a.params)if(s[i]!==y.params[i])return!0;for(const i of a.dependencies)if(Me.some(o=>o(new URL(i))))return!0;return!1}function Se(e,t){return e?.type==="data"?e:e?.type==="skip"?t??null:null}function Mt(e,t){if(!e)return new Set(t.searchParams.keys());const n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const r of n){const a=e.searchParams.getAll(r),s=t.searchParams.getAll(r);a.every(i=>s.includes(i))&&s.every(i=>a.includes(i))&&n.delete(r)}return n}async function We({id:e,invalidating:t,url:n,params:r,route:a}){if(O?.id===e)return O.promise;const{errors:s,layouts:i,leaf:o}=a,c=[...i,o];s.forEach(_=>_?.().catch(()=>{})),c.forEach(_=>_?.[1]().catch(()=>{}));let l=null;const d=y.url?e!==y.url.pathname+y.url.search:!1,g=y.route?a.id!==y.route.id:!1,u=Mt(y.url,n);let f=!1;const h=c.map((_,m)=>{const v=y.branch[m],b=!!_?.[0]&&(v?.loader!==_[1]||xe(f,g,d,u,v.server?.uses,r));return b&&(f=!0),b});if(h.some(Boolean)){try{l=await et(n,h)}catch(_){return oe({status:J(_),error:await M(_,{url:n,params:r,route:{id:a.id}}),url:n,route:a})}if(l.type==="redirect")return l}const p=l?.nodes;let R=!1;const k=c.map(async(_,m)=>{if(!_)return;const v=y.branch[m],b=p?.[m];if((!b||b.type==="skip")&&_[1]===v?.loader&&!xe(R,g,d,u,v.universal?.uses,r))return v;if(R=!0,b?.type==="error")throw b;return Ee({loader:_[1],url:n,params:r,route:a,parent:async()=>{const se={};for(let ie=0;ie{});const P=[];for(let _=0;_Promise.resolve({}),server_data_node:Se(s)}),c={node:await W(),loader:W,universal:null,server:null,data:null};return await ee({url:n,params:a,branch:[o,c],status:e,error:t,route:null})}function Ae(e,t){if(!e||ne(e,A))return;let n;try{n=$.hooks.reroute({url:new URL(e)})??e.pathname}catch{return}const r=Xe(n);for(const a of ae){const s=a.exec(r);if(s)return{id:e.pathname+e.search,invalidating:t,route:a,params:it(s),url:e}}}function Xe(e){return st(e.slice(A.length)||"/")}function Ze({url:e,type:t,intent:n,delta:r}){let a=!1;const s=nt(y,n,e,t);r!==void 0&&(s.navigation.delta=r);const i={...s.navigation,cancel:()=>{a=!0,s.reject(new Error("navigation cancelled"))}};return G||He.forEach(o=>o(i)),a?null:s}async function K({type:e,url:t,popped:n,keepfocus:r,noscroll:a,replace_state:s,state:i={},redirect_count:o=0,nav_token:c={},accept:l=Pe,block:d=Pe}){const g=Ae(t,!1),u=Ze({url:t,type:e,delta:n?.delta,intent:g});if(!u){d();return}const f=w,h=E;l(),G=!0,Z&&L.navigating.set(u.navigation),Q=c;let p=g&&await We(g);if(!p){if(ne(t,A))return await j(t);p=await Qe(t,{id:null},await M(new me(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404)}if(t=g?.url||t,Q!==c)return u.reject(new Error("navigation aborted")),!1;if(p.type==="redirect")if(o>=20)p=await oe({status:500,error:await M(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}});else return Ye(new URL(p.location,t).href,{},o+1,c),!1;else p.props.page.status>=400&&await L.updated.check()&&await j(t);if(Me.length=0,be=!1,we(f),Ke(h),p.props.page.url.pathname!==t.pathname&&(t.pathname=p.props.page.url.pathname),i=n?n.state:i,!n){const _=s?0:1,m={[N]:w+=_,[F]:E+=_,[De]:i};(s?ye:Vt).call(history,m,"",t),s||Ft(w,E)}if(O=null,p.props.page.state=i,Z){y=p.state,p.props.page&&(p.props.page.url=t);const _=(await Promise.all(qt.map(m=>m(u.navigation)))).filter(m=>typeof m=="function");if(_.length>0){let m=function(){V=V.filter(v=>!_.includes(v))};_.push(m),callbacks.after_navigate.push(..._)}ke.$set(p.props),Be=!0}else Je(p,pe);const{activeElement:R}=document;await at();const k=n?n.scroll:a?_e():null;if(Te){const _=t.hash&&document.getElementById(decodeURIComponent(t.hash.slice(1)));k?scrollTo(k.x,k.y):_?_.scrollIntoView():scrollTo(0,0)}const P=document.activeElement!==R&&document.activeElement!==document.body;!r&&!P&&Jt(),Te=!0,p.props.page&&(S=p.props.page),G=!1,e==="popstate"&&ze(E),u.fulfil(void 0),V.forEach(_=>_(u.navigation)),L.navigating.set(null)}async function Qe(e,t,n,r){return e.origin===H&&e.pathname===location.pathname&&!ve?await oe({status:r,error:n,url:e,route:t}):await j(e)}function Bt(){let e;I.addEventListener("mousemove",s=>{const i=s.target;clearTimeout(e),e=setTimeout(()=>{r(i,2)},20)});function t(s){r(s.composedPath()[0],1)}I.addEventListener("mousedown",t),I.addEventListener("touchstart",t,{passive:!0});const n=new IntersectionObserver(s=>{for(const i of s)i.isIntersecting&&(ue(i.target.href),n.unobserve(i.target))},{threshold:0});function r(s,i){const o=Fe(s,I);if(!o)return;const{url:c,external:l,download:d}=de(o,A);if(l||d)return;const g=Y(o);if(!g.reload)if(i<=g.preload_data){const u=Ae(c,!1);u&&Gt(u)}else i<=g.preload_code&&ue(c.pathname)}function a(){n.disconnect();for(const s of I.querySelectorAll("a")){const{url:i,external:o,download:c}=de(s,A);if(o||c)continue;const l=Y(s);l.reload||(l.preload_code===z.viewport&&n.observe(s),l.preload_code===z.eager&&ue(i.pathname))}}V.push(a),a()}function M(e,t){if(e instanceof re)return e.body;const n=J(e),r=Ct(e);return $.hooks.handleError({error:e,event:t,status:n,message:r})??{message:r}}function Kt(e,t={}){return e=Ce(e),e.origin!==H?Promise.reject(new Error("goto: invalid URL")):Ye(e,t,0)}function zt(){history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let n=!1;if(Ue(),!G){const r=nt(y,void 0,null,"leave"),a={...r.navigation,cancel:()=>{n=!0,r.reject(new Error("navigation cancelled"))}};He.forEach(s=>s(a))}n?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Ue()}),navigator.connection?.saveData||Bt(),I.addEventListener("click",t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const n=Fe(t.composedPath()[0],I);if(!n)return;const{url:r,external:a,target:s,download:i}=de(n,A);if(!r)return;if(s==="_parent"||s==="_top"){if(window.parent!==window)return}else if(s&&s!=="_self")return;const o=Y(n);if(!(n instanceof SVGAElement)&&r.protocol!==location.protocol&&!(r.protocol==="https:"||r.protocol==="http:")||i)return;if(a||o.reload){Ze({url:r,type:"link"})?G=!0:t.preventDefault();return}const[l,d]=r.href.split("#");if(d!==void 0&&l===le(location)){const[,g]=y.url.href.split("#");if(g===d){t.preventDefault(),d===""||d==="top"&&n.ownerDocument.getElementById("top")===null?window.scrollTo({top:0}):n.ownerDocument.getElementById(d)?.scrollIntoView();return}if(D=!0,we(w),e(r),!o.replace_state)return;D=!1}t.preventDefault(),K({type:"link",url:r,keepfocus:o.keepfocus,noscroll:o.noscroll,replace_state:o.replace_state??r.href===location.href})}),I.addEventListener("submit",t=>{if(t.defaultPrevented)return;const n=HTMLFormElement.prototype.cloneNode.call(t.target),r=t.submitter;if((r?.formMethod||n.method)!=="get")return;const s=new URL(r?.hasAttribute("formaction")&&r?.formAction||n.action);if(ne(s,A))return;const i=t.target,o=Y(i);if(o.reload)return;t.preventDefault(),t.stopPropagation();const c=new FormData(i),l=r?.getAttribute("name");l&&c.append(l,r?.getAttribute("value")??""),s.search=new URLSearchParams(c).toString(),K({type:"form",url:s,keepfocus:o.keepfocus,noscroll:o.noscroll,replace_state:o.replace_state??s.href===location.href})}),addEventListener("popstate",async t=>{if(t.state?.[N]){const n=t.state[N];if(Q={},n===w)return;const r=T[n],a=t.state[De]??{},s=new URL(t.state[At]??location.href),i=t.state[F],o=le(location)===le(y.url);if(i===E&&(Be||o)){e(s),T[w]=_e(),r&&scrollTo(r.x,r.y),a!==S.state&&(S={...S,state:a},ke.$set({page:S})),w=n;return}const l=n-w;await K({type:"popstate",url:s,popped:{state:a,scroll:r,delta:l},accept:()=>{w=n,E=i},block:()=>{history.go(-l)},nav_token:Q})}else if(!D){const n=new URL(location.href);e(n)}}),addEventListener("hashchange",()=>{D&&(D=!1,ye.call(history,{...history.state,[N]:++w,[F]:E},"",location.href))});for(const t of document.querySelectorAll("link"))t.rel==="icon"&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&L.navigating.set(null)});function e(t){y.url=t,L.page.set({...S,url:t}),L.page.notify()}}async function Yt(e,{status:t=200,error:n,node_ids:r,params:a,route:s,data:i,form:o}){ve=!0;const c=new URL(location.href);({params:a={},route:s={id:null}}=Ae(c,!1)||{});let l;try{const d=r.map(async(f,h)=>{const p=i[h];return p?.uses&&(p.uses=tt(p.uses)),Ee({loader:$.nodes[f],url:c,params:a,route:s,parent:async()=>{const R={};for(let k=0;kf===s.id);if(u){const f=u.layouts;for(let h=0;ha?"1":"0").join(""));const r=await Ne(n.href);if(!r.ok){let a;throw r.headers.get("content-type")?.includes("application/json")?a=await r.json():r.status===404?a="Not Found":r.status===500&&(a="Internal Error"),new re(r.status,a)}return new Promise(async a=>{const s=new Map,i=r.body.getReader(),o=new TextDecoder;function c(d){return Nt(d,{Promise:g=>new Promise((u,f)=>{s.set(g,{fulfil:u,reject:f})})})}let l="";for(;;){const{done:d,value:g}=await i.read();if(d&&!l)break;for(l+=!g&&l?` +`:o.decode(g,{stream:!0});;){const u=l.indexOf(` +`);if(u===-1)break;const f=JSON.parse(l.slice(0,u));if(l=l.slice(u+1),f.type==="redirect")return a(f);if(f.type==="data")f.nodes?.forEach(h=>{h?.type==="data"&&(h.uses=tt(h.uses),h.data=c(h.data))}),a(f);else if(f.type==="chunk"){const{id:h,data:p,error:R}=f,k=s.get(h);s.delete(h),R?k.reject(c(R)):k.fulfil(c(p))}}}})}function tt(e){return{dependencies:new Set(e?.dependencies??[]),params:new Set(e?.params??[]),parent:!!e?.parent,route:!!e?.route,url:!!e?.url,search_params:new Set(e?.search_params??[])}}function Jt(){const e=document.querySelector("[autofocus]");if(e)e.focus();else{const t=document.body,n=t.getAttribute("tabindex");t.tabIndex=-1,t.focus({preventScroll:!0,focusVisible:!1}),n!==null?t.setAttribute("tabindex",n):t.removeAttribute("tabindex");const r=getSelection();if(r&&r.type!=="None"){const a=[];for(let s=0;s{if(r.rangeCount===a.length){for(let s=0;s{a=c,s=l});return i.catch(()=>{}),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url},to:n&&{params:t?.params??null,route:{id:t?.route?.id??null},url:n},willUnload:!t,type:r,complete:i},fulfil:a,reject:s}}export{Zt as a,Xt as r,L as s,te as w}; diff --git a/build/client/_app/immutable/chunks/index.76WsQp4a.js b/build/client/_app/immutable/chunks/index.76WsQp4a.js new file mode 100644 index 0000000000000000000000000000000000000000..cd5047387de6266e82ae5c3b96b5bc9aff0b57bf --- /dev/null +++ b/build/client/_app/immutable/chunks/index.76WsQp4a.js @@ -0,0 +1,4 @@ +import{n as w,B as Q,f as A,C as U,D as v,E as P,F as b,G as V,H as B,I as N,b as q,J as T,K as W,L as X,M as Y,N as z,O as Z,P as tt,Q as et,R as nt,S as st}from"./scheduler.Ze4Bbz0A.js";const D=typeof window<"u";let F=D?()=>window.performance.now():()=>Date.now(),I=D?t=>requestAnimationFrame(t):w;const p=new Set;function L(t){p.forEach(e=>{e.c(t)||(p.delete(e),e.f())}),p.size!==0&&I(L)}function G(t){let e;return p.size===0&&I(L),{promise:new Promise(n=>{p.add(e={c:t,f:n})}),abort(){p.delete(e)}}}const k=new Map;let O=0;function it(t){let e=5381,n=t.length;for(;n--;)e=(e<<5)-e^t.charCodeAt(n);return e>>>0}function rt(t,e){const n={stylesheet:U(e),rules:{}};return k.set(t,n),n}function H(t,e,n,s,r,a,u,l=0){const d=16.666/s;let i=`{ +`;for(let g=0;g<=1;g+=d){const m=e+(n-e)*a(g);i+=g*100+`%{${u(m,1-m)}} +`}const f=i+`100% {${u(n,1-n)}} +}`,o=`__svelte_${it(f)}_${l}`,_=Q(t),{stylesheet:c,rules:$}=k.get(_)||rt(_,t);$[o]||($[o]=!0,c.insertRule(`@keyframes ${o} ${f}`,c.cssRules.length));const h=t.style.animation||"";return t.style.animation=`${h?`${h}, `:""}${o} ${s}ms linear ${r}ms 1 both`,O+=1,o}function j(t,e){const n=(t.style.animation||"").split(", "),s=n.filter(e?a=>a.indexOf(e)<0:a=>a.indexOf("__svelte")===-1),r=n.length-s.length;r&&(t.style.animation=s.join(", "),O-=r,O||at())}function at(){I(()=>{O||(k.forEach(t=>{const{ownerNode:e}=t.stylesheet;e&&A(e)}),k.clear())})}let x;function J(){return x||(x=Promise.resolve(),x.then(()=>{x=null})),x}function C(t,e,n){t.dispatchEvent(V(`${e?"intro":"outro"}${n}`))}const S=new Set;let y;function _t(){y={r:0,c:[],p:y}}function $t(){y.r||v(y.c),y=y.p}function ot(t,e){t&&t.i&&(S.delete(t),t.i(e))}function ht(t,e,n,s){if(t&&t.o){if(S.has(t))return;S.add(t),y.c.push(()=>{S.delete(t),s&&(n&&t.d(1),s())}),t.o(e)}else s&&s()}const K={duration:0};function mt(t,e,n){const s={direction:"in"};let r=e(t,n,s),a=!1,u,l,d=0;function i(){u&&j(t,u)}function f(){const{delay:_=0,duration:c=300,easing:$=B,tick:h=w,css:g}=r||K;g&&(u=H(t,0,1,c,_,$,g,d++)),h(0,1);const m=F()+_,E=m+c;l&&l.abort(),a=!0,b(()=>C(t,!0,"start")),l=G(R=>{if(a){if(R>=E)return h(1,0),C(t,!0,"end"),i(),a=!1;if(R>=m){const M=$((R-m)/c);h(M,1-M)}}return a})}let o=!1;return{start(){o||(o=!0,j(t),P(r)?(r=r(s),J().then(f)):f())},invalidate(){o=!1},end(){a&&(i(),a=!1)}}}function gt(t,e,n){const s={direction:"out"};let r=e(t,n,s),a=!0,u;const l=y;l.r+=1;let d;function i(){const{delay:f=0,duration:o=300,easing:_=B,tick:c=w,css:$}=r||K;$&&(u=H(t,1,0,o,f,_,$));const h=F()+f,g=h+o;b(()=>C(t,!1,"start")),"inert"in t&&(d=t.inert,t.inert=!0),G(m=>{if(a){if(m>=g)return c(0,1),C(t,!1,"end"),--l.r||v(l.c),!1;if(m>=h){const E=_((m-h)/o);c(1-E,E)}}return a})}return P(r)?J().then(()=>{r=r(s),i()}):i(),{end(f){f&&"inert"in t&&(t.inert=d),f&&r.tick&&r.tick(1,0),a&&(u&&j(t,u),a=!1)}}}function yt(t,e,n){const s=t.$$.props[e];s!==void 0&&(t.$$.bound[s]=n,n(t.$$.ctx[s]))}function pt(t){t&&t.c()}function wt(t,e){t&&t.l(e)}function ft(t,e,n){const{fragment:s,after_update:r}=t.$$;s&&s.m(e,n),b(()=>{const a=t.$$.on_mount.map(Z).filter(P);t.$$.on_destroy?t.$$.on_destroy.push(...a):v(a),t.$$.on_mount=[]}),r.forEach(b)}function ut(t,e){const n=t.$$;n.fragment!==null&&(X(n.after_update),v(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function ct(t,e){t.$$.dirty[0]===-1&&(tt.push(t),et(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<{const $=c.length?c[0]:_;return i.ctx&&r(i.ctx[o],i.ctx[o]=$)&&(!i.skip_bound&&i.bound[o]&&i.bound[o]($),f&&ct(t,o)),_}):[],i.update(),f=!0,v(i.before_update),i.fragment=s?s(i.ctx):!1,e.target){if(e.hydrate){nt();const o=q(e.target);i.fragment&&i.fragment.l(o),o.forEach(A)}else i.fragment&&i.fragment.c();e.intro&&ot(t.$$.fragment),ft(t,e.target,e.anchor),st(),T()}z(d)}class vt{$$=void 0;$$set=void 0;$destroy(){ut(this,1),this.$destroy=w}$on(e,n){if(!P(n))return w;const s=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return s.push(n),()=>{const r=s.indexOf(n);r!==-1&&s.splice(r,1)}}$set(e){this.$$set&&!W(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const lt="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(lt);export{vt as S,ot as a,pt as b,$t as c,wt as d,ut as e,H as f,_t as g,j as h,xt as i,mt as j,gt as k,G as l,ft as m,F as n,yt as o,ht as t}; diff --git a/build/client/_app/immutable/chunks/scheduler.Ze4Bbz0A.js b/build/client/_app/immutable/chunks/scheduler.Ze4Bbz0A.js new file mode 100644 index 0000000000000000000000000000000000000000..e42487a67b5f32e28e523f2a93b46abdc7f0d250 --- /dev/null +++ b/build/client/_app/immutable/chunks/scheduler.Ze4Bbz0A.js @@ -0,0 +1 @@ +function O(){}const it=t=>t;function B(t,e){for(const n in e)t[n]=e[n];return t}function R(t){return t()}function st(){return Object.create(null)}function q(t){t.forEach(R)}function ct(t){return typeof t=="function"}function rt(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}function lt(t){return Object.keys(t).length===0}function C(t,...e){if(t==null){for(const i of e)i(void 0);return O}const n=t.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}function ot(t){let e;return C(t,n=>e=n)(),e}function at(t,e,n){t.$$.on_destroy.push(C(e,n))}function ut(t,e,n,i){if(t){const s=D(t,e,n,i);return t[0](s)}}function D(t,e,n,i){return t[1]&&i?B(n.ctx.slice(),t[1](i(e))):n.ctx}function ft(t,e,n,i){if(t[2]&&i){const s=t[2](i(n));if(e.dirty===void 0)return s;if(typeof s=="object"){const l=[],c=Math.max(e.dirty.length,s.length);for(let o=0;o32){const e=[],n=t.ctx.length/32;for(let i=0;i>1);n(s)<=i?t=s+1:e=s}return t}function G(t){if(t.hydrate_init)return;t.hydrate_init=!0;let e=t.childNodes;if(t.nodeName==="HEAD"){const r=[];for(let a=0;a0&&e[n[s]].claim_order<=a?s+1:F(1,s,P=>e[n[P]].claim_order,a))-1;i[r]=n[u]+1;const N=u+1;n[N]=r,s=Math.max(N,s)}const l=[],c=[];let o=e.length-1;for(let r=n[s]+1;r!=0;r=i[r-1]){for(l.push(e[r-1]);o>=r;o--)c.push(e[o]);o--}for(;o>=0;o--)c.push(e[o]);l.reverse(),c.sort((r,a)=>r.claim_order-a.claim_order);for(let r=0,a=0;r=l[a].claim_order;)a++;const u=at.removeEventListener(e,n,i)}function Q(t,e,n){n==null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}const V=["width","height"];function At(t,e){const n=Object.getOwnPropertyDescriptors(t.__proto__);for(const i in e)e[i]==null?t.removeAttribute(i):i==="style"?t.style.cssText=e[i]:i==="__value"?t.value=t[i]=e[i]:n[i]&&n[i].set&&V.indexOf(i)===-1?t[i]=e[i]:Q(t,i,e[i])}function kt(t){return t.dataset.svelteH}function Ct(t){let e;return{p(...n){e=n,e.forEach(i=>t.push(i))},r(){e.forEach(n=>t.splice(t.indexOf(n),1))}}}function Dt(t){return Array.from(t.childNodes)}function L(t){t.claim_info===void 0&&(t.claim_info={last_index:0,total_claimed:0})}function M(t,e,n,i,s=!1){L(t);const l=(()=>{for(let c=t.claim_info.last_index;c=0;c--){const o=t[c];if(e(o)){const r=n(o);return r===void 0?t.splice(c,1):t[c]=r,s?r===void 0&&t.claim_info.last_index--:t.claim_info.last_index=c,o}}return i()})();return l.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,l}function S(t,e,n,i){return M(t,s=>s.nodeName===e,s=>{const l=[];for(let c=0;cs.removeAttribute(c))},()=>i(e))}function Ht(t,e,n){return S(t,e,n,w)}function Lt(t,e,n){return S(t,e,n,H)}function X(t,e){return M(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 Mt(t){return X(t," ")}function A(t,e,n){for(let i=n;i0&&n.push(s);return n}class Z{is_svg=!1;e=void 0;n=void 0;t=void 0;a=void 0;constructor(e=!1){this.is_svg=e,this.e=this.n=null}c(e){this.h(e)}m(e,n,i=null){this.e||(this.is_svg?this.e=H(n.nodeName):this.e=w(n.nodeType===11?"TEMPLATE":n.nodeName),this.t=n.tagName!=="TEMPLATE"?n:n.content,this.c(e)),this.i(i)}h(e){this.e.innerHTML=e,this.n=Array.from(this.e.nodeName==="TEMPLATE"?this.e.content.childNodes:this.e.childNodes)}i(e){for(let n=0;n{const s=t.$$.callbacks[e];if(s){const l=Y(e,n,{cancelable:i});return s.slice().forEach(c=>{c.call(t,l)}),!l.defaultPrevented}return!0}}function Ut(t,e){return h().$$.context.set(t,e),e}function Wt(t){return h().$$.context.get(t)}function Jt(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach(i=>i.call(this,e))}const d=[],k=[];let _=[];const E=[],j=Promise.resolve();let v=!1;function $(){v||(v=!0,j.then(et))}function Kt(){return $(),j}function tt(t){_.push(t)}function Qt(t){E.push(t)}const b=new Set;let f=0;function et(){if(f!==0)return;const t=m;do{try{for(;ft.indexOf(i)===-1?e.push(i):n.push(i)),n.forEach(i=>i()),_=e}export{Lt as $,ft as A,I as B,Et as C,q as D,ct as E,tt as F,Y as G,it as H,st as I,et as J,lt as K,Vt as L,m as M,g as N,R as O,d as P,$ as Q,bt as R,xt as S,Bt as T,It as U,Ut as V,yt as W,zt as X,Wt as Y,Nt as Z,H as _,wt as a,Pt as a0,ot as a1,gt as a2,B as a3,dt as a4,pt as a5,C as a6,Jt as a7,y as a8,St as a9,Ct as aa,At as ab,mt as ac,vt as ad,Qt as ae,Rt as af,Dt as b,Ht as c,X as d,w as e,x as f,Mt as g,W as h,K as i,jt as j,at as k,Tt as l,Gt as m,O as n,Ft as o,Q as p,Ot as q,k as r,rt as s,T as t,qt as u,Kt as v,ut as w,kt as x,_t as y,ht as z}; diff --git a/build/client/_app/immutable/entry/app.o652oPh8.js b/build/client/_app/immutable/entry/app.o652oPh8.js new file mode 100644 index 0000000000000000000000000000000000000000..7ba546ff466a93dd974fb6f8228aff8e2f977a9a --- /dev/null +++ b/build/client/_app/immutable/entry/app.o652oPh8.js @@ -0,0 +1,7 @@ +import{s as A,a as B,l as d,g as U,i as b,f as p,m as j,o as M,e as W,c as z,b as F,p as L,q as h,t as G,d as H,j as J,r as N,u as k,v as K}from"../chunks/scheduler.Ze4Bbz0A.js";import{S as Q,i as X,t as g,c as R,a as w,g as P,b as v,d as C,m as E,e as y}from"../chunks/index.76WsQp4a.js";const Y="modulepreload",Z=function(a,e){return new URL(a,e).href},D={},S=function(e,n,i){let s=Promise.resolve();if(n&&n.length>0){const c=document.getElementsByTagName("link");s=Promise.all(n.map(t=>{if(t=Z(t,i),t in D)return;D[t]=!0;const r=t.endsWith(".css"),l=r?'[rel="stylesheet"]':"";if(!!i)for(let _=c.length-1;_>=0;_--){const m=c[_];if(m.href===t&&(!r||m.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${t}"]${l}`))return;const o=document.createElement("link");if(o.rel=r?"stylesheet":Y,r||(o.as="script",o.crossOrigin=""),o.href=t,document.head.appendChild(o),r)return new Promise((_,m)=>{o.addEventListener("load",_),o.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${t}`)))})}))}return s.then(()=>e()).catch(c=>{const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=c,window.dispatchEvent(t),!t.defaultPrevented)throw c})},re={};function $(a){let e,n,i;var s=a[1][0];function c(t,r){return{props:{data:t[3],form:t[2]}}}return s&&(e=k(s,c(a)),a[12](e)),{c(){e&&v(e.$$.fragment),n=d()},l(t){e&&C(e.$$.fragment,t),n=d()},m(t,r){e&&E(e,t,r),b(t,n,r),i=!0},p(t,r){if(r&2&&s!==(s=t[1][0])){if(e){P();const l=e;g(l.$$.fragment,1,0,()=>{y(l,1)}),R()}s?(e=k(s,c(t)),t[12](e),v(e.$$.fragment),w(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else if(s){const l={};r&8&&(l.data=t[3]),r&4&&(l.form=t[2]),e.$set(l)}},i(t){i||(e&&w(e.$$.fragment,t),i=!0)},o(t){e&&g(e.$$.fragment,t),i=!1},d(t){t&&p(n),a[12](null),e&&y(e,t)}}}function x(a){let e,n,i;var s=a[1][0];function c(t,r){return{props:{data:t[3],$$slots:{default:[ee]},$$scope:{ctx:t}}}}return s&&(e=k(s,c(a)),a[11](e)),{c(){e&&v(e.$$.fragment),n=d()},l(t){e&&C(e.$$.fragment,t),n=d()},m(t,r){e&&E(e,t,r),b(t,n,r),i=!0},p(t,r){if(r&2&&s!==(s=t[1][0])){if(e){P();const l=e;g(l.$$.fragment,1,0,()=>{y(l,1)}),R()}s?(e=k(s,c(t)),t[11](e),v(e.$$.fragment),w(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else if(s){const l={};r&8&&(l.data=t[3]),r&8215&&(l.$$scope={dirty:r,ctx:t}),e.$set(l)}},i(t){i||(e&&w(e.$$.fragment,t),i=!0)},o(t){e&&g(e.$$.fragment,t),i=!1},d(t){t&&p(n),a[11](null),e&&y(e,t)}}}function ee(a){let e,n,i;var s=a[1][1];function c(t,r){return{props:{data:t[4],form:t[2]}}}return s&&(e=k(s,c(a)),a[10](e)),{c(){e&&v(e.$$.fragment),n=d()},l(t){e&&C(e.$$.fragment,t),n=d()},m(t,r){e&&E(e,t,r),b(t,n,r),i=!0},p(t,r){if(r&2&&s!==(s=t[1][1])){if(e){P();const l=e;g(l.$$.fragment,1,0,()=>{y(l,1)}),R()}s?(e=k(s,c(t)),t[10](e),v(e.$$.fragment),w(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else if(s){const l={};r&16&&(l.data=t[4]),r&4&&(l.form=t[2]),e.$set(l)}},i(t){i||(e&&w(e.$$.fragment,t),i=!0)},o(t){e&&g(e.$$.fragment,t),i=!1},d(t){t&&p(n),a[10](null),e&&y(e,t)}}}function I(a){let e,n=a[6]&&O(a);return{c(){e=W("div"),n&&n.c(),this.h()},l(i){e=z(i,"DIV",{id:!0,"aria-live":!0,"aria-atomic":!0,style:!0});var s=F(e);n&&n.l(s),s.forEach(p),this.h()},h(){L(e,"id","svelte-announcer"),L(e,"aria-live","assertive"),L(e,"aria-atomic","true"),h(e,"position","absolute"),h(e,"left","0"),h(e,"top","0"),h(e,"clip","rect(0 0 0 0)"),h(e,"clip-path","inset(50%)"),h(e,"overflow","hidden"),h(e,"white-space","nowrap"),h(e,"width","1px"),h(e,"height","1px")},m(i,s){b(i,e,s),n&&n.m(e,null)},p(i,s){i[6]?n?n.p(i,s):(n=O(i),n.c(),n.m(e,null)):n&&(n.d(1),n=null)},d(i){i&&p(e),n&&n.d()}}}function O(a){let e;return{c(){e=G(a[7])},l(n){e=H(n,a[7])},m(n,i){b(n,e,i)},p(n,i){i&128&&J(e,n[7])},d(n){n&&p(e)}}}function te(a){let e,n,i,s,c;const t=[x,$],r=[];function l(o,_){return o[1][1]?0:1}e=l(a),n=r[e]=t[e](a);let u=a[5]&&I(a);return{c(){n.c(),i=B(),u&&u.c(),s=d()},l(o){n.l(o),i=U(o),u&&u.l(o),s=d()},m(o,_){r[e].m(o,_),b(o,i,_),u&&u.m(o,_),b(o,s,_),c=!0},p(o,[_]){let m=e;e=l(o),e===m?r[e].p(o,_):(P(),g(r[m],1,1,()=>{r[m]=null}),R(),n=r[e],n?n.p(o,_):(n=r[e]=t[e](o),n.c()),w(n,1),n.m(i.parentNode,i)),o[5]?u?u.p(o,_):(u=I(o),u.c(),u.m(s.parentNode,s)):u&&(u.d(1),u=null)},i(o){c||(w(n),c=!0)},o(o){g(n),c=!1},d(o){o&&(p(i),p(s)),r[e].d(o),u&&u.d(o)}}}function ne(a,e,n){let{stores:i}=e,{page:s}=e,{constructors:c}=e,{components:t=[]}=e,{form:r}=e,{data_0:l=null}=e,{data_1:u=null}=e;j(i.page.notify);let o=!1,_=!1,m=null;M(()=>{const f=i.page.subscribe(()=>{o&&(n(6,_=!0),K().then(()=>{n(7,m=document.title||"untitled page")}))});return n(5,o=!0),f});function T(f){N[f?"unshift":"push"](()=>{t[1]=f,n(0,t)})}function V(f){N[f?"unshift":"push"](()=>{t[0]=f,n(0,t)})}function q(f){N[f?"unshift":"push"](()=>{t[0]=f,n(0,t)})}return a.$$set=f=>{"stores"in f&&n(8,i=f.stores),"page"in f&&n(9,s=f.page),"constructors"in f&&n(1,c=f.constructors),"components"in f&&n(0,t=f.components),"form"in f&&n(2,r=f.form),"data_0"in f&&n(3,l=f.data_0),"data_1"in f&&n(4,u=f.data_1)},a.$$.update=()=>{a.$$.dirty&768&&i.page.set(s)},[t,c,r,l,u,o,_,m,i,s,T,V,q]}class oe extends Q{constructor(e){super(),X(this,e,ne,te,A,{stores:8,page:9,constructors:1,components:0,form:2,data_0:3,data_1:4})}}const ae=[()=>S(()=>import("../nodes/0.02SKRzLv.js"),__vite__mapDeps([0,1,2,3]),import.meta.url),()=>S(()=>import("../nodes/1.C4yRnS3z.js"),__vite__mapDeps([4,1,2,5]),import.meta.url),()=>S(()=>import("../nodes/2.pY1LGpCp.js"),__vite__mapDeps([6,1,2,5,7]),import.meta.url)],le=[],fe={"/":[2]},ce={handleError:({error:a})=>{console.error(a)},reroute:()=>{}};export{fe as dictionary,ce as hooks,re as matchers,ae as nodes,oe as root,le as server_loads}; +function __vite__mapDeps(indexes) { + if (!__vite__mapDeps.viteFileDeps) { + __vite__mapDeps.viteFileDeps = ["../nodes/0.02SKRzLv.js","../chunks/scheduler.Ze4Bbz0A.js","../chunks/index.76WsQp4a.js","../assets/0.qDOF2h1a.css","../nodes/1.C4yRnS3z.js","../chunks/entry.6sYS-0PY.js","../nodes/2.pY1LGpCp.js","../assets/2.hjG-dZS5.css"] + } + return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) +} diff --git a/build/client/_app/immutable/entry/app.pWMl9M9u.js b/build/client/_app/immutable/entry/app.pWMl9M9u.js new file mode 100644 index 0000000000000000000000000000000000000000..436781c80d4ff37f45ff97aadfe23f107061eb34 --- /dev/null +++ b/build/client/_app/immutable/entry/app.pWMl9M9u.js @@ -0,0 +1,7 @@ +import{s as A,a as B,l as d,g as U,i as b,f as p,m as j,o as M,e as W,c as z,b as F,p as L,q as h,t as G,d as H,j as J,r as N,u as k,v as K}from"../chunks/scheduler.Ze4Bbz0A.js";import{S as Q,i as X,t as g,c as R,a as w,g as P,b as v,d as C,m as E,e as y}from"../chunks/index.76WsQp4a.js";const Y="modulepreload",Z=function(a,e){return new URL(a,e).href},D={},S=function(e,n,i){let s=Promise.resolve();if(n&&n.length>0){const c=document.getElementsByTagName("link");s=Promise.all(n.map(t=>{if(t=Z(t,i),t in D)return;D[t]=!0;const r=t.endsWith(".css"),l=r?'[rel="stylesheet"]':"";if(!!i)for(let _=c.length-1;_>=0;_--){const m=c[_];if(m.href===t&&(!r||m.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${t}"]${l}`))return;const o=document.createElement("link");if(o.rel=r?"stylesheet":Y,r||(o.as="script",o.crossOrigin=""),o.href=t,document.head.appendChild(o),r)return new Promise((_,m)=>{o.addEventListener("load",_),o.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${t}`)))})}))}return s.then(()=>e()).catch(c=>{const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=c,window.dispatchEvent(t),!t.defaultPrevented)throw c})},re={};function $(a){let e,n,i;var s=a[1][0];function c(t,r){return{props:{data:t[3],form:t[2]}}}return s&&(e=k(s,c(a)),a[12](e)),{c(){e&&v(e.$$.fragment),n=d()},l(t){e&&C(e.$$.fragment,t),n=d()},m(t,r){e&&E(e,t,r),b(t,n,r),i=!0},p(t,r){if(r&2&&s!==(s=t[1][0])){if(e){P();const l=e;g(l.$$.fragment,1,0,()=>{y(l,1)}),R()}s?(e=k(s,c(t)),t[12](e),v(e.$$.fragment),w(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else if(s){const l={};r&8&&(l.data=t[3]),r&4&&(l.form=t[2]),e.$set(l)}},i(t){i||(e&&w(e.$$.fragment,t),i=!0)},o(t){e&&g(e.$$.fragment,t),i=!1},d(t){t&&p(n),a[12](null),e&&y(e,t)}}}function x(a){let e,n,i;var s=a[1][0];function c(t,r){return{props:{data:t[3],$$slots:{default:[ee]},$$scope:{ctx:t}}}}return s&&(e=k(s,c(a)),a[11](e)),{c(){e&&v(e.$$.fragment),n=d()},l(t){e&&C(e.$$.fragment,t),n=d()},m(t,r){e&&E(e,t,r),b(t,n,r),i=!0},p(t,r){if(r&2&&s!==(s=t[1][0])){if(e){P();const l=e;g(l.$$.fragment,1,0,()=>{y(l,1)}),R()}s?(e=k(s,c(t)),t[11](e),v(e.$$.fragment),w(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else if(s){const l={};r&8&&(l.data=t[3]),r&8215&&(l.$$scope={dirty:r,ctx:t}),e.$set(l)}},i(t){i||(e&&w(e.$$.fragment,t),i=!0)},o(t){e&&g(e.$$.fragment,t),i=!1},d(t){t&&p(n),a[11](null),e&&y(e,t)}}}function ee(a){let e,n,i;var s=a[1][1];function c(t,r){return{props:{data:t[4],form:t[2]}}}return s&&(e=k(s,c(a)),a[10](e)),{c(){e&&v(e.$$.fragment),n=d()},l(t){e&&C(e.$$.fragment,t),n=d()},m(t,r){e&&E(e,t,r),b(t,n,r),i=!0},p(t,r){if(r&2&&s!==(s=t[1][1])){if(e){P();const l=e;g(l.$$.fragment,1,0,()=>{y(l,1)}),R()}s?(e=k(s,c(t)),t[10](e),v(e.$$.fragment),w(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else if(s){const l={};r&16&&(l.data=t[4]),r&4&&(l.form=t[2]),e.$set(l)}},i(t){i||(e&&w(e.$$.fragment,t),i=!0)},o(t){e&&g(e.$$.fragment,t),i=!1},d(t){t&&p(n),a[10](null),e&&y(e,t)}}}function I(a){let e,n=a[6]&&O(a);return{c(){e=W("div"),n&&n.c(),this.h()},l(i){e=z(i,"DIV",{id:!0,"aria-live":!0,"aria-atomic":!0,style:!0});var s=F(e);n&&n.l(s),s.forEach(p),this.h()},h(){L(e,"id","svelte-announcer"),L(e,"aria-live","assertive"),L(e,"aria-atomic","true"),h(e,"position","absolute"),h(e,"left","0"),h(e,"top","0"),h(e,"clip","rect(0 0 0 0)"),h(e,"clip-path","inset(50%)"),h(e,"overflow","hidden"),h(e,"white-space","nowrap"),h(e,"width","1px"),h(e,"height","1px")},m(i,s){b(i,e,s),n&&n.m(e,null)},p(i,s){i[6]?n?n.p(i,s):(n=O(i),n.c(),n.m(e,null)):n&&(n.d(1),n=null)},d(i){i&&p(e),n&&n.d()}}}function O(a){let e;return{c(){e=G(a[7])},l(n){e=H(n,a[7])},m(n,i){b(n,e,i)},p(n,i){i&128&&J(e,n[7])},d(n){n&&p(e)}}}function te(a){let e,n,i,s,c;const t=[x,$],r=[];function l(o,_){return o[1][1]?0:1}e=l(a),n=r[e]=t[e](a);let u=a[5]&&I(a);return{c(){n.c(),i=B(),u&&u.c(),s=d()},l(o){n.l(o),i=U(o),u&&u.l(o),s=d()},m(o,_){r[e].m(o,_),b(o,i,_),u&&u.m(o,_),b(o,s,_),c=!0},p(o,[_]){let m=e;e=l(o),e===m?r[e].p(o,_):(P(),g(r[m],1,1,()=>{r[m]=null}),R(),n=r[e],n?n.p(o,_):(n=r[e]=t[e](o),n.c()),w(n,1),n.m(i.parentNode,i)),o[5]?u?u.p(o,_):(u=I(o),u.c(),u.m(s.parentNode,s)):u&&(u.d(1),u=null)},i(o){c||(w(n),c=!0)},o(o){g(n),c=!1},d(o){o&&(p(i),p(s)),r[e].d(o),u&&u.d(o)}}}function ne(a,e,n){let{stores:i}=e,{page:s}=e,{constructors:c}=e,{components:t=[]}=e,{form:r}=e,{data_0:l=null}=e,{data_1:u=null}=e;j(i.page.notify);let o=!1,_=!1,m=null;M(()=>{const f=i.page.subscribe(()=>{o&&(n(6,_=!0),K().then(()=>{n(7,m=document.title||"untitled page")}))});return n(5,o=!0),f});function T(f){N[f?"unshift":"push"](()=>{t[1]=f,n(0,t)})}function V(f){N[f?"unshift":"push"](()=>{t[0]=f,n(0,t)})}function q(f){N[f?"unshift":"push"](()=>{t[0]=f,n(0,t)})}return a.$$set=f=>{"stores"in f&&n(8,i=f.stores),"page"in f&&n(9,s=f.page),"constructors"in f&&n(1,c=f.constructors),"components"in f&&n(0,t=f.components),"form"in f&&n(2,r=f.form),"data_0"in f&&n(3,l=f.data_0),"data_1"in f&&n(4,u=f.data_1)},a.$$.update=()=>{a.$$.dirty&768&&i.page.set(s)},[t,c,r,l,u,o,_,m,i,s,T,V,q]}class oe extends Q{constructor(e){super(),X(this,e,ne,te,A,{stores:8,page:9,constructors:1,components:0,form:2,data_0:3,data_1:4})}}const ae=[()=>S(()=>import("../nodes/0.02SKRzLv.js"),__vite__mapDeps([0,1,2,3]),import.meta.url),()=>S(()=>import("../nodes/1.tb5yMBO_.js"),__vite__mapDeps([4,1,2,5]),import.meta.url),()=>S(()=>import("../nodes/2.TVjFEi2I.js"),__vite__mapDeps([6,1,2,5,7]),import.meta.url)],le=[],fe={"/":[2]},ce={handleError:({error:a})=>{console.error(a)},reroute:()=>{}};export{fe as dictionary,ce as hooks,re as matchers,ae as nodes,oe as root,le as server_loads}; +function __vite__mapDeps(indexes) { + if (!__vite__mapDeps.viteFileDeps) { + __vite__mapDeps.viteFileDeps = ["../nodes/0.02SKRzLv.js","../chunks/scheduler.Ze4Bbz0A.js","../chunks/index.76WsQp4a.js","../assets/0.qDOF2h1a.css","../nodes/1.tb5yMBO_.js","../chunks/entry.PoeC27Kh.js","../nodes/2.TVjFEi2I.js","../assets/2.hjG-dZS5.css"] + } + return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) +} diff --git a/build/client/_app/immutable/entry/start.NisxQnmI.js b/build/client/_app/immutable/entry/start.NisxQnmI.js new file mode 100644 index 0000000000000000000000000000000000000000..75a300795a865a4a85f7a8e0ebce43b1834a5b53 --- /dev/null +++ b/build/client/_app/immutable/entry/start.NisxQnmI.js @@ -0,0 +1 @@ +import{a as t}from"../chunks/entry.6sYS-0PY.js";export{t as start}; diff --git a/build/client/_app/immutable/entry/start.jeXToGvZ.js b/build/client/_app/immutable/entry/start.jeXToGvZ.js new file mode 100644 index 0000000000000000000000000000000000000000..1b1cd6c9c38b63ba4622071fe58d17620113776e --- /dev/null +++ b/build/client/_app/immutable/entry/start.jeXToGvZ.js @@ -0,0 +1 @@ +import{a as t}from"../chunks/entry.PoeC27Kh.js";export{t as start}; diff --git a/build/client/_app/immutable/nodes/0.02SKRzLv.js b/build/client/_app/immutable/nodes/0.02SKRzLv.js new file mode 100644 index 0000000000000000000000000000000000000000..b230c0cba16e3eca0f7cb290ca05a48ede07305e --- /dev/null +++ b/build/client/_app/immutable/nodes/0.02SKRzLv.js @@ -0,0 +1 @@ +import{s as L,w,e as _,a as g,c as p,b as y,g as b,f as d,x as A,p as h,i as C,h as f,y as I,z as O,A as S}from"../chunks/scheduler.Ze4Bbz0A.js";import{S as M,i as T,b as j,d as q,m as z,a as E,t as H,e as D}from"../chunks/index.76WsQp4a.js";class F extends M{constructor(e){super(),T(this,e,null,null,L,{})}}function N(o){let e,n,u,l,i,r,$="",c;n=new F({});const m=o[1].default,s=w(m,o,o[0],null);return{c(){e=_("div"),j(n.$$.fragment),u=g(),l=_("main"),s&&s.c(),i=g(),r=_("footer"),r.innerHTML=$,this.h()},l(t){e=p(t,"DIV",{class:!0});var a=y(e);q(n.$$.fragment,a),u=b(a),l=p(a,"MAIN",{class:!0});var v=y(l);s&&s.l(v),v.forEach(d),i=b(a),r=p(a,"FOOTER",{class:!0,"data-svelte-h":!0}),A(r)!=="svelte-sjry9h"&&(r.innerHTML=$),a.forEach(d),this.h()},h(){h(l,"class","svelte-1i03v0h"),h(r,"class","svelte-1i03v0h"),h(e,"class","app svelte-1i03v0h")},m(t,a){C(t,e,a),z(n,e,null),f(e,u),f(e,l),s&&s.m(l,null),f(e,i),f(e,r),c=!0},p(t,[a]){s&&s.p&&(!c||a&1)&&I(s,m,t,t[0],c?S(m,t[0],a,null):O(t[0]),null)},i(t){c||(E(n.$$.fragment,t),E(s,t),c=!0)},o(t){H(n.$$.fragment,t),H(s,t),c=!1},d(t){t&&d(e),D(n),s&&s.d(t)}}}function R(o,e,n){let{$$slots:u={},$$scope:l}=e;return o.$$set=i=>{"$$scope"in i&&n(0,l=i.$$scope)},[l,u]}class x extends M{constructor(e){super(),T(this,e,R,N,L,{})}}export{x as component}; diff --git a/build/client/_app/immutable/nodes/1.C4yRnS3z.js b/build/client/_app/immutable/nodes/1.C4yRnS3z.js new file mode 100644 index 0000000000000000000000000000000000000000..2fcb0cf2265863b5698c57a43ef7b04f7dd768b8 --- /dev/null +++ b/build/client/_app/immutable/nodes/1.C4yRnS3z.js @@ -0,0 +1 @@ +import{s as E,e as b,t as _,a as S,c as f,b as d,d as g,f as p,g as x,i as l,h,j as v,n as $,k as j}from"../chunks/scheduler.Ze4Bbz0A.js";import{S as k,i as q}from"../chunks/index.76WsQp4a.js";import{s as y}from"../chunks/entry.6sYS-0PY.js";const C=()=>{const s=y;return{page:{subscribe:s.page.subscribe},navigating:{subscribe:s.navigating.subscribe},updated:s.updated}},H={subscribe(s){return C().page.subscribe(s)}};function P(s){let t,r=s[0].status+"",o,n,i,c=s[0].error?.message+"",u;return{c(){t=b("h1"),o=_(r),n=S(),i=b("p"),u=_(c)},l(e){t=f(e,"H1",{});var a=d(t);o=g(a,r),a.forEach(p),n=x(e),i=f(e,"P",{});var m=d(i);u=g(m,c),m.forEach(p)},m(e,a){l(e,t,a),h(t,o),l(e,n,a),l(e,i,a),h(i,u)},p(e,[a]){a&1&&r!==(r=e[0].status+"")&&v(o,r),a&1&&c!==(c=e[0].error?.message+"")&&v(u,c)},i:$,o:$,d(e){e&&(p(t),p(n),p(i))}}}function w(s,t,r){let o;return j(s,H,n=>r(0,o=n)),[o]}let D=class extends k{constructor(t){super(),q(this,t,w,P,E,{})}};export{D as component}; diff --git a/build/client/_app/immutable/nodes/1.tb5yMBO_.js b/build/client/_app/immutable/nodes/1.tb5yMBO_.js new file mode 100644 index 0000000000000000000000000000000000000000..42956fa3e8d16bea4ea1d4f09b84206879ab1701 --- /dev/null +++ b/build/client/_app/immutable/nodes/1.tb5yMBO_.js @@ -0,0 +1 @@ +import{s as E,e as b,t as _,a as S,c as f,b as d,d as g,f as p,g as x,i as l,h,j as v,n as $,k as j}from"../chunks/scheduler.Ze4Bbz0A.js";import{S as k,i as q}from"../chunks/index.76WsQp4a.js";import{s as y}from"../chunks/entry.PoeC27Kh.js";const C=()=>{const s=y;return{page:{subscribe:s.page.subscribe},navigating:{subscribe:s.navigating.subscribe},updated:s.updated}},H={subscribe(s){return C().page.subscribe(s)}};function P(s){let t,r=s[0].status+"",o,n,i,c=s[0].error?.message+"",u;return{c(){t=b("h1"),o=_(r),n=S(),i=b("p"),u=_(c)},l(e){t=f(e,"H1",{});var a=d(t);o=g(a,r),a.forEach(p),n=x(e),i=f(e,"P",{});var m=d(i);u=g(m,c),m.forEach(p)},m(e,a){l(e,t,a),h(t,o),l(e,n,a),l(e,i,a),h(i,u)},p(e,[a]){a&1&&r!==(r=e[0].status+"")&&v(o,r),a&1&&c!==(c=e[0].error?.message+"")&&v(u,c)},i:$,o:$,d(e){e&&(p(t),p(n),p(i))}}}function w(s,t,r){let o;return j(s,H,n=>r(0,o=n)),[o]}let D=class extends k{constructor(t){super(),q(this,t,w,P,E,{})}};export{D as component}; diff --git a/build/client/_app/immutable/nodes/2.TVjFEi2I.js b/build/client/_app/immutable/nodes/2.TVjFEi2I.js new file mode 100644 index 0000000000000000000000000000000000000000..f7e01e3d8cc31a24b9e2dafece6c8a8123605046 --- /dev/null +++ b/build/client/_app/immutable/nodes/2.TVjFEi2I.js @@ -0,0 +1,21 @@ +import{n as ae,H as Qn,D as $e,s as ye,w as Ge,e as w,a as Q,c as B,b as A,g as Z,f as _,p as d,T as Ne,i as N,h as T,y as Xe,z as Ye,A as Je,U as zt,k as tt,V as re,W as dt,o as bt,X as Tt,m as Zn,v as xn,r as ze,l as ke,Y as de,Z as Y,_ as He,$ as Ke,t as Fe,d as Ae,q as et,j as st,x as Ce,a0 as it,a1 as $n,a2 as Ft,a3 as Ie,a4 as We,a5 as Pn,F as Rn,a6 as el,a7 as pe,a8 as ot,a9 as ct,E as tl,aa as nl,ab as vt,ac as kt,ad as Et,ae as je,af as ll}from"../chunks/scheduler.Ze4Bbz0A.js";import{n as ul,l as il,f as sl,h as al,a as F,t as U,S as Te,i as Pe,g as Ee,c as Se,j as wn,k as Bn,o as Ue,b as ge,d as _e,m as be,e as ve}from"../chunks/index.76WsQp4a.js";import{w as ut,r as rl}from"../chunks/entry.PoeC27Kh.js";const In=!0;function ol(l,e,t,n){if(!e)return ae;const u=l.getBoundingClientRect();if(e.left===u.left&&e.right===u.right&&e.top===u.top&&e.bottom===u.bottom)return ae;const{delay:i=0,duration:s=300,easing:a=Qn,start:r=ul()+i,end:o=r+s,tick:f=ae,css:c}=t(l,{from:e,to:u},n);let m=!0,h=!1,k;function g(){c&&(k=sl(l,0,1,s,i,a,c)),i||(h=!0)}function v(){c&&al(l,k),m=!1}return il(C=>{if(!h&&C>=r&&(h=!0),h&&C>=o&&(f(1,0),v()),!m)return!1;if(h){const y=C-r,p=0+1*a(y/s);f(p,1-p)}return!0}),g(),f(0,1),v}function cl(l){const e=getComputedStyle(l);if(e.position!=="absolute"&&e.position!=="fixed"){const{width:t,height:n}=e,u=l.getBoundingClientRect();l.style.position="absolute",l.style.width=t,l.style.height=n,Fn(l,u)}}function Fn(l,e){const t=l.getBoundingClientRect();if(e.left!==t.left||e.top!==t.top){const n=getComputedStyle(l),u=n.transform==="none"?"":n.transform;l.style.transform=`${u} translate(${e.left-t.left}px, ${e.top-t.top}px)`}}function xe(l){return l?.length!==void 0?l:Array.from(l)}function fl(l,e){U(l,1,1,()=>{e.delete(l.key)})}function dl(l,e){l.f(),fl(l,e)}function hl(l,e,t,n,u,i,s,a,r,o,f,c){let m=l.length,h=i.length,k=m;const g={};for(;k--;)g[l[k].key]=k;const v=[],C=new Map,y=new Map,p=[];for(k=h;k--;){const b=c(u,i,k),D=t(b);let z=s.get(D);z?n&&p.push(()=>z.p(b,e)):(z=o(D,b),z.c()),C.set(D,v[k]=z),D in g&&y.set(D,Math.abs(k-g[D]))}const R=new Set,M=new Set;function E(b){F(b,1),b.m(a,f),s.set(b.key,b),f=b.first,h--}for(;m&&h;){const b=v[h-1],D=l[m-1],z=b.key,$=D.key;b===D?(f=b.first,m--,h--):C.has($)?!s.has(z)||R.has(z)?E(b):M.has($)?m--:y.get(z)>y.get($)?(M.add(z),E(b)):(R.add($),m--):(r(D,s),m--)}for(;m--;){const b=l[m];C.has(b.key)||r(b,s)}for(;h;)E(v[h-1]);return $e(p),v}function An(l,e){const t={},n={},u={$$scope:1};let i=l.length;for(;i--;){const s=l[i],a=e[i];if(a){for(const r in s)r in a||(n[r]=1);for(const r in a)u[r]||(t[r]=a[r],u[r]=1);l[i]=a}else for(const r in s)u[r]=1}for(const s in n)s in t||(t[s]=void 0);return t}const ml=!0,bi=Object.freeze(Object.defineProperty({__proto__:null,prerender:ml},Symbol.toStringTag,{value:"Module"}));function gt(l){if(!l.endsWith("px"))return;const e=parseFloat(l.slice(0,l.length-2));return isNaN(e)?void 0:e}const On=l=>l?"height":"width",Ct=l=>window.getComputedStyle(l),Dt=l=>l.getBoundingClientRect(),gl=(l,e=!0)=>{if(l.getPropertyValue("box-sizing")==="border-box")return;const t=gt(l.getPropertyValue("border-left-width"));if(t===void 0){console.error("Splitpanes Error: Fail to parse container `border-left-width`.");return}const n=gt(l.getPropertyValue("border-top-width"));if(n===void 0){console.error("Splitpanes Error: Fail to parse container `border-top-width`.");return}const u={left:t,top:n};if(e){const i=gt(l.getPropertyValue("border-right-width"));if(i===void 0){console.error("Splitpanes Error: Fail to parse container `border-right-width`.");return}const s=gt(l.getPropertyValue("border-bottom-width"));if(s===void 0){console.error("Splitpanes Error: Fail to parse container `border-bottom-width`.");return}const a=u;a.right=i,a.bottom=s}return u};function _l(l,e){e||(e=Ct(l));const t=Dt(l),n=gl(e,!0)||{left:0,top:0,right:0,bottom:0};return{width:t.width-n.left-n.right,height:t.height-n.top-n.bottom,left:t.left+n.left,top:t.top+n.top}}const At=(l,e)=>({left:l.left-e.left,top:l.top-e.top});function Ot(l){const e=l,t=l,{clientX:n,clientY:u}="ontouchstart"in window&&t.touches?t.touches[0]:e;return{left:n,top:u}}function Mt(l,e,t,n){let u=0;for(let i=e;it(31,i=S));const ue=ut(h);tt(l,ue,S=>t(30,u=S));const te=ut(void 0);tt(l,te,S=>t(29,n=S));let H=null,le=null;re(Mn,{showFirstSplitter:ue,veryFirstPaneKey:te,isHorizontal:ne,ssrRegisterPaneSize:void 0,onPaneInit:S=>(n===void 0&&dt(te,n=S,n),{undefinedPaneInitSize:0}),clientOnly:{onPaneAdd:De,onPaneRemove:L}});function De(S){let W=-1;Array.from(S.element.parentNode.children).some(O=>(O.className.includes("splitpanes__pane")&&W++,O===S.element)),W===0&&dt(te,n=S.key,n),I.splice(W,0,S);for(let O=0;O{S.isReady=!0,C("pane-add",{index:W,panes:G()})});const J=(O,x=!0)=>K=>{(x||S.index>0)&&O(K,S)};return{onSplitterDown:J(ft,!1),onSplitterClick:J(Me,!1),onSplitterDblClick:J(at),onPaneClick:J(se),reportGivenSizeChange:J(V)}}async function L(S){const W=I.findIndex(J=>J.key===S);if(W>=0){const J=I.splice(W,1)[0];for(let O=0;O0?I[0].key:void 0,n),p&&(await St(),C("pane-remove",{removed:J,panes:G()}))}}function se(S,W){C("pane-click",W)}function V(S,W){W.setSz(S),St()}bt(()=>{Bt(),wt();for(let S=0;S{t(6,M=!0)},0)}),Tt(()=>{p&&X(),p=!1}),Zn(()=>{Bt()});function P(S){if(m==="auto")try{return(S??Ct(y)).direction==="rtl"}catch{}return m===!0}function oe(){document.body.style.cursor=ne?"col-resize":"row-resize",document.addEventListener("mousemove",Oe,{passive:!1}),document.addEventListener("mouseup",qe),"ontouchstart"in window&&(document.addEventListener("touchmove",Oe,{passive:!1}),document.addEventListener("touchend",qe))}function X(){document.body.style.cursor="",document.removeEventListener("mousemove",Oe),document.removeEventListener("mouseup",qe),"ontouchstart"in window&&(document.removeEventListener("touchmove",Oe),document.removeEventListener("touchend",qe))}const ie=S=>S.nodeType===Node.ELEMENT_NODE&&S.classList.contains("splitpanes__splitter");function j(S,W,J){let O=S[o?"top":"left"];return J&&!o&&(O=W-O),O}const we=()=>On(o);function ft(S,W){t(7,E=!0),D=W.index,W.setSplitterActive(!0);let O=W.element;for(;O!=null&&(O=O.previousSibling,!ie(O)););if(O==null){console.error("Splitpane Error: Active splitter wasn't found!");return}H=O;const x=Ot(S),K=Dt(H);le=j(At(x,K),K[we()],P()),oe()}function Oe(S){if(E){S.preventDefault(),t(8,b=!0);const W=Ot(S),J=Ct(y),O=_l(y,J),x=O[we()],K=P(J),q=At(W,O),ee=j(q,x,K);rt(ee,x),C("resize",G())}}function qe(){b&&C("resized",G()),t(7,E=!1),I[D].setSplitterActive(!1),setTimeout(()=>{t(8,b=!1),X()},100)}function Me(S,W){if("ontouchstart"in window){S.preventDefault();const J=W.index;c&&(z===J?($&&clearTimeout($),$=null,at(S,W),z=-1):(z=J,$=setTimeout(()=>{z=-1},500)))}b||C("splitter-click",W)}function at(S,W){if(c){const J=W.index;let O=0;for(let q=0;q=100)for(let q=0;q{const me=ce.min(),Be=ce.max(),Le=Math.min(Math.max(0,q),Be-me);ce.setSz(me+Le),q-=Le};for(let ce=J-1;ce>=0;ce--)ee(I[ce]);for(let ce=J+1;ceI.map(S=>({min:S.min(),max:S.max(),size:S.sz(),snap:S.snap()}));function he(S,W){const J=Be=>Dt(Be)[we()],O=J(H);let x=0,K=H.previousSibling;for(;K!=null;)ie(K)&&(x+=J(K)),K=K.previousSibling;let q=0,ee=H.nextSibling;for(;ee!=null;)ie(ee)&&(q+=J(ee)),ee=ee.nextSibling;const ce=x+le,me=x+O+q;return(S-ce)/(W-me)*100}function rt(S,W){let J=D-1,O=I[J],x=D,K=I[x],q={prevPanesSize:lt(J),nextPanesSize:ht(x),prevReachedMinPanes:0,nextReachedMinPanes:0};const ee=0+(f?0:q.prevPanesSize),ce=100-(f?0:q.nextPanesSize),me=Math.max(Math.min(he(S,W),ce),ee),Be=q.prevPanesSize+O.min()+O.snap(),Le=100-(q.nextPanesSize+K.min()+K.snap());let fe=me,Ze=!1;me<=Be?me>q.prevPanesSize+O.min()&&(fe=Math.max(O.min()+q.prevPanesSize,100-(K.max()+q.nextPanesSize)),Ze=!0):me>=Le&&me<100-q.nextPanesSize-K.min()&&(fe=Math.min(100-(K.min()+q.nextPanesSize),O.max()+q.prevPanesSize),Ze=!0);const mt=O.max()<100&&fe>=O.max()+q.prevPanesSize,Jn=K.max()<100&&fe<=100-(K.max()+q.nextPanesSize);if(mt||Jn)mt?(O.setSz(O.max()),K.setSz(Math.max(100-O.max()-q.prevPanesSize-q.nextPanesSize,0))):(O.setSz(Math.max(100-K.max()-q.prevPanesSize-q.nextPanesSize,0)),K.setSz(K.max()));else{if(f&&!Ze){const It=Qe(q,fe);if(!It)return;({sums:q,paneBeforeIndex:J,paneAfterIndex:x}=It),O=I[J],K=I[x]}J!=null&&O.setSz(Math.min(Math.max(fe-q.prevPanesSize-q.prevReachedMinPanes,O.min()),O.max())),x!=null&&K.setSz(Math.min(Math.max(100-fe-q.nextPanesSize-q.nextReachedMinPanes,K.min()),K.max()))}}function Qe(S,W){const J=D-1;let O=J,x=J+1;if(W{K.setSz(K.min()),S.prevReachedMinPanes+=K.min()}),S.prevPanesSize=lt(O),O==null))return S.prevReachedMinPanes=0,I[0].setSz(I[0].min()),_t(I,1,J+1,K=>{K.setSz(K.min()),S.prevReachedMinPanes+=K.min()}),I[x].setSz(100-S.prevReachedMinPanes-I[0].min()-S.prevPanesSize-S.nextPanesSize),null;if(W>100-S.nextPanesSize-I[x].min()){x=Kn(J)?.index,S.nextReachedMinPanes=0,x>J+1&&_t(I,J+1,x,q=>{q.setSz(q.min()),S.nextReachedMinPanes+=q.min()}),S.nextPanesSize=ht(x);const K=I.length;if(x==null)return S.nextReachedMinPanes=0,I[K-1].setSz(I[K-1].min()),_t(I,J+1,K-1,q=>{q.setSz(q.min()),S.nextReachedMinPanes+=q.min()}),I[O].setSz(100-S.prevPanesSize-S.nextReachedMinPanes-I[K-1].min()-S.nextPanesSize),null}return{sums:S,paneBeforeIndex:O,paneAfterIndex:x}}const nt=S=>S.sz(),lt=S=>Mt(I,0,S,nt),ht=S=>Mt(I,S+1,I.length,nt),Hn=S=>[...I].reverse().find(W=>W.indexW.min()),Kn=S=>I.find(W=>W.index>S+1&&W.sz()>W.min());async function St(){R=!0,await xn(),R&&(wt(),R=!1)}function wt(){Gn(),p&&C("resized",G())}function Gn(){if(I.length===0)return;const S=I.length;let W=100,J=0,O=0,x=0,K=[],q=[];for(let Le=0;Le=fe.max()&&K.push(fe),Ze<=fe.min()&&q.push(fe)):O+=1:(W-=Ze,J++,K.push(fe),q.push(fe))}const ee=S-J,ce=ee-O;let me,Be;if(ce>0?(me=x/ce,me>.1&&W>.1?(x+=O*me,Be=W/x):(me=0,Be=1)):(me=W/ee,Be=1),W+x>.1){W=100;for(let Le=0;Le.1&&(W=Xn(W,K,q))}isFinite(W)?Math.abs(W)>.1&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints."):console.warn("Splitpanes: Internal error, sizes might be NaN as a result.")}function Xn(S,W,J){const x=I.length-(S>0?W.length:J.length);if(x<=0)return S;const K=S/x;if(I.length===1)I[0].setSz(100),S=0;else for(let q=0;q0&&!W.includes(ee)){const me=Math.max(Math.min(ce+K,ee.max()),ee.min()),Be=me-ce;S-=Be,ee.setSz(me)}else if(!J.includes(ee)){const me=Math.max(Math.min(ce+K,ee.max()),ee.min()),Be=me-ce;S-=Be,ee.setSz(me)}}return S}function Bt(){const{children:S}=y;let W=0,J=!1;for(let O=0;O elements are allowed at the root of . One of your DOM nodes was removed.");return}else K&&(!J&&I[W].element!==x&&(J=!0),W++)}if(J){const O=[];for(let x=0;xce.element===K);ee!=null?(ee.index=O.length,O.push(ee)):console.warn("Splitpanes: Internal error - found a elements which isn't tracked.")}}I=O,dt(te,n=I.length>0?I[0].key:void 0,n)}}function Yn(S){ze[S?"unshift":"push"](()=>{y=S,t(5,y)})}return l.$$set=S=>{"id"in S&&t(0,r=S.id),"horizontal"in S&&t(1,o=S.horizontal),"pushOtherPanes"in S&&t(12,f=S.pushOtherPanes),"dblClickSplitter"in S&&t(13,c=S.dblClickSplitter),"rtl"in S&&t(14,m=S.rtl),"firstSplitter"in S&&t(15,h=S.firstSplitter),"style"in S&&t(2,k=S.style),"theme"in S&&t(3,g=S.theme),"class"in S&&t(4,v=S.class),"$$scope"in S&&t(18,a=S.$$scope)},l.$$.update=()=>{l.$$.dirty[0]&2&&dt(ne,i=o,i),l.$$.dirty[0]&32768&&dt(ue,u=h,u)},[r,o,k,g,v,y,M,E,b,ne,ue,te,f,c,m,h,s,Yn,a]}class kl extends Te{constructor(e){super(),Pe(this,e,vl,bl,ye,{id:0,horizontal:1,pushOtherPanes:12,dblClickSplitter:13,rtl:14,firstSplitter:15,style:2,theme:3,class:4},null,[-1,-1,-1])}}const pl=(l,e)=>t=>{const n=l();n?.[e](t)},El=l=>pl.bind(null,l);function Sl(l){let e,t,n,u,i,s,a=(l[4]!==l[9]||l[5])&&Lt(l);const r=l[20].default,o=Ge(r,l,l[19],null);return{c(){a&&a.c(),e=Q(),t=w("div"),o&&o.c(),this.h()},l(f){a&&a.l(f),e=Z(f),t=B(f,"DIV",{class:!0,style:!0});var c=A(t);o&&o.l(c),c.forEach(_),this.h()},h(){d(t,"class",n=`splitpanes__pane ${l[0]||""}`),d(t,"style",l[3])},m(f,c){a&&a.m(f,c),N(f,e,c),N(f,t,c),o&&o.m(t,null),l[21](t),u=!0,i||(s=Y(t,"click",l[11]("onPaneClick")),i=!0)},p(f,c){f[4]!==f[9]||f[5]?a?a.p(f,c):(a=Lt(f),a.c(),a.m(e.parentNode,e)):a&&(a.d(1),a=null),o&&o.p&&(!u||c&524288)&&Xe(o,r,f,f[19],u?Je(r,f[19],c,null):Ye(f[19]),null),(!u||c&1&&n!==(n=`splitpanes__pane ${f[0]||""}`))&&d(t,"class",n),(!u||c&8)&&d(t,"style",f[3])},i(f){u||(F(o,f),u=!0)},o(f){U(o,f),u=!1},d(f){f&&(_(e),_(t)),a&&a.d(f),o&&o.d(f),l[21](null),i=!1,s()}}}function Lt(l){let e,t,n,u;return{c(){e=w("div"),this.h()},l(i){e=B(i,"DIV",{class:!0}),A(e).forEach(_),this.h()},h(){d(e,"class",t="splitpanes__splitter "+(l[2]?"splitpanes__splitter__active":""))},m(i,s){N(i,e,s),n||(u=[Y(e,"mousedown",l[11]("onSplitterDown")),Y(e,"touchstart",l[11]("onSplitterDown")),Y(e,"click",l[11]("onSplitterClick")),Y(e,"dblclick",l[11]("onSplitterDblClick"))],n=!0)},p(i,s){s&4&&t!==(t="splitpanes__splitter "+(i[2]?"splitpanes__splitter__active":""))&&d(e,"class",t)},d(i){i&&_(e),n=!1,$e(u)}}}function yl(l){let e,t,n=!l[10]&&Sl(l);return{c(){n&&n.c(),e=ke()},l(u){n&&n.l(u),e=ke()},m(u,i){n&&n.m(u,i),N(u,e,i),t=!0},p(u,[i]){u[10]||n.p(u,i)},i(u){t||(F(n),t=!0)},o(u){U(n),t=!1},d(u){u&&_(e),n&&n.d(u)}}}function Cl(l,e,t){let n,u,i,s,a,{$$slots:r={},$$scope:o}=e;const{ssrRegisterPaneSize:f,onPaneInit:c,clientOnly:m,isHorizontal:h,showFirstSplitter:k,veryFirstPaneKey:g}=de(Mn);tt(l,h,H=>t(18,i=H)),tt(l,k,H=>t(5,a=H)),tt(l,g,H=>t(4,s=H));let{size:v=null}=e,{minSize:C=0}=e,{maxSize:y=100}=e,{snapSize:p=0}=e,{class:R=""}=e;const M={},E=!In,{undefinedPaneInitSize:b}=c(M);let D,z=v??b,$=!1,I;const ne=El(()=>I),ue=H=>{H!=z&&ne("reportGivenSizeChange")(H)};bt(()=>{const H={key:M,element:D,givenSize:v,sz:()=>z,setSz:le=>{t(16,z=le),v!=null&&v!=z&&t(12,v=z)},min:()=>C,max:()=>y,snap:()=>p,setSplitterActive:le=>{t(2,$=le)},isReady:!1};I=m.onPaneAdd(H)}),Tt(()=>{m.onPaneRemove(M)});function te(H){ze[H?"unshift":"push"](()=>{D=H,t(1,D)})}return l.$$set=H=>{"size"in H&&t(12,v=H.size),"minSize"in H&&t(13,C=H.minSize),"maxSize"in H&&t(14,y=H.maxSize),"snapSize"in H&&t(15,p=H.snapSize),"class"in H&&t(0,R=H.class),"$$scope"in H&&t(19,o=H.$$scope)},l.$$.update=()=>{l.$$.dirty&4096&&v!=null&&ue(v),l.$$.dirty&262144&&t(17,n=On(i)),l.$$.dirty&196608&&t(3,u=`${n}: ${z}%;`)},[R,D,$,u,s,a,h,k,g,M,E,ne,v,C,y,p,z,n,i,o,r,te]}class Nt extends Te{constructor(e){super(),Pe(this,e,Cl,yl,ye,{size:12,minSize:13,maxSize:14,snapSize:15,class:0})}}function Dl(l){let e,t,n,u,i,s,a;return{c(){e=He("svg"),t=He("circle"),n=He("animate"),u=He("circle"),i=He("animate"),s=He("circle"),a=He("animate"),this.h()},l(r){e=Ke(r,"svg",{version:!0,id:!0,xmlns:!0,"xmlns:xlink":!0,x:!0,y:!0,viewBox:!0,"enable-background":!0,"xml:space":!0});var o=A(e);t=Ke(o,"circle",{fill:!0,stroke:!0,cx:!0,cy:!0,r:!0});var f=A(t);n=Ke(f,"animate",{attributeName:!0,dur:!0,values:!0,repeatCount:!0,begin:!0}),A(n).forEach(_),f.forEach(_),u=Ke(o,"circle",{fill:!0,stroke:!0,cx:!0,cy:!0,r:!0});var c=A(u);i=Ke(c,"animate",{attributeName:!0,dur:!0,values:!0,repeatCount:!0,begin:!0}),A(i).forEach(_),c.forEach(_),s=Ke(o,"circle",{fill:!0,stroke:!0,cx:!0,cy:!0,r:!0});var m=A(s);a=Ke(m,"animate",{attributeName:!0,dur:!0,values:!0,repeatCount:!0,begin:!0}),A(a).forEach(_),m.forEach(_),o.forEach(_),this.h()},h(){d(n,"attributeName","opacity"),d(n,"dur","1s"),d(n,"values","0;1;0"),d(n,"repeatCount","indefinite"),d(n,"begin","0.1"),d(t,"fill","#1976d2"),d(t,"stroke","none"),d(t,"cx","6"),d(t,"cy","50"),d(t,"r","6"),d(i,"attributeName","opacity"),d(i,"dur","1s"),d(i,"values","0;1;0"),d(i,"repeatCount","indefinite"),d(i,"begin","0.2"),d(u,"fill","#1976d2"),d(u,"stroke","none"),d(u,"cx","26"),d(u,"cy","50"),d(u,"r","6"),d(a,"attributeName","opacity"),d(a,"dur","1s"),d(a,"values","0;1;0"),d(a,"repeatCount","indefinite"),d(a,"begin","0.3"),d(s,"fill","#1976d2"),d(s,"stroke","none"),d(s,"cx","46"),d(s,"cy","50"),d(s,"r","6"),d(e,"version","1.1"),d(e,"id","L4"),d(e,"xmlns","http://www.w3.org/2000/svg"),d(e,"xmlns:xlink","http://www.w3.org/1999/xlink"),d(e,"x","0px"),d(e,"y","0px"),d(e,"viewBox","0 0 100 100"),d(e,"enable-background","new 0 0 0 0"),d(e,"xml:space","preserve")},m(r,o){N(r,e,o),T(e,t),T(t,n),T(e,u),T(u,i),T(e,s),T(s,a)},p:ae,i:ae,o:ae,d(r){r&&_(e)}}}function zl(l,e,t){let{size:n=20}=e;return l.$$set=u=>{"size"in u&&t(0,n=u.size)},[n]}class Tl extends Te{constructor(e){super(),Pe(this,e,zl,Dl,ye,{size:0})}}function Pl(l){let e,t,n,u,i;return{c(){e=w("div"),t=He("svg"),n=He("circle"),u=Q(),i=Fe(l[2]),this.h()},l(s){e=B(s,"DIV",{class:!0});var a=A(e);t=Ke(a,"svg",{class:!0,viewBox:!0,xmlns:!0});var r=A(t);n=Ke(r,"circle",{cx:!0,cy:!0,r:!0,fill:!0,style:!0}),A(n).forEach(_),r.forEach(_),u=Z(a),i=Ae(a,l[2]),a.forEach(_),this.h()},h(){d(n,"cx","10"),d(n,"cy","10"),d(n,"r","5"),d(n,"fill",l[0]),et(n,"filter","drop-shadow(0 0 1px "+l[1]+")"),d(t,"class","dot svelte-a20mi8"),d(t,"viewBox","0 0 20 20"),d(t,"xmlns","http://www.w3.org/2000/svg"),d(e,"class","llm-health-status svelte-a20mi8")},m(s,a){N(s,e,a),T(e,t),T(t,n),T(e,u),T(e,i)},p(s,[a]){a&1&&d(n,"fill",s[0]),a&2&&et(n,"filter","drop-shadow(0 0 1px "+s[1]+")"),a&4&&st(i,s[2])},i:ae,o:ae,d(s){s&&_(e)}}}function Rl(l,e,t){let{status:n="unknown"}=e,u="",i="",s="";switch(n){case"ok":u="#4CAF50",i="rgba(0, 128, 0, 0.7)",s="Сервис LLM работает";break;case"error":s="Сервис LLM не работает";break;case"loading model":u="yellow",i="rgba(255, 255, 0, 0.7)",s="Сервис LLM запускается...";break;case"unavailable":u="#af4f4c",i="#af4f4c",s="Сервис LLM не запущен";break;case"unknown":u="#af4f4c",i="#af4f4c",s="Сервис LLM недоступен";break}return l.$$set=a=>{"status"in a&&t(3,n=a.status)},[u,i,s,n]}class wl extends Te{constructor(e){super(),Pe(this,e,Rl,Pl,ye,{status:3})}}function Bl(l){let e,t,n,u,i;return{c(){e=w("div"),t=He("svg"),n=He("circle"),u=Q(),i=Fe(l[2]),this.h()},l(s){e=B(s,"DIV",{class:!0});var a=A(e);t=Ke(a,"svg",{class:!0,viewBox:!0,xmlns:!0});var r=A(t);n=Ke(r,"circle",{cx:!0,cy:!0,r:!0,fill:!0,style:!0}),A(n).forEach(_),r.forEach(_),u=Z(a),i=Ae(a,l[2]),a.forEach(_),this.h()},h(){d(n,"cx","10"),d(n,"cy","10"),d(n,"r","5"),d(n,"fill",l[0]),et(n,"filter","drop-shadow(0 0 1px "+l[1]+")"),d(t,"class","dot svelte-1wcf73j"),d(t,"viewBox","0 0 20 20"),d(t,"xmlns","http://www.w3.org/2000/svg"),d(e,"class","llm-health-status svelte-1wcf73j")},m(s,a){N(s,e,a),T(e,t),T(t,n),T(e,u),T(e,i)},p(s,[a]){a&1&&d(n,"fill",s[0]),a&2&&et(n,"filter","drop-shadow(0 0 1px "+s[1]+")"),a&4&&st(i,s[2])},i:ae,o:ae,d(s){s&&_(e)}}}function Il(l,e,t){let{status:n="unavailable"}=e,u="",i="",s="";switch(n){case"ok":u="#4CAF50",i="rgba(0, 128, 0, 0.7)",s="Поиск работает";break;case"unavailable":u="#af4f4c",i="#af4f4c",s="Поиск не запущен";break;case"unknown":u="#af4f4c",i="#af4f4c",s="Поиск недоступен";break}return l.$$set=a=>{"status"in a&&t(3,n=a.status)},[u,i,s,n]}class Fl extends Te{constructor(e){super(),Pe(this,e,Il,Bl,ye,{status:3})}}function Al(l){let e,t,n,u,i,s="Сохранить",a,r,o="Сбросить",f,c;return{c(){e=w("div"),t=w("div"),n=w("textarea"),u=Q(),i=w("button"),i.textContent=s,a=Q(),r=w("button"),r.textContent=o,this.h()},l(m){e=B(m,"DIV",{class:!0});var h=A(e);t=B(h,"DIV",{class:!0});var k=A(t);n=B(k,"TEXTAREA",{class:!0}),A(n).forEach(_),u=Z(k),i=B(k,"BUTTON",{class:!0,"data-svelte-h":!0}),Ce(i)!=="svelte-g0hhac"&&(i.textContent=s),a=Z(k),r=B(k,"BUTTON",{class:!0,"data-svelte-h":!0}),Ce(r)!=="svelte-16kemh0"&&(r.textContent=o),k.forEach(_),h.forEach(_),this.h()},h(){d(n,"class","svelte-sfudwy"),d(i,"class","svelte-sfudwy"),d(r,"class","svelte-sfudwy"),d(t,"class","popup svelte-sfudwy"),d(e,"class","modal svelte-sfudwy")},m(m,h){N(m,e,h),T(e,t),T(t,n),it(n,l[0]),T(t,u),T(t,i),T(t,a),T(t,r),f||(c=[Y(n,"input",l[6]),Y(i,"click",l[1]),Y(r,"click",l[2])],f=!0)},p(m,[h]){h&1&&it(n,m[0])},i:ae,o:ae,d(m){m&&_(e),f=!1,$e(c)}}}let Ol='Ты бухгалтер. Ты отвечаешь на русском языке. Ты всегда следуешь моим инструкциям. Ты отвечаешь на вопросы клиентов. Чтобы ответить, ты обязательно используешь только "источники", которые я тебе предоставляю. Ты используешь только официально-деловой стиль и необходимую терминологию. Соблюдай этические нормы. При ответе на вопрос ты используешь только такой формат ответа: 1) Четкий и краткий ответ на поставленный вопрос. Ты можешь начать свой ответ так: "По Вашему вопросу сообщаем...". Используй по возможности слова: да, можно, нет, нельзя. 2) Обоснование (ты используешь для обоснования "источники". Ты используешь только "источники" для поиска необходимых "законов", "статей", "пунктов" и "подпунктов" для ответа на вопрос пользователя). 3) Аргументация (Ты используешь только "источники" для поиска необходимых "писем" и "судебных решений", чтобы аргументировать свой ответ)." 4) Заключение (ты подводишь итоги всего, что сказал выше. Избегай повторения и сложных конструкций). Если в источниках нельзя найти подходящую информацию для ответа, ты отвечаешь так: "Мы не можем ответить на данный вопрос. Обратитесь к специалисту." Вопрос: {{ВОПРОС}} Источники: {{ИСТОЧНИКИ}}';function Ml(l,e,t){let{onSave:n}=e,{onClose:u}=e,{text:i=""}=e,s=i;function a(){n(s),u()}function r(){t(0,s=Ol)}function o(){s=this.value,t(0,s)}return l.$$set=f=>{"onSave"in f&&t(3,n=f.onSave),"onClose"in f&&t(4,u=f.onClose),"text"in f&&t(5,i=f.text)},[s,a,r,n,u,i,o]}class Ll extends Te{constructor(e){super(),Pe(this,e,Ml,Al,ye,{onSave:3,onClose:4,text:5})}}const Nl="drawerStore";function Vl(){const l=jl();return re(Nl,l)}function jl(){const{subscribe:l,set:e,update:t}=ut({});return{subscribe:l,set:e,update:t,open:n=>t(()=>({open:!0,...n})),close:()=>t(n=>(n.open=!1,n))}}const Ul="modalStore";function Wl(){const l=ql();return re(Ul,l)}function ql(){const{subscribe:l,set:e,update:t}=ut([]);return{subscribe:l,set:e,update:t,trigger:n=>t(u=>(u.push(n),u)),close:()=>t(n=>(n.length>0&&n.shift(),n)),clear:()=>e([])}}const Hl={message:"Missing Toast Message",autohide:!0,timeout:5e3},Ln="toastStore";function Nn(){const l=de(Ln);if(!l)throw new Error("toastStore is not initialized. Please ensure that `initializeStores()` is invoked in the root layout file of this app!");return l}function Kl(){const l=Xl();return re(Ln,l)}function Gl(){const l=Math.random();return Number(l).toString(32)}function Xl(){const{subscribe:l,set:e,update:t}=ut([]),n=i=>t(s=>{if(s.length>0){const a=s.findIndex(o=>o.id===i),r=s[a];r&&(r.callback&&r.callback({id:i,status:"closed"}),r.timeoutId&&clearTimeout(r.timeoutId),s.splice(a,1))}return s});function u(i){if(i.autohide===!0)return setTimeout(()=>{n(i.id)},i.timeout)}return{subscribe:l,close:n,trigger:i=>{const s=Gl();return t(a=>{i&&i.callback&&i.callback({id:s,status:"queued"}),i.hideDismiss&&(i.autohide=!0);const r={...Hl,...i,id:s};return r.timeoutId=u(r),a.push(r),a}),s},freeze:i=>t(s=>(s.length>0&&clearTimeout(s[i].timeoutId),s)),unfreeze:i=>t(s=>(s.length>0&&(s[i].timeoutId=u(s[i])),s)),clear:()=>e([])}}function Yl(){Wl(),Kl(),Vl()}const yt={};function Vt(l){return l==="local"?localStorage:sessionStorage}function Pt(l,e,t){const n=t?.serializer??JSON,u=t?.storage??"local";function i(s,a){Vt(u).setItem(s,n.stringify(a))}if(!yt[l]){const s=ut(e,o=>{const f=Vt(u).getItem(l);f&&o(n.parse(f));{const c=m=>{m.key===l&&o(m.newValue?n.parse(m.newValue):null)};return window.addEventListener("storage",c),()=>window.removeEventListener("storage",c)}}),{subscribe:a,set:r}=s;yt[l]={set(o){i(l,o),r(o)},update(o){const f=o($n(s));i(l,f),r(f)},subscribe:a}}return yt[l]}Pt("modeOsPrefers",!1);Pt("modeUserPrefers",void 0);Pt("modeCurrent",!1);const Vn="(prefers-reduced-motion: reduce)";function Jl(){return window.matchMedia(Vn).matches}const jn=rl(Jl(),l=>{{const e=n=>{l(n.matches)},t=window.matchMedia(Vn);return t.addEventListener("change",e),()=>{t.removeEventListener("change",e)}}});function Rt(l){const e=l-1;return e*e*e+1}function jt(l,{delay:e=0,duration:t=400,easing:n=Rt,x:u=0,y:i=0,opacity:s=0}={}){const a=getComputedStyle(l),r=+a.opacity,o=a.transform==="none"?"":a.transform,f=r*(1-s),[c,m]=Ft(u),[h,k]=Ft(i);return{delay:e,duration:t,easing:n,css:(g,v)=>` + transform: ${o} translate(${(1-g)*c}${m}, ${(1-g)*h}${k}); + opacity: ${r-f*v}`}}function Ut(l,{delay:e=0,duration:t=400,easing:n=Rt,axis:u="y"}={}){const i=getComputedStyle(l),s=+i.opacity,a=u==="y"?"height":"width",r=parseFloat(i[a]),o=u==="y"?["top","bottom"]:["left","right"],f=o.map(C=>`${C[0].toUpperCase()}${C.slice(1)}`),c=parseFloat(i[`padding${f[0]}`]),m=parseFloat(i[`padding${f[1]}`]),h=parseFloat(i[`margin${f[0]}`]),k=parseFloat(i[`margin${f[1]}`]),g=parseFloat(i[`border${f[0]}Width`]),v=parseFloat(i[`border${f[1]}Width`]);return{delay:e,duration:t,easing:n,css:C=>`overflow: hidden;opacity: ${Math.min(C*20,1)*s};${a}: ${C*r}px;padding-${o[0]}: ${C*c}px;padding-${o[1]}: ${C*m}px;margin-${o[0]}: ${C*h}px;margin-${o[1]}: ${C*k}px;border-${o[0]}-width: ${C*g}px;border-${o[1]}-width: ${C*v}px;`}}function Ql(l){let e,t,n;const u=l[19].default,i=Ge(u,l,l[18],null);return{c(){e=w("div"),i&&i.c(),this.h()},l(s){e=B(s,"DIV",{class:!0,"data-testid":!0});var a=A(e);i&&i.l(a),a.forEach(_),this.h()},h(){d(e,"class",t="accordion "+l[0]),d(e,"data-testid","accordion")},m(s,a){N(s,e,a),i&&i.m(e,null),n=!0},p(s,[a]){i&&i.p&&(!n||a&262144)&&Xe(i,u,s,s[18],n?Je(u,s[18],a,null):Ye(s[18]),null),(!n||a&1&&t!==(t="accordion "+s[0]))&&d(e,"class",t)},i(s){n||(F(i,s),n=!0)},o(s){U(i,s),n=!1},d(s){s&&_(e),i&&i.d(s)}}}function Zl(l,e,t){let n,u;tt(l,jn,z=>t(20,u=z));let{$$slots:i={},$$scope:s}=e,{autocollapse:a=!1}=e,{width:r="w-full"}=e,{spacing:o="space-y-1"}=e,{disabled:f=!1}=e,{padding:c="py-2 px-4"}=e,{hover:m="hover:bg-primary-hover-token"}=e,{rounded:h="rounded-container-token"}=e,{caretOpen:k="rotate-180"}=e,{caretClosed:g=""}=e,{regionControl:v=""}=e,{regionPanel:C="space-y-4"}=e,{regionCaret:y=""}=e,{transitions:p=!u}=e,{transitionIn:R=Ut}=e,{transitionInParams:M={duration:200}}=e,{transitionOut:E=Ut}=e,{transitionOutParams:b={duration:200}}=e;const D=ut(null);return re("active",D),re("autocollapse",a),re("disabled",f),re("padding",c),re("hover",m),re("rounded",h),re("caretOpen",k),re("caretClosed",g),re("regionControl",v),re("regionPanel",C),re("regionCaret",y),re("transitions",p),re("transitionIn",R),re("transitionInParams",M),re("transitionOut",E),re("transitionOutParams",b),l.$$set=z=>{t(22,e=Ie(Ie({},e),We(z))),"autocollapse"in z&&t(1,a=z.autocollapse),"width"in z&&t(2,r=z.width),"spacing"in z&&t(3,o=z.spacing),"disabled"in z&&t(4,f=z.disabled),"padding"in z&&t(5,c=z.padding),"hover"in z&&t(6,m=z.hover),"rounded"in z&&t(7,h=z.rounded),"caretOpen"in z&&t(8,k=z.caretOpen),"caretClosed"in z&&t(9,g=z.caretClosed),"regionControl"in z&&t(10,v=z.regionControl),"regionPanel"in z&&t(11,C=z.regionPanel),"regionCaret"in z&&t(12,y=z.regionCaret),"transitions"in z&&t(13,p=z.transitions),"transitionIn"in z&&t(14,R=z.transitionIn),"transitionInParams"in z&&t(15,M=z.transitionInParams),"transitionOut"in z&&t(16,E=z.transitionOut),"transitionOutParams"in z&&t(17,b=z.transitionOutParams),"$$scope"in z&&t(18,s=z.$$scope)},l.$$.update=()=>{t(0,n=`${r} ${o} ${e.class??""}`)},e=We(e),[n,a,r,o,f,c,m,h,k,g,v,C,y,p,R,M,E,b,s,i]}class xl extends Te{constructor(e){super(),Pe(this,e,Zl,Ql,ye,{autocollapse:1,width:2,spacing:3,disabled:4,padding:5,hover:6,rounded:7,caretOpen:8,caretClosed:9,regionControl:10,regionPanel:11,regionCaret:12,transitions:13,transitionIn:14,transitionInParams:15,transitionOut:16,transitionOutParams:17})}}function pt(l,e){const{transition:t,params:n,enabled:u}=e;return u?t(l,n):"duration"in n?t(l,{duration:0}):{duration:0}}const $l=l=>({}),Wt=l=>({}),eu=l=>({}),qt=l=>({}),tu=l=>({}),Ht=l=>({}),nu=l=>({}),Kt=l=>({}),lu=l=>({}),Gt=l=>({});function Xt(l){let e,t;const n=l[30].lead,u=Ge(n,l,l[29],Gt);return{c(){e=w("div"),u&&u.c(),this.h()},l(i){e=B(i,"DIV",{class:!0});var s=A(e);u&&u.l(s),s.forEach(_),this.h()},h(){d(e,"class","accordion-lead")},m(i,s){N(i,e,s),u&&u.m(e,null),t=!0},p(i,s){u&&u.p&&(!t||s[0]&536870912)&&Xe(u,n,i,i[29],t?Je(n,i[29],s,lu):Ye(i[29]),Gt)},i(i){t||(F(u,i),t=!0)},o(i){U(u,i),t=!1},d(i){i&&_(e),u&&u.d(i)}}}function uu(l){let e;return{c(){e=Fe("(summary)")},l(t){e=Ae(t,"(summary)")},m(t,n){N(t,e,n)},d(t){t&&_(e)}}}function iu(l){let e,t,n;return{c(){e=w("div"),t=new ot(!1),this.h()},l(u){e=B(u,"DIV",{class:!0});var i=A(e);t=ct(i,!1),i.forEach(_),this.h()},h(){t.a=null,d(e,"class",n="accordion-summary-caret "+l[11])},m(u,i){N(u,e,i),t.m(l[14],e)},p(u,i){i[0]&2048&&n!==(n="accordion-summary-caret "+u[11])&&d(e,"class",n)},i:ae,o:ae,d(u){u&&_(e)}}}function su(l){let e,t,n,u,i;const s=[ru,au],a=[];function r(o,f){return o[8]?0:1}return t=r(l),n=a[t]=s[t](l),{c(){e=w("div"),n.c(),this.h()},l(o){e=B(o,"DIV",{class:!0});var f=A(e);n.l(f),f.forEach(_),this.h()},h(){d(e,"class",u="accordion-summary-icons "+l[10])},m(o,f){N(o,e,f),a[t].m(e,null),i=!0},p(o,f){let c=t;t=r(o),t===c?a[t].p(o,f):(Ee(),U(a[c],1,1,()=>{a[c]=null}),Se(),n=a[t],n?n.p(o,f):(n=a[t]=s[t](o),n.c()),F(n,1),n.m(e,null)),(!i||f[0]&1024&&u!==(u="accordion-summary-icons "+o[10]))&&d(e,"class",u)},i(o){i||(F(n),i=!0)},o(o){U(n),i=!1},d(o){o&&_(e),a[t].d()}}}function au(l){let e;const t=l[30].iconOpen,n=Ge(t,l,l[29],qt),u=n||ou(l);return{c(){u&&u.c()},l(i){u&&u.l(i)},m(i,s){u&&u.m(i,s),e=!0},p(i,s){n&&n.p&&(!e||s[0]&536870912)&&Xe(n,t,i,i[29],e?Je(t,i[29],s,eu):Ye(i[29]),qt)},i(i){e||(F(u,i),e=!0)},o(i){U(u,i),e=!1},d(i){u&&u.d(i)}}}function ru(l){let e;const t=l[30].iconClosed,n=Ge(t,l,l[29],Ht),u=n||cu(l);return{c(){u&&u.c()},l(i){u&&u.l(i)},m(i,s){u&&u.m(i,s),e=!0},p(i,s){n&&n.p&&(!e||s[0]&536870912)&&Xe(n,t,i,i[29],e?Je(t,i[29],s,tu):Ye(i[29]),Ht)},i(i){e||(F(u,i),e=!0)},o(i){U(u,i),e=!1},d(i){u&&u.d(i)}}}function ou(l){let e,t;return{c(){e=new ot(!1),t=ke(),this.h()},l(n){e=ct(n,!1),t=ke(),this.h()},h(){e.a=t},m(n,u){e.m(l[14],n,u),N(n,t,u)},p:ae,d(n){n&&(_(t),e.d())}}}function cu(l){let e,t;return{c(){e=new ot(!1),t=ke(),this.h()},l(n){e=ct(n,!1),t=ke(),this.h()},h(){e.a=t},m(n,u){e.m(l[14],n,u),N(n,t,u)},p:ae,d(n){n&&(_(t),e.d())}}}function Yt(l){let e,t,n,u,i,s,a;const r=l[30].content,o=Ge(r,l,l[29],Wt),f=o||fu();return{c(){e=w("div"),f&&f.c(),this.h()},l(c){e=B(c,"DIV",{class:!0,id:!0,role:!0,"aria-hidden":!0,"aria-labelledby":!0});var m=A(e);f&&f.l(m),m.forEach(_),this.h()},h(){d(e,"class",t="accordion-panel "+l[9]),d(e,"id",n="accordion-panel-"+l[0]),d(e,"role","region"),d(e,"aria-hidden",u=!l[8]),d(e,"aria-labelledby",l[0])},m(c,m){N(c,e,m),f&&f.m(e,null),a=!0},p(c,m){l=c,o&&o.p&&(!a||m[0]&536870912)&&Xe(o,r,l,l[29],a?Je(r,l[29],m,$l):Ye(l[29]),Wt),(!a||m[0]&512&&t!==(t="accordion-panel "+l[9]))&&d(e,"class",t),(!a||m[0]&1&&n!==(n="accordion-panel-"+l[0]))&&d(e,"id",n),(!a||m[0]&256&&u!==(u=!l[8]))&&d(e,"aria-hidden",u),(!a||m[0]&1)&&d(e,"aria-labelledby",l[0])},i(c){a||(F(f,c),c&&Rn(()=>{a&&(s&&s.end(1),i=wn(e,pt,{transition:l[4],params:l[5],enabled:l[3]}),i.start())}),a=!0)},o(c){U(f,c),i&&i.invalidate(),c&&(s=Bn(e,pt,{transition:l[6],params:l[7],enabled:l[3]})),a=!1},d(c){c&&_(e),f&&f.d(c),c&&s&&s.end()}}}function fu(l){let e;return{c(){e=Fe("(content)")},l(t){e=Ae(t,"(content)")},m(t,n){N(t,e,n)},d(t){t&&_(e)}}}function du(l){let e,t,n,u,i,s,a,r,o,f,c,m,h,k,g=l[16].lead&&Xt(l);const v=l[30].summary,C=Ge(v,l,l[29],Kt),y=C||uu(),p=[su,iu],R=[];function M(b,D){return b[16].iconClosed||b[16].iconOpen?0:1}s=M(l),a=R[s]=p[s](l);let E=l[8]&&Yt(l);return{c(){e=w("div"),t=w("button"),g&&g.c(),n=Q(),u=w("div"),y&&y.c(),i=Q(),a.c(),f=Q(),E&&E.c(),this.h()},l(b){e=B(b,"DIV",{class:!0,"data-testid":!0});var D=A(e);t=B(D,"BUTTON",{type:!0,class:!0,id:!0,"aria-expanded":!0,"aria-controls":!0});var z=A(t);g&&g.l(z),n=Z(z),u=B(z,"DIV",{class:!0});var $=A(u);y&&y.l($),$.forEach(_),i=Z(z),a.l(z),z.forEach(_),f=Z(D),E&&E.l(D),D.forEach(_),this.h()},h(){d(u,"class","accordion-summary flex-1"),d(t,"type","button"),d(t,"class",r="accordion-control "+l[12]),d(t,"id",l[0]),d(t,"aria-expanded",l[8]),d(t,"aria-controls",o="accordion-panel-"+l[0]),t.disabled=l[2],d(e,"class",c="accordion-item "+l[13]),d(e,"data-testid","accordion-item")},m(b,D){N(b,e,D),T(e,t),g&&g.m(t,null),T(t,n),T(t,u),y&&y.m(u,null),T(t,i),R[s].m(t,null),T(e,f),E&&E.m(e,null),m=!0,h||(k=[Y(t,"click",l[15]),Y(t,"click",l[31]),Y(t,"keydown",l[32]),Y(t,"keyup",l[33]),Y(t,"keypress",l[34])],h=!0)},p(b,D){b[16].lead?g?(g.p(b,D),D[0]&65536&&F(g,1)):(g=Xt(b),g.c(),F(g,1),g.m(t,n)):g&&(Ee(),U(g,1,1,()=>{g=null}),Se()),C&&C.p&&(!m||D[0]&536870912)&&Xe(C,v,b,b[29],m?Je(v,b[29],D,nu):Ye(b[29]),Kt);let z=s;s=M(b),s===z?R[s].p(b,D):(Ee(),U(R[z],1,1,()=>{R[z]=null}),Se(),a=R[s],a?a.p(b,D):(a=R[s]=p[s](b),a.c()),F(a,1),a.m(t,null)),(!m||D[0]&4096&&r!==(r="accordion-control "+b[12]))&&d(t,"class",r),(!m||D[0]&1)&&d(t,"id",b[0]),(!m||D[0]&256)&&d(t,"aria-expanded",b[8]),(!m||D[0]&1&&o!==(o="accordion-panel-"+b[0]))&&d(t,"aria-controls",o),(!m||D[0]&4)&&(t.disabled=b[2]),b[8]?E?(E.p(b,D),D[0]&256&&F(E,1)):(E=Yt(b),E.c(),F(E,1),E.m(e,null)):E&&(Ee(),U(E,1,1,()=>{E=null}),Se()),(!m||D[0]&8192&&c!==(c="accordion-item "+b[13]))&&d(e,"class",c)},i(b){m||(F(g),F(y,b),F(a),F(E),m=!0)},o(b){U(g),U(y,b),U(a),U(E),m=!1},d(b){b&&_(e),g&&g.d(),y&&y.d(b),R[s].d(),E&&E.d(),h=!1,$e(k)}}}const hu="",mu="text-start w-full flex items-center space-x-4",Jt="fill-current w-3 transition-transform duration-[200ms]",gu="";function _u(l,e,t){let n,u,i,s,a,r,o,f,c=ae,m=()=>(c(),c=el(R,j=>t(28,f=j)),R);l.$$.on_destroy.push(()=>c());let{$$slots:h={},$$scope:k}=e;const g=Pn(h),v=zt();let{open:C=!1}=e,{id:y=String(Math.random())}=e,{autocollapse:p=de("autocollapse")}=e,{active:R=de("active")}=e;m();let{disabled:M=de("disabled")}=e,{padding:E=de("padding")}=e,{hover:b=de("hover")}=e,{rounded:D=de("rounded")}=e,{caretOpen:z=de("caretOpen")}=e,{caretClosed:$=de("caretClosed")}=e,{regionControl:I=de("regionControl")}=e,{regionPanel:ne=de("regionPanel")}=e,{regionCaret:ue=de("regionCaret")}=e,{transitions:te=de("transitions")}=e,{transitionIn:H=de("transitionIn")}=e,{transitionInParams:le=de("transitionInParams")}=e,{transitionOut:Re=de("transitionOut")}=e,{transitionOutParams:De=de("transitionOutParams")}=e;const L=` + + + `;function se(j){p===!0?R.set(y):t(17,C=!C),V(j)}function V(j){const we=p?f===y:C;v("toggle",{event:j,id:y,panelId:`accordion-panel-${y}`,open:we,autocollapse:p})}p&&C&&se();function P(j){pe.call(this,l,j)}function oe(j){pe.call(this,l,j)}function X(j){pe.call(this,l,j)}function ie(j){pe.call(this,l,j)}return l.$$set=j=>{t(37,e=Ie(Ie({},e),We(j))),"open"in j&&t(17,C=j.open),"id"in j&&t(0,y=j.id),"autocollapse"in j&&t(18,p=j.autocollapse),"active"in j&&m(t(1,R=j.active)),"disabled"in j&&t(2,M=j.disabled),"padding"in j&&t(19,E=j.padding),"hover"in j&&t(20,b=j.hover),"rounded"in j&&t(21,D=j.rounded),"caretOpen"in j&&t(22,z=j.caretOpen),"caretClosed"in j&&t(23,$=j.caretClosed),"regionControl"in j&&t(24,I=j.regionControl),"regionPanel"in j&&t(25,ne=j.regionPanel),"regionCaret"in j&&t(26,ue=j.regionCaret),"transitions"in j&&t(3,te=j.transitions),"transitionIn"in j&&t(4,H=j.transitionIn),"transitionInParams"in j&&t(5,le=j.transitionInParams),"transitionOut"in j&&t(6,Re=j.transitionOut),"transitionOutParams"in j&&t(7,De=j.transitionOutParams),"$$scope"in j&&t(29,k=j.$$scope)},l.$$.update=()=>{l.$$.dirty[0]&393216&&C&&p&&se(),l.$$.dirty[0]&268828673&&t(8,n=p?f===y:C),t(13,u=`${hu} ${e.class??""}`),l.$$.dirty[0]&20447232&&t(12,i=`${mu} ${E} ${b} ${D} ${I}`),l.$$.dirty[0]&12583168&&t(27,s=n?z:$),l.$$.dirty[0]&201326592&&t(11,a=`${Jt} ${ue} ${s}`),l.$$.dirty[0]&67108864&&t(10,r=`${Jt} ${ue}`),l.$$.dirty[0]&36175872&&t(9,o=`${gu} ${E} ${D} ${ne}`)},e=We(e),[y,R,M,te,H,le,Re,De,n,o,r,a,i,u,L,se,g,C,p,E,b,D,z,$,I,ne,ue,s,f,k,h,P,oe,X,ie]}class bu extends Te{constructor(e){super(),Pe(this,e,_u,du,ye,{open:17,id:0,autocollapse:18,active:1,disabled:2,padding:19,hover:20,rounded:21,caretOpen:22,caretClosed:23,regionControl:24,regionPanel:25,regionCaret:26,transitions:3,transitionIn:4,transitionInParams:5,transitionOut:6,transitionOutParams:7},null,[-1,-1])}}function vu(l,{from:e,to:t},n={}){const u=getComputedStyle(l),i=u.transform==="none"?"":u.transform,[s,a]=u.transformOrigin.split(" ").map(parseFloat),r=e.left+e.width*s/t.width-(t.left+s),o=e.top+e.height*a/t.height-(t.top+a),{delay:f=0,duration:c=h=>Math.sqrt(h)*120,easing:m=Rt}=n;return{delay:f,duration:tl(c)?c(Math.sqrt(r*r+o*o)):c,easing:m,css:(h,k)=>{const g=k*r,v=k*o,C=h+k*e.width/t.width,y=h+k*e.height/t.height;return`transform: ${i} translate(${g}px, ${v}px) scale(${C}, ${y});`}}}function ku(l){let e,t,n;const u=l[15].default,i=Ge(u,l,l[14],null);return{c(){e=w("div"),i&&i.c(),this.h()},l(s){e=B(s,"DIV",{class:!0,"data-testid":!0,role:!0,"aria-labelledby":!0});var a=A(e);i&&i.l(a),a.forEach(_),this.h()},h(){d(e,"class",t="radio-group "+l[1]),d(e,"data-testid","radio-group"),d(e,"role","radiogroup"),d(e,"aria-labelledby",l[0])},m(s,a){N(s,e,a),i&&i.m(e,null),n=!0},p(s,[a]){i&&i.p&&(!n||a&16384)&&Xe(i,u,s,s[14],n?Je(u,s[14],a,null):Ye(s[14]),null),(!n||a&2&&t!==(t="radio-group "+s[1]))&&d(e,"class",t),(!n||a&1)&&d(e,"aria-labelledby",s[0])},i(s){n||(F(i,s),n=!0)},o(s){U(i,s),n=!1},d(s){s&&_(e),i&&i.d(s)}}}const pu="p-1";function Eu(l,e,t){let n,{$$slots:u={},$$scope:i}=e,{display:s="inline-flex"}=e,{flexDirection:a="flex-row"}=e,{gap:r="gap-1"}=e,{background:o="bg-surface-200-700-token"}=e,{border:f="border-token border-surface-400-500-token"}=e,{rounded:c="rounded-token"}=e,{padding:m="px-4 py-1"}=e,{active:h="variant-filled"}=e,{hover:k="hover:variant-soft"}=e,{color:g=""}=e,{fill:v=""}=e,{regionLabel:C=""}=e,{labelledby:y=""}=e;return re("rounded",c),re("padding",m),re("active",h),re("hover",k),re("color",g),re("fill",v),re("regionLabel",C),l.$$set=p=>{t(16,e=Ie(Ie({},e),We(p))),"display"in p&&t(2,s=p.display),"flexDirection"in p&&t(3,a=p.flexDirection),"gap"in p&&t(4,r=p.gap),"background"in p&&t(5,o=p.background),"border"in p&&t(6,f=p.border),"rounded"in p&&t(7,c=p.rounded),"padding"in p&&t(8,m=p.padding),"active"in p&&t(9,h=p.active),"hover"in p&&t(10,k=p.hover),"color"in p&&t(11,g=p.color),"fill"in p&&t(12,v=p.fill),"regionLabel"in p&&t(13,C=p.regionLabel),"labelledby"in p&&t(0,y=p.labelledby),"$$scope"in p&&t(14,i=p.$$scope)},l.$$.update=()=>{t(1,n=`${pu} ${s} ${a} ${r} ${o} ${f} ${c} ${e.class??""}`)},e=We(e),[y,n,s,a,r,o,f,c,m,h,k,g,v,C,i,u]}class Su extends Te{constructor(e){super(),Pe(this,e,Eu,ku,ye,{display:2,flexDirection:3,gap:4,background:5,border:6,rounded:7,padding:8,active:9,hover:10,color:11,fill:12,regionLabel:13,labelledby:0})}}function yu(l){let e,t,n,u,i,s,a,r,o,f,c,m=[{type:"radio"},{name:l[1]},{__value:l[2]},l[11](),{tabindex:"-1"}],h={};for(let v=0;v{D=L,t(7,D)})}function De(){m=this.__value,t(0,m)}return l.$$set=L=>{t(31,e=Ie(Ie({},e),We(L))),t(30,o=kt(e,r)),"group"in L&&t(0,m=L.group),"name"in L&&t(1,h=L.name),"value"in L&&t(2,k=L.value),"title"in L&&t(3,g=L.title),"label"in L&&t(4,v=L.label),"rounded"in L&&t(12,C=L.rounded),"padding"in L&&t(13,y=L.padding),"active"in L&&t(14,p=L.active),"hover"in L&&t(15,R=L.hover),"color"in L&&t(16,M=L.color),"fill"in L&&t(17,E=L.fill),"regionLabel"in L&&t(5,b=L.regionLabel),"$$scope"in L&&t(20,c=L.$$scope)},l.$$.update=()=>{l.$$.dirty[0]&5&&t(6,n=k===m),l.$$.dirty[0]&245824&&t(19,u=n?`${p} ${M} ${E}`:R),t(18,i=e.disabled?zu:""),t(8,a=`${Du} ${y} ${C} ${u} ${i} ${e.class??""}`)},t(9,s=`${Cu}`),e=We(e),[m,h,k,g,v,b,n,D,a,s,z,$,C,y,p,R,M,E,i,u,c,f,ne,ue,te,H,le,Re,De,I]}class Qt extends Te{constructor(e){super(),Pe(this,e,Tu,yu,ye,{group:0,name:1,value:2,title:3,label:4,rounded:12,padding:13,active:14,hover:15,color:16,fill:17,regionLabel:5},null,[-1,-1])}}function Zt(l){let e,t;const n=l[22].default,u=Ge(n,l,l[21],null);return{c(){e=w("div"),u&&u.c(),this.h()},l(i){e=B(i,"DIV",{class:!0});var s=A(e);u&&u.l(s),s.forEach(_),this.h()},h(){d(e,"class","slide-toggle-text ml-3")},m(i,s){N(i,e,s),u&&u.m(e,null),t=!0},p(i,s){u&&u.p&&(!t||s[0]&2097152)&&Xe(u,n,i,i[21],t?Je(n,i[21],s,null):Ye(i[21]),null)},i(i){t||(F(u,i),t=!0)},o(i){U(u,i),t=!1},d(i){i&&_(e),u&&u.d(i)}}}function Pu(l){let e,t,n,u,i,s,a,r,o,f,c,m,h,k,g,v=[{type:"checkbox"},{class:"slide-toggle-input hidden"},{name:l[1]},l[8](),{disabled:u=l[9].disabled}],C={};for(let p=0;p{y=null}),Se()),(!h||R[0]&32&&c!==(c="slide-toggle-label "+p[5]))&&d(t,"class",c),(!h||R[0]&4)&&d(e,"id",p[2]),(!h||R[0]&64&&m!==(m="slide-toggle "+p[6]))&&d(e,"class",m),(!h||R[0]&4)&&d(e,"aria-label",p[2]),(!h||R[0]&1)&&d(e,"aria-checked",p[0])},i(p){h||(F(y),h=!0)},o(p){U(y),h=!1},d(p){p&&_(e),y&&y.d(),k=!1,$e(g)}}}const Ru="inline-block",wu="unstyled flex items-center",Bu="flex transition-all duration-[200ms] cursor-pointer",Iu="w-[50%] h-full scale-[0.8] transition-all duration-[200ms] shadow";function Fu(l,e,t){let n,u,i,s,a,r,o,f;const c=["name","checked","size","background","active","border","rounded","label"];let m=kt(e,c),{$$slots:h={},$$scope:k}=e;const g=Pn(h),v=zt();let{name:C}=e,{checked:y=!1}=e,{size:p="md"}=e,{background:R="bg-surface-400 dark:bg-surface-700"}=e,{active:M="bg-surface-900 dark:bg-surface-300"}=e,{border:E=""}=e,{rounded:b="rounded-full"}=e,{label:D=""}=e,z;switch(p){case"sm":z="w-12 h-6";break;case"lg":z="w-20 h-10";break;default:z="w-16 h-8"}function $(V){["Enter","Space"].includes(V.code)&&(V.preventDefault(),v("keyup",V),V.currentTarget.firstChild.click())}function I(){return delete m.class,m}function ne(V){pe.call(this,l,V)}function ue(V){pe.call(this,l,V)}function te(V){pe.call(this,l,V)}function H(V){pe.call(this,l,V)}function le(V){pe.call(this,l,V)}function Re(V){pe.call(this,l,V)}function De(V){pe.call(this,l,V)}function L(V){pe.call(this,l,V)}function se(){y=this.checked,t(0,y)}return l.$$set=V=>{t(9,e=Ie(Ie({},e),We(V))),t(33,m=kt(e,c)),"name"in V&&t(1,C=V.name),"checked"in V&&t(0,y=V.checked),"size"in V&&t(11,p=V.size),"background"in V&&t(12,R=V.background),"active"in V&&t(13,M=V.active),"border"in V&&t(14,E=V.border),"rounded"in V&&t(15,b=V.rounded),"label"in V&&t(2,D=V.label),"$$scope"in V&&t(21,k=V.$$scope)},l.$$.update=()=>{l.$$.dirty[0]&12289&&t(19,n=y?M:`${R} cursor-pointer`),l.$$.dirty[0]&1&&t(18,u=y?"bg-white/75":"bg-white"),l.$$.dirty[0]&1&&t(17,i=y?"translate-x-full":""),t(20,s=e.disabled===!0?"opacity-50":"hover:brightness-[105%] dark:hover:brightness-110 cursor-pointer"),t(6,a=`${Ru} ${b} ${s} ${e.class??""}`),l.$$.dirty[0]&638976&&t(4,o=`${Bu} ${E} ${b} ${z} ${n}`),l.$$.dirty[0]&425984&&t(3,f=`${Iu} ${b} ${u} ${i}`)},t(5,r=`${wu}`),e=We(e),[y,C,D,f,o,r,a,$,I,e,g,p,R,M,E,b,z,i,u,n,s,k,h,ne,ue,te,H,le,Re,De,L,se]}class Un extends Te{constructor(e){super(),Pe(this,e,Fu,Pu,ye,{name:1,checked:0,size:11,background:12,active:13,border:14,rounded:15,label:2},null,[-1,-1])}}function xt(l,e,t){const n=l.slice();return n[36]=e[t],n[38]=t,n}function $t(l){let e,t,n=[],u=new Map,i,s,a,r=xe(l[11]);const o=f=>f[36];for(let f=0;f{g&&(m&&m.end(1),c=wn(t,pt,{transition:e[5],params:{x:e[10].x,y:e[10].y,...e[6]},enabled:e[4]}),c.start())}),g=!0)},o(M){c&&c.invalidate(),m=Bn(t,pt,{transition:e[7],params:{x:e[10].x,y:e[10].y,...e[8]},enabled:e[4]}),g=!1},d(M){M&&_(t),y&&y.d(),M&&m&&m.end(),v=!1,$e(C)}}}function Au(l){let e,t,n=l[9].length&&$t(l);return{c(){n&&n.c(),e=ke()},l(u){n&&n.l(u),e=ke()},m(u,i){n&&n.m(u,i),N(u,e,i),t=!0},p(u,i){u[9].length?n?(n.p(u,i),i[0]&512&&F(n,1)):(n=$t(u),n.c(),F(n,1),n.m(e.parentNode,e)):n&&(Ee(),U(n,1,1,()=>{n=null}),Se())},i(u){t||(F(n),t=!0)},o(u){U(n),t=!1},d(u){u&&_(e),n&&n.d(u)}}}const Ou="flex fixed top-0 left-0 right-0 bottom-0 pointer-events-none",Mu="flex flex-col gap-y-2",Lu="flex justify-between items-center pointer-events-auto",Nu="flex items-center space-x-2";function Vu(l,e,t){let n,u,i,s,a,r;tt(l,jn,P=>t(34,r=P));const o=Nn();tt(l,o,P=>t(9,a=P));let{position:f="b"}=e,{max:c=3}=e,{background:m="variant-filled-secondary"}=e,{width:h="max-w-[640px]"}=e,{color:k=""}=e,{padding:g="p-4"}=e,{spacing:v="space-x-4"}=e,{rounded:C="rounded-container-token"}=e,{shadow:y="shadow-lg"}=e,{zIndex:p="z-[888]"}=e,{buttonAction:R="btn variant-filled"}=e,{buttonDismiss:M="btn-icon btn-icon-sm variant-filled"}=e,{buttonDismissLabel:E="✕"}=e,{transitions:b=!r}=e,{transitionIn:D=jt}=e,{transitionInParams:z={duration:250}}=e,{transitionOut:$=jt}=e,{transitionOutParams:I={duration:250}}=e,ne,ue,te={x:0,y:0};switch(f){case"t":ne="justify-center items-start",ue="items-center",te={x:0,y:-100};break;case"b":ne="justify-center items-end",ue="items-center",te={x:0,y:100};break;case"l":ne="justify-start items-center",ue="items-start",te={x:-100,y:0};break;case"r":ne="justify-end items-center",ue="items-end",te={x:100,y:0};break;case"tl":ne="justify-start items-start",ue="items-start",te={x:-100,y:0};break;case"tr":ne="justify-end items-start",ue="items-end",te={x:100,y:0};break;case"bl":ne="justify-start items-end",ue="items-start",te={x:-100,y:0};break;case"br":ne="justify-end items-end",ue="items-end",te={x:100,y:0};break}function H(P){a[P]?.action?.response(),o.close(a[P].id)}function le(P){a[P]?.hoverable&&(o.freeze(P),t(13,u+=" scale-[105%]"))}function Re(P){a[P]?.hoverable&&(o.unfreeze(P),t(13,u=u.replace(" scale-[105%]","")))}const De=P=>H(P),L=P=>o.close(P.id),se=P=>le(P),V=P=>Re(P);return l.$$set=P=>{t(35,e=Ie(Ie({},e),We(P))),"position"in P&&t(19,f=P.position),"max"in P&&t(20,c=P.max),"background"in P&&t(0,m=P.background),"width"in P&&t(21,h=P.width),"color"in P&&t(22,k=P.color),"padding"in P&&t(23,g=P.padding),"spacing"in P&&t(24,v=P.spacing),"rounded"in P&&t(25,C=P.rounded),"shadow"in P&&t(26,y=P.shadow),"zIndex"in P&&t(27,p=P.zIndex),"buttonAction"in P&&t(1,R=P.buttonAction),"buttonDismiss"in P&&t(2,M=P.buttonDismiss),"buttonDismissLabel"in P&&t(3,E=P.buttonDismissLabel),"transitions"in P&&t(4,b=P.transitions),"transitionIn"in P&&t(5,D=P.transitionIn),"transitionInParams"in P&&t(6,z=P.transitionInParams),"transitionOut"in P&&t(7,$=P.transitionOut),"transitionOutParams"in P&&t(8,I=P.transitionOutParams)},l.$$.update=()=>{t(14,n=`${Ou} ${ne} ${p} ${e.class||""}`),l.$$.dirty[0]&545259520&&t(13,u=`${Mu} ${ue} ${g}`),l.$$.dirty[0]&132120576&&t(12,i=`${Lu} ${h} ${k} ${g} ${v} ${C} ${y}`),l.$$.dirty[0]&1049088&&t(11,s=Array.from(a).slice(0,c))},e=We(e),[m,R,M,E,b,D,z,$,I,a,te,s,i,u,n,o,H,le,Re,f,c,h,k,g,v,C,y,p,ne,ue,De,L,se,V]}class ju extends Te{constructor(e){super(),Pe(this,e,Vu,Au,ye,{position:19,max:20,background:0,width:21,color:22,padding:23,spacing:24,rounded:25,shadow:26,zIndex:27,buttonAction:1,buttonDismiss:2,buttonDismissLabel:3,transitions:4,transitionIn:5,transitionInParams:6,transitionOut:7,transitionOutParams:8},null,[-1,-1])}}class Ve{static findDateInText(e){const t=/\b\d{1,2}\.\d{1,2}\.\d{4}\b/g,n=e.match(t);if(n&&n.length>0){const u=n[0],[i,s,a]=u.split(".").map(Number);return new Date(a,s-1,i)}return null}static sortByRelevanceAndDate(e){return e.sort((t,n)=>{const u=n.relevance-t.relevance;if(u!==0)return u;const i=Ve.findDateInText(t.title),s=Ve.findDateInText(n.title);return i&&s?s.getTime()-i.getTime():i?-1:s?1:0})}static sortByDate(e){const t=e.filter(a=>Ve.findDateInText(a.title)),n=e.filter(a=>!Ve.findDateInText(a.title)),u=t.sort((a,r)=>{const o=Ve.findDateInText(a.title),f=Ve.findDateInText(r.title);return o&&f?f.getTime()-o.getTime():o?-1:f?1:0}),i=[];let s=0;for(const a of e)if(Ve.findDateInText(a.title)){let r=u.shift();r&&i.push(r)}else i.push(n[s]),s++;return i}static sortByRelevance(e){return e.sort((t,n)=>t.relevance&&n.relevance?n.relevance-t.relevance:t.relevance?-1:n.relevance?1:0)}static identifyDocumentType(e){const t=[{regexp:/(ФАС |АС |КС |ВС |[Сс]удебн|[Сс]уд)/,docType:"Решение суда"},{regexp:/[Пп]исьмо [Мм]инфина/,docType:"Письмо Минфина"},{regexp:/[Пп]исьмо (ФНС|фнс)/,docType:"Письмо ФНС"},{regexp:/ст.(\d+\.\d+|\d+) НКРФ/,docType:"НК РФ"},{regexp:/ст.(\d+\.\d+|\d+) ТКРФ/,docType:"ТК РФ"},{regexp:/Приказ ФНС РФ/,docType:"Приказ ФНС РФ"},{regexp:/Постановление Правительства РФ/,docType:"Постановление Правительства РФ"},{regexp:/Решение Коллегии Евразийской экономической комиссии/,docType:"Решение Коллегии ЕЭК"},{regexp:/^Федеральный закон/,docType:"Федеральные законы"}];return e.map(n=>{for(const{regexp:u,docType:i}of t)if(u.test(n.title))return n.docType=i,n;return n.docType="Другие документы",n})}}function un(l,e,t){const n=l.slice();return n[10]=e[t],n}function sn(l){let e,t,n;return{c(){e=w("input"),this.h()},l(u){e=B(u,"INPUT",{type:!0}),this.h()},h(){d(e,"type","checkbox")},m(u,i){N(u,e,i),e.checked=l[1][l[3]],t||(n=Y(e,"change",l[7]),t=!0)},p(u,i){i&10&&(e.checked=u[1][u[3]])},d(u){u&&_(e),t=!1,n()}}}function Uu(l){let e,t;return{c(){e=w("div"),t=Fe(l[4]),this.h()},l(n){e=B(n,"DIV",{class:!0});var u=A(e);t=Ae(u,l[4]),u.forEach(_),this.h()},h(){d(e,"class","annotation svelte-dwjxto")},m(n,u){N(n,e,u),T(e,t)},p(n,u){u&16&&st(t,n[4])},d(n){n&&_(e)}}}function Wu(l){let e,t=xe(l[4].split(` +`)),n=[];for(let u=0;u100&&rn(l);return{c(){e=w("div"),t=w("div"),n=w("label"),r&&r.c(),u=Q(),i=Fe(l[3]),s=Q(),c.c(),a=Q(),m&&m.c(),this.h()},l(h){e=B(h,"DIV",{class:!0});var k=A(e);t=B(k,"DIV",{class:!0});var g=A(t);n=B(g,"LABEL",{style:!0});var v=A(n);r&&r.l(v),u=Z(v),i=Ae(v,l[3]),v.forEach(_),g.forEach(_),s=Z(k),c.l(k),a=Z(k),m&&m.l(k),k.forEach(_),this.h()},h(){et(n,"cursor","pointer"),d(t,"class","title svelte-dwjxto"),d(e,"class","search-result svelte-dwjxto")},m(h,k){N(h,e,k),T(e,t),T(t,n),r&&r.m(n,null),T(n,u),T(n,i),T(e,s),c.m(e,null),T(e,a),m&&m.m(e,null)},p(h,[k]){h[5]?r?r.p(h,k):(r=sn(h),r.c(),r.m(n,u)):r&&(r.d(1),r=null),k&8&&st(i,h[3]),f===(f=o(h))&&c?c.p(h,k):(c.d(1),c=f(h),c&&(c.c(),c.m(e,a))),h[4].length>100?m?m.p(h,k):(m=rn(h),m.c(),m.m(e,null)):m&&(m.d(1),m=null)},i:ae,o:ae,d(h){h&&_(e),r&&r.d(),c.d(),m&&m.d()}}}function Gu(l,e,t){let{showFullText:n=Array(10).fill(!1)}=e,{useSearchResult:u}=e,{index:i}=e,{title:s}=e,{text:a}=e,{enableSearchResultSelection:r=!1}=e;function o(h){t(0,n[h]=!n[h],n)}function f(){u[s]=this.checked,t(1,u)}const c=()=>o(i),m=()=>o(i);return l.$$set=h=>{"showFullText"in h&&t(0,n=h.showFullText),"useSearchResult"in h&&t(1,u=h.useSearchResult),"index"in h&&t(2,i=h.index),"title"in h&&t(3,s=h.title),"text"in h&&t(4,a=h.text),"enableSearchResultSelection"in h&&t(5,r=h.enableSearchResultSelection)},[n,u,i,s,a,r,o,f,c,m]}class Wn extends Te{constructor(e){super(),Pe(this,e,Gu,Ku,ye,{showFullText:0,useSearchResult:1,index:2,title:3,text:4,enableSearchResultSelection:5})}}function on(l,e,t){const n=l.slice();return n[20]=e[t].title,n[21]=e[t].text,n[23]=t,n}function cn(l,e,t){const n=l.slice();return n[16]=e[t][0],n[17]=e[t][1],n}function fn(l,e,t){const n=l.slice();return n[20]=e[t].title,n[21]=e[t].text,n[23]=t,n}function Xu(l){let e;return{c(){e=Fe("релевантности")},l(t){e=Ae(t,"релевантности")},m(t,n){N(t,e,n)},d(t){t&&_(e)}}}function Yu(l){let e;return{c(){e=Fe("дате")},l(t){e=Ae(t,"дате")},m(t,n){N(t,e,n)},d(t){t&&_(e)}}}function Ju(l){let e,t,n,u,i,s;function a(c){l[8](c)}let r={name:"sortBy",value:"rel",$$slots:{default:[Xu]},$$scope:{ctx:l}};l[5]!==void 0&&(r.group=l[5]),e=new Qt({props:r}),ze.push(()=>Ue(e,"group",a));function o(c){l[9](c)}let f={name:"sortBy",value:"date",$$slots:{default:[Yu]},$$scope:{ctx:l}};return l[5]!==void 0&&(f.group=l[5]),u=new Qt({props:f}),ze.push(()=>Ue(u,"group",o)),{c(){ge(e.$$.fragment),n=Q(),ge(u.$$.fragment)},l(c){_e(e.$$.fragment,c),n=Z(c),_e(u.$$.fragment,c)},m(c,m){be(e,c,m),N(c,n,m),be(u,c,m),s=!0},p(c,m){const h={};m&33554432&&(h.$$scope={dirty:m,ctx:c}),!t&&m&32&&(t=!0,h.group=c[5],je(()=>t=!1)),e.$set(h);const k={};m&33554432&&(k.$$scope={dirty:m,ctx:c}),!i&&m&32&&(i=!0,k.group=c[5],je(()=>i=!1)),u.$set(k)},i(c){s||(F(e.$$.fragment,c),F(u.$$.fragment,c),s=!0)},o(c){U(e.$$.fragment,c),U(u.$$.fragment,c),s=!1},d(c){c&&_(n),ve(e,c),ve(u,c)}}}function Qu(l){let e;return{c(){e=Fe("Группировать по типу")},l(t){e=Ae(t,"Группировать по типу")},m(t,n){N(t,e,n)},d(t){t&&_(e)}}}function Zu(l){let e,t,n=xe(l[0]),u=[];for(let s=0;sU(u[s],1,1,()=>{u[s]=null});return{c(){for(let s=0;sU(u[s],1,1,()=>{u[s]=null});return{c(){for(let s=0;sU(u[s],1,1,()=>{u[s]=null});return{c(){for(let s=0;sUe(o,"checked",C));const p=[xu,Zu],R=[];function M(b,D){return b[4]&&b[6]?0:1}m=M(l),h=R[m]=p[m](l);let E=ui;return{c(){e=w("div"),t=w("div"),n=w("div"),u=w("label"),u.textContent=i,s=Q(),ge(a.$$.fragment),r=Q(),ge(o.$$.fragment),c=Q(),h.c(),k=Q(),g=ke(),this.h()},l(b){e=B(b,"DIV",{class:!0});var D=A(e);t=B(D,"DIV",{class:!0});var z=A(t);n=B(z,"DIV",{class:!0,style:!0});var $=A(n);u=B($,"LABEL",{style:!0,class:!0,"data-svelte-h":!0}),Ce(u)!=="svelte-12wnwfn"&&(u.textContent=i),s=Z($),_e(a.$$.fragment,$),r=Z($),_e(o.$$.fragment,$),$.forEach(_),z.forEach(_),c=Z(D),h.l(D),D.forEach(_),k=Z(b),g=ke(),this.h()},h(){et(u,"display","inline-block"),et(u,"flex-wrap","wrap"),d(u,"class","svelte-1ptibtq"),d(n,"class","card w-full flex p-2 space-y-2"),et(n,"align-items","center"),et(n,"flex-wrap","wrap"),d(t,"class","settings-bar svelte-1ptibtq"),d(e,"class","search-results svelte-1ptibtq")},m(b,D){N(b,e,D),T(e,t),T(t,n),T(n,u),T(n,s),be(a,n,null),T(n,r),be(o,n,null),T(e,c),R[m].m(e,null),N(b,k,D),N(b,g,D),v=!0},p(b,[D]){const z={};D&33554464&&(z.$$scope={dirty:D,ctx:b}),a.$set(z);const $={};D&33554432&&($.$$scope={dirty:D,ctx:b}),!f&&D&16&&(f=!0,$.checked=b[4],je(()=>f=!1)),o.$set($);let I=m;m=M(b),m===I?R[m].p(b,D):(Ee(),U(R[I],1,1,()=>{R[I]=null}),Se(),h=R[m],h?h.p(b,D):(h=R[m]=p[m](b),h.c()),F(h,1),h.m(e,null))},i(b){v||(F(a.$$.fragment,b),F(o.$$.fragment,b),F(h),F(E),v=!0)},o(b){U(a.$$.fragment,b),U(o.$$.fragment,b),U(h),U(E),v=!1},d(b){b&&(_(e),_(k),_(g)),ve(a),ve(o),R[m].d()}}}let ui=!1;function ii(l,e,t){let{showFullText:n=Array(10).fill(!1)}=e,{useSearchResult:u}=e,i=!1,s="rel",{searchResults:a=[]}=e,r,{enableSearchResultSelection:o=!1}=e;const f=g=>g.reduce((v,C)=>{const y=C.docType||"Другие документы";return v[y]||(v[y]=[]),v[y].push(C),v},{}),c=g=>{g.stopPropagation();const v=g.target.dataset.doctype;Object.keys(r[v]).forEach(C=>{t(2,u[r[v][C].title]=g.target.checked,u)})};function m(g){s=g,t(5,s)}function h(g){s=g,t(5,s)}function k(g){i=g,t(4,i)}return l.$$set=g=>{"showFullText"in g&&t(1,n=g.showFullText),"useSearchResult"in g&&t(2,u=g.useSearchResult),"searchResults"in g&&t(0,a=g.searchResults),"enableSearchResultSelection"in g&&t(3,o=g.enableSearchResultSelection)},l.$$.update=()=>{l.$$.dirty&49&&(i&&t(6,r=f(a)),s=="date"?t(0,a=Ve.sortByDate(a)):s=="rel"&&t(0,a=Ve.sortByRelevance(a)))},[a,n,u,o,i,s,r,c,m,h,k]}class qn extends Te{constructor(e){super(),Pe(this,e,ii,li,ye,{showFullText:1,useSearchResult:2,searchResults:0,enableSearchResultSelection:3})}}function _n(l){let e,t;return e=new wl({props:{status:l[1]}}),{c(){ge(e.$$.fragment)},l(n){_e(e.$$.fragment,n)},m(n,u){be(e,n,u),t=!0},p(n,u){const i={};u[0]&2&&(i.status=n[1]),e.$set(i)},i(n){t||(F(e.$$.fragment,n),t=!0)},o(n){U(e.$$.fragment,n),t=!1},d(n){ve(e,n)}}}function bn(l){let e,t;return e=new Fl({props:{status:l[2]}}),{c(){ge(e.$$.fragment)},l(n){_e(e.$$.fragment,n)},m(n,u){be(e,n,u),t=!0},p(n,u){const i={};u[0]&4&&(i.status=n[2]),e.$set(i)},i(n){t||(F(e.$$.fragment,n),t=!0)},o(n){U(e.$$.fragment,n),t=!1},d(n){ve(e,n)}}}function si(l){let e;return{c(){e=Fe("Выбрать источники для LLM")},l(t){e=Ae(t,"Выбрать источники для LLM")},m(t,n){N(t,e,n)},d(t){t&&_(e)}}}function vn(l){let e,t="Очистить",n,u;return{c(){e=w("button"),e.textContent=t,this.h()},l(i){e=B(i,"BUTTON",{class:!0,"data-svelte-h":!0}),Ce(e)!=="svelte-1rjqwcg"&&(e.textContent=t),this.h()},h(){d(e,"class","btn variant-filled")},m(i,s){N(i,e,s),n||(u=Y(e,"click",l[19]),n=!0)},p:ae,d(i){i&&_(e),n=!1,u()}}}function kn(l){let e,t="Остановить",n,u;return{c(){e=w("button"),e.textContent=t,this.h()},l(i){e=B(i,"BUTTON",{class:!0,"data-svelte-h":!0}),Ce(e)!=="svelte-eu643t"&&(e.textContent=t),this.h()},h(){d(e,"class","btn")},m(i,s){N(i,e,s),n||(u=Y(e,"click",l[24]),n=!0)},p:ae,d(i){i&&_(e),n=!1,u()}}}function pn(l){let e,t,n,u,i,s;return i=new Tl({}),{c(){e=w("div"),t=Fe(l[12]),n=Q(),u=w("div"),ge(i.$$.fragment),this.h()},l(a){e=B(a,"DIV",{class:!0});var r=A(e);t=Ae(r,l[12]),r.forEach(_),n=Z(a),u=B(a,"DIV",{class:!0});var o=A(u);_e(i.$$.fragment,o),o.forEach(_),this.h()},h(){d(e,"class","loading-status svelte-1cldj37"),d(u,"class","loading-container svelte-1cldj37")},m(a,r){N(a,e,r),T(e,t),N(a,n,r),N(a,u,r),be(i,u,null),s=!0},p(a,r){(!s||r[0]&4096)&&st(t,a[12])},i(a){s||(F(i.$$.fragment,a),s=!0)},o(a){U(i.$$.fragment,a),s=!1},d(a){a&&(_(e),_(n),_(u)),ve(i)}}}function En(l){let e,t;return e=new Ll({props:{onSave:l[17],onClose:l[18],text:l[4]}}),{c(){ge(e.$$.fragment)},l(n){_e(e.$$.fragment,n)},m(n,u){be(e,n,u),t=!0},p(n,u){const i={};u[0]&16&&(i.text=n[4]),e.$set(i)},i(n){t||(F(e.$$.fragment,n),t=!0)},o(n){U(e.$$.fragment,n),t=!1},d(n){ve(e,n)}}}function Sn(l){let e,t,n,u;const i=[ri,ai],s=[];function a(r,o){return r[0]?0:1}return e=a(l),t=s[e]=i[e](l),{c(){t.c(),n=ke()},l(r){t.l(r),n=ke()},m(r,o){s[e].m(r,o),N(r,n,o),u=!0},p(r,o){let f=e;e=a(r),e===f?s[e].p(r,o):(Ee(),U(s[f],1,1,()=>{s[f]=null}),Se(),t=s[e],t?t.p(r,o):(t=s[e]=i[e](r),t.c()),F(t,1),t.m(n.parentNode,n))},i(r){u||(F(t),u=!0)},o(r){U(t),u=!1},d(r){r&&_(n),s[e].d(r)}}}function ai(l){let e,t;return e=new kl({props:{theme:"modern-theme",$$slots:{default:[fi]},$$scope:{ctx:l}}}),{c(){ge(e.$$.fragment)},l(n){_e(e.$$.fragment,n)},m(n,u){be(e,n,u),t=!0},p(n,u){const i={};u[0]&124576|u[1]&262144&&(i.$$scope={dirty:u,ctx:n}),e.$set(i)},i(n){t||(F(e.$$.fragment,n),t=!0)},o(n){U(e.$$.fragment,n),t=!1},d(n){ve(e,n)}}}function ri(l){let e,t,n,u,i,s,a,r,o,f,c,m,h,k,g=l[15]&&Dn(l),v=!l[7]&&l[9]&&zn(l);function C(E){l[31](E)}function y(E){l[32](E)}function p(E){l[33](E)}function R(E){l[34](E)}let M={};return l[5]!==void 0&&(M.searchResults=l[5]),l[13]!==void 0&&(M.showFullText=l[13]),l[14]!==void 0&&(M.useSearchResult=l[14]),l[15]!==void 0&&(M.enableSearchResultSelection=l[15]),o=new qn({props:M}),ze.push(()=>Ue(o,"searchResults",C)),ze.push(()=>Ue(o,"showFullText",y)),ze.push(()=>Ue(o,"useSearchResult",p)),ze.push(()=>Ue(o,"enableSearchResultSelection",R)),{c(){e=w("div"),t=w("div"),g&&g.c(),n=Q(),u=w("div"),i=new ot(!1),s=Q(),v&&v.c(),a=Q(),r=w("div"),ge(o.$$.fragment),this.h()},l(E){e=B(E,"DIV",{class:!0});var b=A(e);t=B(b,"DIV",{class:!0});var D=A(t);g&&g.l(D),n=Z(D),u=B(D,"DIV",{class:!0});var z=A(u);i=ct(z,!1),z.forEach(_),s=Z(D),v&&v.l(D),D.forEach(_),b.forEach(_),a=Z(E),r=B(E,"DIV",{class:!0});var $=A(r);_e(o.$$.fragment,$),$.forEach(_),this.h()},h(){i.a=null,d(u,"class","textarea svelte-1cldj37"),d(t,"class","textarea svelte-1cldj37"),d(e,"class","textarea-column svelte-1cldj37"),d(r,"class","search-column svelte-1cldj37")},m(E,b){N(E,e,b),T(e,t),g&&g.m(t,null),T(t,n),T(t,u),i.m(l[9],u),T(t,s),v&&v.m(t,null),N(E,a,b),N(E,r,b),be(o,r,null),k=!0},p(E,b){E[15]?g?g.p(E,b):(g=Dn(E),g.c(),g.m(t,n)):g&&(g.d(1),g=null),(!k||b[0]&512)&&i.p(E[9]),!E[7]&&E[9]?v?v.p(E,b):(v=zn(E),v.c(),v.m(t,null)):v&&(v.d(1),v=null);const D={};!f&&b[0]&32&&(f=!0,D.searchResults=E[5],je(()=>f=!1)),!c&&b[0]&8192&&(c=!0,D.showFullText=E[13],je(()=>c=!1)),!m&&b[0]&16384&&(m=!0,D.useSearchResult=E[14],je(()=>m=!1)),!h&&b[0]&32768&&(h=!0,D.enableSearchResultSelection=E[15],je(()=>h=!1)),o.$set(D)},i(E){k||(F(o.$$.fragment,E),k=!0)},o(E){U(o.$$.fragment,E),k=!1},d(E){E&&(_(e),_(a),_(r)),g&&g.d(),v&&v.d(),ve(o)}}}function oi(l){let e,t,n,u,i,s,a;function r(h){l[35](h)}function o(h){l[36](h)}function f(h){l[37](h)}function c(h){l[38](h)}let m={};return l[5]!==void 0&&(m.searchResults=l[5]),l[13]!==void 0&&(m.showFullText=l[13]),l[14]!==void 0&&(m.useSearchResult=l[14]),l[15]!==void 0&&(m.enableSearchResultSelection=l[15]),t=new qn({props:m}),ze.push(()=>Ue(t,"searchResults",r)),ze.push(()=>Ue(t,"showFullText",o)),ze.push(()=>Ue(t,"useSearchResult",f)),ze.push(()=>Ue(t,"enableSearchResultSelection",c)),{c(){e=w("div"),ge(t.$$.fragment),this.h()},l(h){e=B(h,"DIV",{class:!0});var k=A(e);_e(t.$$.fragment,k),k.forEach(_),this.h()},h(){d(e,"class","search-column svelte-1cldj37")},m(h,k){N(h,e,k),be(t,e,null),a=!0},p(h,k){const g={};!n&&k[0]&32&&(n=!0,g.searchResults=h[5],je(()=>n=!1)),!u&&k[0]&8192&&(u=!0,g.showFullText=h[13],je(()=>u=!1)),!i&&k[0]&16384&&(i=!0,g.useSearchResult=h[14],je(()=>i=!1)),!s&&k[0]&32768&&(s=!0,g.enableSearchResultSelection=h[15],je(()=>s=!1)),t.$set(g)},i(h){a||(F(t.$$.fragment,h),a=!0)},o(h){U(t.$$.fragment,h),a=!1},d(h){h&&_(e),ve(t)}}}function yn(l){let e,t="Получить ответ",n,u;return{c(){e=w("button"),e.textContent=t,this.h()},l(i){e=B(i,"BUTTON",{class:!0,"data-svelte-h":!0}),Ce(e)!=="svelte-117yy5h"&&(e.textContent=t),this.h()},h(){d(e,"class","btn variant-filled")},m(i,s){N(i,e,s),n||(u=Y(e,"click",l[25]),n=!0)},p:ae,d(i){i&&_(e),n=!1,u()}}}function Cn(l){let e,t,n="Оцените ответ:",u,i,s="👍",a,r,o="👎",f,c,m,h;return{c(){e=w("div"),t=w("span"),t.textContent=n,u=Q(),i=w("button"),i.textContent=s,a=Q(),r=w("button"),r.textContent=o,f=Q(),c=w("textarea"),this.h()},l(k){e=B(k,"DIV",{});var g=A(e);t=B(g,"SPAN",{"data-svelte-h":!0}),Ce(t)!=="svelte-9pssby"&&(t.textContent=n),u=Z(g),i=B(g,"BUTTON",{class:!0,"data-svelte-h":!0}),Ce(i)!=="svelte-1hnmipt"&&(i.textContent=s),a=Z(g),r=B(g,"BUTTON",{class:!0,"data-svelte-h":!0}),Ce(r)!=="svelte-12wf95"&&(r.textContent=o),f=Z(g),c=B(g,"TEXTAREA",{rows:!0,placeholder:!0,class:!0}),A(c).forEach(_),g.forEach(_),this.h()},h(){d(i,"class","btn-icon"),d(r,"class","btn-icon"),d(c,"rows","3"),d(c,"placeholder","Комментарий"),d(c,"class","svelte-1cldj37")},m(k,g){N(k,e,g),T(e,t),T(e,u),T(e,i),T(e,a),T(e,r),T(e,f),T(e,c),it(c,l[16]),m||(h=[Y(i,"click",l[26]),Y(r,"click",l[27]),Y(c,"input",l[39]),Y(c,"input",l[21])],m=!0)},p(k,g){g[0]&65536&&it(c,k[16])},d(k){k&&_(e),m=!1,$e(h)}}}function ci(l){let e,t,n,u,i,s,a=l[15]&&yn(l),r=!l[7]&&l[9]&&Cn(l);return{c(){e=w("div"),t=w("div"),a&&a.c(),n=Q(),u=w("div"),i=new ot(!1),s=Q(),r&&r.c(),this.h()},l(o){e=B(o,"DIV",{class:!0});var f=A(e);t=B(f,"DIV",{class:!0});var c=A(t);a&&a.l(c),n=Z(c),u=B(c,"DIV",{class:!0});var m=A(u);i=ct(m,!1),m.forEach(_),s=Z(c),r&&r.l(c),c.forEach(_),f.forEach(_),this.h()},h(){i.a=null,d(u,"class","textarea svelte-1cldj37"),d(t,"class","textarea svelte-1cldj37"),d(e,"class","textarea-column svelte-1cldj37")},m(o,f){N(o,e,f),T(e,t),a&&a.m(t,null),T(t,n),T(t,u),i.m(l[9],u),T(t,s),r&&r.m(t,null)},p(o,f){o[15]?a?a.p(o,f):(a=yn(o),a.c(),a.m(t,n)):a&&(a.d(1),a=null),f[0]&512&&i.p(o[9]),!o[7]&&o[9]?r?r.p(o,f):(r=Cn(o),r.c(),r.m(t,null)):r&&(r.d(1),r=null)},d(o){o&&_(e),a&&a.d(),r&&r.d()}}}function fi(l){let e,t,n,u;return e=new Nt({props:{minSize:20,class:"search-column",size:49,$$slots:{default:[oi]},$$scope:{ctx:l}}}),n=new Nt({props:{size:l[10],$$slots:{default:[ci]},$$scope:{ctx:l}}}),{c(){ge(e.$$.fragment),t=Q(),ge(n.$$.fragment)},l(i){_e(e.$$.fragment,i),t=Z(i),_e(n.$$.fragment,i)},m(i,s){be(e,i,s),N(i,t,s),be(n,i,s),u=!0},p(i,s){const a={};s[0]&57376|s[1]&262144&&(a.$$scope={dirty:s,ctx:i}),e.$set(a);const r={};s[0]&1024&&(r.size=i[10]),s[0]&98944|s[1]&262144&&(r.$$scope={dirty:s,ctx:i}),n.$set(r)},i(i){u||(F(e.$$.fragment,i),F(n.$$.fragment,i),u=!0)},o(i){U(e.$$.fragment,i),U(n.$$.fragment,i),u=!1},d(i){i&&_(t),ve(e,i),ve(n,i)}}}function Dn(l){let e,t="Получить ответ",n,u;return{c(){e=w("button"),e.textContent=t,this.h()},l(i){e=B(i,"BUTTON",{class:!0,"data-svelte-h":!0}),Ce(e)!=="svelte-3pb36x"&&(e.textContent=t),this.h()},h(){d(e,"class","btn variant-filled")},m(i,s){N(i,e,s),n||(u=Y(e,"click",l[25]),n=!0)},p:ae,d(i){i&&_(e),n=!1,u()}}}function zn(l){let e,t,n="Оцените ответ:",u,i,s="👍",a,r,o="👎",f,c,m,h;return{c(){e=w("div"),t=w("span"),t.textContent=n,u=Q(),i=w("button"),i.textContent=s,a=Q(),r=w("button"),r.textContent=o,f=Q(),c=w("textarea"),this.h()},l(k){e=B(k,"DIV",{});var g=A(e);t=B(g,"SPAN",{"data-svelte-h":!0}),Ce(t)!=="svelte-9pssby"&&(t.textContent=n),u=Z(g),i=B(g,"BUTTON",{class:!0,"data-svelte-h":!0}),Ce(i)!=="svelte-1hnmipt"&&(i.textContent=s),a=Z(g),r=B(g,"BUTTON",{class:!0,"data-svelte-h":!0}),Ce(r)!=="svelte-12wf95"&&(r.textContent=o),f=Z(g),c=B(g,"TEXTAREA",{rows:!0,placeholder:!0,class:!0}),A(c).forEach(_),g.forEach(_),this.h()},h(){d(i,"class","btn-icon"),d(r,"class","btn-icon"),d(c,"rows","3"),d(c,"placeholder","Комментарий"),d(c,"class","svelte-1cldj37")},m(k,g){N(k,e,g),T(e,t),T(e,u),T(e,i),T(e,a),T(e,r),T(e,f),T(e,c),it(c,l[16]),m||(h=[Y(i,"click",l[26]),Y(r,"click",l[27]),Y(c,"input",l[30]),Y(c,"input",l[21])],m=!0)},p(k,g){g[0]&65536&&it(c,k[16])},d(k){k&&_(e),m=!1,$e(h)}}}function di(l){let e,t,n,u,i,s,a,r,o,f,c,m=l[1],h,k=l[2],g,v,C,y,p,R,M,E,b="Отправить",D,z,$,I,ne,ue,te;n=new ju({});let H=_n(l),le=bn(l);function Re(X){l[29](X)}let De={name:"slider-label",size:"sm",$$slots:{default:[si]},$$scope:{ctx:l}};l[15]!==void 0&&(De.checked=l[15]),C=new Un({props:De}),ze.push(()=>Ue(C,"checked",Re));let L=l[11]&&vn(l),se=l[7]&&kn(l),V=(l[6]||l[7])&&pn(l),P=l[3]&&En(l),oe=l[8]&&Sn(l);return{c(){e=w("meta"),t=Q(),ge(n.$$.fragment),u=Q(),i=w("section"),s=w("div"),a=w("div"),r=w("textarea"),o=Q(),f=w("div"),c=w("div"),H.c(),h=Q(),le.c(),g=Q(),v=w("div"),ge(C.$$.fragment),p=Q(),L&&L.c(),R=Q(),se&&se.c(),M=Q(),E=w("button"),E.textContent=b,D=Q(),z=w("div"),V&&V.c(),$=Q(),P&&P.c(),I=Q(),oe&&oe.c(),this.h()},l(X){const ie=ll("svelte-1wpbm1r",document.head);e=B(ie,"META",{name:!0,content:!0}),ie.forEach(_),t=Z(X),_e(n.$$.fragment,X),u=Z(X),i=B(X,"SECTION",{});var j=A(i);s=B(j,"DIV",{class:!0});var we=A(s);a=B(we,"DIV",{class:!0});var ft=A(a);r=B(ft,"TEXTAREA",{class:!0,rows:!0,placeholder:!0}),A(r).forEach(_),ft.forEach(_),o=Z(we),f=B(we,"DIV",{class:!0});var Oe=A(f);c=B(Oe,"DIV",{class:!0});var qe=A(c);H.l(qe),h=Z(qe),le.l(qe),qe.forEach(_),g=Z(Oe),v=B(Oe,"DIV",{class:!0});var Me=A(v);_e(C.$$.fragment,Me),p=Z(Me),L&&L.l(Me),R=Z(Me),se&&se.l(Me),M=Z(Me),E=B(Me,"BUTTON",{title:!0,class:!0,"data-svelte-h":!0}),Ce(E)!=="svelte-w5ppob"&&(E.textContent=b),Me.forEach(_),D=Z(Oe),z=B(Oe,"DIV",{class:!0});var at=A(z);V&&V.l(at),at.forEach(_),Oe.forEach(_),$=Z(we),P&&P.l(we),we.forEach(_),I=Z(j),oe&&oe.l(j),j.forEach(_),this.h()},h(){document.title="LLM demo app",d(e,"name","description"),d(e,"content","LLM demo app"),d(r,"class","auto-expand-textarea svelte-1cldj37"),d(r,"rows","1"),d(r,"placeholder","Введите ваш запрос..."),d(a,"class","grow-wrap w-full svelte-1cldj37"),d(c,"class","status-components svelte-1cldj37"),d(E,"title","Ctrl+Enter"),d(E,"class","btn variant-filled"),d(v,"class","flex space-x-2 items-center"),d(z,"class","flex space-x-2 items-center w-full"),d(f,"class","search-second-bar w-full flex svelte-1cldj37"),d(s,"class","search-bar flex flex-wrap svelte-1cldj37")},m(X,ie){T(document.head,e),N(X,t,ie),be(n,X,ie),N(X,u,ie),N(X,i,ie),T(i,s),T(s,a),T(a,r),it(r,l[11]),T(s,o),T(s,f),T(f,c),H.m(c,null),T(c,h),le.m(c,null),T(f,g),T(f,v),be(C,v,null),T(v,p),L&&L.m(v,null),T(v,R),se&&se.m(v,null),T(v,M),T(v,E),T(f,D),T(f,z),V&&V.m(z,null),T(s,$),P&&P.m(s,null),T(i,I),oe&&oe.m(i,null),ne=!0,ue||(te=[Y(r,"input",l[28]),Y(r,"input",l[20]),Y(r,"keydown",l[22]),Y(E,"click",l[23])],ue=!0)},p(X,ie){ie[0]&2048&&it(r,X[11]),ie[0]&2&&ye(m,m=X[1])?(Ee(),U(H,1,1,ae),Se(),H=_n(X),H.c(),F(H,1),H.m(c,h)):H.p(X,ie),ie[0]&4&&ye(k,k=X[2])?(Ee(),U(le,1,1,ae),Se(),le=bn(X),le.c(),F(le,1),le.m(c,null)):le.p(X,ie);const j={};ie[1]&262144&&(j.$$scope={dirty:ie,ctx:X}),!y&&ie[0]&32768&&(y=!0,j.checked=X[15],je(()=>y=!1)),C.$set(j),X[11]?L?L.p(X,ie):(L=vn(X),L.c(),L.m(v,R)):L&&(L.d(1),L=null),X[7]?se?se.p(X,ie):(se=kn(X),se.c(),se.m(v,M)):se&&(se.d(1),se=null),X[6]||X[7]?V?(V.p(X,ie),ie[0]&192&&F(V,1)):(V=pn(X),V.c(),F(V,1),V.m(z,null)):V&&(Ee(),U(V,1,1,()=>{V=null}),Se()),X[3]?P?(P.p(X,ie),ie[0]&8&&F(P,1)):(P=En(X),P.c(),F(P,1),P.m(s,null)):P&&(Ee(),U(P,1,1,()=>{P=null}),Se()),X[8]?oe?(oe.p(X,ie),ie[0]&256&&F(oe,1)):(oe=Sn(X),oe.c(),F(oe,1),oe.m(i,null)):oe&&(Ee(),U(oe,1,1,()=>{oe=null}),Se())},i(X){ne||(F(n.$$.fragment,X),F(H),F(le),F(C.$$.fragment,X),F(V),F(P),F(oe),ne=!0)},o(X){U(n.$$.fragment,X),U(H),U(le),U(C.$$.fragment,X),U(V),U(P),U(oe),ne=!1},d(X){X&&(_(t),_(u),_(i)),_(e),ve(n,X),H.d(X),le.d(X),ve(C),L&&L.d(),se&&se.d(),V&&V.d(),P&&P.d(),oe&&oe.d(),ue=!1,$e(te)}}}function Tn(l){return l.map(({title:e,text:t})=>`${e} +${t}`).join(` + +`)}function hi(l,e,t){Yl();let n=!1;const u={message:"Спасибо за оценку!",timeout:5e3},i=Nn();bt(()=>{t(0,n=window.innerWidth<=768)});let s="unknown",a="unknown",r=!1,o=`Ты бухгалтер. Ты отвечаешь на русском языке. Ты всегда следуешь моим инструкциям. + Ты отвечаешь на вопросы клиентов. Чтобы ответить, ты обязательно используешь только "источники", которые я тебе предоставляю. Ты используешь только официально-деловой стиль и необходимую терминологию. Соблюдай этические нормы. +При ответе на вопрос ты используешь только такой формат ответа: + 1) Четкий и краткий ответ на поставленный вопрос. Ты можешь начать свой ответ так: "По Вашему вопросу сообщаем...". Используй по возможности слова: да, можно, нет, нельзя. + 2) Обоснование (ты используешь для обоснования "источники". Ты используешь только "источники" для поиска необходимых "законов", "статей", "пунктов" и "подпунктов" для ответа на вопрос пользователя). + 3) Аргументация (Ты используешь только "источники" для поиска необходимых "писем" и "судебных решений", чтобы аргументировать свой ответ)." + 4) Заключение (ты подводишь итоги всего, что сказал выше. Избегай повторения и сложных конструкций). Если в источниках нельзя найти подходящую информацию для ответа, ты отвечаешь так: "Мы не можем ответить на данный вопрос. Обратитесь к специалисту." + Вопрос: {{ВОПРОС}} +Источники: {{ИСТОЧНИКИ}}`;function f(G){t(4,o=G)}function c(){t(3,r=!1)}async function m(){try{const G=await fetch(`${window.location.origin}/llm/health`,{method:"GET",headers:{"Content-Type":"application/json"}});if(!G.ok)throw new Error(`Failed to fetch Llama health status: ${G.statusText}`);const he=await G.json();t(1,s=he.status)}catch(G){console.error("Error fetching Llama health status:",G.message)}try{const G=await fetch(`${window.location.origin}/search/health`,{method:"GET",headers:{"Content-Type":"application/json"}});if(!G.ok)throw new Error(`Failed to fetch search health status: ${G.statusText}`);const he=await G.json();t(2,a=he.status)}catch(G){console.error("Error fetching search health status:",G.message)}}bt(async()=>{m()}),Tt(()=>{le()});let h=[],k=!1,g=!1,v=!1,C="",y=0,p="",R="",M=Array(h.length).fill(!1),E,b=!1,D="";const z=async G=>{t(9,C=""),t(6,k=!1),t(7,g=!1),t(8,v=!1),t(5,h=[]),t(11,p=""),le()},$=G=>{t(11,p=G.target.value);const he=G.target.parentNode;he&&(he.dataset.replicatedValue=p)},I=G=>{t(16,D=G.target.value);const he=G.target.parentNode;he&&(he.dataset.replicatedValue=p)},ne=G=>{G.ctrlKey&&G.key==="Enter"&&(G.preventDefault(),H())},ue=async()=>{t(10,y=49);let G="";if(b)G=Tn(h.filter((Qe,nt)=>E[Qe.title]));else{const Qe=h.slice(0,10);G=Tn(Qe)}let he=o.replace("{{ВОПРОС}}",p).replace("{{ИСТОЧНИКИ}}",G);t(7,g=!0),h?t(12,R="Генерируем ответ на основе результатов поиска"):t(12,R="Генерируем ответ");const rt=await fetch("/llm",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({userprompt:he}),signal:te.signal});try{if(te.signal.aborted){console.log("Request was cancelled.");return}if(!rt.body){console.log("Response has no body");return}const Qe=rt.body.pipeThrough(new TextDecoderStream).getReader();let nt=!0;for(;nt;)try{if(te.signal.aborted){console.log("Request was cancelled during reading.");break}const{value:lt,done:ht}=await Qe.read();if(ht){nt=!1;break}lt&&t(9,C+=lt.replaceAll(` +`,"
"))}catch(lt){if(t(12,R="Ошибка генерации ответа"),lt.name==="AbortError"){nt=!1,console.log("Fetch was aborted during reading.");break}else{nt=!1,console.error("Error during reading:",lt);break}}t(12,R=""),t(7,g=!1)}catch(Qe){Qe.name==="AbortError"?console.log("Fetch was aborted."):console.error("Error during fetch:",Qe)}};let te=new AbortController;const H=async G=>{t(13,M=Array(10).fill(!1)),t(14,E={}),t(9,C=""),t(6,k=!0),t(7,g=!1),t(8,v=!0),t(12,R="Ищем релевантные документы");try{const he=await fetch("/search",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({query:p})});if(!he.ok)throw new Error(`Failed to fetch search results: ${he.statusText}`);const rt=await he.json();t(5,h=Ve.sortByRelevance(rt.results)),t(5,h=Ve.identifyDocumentType(h)),console.log(h)}catch{}t(12,R=""),t(6,k=!1),b?t(10,y=49):await ue()},le=()=>{te.abort("user canceled"),te=new AbortController};async function Re(){t(9,C=""),await le(),setTimeout(async()=>{await ue()},1e3)}async function De(){await se({userScore:"positive"}),i.trigger(u),t(16,D="")}async function L(){await se({userScore:"negative"}),i.trigger(u),t(16,D="")}async function se(G){try{const he=await fetch("/log/response",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({user_query:p,prompt_template:o,search_results:h,llm_response:C.replaceAll("
",` +`),user_score:G.userScore,user_comment:D})});if(!he.ok)throw new Error(`Failed to fetch search results: ${he.statusText}`);if((await he.json()).success)return!0}catch{}return!1}function V(){p=this.value,t(11,p)}function P(G){b=G,t(15,b)}function oe(){D=this.value,t(16,D)}function X(G){h=G,t(5,h)}function ie(G){M=G,t(13,M)}function j(G){E=G,t(14,E)}function we(G){b=G,t(15,b)}function ft(G){h=G,t(5,h)}function Oe(G){M=G,t(13,M)}function qe(G){E=G,t(14,E)}function Me(G){b=G,t(15,b)}function at(){D=this.value,t(16,D)}return[n,s,a,r,o,h,k,g,v,C,y,p,R,M,E,b,D,f,c,z,$,I,ne,H,le,Re,De,L,V,P,oe,X,ie,j,we,ft,Oe,qe,Me,at]}class vi extends Te{constructor(e){super(),Pe(this,e,hi,di,ye,{},null,[-1,-1])}}export{vi as component,bi as universal}; diff --git a/build/client/_app/immutable/nodes/2.pY1LGpCp.js b/build/client/_app/immutable/nodes/2.pY1LGpCp.js new file mode 100644 index 0000000000000000000000000000000000000000..68e7efe455d82a2ac7582375add00517336f2e8f --- /dev/null +++ b/build/client/_app/immutable/nodes/2.pY1LGpCp.js @@ -0,0 +1,21 @@ +import{n as ae,H as Qn,D as $e,s as ye,w as Ge,e as w,a as Q,c as B,b as A,g as Z,f as _,p as d,T as Ne,i as N,h as T,y as Xe,z as Ye,A as Je,U as zt,k as tt,V as re,W as dt,o as bt,X as Tt,m as Zn,v as xn,r as ze,l as ke,Y as de,Z as Y,_ as He,$ as Ke,t as Fe,d as Ae,q as et,j as st,x as Ce,a0 as it,a1 as $n,a2 as Ft,a3 as Ie,a4 as We,a5 as Pn,F as Rn,a6 as el,a7 as pe,a8 as ot,a9 as ct,E as tl,aa as nl,ab as vt,ac as kt,ad as Et,ae as je,af as ll}from"../chunks/scheduler.Ze4Bbz0A.js";import{n as ul,l as il,f as sl,h as al,a as F,t as U,S as Te,i as Pe,g as Ee,c as Se,j as wn,k as Bn,o as Ue,b as ge,d as _e,m as be,e as ve}from"../chunks/index.76WsQp4a.js";import{w as ut,r as rl}from"../chunks/entry.6sYS-0PY.js";const In=!0;function ol(l,e,t,n){if(!e)return ae;const u=l.getBoundingClientRect();if(e.left===u.left&&e.right===u.right&&e.top===u.top&&e.bottom===u.bottom)return ae;const{delay:i=0,duration:s=300,easing:a=Qn,start:r=ul()+i,end:o=r+s,tick:f=ae,css:c}=t(l,{from:e,to:u},n);let m=!0,h=!1,k;function g(){c&&(k=sl(l,0,1,s,i,a,c)),i||(h=!0)}function v(){c&&al(l,k),m=!1}return il(C=>{if(!h&&C>=r&&(h=!0),h&&C>=o&&(f(1,0),v()),!m)return!1;if(h){const y=C-r,p=0+1*a(y/s);f(p,1-p)}return!0}),g(),f(0,1),v}function cl(l){const e=getComputedStyle(l);if(e.position!=="absolute"&&e.position!=="fixed"){const{width:t,height:n}=e,u=l.getBoundingClientRect();l.style.position="absolute",l.style.width=t,l.style.height=n,Fn(l,u)}}function Fn(l,e){const t=l.getBoundingClientRect();if(e.left!==t.left||e.top!==t.top){const n=getComputedStyle(l),u=n.transform==="none"?"":n.transform;l.style.transform=`${u} translate(${e.left-t.left}px, ${e.top-t.top}px)`}}function xe(l){return l?.length!==void 0?l:Array.from(l)}function fl(l,e){U(l,1,1,()=>{e.delete(l.key)})}function dl(l,e){l.f(),fl(l,e)}function hl(l,e,t,n,u,i,s,a,r,o,f,c){let m=l.length,h=i.length,k=m;const g={};for(;k--;)g[l[k].key]=k;const v=[],C=new Map,y=new Map,p=[];for(k=h;k--;){const b=c(u,i,k),D=t(b);let z=s.get(D);z?n&&p.push(()=>z.p(b,e)):(z=o(D,b),z.c()),C.set(D,v[k]=z),D in g&&y.set(D,Math.abs(k-g[D]))}const R=new Set,M=new Set;function E(b){F(b,1),b.m(a,f),s.set(b.key,b),f=b.first,h--}for(;m&&h;){const b=v[h-1],D=l[m-1],z=b.key,$=D.key;b===D?(f=b.first,m--,h--):C.has($)?!s.has(z)||R.has(z)?E(b):M.has($)?m--:y.get(z)>y.get($)?(M.add(z),E(b)):(R.add($),m--):(r(D,s),m--)}for(;m--;){const b=l[m];C.has(b.key)||r(b,s)}for(;h;)E(v[h-1]);return $e(p),v}function An(l,e){const t={},n={},u={$$scope:1};let i=l.length;for(;i--;){const s=l[i],a=e[i];if(a){for(const r in s)r in a||(n[r]=1);for(const r in a)u[r]||(t[r]=a[r],u[r]=1);l[i]=a}else for(const r in s)u[r]=1}for(const s in n)s in t||(t[s]=void 0);return t}const ml=!0,bi=Object.freeze(Object.defineProperty({__proto__:null,prerender:ml},Symbol.toStringTag,{value:"Module"}));function gt(l){if(!l.endsWith("px"))return;const e=parseFloat(l.slice(0,l.length-2));return isNaN(e)?void 0:e}const On=l=>l?"height":"width",Ct=l=>window.getComputedStyle(l),Dt=l=>l.getBoundingClientRect(),gl=(l,e=!0)=>{if(l.getPropertyValue("box-sizing")==="border-box")return;const t=gt(l.getPropertyValue("border-left-width"));if(t===void 0){console.error("Splitpanes Error: Fail to parse container `border-left-width`.");return}const n=gt(l.getPropertyValue("border-top-width"));if(n===void 0){console.error("Splitpanes Error: Fail to parse container `border-top-width`.");return}const u={left:t,top:n};if(e){const i=gt(l.getPropertyValue("border-right-width"));if(i===void 0){console.error("Splitpanes Error: Fail to parse container `border-right-width`.");return}const s=gt(l.getPropertyValue("border-bottom-width"));if(s===void 0){console.error("Splitpanes Error: Fail to parse container `border-bottom-width`.");return}const a=u;a.right=i,a.bottom=s}return u};function _l(l,e){e||(e=Ct(l));const t=Dt(l),n=gl(e,!0)||{left:0,top:0,right:0,bottom:0};return{width:t.width-n.left-n.right,height:t.height-n.top-n.bottom,left:t.left+n.left,top:t.top+n.top}}const At=(l,e)=>({left:l.left-e.left,top:l.top-e.top});function Ot(l){const e=l,t=l,{clientX:n,clientY:u}="ontouchstart"in window&&t.touches?t.touches[0]:e;return{left:n,top:u}}function Mt(l,e,t,n){let u=0;for(let i=e;it(31,i=S));const ue=ut(h);tt(l,ue,S=>t(30,u=S));const te=ut(void 0);tt(l,te,S=>t(29,n=S));let H=null,le=null;re(Mn,{showFirstSplitter:ue,veryFirstPaneKey:te,isHorizontal:ne,ssrRegisterPaneSize:void 0,onPaneInit:S=>(n===void 0&&dt(te,n=S,n),{undefinedPaneInitSize:0}),clientOnly:{onPaneAdd:De,onPaneRemove:L}});function De(S){let W=-1;Array.from(S.element.parentNode.children).some(O=>(O.className.includes("splitpanes__pane")&&W++,O===S.element)),W===0&&dt(te,n=S.key,n),I.splice(W,0,S);for(let O=0;O{S.isReady=!0,C("pane-add",{index:W,panes:G()})});const J=(O,x=!0)=>K=>{(x||S.index>0)&&O(K,S)};return{onSplitterDown:J(ft,!1),onSplitterClick:J(Me,!1),onSplitterDblClick:J(at),onPaneClick:J(se),reportGivenSizeChange:J(V)}}async function L(S){const W=I.findIndex(J=>J.key===S);if(W>=0){const J=I.splice(W,1)[0];for(let O=0;O0?I[0].key:void 0,n),p&&(await St(),C("pane-remove",{removed:J,panes:G()}))}}function se(S,W){C("pane-click",W)}function V(S,W){W.setSz(S),St()}bt(()=>{Bt(),wt();for(let S=0;S{t(6,M=!0)},0)}),Tt(()=>{p&&X(),p=!1}),Zn(()=>{Bt()});function P(S){if(m==="auto")try{return(S??Ct(y)).direction==="rtl"}catch{}return m===!0}function oe(){document.body.style.cursor=ne?"col-resize":"row-resize",document.addEventListener("mousemove",Oe,{passive:!1}),document.addEventListener("mouseup",qe),"ontouchstart"in window&&(document.addEventListener("touchmove",Oe,{passive:!1}),document.addEventListener("touchend",qe))}function X(){document.body.style.cursor="",document.removeEventListener("mousemove",Oe),document.removeEventListener("mouseup",qe),"ontouchstart"in window&&(document.removeEventListener("touchmove",Oe),document.removeEventListener("touchend",qe))}const ie=S=>S.nodeType===Node.ELEMENT_NODE&&S.classList.contains("splitpanes__splitter");function j(S,W,J){let O=S[o?"top":"left"];return J&&!o&&(O=W-O),O}const we=()=>On(o);function ft(S,W){t(7,E=!0),D=W.index,W.setSplitterActive(!0);let O=W.element;for(;O!=null&&(O=O.previousSibling,!ie(O)););if(O==null){console.error("Splitpane Error: Active splitter wasn't found!");return}H=O;const x=Ot(S),K=Dt(H);le=j(At(x,K),K[we()],P()),oe()}function Oe(S){if(E){S.preventDefault(),t(8,b=!0);const W=Ot(S),J=Ct(y),O=_l(y,J),x=O[we()],K=P(J),q=At(W,O),ee=j(q,x,K);rt(ee,x),C("resize",G())}}function qe(){b&&C("resized",G()),t(7,E=!1),I[D].setSplitterActive(!1),setTimeout(()=>{t(8,b=!1),X()},100)}function Me(S,W){if("ontouchstart"in window){S.preventDefault();const J=W.index;c&&(z===J?($&&clearTimeout($),$=null,at(S,W),z=-1):(z=J,$=setTimeout(()=>{z=-1},500)))}b||C("splitter-click",W)}function at(S,W){if(c){const J=W.index;let O=0;for(let q=0;q=100)for(let q=0;q{const me=ce.min(),Be=ce.max(),Le=Math.min(Math.max(0,q),Be-me);ce.setSz(me+Le),q-=Le};for(let ce=J-1;ce>=0;ce--)ee(I[ce]);for(let ce=J+1;ceI.map(S=>({min:S.min(),max:S.max(),size:S.sz(),snap:S.snap()}));function he(S,W){const J=Be=>Dt(Be)[we()],O=J(H);let x=0,K=H.previousSibling;for(;K!=null;)ie(K)&&(x+=J(K)),K=K.previousSibling;let q=0,ee=H.nextSibling;for(;ee!=null;)ie(ee)&&(q+=J(ee)),ee=ee.nextSibling;const ce=x+le,me=x+O+q;return(S-ce)/(W-me)*100}function rt(S,W){let J=D-1,O=I[J],x=D,K=I[x],q={prevPanesSize:lt(J),nextPanesSize:ht(x),prevReachedMinPanes:0,nextReachedMinPanes:0};const ee=0+(f?0:q.prevPanesSize),ce=100-(f?0:q.nextPanesSize),me=Math.max(Math.min(he(S,W),ce),ee),Be=q.prevPanesSize+O.min()+O.snap(),Le=100-(q.nextPanesSize+K.min()+K.snap());let fe=me,Ze=!1;me<=Be?me>q.prevPanesSize+O.min()&&(fe=Math.max(O.min()+q.prevPanesSize,100-(K.max()+q.nextPanesSize)),Ze=!0):me>=Le&&me<100-q.nextPanesSize-K.min()&&(fe=Math.min(100-(K.min()+q.nextPanesSize),O.max()+q.prevPanesSize),Ze=!0);const mt=O.max()<100&&fe>=O.max()+q.prevPanesSize,Jn=K.max()<100&&fe<=100-(K.max()+q.nextPanesSize);if(mt||Jn)mt?(O.setSz(O.max()),K.setSz(Math.max(100-O.max()-q.prevPanesSize-q.nextPanesSize,0))):(O.setSz(Math.max(100-K.max()-q.prevPanesSize-q.nextPanesSize,0)),K.setSz(K.max()));else{if(f&&!Ze){const It=Qe(q,fe);if(!It)return;({sums:q,paneBeforeIndex:J,paneAfterIndex:x}=It),O=I[J],K=I[x]}J!=null&&O.setSz(Math.min(Math.max(fe-q.prevPanesSize-q.prevReachedMinPanes,O.min()),O.max())),x!=null&&K.setSz(Math.min(Math.max(100-fe-q.nextPanesSize-q.nextReachedMinPanes,K.min()),K.max()))}}function Qe(S,W){const J=D-1;let O=J,x=J+1;if(W{K.setSz(K.min()),S.prevReachedMinPanes+=K.min()}),S.prevPanesSize=lt(O),O==null))return S.prevReachedMinPanes=0,I[0].setSz(I[0].min()),_t(I,1,J+1,K=>{K.setSz(K.min()),S.prevReachedMinPanes+=K.min()}),I[x].setSz(100-S.prevReachedMinPanes-I[0].min()-S.prevPanesSize-S.nextPanesSize),null;if(W>100-S.nextPanesSize-I[x].min()){x=Kn(J)?.index,S.nextReachedMinPanes=0,x>J+1&&_t(I,J+1,x,q=>{q.setSz(q.min()),S.nextReachedMinPanes+=q.min()}),S.nextPanesSize=ht(x);const K=I.length;if(x==null)return S.nextReachedMinPanes=0,I[K-1].setSz(I[K-1].min()),_t(I,J+1,K-1,q=>{q.setSz(q.min()),S.nextReachedMinPanes+=q.min()}),I[O].setSz(100-S.prevPanesSize-S.nextReachedMinPanes-I[K-1].min()-S.nextPanesSize),null}return{sums:S,paneBeforeIndex:O,paneAfterIndex:x}}const nt=S=>S.sz(),lt=S=>Mt(I,0,S,nt),ht=S=>Mt(I,S+1,I.length,nt),Hn=S=>[...I].reverse().find(W=>W.indexW.min()),Kn=S=>I.find(W=>W.index>S+1&&W.sz()>W.min());async function St(){R=!0,await xn(),R&&(wt(),R=!1)}function wt(){Gn(),p&&C("resized",G())}function Gn(){if(I.length===0)return;const S=I.length;let W=100,J=0,O=0,x=0,K=[],q=[];for(let Le=0;Le=fe.max()&&K.push(fe),Ze<=fe.min()&&q.push(fe)):O+=1:(W-=Ze,J++,K.push(fe),q.push(fe))}const ee=S-J,ce=ee-O;let me,Be;if(ce>0?(me=x/ce,me>.1&&W>.1?(x+=O*me,Be=W/x):(me=0,Be=1)):(me=W/ee,Be=1),W+x>.1){W=100;for(let Le=0;Le.1&&(W=Xn(W,K,q))}isFinite(W)?Math.abs(W)>.1&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints."):console.warn("Splitpanes: Internal error, sizes might be NaN as a result.")}function Xn(S,W,J){const x=I.length-(S>0?W.length:J.length);if(x<=0)return S;const K=S/x;if(I.length===1)I[0].setSz(100),S=0;else for(let q=0;q0&&!W.includes(ee)){const me=Math.max(Math.min(ce+K,ee.max()),ee.min()),Be=me-ce;S-=Be,ee.setSz(me)}else if(!J.includes(ee)){const me=Math.max(Math.min(ce+K,ee.max()),ee.min()),Be=me-ce;S-=Be,ee.setSz(me)}}return S}function Bt(){const{children:S}=y;let W=0,J=!1;for(let O=0;O elements are allowed at the root of . One of your DOM nodes was removed.");return}else K&&(!J&&I[W].element!==x&&(J=!0),W++)}if(J){const O=[];for(let x=0;xce.element===K);ee!=null?(ee.index=O.length,O.push(ee)):console.warn("Splitpanes: Internal error - found a elements which isn't tracked.")}}I=O,dt(te,n=I.length>0?I[0].key:void 0,n)}}function Yn(S){ze[S?"unshift":"push"](()=>{y=S,t(5,y)})}return l.$$set=S=>{"id"in S&&t(0,r=S.id),"horizontal"in S&&t(1,o=S.horizontal),"pushOtherPanes"in S&&t(12,f=S.pushOtherPanes),"dblClickSplitter"in S&&t(13,c=S.dblClickSplitter),"rtl"in S&&t(14,m=S.rtl),"firstSplitter"in S&&t(15,h=S.firstSplitter),"style"in S&&t(2,k=S.style),"theme"in S&&t(3,g=S.theme),"class"in S&&t(4,v=S.class),"$$scope"in S&&t(18,a=S.$$scope)},l.$$.update=()=>{l.$$.dirty[0]&2&&dt(ne,i=o,i),l.$$.dirty[0]&32768&&dt(ue,u=h,u)},[r,o,k,g,v,y,M,E,b,ne,ue,te,f,c,m,h,s,Yn,a]}class kl extends Te{constructor(e){super(),Pe(this,e,vl,bl,ye,{id:0,horizontal:1,pushOtherPanes:12,dblClickSplitter:13,rtl:14,firstSplitter:15,style:2,theme:3,class:4},null,[-1,-1,-1])}}const pl=(l,e)=>t=>{const n=l();n?.[e](t)},El=l=>pl.bind(null,l);function Sl(l){let e,t,n,u,i,s,a=(l[4]!==l[9]||l[5])&&Lt(l);const r=l[20].default,o=Ge(r,l,l[19],null);return{c(){a&&a.c(),e=Q(),t=w("div"),o&&o.c(),this.h()},l(f){a&&a.l(f),e=Z(f),t=B(f,"DIV",{class:!0,style:!0});var c=A(t);o&&o.l(c),c.forEach(_),this.h()},h(){d(t,"class",n=`splitpanes__pane ${l[0]||""}`),d(t,"style",l[3])},m(f,c){a&&a.m(f,c),N(f,e,c),N(f,t,c),o&&o.m(t,null),l[21](t),u=!0,i||(s=Y(t,"click",l[11]("onPaneClick")),i=!0)},p(f,c){f[4]!==f[9]||f[5]?a?a.p(f,c):(a=Lt(f),a.c(),a.m(e.parentNode,e)):a&&(a.d(1),a=null),o&&o.p&&(!u||c&524288)&&Xe(o,r,f,f[19],u?Je(r,f[19],c,null):Ye(f[19]),null),(!u||c&1&&n!==(n=`splitpanes__pane ${f[0]||""}`))&&d(t,"class",n),(!u||c&8)&&d(t,"style",f[3])},i(f){u||(F(o,f),u=!0)},o(f){U(o,f),u=!1},d(f){f&&(_(e),_(t)),a&&a.d(f),o&&o.d(f),l[21](null),i=!1,s()}}}function Lt(l){let e,t,n,u;return{c(){e=w("div"),this.h()},l(i){e=B(i,"DIV",{class:!0}),A(e).forEach(_),this.h()},h(){d(e,"class",t="splitpanes__splitter "+(l[2]?"splitpanes__splitter__active":""))},m(i,s){N(i,e,s),n||(u=[Y(e,"mousedown",l[11]("onSplitterDown")),Y(e,"touchstart",l[11]("onSplitterDown")),Y(e,"click",l[11]("onSplitterClick")),Y(e,"dblclick",l[11]("onSplitterDblClick"))],n=!0)},p(i,s){s&4&&t!==(t="splitpanes__splitter "+(i[2]?"splitpanes__splitter__active":""))&&d(e,"class",t)},d(i){i&&_(e),n=!1,$e(u)}}}function yl(l){let e,t,n=!l[10]&&Sl(l);return{c(){n&&n.c(),e=ke()},l(u){n&&n.l(u),e=ke()},m(u,i){n&&n.m(u,i),N(u,e,i),t=!0},p(u,[i]){u[10]||n.p(u,i)},i(u){t||(F(n),t=!0)},o(u){U(n),t=!1},d(u){u&&_(e),n&&n.d(u)}}}function Cl(l,e,t){let n,u,i,s,a,{$$slots:r={},$$scope:o}=e;const{ssrRegisterPaneSize:f,onPaneInit:c,clientOnly:m,isHorizontal:h,showFirstSplitter:k,veryFirstPaneKey:g}=de(Mn);tt(l,h,H=>t(18,i=H)),tt(l,k,H=>t(5,a=H)),tt(l,g,H=>t(4,s=H));let{size:v=null}=e,{minSize:C=0}=e,{maxSize:y=100}=e,{snapSize:p=0}=e,{class:R=""}=e;const M={},E=!In,{undefinedPaneInitSize:b}=c(M);let D,z=v??b,$=!1,I;const ne=El(()=>I),ue=H=>{H!=z&&ne("reportGivenSizeChange")(H)};bt(()=>{const H={key:M,element:D,givenSize:v,sz:()=>z,setSz:le=>{t(16,z=le),v!=null&&v!=z&&t(12,v=z)},min:()=>C,max:()=>y,snap:()=>p,setSplitterActive:le=>{t(2,$=le)},isReady:!1};I=m.onPaneAdd(H)}),Tt(()=>{m.onPaneRemove(M)});function te(H){ze[H?"unshift":"push"](()=>{D=H,t(1,D)})}return l.$$set=H=>{"size"in H&&t(12,v=H.size),"minSize"in H&&t(13,C=H.minSize),"maxSize"in H&&t(14,y=H.maxSize),"snapSize"in H&&t(15,p=H.snapSize),"class"in H&&t(0,R=H.class),"$$scope"in H&&t(19,o=H.$$scope)},l.$$.update=()=>{l.$$.dirty&4096&&v!=null&&ue(v),l.$$.dirty&262144&&t(17,n=On(i)),l.$$.dirty&196608&&t(3,u=`${n}: ${z}%;`)},[R,D,$,u,s,a,h,k,g,M,E,ne,v,C,y,p,z,n,i,o,r,te]}class Nt extends Te{constructor(e){super(),Pe(this,e,Cl,yl,ye,{size:12,minSize:13,maxSize:14,snapSize:15,class:0})}}function Dl(l){let e,t,n,u,i,s,a;return{c(){e=He("svg"),t=He("circle"),n=He("animate"),u=He("circle"),i=He("animate"),s=He("circle"),a=He("animate"),this.h()},l(r){e=Ke(r,"svg",{version:!0,id:!0,xmlns:!0,"xmlns:xlink":!0,x:!0,y:!0,viewBox:!0,"enable-background":!0,"xml:space":!0});var o=A(e);t=Ke(o,"circle",{fill:!0,stroke:!0,cx:!0,cy:!0,r:!0});var f=A(t);n=Ke(f,"animate",{attributeName:!0,dur:!0,values:!0,repeatCount:!0,begin:!0}),A(n).forEach(_),f.forEach(_),u=Ke(o,"circle",{fill:!0,stroke:!0,cx:!0,cy:!0,r:!0});var c=A(u);i=Ke(c,"animate",{attributeName:!0,dur:!0,values:!0,repeatCount:!0,begin:!0}),A(i).forEach(_),c.forEach(_),s=Ke(o,"circle",{fill:!0,stroke:!0,cx:!0,cy:!0,r:!0});var m=A(s);a=Ke(m,"animate",{attributeName:!0,dur:!0,values:!0,repeatCount:!0,begin:!0}),A(a).forEach(_),m.forEach(_),o.forEach(_),this.h()},h(){d(n,"attributeName","opacity"),d(n,"dur","1s"),d(n,"values","0;1;0"),d(n,"repeatCount","indefinite"),d(n,"begin","0.1"),d(t,"fill","#1976d2"),d(t,"stroke","none"),d(t,"cx","6"),d(t,"cy","50"),d(t,"r","6"),d(i,"attributeName","opacity"),d(i,"dur","1s"),d(i,"values","0;1;0"),d(i,"repeatCount","indefinite"),d(i,"begin","0.2"),d(u,"fill","#1976d2"),d(u,"stroke","none"),d(u,"cx","26"),d(u,"cy","50"),d(u,"r","6"),d(a,"attributeName","opacity"),d(a,"dur","1s"),d(a,"values","0;1;0"),d(a,"repeatCount","indefinite"),d(a,"begin","0.3"),d(s,"fill","#1976d2"),d(s,"stroke","none"),d(s,"cx","46"),d(s,"cy","50"),d(s,"r","6"),d(e,"version","1.1"),d(e,"id","L4"),d(e,"xmlns","http://www.w3.org/2000/svg"),d(e,"xmlns:xlink","http://www.w3.org/1999/xlink"),d(e,"x","0px"),d(e,"y","0px"),d(e,"viewBox","0 0 100 100"),d(e,"enable-background","new 0 0 0 0"),d(e,"xml:space","preserve")},m(r,o){N(r,e,o),T(e,t),T(t,n),T(e,u),T(u,i),T(e,s),T(s,a)},p:ae,i:ae,o:ae,d(r){r&&_(e)}}}function zl(l,e,t){let{size:n=20}=e;return l.$$set=u=>{"size"in u&&t(0,n=u.size)},[n]}class Tl extends Te{constructor(e){super(),Pe(this,e,zl,Dl,ye,{size:0})}}function Pl(l){let e,t,n,u,i;return{c(){e=w("div"),t=He("svg"),n=He("circle"),u=Q(),i=Fe(l[2]),this.h()},l(s){e=B(s,"DIV",{class:!0});var a=A(e);t=Ke(a,"svg",{class:!0,viewBox:!0,xmlns:!0});var r=A(t);n=Ke(r,"circle",{cx:!0,cy:!0,r:!0,fill:!0,style:!0}),A(n).forEach(_),r.forEach(_),u=Z(a),i=Ae(a,l[2]),a.forEach(_),this.h()},h(){d(n,"cx","10"),d(n,"cy","10"),d(n,"r","5"),d(n,"fill",l[0]),et(n,"filter","drop-shadow(0 0 1px "+l[1]+")"),d(t,"class","dot svelte-a20mi8"),d(t,"viewBox","0 0 20 20"),d(t,"xmlns","http://www.w3.org/2000/svg"),d(e,"class","llm-health-status svelte-a20mi8")},m(s,a){N(s,e,a),T(e,t),T(t,n),T(e,u),T(e,i)},p(s,[a]){a&1&&d(n,"fill",s[0]),a&2&&et(n,"filter","drop-shadow(0 0 1px "+s[1]+")"),a&4&&st(i,s[2])},i:ae,o:ae,d(s){s&&_(e)}}}function Rl(l,e,t){let{status:n="unknown"}=e,u="",i="",s="";switch(n){case"ok":u="#4CAF50",i="rgba(0, 128, 0, 0.7)",s="Сервис LLM работает";break;case"error":s="Сервис LLM не работает";break;case"loading model":u="yellow",i="rgba(255, 255, 0, 0.7)",s="Сервис LLM запускается...";break;case"unavailable":u="#af4f4c",i="#af4f4c",s="Сервис LLM не запущен";break;case"unknown":u="#af4f4c",i="#af4f4c",s="Сервис LLM недоступен";break}return l.$$set=a=>{"status"in a&&t(3,n=a.status)},[u,i,s,n]}class wl extends Te{constructor(e){super(),Pe(this,e,Rl,Pl,ye,{status:3})}}function Bl(l){let e,t,n,u,i;return{c(){e=w("div"),t=He("svg"),n=He("circle"),u=Q(),i=Fe(l[2]),this.h()},l(s){e=B(s,"DIV",{class:!0});var a=A(e);t=Ke(a,"svg",{class:!0,viewBox:!0,xmlns:!0});var r=A(t);n=Ke(r,"circle",{cx:!0,cy:!0,r:!0,fill:!0,style:!0}),A(n).forEach(_),r.forEach(_),u=Z(a),i=Ae(a,l[2]),a.forEach(_),this.h()},h(){d(n,"cx","10"),d(n,"cy","10"),d(n,"r","5"),d(n,"fill",l[0]),et(n,"filter","drop-shadow(0 0 1px "+l[1]+")"),d(t,"class","dot svelte-1wcf73j"),d(t,"viewBox","0 0 20 20"),d(t,"xmlns","http://www.w3.org/2000/svg"),d(e,"class","llm-health-status svelte-1wcf73j")},m(s,a){N(s,e,a),T(e,t),T(t,n),T(e,u),T(e,i)},p(s,[a]){a&1&&d(n,"fill",s[0]),a&2&&et(n,"filter","drop-shadow(0 0 1px "+s[1]+")"),a&4&&st(i,s[2])},i:ae,o:ae,d(s){s&&_(e)}}}function Il(l,e,t){let{status:n="unavailable"}=e,u="",i="",s="";switch(n){case"ok":u="#4CAF50",i="rgba(0, 128, 0, 0.7)",s="Поиск работает";break;case"unavailable":u="#af4f4c",i="#af4f4c",s="Поиск не запущен";break;case"unknown":u="#af4f4c",i="#af4f4c",s="Поиск недоступен";break}return l.$$set=a=>{"status"in a&&t(3,n=a.status)},[u,i,s,n]}class Fl extends Te{constructor(e){super(),Pe(this,e,Il,Bl,ye,{status:3})}}function Al(l){let e,t,n,u,i,s="Сохранить",a,r,o="Сбросить",f,c;return{c(){e=w("div"),t=w("div"),n=w("textarea"),u=Q(),i=w("button"),i.textContent=s,a=Q(),r=w("button"),r.textContent=o,this.h()},l(m){e=B(m,"DIV",{class:!0});var h=A(e);t=B(h,"DIV",{class:!0});var k=A(t);n=B(k,"TEXTAREA",{class:!0}),A(n).forEach(_),u=Z(k),i=B(k,"BUTTON",{class:!0,"data-svelte-h":!0}),Ce(i)!=="svelte-g0hhac"&&(i.textContent=s),a=Z(k),r=B(k,"BUTTON",{class:!0,"data-svelte-h":!0}),Ce(r)!=="svelte-16kemh0"&&(r.textContent=o),k.forEach(_),h.forEach(_),this.h()},h(){d(n,"class","svelte-sfudwy"),d(i,"class","svelte-sfudwy"),d(r,"class","svelte-sfudwy"),d(t,"class","popup svelte-sfudwy"),d(e,"class","modal svelte-sfudwy")},m(m,h){N(m,e,h),T(e,t),T(t,n),it(n,l[0]),T(t,u),T(t,i),T(t,a),T(t,r),f||(c=[Y(n,"input",l[6]),Y(i,"click",l[1]),Y(r,"click",l[2])],f=!0)},p(m,[h]){h&1&&it(n,m[0])},i:ae,o:ae,d(m){m&&_(e),f=!1,$e(c)}}}let Ol='Ты бухгалтер. Ты отвечаешь на русском языке. Ты всегда следуешь моим инструкциям. Ты отвечаешь на вопросы клиентов. Чтобы ответить, ты обязательно используешь только "источники", которые я тебе предоставляю. Ты используешь только официально-деловой стиль и необходимую терминологию. Соблюдай этические нормы. При ответе на вопрос ты используешь только такой формат ответа: 1) Четкий и краткий ответ на поставленный вопрос. Ты можешь начать свой ответ так: "По Вашему вопросу сообщаем...". Используй по возможности слова: да, можно, нет, нельзя. 2) Обоснование (ты используешь для обоснования "источники". Ты используешь только "источники" для поиска необходимых "законов", "статей", "пунктов" и "подпунктов" для ответа на вопрос пользователя). 3) Аргументация (Ты используешь только "источники" для поиска необходимых "писем" и "судебных решений", чтобы аргументировать свой ответ)." 4) Заключение (ты подводишь итоги всего, что сказал выше. Избегай повторения и сложных конструкций). Если в источниках нельзя найти подходящую информацию для ответа, ты отвечаешь так: "Мы не можем ответить на данный вопрос. Обратитесь к специалисту." Вопрос: {{ВОПРОС}} Источники: {{ИСТОЧНИКИ}}';function Ml(l,e,t){let{onSave:n}=e,{onClose:u}=e,{text:i=""}=e,s=i;function a(){n(s),u()}function r(){t(0,s=Ol)}function o(){s=this.value,t(0,s)}return l.$$set=f=>{"onSave"in f&&t(3,n=f.onSave),"onClose"in f&&t(4,u=f.onClose),"text"in f&&t(5,i=f.text)},[s,a,r,n,u,i,o]}class Ll extends Te{constructor(e){super(),Pe(this,e,Ml,Al,ye,{onSave:3,onClose:4,text:5})}}const Nl="drawerStore";function Vl(){const l=jl();return re(Nl,l)}function jl(){const{subscribe:l,set:e,update:t}=ut({});return{subscribe:l,set:e,update:t,open:n=>t(()=>({open:!0,...n})),close:()=>t(n=>(n.open=!1,n))}}const Ul="modalStore";function Wl(){const l=ql();return re(Ul,l)}function ql(){const{subscribe:l,set:e,update:t}=ut([]);return{subscribe:l,set:e,update:t,trigger:n=>t(u=>(u.push(n),u)),close:()=>t(n=>(n.length>0&&n.shift(),n)),clear:()=>e([])}}const Hl={message:"Missing Toast Message",autohide:!0,timeout:5e3},Ln="toastStore";function Nn(){const l=de(Ln);if(!l)throw new Error("toastStore is not initialized. Please ensure that `initializeStores()` is invoked in the root layout file of this app!");return l}function Kl(){const l=Xl();return re(Ln,l)}function Gl(){const l=Math.random();return Number(l).toString(32)}function Xl(){const{subscribe:l,set:e,update:t}=ut([]),n=i=>t(s=>{if(s.length>0){const a=s.findIndex(o=>o.id===i),r=s[a];r&&(r.callback&&r.callback({id:i,status:"closed"}),r.timeoutId&&clearTimeout(r.timeoutId),s.splice(a,1))}return s});function u(i){if(i.autohide===!0)return setTimeout(()=>{n(i.id)},i.timeout)}return{subscribe:l,close:n,trigger:i=>{const s=Gl();return t(a=>{i&&i.callback&&i.callback({id:s,status:"queued"}),i.hideDismiss&&(i.autohide=!0);const r={...Hl,...i,id:s};return r.timeoutId=u(r),a.push(r),a}),s},freeze:i=>t(s=>(s.length>0&&clearTimeout(s[i].timeoutId),s)),unfreeze:i=>t(s=>(s.length>0&&(s[i].timeoutId=u(s[i])),s)),clear:()=>e([])}}function Yl(){Wl(),Kl(),Vl()}const yt={};function Vt(l){return l==="local"?localStorage:sessionStorage}function Pt(l,e,t){const n=t?.serializer??JSON,u=t?.storage??"local";function i(s,a){Vt(u).setItem(s,n.stringify(a))}if(!yt[l]){const s=ut(e,o=>{const f=Vt(u).getItem(l);f&&o(n.parse(f));{const c=m=>{m.key===l&&o(m.newValue?n.parse(m.newValue):null)};return window.addEventListener("storage",c),()=>window.removeEventListener("storage",c)}}),{subscribe:a,set:r}=s;yt[l]={set(o){i(l,o),r(o)},update(o){const f=o($n(s));i(l,f),r(f)},subscribe:a}}return yt[l]}Pt("modeOsPrefers",!1);Pt("modeUserPrefers",void 0);Pt("modeCurrent",!1);const Vn="(prefers-reduced-motion: reduce)";function Jl(){return window.matchMedia(Vn).matches}const jn=rl(Jl(),l=>{{const e=n=>{l(n.matches)},t=window.matchMedia(Vn);return t.addEventListener("change",e),()=>{t.removeEventListener("change",e)}}});function Rt(l){const e=l-1;return e*e*e+1}function jt(l,{delay:e=0,duration:t=400,easing:n=Rt,x:u=0,y:i=0,opacity:s=0}={}){const a=getComputedStyle(l),r=+a.opacity,o=a.transform==="none"?"":a.transform,f=r*(1-s),[c,m]=Ft(u),[h,k]=Ft(i);return{delay:e,duration:t,easing:n,css:(g,v)=>` + transform: ${o} translate(${(1-g)*c}${m}, ${(1-g)*h}${k}); + opacity: ${r-f*v}`}}function Ut(l,{delay:e=0,duration:t=400,easing:n=Rt,axis:u="y"}={}){const i=getComputedStyle(l),s=+i.opacity,a=u==="y"?"height":"width",r=parseFloat(i[a]),o=u==="y"?["top","bottom"]:["left","right"],f=o.map(C=>`${C[0].toUpperCase()}${C.slice(1)}`),c=parseFloat(i[`padding${f[0]}`]),m=parseFloat(i[`padding${f[1]}`]),h=parseFloat(i[`margin${f[0]}`]),k=parseFloat(i[`margin${f[1]}`]),g=parseFloat(i[`border${f[0]}Width`]),v=parseFloat(i[`border${f[1]}Width`]);return{delay:e,duration:t,easing:n,css:C=>`overflow: hidden;opacity: ${Math.min(C*20,1)*s};${a}: ${C*r}px;padding-${o[0]}: ${C*c}px;padding-${o[1]}: ${C*m}px;margin-${o[0]}: ${C*h}px;margin-${o[1]}: ${C*k}px;border-${o[0]}-width: ${C*g}px;border-${o[1]}-width: ${C*v}px;`}}function Ql(l){let e,t,n;const u=l[19].default,i=Ge(u,l,l[18],null);return{c(){e=w("div"),i&&i.c(),this.h()},l(s){e=B(s,"DIV",{class:!0,"data-testid":!0});var a=A(e);i&&i.l(a),a.forEach(_),this.h()},h(){d(e,"class",t="accordion "+l[0]),d(e,"data-testid","accordion")},m(s,a){N(s,e,a),i&&i.m(e,null),n=!0},p(s,[a]){i&&i.p&&(!n||a&262144)&&Xe(i,u,s,s[18],n?Je(u,s[18],a,null):Ye(s[18]),null),(!n||a&1&&t!==(t="accordion "+s[0]))&&d(e,"class",t)},i(s){n||(F(i,s),n=!0)},o(s){U(i,s),n=!1},d(s){s&&_(e),i&&i.d(s)}}}function Zl(l,e,t){let n,u;tt(l,jn,z=>t(20,u=z));let{$$slots:i={},$$scope:s}=e,{autocollapse:a=!1}=e,{width:r="w-full"}=e,{spacing:o="space-y-1"}=e,{disabled:f=!1}=e,{padding:c="py-2 px-4"}=e,{hover:m="hover:bg-primary-hover-token"}=e,{rounded:h="rounded-container-token"}=e,{caretOpen:k="rotate-180"}=e,{caretClosed:g=""}=e,{regionControl:v=""}=e,{regionPanel:C="space-y-4"}=e,{regionCaret:y=""}=e,{transitions:p=!u}=e,{transitionIn:R=Ut}=e,{transitionInParams:M={duration:200}}=e,{transitionOut:E=Ut}=e,{transitionOutParams:b={duration:200}}=e;const D=ut(null);return re("active",D),re("autocollapse",a),re("disabled",f),re("padding",c),re("hover",m),re("rounded",h),re("caretOpen",k),re("caretClosed",g),re("regionControl",v),re("regionPanel",C),re("regionCaret",y),re("transitions",p),re("transitionIn",R),re("transitionInParams",M),re("transitionOut",E),re("transitionOutParams",b),l.$$set=z=>{t(22,e=Ie(Ie({},e),We(z))),"autocollapse"in z&&t(1,a=z.autocollapse),"width"in z&&t(2,r=z.width),"spacing"in z&&t(3,o=z.spacing),"disabled"in z&&t(4,f=z.disabled),"padding"in z&&t(5,c=z.padding),"hover"in z&&t(6,m=z.hover),"rounded"in z&&t(7,h=z.rounded),"caretOpen"in z&&t(8,k=z.caretOpen),"caretClosed"in z&&t(9,g=z.caretClosed),"regionControl"in z&&t(10,v=z.regionControl),"regionPanel"in z&&t(11,C=z.regionPanel),"regionCaret"in z&&t(12,y=z.regionCaret),"transitions"in z&&t(13,p=z.transitions),"transitionIn"in z&&t(14,R=z.transitionIn),"transitionInParams"in z&&t(15,M=z.transitionInParams),"transitionOut"in z&&t(16,E=z.transitionOut),"transitionOutParams"in z&&t(17,b=z.transitionOutParams),"$$scope"in z&&t(18,s=z.$$scope)},l.$$.update=()=>{t(0,n=`${r} ${o} ${e.class??""}`)},e=We(e),[n,a,r,o,f,c,m,h,k,g,v,C,y,p,R,M,E,b,s,i]}class xl extends Te{constructor(e){super(),Pe(this,e,Zl,Ql,ye,{autocollapse:1,width:2,spacing:3,disabled:4,padding:5,hover:6,rounded:7,caretOpen:8,caretClosed:9,regionControl:10,regionPanel:11,regionCaret:12,transitions:13,transitionIn:14,transitionInParams:15,transitionOut:16,transitionOutParams:17})}}function pt(l,e){const{transition:t,params:n,enabled:u}=e;return u?t(l,n):"duration"in n?t(l,{duration:0}):{duration:0}}const $l=l=>({}),Wt=l=>({}),eu=l=>({}),qt=l=>({}),tu=l=>({}),Ht=l=>({}),nu=l=>({}),Kt=l=>({}),lu=l=>({}),Gt=l=>({});function Xt(l){let e,t;const n=l[30].lead,u=Ge(n,l,l[29],Gt);return{c(){e=w("div"),u&&u.c(),this.h()},l(i){e=B(i,"DIV",{class:!0});var s=A(e);u&&u.l(s),s.forEach(_),this.h()},h(){d(e,"class","accordion-lead")},m(i,s){N(i,e,s),u&&u.m(e,null),t=!0},p(i,s){u&&u.p&&(!t||s[0]&536870912)&&Xe(u,n,i,i[29],t?Je(n,i[29],s,lu):Ye(i[29]),Gt)},i(i){t||(F(u,i),t=!0)},o(i){U(u,i),t=!1},d(i){i&&_(e),u&&u.d(i)}}}function uu(l){let e;return{c(){e=Fe("(summary)")},l(t){e=Ae(t,"(summary)")},m(t,n){N(t,e,n)},d(t){t&&_(e)}}}function iu(l){let e,t,n;return{c(){e=w("div"),t=new ot(!1),this.h()},l(u){e=B(u,"DIV",{class:!0});var i=A(e);t=ct(i,!1),i.forEach(_),this.h()},h(){t.a=null,d(e,"class",n="accordion-summary-caret "+l[11])},m(u,i){N(u,e,i),t.m(l[14],e)},p(u,i){i[0]&2048&&n!==(n="accordion-summary-caret "+u[11])&&d(e,"class",n)},i:ae,o:ae,d(u){u&&_(e)}}}function su(l){let e,t,n,u,i;const s=[ru,au],a=[];function r(o,f){return o[8]?0:1}return t=r(l),n=a[t]=s[t](l),{c(){e=w("div"),n.c(),this.h()},l(o){e=B(o,"DIV",{class:!0});var f=A(e);n.l(f),f.forEach(_),this.h()},h(){d(e,"class",u="accordion-summary-icons "+l[10])},m(o,f){N(o,e,f),a[t].m(e,null),i=!0},p(o,f){let c=t;t=r(o),t===c?a[t].p(o,f):(Ee(),U(a[c],1,1,()=>{a[c]=null}),Se(),n=a[t],n?n.p(o,f):(n=a[t]=s[t](o),n.c()),F(n,1),n.m(e,null)),(!i||f[0]&1024&&u!==(u="accordion-summary-icons "+o[10]))&&d(e,"class",u)},i(o){i||(F(n),i=!0)},o(o){U(n),i=!1},d(o){o&&_(e),a[t].d()}}}function au(l){let e;const t=l[30].iconOpen,n=Ge(t,l,l[29],qt),u=n||ou(l);return{c(){u&&u.c()},l(i){u&&u.l(i)},m(i,s){u&&u.m(i,s),e=!0},p(i,s){n&&n.p&&(!e||s[0]&536870912)&&Xe(n,t,i,i[29],e?Je(t,i[29],s,eu):Ye(i[29]),qt)},i(i){e||(F(u,i),e=!0)},o(i){U(u,i),e=!1},d(i){u&&u.d(i)}}}function ru(l){let e;const t=l[30].iconClosed,n=Ge(t,l,l[29],Ht),u=n||cu(l);return{c(){u&&u.c()},l(i){u&&u.l(i)},m(i,s){u&&u.m(i,s),e=!0},p(i,s){n&&n.p&&(!e||s[0]&536870912)&&Xe(n,t,i,i[29],e?Je(t,i[29],s,tu):Ye(i[29]),Ht)},i(i){e||(F(u,i),e=!0)},o(i){U(u,i),e=!1},d(i){u&&u.d(i)}}}function ou(l){let e,t;return{c(){e=new ot(!1),t=ke(),this.h()},l(n){e=ct(n,!1),t=ke(),this.h()},h(){e.a=t},m(n,u){e.m(l[14],n,u),N(n,t,u)},p:ae,d(n){n&&(_(t),e.d())}}}function cu(l){let e,t;return{c(){e=new ot(!1),t=ke(),this.h()},l(n){e=ct(n,!1),t=ke(),this.h()},h(){e.a=t},m(n,u){e.m(l[14],n,u),N(n,t,u)},p:ae,d(n){n&&(_(t),e.d())}}}function Yt(l){let e,t,n,u,i,s,a;const r=l[30].content,o=Ge(r,l,l[29],Wt),f=o||fu();return{c(){e=w("div"),f&&f.c(),this.h()},l(c){e=B(c,"DIV",{class:!0,id:!0,role:!0,"aria-hidden":!0,"aria-labelledby":!0});var m=A(e);f&&f.l(m),m.forEach(_),this.h()},h(){d(e,"class",t="accordion-panel "+l[9]),d(e,"id",n="accordion-panel-"+l[0]),d(e,"role","region"),d(e,"aria-hidden",u=!l[8]),d(e,"aria-labelledby",l[0])},m(c,m){N(c,e,m),f&&f.m(e,null),a=!0},p(c,m){l=c,o&&o.p&&(!a||m[0]&536870912)&&Xe(o,r,l,l[29],a?Je(r,l[29],m,$l):Ye(l[29]),Wt),(!a||m[0]&512&&t!==(t="accordion-panel "+l[9]))&&d(e,"class",t),(!a||m[0]&1&&n!==(n="accordion-panel-"+l[0]))&&d(e,"id",n),(!a||m[0]&256&&u!==(u=!l[8]))&&d(e,"aria-hidden",u),(!a||m[0]&1)&&d(e,"aria-labelledby",l[0])},i(c){a||(F(f,c),c&&Rn(()=>{a&&(s&&s.end(1),i=wn(e,pt,{transition:l[4],params:l[5],enabled:l[3]}),i.start())}),a=!0)},o(c){U(f,c),i&&i.invalidate(),c&&(s=Bn(e,pt,{transition:l[6],params:l[7],enabled:l[3]})),a=!1},d(c){c&&_(e),f&&f.d(c),c&&s&&s.end()}}}function fu(l){let e;return{c(){e=Fe("(content)")},l(t){e=Ae(t,"(content)")},m(t,n){N(t,e,n)},d(t){t&&_(e)}}}function du(l){let e,t,n,u,i,s,a,r,o,f,c,m,h,k,g=l[16].lead&&Xt(l);const v=l[30].summary,C=Ge(v,l,l[29],Kt),y=C||uu(),p=[su,iu],R=[];function M(b,D){return b[16].iconClosed||b[16].iconOpen?0:1}s=M(l),a=R[s]=p[s](l);let E=l[8]&&Yt(l);return{c(){e=w("div"),t=w("button"),g&&g.c(),n=Q(),u=w("div"),y&&y.c(),i=Q(),a.c(),f=Q(),E&&E.c(),this.h()},l(b){e=B(b,"DIV",{class:!0,"data-testid":!0});var D=A(e);t=B(D,"BUTTON",{type:!0,class:!0,id:!0,"aria-expanded":!0,"aria-controls":!0});var z=A(t);g&&g.l(z),n=Z(z),u=B(z,"DIV",{class:!0});var $=A(u);y&&y.l($),$.forEach(_),i=Z(z),a.l(z),z.forEach(_),f=Z(D),E&&E.l(D),D.forEach(_),this.h()},h(){d(u,"class","accordion-summary flex-1"),d(t,"type","button"),d(t,"class",r="accordion-control "+l[12]),d(t,"id",l[0]),d(t,"aria-expanded",l[8]),d(t,"aria-controls",o="accordion-panel-"+l[0]),t.disabled=l[2],d(e,"class",c="accordion-item "+l[13]),d(e,"data-testid","accordion-item")},m(b,D){N(b,e,D),T(e,t),g&&g.m(t,null),T(t,n),T(t,u),y&&y.m(u,null),T(t,i),R[s].m(t,null),T(e,f),E&&E.m(e,null),m=!0,h||(k=[Y(t,"click",l[15]),Y(t,"click",l[31]),Y(t,"keydown",l[32]),Y(t,"keyup",l[33]),Y(t,"keypress",l[34])],h=!0)},p(b,D){b[16].lead?g?(g.p(b,D),D[0]&65536&&F(g,1)):(g=Xt(b),g.c(),F(g,1),g.m(t,n)):g&&(Ee(),U(g,1,1,()=>{g=null}),Se()),C&&C.p&&(!m||D[0]&536870912)&&Xe(C,v,b,b[29],m?Je(v,b[29],D,nu):Ye(b[29]),Kt);let z=s;s=M(b),s===z?R[s].p(b,D):(Ee(),U(R[z],1,1,()=>{R[z]=null}),Se(),a=R[s],a?a.p(b,D):(a=R[s]=p[s](b),a.c()),F(a,1),a.m(t,null)),(!m||D[0]&4096&&r!==(r="accordion-control "+b[12]))&&d(t,"class",r),(!m||D[0]&1)&&d(t,"id",b[0]),(!m||D[0]&256)&&d(t,"aria-expanded",b[8]),(!m||D[0]&1&&o!==(o="accordion-panel-"+b[0]))&&d(t,"aria-controls",o),(!m||D[0]&4)&&(t.disabled=b[2]),b[8]?E?(E.p(b,D),D[0]&256&&F(E,1)):(E=Yt(b),E.c(),F(E,1),E.m(e,null)):E&&(Ee(),U(E,1,1,()=>{E=null}),Se()),(!m||D[0]&8192&&c!==(c="accordion-item "+b[13]))&&d(e,"class",c)},i(b){m||(F(g),F(y,b),F(a),F(E),m=!0)},o(b){U(g),U(y,b),U(a),U(E),m=!1},d(b){b&&_(e),g&&g.d(),y&&y.d(b),R[s].d(),E&&E.d(),h=!1,$e(k)}}}const hu="",mu="text-start w-full flex items-center space-x-4",Jt="fill-current w-3 transition-transform duration-[200ms]",gu="";function _u(l,e,t){let n,u,i,s,a,r,o,f,c=ae,m=()=>(c(),c=el(R,j=>t(28,f=j)),R);l.$$.on_destroy.push(()=>c());let{$$slots:h={},$$scope:k}=e;const g=Pn(h),v=zt();let{open:C=!1}=e,{id:y=String(Math.random())}=e,{autocollapse:p=de("autocollapse")}=e,{active:R=de("active")}=e;m();let{disabled:M=de("disabled")}=e,{padding:E=de("padding")}=e,{hover:b=de("hover")}=e,{rounded:D=de("rounded")}=e,{caretOpen:z=de("caretOpen")}=e,{caretClosed:$=de("caretClosed")}=e,{regionControl:I=de("regionControl")}=e,{regionPanel:ne=de("regionPanel")}=e,{regionCaret:ue=de("regionCaret")}=e,{transitions:te=de("transitions")}=e,{transitionIn:H=de("transitionIn")}=e,{transitionInParams:le=de("transitionInParams")}=e,{transitionOut:Re=de("transitionOut")}=e,{transitionOutParams:De=de("transitionOutParams")}=e;const L=` + + + `;function se(j){p===!0?R.set(y):t(17,C=!C),V(j)}function V(j){const we=p?f===y:C;v("toggle",{event:j,id:y,panelId:`accordion-panel-${y}`,open:we,autocollapse:p})}p&&C&&se();function P(j){pe.call(this,l,j)}function oe(j){pe.call(this,l,j)}function X(j){pe.call(this,l,j)}function ie(j){pe.call(this,l,j)}return l.$$set=j=>{t(37,e=Ie(Ie({},e),We(j))),"open"in j&&t(17,C=j.open),"id"in j&&t(0,y=j.id),"autocollapse"in j&&t(18,p=j.autocollapse),"active"in j&&m(t(1,R=j.active)),"disabled"in j&&t(2,M=j.disabled),"padding"in j&&t(19,E=j.padding),"hover"in j&&t(20,b=j.hover),"rounded"in j&&t(21,D=j.rounded),"caretOpen"in j&&t(22,z=j.caretOpen),"caretClosed"in j&&t(23,$=j.caretClosed),"regionControl"in j&&t(24,I=j.regionControl),"regionPanel"in j&&t(25,ne=j.regionPanel),"regionCaret"in j&&t(26,ue=j.regionCaret),"transitions"in j&&t(3,te=j.transitions),"transitionIn"in j&&t(4,H=j.transitionIn),"transitionInParams"in j&&t(5,le=j.transitionInParams),"transitionOut"in j&&t(6,Re=j.transitionOut),"transitionOutParams"in j&&t(7,De=j.transitionOutParams),"$$scope"in j&&t(29,k=j.$$scope)},l.$$.update=()=>{l.$$.dirty[0]&393216&&C&&p&&se(),l.$$.dirty[0]&268828673&&t(8,n=p?f===y:C),t(13,u=`${hu} ${e.class??""}`),l.$$.dirty[0]&20447232&&t(12,i=`${mu} ${E} ${b} ${D} ${I}`),l.$$.dirty[0]&12583168&&t(27,s=n?z:$),l.$$.dirty[0]&201326592&&t(11,a=`${Jt} ${ue} ${s}`),l.$$.dirty[0]&67108864&&t(10,r=`${Jt} ${ue}`),l.$$.dirty[0]&36175872&&t(9,o=`${gu} ${E} ${D} ${ne}`)},e=We(e),[y,R,M,te,H,le,Re,De,n,o,r,a,i,u,L,se,g,C,p,E,b,D,z,$,I,ne,ue,s,f,k,h,P,oe,X,ie]}class bu extends Te{constructor(e){super(),Pe(this,e,_u,du,ye,{open:17,id:0,autocollapse:18,active:1,disabled:2,padding:19,hover:20,rounded:21,caretOpen:22,caretClosed:23,regionControl:24,regionPanel:25,regionCaret:26,transitions:3,transitionIn:4,transitionInParams:5,transitionOut:6,transitionOutParams:7},null,[-1,-1])}}function vu(l,{from:e,to:t},n={}){const u=getComputedStyle(l),i=u.transform==="none"?"":u.transform,[s,a]=u.transformOrigin.split(" ").map(parseFloat),r=e.left+e.width*s/t.width-(t.left+s),o=e.top+e.height*a/t.height-(t.top+a),{delay:f=0,duration:c=h=>Math.sqrt(h)*120,easing:m=Rt}=n;return{delay:f,duration:tl(c)?c(Math.sqrt(r*r+o*o)):c,easing:m,css:(h,k)=>{const g=k*r,v=k*o,C=h+k*e.width/t.width,y=h+k*e.height/t.height;return`transform: ${i} translate(${g}px, ${v}px) scale(${C}, ${y});`}}}function ku(l){let e,t,n;const u=l[15].default,i=Ge(u,l,l[14],null);return{c(){e=w("div"),i&&i.c(),this.h()},l(s){e=B(s,"DIV",{class:!0,"data-testid":!0,role:!0,"aria-labelledby":!0});var a=A(e);i&&i.l(a),a.forEach(_),this.h()},h(){d(e,"class",t="radio-group "+l[1]),d(e,"data-testid","radio-group"),d(e,"role","radiogroup"),d(e,"aria-labelledby",l[0])},m(s,a){N(s,e,a),i&&i.m(e,null),n=!0},p(s,[a]){i&&i.p&&(!n||a&16384)&&Xe(i,u,s,s[14],n?Je(u,s[14],a,null):Ye(s[14]),null),(!n||a&2&&t!==(t="radio-group "+s[1]))&&d(e,"class",t),(!n||a&1)&&d(e,"aria-labelledby",s[0])},i(s){n||(F(i,s),n=!0)},o(s){U(i,s),n=!1},d(s){s&&_(e),i&&i.d(s)}}}const pu="p-1";function Eu(l,e,t){let n,{$$slots:u={},$$scope:i}=e,{display:s="inline-flex"}=e,{flexDirection:a="flex-row"}=e,{gap:r="gap-1"}=e,{background:o="bg-surface-200-700-token"}=e,{border:f="border-token border-surface-400-500-token"}=e,{rounded:c="rounded-token"}=e,{padding:m="px-4 py-1"}=e,{active:h="variant-filled"}=e,{hover:k="hover:variant-soft"}=e,{color:g=""}=e,{fill:v=""}=e,{regionLabel:C=""}=e,{labelledby:y=""}=e;return re("rounded",c),re("padding",m),re("active",h),re("hover",k),re("color",g),re("fill",v),re("regionLabel",C),l.$$set=p=>{t(16,e=Ie(Ie({},e),We(p))),"display"in p&&t(2,s=p.display),"flexDirection"in p&&t(3,a=p.flexDirection),"gap"in p&&t(4,r=p.gap),"background"in p&&t(5,o=p.background),"border"in p&&t(6,f=p.border),"rounded"in p&&t(7,c=p.rounded),"padding"in p&&t(8,m=p.padding),"active"in p&&t(9,h=p.active),"hover"in p&&t(10,k=p.hover),"color"in p&&t(11,g=p.color),"fill"in p&&t(12,v=p.fill),"regionLabel"in p&&t(13,C=p.regionLabel),"labelledby"in p&&t(0,y=p.labelledby),"$$scope"in p&&t(14,i=p.$$scope)},l.$$.update=()=>{t(1,n=`${pu} ${s} ${a} ${r} ${o} ${f} ${c} ${e.class??""}`)},e=We(e),[y,n,s,a,r,o,f,c,m,h,k,g,v,C,i,u]}class Su extends Te{constructor(e){super(),Pe(this,e,Eu,ku,ye,{display:2,flexDirection:3,gap:4,background:5,border:6,rounded:7,padding:8,active:9,hover:10,color:11,fill:12,regionLabel:13,labelledby:0})}}function yu(l){let e,t,n,u,i,s,a,r,o,f,c,m=[{type:"radio"},{name:l[1]},{__value:l[2]},l[11](),{tabindex:"-1"}],h={};for(let v=0;v{D=L,t(7,D)})}function De(){m=this.__value,t(0,m)}return l.$$set=L=>{t(31,e=Ie(Ie({},e),We(L))),t(30,o=kt(e,r)),"group"in L&&t(0,m=L.group),"name"in L&&t(1,h=L.name),"value"in L&&t(2,k=L.value),"title"in L&&t(3,g=L.title),"label"in L&&t(4,v=L.label),"rounded"in L&&t(12,C=L.rounded),"padding"in L&&t(13,y=L.padding),"active"in L&&t(14,p=L.active),"hover"in L&&t(15,R=L.hover),"color"in L&&t(16,M=L.color),"fill"in L&&t(17,E=L.fill),"regionLabel"in L&&t(5,b=L.regionLabel),"$$scope"in L&&t(20,c=L.$$scope)},l.$$.update=()=>{l.$$.dirty[0]&5&&t(6,n=k===m),l.$$.dirty[0]&245824&&t(19,u=n?`${p} ${M} ${E}`:R),t(18,i=e.disabled?zu:""),t(8,a=`${Du} ${y} ${C} ${u} ${i} ${e.class??""}`)},t(9,s=`${Cu}`),e=We(e),[m,h,k,g,v,b,n,D,a,s,z,$,C,y,p,R,M,E,i,u,c,f,ne,ue,te,H,le,Re,De,I]}class Qt extends Te{constructor(e){super(),Pe(this,e,Tu,yu,ye,{group:0,name:1,value:2,title:3,label:4,rounded:12,padding:13,active:14,hover:15,color:16,fill:17,regionLabel:5},null,[-1,-1])}}function Zt(l){let e,t;const n=l[22].default,u=Ge(n,l,l[21],null);return{c(){e=w("div"),u&&u.c(),this.h()},l(i){e=B(i,"DIV",{class:!0});var s=A(e);u&&u.l(s),s.forEach(_),this.h()},h(){d(e,"class","slide-toggle-text ml-3")},m(i,s){N(i,e,s),u&&u.m(e,null),t=!0},p(i,s){u&&u.p&&(!t||s[0]&2097152)&&Xe(u,n,i,i[21],t?Je(n,i[21],s,null):Ye(i[21]),null)},i(i){t||(F(u,i),t=!0)},o(i){U(u,i),t=!1},d(i){i&&_(e),u&&u.d(i)}}}function Pu(l){let e,t,n,u,i,s,a,r,o,f,c,m,h,k,g,v=[{type:"checkbox"},{class:"slide-toggle-input hidden"},{name:l[1]},l[8](),{disabled:u=l[9].disabled}],C={};for(let p=0;p{y=null}),Se()),(!h||R[0]&32&&c!==(c="slide-toggle-label "+p[5]))&&d(t,"class",c),(!h||R[0]&4)&&d(e,"id",p[2]),(!h||R[0]&64&&m!==(m="slide-toggle "+p[6]))&&d(e,"class",m),(!h||R[0]&4)&&d(e,"aria-label",p[2]),(!h||R[0]&1)&&d(e,"aria-checked",p[0])},i(p){h||(F(y),h=!0)},o(p){U(y),h=!1},d(p){p&&_(e),y&&y.d(),k=!1,$e(g)}}}const Ru="inline-block",wu="unstyled flex items-center",Bu="flex transition-all duration-[200ms] cursor-pointer",Iu="w-[50%] h-full scale-[0.8] transition-all duration-[200ms] shadow";function Fu(l,e,t){let n,u,i,s,a,r,o,f;const c=["name","checked","size","background","active","border","rounded","label"];let m=kt(e,c),{$$slots:h={},$$scope:k}=e;const g=Pn(h),v=zt();let{name:C}=e,{checked:y=!1}=e,{size:p="md"}=e,{background:R="bg-surface-400 dark:bg-surface-700"}=e,{active:M="bg-surface-900 dark:bg-surface-300"}=e,{border:E=""}=e,{rounded:b="rounded-full"}=e,{label:D=""}=e,z;switch(p){case"sm":z="w-12 h-6";break;case"lg":z="w-20 h-10";break;default:z="w-16 h-8"}function $(V){["Enter","Space"].includes(V.code)&&(V.preventDefault(),v("keyup",V),V.currentTarget.firstChild.click())}function I(){return delete m.class,m}function ne(V){pe.call(this,l,V)}function ue(V){pe.call(this,l,V)}function te(V){pe.call(this,l,V)}function H(V){pe.call(this,l,V)}function le(V){pe.call(this,l,V)}function Re(V){pe.call(this,l,V)}function De(V){pe.call(this,l,V)}function L(V){pe.call(this,l,V)}function se(){y=this.checked,t(0,y)}return l.$$set=V=>{t(9,e=Ie(Ie({},e),We(V))),t(33,m=kt(e,c)),"name"in V&&t(1,C=V.name),"checked"in V&&t(0,y=V.checked),"size"in V&&t(11,p=V.size),"background"in V&&t(12,R=V.background),"active"in V&&t(13,M=V.active),"border"in V&&t(14,E=V.border),"rounded"in V&&t(15,b=V.rounded),"label"in V&&t(2,D=V.label),"$$scope"in V&&t(21,k=V.$$scope)},l.$$.update=()=>{l.$$.dirty[0]&12289&&t(19,n=y?M:`${R} cursor-pointer`),l.$$.dirty[0]&1&&t(18,u=y?"bg-white/75":"bg-white"),l.$$.dirty[0]&1&&t(17,i=y?"translate-x-full":""),t(20,s=e.disabled===!0?"opacity-50":"hover:brightness-[105%] dark:hover:brightness-110 cursor-pointer"),t(6,a=`${Ru} ${b} ${s} ${e.class??""}`),l.$$.dirty[0]&638976&&t(4,o=`${Bu} ${E} ${b} ${z} ${n}`),l.$$.dirty[0]&425984&&t(3,f=`${Iu} ${b} ${u} ${i}`)},t(5,r=`${wu}`),e=We(e),[y,C,D,f,o,r,a,$,I,e,g,p,R,M,E,b,z,i,u,n,s,k,h,ne,ue,te,H,le,Re,De,L,se]}class Un extends Te{constructor(e){super(),Pe(this,e,Fu,Pu,ye,{name:1,checked:0,size:11,background:12,active:13,border:14,rounded:15,label:2},null,[-1,-1])}}function xt(l,e,t){const n=l.slice();return n[36]=e[t],n[38]=t,n}function $t(l){let e,t,n=[],u=new Map,i,s,a,r=xe(l[11]);const o=f=>f[36];for(let f=0;f{g&&(m&&m.end(1),c=wn(t,pt,{transition:e[5],params:{x:e[10].x,y:e[10].y,...e[6]},enabled:e[4]}),c.start())}),g=!0)},o(M){c&&c.invalidate(),m=Bn(t,pt,{transition:e[7],params:{x:e[10].x,y:e[10].y,...e[8]},enabled:e[4]}),g=!1},d(M){M&&_(t),y&&y.d(),M&&m&&m.end(),v=!1,$e(C)}}}function Au(l){let e,t,n=l[9].length&&$t(l);return{c(){n&&n.c(),e=ke()},l(u){n&&n.l(u),e=ke()},m(u,i){n&&n.m(u,i),N(u,e,i),t=!0},p(u,i){u[9].length?n?(n.p(u,i),i[0]&512&&F(n,1)):(n=$t(u),n.c(),F(n,1),n.m(e.parentNode,e)):n&&(Ee(),U(n,1,1,()=>{n=null}),Se())},i(u){t||(F(n),t=!0)},o(u){U(n),t=!1},d(u){u&&_(e),n&&n.d(u)}}}const Ou="flex fixed top-0 left-0 right-0 bottom-0 pointer-events-none",Mu="flex flex-col gap-y-2",Lu="flex justify-between items-center pointer-events-auto",Nu="flex items-center space-x-2";function Vu(l,e,t){let n,u,i,s,a,r;tt(l,jn,P=>t(34,r=P));const o=Nn();tt(l,o,P=>t(9,a=P));let{position:f="b"}=e,{max:c=3}=e,{background:m="variant-filled-secondary"}=e,{width:h="max-w-[640px]"}=e,{color:k=""}=e,{padding:g="p-4"}=e,{spacing:v="space-x-4"}=e,{rounded:C="rounded-container-token"}=e,{shadow:y="shadow-lg"}=e,{zIndex:p="z-[888]"}=e,{buttonAction:R="btn variant-filled"}=e,{buttonDismiss:M="btn-icon btn-icon-sm variant-filled"}=e,{buttonDismissLabel:E="✕"}=e,{transitions:b=!r}=e,{transitionIn:D=jt}=e,{transitionInParams:z={duration:250}}=e,{transitionOut:$=jt}=e,{transitionOutParams:I={duration:250}}=e,ne,ue,te={x:0,y:0};switch(f){case"t":ne="justify-center items-start",ue="items-center",te={x:0,y:-100};break;case"b":ne="justify-center items-end",ue="items-center",te={x:0,y:100};break;case"l":ne="justify-start items-center",ue="items-start",te={x:-100,y:0};break;case"r":ne="justify-end items-center",ue="items-end",te={x:100,y:0};break;case"tl":ne="justify-start items-start",ue="items-start",te={x:-100,y:0};break;case"tr":ne="justify-end items-start",ue="items-end",te={x:100,y:0};break;case"bl":ne="justify-start items-end",ue="items-start",te={x:-100,y:0};break;case"br":ne="justify-end items-end",ue="items-end",te={x:100,y:0};break}function H(P){a[P]?.action?.response(),o.close(a[P].id)}function le(P){a[P]?.hoverable&&(o.freeze(P),t(13,u+=" scale-[105%]"))}function Re(P){a[P]?.hoverable&&(o.unfreeze(P),t(13,u=u.replace(" scale-[105%]","")))}const De=P=>H(P),L=P=>o.close(P.id),se=P=>le(P),V=P=>Re(P);return l.$$set=P=>{t(35,e=Ie(Ie({},e),We(P))),"position"in P&&t(19,f=P.position),"max"in P&&t(20,c=P.max),"background"in P&&t(0,m=P.background),"width"in P&&t(21,h=P.width),"color"in P&&t(22,k=P.color),"padding"in P&&t(23,g=P.padding),"spacing"in P&&t(24,v=P.spacing),"rounded"in P&&t(25,C=P.rounded),"shadow"in P&&t(26,y=P.shadow),"zIndex"in P&&t(27,p=P.zIndex),"buttonAction"in P&&t(1,R=P.buttonAction),"buttonDismiss"in P&&t(2,M=P.buttonDismiss),"buttonDismissLabel"in P&&t(3,E=P.buttonDismissLabel),"transitions"in P&&t(4,b=P.transitions),"transitionIn"in P&&t(5,D=P.transitionIn),"transitionInParams"in P&&t(6,z=P.transitionInParams),"transitionOut"in P&&t(7,$=P.transitionOut),"transitionOutParams"in P&&t(8,I=P.transitionOutParams)},l.$$.update=()=>{t(14,n=`${Ou} ${ne} ${p} ${e.class||""}`),l.$$.dirty[0]&545259520&&t(13,u=`${Mu} ${ue} ${g}`),l.$$.dirty[0]&132120576&&t(12,i=`${Lu} ${h} ${k} ${g} ${v} ${C} ${y}`),l.$$.dirty[0]&1049088&&t(11,s=Array.from(a).slice(0,c))},e=We(e),[m,R,M,E,b,D,z,$,I,a,te,s,i,u,n,o,H,le,Re,f,c,h,k,g,v,C,y,p,ne,ue,De,L,se,V]}class ju extends Te{constructor(e){super(),Pe(this,e,Vu,Au,ye,{position:19,max:20,background:0,width:21,color:22,padding:23,spacing:24,rounded:25,shadow:26,zIndex:27,buttonAction:1,buttonDismiss:2,buttonDismissLabel:3,transitions:4,transitionIn:5,transitionInParams:6,transitionOut:7,transitionOutParams:8},null,[-1,-1])}}class Ve{static findDateInText(e){const t=/\b\d{1,2}\.\d{1,2}\.\d{4}\b/g,n=e.match(t);if(n&&n.length>0){const u=n[0],[i,s,a]=u.split(".").map(Number);return new Date(a,s-1,i)}return null}static sortByRelevanceAndDate(e){return e.sort((t,n)=>{const u=n.relevance-t.relevance;if(u!==0)return u;const i=Ve.findDateInText(t.title),s=Ve.findDateInText(n.title);return i&&s?s.getTime()-i.getTime():i?-1:s?1:0})}static sortByDate(e){const t=e.filter(a=>Ve.findDateInText(a.title)),n=e.filter(a=>!Ve.findDateInText(a.title)),u=t.sort((a,r)=>{const o=Ve.findDateInText(a.title),f=Ve.findDateInText(r.title);return o&&f?f.getTime()-o.getTime():o?-1:f?1:0}),i=[];let s=0;for(const a of e)if(Ve.findDateInText(a.title)){let r=u.shift();r&&i.push(r)}else i.push(n[s]),s++;return i}static sortByRelevance(e){return e.sort((t,n)=>t.relevance&&n.relevance?n.relevance-t.relevance:t.relevance?-1:n.relevance?1:0)}static identifyDocumentType(e){const t=[{regexp:/(ФАС |АС |КС |ВС |[Сс]удебн|[Сс]уд)/,docType:"Решение суда"},{regexp:/[Пп]исьмо [Мм]инфина/,docType:"Письмо Минфина"},{regexp:/[Пп]исьмо (ФНС|фнс)/,docType:"Письмо ФНС"},{regexp:/ст.(\d+\.\d+|\d+) НКРФ/,docType:"НК РФ"},{regexp:/ст.(\d+\.\d+|\d+) ТКРФ/,docType:"ТК РФ"},{regexp:/Приказ ФНС РФ/,docType:"Приказ ФНС РФ"},{regexp:/Постановление Правительства РФ/,docType:"Постановление Правительства РФ"},{regexp:/Решение Коллегии Евразийской экономической комиссии/,docType:"Решение Коллегии ЕЭК"},{regexp:/^Федеральный закон/,docType:"Федеральные законы"}];return e.map(n=>{for(const{regexp:u,docType:i}of t)if(u.test(n.title))return n.docType=i,n;return n.docType="Другие документы",n})}}function un(l,e,t){const n=l.slice();return n[10]=e[t],n}function sn(l){let e,t,n;return{c(){e=w("input"),this.h()},l(u){e=B(u,"INPUT",{type:!0}),this.h()},h(){d(e,"type","checkbox")},m(u,i){N(u,e,i),e.checked=l[1][l[3]],t||(n=Y(e,"change",l[7]),t=!0)},p(u,i){i&10&&(e.checked=u[1][u[3]])},d(u){u&&_(e),t=!1,n()}}}function Uu(l){let e,t;return{c(){e=w("div"),t=Fe(l[4]),this.h()},l(n){e=B(n,"DIV",{class:!0});var u=A(e);t=Ae(u,l[4]),u.forEach(_),this.h()},h(){d(e,"class","annotation svelte-dwjxto")},m(n,u){N(n,e,u),T(e,t)},p(n,u){u&16&&st(t,n[4])},d(n){n&&_(e)}}}function Wu(l){let e,t=xe(l[4].split(` +`)),n=[];for(let u=0;u100&&rn(l);return{c(){e=w("div"),t=w("div"),n=w("label"),r&&r.c(),u=Q(),i=Fe(l[3]),s=Q(),c.c(),a=Q(),m&&m.c(),this.h()},l(h){e=B(h,"DIV",{class:!0});var k=A(e);t=B(k,"DIV",{class:!0});var g=A(t);n=B(g,"LABEL",{style:!0});var v=A(n);r&&r.l(v),u=Z(v),i=Ae(v,l[3]),v.forEach(_),g.forEach(_),s=Z(k),c.l(k),a=Z(k),m&&m.l(k),k.forEach(_),this.h()},h(){et(n,"cursor","pointer"),d(t,"class","title svelte-dwjxto"),d(e,"class","search-result svelte-dwjxto")},m(h,k){N(h,e,k),T(e,t),T(t,n),r&&r.m(n,null),T(n,u),T(n,i),T(e,s),c.m(e,null),T(e,a),m&&m.m(e,null)},p(h,[k]){h[5]?r?r.p(h,k):(r=sn(h),r.c(),r.m(n,u)):r&&(r.d(1),r=null),k&8&&st(i,h[3]),f===(f=o(h))&&c?c.p(h,k):(c.d(1),c=f(h),c&&(c.c(),c.m(e,a))),h[4].length>100?m?m.p(h,k):(m=rn(h),m.c(),m.m(e,null)):m&&(m.d(1),m=null)},i:ae,o:ae,d(h){h&&_(e),r&&r.d(),c.d(),m&&m.d()}}}function Gu(l,e,t){let{showFullText:n=Array(10).fill(!1)}=e,{useSearchResult:u}=e,{index:i}=e,{title:s}=e,{text:a}=e,{enableSearchResultSelection:r=!1}=e;function o(h){t(0,n[h]=!n[h],n)}function f(){u[s]=this.checked,t(1,u)}const c=()=>o(i),m=()=>o(i);return l.$$set=h=>{"showFullText"in h&&t(0,n=h.showFullText),"useSearchResult"in h&&t(1,u=h.useSearchResult),"index"in h&&t(2,i=h.index),"title"in h&&t(3,s=h.title),"text"in h&&t(4,a=h.text),"enableSearchResultSelection"in h&&t(5,r=h.enableSearchResultSelection)},[n,u,i,s,a,r,o,f,c,m]}class Wn extends Te{constructor(e){super(),Pe(this,e,Gu,Ku,ye,{showFullText:0,useSearchResult:1,index:2,title:3,text:4,enableSearchResultSelection:5})}}function on(l,e,t){const n=l.slice();return n[20]=e[t].title,n[21]=e[t].text,n[23]=t,n}function cn(l,e,t){const n=l.slice();return n[16]=e[t][0],n[17]=e[t][1],n}function fn(l,e,t){const n=l.slice();return n[20]=e[t].title,n[21]=e[t].text,n[23]=t,n}function Xu(l){let e;return{c(){e=Fe("релевантности")},l(t){e=Ae(t,"релевантности")},m(t,n){N(t,e,n)},d(t){t&&_(e)}}}function Yu(l){let e;return{c(){e=Fe("дате")},l(t){e=Ae(t,"дате")},m(t,n){N(t,e,n)},d(t){t&&_(e)}}}function Ju(l){let e,t,n,u,i,s;function a(c){l[8](c)}let r={name:"sortBy",value:"rel",$$slots:{default:[Xu]},$$scope:{ctx:l}};l[5]!==void 0&&(r.group=l[5]),e=new Qt({props:r}),ze.push(()=>Ue(e,"group",a));function o(c){l[9](c)}let f={name:"sortBy",value:"date",$$slots:{default:[Yu]},$$scope:{ctx:l}};return l[5]!==void 0&&(f.group=l[5]),u=new Qt({props:f}),ze.push(()=>Ue(u,"group",o)),{c(){ge(e.$$.fragment),n=Q(),ge(u.$$.fragment)},l(c){_e(e.$$.fragment,c),n=Z(c),_e(u.$$.fragment,c)},m(c,m){be(e,c,m),N(c,n,m),be(u,c,m),s=!0},p(c,m){const h={};m&33554432&&(h.$$scope={dirty:m,ctx:c}),!t&&m&32&&(t=!0,h.group=c[5],je(()=>t=!1)),e.$set(h);const k={};m&33554432&&(k.$$scope={dirty:m,ctx:c}),!i&&m&32&&(i=!0,k.group=c[5],je(()=>i=!1)),u.$set(k)},i(c){s||(F(e.$$.fragment,c),F(u.$$.fragment,c),s=!0)},o(c){U(e.$$.fragment,c),U(u.$$.fragment,c),s=!1},d(c){c&&_(n),ve(e,c),ve(u,c)}}}function Qu(l){let e;return{c(){e=Fe("Группировать по типу")},l(t){e=Ae(t,"Группировать по типу")},m(t,n){N(t,e,n)},d(t){t&&_(e)}}}function Zu(l){let e,t,n=xe(l[0]),u=[];for(let s=0;sU(u[s],1,1,()=>{u[s]=null});return{c(){for(let s=0;sU(u[s],1,1,()=>{u[s]=null});return{c(){for(let s=0;sU(u[s],1,1,()=>{u[s]=null});return{c(){for(let s=0;sUe(o,"checked",C));const p=[xu,Zu],R=[];function M(b,D){return b[4]&&b[6]?0:1}m=M(l),h=R[m]=p[m](l);let E=ui;return{c(){e=w("div"),t=w("div"),n=w("div"),u=w("label"),u.textContent=i,s=Q(),ge(a.$$.fragment),r=Q(),ge(o.$$.fragment),c=Q(),h.c(),k=Q(),g=ke(),this.h()},l(b){e=B(b,"DIV",{class:!0});var D=A(e);t=B(D,"DIV",{class:!0});var z=A(t);n=B(z,"DIV",{class:!0,style:!0});var $=A(n);u=B($,"LABEL",{style:!0,class:!0,"data-svelte-h":!0}),Ce(u)!=="svelte-12wnwfn"&&(u.textContent=i),s=Z($),_e(a.$$.fragment,$),r=Z($),_e(o.$$.fragment,$),$.forEach(_),z.forEach(_),c=Z(D),h.l(D),D.forEach(_),k=Z(b),g=ke(),this.h()},h(){et(u,"display","inline-block"),et(u,"flex-wrap","wrap"),d(u,"class","svelte-1ptibtq"),d(n,"class","card w-full flex p-2 space-y-2"),et(n,"align-items","center"),et(n,"flex-wrap","wrap"),d(t,"class","settings-bar svelte-1ptibtq"),d(e,"class","search-results svelte-1ptibtq")},m(b,D){N(b,e,D),T(e,t),T(t,n),T(n,u),T(n,s),be(a,n,null),T(n,r),be(o,n,null),T(e,c),R[m].m(e,null),N(b,k,D),N(b,g,D),v=!0},p(b,[D]){const z={};D&33554464&&(z.$$scope={dirty:D,ctx:b}),a.$set(z);const $={};D&33554432&&($.$$scope={dirty:D,ctx:b}),!f&&D&16&&(f=!0,$.checked=b[4],je(()=>f=!1)),o.$set($);let I=m;m=M(b),m===I?R[m].p(b,D):(Ee(),U(R[I],1,1,()=>{R[I]=null}),Se(),h=R[m],h?h.p(b,D):(h=R[m]=p[m](b),h.c()),F(h,1),h.m(e,null))},i(b){v||(F(a.$$.fragment,b),F(o.$$.fragment,b),F(h),F(E),v=!0)},o(b){U(a.$$.fragment,b),U(o.$$.fragment,b),U(h),U(E),v=!1},d(b){b&&(_(e),_(k),_(g)),ve(a),ve(o),R[m].d()}}}let ui=!1;function ii(l,e,t){let{showFullText:n=Array(10).fill(!1)}=e,{useSearchResult:u}=e,i=!1,s="rel",{searchResults:a=[]}=e,r,{enableSearchResultSelection:o=!1}=e;const f=g=>g.reduce((v,C)=>{const y=C.docType||"Другие документы";return v[y]||(v[y]=[]),v[y].push(C),v},{}),c=g=>{g.stopPropagation();const v=g.target.dataset.doctype;Object.keys(r[v]).forEach(C=>{t(2,u[r[v][C].title]=g.target.checked,u)})};function m(g){s=g,t(5,s)}function h(g){s=g,t(5,s)}function k(g){i=g,t(4,i)}return l.$$set=g=>{"showFullText"in g&&t(1,n=g.showFullText),"useSearchResult"in g&&t(2,u=g.useSearchResult),"searchResults"in g&&t(0,a=g.searchResults),"enableSearchResultSelection"in g&&t(3,o=g.enableSearchResultSelection)},l.$$.update=()=>{l.$$.dirty&49&&(i&&t(6,r=f(a)),s=="date"?t(0,a=Ve.sortByDate(a)):s=="rel"&&t(0,a=Ve.sortByRelevance(a)))},[a,n,u,o,i,s,r,c,m,h,k]}class qn extends Te{constructor(e){super(),Pe(this,e,ii,li,ye,{showFullText:1,useSearchResult:2,searchResults:0,enableSearchResultSelection:3})}}function _n(l){let e,t;return e=new wl({props:{status:l[1]}}),{c(){ge(e.$$.fragment)},l(n){_e(e.$$.fragment,n)},m(n,u){be(e,n,u),t=!0},p(n,u){const i={};u[0]&2&&(i.status=n[1]),e.$set(i)},i(n){t||(F(e.$$.fragment,n),t=!0)},o(n){U(e.$$.fragment,n),t=!1},d(n){ve(e,n)}}}function bn(l){let e,t;return e=new Fl({props:{status:l[2]}}),{c(){ge(e.$$.fragment)},l(n){_e(e.$$.fragment,n)},m(n,u){be(e,n,u),t=!0},p(n,u){const i={};u[0]&4&&(i.status=n[2]),e.$set(i)},i(n){t||(F(e.$$.fragment,n),t=!0)},o(n){U(e.$$.fragment,n),t=!1},d(n){ve(e,n)}}}function si(l){let e;return{c(){e=Fe("Выбрать источники для LLM")},l(t){e=Ae(t,"Выбрать источники для LLM")},m(t,n){N(t,e,n)},d(t){t&&_(e)}}}function vn(l){let e,t="Очистить",n,u;return{c(){e=w("button"),e.textContent=t,this.h()},l(i){e=B(i,"BUTTON",{class:!0,"data-svelte-h":!0}),Ce(e)!=="svelte-1rjqwcg"&&(e.textContent=t),this.h()},h(){d(e,"class","btn variant-filled")},m(i,s){N(i,e,s),n||(u=Y(e,"click",l[19]),n=!0)},p:ae,d(i){i&&_(e),n=!1,u()}}}function kn(l){let e,t="Остановить",n,u;return{c(){e=w("button"),e.textContent=t,this.h()},l(i){e=B(i,"BUTTON",{class:!0,"data-svelte-h":!0}),Ce(e)!=="svelte-eu643t"&&(e.textContent=t),this.h()},h(){d(e,"class","btn")},m(i,s){N(i,e,s),n||(u=Y(e,"click",l[24]),n=!0)},p:ae,d(i){i&&_(e),n=!1,u()}}}function pn(l){let e,t,n,u,i,s;return i=new Tl({}),{c(){e=w("div"),t=Fe(l[12]),n=Q(),u=w("div"),ge(i.$$.fragment),this.h()},l(a){e=B(a,"DIV",{class:!0});var r=A(e);t=Ae(r,l[12]),r.forEach(_),n=Z(a),u=B(a,"DIV",{class:!0});var o=A(u);_e(i.$$.fragment,o),o.forEach(_),this.h()},h(){d(e,"class","loading-status svelte-1cldj37"),d(u,"class","loading-container svelte-1cldj37")},m(a,r){N(a,e,r),T(e,t),N(a,n,r),N(a,u,r),be(i,u,null),s=!0},p(a,r){(!s||r[0]&4096)&&st(t,a[12])},i(a){s||(F(i.$$.fragment,a),s=!0)},o(a){U(i.$$.fragment,a),s=!1},d(a){a&&(_(e),_(n),_(u)),ve(i)}}}function En(l){let e,t;return e=new Ll({props:{onSave:l[17],onClose:l[18],text:l[4]}}),{c(){ge(e.$$.fragment)},l(n){_e(e.$$.fragment,n)},m(n,u){be(e,n,u),t=!0},p(n,u){const i={};u[0]&16&&(i.text=n[4]),e.$set(i)},i(n){t||(F(e.$$.fragment,n),t=!0)},o(n){U(e.$$.fragment,n),t=!1},d(n){ve(e,n)}}}function Sn(l){let e,t,n,u;const i=[ri,ai],s=[];function a(r,o){return r[0]?0:1}return e=a(l),t=s[e]=i[e](l),{c(){t.c(),n=ke()},l(r){t.l(r),n=ke()},m(r,o){s[e].m(r,o),N(r,n,o),u=!0},p(r,o){let f=e;e=a(r),e===f?s[e].p(r,o):(Ee(),U(s[f],1,1,()=>{s[f]=null}),Se(),t=s[e],t?t.p(r,o):(t=s[e]=i[e](r),t.c()),F(t,1),t.m(n.parentNode,n))},i(r){u||(F(t),u=!0)},o(r){U(t),u=!1},d(r){r&&_(n),s[e].d(r)}}}function ai(l){let e,t;return e=new kl({props:{theme:"modern-theme",$$slots:{default:[fi]},$$scope:{ctx:l}}}),{c(){ge(e.$$.fragment)},l(n){_e(e.$$.fragment,n)},m(n,u){be(e,n,u),t=!0},p(n,u){const i={};u[0]&124576|u[1]&262144&&(i.$$scope={dirty:u,ctx:n}),e.$set(i)},i(n){t||(F(e.$$.fragment,n),t=!0)},o(n){U(e.$$.fragment,n),t=!1},d(n){ve(e,n)}}}function ri(l){let e,t,n,u,i,s,a,r,o,f,c,m,h,k,g=l[15]&&Dn(l),v=!l[7]&&l[9]&&zn(l);function C(E){l[31](E)}function y(E){l[32](E)}function p(E){l[33](E)}function R(E){l[34](E)}let M={};return l[5]!==void 0&&(M.searchResults=l[5]),l[13]!==void 0&&(M.showFullText=l[13]),l[14]!==void 0&&(M.useSearchResult=l[14]),l[15]!==void 0&&(M.enableSearchResultSelection=l[15]),o=new qn({props:M}),ze.push(()=>Ue(o,"searchResults",C)),ze.push(()=>Ue(o,"showFullText",y)),ze.push(()=>Ue(o,"useSearchResult",p)),ze.push(()=>Ue(o,"enableSearchResultSelection",R)),{c(){e=w("div"),t=w("div"),g&&g.c(),n=Q(),u=w("div"),i=new ot(!1),s=Q(),v&&v.c(),a=Q(),r=w("div"),ge(o.$$.fragment),this.h()},l(E){e=B(E,"DIV",{class:!0});var b=A(e);t=B(b,"DIV",{class:!0});var D=A(t);g&&g.l(D),n=Z(D),u=B(D,"DIV",{class:!0});var z=A(u);i=ct(z,!1),z.forEach(_),s=Z(D),v&&v.l(D),D.forEach(_),b.forEach(_),a=Z(E),r=B(E,"DIV",{class:!0});var $=A(r);_e(o.$$.fragment,$),$.forEach(_),this.h()},h(){i.a=null,d(u,"class","textarea svelte-1cldj37"),d(t,"class","textarea svelte-1cldj37"),d(e,"class","textarea-column svelte-1cldj37"),d(r,"class","search-column svelte-1cldj37")},m(E,b){N(E,e,b),T(e,t),g&&g.m(t,null),T(t,n),T(t,u),i.m(l[9],u),T(t,s),v&&v.m(t,null),N(E,a,b),N(E,r,b),be(o,r,null),k=!0},p(E,b){E[15]?g?g.p(E,b):(g=Dn(E),g.c(),g.m(t,n)):g&&(g.d(1),g=null),(!k||b[0]&512)&&i.p(E[9]),!E[7]&&E[9]?v?v.p(E,b):(v=zn(E),v.c(),v.m(t,null)):v&&(v.d(1),v=null);const D={};!f&&b[0]&32&&(f=!0,D.searchResults=E[5],je(()=>f=!1)),!c&&b[0]&8192&&(c=!0,D.showFullText=E[13],je(()=>c=!1)),!m&&b[0]&16384&&(m=!0,D.useSearchResult=E[14],je(()=>m=!1)),!h&&b[0]&32768&&(h=!0,D.enableSearchResultSelection=E[15],je(()=>h=!1)),o.$set(D)},i(E){k||(F(o.$$.fragment,E),k=!0)},o(E){U(o.$$.fragment,E),k=!1},d(E){E&&(_(e),_(a),_(r)),g&&g.d(),v&&v.d(),ve(o)}}}function oi(l){let e,t,n,u,i,s,a;function r(h){l[35](h)}function o(h){l[36](h)}function f(h){l[37](h)}function c(h){l[38](h)}let m={};return l[5]!==void 0&&(m.searchResults=l[5]),l[13]!==void 0&&(m.showFullText=l[13]),l[14]!==void 0&&(m.useSearchResult=l[14]),l[15]!==void 0&&(m.enableSearchResultSelection=l[15]),t=new qn({props:m}),ze.push(()=>Ue(t,"searchResults",r)),ze.push(()=>Ue(t,"showFullText",o)),ze.push(()=>Ue(t,"useSearchResult",f)),ze.push(()=>Ue(t,"enableSearchResultSelection",c)),{c(){e=w("div"),ge(t.$$.fragment),this.h()},l(h){e=B(h,"DIV",{class:!0});var k=A(e);_e(t.$$.fragment,k),k.forEach(_),this.h()},h(){d(e,"class","search-column svelte-1cldj37")},m(h,k){N(h,e,k),be(t,e,null),a=!0},p(h,k){const g={};!n&&k[0]&32&&(n=!0,g.searchResults=h[5],je(()=>n=!1)),!u&&k[0]&8192&&(u=!0,g.showFullText=h[13],je(()=>u=!1)),!i&&k[0]&16384&&(i=!0,g.useSearchResult=h[14],je(()=>i=!1)),!s&&k[0]&32768&&(s=!0,g.enableSearchResultSelection=h[15],je(()=>s=!1)),t.$set(g)},i(h){a||(F(t.$$.fragment,h),a=!0)},o(h){U(t.$$.fragment,h),a=!1},d(h){h&&_(e),ve(t)}}}function yn(l){let e,t="Получить ответ",n,u;return{c(){e=w("button"),e.textContent=t,this.h()},l(i){e=B(i,"BUTTON",{class:!0,"data-svelte-h":!0}),Ce(e)!=="svelte-117yy5h"&&(e.textContent=t),this.h()},h(){d(e,"class","btn variant-filled")},m(i,s){N(i,e,s),n||(u=Y(e,"click",l[25]),n=!0)},p:ae,d(i){i&&_(e),n=!1,u()}}}function Cn(l){let e,t,n="Оцените ответ:",u,i,s="👍",a,r,o="👎",f,c,m,h;return{c(){e=w("div"),t=w("span"),t.textContent=n,u=Q(),i=w("button"),i.textContent=s,a=Q(),r=w("button"),r.textContent=o,f=Q(),c=w("textarea"),this.h()},l(k){e=B(k,"DIV",{});var g=A(e);t=B(g,"SPAN",{"data-svelte-h":!0}),Ce(t)!=="svelte-9pssby"&&(t.textContent=n),u=Z(g),i=B(g,"BUTTON",{class:!0,"data-svelte-h":!0}),Ce(i)!=="svelte-1hnmipt"&&(i.textContent=s),a=Z(g),r=B(g,"BUTTON",{class:!0,"data-svelte-h":!0}),Ce(r)!=="svelte-12wf95"&&(r.textContent=o),f=Z(g),c=B(g,"TEXTAREA",{rows:!0,placeholder:!0,class:!0}),A(c).forEach(_),g.forEach(_),this.h()},h(){d(i,"class","btn-icon"),d(r,"class","btn-icon"),d(c,"rows","3"),d(c,"placeholder","Комментарий"),d(c,"class","svelte-1cldj37")},m(k,g){N(k,e,g),T(e,t),T(e,u),T(e,i),T(e,a),T(e,r),T(e,f),T(e,c),it(c,l[16]),m||(h=[Y(i,"click",l[26]),Y(r,"click",l[27]),Y(c,"input",l[39]),Y(c,"input",l[21])],m=!0)},p(k,g){g[0]&65536&&it(c,k[16])},d(k){k&&_(e),m=!1,$e(h)}}}function ci(l){let e,t,n,u,i,s,a=l[15]&&yn(l),r=!l[7]&&l[9]&&Cn(l);return{c(){e=w("div"),t=w("div"),a&&a.c(),n=Q(),u=w("div"),i=new ot(!1),s=Q(),r&&r.c(),this.h()},l(o){e=B(o,"DIV",{class:!0});var f=A(e);t=B(f,"DIV",{class:!0});var c=A(t);a&&a.l(c),n=Z(c),u=B(c,"DIV",{class:!0});var m=A(u);i=ct(m,!1),m.forEach(_),s=Z(c),r&&r.l(c),c.forEach(_),f.forEach(_),this.h()},h(){i.a=null,d(u,"class","textarea svelte-1cldj37"),d(t,"class","textarea svelte-1cldj37"),d(e,"class","textarea-column svelte-1cldj37")},m(o,f){N(o,e,f),T(e,t),a&&a.m(t,null),T(t,n),T(t,u),i.m(l[9],u),T(t,s),r&&r.m(t,null)},p(o,f){o[15]?a?a.p(o,f):(a=yn(o),a.c(),a.m(t,n)):a&&(a.d(1),a=null),f[0]&512&&i.p(o[9]),!o[7]&&o[9]?r?r.p(o,f):(r=Cn(o),r.c(),r.m(t,null)):r&&(r.d(1),r=null)},d(o){o&&_(e),a&&a.d(),r&&r.d()}}}function fi(l){let e,t,n,u;return e=new Nt({props:{minSize:20,class:"search-column",size:49,$$slots:{default:[oi]},$$scope:{ctx:l}}}),n=new Nt({props:{size:l[10],$$slots:{default:[ci]},$$scope:{ctx:l}}}),{c(){ge(e.$$.fragment),t=Q(),ge(n.$$.fragment)},l(i){_e(e.$$.fragment,i),t=Z(i),_e(n.$$.fragment,i)},m(i,s){be(e,i,s),N(i,t,s),be(n,i,s),u=!0},p(i,s){const a={};s[0]&57376|s[1]&262144&&(a.$$scope={dirty:s,ctx:i}),e.$set(a);const r={};s[0]&1024&&(r.size=i[10]),s[0]&98944|s[1]&262144&&(r.$$scope={dirty:s,ctx:i}),n.$set(r)},i(i){u||(F(e.$$.fragment,i),F(n.$$.fragment,i),u=!0)},o(i){U(e.$$.fragment,i),U(n.$$.fragment,i),u=!1},d(i){i&&_(t),ve(e,i),ve(n,i)}}}function Dn(l){let e,t="Получить ответ",n,u;return{c(){e=w("button"),e.textContent=t,this.h()},l(i){e=B(i,"BUTTON",{class:!0,"data-svelte-h":!0}),Ce(e)!=="svelte-3pb36x"&&(e.textContent=t),this.h()},h(){d(e,"class","btn variant-filled")},m(i,s){N(i,e,s),n||(u=Y(e,"click",l[25]),n=!0)},p:ae,d(i){i&&_(e),n=!1,u()}}}function zn(l){let e,t,n="Оцените ответ:",u,i,s="👍",a,r,o="👎",f,c,m,h;return{c(){e=w("div"),t=w("span"),t.textContent=n,u=Q(),i=w("button"),i.textContent=s,a=Q(),r=w("button"),r.textContent=o,f=Q(),c=w("textarea"),this.h()},l(k){e=B(k,"DIV",{});var g=A(e);t=B(g,"SPAN",{"data-svelte-h":!0}),Ce(t)!=="svelte-9pssby"&&(t.textContent=n),u=Z(g),i=B(g,"BUTTON",{class:!0,"data-svelte-h":!0}),Ce(i)!=="svelte-1hnmipt"&&(i.textContent=s),a=Z(g),r=B(g,"BUTTON",{class:!0,"data-svelte-h":!0}),Ce(r)!=="svelte-12wf95"&&(r.textContent=o),f=Z(g),c=B(g,"TEXTAREA",{rows:!0,placeholder:!0,class:!0}),A(c).forEach(_),g.forEach(_),this.h()},h(){d(i,"class","btn-icon"),d(r,"class","btn-icon"),d(c,"rows","3"),d(c,"placeholder","Комментарий"),d(c,"class","svelte-1cldj37")},m(k,g){N(k,e,g),T(e,t),T(e,u),T(e,i),T(e,a),T(e,r),T(e,f),T(e,c),it(c,l[16]),m||(h=[Y(i,"click",l[26]),Y(r,"click",l[27]),Y(c,"input",l[30]),Y(c,"input",l[21])],m=!0)},p(k,g){g[0]&65536&&it(c,k[16])},d(k){k&&_(e),m=!1,$e(h)}}}function di(l){let e,t,n,u,i,s,a,r,o,f,c,m=l[1],h,k=l[2],g,v,C,y,p,R,M,E,b="Отправить",D,z,$,I,ne,ue,te;n=new ju({});let H=_n(l),le=bn(l);function Re(X){l[29](X)}let De={name:"slider-label",size:"sm",$$slots:{default:[si]},$$scope:{ctx:l}};l[15]!==void 0&&(De.checked=l[15]),C=new Un({props:De}),ze.push(()=>Ue(C,"checked",Re));let L=l[11]&&vn(l),se=l[7]&&kn(l),V=(l[6]||l[7])&&pn(l),P=l[3]&&En(l),oe=l[8]&&Sn(l);return{c(){e=w("meta"),t=Q(),ge(n.$$.fragment),u=Q(),i=w("section"),s=w("div"),a=w("div"),r=w("textarea"),o=Q(),f=w("div"),c=w("div"),H.c(),h=Q(),le.c(),g=Q(),v=w("div"),ge(C.$$.fragment),p=Q(),L&&L.c(),R=Q(),se&&se.c(),M=Q(),E=w("button"),E.textContent=b,D=Q(),z=w("div"),V&&V.c(),$=Q(),P&&P.c(),I=Q(),oe&&oe.c(),this.h()},l(X){const ie=ll("svelte-1wpbm1r",document.head);e=B(ie,"META",{name:!0,content:!0}),ie.forEach(_),t=Z(X),_e(n.$$.fragment,X),u=Z(X),i=B(X,"SECTION",{});var j=A(i);s=B(j,"DIV",{class:!0});var we=A(s);a=B(we,"DIV",{class:!0});var ft=A(a);r=B(ft,"TEXTAREA",{class:!0,rows:!0,placeholder:!0}),A(r).forEach(_),ft.forEach(_),o=Z(we),f=B(we,"DIV",{class:!0});var Oe=A(f);c=B(Oe,"DIV",{class:!0});var qe=A(c);H.l(qe),h=Z(qe),le.l(qe),qe.forEach(_),g=Z(Oe),v=B(Oe,"DIV",{class:!0});var Me=A(v);_e(C.$$.fragment,Me),p=Z(Me),L&&L.l(Me),R=Z(Me),se&&se.l(Me),M=Z(Me),E=B(Me,"BUTTON",{title:!0,class:!0,"data-svelte-h":!0}),Ce(E)!=="svelte-w5ppob"&&(E.textContent=b),Me.forEach(_),D=Z(Oe),z=B(Oe,"DIV",{class:!0});var at=A(z);V&&V.l(at),at.forEach(_),Oe.forEach(_),$=Z(we),P&&P.l(we),we.forEach(_),I=Z(j),oe&&oe.l(j),j.forEach(_),this.h()},h(){document.title="LLM demo app",d(e,"name","description"),d(e,"content","LLM demo app"),d(r,"class","auto-expand-textarea svelte-1cldj37"),d(r,"rows","1"),d(r,"placeholder","Введите ваш запрос..."),d(a,"class","grow-wrap w-full svelte-1cldj37"),d(c,"class","status-components svelte-1cldj37"),d(E,"title","Ctrl+Enter"),d(E,"class","btn variant-filled"),d(v,"class","flex space-x-2 items-center"),d(z,"class","flex space-x-2 items-center w-full"),d(f,"class","search-second-bar w-full flex svelte-1cldj37"),d(s,"class","search-bar flex flex-wrap svelte-1cldj37")},m(X,ie){T(document.head,e),N(X,t,ie),be(n,X,ie),N(X,u,ie),N(X,i,ie),T(i,s),T(s,a),T(a,r),it(r,l[11]),T(s,o),T(s,f),T(f,c),H.m(c,null),T(c,h),le.m(c,null),T(f,g),T(f,v),be(C,v,null),T(v,p),L&&L.m(v,null),T(v,R),se&&se.m(v,null),T(v,M),T(v,E),T(f,D),T(f,z),V&&V.m(z,null),T(s,$),P&&P.m(s,null),T(i,I),oe&&oe.m(i,null),ne=!0,ue||(te=[Y(r,"input",l[28]),Y(r,"input",l[20]),Y(r,"keydown",l[22]),Y(E,"click",l[23])],ue=!0)},p(X,ie){ie[0]&2048&&it(r,X[11]),ie[0]&2&&ye(m,m=X[1])?(Ee(),U(H,1,1,ae),Se(),H=_n(X),H.c(),F(H,1),H.m(c,h)):H.p(X,ie),ie[0]&4&&ye(k,k=X[2])?(Ee(),U(le,1,1,ae),Se(),le=bn(X),le.c(),F(le,1),le.m(c,null)):le.p(X,ie);const j={};ie[1]&262144&&(j.$$scope={dirty:ie,ctx:X}),!y&&ie[0]&32768&&(y=!0,j.checked=X[15],je(()=>y=!1)),C.$set(j),X[11]?L?L.p(X,ie):(L=vn(X),L.c(),L.m(v,R)):L&&(L.d(1),L=null),X[7]?se?se.p(X,ie):(se=kn(X),se.c(),se.m(v,M)):se&&(se.d(1),se=null),X[6]||X[7]?V?(V.p(X,ie),ie[0]&192&&F(V,1)):(V=pn(X),V.c(),F(V,1),V.m(z,null)):V&&(Ee(),U(V,1,1,()=>{V=null}),Se()),X[3]?P?(P.p(X,ie),ie[0]&8&&F(P,1)):(P=En(X),P.c(),F(P,1),P.m(s,null)):P&&(Ee(),U(P,1,1,()=>{P=null}),Se()),X[8]?oe?(oe.p(X,ie),ie[0]&256&&F(oe,1)):(oe=Sn(X),oe.c(),F(oe,1),oe.m(i,null)):oe&&(Ee(),U(oe,1,1,()=>{oe=null}),Se())},i(X){ne||(F(n.$$.fragment,X),F(H),F(le),F(C.$$.fragment,X),F(V),F(P),F(oe),ne=!0)},o(X){U(n.$$.fragment,X),U(H),U(le),U(C.$$.fragment,X),U(V),U(P),U(oe),ne=!1},d(X){X&&(_(t),_(u),_(i)),_(e),ve(n,X),H.d(X),le.d(X),ve(C),L&&L.d(),se&&se.d(),V&&V.d(),P&&P.d(),oe&&oe.d(),ue=!1,$e(te)}}}function Tn(l){return l.map(({title:e,text:t})=>`${e} +${t}`).join(` + +`)}function hi(l,e,t){Yl();let n=!1;const u={message:"Спасибо за оценку!",timeout:5e3},i=Nn();bt(()=>{t(0,n=window.innerWidth<=768)});let s="unknown",a="unknown",r=!1,o=`Ты бухгалтер. Ты отвечаешь на русском языке. Ты всегда следуешь моим инструкциям. + Ты отвечаешь на вопросы клиентов. Чтобы ответить, ты обязательно используешь только "источники", которые я тебе предоставляю. Ты используешь только официально-деловой стиль и необходимую терминологию. Соблюдай этические нормы. +При ответе на вопрос ты используешь только такой формат ответа: + 1) Четкий и краткий ответ на поставленный вопрос. Ты можешь начать свой ответ так: "По Вашему вопросу сообщаем...". Используй по возможности слова: да, можно, нет, нельзя. + 2) Обоснование (ты используешь для обоснования "источники". Ты используешь только "источники" для поиска необходимых "законов", "статей", "пунктов" и "подпунктов" для ответа на вопрос пользователя). + 3) Аргументация (Ты используешь только "источники" для поиска необходимых "писем" и "судебных решений", чтобы аргументировать свой ответ)." + 4) Заключение (ты подводишь итоги всего, что сказал выше. Избегай повторения и сложных конструкций). Если в источниках нельзя найти подходящую информацию для ответа, ты отвечаешь так: "Мы не можем ответить на данный вопрос. Обратитесь к специалисту." + Вопрос: {{ВОПРОС}} +Источники: {{ИСТОЧНИКИ}}`;function f(G){t(4,o=G)}function c(){t(3,r=!1)}async function m(){try{const G=await fetch(`${window.location.origin}/llm/health`,{method:"GET",headers:{"Content-Type":"application/json"}});if(!G.ok)throw new Error(`Failed to fetch Llama health status: ${G.statusText}`);const he=await G.json();t(1,s=he.status)}catch(G){console.error("Error fetching Llama health status:",G.message)}try{const G=await fetch(`${window.location.origin}/search/health`,{method:"GET",headers:{"Content-Type":"application/json"}});if(!G.ok)throw new Error(`Failed to fetch search health status: ${G.statusText}`);const he=await G.json();t(2,a=he.status)}catch(G){console.error("Error fetching search health status:",G.message)}}bt(async()=>{m()}),Tt(()=>{le()});let h=[],k=!1,g=!1,v=!1,C="",y=0,p="",R="",M=Array(h.length).fill(!1),E,b=!1,D="";const z=async G=>{t(9,C=""),t(6,k=!1),t(7,g=!1),t(8,v=!1),t(5,h=[]),t(11,p=""),le()},$=G=>{t(11,p=G.target.value);const he=G.target.parentNode;he&&(he.dataset.replicatedValue=p)},I=G=>{t(16,D=G.target.value);const he=G.target.parentNode;he&&(he.dataset.replicatedValue=p)},ne=G=>{G.ctrlKey&&G.key==="Enter"&&(G.preventDefault(),H())},ue=async()=>{t(10,y=49);let G="";if(b)G=Tn(h.filter((Qe,nt)=>E[Qe.title]));else{const Qe=h.slice(0,10);G=Tn(Qe)}let he=o.replace("{{ВОПРОС}}",p).replace("{{ИСТОЧНИКИ}}",G);t(7,g=!0),h?t(12,R="Генерируем ответ на основе результатов поиска"):t(12,R="Генерируем ответ");const rt=await fetch("/llm",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({userprompt:he}),signal:te.signal});try{if(te.signal.aborted){console.log("Request was cancelled.");return}if(!rt.body){console.log("Response has no body");return}const Qe=rt.body.pipeThrough(new TextDecoderStream).getReader();let nt=!0;for(;nt;)try{if(te.signal.aborted){console.log("Request was cancelled during reading.");break}const{value:lt,done:ht}=await Qe.read();if(ht){nt=!1;break}lt&&t(9,C+=lt.replaceAll(` +`,"
"))}catch(lt){if(t(12,R="Ошибка генерации ответа"),lt.name==="AbortError"){nt=!1,console.log("Fetch was aborted during reading.");break}else{nt=!1,console.error("Error during reading:",lt);break}}t(12,R=""),t(7,g=!1)}catch(Qe){Qe.name==="AbortError"?console.log("Fetch was aborted."):console.error("Error during fetch:",Qe)}};let te=new AbortController;const H=async G=>{t(13,M=Array(10).fill(!1)),t(14,E={}),t(9,C=""),t(6,k=!0),t(7,g=!1),t(8,v=!0),t(12,R="Ищем релевантные документы");try{const he=await fetch("/search",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({query:p})});if(!he.ok)throw new Error(`Failed to fetch search results: ${he.statusText}`);const rt=await he.json();t(5,h=Ve.sortByRelevance(rt.results)),t(5,h=Ve.identifyDocumentType(h)),console.log(h)}catch{}t(12,R=""),t(6,k=!1),b?t(10,y=49):await ue()},le=()=>{te.abort("user canceled"),te=new AbortController};async function Re(){t(9,C=""),await le(),setTimeout(async()=>{await ue()},1e3)}async function De(){await se({userScore:"positive"}),i.trigger(u),t(16,D="")}async function L(){await se({userScore:"negative"}),i.trigger(u),t(16,D="")}async function se(G){try{const he=await fetch("/log/response",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({user_query:p,prompt_template:o,search_results:h,llm_response:C.replaceAll("
",` +`),user_score:G.userScore,user_comment:D})});if(!he.ok)throw new Error(`Failed to fetch search results: ${he.statusText}`);if((await he.json()).success)return!0}catch{}return!1}function V(){p=this.value,t(11,p)}function P(G){b=G,t(15,b)}function oe(){D=this.value,t(16,D)}function X(G){h=G,t(5,h)}function ie(G){M=G,t(13,M)}function j(G){E=G,t(14,E)}function we(G){b=G,t(15,b)}function ft(G){h=G,t(5,h)}function Oe(G){M=G,t(13,M)}function qe(G){E=G,t(14,E)}function Me(G){b=G,t(15,b)}function at(){D=this.value,t(16,D)}return[n,s,a,r,o,h,k,g,v,C,y,p,R,M,E,b,D,f,c,z,$,I,ne,H,le,Re,De,L,V,P,oe,X,ie,j,we,ft,Oe,qe,Me,at]}class vi extends Te{constructor(e){super(),Pe(this,e,hi,di,ye,{},null,[-1,-1])}}export{vi as component,bi as universal}; diff --git a/build/client/_app/version.json b/build/client/_app/version.json new file mode 100644 index 0000000000000000000000000000000000000000..443a3188fbb673e2d37a6d15e47b2d0ac9f77059 --- /dev/null +++ b/build/client/_app/version.json @@ -0,0 +1 @@ +{"version":"1706612561657"} \ No newline at end of file diff --git a/build/client/favicon.png b/build/client/favicon.png new file mode 100644 index 0000000000000000000000000000000000000000..825b9e65af7c104cfb07089bb28659393b4f2097 Binary files /dev/null and b/build/client/favicon.png differ diff --git a/build/client/robots.txt b/build/client/robots.txt new file mode 100644 index 0000000000000000000000000000000000000000..e9e57dc4d41b9b46e05112e9f45b7ea6ac0ba15e --- /dev/null +++ b/build/client/robots.txt @@ -0,0 +1,3 @@ +# https://www.robotstxt.org/robotstxt.html +User-agent: * +Disallow: diff --git a/build/env.js b/build/env.js new file mode 100644 index 0000000000000000000000000000000000000000..e99149d3ed4e339dc5016eea03e7c477bec78465 --- /dev/null +++ b/build/env.js @@ -0,0 +1,38 @@ +/* global "" */ + +const expected = new Set([ + 'SOCKET_PATH', + 'HOST', + 'PORT', + 'ORIGIN', + 'XFF_DEPTH', + 'ADDRESS_HEADER', + 'PROTOCOL_HEADER', + 'HOST_HEADER', + 'PORT_HEADER', + 'BODY_SIZE_LIMIT' +]); + +if ("") { + for (const name in process.env) { + if (name.startsWith("")) { + const unprefixed = name.slice("".length); + if (!expected.has(unprefixed)) { + throw new Error( + `You should change envPrefix (${""}) to avoid conflicts with existing environment variables — unexpectedly saw ${name}` + ); + } + } + } +} + +/** + * @param {string} name + * @param {any} fallback + */ +function env(name, fallback) { + const prefixed = "" + name; + return prefixed in process.env ? process.env[prefixed] : fallback; +} + +export { env }; diff --git a/build/handler.js b/build/handler.js new file mode 100644 index 0000000000000000000000000000000000000000..cf50634e98553f2d67c4e562506fe63ef868900b --- /dev/null +++ b/build/handler.js @@ -0,0 +1,1304 @@ +import './shims.js'; +import fs$1 from 'node:fs'; +import path from 'node:path'; +import * as fs from 'fs'; +import { readdirSync, statSync } from 'fs'; +import { resolve, join, normalize } from 'path'; +import * as qs from 'querystring'; +import { fileURLToPath } from 'node:url'; +import { Server } from './server/index.js'; +import { manifest, prerendered } from './server/manifest.js'; +import { env } from './env.js'; + +function totalist(dir, callback, pre='') { + dir = resolve('.', dir); + let arr = readdirSync(dir); + let i=0, abs, stats; + for (; i < arr.length; i++) { + abs = join(dir, arr[i]); + stats = statSync(abs); + stats.isDirectory() + ? totalist(abs, callback, join(pre, arr[i])) + : callback(join(pre, arr[i]), abs, stats); + } +} + +/** + * @typedef ParsedURL + * @type {import('.').ParsedURL} + */ + +/** + * @typedef Request + * @property {string} url + * @property {ParsedURL} _parsedUrl + */ + +/** + * @param {Request} req + * @returns {ParsedURL|void} + */ +function parse$1(req) { + let raw = req.url; + if (raw == null) return; + + let prev = req._parsedUrl; + if (prev && prev.raw === raw) return prev; + + let pathname=raw, search='', query; + + if (raw.length > 1) { + let idx = raw.indexOf('?', 1); + + if (idx !== -1) { + search = raw.substring(idx); + pathname = raw.substring(0, idx); + if (search.length > 1) { + query = qs.parse(search.substring(1)); + } + } + } + + return req._parsedUrl = { pathname, search, query, raw }; +} + +const mimes = { + "3g2": "video/3gpp2", + "3gp": "video/3gpp", + "3gpp": "video/3gpp", + "3mf": "model/3mf", + "aac": "audio/aac", + "ac": "application/pkix-attr-cert", + "adp": "audio/adpcm", + "adts": "audio/aac", + "ai": "application/postscript", + "aml": "application/automationml-aml+xml", + "amlx": "application/automationml-amlx+zip", + "amr": "audio/amr", + "apng": "image/apng", + "appcache": "text/cache-manifest", + "appinstaller": "application/appinstaller", + "appx": "application/appx", + "appxbundle": "application/appxbundle", + "asc": "application/pgp-keys", + "atom": "application/atom+xml", + "atomcat": "application/atomcat+xml", + "atomdeleted": "application/atomdeleted+xml", + "atomsvc": "application/atomsvc+xml", + "au": "audio/basic", + "avci": "image/avci", + "avcs": "image/avcs", + "avif": "image/avif", + "aw": "application/applixware", + "bdoc": "application/bdoc", + "bin": "application/octet-stream", + "bmp": "image/bmp", + "bpk": "application/octet-stream", + "btf": "image/prs.btif", + "btif": "image/prs.btif", + "buffer": "application/octet-stream", + "ccxml": "application/ccxml+xml", + "cdfx": "application/cdfx+xml", + "cdmia": "application/cdmi-capability", + "cdmic": "application/cdmi-container", + "cdmid": "application/cdmi-domain", + "cdmio": "application/cdmi-object", + "cdmiq": "application/cdmi-queue", + "cer": "application/pkix-cert", + "cgm": "image/cgm", + "cjs": "application/node", + "class": "application/java-vm", + "coffee": "text/coffeescript", + "conf": "text/plain", + "cpl": "application/cpl+xml", + "cpt": "application/mac-compactpro", + "crl": "application/pkix-crl", + "css": "text/css", + "csv": "text/csv", + "cu": "application/cu-seeme", + "cwl": "application/cwl", + "cww": "application/prs.cww", + "davmount": "application/davmount+xml", + "dbk": "application/docbook+xml", + "deb": "application/octet-stream", + "def": "text/plain", + "deploy": "application/octet-stream", + "dib": "image/bmp", + "disposition-notification": "message/disposition-notification", + "dist": "application/octet-stream", + "distz": "application/octet-stream", + "dll": "application/octet-stream", + "dmg": "application/octet-stream", + "dms": "application/octet-stream", + "doc": "application/msword", + "dot": "application/msword", + "dpx": "image/dpx", + "drle": "image/dicom-rle", + "dsc": "text/prs.lines.tag", + "dssc": "application/dssc+der", + "dtd": "application/xml-dtd", + "dump": "application/octet-stream", + "dwd": "application/atsc-dwd+xml", + "ear": "application/java-archive", + "ecma": "application/ecmascript", + "elc": "application/octet-stream", + "emf": "image/emf", + "eml": "message/rfc822", + "emma": "application/emma+xml", + "emotionml": "application/emotionml+xml", + "eps": "application/postscript", + "epub": "application/epub+zip", + "exe": "application/octet-stream", + "exi": "application/exi", + "exp": "application/express", + "exr": "image/aces", + "ez": "application/andrew-inset", + "fdf": "application/fdf", + "fdt": "application/fdt+xml", + "fits": "image/fits", + "g3": "image/g3fax", + "gbr": "application/rpki-ghostbusters", + "geojson": "application/geo+json", + "gif": "image/gif", + "glb": "model/gltf-binary", + "gltf": "model/gltf+json", + "gml": "application/gml+xml", + "gpx": "application/gpx+xml", + "gram": "application/srgs", + "grxml": "application/srgs+xml", + "gxf": "application/gxf", + "gz": "application/gzip", + "h261": "video/h261", + "h263": "video/h263", + "h264": "video/h264", + "heic": "image/heic", + "heics": "image/heic-sequence", + "heif": "image/heif", + "heifs": "image/heif-sequence", + "hej2": "image/hej2k", + "held": "application/atsc-held+xml", + "hjson": "application/hjson", + "hlp": "application/winhlp", + "hqx": "application/mac-binhex40", + "hsj2": "image/hsj2", + "htm": "text/html", + "html": "text/html", + "ics": "text/calendar", + "ief": "image/ief", + "ifb": "text/calendar", + "iges": "model/iges", + "igs": "model/iges", + "img": "application/octet-stream", + "in": "text/plain", + "ini": "text/plain", + "ink": "application/inkml+xml", + "inkml": "application/inkml+xml", + "ipfix": "application/ipfix", + "iso": "application/octet-stream", + "its": "application/its+xml", + "jade": "text/jade", + "jar": "application/java-archive", + "jhc": "image/jphc", + "jls": "image/jls", + "jp2": "image/jp2", + "jpe": "image/jpeg", + "jpeg": "image/jpeg", + "jpf": "image/jpx", + "jpg": "image/jpeg", + "jpg2": "image/jp2", + "jpgm": "image/jpm", + "jpgv": "video/jpeg", + "jph": "image/jph", + "jpm": "image/jpm", + "jpx": "image/jpx", + "js": "text/javascript", + "json": "application/json", + "json5": "application/json5", + "jsonld": "application/ld+json", + "jsonml": "application/jsonml+json", + "jsx": "text/jsx", + "jt": "model/jt", + "jxr": "image/jxr", + "jxra": "image/jxra", + "jxrs": "image/jxrs", + "jxs": "image/jxs", + "jxsc": "image/jxsc", + "jxsi": "image/jxsi", + "jxss": "image/jxss", + "kar": "audio/midi", + "ktx": "image/ktx", + "ktx2": "image/ktx2", + "less": "text/less", + "lgr": "application/lgr+xml", + "list": "text/plain", + "litcoffee": "text/coffeescript", + "log": "text/plain", + "lostxml": "application/lost+xml", + "lrf": "application/octet-stream", + "m1v": "video/mpeg", + "m21": "application/mp21", + "m2a": "audio/mpeg", + "m2v": "video/mpeg", + "m3a": "audio/mpeg", + "m4a": "audio/mp4", + "m4p": "application/mp4", + "m4s": "video/iso.segment", + "ma": "application/mathematica", + "mads": "application/mads+xml", + "maei": "application/mmt-aei+xml", + "man": "text/troff", + "manifest": "text/cache-manifest", + "map": "application/json", + "mar": "application/octet-stream", + "markdown": "text/markdown", + "mathml": "application/mathml+xml", + "mb": "application/mathematica", + "mbox": "application/mbox", + "md": "text/markdown", + "mdx": "text/mdx", + "me": "text/troff", + "mesh": "model/mesh", + "meta4": "application/metalink4+xml", + "metalink": "application/metalink+xml", + "mets": "application/mets+xml", + "mft": "application/rpki-manifest", + "mid": "audio/midi", + "midi": "audio/midi", + "mime": "message/rfc822", + "mj2": "video/mj2", + "mjp2": "video/mj2", + "mjs": "text/javascript", + "mml": "text/mathml", + "mods": "application/mods+xml", + "mov": "video/quicktime", + "mp2": "audio/mpeg", + "mp21": "application/mp21", + "mp2a": "audio/mpeg", + "mp3": "audio/mpeg", + "mp4": "video/mp4", + "mp4a": "audio/mp4", + "mp4s": "application/mp4", + "mp4v": "video/mp4", + "mpd": "application/dash+xml", + "mpe": "video/mpeg", + "mpeg": "video/mpeg", + "mpf": "application/media-policy-dataset+xml", + "mpg": "video/mpeg", + "mpg4": "video/mp4", + "mpga": "audio/mpeg", + "mpp": "application/dash-patch+xml", + "mrc": "application/marc", + "mrcx": "application/marcxml+xml", + "ms": "text/troff", + "mscml": "application/mediaservercontrol+xml", + "msh": "model/mesh", + "msi": "application/octet-stream", + "msix": "application/msix", + "msixbundle": "application/msixbundle", + "msm": "application/octet-stream", + "msp": "application/octet-stream", + "mtl": "model/mtl", + "musd": "application/mmt-usd+xml", + "mxf": "application/mxf", + "mxmf": "audio/mobile-xmf", + "mxml": "application/xv+xml", + "n3": "text/n3", + "nb": "application/mathematica", + "nq": "application/n-quads", + "nt": "application/n-triples", + "obj": "model/obj", + "oda": "application/oda", + "oga": "audio/ogg", + "ogg": "audio/ogg", + "ogv": "video/ogg", + "ogx": "application/ogg", + "omdoc": "application/omdoc+xml", + "onepkg": "application/onenote", + "onetmp": "application/onenote", + "onetoc": "application/onenote", + "onetoc2": "application/onenote", + "opf": "application/oebps-package+xml", + "opus": "audio/ogg", + "otf": "font/otf", + "owl": "application/rdf+xml", + "oxps": "application/oxps", + "p10": "application/pkcs10", + "p7c": "application/pkcs7-mime", + "p7m": "application/pkcs7-mime", + "p7s": "application/pkcs7-signature", + "p8": "application/pkcs8", + "pdf": "application/pdf", + "pfr": "application/font-tdpfr", + "pgp": "application/pgp-encrypted", + "pkg": "application/octet-stream", + "pki": "application/pkixcmp", + "pkipath": "application/pkix-pkipath", + "pls": "application/pls+xml", + "png": "image/png", + "prc": "model/prc", + "prf": "application/pics-rules", + "provx": "application/provenance+xml", + "ps": "application/postscript", + "pskcxml": "application/pskc+xml", + "pti": "image/prs.pti", + "qt": "video/quicktime", + "raml": "application/raml+yaml", + "rapd": "application/route-apd+xml", + "rdf": "application/rdf+xml", + "relo": "application/p2p-overlay+xml", + "rif": "application/reginfo+xml", + "rl": "application/resource-lists+xml", + "rld": "application/resource-lists-diff+xml", + "rmi": "audio/midi", + "rnc": "application/relax-ng-compact-syntax", + "rng": "application/xml", + "roa": "application/rpki-roa", + "roff": "text/troff", + "rq": "application/sparql-query", + "rs": "application/rls-services+xml", + "rsat": "application/atsc-rsat+xml", + "rsd": "application/rsd+xml", + "rsheet": "application/urc-ressheet+xml", + "rss": "application/rss+xml", + "rtf": "text/rtf", + "rtx": "text/richtext", + "rusd": "application/route-usd+xml", + "s3m": "audio/s3m", + "sbml": "application/sbml+xml", + "scq": "application/scvp-cv-request", + "scs": "application/scvp-cv-response", + "sdp": "application/sdp", + "senmlx": "application/senml+xml", + "sensmlx": "application/sensml+xml", + "ser": "application/java-serialized-object", + "setpay": "application/set-payment-initiation", + "setreg": "application/set-registration-initiation", + "sgi": "image/sgi", + "sgm": "text/sgml", + "sgml": "text/sgml", + "shex": "text/shex", + "shf": "application/shf+xml", + "shtml": "text/html", + "sieve": "application/sieve", + "sig": "application/pgp-signature", + "sil": "audio/silk", + "silo": "model/mesh", + "siv": "application/sieve", + "slim": "text/slim", + "slm": "text/slim", + "sls": "application/route-s-tsid+xml", + "smi": "application/smil+xml", + "smil": "application/smil+xml", + "snd": "audio/basic", + "so": "application/octet-stream", + "spdx": "text/spdx", + "spp": "application/scvp-vp-response", + "spq": "application/scvp-vp-request", + "spx": "audio/ogg", + "sql": "application/sql", + "sru": "application/sru+xml", + "srx": "application/sparql-results+xml", + "ssdl": "application/ssdl+xml", + "ssml": "application/ssml+xml", + "stk": "application/hyperstudio", + "stl": "model/stl", + "stpx": "model/step+xml", + "stpxz": "model/step-xml+zip", + "stpz": "model/step+zip", + "styl": "text/stylus", + "stylus": "text/stylus", + "svg": "image/svg+xml", + "svgz": "image/svg+xml", + "swidtag": "application/swid+xml", + "t": "text/troff", + "t38": "image/t38", + "td": "application/urc-targetdesc+xml", + "tei": "application/tei+xml", + "teicorpus": "application/tei+xml", + "text": "text/plain", + "tfi": "application/thraud+xml", + "tfx": "image/tiff-fx", + "tif": "image/tiff", + "tiff": "image/tiff", + "toml": "application/toml", + "tr": "text/troff", + "trig": "application/trig", + "ts": "video/mp2t", + "tsd": "application/timestamped-data", + "tsv": "text/tab-separated-values", + "ttc": "font/collection", + "ttf": "font/ttf", + "ttl": "text/turtle", + "ttml": "application/ttml+xml", + "txt": "text/plain", + "u3d": "model/u3d", + "u8dsn": "message/global-delivery-status", + "u8hdr": "message/global-headers", + "u8mdn": "message/global-disposition-notification", + "u8msg": "message/global", + "ubj": "application/ubjson", + "uri": "text/uri-list", + "uris": "text/uri-list", + "urls": "text/uri-list", + "vcard": "text/vcard", + "vrml": "model/vrml", + "vtt": "text/vtt", + "vxml": "application/voicexml+xml", + "war": "application/java-archive", + "wasm": "application/wasm", + "wav": "audio/wav", + "weba": "audio/webm", + "webm": "video/webm", + "webmanifest": "application/manifest+json", + "webp": "image/webp", + "wgsl": "text/wgsl", + "wgt": "application/widget", + "wif": "application/watcherinfo+xml", + "wmf": "image/wmf", + "woff": "font/woff", + "woff2": "font/woff2", + "wrl": "model/vrml", + "wsdl": "application/wsdl+xml", + "wspolicy": "application/wspolicy+xml", + "x3d": "model/x3d+xml", + "x3db": "model/x3d+fastinfoset", + "x3dbz": "model/x3d+binary", + "x3dv": "model/x3d-vrml", + "x3dvz": "model/x3d+vrml", + "x3dz": "model/x3d+xml", + "xaml": "application/xaml+xml", + "xav": "application/xcap-att+xml", + "xca": "application/xcap-caps+xml", + "xcs": "application/calendar+xml", + "xdf": "application/xcap-diff+xml", + "xdssc": "application/dssc+xml", + "xel": "application/xcap-el+xml", + "xenc": "application/xenc+xml", + "xer": "application/patch-ops-error+xml", + "xfdf": "application/xfdf", + "xht": "application/xhtml+xml", + "xhtml": "application/xhtml+xml", + "xhvml": "application/xv+xml", + "xlf": "application/xliff+xml", + "xm": "audio/xm", + "xml": "text/xml", + "xns": "application/xcap-ns+xml", + "xop": "application/xop+xml", + "xpl": "application/xproc+xml", + "xsd": "application/xml", + "xsf": "application/prs.xsf+xml", + "xsl": "application/xml", + "xslt": "application/xml", + "xspf": "application/xspf+xml", + "xvm": "application/xv+xml", + "xvml": "application/xv+xml", + "yaml": "text/yaml", + "yang": "application/yang", + "yin": "application/yin+xml", + "yml": "text/yaml", + "zip": "application/zip" +}; + +function lookup(extn) { + let tmp = ('' + extn).trim().toLowerCase(); + let idx = tmp.lastIndexOf('.'); + return mimes[!~idx ? tmp : tmp.substring(++idx)]; +} + +const noop = () => {}; + +function isMatch(uri, arr) { + for (let i=0; i < arr.length; i++) { + if (arr[i].test(uri)) return true; + } +} + +function toAssume(uri, extns) { + let i=0, x, len=uri.length - 1; + if (uri.charCodeAt(len) === 47) { + uri = uri.substring(0, len); + } + + let arr=[], tmp=`${uri}/index`; + for (; i < extns.length; i++) { + x = extns[i] ? `.${extns[i]}` : ''; + if (uri) arr.push(uri + x); + arr.push(tmp + x); + } + + return arr; +} + +function viaCache(cache, uri, extns) { + let i=0, data, arr=toAssume(uri, extns); + for (; i < arr.length; i++) { + if (data = cache[arr[i]]) return data; + } +} + +function viaLocal(dir, isEtag, uri, extns) { + let i=0, arr=toAssume(uri, extns); + let abs, stats, name, headers; + for (; i < arr.length; i++) { + abs = normalize(join(dir, name=arr[i])); + if (abs.startsWith(dir) && fs.existsSync(abs)) { + stats = fs.statSync(abs); + if (stats.isDirectory()) continue; + headers = toHeaders(name, stats, isEtag); + headers['Cache-Control'] = isEtag ? 'no-cache' : 'no-store'; + return { abs, stats, headers }; + } + } +} + +function is404(req, res) { + return (res.statusCode=404,res.end()); +} + +function send(req, res, file, stats, headers) { + let code=200, tmp, opts={}; + headers = { ...headers }; + + for (let key in headers) { + tmp = res.getHeader(key); + if (tmp) headers[key] = tmp; + } + + if (tmp = res.getHeader('content-type')) { + headers['Content-Type'] = tmp; + } + + if (req.headers.range) { + code = 206; + let [x, y] = req.headers.range.replace('bytes=', '').split('-'); + let end = opts.end = parseInt(y, 10) || stats.size - 1; + let start = opts.start = parseInt(x, 10) || 0; + + if (end >= stats.size) { + end = stats.size - 1; + } + + if (start >= stats.size) { + res.setHeader('Content-Range', `bytes */${stats.size}`); + res.statusCode = 416; + return res.end(); + } + + headers['Content-Range'] = `bytes ${start}-${end}/${stats.size}`; + headers['Content-Length'] = (end - start + 1); + headers['Accept-Ranges'] = 'bytes'; + } + + res.writeHead(code, headers); + fs.createReadStream(file, opts).pipe(res); +} + +const ENCODING = { + '.br': 'br', + '.gz': 'gzip', +}; + +function toHeaders(name, stats, isEtag) { + let enc = ENCODING[name.slice(-3)]; + + let ctype = lookup(name.slice(0, enc && -3)) || ''; + if (ctype === 'text/html') ctype += ';charset=utf-8'; + + let headers = { + 'Content-Length': stats.size, + 'Content-Type': ctype, + 'Last-Modified': stats.mtime.toUTCString(), + }; + + if (enc) headers['Content-Encoding'] = enc; + if (isEtag) headers['ETag'] = `W/"${stats.size}-${stats.mtime.getTime()}"`; + + return headers; +} + +function sirv (dir, opts={}) { + dir = resolve(dir || '.'); + + let isNotFound = opts.onNoMatch || is404; + let setHeaders = opts.setHeaders || noop; + + let extensions = opts.extensions || ['html', 'htm']; + let gzips = opts.gzip && extensions.map(x => `${x}.gz`).concat('gz'); + let brots = opts.brotli && extensions.map(x => `${x}.br`).concat('br'); + + const FILES = {}; + + let fallback = '/'; + let isEtag = !!opts.etag; + let isSPA = !!opts.single; + if (typeof opts.single === 'string') { + let idx = opts.single.lastIndexOf('.'); + fallback += !!~idx ? opts.single.substring(0, idx) : opts.single; + } + + let ignores = []; + if (opts.ignores !== false) { + ignores.push(/[/]([A-Za-z\s\d~$._-]+\.\w+){1,}$/); // any extn + if (opts.dotfiles) ignores.push(/\/\.\w/); + else ignores.push(/\/\.well-known/); + [].concat(opts.ignores || []).forEach(x => { + ignores.push(new RegExp(x, 'i')); + }); + } + + let cc = opts.maxAge != null && `public,max-age=${opts.maxAge}`; + if (cc && opts.immutable) cc += ',immutable'; + else if (cc && opts.maxAge === 0) cc += ',must-revalidate'; + + if (!opts.dev) { + totalist(dir, (name, abs, stats) => { + if (/\.well-known[\\+\/]/.test(name)) ; // keep + else if (!opts.dotfiles && /(^\.|[\\+|\/+]\.)/.test(name)) return; + + let headers = toHeaders(name, stats, isEtag); + if (cc) headers['Cache-Control'] = cc; + + FILES['/' + name.normalize().replace(/\\+/g, '/')] = { abs, stats, headers }; + }); + } + + let lookup = opts.dev ? viaLocal.bind(0, dir, isEtag) : viaCache.bind(0, FILES); + + return function (req, res, next) { + let extns = ['']; + let pathname = parse$1(req).pathname; + let val = req.headers['accept-encoding'] || ''; + if (gzips && val.includes('gzip')) extns.unshift(...gzips); + if (brots && /(br|brotli)/i.test(val)) extns.unshift(...brots); + extns.push(...extensions); // [...br, ...gz, orig, ...exts] + + if (pathname.indexOf('%') !== -1) { + try { pathname = decodeURI(pathname); } + catch (err) { /* malform uri */ } + } + + let data = lookup(pathname, extns) || isSPA && !isMatch(pathname, ignores) && lookup(fallback, extns); + if (!data) return next ? next() : isNotFound(req, res); + + if (isEtag && req.headers['if-none-match'] === data.headers['ETag']) { + res.writeHead(304); + return res.end(); + } + + if (gzips || brots) { + res.setHeader('Vary', 'Accept-Encoding'); + } + + setHeaders(res, pathname, data.stats); + send(req, res, data.abs, data.stats, data.headers); + }; +} + +var setCookie = {exports: {}}; + +var defaultParseOptions = { + decodeValues: true, + map: false, + silent: false, +}; + +function isNonEmptyString(str) { + return typeof str === "string" && !!str.trim(); +} + +function parseString(setCookieValue, options) { + var parts = setCookieValue.split(";").filter(isNonEmptyString); + + var nameValuePairStr = parts.shift(); + var parsed = parseNameValuePair(nameValuePairStr); + var name = parsed.name; + var value = parsed.value; + + options = options + ? Object.assign({}, defaultParseOptions, options) + : defaultParseOptions; + + try { + value = options.decodeValues ? decodeURIComponent(value) : value; // decode cookie value + } catch (e) { + console.error( + "set-cookie-parser encountered an error while decoding a cookie with value '" + + value + + "'. Set options.decodeValues to false to disable this feature.", + e + ); + } + + var cookie = { + name: name, + value: value, + }; + + parts.forEach(function (part) { + var sides = part.split("="); + var key = sides.shift().trimLeft().toLowerCase(); + var value = sides.join("="); + if (key === "expires") { + cookie.expires = new Date(value); + } else if (key === "max-age") { + cookie.maxAge = parseInt(value, 10); + } else if (key === "secure") { + cookie.secure = true; + } else if (key === "httponly") { + cookie.httpOnly = true; + } else if (key === "samesite") { + cookie.sameSite = value; + } else { + cookie[key] = value; + } + }); + + return cookie; +} + +function parseNameValuePair(nameValuePairStr) { + // Parses name-value-pair according to rfc6265bis draft + + var name = ""; + var value = ""; + var nameValueArr = nameValuePairStr.split("="); + if (nameValueArr.length > 1) { + name = nameValueArr.shift(); + value = nameValueArr.join("="); // everything after the first =, joined by a "=" if there was more than one part + } else { + value = nameValuePairStr; + } + + return { name: name, value: value }; +} + +function parse(input, options) { + options = options + ? Object.assign({}, defaultParseOptions, options) + : defaultParseOptions; + + if (!input) { + if (!options.map) { + return []; + } else { + return {}; + } + } + + if (input.headers) { + if (typeof input.headers.getSetCookie === "function") { + // for fetch responses - they combine headers of the same type in the headers array, + // but getSetCookie returns an uncombined array + input = input.headers.getSetCookie(); + } else if (input.headers["set-cookie"]) { + // fast-path for node.js (which automatically normalizes header names to lower-case + input = input.headers["set-cookie"]; + } else { + // slow-path for other environments - see #25 + var sch = + input.headers[ + Object.keys(input.headers).find(function (key) { + return key.toLowerCase() === "set-cookie"; + }) + ]; + // warn if called on a request-like object with a cookie header rather than a set-cookie header - see #34, 36 + if (!sch && input.headers.cookie && !options.silent) { + console.warn( + "Warning: set-cookie-parser appears to have been called on a request object. It is designed to parse Set-Cookie headers from responses, not Cookie headers from requests. Set the option {silent: true} to suppress this warning." + ); + } + input = sch; + } + } + if (!Array.isArray(input)) { + input = [input]; + } + + options = options + ? Object.assign({}, defaultParseOptions, options) + : defaultParseOptions; + + if (!options.map) { + return input.filter(isNonEmptyString).map(function (str) { + return parseString(str, options); + }); + } else { + var cookies = {}; + return input.filter(isNonEmptyString).reduce(function (cookies, str) { + var cookie = parseString(str, options); + cookies[cookie.name] = cookie; + return cookies; + }, cookies); + } +} + +/* + Set-Cookie header field-values are sometimes comma joined in one string. This splits them without choking on commas + that are within a single set-cookie field-value, such as in the Expires portion. + + This is uncommon, but explicitly allowed - see https://tools.ietf.org/html/rfc2616#section-4.2 + Node.js does this for every header *except* set-cookie - see https://github.com/nodejs/node/blob/d5e363b77ebaf1caf67cd7528224b651c86815c1/lib/_http_incoming.js#L128 + React Native's fetch does this for *every* header, including set-cookie. + + Based on: https://github.com/google/j2objc/commit/16820fdbc8f76ca0c33472810ce0cb03d20efe25 + Credits to: https://github.com/tomball for original and https://github.com/chrusart for JavaScript implementation +*/ +function splitCookiesString(cookiesString) { + if (Array.isArray(cookiesString)) { + return cookiesString; + } + if (typeof cookiesString !== "string") { + return []; + } + + var cookiesStrings = []; + var pos = 0; + var start; + var ch; + var lastComma; + var nextStart; + var cookiesSeparatorFound; + + function skipWhitespace() { + while (pos < cookiesString.length && /\s/.test(cookiesString.charAt(pos))) { + pos += 1; + } + return pos < cookiesString.length; + } + + function notSpecialChar() { + ch = cookiesString.charAt(pos); + + return ch !== "=" && ch !== ";" && ch !== ","; + } + + while (pos < cookiesString.length) { + start = pos; + cookiesSeparatorFound = false; + + while (skipWhitespace()) { + ch = cookiesString.charAt(pos); + if (ch === ",") { + // ',' is a cookie separator if we have later first '=', not ';' or ',' + lastComma = pos; + pos += 1; + + skipWhitespace(); + nextStart = pos; + + while (pos < cookiesString.length && notSpecialChar()) { + pos += 1; + } + + // currently special character + if (pos < cookiesString.length && cookiesString.charAt(pos) === "=") { + // we found cookies separator + cookiesSeparatorFound = true; + // pos is inside the next cookie, so back up and return it. + pos = nextStart; + cookiesStrings.push(cookiesString.substring(start, lastComma)); + start = pos; + } else { + // in param ',' or param separator ';', + // we continue from that comma + pos = lastComma + 1; + } + } else { + pos += 1; + } + } + + if (!cookiesSeparatorFound || pos >= cookiesString.length) { + cookiesStrings.push(cookiesString.substring(start, cookiesString.length)); + } + } + + return cookiesStrings; +} + +setCookie.exports = parse; +setCookie.exports.parse = parse; +setCookie.exports.parseString = parseString; +var splitCookiesString_1 = setCookie.exports.splitCookiesString = splitCookiesString; + +/** + * An error that was thrown from within the SvelteKit runtime that is not fatal and doesn't result in a 500, such as a 404. + * `SvelteKitError` goes through `handleError`. + * @extends Error + */ +class SvelteKitError extends Error { + /** + * @param {number} status + * @param {string} text + * @param {string} message + */ + constructor(status, text, message) { + super(message); + this.status = status; + this.text = text; + } +} + +/** + * @param {import('http').IncomingMessage} req + * @param {number} [body_size_limit] + */ +function get_raw_body(req, body_size_limit) { + const h = req.headers; + + if (!h['content-type']) { + return null; + } + + const content_length = Number(h['content-length']); + + // check if no request body + if ( + (req.httpVersionMajor === 1 && isNaN(content_length) && h['transfer-encoding'] == null) || + content_length === 0 + ) { + return null; + } + + if (req.destroyed) { + const readable = new ReadableStream(); + readable.cancel(); + return readable; + } + + let size = 0; + let cancelled = false; + + return new ReadableStream({ + start(controller) { + if (body_size_limit !== undefined && content_length > body_size_limit) { + let message = `Content-length of ${content_length} exceeds limit of ${body_size_limit} bytes.`; + + if (body_size_limit === 0) { + // https://github.com/sveltejs/kit/pull/11589 + // TODO this exists to aid migration — remove in a future version + message += ' To disable body size limits, specify Infinity rather than 0.'; + } + + const error = new SvelteKitError(413, 'Payload Too Large', message); + + controller.error(error); + return; + } + + req.on('error', (error) => { + cancelled = true; + controller.error(error); + }); + + req.on('end', () => { + if (cancelled) return; + controller.close(); + }); + + req.on('data', (chunk) => { + if (cancelled) return; + + size += chunk.length; + if (size > content_length) { + cancelled = true; + + const constraint = content_length ? 'content-length' : 'BODY_SIZE_LIMIT'; + const message = `request body size exceeded ${constraint} of ${content_length}`; + + const error = new SvelteKitError(413, 'Payload Too Large', message); + controller.error(error); + + return; + } + + controller.enqueue(chunk); + + if (controller.desiredSize === null || controller.desiredSize <= 0) { + req.pause(); + } + }); + }, + + pull() { + req.resume(); + }, + + cancel(reason) { + cancelled = true; + req.destroy(reason); + } + }); +} + +/** + * @param {{ + * request: import('http').IncomingMessage; + * base: string; + * bodySizeLimit?: number; + * }} options + * @returns {Promise} + */ +async function getRequest({ request, base, bodySizeLimit }) { + return new Request(base + request.url, { + // @ts-expect-error + duplex: 'half', + method: request.method, + headers: /** @type {Record} */ (request.headers), + body: get_raw_body(request, bodySizeLimit) + }); +} + +/** + * @param {import('http').ServerResponse} res + * @param {Response} response + * @returns {Promise} + */ +async function setResponse(res, response) { + for (const [key, value] of response.headers) { + try { + res.setHeader( + key, + key === 'set-cookie' + ? splitCookiesString_1( + // This is absurd but necessary, TODO: investigate why + /** @type {string}*/ (response.headers.get(key)) + ) + : value + ); + } catch (error) { + res.getHeaderNames().forEach((name) => res.removeHeader(name)); + res.writeHead(500).end(String(error)); + return; + } + } + + res.writeHead(response.status); + + if (!response.body) { + res.end(); + return; + } + + if (response.body.locked) { + res.end( + 'Fatal error: Response body is locked. ' + + "This can happen when the response was already read (for example through 'response.json()' or 'response.text()')." + ); + return; + } + + const reader = response.body.getReader(); + + if (res.destroyed) { + reader.cancel(); + return; + } + + const cancel = (/** @type {Error|undefined} */ error) => { + res.off('close', cancel); + res.off('error', cancel); + + // If the reader has already been interrupted with an error earlier, + // then it will appear here, it is useless, but it needs to be catch. + reader.cancel(error).catch(() => {}); + if (error) res.destroy(error); + }; + + res.on('close', cancel); + res.on('error', cancel); + + next(); + async function next() { + try { + for (;;) { + const { done, value } = await reader.read(); + + if (done) break; + + if (!res.write(value)) { + res.once('drain', next); + return; + } + } + res.end(); + } catch (error) { + cancel(error instanceof Error ? error : new Error(String(error))); + } + } +} + +/* global "" */ + +const server = new Server(manifest); +await server.init({ env: process.env }); +const origin = env('ORIGIN', undefined); +const xff_depth = parseInt(env('XFF_DEPTH', '1')); +const address_header = env('ADDRESS_HEADER', '').toLowerCase(); +const protocol_header = env('PROTOCOL_HEADER', '').toLowerCase(); +const host_header = env('HOST_HEADER', 'host').toLowerCase(); +const port_header = env('PORT_HEADER', '').toLowerCase(); +const body_size_limit = Number(env('BODY_SIZE_LIMIT', '524288')); + +if (isNaN(body_size_limit)) { + throw new Error( + `Invalid BODY_SIZE_LIMIT: '${env('BODY_SIZE_LIMIT')}'. Please provide a numeric value.` + ); +} + +const dir = path.dirname(fileURLToPath(import.meta.url)); + +/** + * @param {string} path + * @param {boolean} client + */ +function serve(path, client = false) { + return ( + fs$1.existsSync(path) && + sirv(path, { + etag: true, + gzip: true, + brotli: true, + setHeaders: + client && + ((res, pathname) => { + // only apply to build directory, not e.g. version.json + if (pathname.startsWith(`/${manifest.appPath}/immutable/`) && res.statusCode === 200) { + res.setHeader('cache-control', 'public,max-age=31536000,immutable'); + } + }) + }) + ); +} + +// required because the static file server ignores trailing slashes +/** @returns {import('polka').Middleware} */ +function serve_prerendered() { + const handler = serve(path.join(dir, 'prerendered')); + + return (req, res, next) => { + let { pathname, search, query } = parse$1(req); + + try { + pathname = decodeURIComponent(pathname); + } catch { + // ignore invalid URI + } + + if (prerendered.has(pathname)) { + return handler(req, res, next); + } + + // remove or add trailing slash as appropriate + let location = pathname.at(-1) === '/' ? pathname.slice(0, -1) : pathname + '/'; + if (prerendered.has(location)) { + if (query) location += search; + res.writeHead(308, { location }).end(); + } else { + next(); + } + }; +} + +/** @type {import('polka').Middleware} */ +const ssr = async (req, res) => { + const request = await getRequest({ + base: origin || get_origin(req.headers), + request: req, + bodySizeLimit: body_size_limit + }); + + setResponse( + res, + await server.respond(request, { + platform: { req }, + getClientAddress: () => { + if (address_header) { + if (!(address_header in req.headers)) { + throw new Error( + `Address header was specified with ${ + "" + 'ADDRESS_HEADER' + }=${address_header} but is absent from request` + ); + } + + const value = /** @type {string} */ (req.headers[address_header]) || ''; + + if (address_header === 'x-forwarded-for') { + const addresses = value.split(','); + + if (xff_depth < 1) { + throw new Error(`${"" + 'XFF_DEPTH'} must be a positive integer`); + } + + if (xff_depth > addresses.length) { + throw new Error( + `${"" + 'XFF_DEPTH'} is ${xff_depth}, but only found ${ + addresses.length + } addresses` + ); + } + return addresses[addresses.length - xff_depth].trim(); + } + + return value; + } + + return ( + req.connection?.remoteAddress || + // @ts-expect-error + req.connection?.socket?.remoteAddress || + req.socket?.remoteAddress || + // @ts-expect-error + req.info?.remoteAddress + ); + } + }) + ); +}; + +/** @param {import('polka').Middleware[]} handlers */ +function sequence(handlers) { + /** @type {import('polka').Middleware} */ + return (req, res, next) => { + /** + * @param {number} i + * @returns {ReturnType} + */ + function handle(i) { + if (i < handlers.length) { + return handlers[i](req, res, () => handle(i + 1)); + } else { + return next(); + } + } + + return handle(0); + }; +} + +/** + * @param {import('http').IncomingHttpHeaders} headers + * @returns + */ +function get_origin(headers) { + const protocol = (protocol_header && headers[protocol_header]) || 'https'; + const host = headers[host_header]; + const port = port_header && headers[port_header]; + if (port) { + return `${protocol}://${host}:${port}`; + } else { + return `${protocol}://${host}`; + } +} + +const handler = sequence( + [ + serve(path.join(dir, 'client'), true), + serve(path.join(dir, 'static')), + serve_prerendered(), + ssr + ].filter(Boolean) +); + +export { handler }; diff --git a/build/index.js b/build/index.js new file mode 100644 index 0000000000000000000000000000000000000000..bd4529d6727d6767b234433d2cd4de8ac3d628a6 --- /dev/null +++ b/build/index.js @@ -0,0 +1,243 @@ +import { handler } from './handler.js'; +import { env } from './env.js'; +import http from 'http'; +import * as qs from 'querystring'; + +/** + * @param {string|RegExp} input The route pattern + * @param {boolean} [loose] Allow open-ended matching. Ignored with `RegExp` input. + */ +function parse$1(input, loose) { + if (input instanceof RegExp) return { keys:false, pattern:input }; + var c, o, tmp, ext, keys=[], pattern='', arr = input.split('/'); + arr[0] || arr.shift(); + + while (tmp = arr.shift()) { + c = tmp[0]; + if (c === '*') { + keys.push(c); + pattern += tmp[1] === '?' ? '(?:/(.*))?' : '/(.*)'; + } else if (c === ':') { + o = tmp.indexOf('?', 1); + ext = tmp.indexOf('.', 1); + keys.push( tmp.substring(1, !!~o ? o : !!~ext ? ext : tmp.length) ); + pattern += !!~o && !~ext ? '(?:/([^/]+?))?' : '/([^/]+?)'; + if (!!~ext) pattern += (!!~o ? '?' : '') + '\\' + tmp.substring(ext); + } else { + pattern += '/' + tmp; + } + } + + return { + keys: keys, + pattern: new RegExp('^' + pattern + (loose ? '(?=$|\/)' : '\/?$'), 'i') + }; +} + +const MAP = { + "": 0, + GET: 1, + HEAD: 2, + PATCH: 3, + OPTIONS: 4, + CONNECT: 5, + DELETE: 6, + TRACE: 7, + POST: 8, + PUT: 9, +}; + +class Trouter { + constructor() { + this.routes = []; + + this.all = this.add.bind(this, ''); + this.get = this.add.bind(this, 'GET'); + this.head = this.add.bind(this, 'HEAD'); + this.patch = this.add.bind(this, 'PATCH'); + this.options = this.add.bind(this, 'OPTIONS'); + this.connect = this.add.bind(this, 'CONNECT'); + this.delete = this.add.bind(this, 'DELETE'); + this.trace = this.add.bind(this, 'TRACE'); + this.post = this.add.bind(this, 'POST'); + this.put = this.add.bind(this, 'PUT'); + } + + use(route, ...fns) { + let handlers = [].concat.apply([], fns); + let { keys, pattern } = parse$1(route, true); + this.routes.push({ keys, pattern, method: '', handlers, midx: MAP[''] }); + return this; + } + + add(method, route, ...fns) { + let { keys, pattern } = parse$1(route); + let handlers = [].concat.apply([], fns); + this.routes.push({ keys, pattern, method, handlers, midx: MAP[method] }); + return this; + } + + find(method, url) { + let midx = MAP[method]; + let isHEAD = (midx === 2); + let i=0, j=0, k, tmp, arr=this.routes; + let matches=[], params={}, handlers=[]; + for (; i < arr.length; i++) { + tmp = arr[i]; + if (tmp.midx === midx || tmp.midx === 0 || (isHEAD && tmp.midx===1) ) { + if (tmp.keys === false) { + matches = tmp.pattern.exec(url); + if (matches === null) continue; + if (matches.groups !== void 0) for (k in matches.groups) params[k]=matches.groups[k]; + tmp.handlers.length > 1 ? (handlers=handlers.concat(tmp.handlers)) : handlers.push(tmp.handlers[0]); + } else if (tmp.keys.length > 0) { + matches = tmp.pattern.exec(url); + if (matches === null) continue; + for (j=0; j < tmp.keys.length;) params[tmp.keys[j]]=matches[++j]; + tmp.handlers.length > 1 ? (handlers=handlers.concat(tmp.handlers)) : handlers.push(tmp.handlers[0]); + } else if (tmp.pattern.test(url)) { + tmp.handlers.length > 1 ? (handlers=handlers.concat(tmp.handlers)) : handlers.push(tmp.handlers[0]); + } + } // else not a match + } + + return { params, handlers }; + } +} + +/** + * @typedef ParsedURL + * @type {import('.').ParsedURL} + */ + +/** + * @typedef Request + * @property {string} url + * @property {ParsedURL} _parsedUrl + */ + +/** + * @param {Request} req + * @returns {ParsedURL|void} + */ +function parse(req) { + let raw = req.url; + if (raw == null) return; + + let prev = req._parsedUrl; + if (prev && prev.raw === raw) return prev; + + let pathname=raw, search='', query; + + if (raw.length > 1) { + let idx = raw.indexOf('?', 1); + + if (idx !== -1) { + search = raw.substring(idx); + pathname = raw.substring(0, idx); + if (search.length > 1) { + query = qs.parse(search.substring(1)); + } + } + } + + return req._parsedUrl = { pathname, search, query, raw }; +} + +function onError(err, req, res) { + let code = typeof err.status === 'number' && err.status; + code = res.statusCode = (code && code >= 100 ? code : 500); + if (typeof err === 'string' || Buffer.isBuffer(err)) res.end(err); + else res.end(err.message || http.STATUS_CODES[code]); +} + +const mount = fn => fn instanceof Polka ? fn.attach : fn; + +class Polka extends Trouter { + constructor(opts={}) { + super(); + this.parse = parse; + this.server = opts.server; + this.handler = this.handler.bind(this); + this.onError = opts.onError || onError; // catch-all handler + this.onNoMatch = opts.onNoMatch || this.onError.bind(null, { status: 404 }); + this.attach = (req, res) => setImmediate(this.handler, req, res); + } + + use(base, ...fns) { + if (base === '/') { + super.use(base, fns.map(mount)); + } else if (typeof base === 'function' || base instanceof Polka) { + super.use('/', [base, ...fns].map(mount)); + } else { + super.use(base, + (req, _, next) => { + if (typeof base === 'string') { + let len = base.length; + base.startsWith('/') || len++; + req.url = req.url.substring(len) || '/'; + req.path = req.path.substring(len) || '/'; + } else { + req.url = req.url.replace(base, '') || '/'; + req.path = req.path.replace(base, '') || '/'; + } + if (req.url.charAt(0) !== '/') { + req.url = '/' + req.url; + } + next(); + }, + fns.map(mount), + (req, _, next) => { + req.path = req._parsedUrl.pathname; + req.url = req.path + req._parsedUrl.search; + next(); + } + ); + } + return this; // chainable + } + + listen() { + (this.server = this.server || http.createServer()).on('request', this.attach); + this.server.listen.apply(this.server, arguments); + return this; + } + + handler(req, res, next) { + let info = this.parse(req), path = info.pathname; + let obj = this.find(req.method, req.path=path); + + req.url = path + info.search; + req.originalUrl = req.originalUrl || req.url; + req.query = info.query || {}; + req.search = info.search; + req.params = obj.params; + + if (path.length > 1 && path.indexOf('%', 1) !== -1) { + for (let k in req.params) { + try { req.params[k] = decodeURIComponent(req.params[k]); } + catch (e) { /* malform uri segment */ } + } + } + + let i=0, arr=obj.handlers.concat(this.onNoMatch), len=arr.length; + let loop = async () => res.finished || (i < len) && arr[i++](req, res, next); + (next = next || (err => err ? this.onError(err, req, res, next) : loop().catch(next)))(); // init + } +} + +function polka (opts) { + return new Polka(opts); +} + +const path = env('SOCKET_PATH', false); +const host = env('HOST', '0.0.0.0'); +const port = env('PORT', !path && '3000'); + +const server = polka().use(handler); + +server.listen({ path, host, port }, () => { + console.log(`Listening on ${path ? path : host + ':' + port}`); +}); + +export { host, path, port, server }; diff --git a/build/prerendered/index.html b/build/prerendered/index.html new file mode 100644 index 0000000000000000000000000000000000000000..9bf62f26374da66d4cd270cd0568df89c2b5d80c --- /dev/null +++ b/build/prerendered/index.html @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + LLM demo app + + +
+
+ + +
+ + diff --git a/build/server/chunks/0-eJFvvclT.js b/build/server/chunks/0-eJFvvclT.js new file mode 100644 index 0000000000000000000000000000000000000000..b60dd8818ae8ab70a72bf0dd07bfd03516dcf05d --- /dev/null +++ b/build/server/chunks/0-eJFvvclT.js @@ -0,0 +1,9 @@ +const index = 0; +let component_cache; +const component = async () => component_cache ??= (await import('./_layout.svelte-NEEZmd_Y.js')).default; +const imports = ["_app/immutable/nodes/0.02SKRzLv.js","_app/immutable/chunks/scheduler.Ze4Bbz0A.js","_app/immutable/chunks/index.76WsQp4a.js"]; +const stylesheets = ["_app/immutable/assets/0.qDOF2h1a.css"]; +const fonts = ["_app/immutable/assets/fira-mono-cyrillic-ext-400-normal.dOGCK5uJ.woff2","_app/immutable/assets/fira-mono-all-400-normal.dpry7Ug7.woff","_app/immutable/assets/fira-mono-cyrillic-400-normal.N-vuOVMo.woff2","_app/immutable/assets/fira-mono-greek-ext-400-normal.rKiNtwjr.woff2","_app/immutable/assets/fira-mono-greek-400-normal.At854Oju.woff2","_app/immutable/assets/fira-mono-latin-ext-400-normal.-l34kfv6.woff2","_app/immutable/assets/fira-mono-latin-400-normal.yoy1YEIp.woff2"]; + +export { component, fonts, imports, index, stylesheets }; +//# sourceMappingURL=0-eJFvvclT.js.map diff --git a/build/server/chunks/0-eJFvvclT.js.map b/build/server/chunks/0-eJFvvclT.js.map new file mode 100644 index 0000000000000000000000000000000000000000..9db62aa089c77cb9685c0d1d61a51df5336cd621 --- /dev/null +++ b/build/server/chunks/0-eJFvvclT.js.map @@ -0,0 +1 @@ +{"version":3,"file":"0-eJFvvclT.js","sources":["../../../.svelte-kit/adapter-node/nodes/0.js"],"sourcesContent":["\n\nexport const index = 0;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/_layout.svelte.js')).default;\nexport const imports = [\"_app/immutable/nodes/0.02SKRzLv.js\",\"_app/immutable/chunks/scheduler.Ze4Bbz0A.js\",\"_app/immutable/chunks/index.76WsQp4a.js\"];\nexport const stylesheets = [\"_app/immutable/assets/0.qDOF2h1a.css\"];\nexport const fonts = [\"_app/immutable/assets/fira-mono-cyrillic-ext-400-normal.dOGCK5uJ.woff2\",\"_app/immutable/assets/fira-mono-all-400-normal.dpry7Ug7.woff\",\"_app/immutable/assets/fira-mono-cyrillic-400-normal.N-vuOVMo.woff2\",\"_app/immutable/assets/fira-mono-greek-ext-400-normal.rKiNtwjr.woff2\",\"_app/immutable/assets/fira-mono-greek-400-normal.At854Oju.woff2\",\"_app/immutable/assets/fira-mono-latin-ext-400-normal.-l34kfv6.woff2\",\"_app/immutable/assets/fira-mono-latin-400-normal.yoy1YEIp.woff2\"];\n"],"names":[],"mappings":"AAEY,MAAC,KAAK,GAAG,EAAE;AACvB,IAAI,eAAe,CAAC;AACR,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,8BAAoC,CAAC,EAAE,QAAQ;AAC1G,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,6CAA6C,CAAC,yCAAyC,EAAE;AAC1I,MAAC,WAAW,GAAG,CAAC,sCAAsC,EAAE;AACxD,MAAC,KAAK,GAAG,CAAC,wEAAwE,CAAC,8DAA8D,CAAC,oEAAoE,CAAC,qEAAqE,CAAC,iEAAiE,CAAC,qEAAqE,CAAC,iEAAiE;;;;"} \ No newline at end of file diff --git a/build/server/chunks/1--tiSlSo4.js b/build/server/chunks/1--tiSlSo4.js new file mode 100644 index 0000000000000000000000000000000000000000..95a6c2d072e9fc67b509cd7cfb5110e64a09ba06 --- /dev/null +++ b/build/server/chunks/1--tiSlSo4.js @@ -0,0 +1,9 @@ +const index = 1; +let component_cache; +const component = async () => component_cache ??= (await import('./error.svelte-CXA0L2a-.js')).default; +const imports = ["_app/immutable/nodes/1.tb5yMBO_.js","_app/immutable/chunks/scheduler.Ze4Bbz0A.js","_app/immutable/chunks/index.76WsQp4a.js","_app/immutable/chunks/entry.PoeC27Kh.js"]; +const stylesheets = []; +const fonts = []; + +export { component, fonts, imports, index, stylesheets }; +//# sourceMappingURL=1--tiSlSo4.js.map diff --git a/build/server/chunks/1--tiSlSo4.js.map b/build/server/chunks/1--tiSlSo4.js.map new file mode 100644 index 0000000000000000000000000000000000000000..1208aed322b61b620321fa560225a812126f5d8e --- /dev/null +++ b/build/server/chunks/1--tiSlSo4.js.map @@ -0,0 +1 @@ +{"version":3,"file":"1--tiSlSo4.js","sources":["../../../.svelte-kit/adapter-node/nodes/1.js"],"sourcesContent":["\n\nexport const index = 1;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/fallbacks/error.svelte.js')).default;\nexport const imports = [\"_app/immutable/nodes/1.tb5yMBO_.js\",\"_app/immutable/chunks/scheduler.Ze4Bbz0A.js\",\"_app/immutable/chunks/index.76WsQp4a.js\",\"_app/immutable/chunks/entry.PoeC27Kh.js\"];\nexport const stylesheets = [];\nexport const fonts = [];\n"],"names":[],"mappings":"AAEY,MAAC,KAAK,GAAG,EAAE;AACvB,IAAI,eAAe,CAAC;AACR,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,4BAAsC,CAAC,EAAE,QAAQ;AAC5G,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,6CAA6C,CAAC,yCAAyC,CAAC,yCAAyC,EAAE;AACpL,MAAC,WAAW,GAAG,GAAG;AAClB,MAAC,KAAK,GAAG;;;;"} \ No newline at end of file diff --git a/build/server/chunks/1-G1fqZ8t9.js b/build/server/chunks/1-G1fqZ8t9.js new file mode 100644 index 0000000000000000000000000000000000000000..0ed34ca1890614f207b98918d87c31f94c9b0c73 --- /dev/null +++ b/build/server/chunks/1-G1fqZ8t9.js @@ -0,0 +1,9 @@ +const index = 1; +let component_cache; +const component = async () => component_cache ??= (await import('./error.svelte-CXA0L2a-.js')).default; +const imports = ["_app/immutable/nodes/1.C4yRnS3z.js","_app/immutable/chunks/scheduler.Ze4Bbz0A.js","_app/immutable/chunks/index.76WsQp4a.js","_app/immutable/chunks/entry.6sYS-0PY.js"]; +const stylesheets = []; +const fonts = []; + +export { component, fonts, imports, index, stylesheets }; +//# sourceMappingURL=1-G1fqZ8t9.js.map diff --git a/build/server/chunks/1-G1fqZ8t9.js.map b/build/server/chunks/1-G1fqZ8t9.js.map new file mode 100644 index 0000000000000000000000000000000000000000..e4151f52fb22287bf4bd10aeef2049222a2c3a7d --- /dev/null +++ b/build/server/chunks/1-G1fqZ8t9.js.map @@ -0,0 +1 @@ +{"version":3,"file":"1-G1fqZ8t9.js","sources":["../../../.svelte-kit/adapter-node/nodes/1.js"],"sourcesContent":["\n\nexport const index = 1;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/fallbacks/error.svelte.js')).default;\nexport const imports = [\"_app/immutable/nodes/1.C4yRnS3z.js\",\"_app/immutable/chunks/scheduler.Ze4Bbz0A.js\",\"_app/immutable/chunks/index.76WsQp4a.js\",\"_app/immutable/chunks/entry.6sYS-0PY.js\"];\nexport const stylesheets = [];\nexport const fonts = [];\n"],"names":[],"mappings":"AAEY,MAAC,KAAK,GAAG,EAAE;AACvB,IAAI,eAAe,CAAC;AACR,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,4BAAsC,CAAC,EAAE,QAAQ;AAC5G,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,6CAA6C,CAAC,yCAAyC,CAAC,yCAAyC,EAAE;AACpL,MAAC,WAAW,GAAG,GAAG;AAClB,MAAC,KAAK,GAAG;;;;"} \ No newline at end of file diff --git a/build/server/chunks/FullTextSearchService-12fm-h8u.js b/build/server/chunks/FullTextSearchService-12fm-h8u.js new file mode 100644 index 0000000000000000000000000000000000000000..af4e577574757e91c882242f01fa8980d0651a56 --- /dev/null +++ b/build/server/chunks/FullTextSearchService-12fm-h8u.js @@ -0,0 +1,40 @@ +class FullTextSearchService { + url = ""; + constructor(url) { + this.url = url; + } + async health() { + const r = await fetch(`${this.url}/health`, { + method: "GET", + headers: { + "Content-Type": "application/json" + } + }); + const data = await r.json(); + if (data.status === "ok") { + return data.status; + } + return "unavailable"; + } + async search(query, { abortController }) { + const r = await fetch(`${this.url}/search`, { + method: "POST", + headers: { + "Content-Type": "application/json" + }, + body: JSON.stringify({ + "query": query, + "top": 10 + }), + signal: abortController.signal + }); + if (!r.ok) { + throw new Error(`Failed to load search results: ${await r.text()}`); + } + const data = await r.json(); + return data; + } +} + +export { FullTextSearchService as F }; +//# sourceMappingURL=FullTextSearchService-12fm-h8u.js.map diff --git a/build/server/chunks/FullTextSearchService-12fm-h8u.js.map b/build/server/chunks/FullTextSearchService-12fm-h8u.js.map new file mode 100644 index 0000000000000000000000000000000000000000..1ba6e3ab0e5e3bc4c7d6ba9706409caadb4c7a3f --- /dev/null +++ b/build/server/chunks/FullTextSearchService-12fm-h8u.js.map @@ -0,0 +1 @@ +{"version":3,"file":"FullTextSearchService-12fm-h8u.js","sources":["../../../.svelte-kit/adapter-node/chunks/FullTextSearchService.js"],"sourcesContent":["class FullTextSearchService {\n url = \"\";\n constructor(url) {\n this.url = url;\n }\n async health() {\n const r = await fetch(`${this.url}/health`, {\n method: \"GET\",\n headers: {\n \"Content-Type\": \"application/json\"\n }\n });\n const data = await r.json();\n if (data.status === \"ok\") {\n return data.status;\n }\n return \"unavailable\";\n }\n async search(query, { abortController }) {\n const r = await fetch(`${this.url}/search`, {\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json\"\n },\n body: JSON.stringify({\n \"query\": query,\n \"top\": 10\n }),\n signal: abortController.signal\n });\n if (!r.ok) {\n throw new Error(`Failed to load search results: ${await r.text()}`);\n }\n const data = await r.json();\n return data;\n }\n}\nexport {\n FullTextSearchService as F\n};\n"],"names":[],"mappings":"AAAA,MAAM,qBAAqB,CAAC;AAC5B,EAAE,GAAG,GAAG,EAAE,CAAC;AACX,EAAE,WAAW,CAAC,GAAG,EAAE;AACnB,IAAI,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;AACnB,GAAG;AACH,EAAE,MAAM,MAAM,GAAG;AACjB,IAAI,MAAM,CAAC,GAAG,MAAM,KAAK,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE;AAChD,MAAM,MAAM,EAAE,KAAK;AACnB,MAAM,OAAO,EAAE;AACf,QAAQ,cAAc,EAAE,kBAAkB;AAC1C,OAAO;AACP,KAAK,CAAC,CAAC;AACP,IAAI,MAAM,IAAI,GAAG,MAAM,CAAC,CAAC,IAAI,EAAE,CAAC;AAChC,IAAI,IAAI,IAAI,CAAC,MAAM,KAAK,IAAI,EAAE;AAC9B,MAAM,OAAO,IAAI,CAAC,MAAM,CAAC;AACzB,KAAK;AACL,IAAI,OAAO,aAAa,CAAC;AACzB,GAAG;AACH,EAAE,MAAM,MAAM,CAAC,KAAK,EAAE,EAAE,eAAe,EAAE,EAAE;AAC3C,IAAI,MAAM,CAAC,GAAG,MAAM,KAAK,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE;AAChD,MAAM,MAAM,EAAE,MAAM;AACpB,MAAM,OAAO,EAAE;AACf,QAAQ,cAAc,EAAE,kBAAkB;AAC1C,OAAO;AACP,MAAM,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC;AAC3B,QAAQ,OAAO,EAAE,KAAK;AACtB,QAAQ,KAAK,EAAE,EAAE;AACjB,OAAO,CAAC;AACR,MAAM,MAAM,EAAE,eAAe,CAAC,MAAM;AACpC,KAAK,CAAC,CAAC;AACP,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE;AACf,MAAM,MAAM,IAAI,KAAK,CAAC,CAAC,+BAA+B,EAAE,MAAM,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;AAC1E,KAAK;AACL,IAAI,MAAM,IAAI,GAAG,MAAM,CAAC,CAAC,IAAI,EAAE,CAAC;AAChC,IAAI,OAAO,IAAI,CAAC;AAChB,GAAG;AACH;;;;"} \ No newline at end of file diff --git a/build/server/chunks/LlamaCppService-Bqc2roDm.js b/build/server/chunks/LlamaCppService-Bqc2roDm.js new file mode 100644 index 0000000000000000000000000000000000000000..3659111b63fcc61169cc6a799b52e48df6ebf16c --- /dev/null +++ b/build/server/chunks/LlamaCppService-Bqc2roDm.js @@ -0,0 +1,184 @@ +import { existsSync, mkdirSync, writeFileSync } from 'fs'; +import { resolve } from 'path'; +import { d as private_env } from './shared-server-49TKSBDM.js'; + +class LlamaCppService { + url = ""; + constructor(url) { + this.url = url; + } + async health() { + const r = await fetch(`${this.url}/health`, { + method: "GET", + headers: { + "Content-Type": "application/json" + } + }); + const data = await r.json(); + if (data.status === "ok" || data.status === "error" || data.status === "loading model") { + return data.status; + } + return "unavailable"; + } + async tokenize(prompt, abortController) { + const response = await fetch(`${this.url}/tokenize`, { + method: "POST", + headers: { + "Content-Type": "application/json" + }, + body: JSON.stringify({ + "content": prompt + }), + signal: abortController.signal + }); + if (response.ok) { + const data = await response.json(); + if (data.tokens) { + return data.tokens; + } + } else if (response.status === 404) { + console.log("Tokenization endpoint not found (404)."); + } else { + console.log(`Failed to tokenize: ${await response.text()}`); + } + return null; + } + async detokenize(tokens, abortController) { + const response = await fetch(`${this.url}/detokenize`, { + method: "POST", + headers: { + "Content-Type": "application/json" + }, + body: JSON.stringify({ + "tokens": tokens + }), + signal: abortController.signal + }); + if (response.ok) { + const data = await response.json(); + if (data.content) { + return data.content.trim(); + } + } else if (response.status === 404) { + console.log("Detokenization endpoint not found (404)."); + } else { + console.log(`Failed to detokenize: ${await response.text()}`); + } + return null; + } + predict(prompt, { abortController }) { + return async ({ prompt: prompt2 }) => { + console.log(prompt2.length); + let tokens = await this.tokenize(prompt2, abortController); + if (tokens !== null) { + console.log("tokens: " + tokens.length); + tokens = tokens.slice(0, 30700); + const detokenizedPrompt = await this.detokenize(tokens, abortController); + if (detokenizedPrompt !== null) { + prompt2 = detokenizedPrompt; + } else { + prompt2 = prompt2.substring(0, 32768); + } + } else { + prompt2 = prompt2.substring(0, 32768); + } + console.log(prompt2.length); + const r = await fetch(`${this.url}/completion`, { + method: "POST", + headers: { + "Content-Type": "application/json", + "Accept": "text/event-stream" + }, + body: JSON.stringify({ + "stream": true, + "n_predict": 2e3, + "temperature": 0.2, + "stop": ["", "bot:", "user:"], + // "repeat_last_n": 256, + "repeat_penalty": 1, + "top_k": 40, + "top_p": 0.95, + "min_p": 0.05, + "seed": 42, + "n_keep": 0, + // "tfs_z": 1, + // "typical_p": 1, + // "presence_penalty": 0, + // "frequency_penalty": 0, + // "mirostat": 0, + // "mirostat_tau": 5, + // "mirostat_eta": 0.1, + // // "grammar": "", + // "n_probs": 0, + // "image_data": [], + "cache_prompt": false, + // "api_key": "", + // "slot_id": 0, + "prompt": "[INST]" + prompt2 + "[/INST]" + }), + signal: abortController.signal + }); + if (!r.ok) { + throw new Error(`Failed to generate text: ${await r.text()}`); + } + const encoder = new TextDecoderStream(); + const reader = r.body?.pipeThrough(encoder).getReader(); + let t = this; + return async function* () { + let stop = false; + let generatedText = ""; + let tokenId = 0; + while (!stop) { + const out = await reader?.read() ?? { done: false, value: void 0 }; + if (out.done) { + reader?.cancel(); + t.createLogFile(`Request: +${prompt2} + +Response: +${generatedText}`); + return; + } + if (!out.value) { + reader?.cancel(); + return; + } + let tokenValue = ""; + if (out.value.startsWith("data: ")) { + try { + let data2 = JSON.parse(out.value.slice(6)); + tokenValue = data2.content; + } catch (e) { + } + } else if (private_env.LLM_API_VERSION == "v1") { + tokenValue = out.value; + } + generatedText += tokenValue.replace("", "") ?? ""; + yield { + token: { + id: tokenId++, + text: tokenValue.replace("", "") ?? "", + logprob: 0, + special: false + }, + generated_text: null, + details: null + }; + } + }(); + }; + } + createLogFile(text) { + const logsDirectory = resolve("/logs"); + if (!existsSync(logsDirectory)) { + mkdirSync(logsDirectory); + } + const timestamp = (/* @__PURE__ */ new Date()).toISOString().replace(/[:.]/g, ""); + const logFilePath = resolve(logsDirectory, `${timestamp}.log`); + writeFileSync(logFilePath, text); + console.log(`Log file created: ${logFilePath}`); + } +} + +export { LlamaCppService as L }; +//# sourceMappingURL=LlamaCppService-Bqc2roDm.js.map diff --git a/build/server/chunks/LlamaCppService-Bqc2roDm.js.map b/build/server/chunks/LlamaCppService-Bqc2roDm.js.map new file mode 100644 index 0000000000000000000000000000000000000000..5b1c596b4470ec082c6385df8c7107d968f762e7 --- /dev/null +++ b/build/server/chunks/LlamaCppService-Bqc2roDm.js.map @@ -0,0 +1 @@ +{"version":3,"file":"LlamaCppService-Bqc2roDm.js","sources":["../../../.svelte-kit/adapter-node/chunks/LlamaCppService.js"],"sourcesContent":["import { existsSync, mkdirSync, writeFileSync } from \"fs\";\nimport { resolve } from \"path\";\nimport { d as private_env } from \"./shared-server.js\";\nclass LlamaCppService {\n url = \"\";\n constructor(url) {\n this.url = url;\n }\n async health() {\n const r = await fetch(`${this.url}/health`, {\n method: \"GET\",\n headers: {\n \"Content-Type\": \"application/json\"\n }\n });\n const data = await r.json();\n if (data.status === \"ok\" || data.status === \"error\" || data.status === \"loading model\") {\n return data.status;\n }\n return \"unavailable\";\n }\n async tokenize(prompt, abortController) {\n const response = await fetch(`${this.url}/tokenize`, {\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json\"\n },\n body: JSON.stringify({\n \"content\": prompt\n }),\n signal: abortController.signal\n });\n if (response.ok) {\n const data = await response.json();\n if (data.tokens) {\n return data.tokens;\n }\n } else if (response.status === 404) {\n console.log(\"Tokenization endpoint not found (404).\");\n } else {\n console.log(`Failed to tokenize: ${await response.text()}`);\n }\n return null;\n }\n async detokenize(tokens, abortController) {\n const response = await fetch(`${this.url}/detokenize`, {\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json\"\n },\n body: JSON.stringify({\n \"tokens\": tokens\n }),\n signal: abortController.signal\n });\n if (response.ok) {\n const data = await response.json();\n if (data.content) {\n return data.content.trim();\n }\n } else if (response.status === 404) {\n console.log(\"Detokenization endpoint not found (404).\");\n } else {\n console.log(`Failed to detokenize: ${await response.text()}`);\n }\n return null;\n }\n predict(prompt, { abortController }) {\n return async ({ prompt: prompt2 }) => {\n console.log(prompt2.length);\n let tokens = await this.tokenize(prompt2, abortController);\n if (tokens !== null) {\n console.log(\"tokens: \" + tokens.length);\n tokens = tokens.slice(0, 30700);\n const detokenizedPrompt = await this.detokenize(tokens, abortController);\n if (detokenizedPrompt !== null) {\n prompt2 = detokenizedPrompt;\n } else {\n prompt2 = prompt2.substring(0, 32768);\n }\n } else {\n prompt2 = prompt2.substring(0, 32768);\n }\n console.log(prompt2.length);\n const r = await fetch(`${this.url}/completion`, {\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json\",\n \"Accept\": \"text/event-stream\"\n },\n body: JSON.stringify({\n \"stream\": true,\n \"n_predict\": 2e3,\n \"temperature\": 0.2,\n \"stop\": [\"\", \"bot:\", \"user:\"],\n // \"repeat_last_n\": 256,\n \"repeat_penalty\": 1,\n \"top_k\": 40,\n \"top_p\": 0.95,\n \"min_p\": 0.05,\n \"seed\": 42,\n \"n_keep\": 0,\n // \"tfs_z\": 1,\n // \"typical_p\": 1,\n // \"presence_penalty\": 0,\n // \"frequency_penalty\": 0,\n // \"mirostat\": 0,\n // \"mirostat_tau\": 5,\n // \"mirostat_eta\": 0.1,\n // // \"grammar\": \"\", \n // \"n_probs\": 0,\n // \"image_data\": [], \n \"cache_prompt\": false,\n // \"api_key\": \"\", \n // \"slot_id\": 0, \n \"prompt\": \"[INST]\" + prompt2 + \"[/INST]\"\n }),\n signal: abortController.signal\n });\n if (!r.ok) {\n throw new Error(`Failed to generate text: ${await r.text()}`);\n }\n const encoder = new TextDecoderStream();\n const reader = r.body?.pipeThrough(encoder).getReader();\n let t = this;\n return async function* () {\n let stop = false;\n let generatedText = \"\";\n let tokenId = 0;\n while (!stop) {\n const out = await reader?.read() ?? { done: false, value: void 0 };\n if (out.done) {\n reader?.cancel();\n t.createLogFile(`Request:\n${prompt2} \n\nResponse:\n${generatedText}`);\n return;\n }\n if (!out.value) {\n reader?.cancel();\n return;\n }\n let tokenValue = \"\";\n if (out.value.startsWith(\"data: \")) {\n try {\n let data2 = JSON.parse(out.value.slice(6));\n tokenValue = data2.content;\n } catch (e) {\n }\n } else if (private_env.LLM_API_VERSION == \"v1\") {\n tokenValue = out.value;\n }\n generatedText += tokenValue.replace(\"\", \"\") ?? \"\";\n yield {\n token: {\n id: tokenId++,\n text: tokenValue.replace(\"\", \"\") ?? \"\",\n logprob: 0,\n special: false\n },\n generated_text: null,\n details: null\n };\n }\n }();\n };\n }\n createLogFile(text) {\n const logsDirectory = resolve(\"/logs\");\n if (!existsSync(logsDirectory)) {\n mkdirSync(logsDirectory);\n }\n const timestamp = (/* @__PURE__ */ new Date()).toISOString().replace(/[:.]/g, \"\");\n const logFilePath = resolve(logsDirectory, `${timestamp}.log`);\n writeFileSync(logFilePath, text);\n console.log(`Log file created: ${logFilePath}`);\n }\n}\nexport {\n LlamaCppService as L\n};\n"],"names":[],"mappings":";;;;AAGA,MAAM,eAAe,CAAC;AACtB,EAAE,GAAG,GAAG,EAAE,CAAC;AACX,EAAE,WAAW,CAAC,GAAG,EAAE;AACnB,IAAI,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;AACnB,GAAG;AACH,EAAE,MAAM,MAAM,GAAG;AACjB,IAAI,MAAM,CAAC,GAAG,MAAM,KAAK,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE;AAChD,MAAM,MAAM,EAAE,KAAK;AACnB,MAAM,OAAO,EAAE;AACf,QAAQ,cAAc,EAAE,kBAAkB;AAC1C,OAAO;AACP,KAAK,CAAC,CAAC;AACP,IAAI,MAAM,IAAI,GAAG,MAAM,CAAC,CAAC,IAAI,EAAE,CAAC;AAChC,IAAI,IAAI,IAAI,CAAC,MAAM,KAAK,IAAI,IAAI,IAAI,CAAC,MAAM,KAAK,OAAO,IAAI,IAAI,CAAC,MAAM,KAAK,eAAe,EAAE;AAC5F,MAAM,OAAO,IAAI,CAAC,MAAM,CAAC;AACzB,KAAK;AACL,IAAI,OAAO,aAAa,CAAC;AACzB,GAAG;AACH,EAAE,MAAM,QAAQ,CAAC,MAAM,EAAE,eAAe,EAAE;AAC1C,IAAI,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC,EAAE;AACzD,MAAM,MAAM,EAAE,MAAM;AACpB,MAAM,OAAO,EAAE;AACf,QAAQ,cAAc,EAAE,kBAAkB;AAC1C,OAAO;AACP,MAAM,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC;AAC3B,QAAQ,SAAS,EAAE,MAAM;AACzB,OAAO,CAAC;AACR,MAAM,MAAM,EAAE,eAAe,CAAC,MAAM;AACpC,KAAK,CAAC,CAAC;AACP,IAAI,IAAI,QAAQ,CAAC,EAAE,EAAE;AACrB,MAAM,MAAM,IAAI,GAAG,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;AACzC,MAAM,IAAI,IAAI,CAAC,MAAM,EAAE;AACvB,QAAQ,OAAO,IAAI,CAAC,MAAM,CAAC;AAC3B,OAAO;AACP,KAAK,MAAM,IAAI,QAAQ,CAAC,MAAM,KAAK,GAAG,EAAE;AACxC,MAAM,OAAO,CAAC,GAAG,CAAC,wCAAwC,CAAC,CAAC;AAC5D,KAAK,MAAM;AACX,MAAM,OAAO,CAAC,GAAG,CAAC,CAAC,oBAAoB,EAAE,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;AAClE,KAAK;AACL,IAAI,OAAO,IAAI,CAAC;AAChB,GAAG;AACH,EAAE,MAAM,UAAU,CAAC,MAAM,EAAE,eAAe,EAAE;AAC5C,IAAI,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,WAAW,CAAC,EAAE;AAC3D,MAAM,MAAM,EAAE,MAAM;AACpB,MAAM,OAAO,EAAE;AACf,QAAQ,cAAc,EAAE,kBAAkB;AAC1C,OAAO;AACP,MAAM,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC;AAC3B,QAAQ,QAAQ,EAAE,MAAM;AACxB,OAAO,CAAC;AACR,MAAM,MAAM,EAAE,eAAe,CAAC,MAAM;AACpC,KAAK,CAAC,CAAC;AACP,IAAI,IAAI,QAAQ,CAAC,EAAE,EAAE;AACrB,MAAM,MAAM,IAAI,GAAG,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;AACzC,MAAM,IAAI,IAAI,CAAC,OAAO,EAAE;AACxB,QAAQ,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;AACnC,OAAO;AACP,KAAK,MAAM,IAAI,QAAQ,CAAC,MAAM,KAAK,GAAG,EAAE;AACxC,MAAM,OAAO,CAAC,GAAG,CAAC,0CAA0C,CAAC,CAAC;AAC9D,KAAK,MAAM;AACX,MAAM,OAAO,CAAC,GAAG,CAAC,CAAC,sBAAsB,EAAE,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;AACpE,KAAK;AACL,IAAI,OAAO,IAAI,CAAC;AAChB,GAAG;AACH,EAAE,OAAO,CAAC,MAAM,EAAE,EAAE,eAAe,EAAE,EAAE;AACvC,IAAI,OAAO,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK;AAC1C,MAAM,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;AAClC,MAAM,IAAI,MAAM,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE,eAAe,CAAC,CAAC;AACjE,MAAM,IAAI,MAAM,KAAK,IAAI,EAAE;AAC3B,QAAQ,OAAO,CAAC,GAAG,CAAC,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC;AAChD,QAAQ,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC;AACxC,QAAQ,MAAM,iBAAiB,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;AACjF,QAAQ,IAAI,iBAAiB,KAAK,IAAI,EAAE;AACxC,UAAU,OAAO,GAAG,iBAAiB,CAAC;AACtC,SAAS,MAAM;AACf,UAAU,OAAO,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC;AAChD,SAAS;AACT,OAAO,MAAM;AACb,QAAQ,OAAO,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC;AAC9C,OAAO;AACP,MAAM,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;AAClC,MAAM,MAAM,CAAC,GAAG,MAAM,KAAK,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,WAAW,CAAC,EAAE;AACtD,QAAQ,MAAM,EAAE,MAAM;AACtB,QAAQ,OAAO,EAAE;AACjB,UAAU,cAAc,EAAE,kBAAkB;AAC5C,UAAU,QAAQ,EAAE,mBAAmB;AACvC,SAAS;AACT,QAAQ,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC;AAC7B,UAAU,QAAQ,EAAE,IAAI;AACxB,UAAU,WAAW,EAAE,GAAG;AAC1B,UAAU,aAAa,EAAE,GAAG;AAC5B,UAAU,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC;AAC3C;AACA,UAAU,gBAAgB,EAAE,CAAC;AAC7B,UAAU,OAAO,EAAE,EAAE;AACrB,UAAU,OAAO,EAAE,IAAI;AACvB,UAAU,OAAO,EAAE,IAAI;AACvB,UAAU,MAAM,EAAE,EAAE;AACpB,UAAU,QAAQ,EAAE,CAAC;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU,cAAc,EAAE,KAAK;AAC/B;AACA;AACA,UAAU,QAAQ,EAAE,QAAQ,GAAG,OAAO,GAAG,SAAS;AAClD,SAAS,CAAC;AACV,QAAQ,MAAM,EAAE,eAAe,CAAC,MAAM;AACtC,OAAO,CAAC,CAAC;AACT,MAAM,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE;AACjB,QAAQ,MAAM,IAAI,KAAK,CAAC,CAAC,yBAAyB,EAAE,MAAM,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;AACtE,OAAO;AACP,MAAM,MAAM,OAAO,GAAG,IAAI,iBAAiB,EAAE,CAAC;AAC9C,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,IAAI,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC,SAAS,EAAE,CAAC;AAC9D,MAAM,IAAI,CAAC,GAAG,IAAI,CAAC;AACnB,MAAM,OAAO,mBAAmB;AAChC,QAAQ,IAAI,IAAI,GAAG,KAAK,CAAC;AACzB,QAAQ,IAAI,aAAa,GAAG,EAAE,CAAC;AAC/B,QAAQ,IAAI,OAAO,GAAG,CAAC,CAAC;AACxB,QAAQ,OAAO,CAAC,IAAI,EAAE;AACtB,UAAU,MAAM,GAAG,GAAG,MAAM,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC;AAC7E,UAAU,IAAI,GAAG,CAAC,IAAI,EAAE;AACxB,YAAY,MAAM,EAAE,MAAM,EAAE,CAAC;AAC7B,YAAY,CAAC,CAAC,aAAa,CAAC,CAAC;AAC7B,EAAE,OAAO,CAAC;AACV;AACA;AACA,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;AACnB,YAAY,OAAO;AACnB,WAAW;AACX,UAAU,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE;AAC1B,YAAY,MAAM,EAAE,MAAM,EAAE,CAAC;AAC7B,YAAY,OAAO;AACnB,WAAW;AACX,UAAU,IAAI,UAAU,GAAG,EAAE,CAAC;AAC9B,UAAU,IAAI,GAAG,CAAC,KAAK,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE;AAC9C,YAAY,IAAI;AAChB,cAAc,IAAI,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;AACzD,cAAc,UAAU,GAAG,KAAK,CAAC,OAAO,CAAC;AACzC,aAAa,CAAC,OAAO,CAAC,EAAE;AACxB,aAAa;AACb,WAAW,MAAM,IAAI,WAAW,CAAC,eAAe,IAAI,IAAI,EAAE;AAC1D,YAAY,UAAU,GAAG,GAAG,CAAC,KAAK,CAAC;AACnC,WAAW;AACX,UAAU,aAAa,IAAI,UAAU,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,IAAI,EAAE,CAAC;AAChE,UAAU,MAAM;AAChB,YAAY,KAAK,EAAE;AACnB,cAAc,EAAE,EAAE,OAAO,EAAE;AAC3B,cAAc,IAAI,EAAE,UAAU,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,IAAI,EAAE;AACxD,cAAc,OAAO,EAAE,CAAC;AACxB,cAAc,OAAO,EAAE,KAAK;AAC5B,aAAa;AACb,YAAY,cAAc,EAAE,IAAI;AAChC,YAAY,OAAO,EAAE,IAAI;AACzB,WAAW,CAAC;AACZ,SAAS;AACT,OAAO,EAAE,CAAC;AACV,KAAK,CAAC;AACN,GAAG;AACH,EAAE,aAAa,CAAC,IAAI,EAAE;AACtB,IAAI,MAAM,aAAa,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;AAC3C,IAAI,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,EAAE;AACpC,MAAM,SAAS,CAAC,aAAa,CAAC,CAAC;AAC/B,KAAK;AACL,IAAI,MAAM,SAAS,GAAG,iBAAiB,IAAI,IAAI,EAAE,EAAE,WAAW,EAAE,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;AACtF,IAAI,MAAM,WAAW,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC,EAAE,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC;AACnE,IAAI,aAAa,CAAC,WAAW,EAAE,IAAI,CAAC,CAAC;AACrC,IAAI,OAAO,CAAC,GAAG,CAAC,CAAC,kBAAkB,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC;AACpD,GAAG;AACH;;;;"} \ No newline at end of file diff --git a/build/server/chunks/_layout.svelte-NEEZmd_Y.js b/build/server/chunks/_layout.svelte-NEEZmd_Y.js new file mode 100644 index 0000000000000000000000000000000000000000..c917e7994f5f1696227ff176444081cf0feecc30 --- /dev/null +++ b/build/server/chunks/_layout.svelte-NEEZmd_Y.js @@ -0,0 +1,16 @@ +import { c as create_ssr_component, v as validate_component } from './ssr-jUwReIMa.js'; + +const Header = create_ssr_component(($$result, $$props, $$bindings, slots) => { + return ``; +}); +const css = { + code: ".app.svelte-1i03v0h{display:flex;flex-direction:column;min-height:100vh}main.svelte-1i03v0h{flex:1;display:flex;flex-direction:column;padding:1rem;width:100%;max-width:100rem;margin:0 auto;box-sizing:border-box;justify-content:center;height:100vh}footer.svelte-1i03v0h{display:flex;flex-direction:column;justify-content:center;align-items:center;padding:12px}@media(min-width: 480px){footer.svelte-1i03v0h{padding:12px 0}}", + map: null +}; +const Layout = create_ssr_component(($$result, $$props, $$bindings, slots) => { + $$result.css.add(css); + return `
${validate_component(Header, "Header").$$render($$result, {}, {}, {})}
${slots.default ? slots.default({}) : ``}
`; +}); + +export { Layout as default }; +//# sourceMappingURL=_layout.svelte-NEEZmd_Y.js.map diff --git a/build/server/chunks/_layout.svelte-NEEZmd_Y.js.map b/build/server/chunks/_layout.svelte-NEEZmd_Y.js.map new file mode 100644 index 0000000000000000000000000000000000000000..48734f239c10f1532c9c1510387baabdd16826b3 --- /dev/null +++ b/build/server/chunks/_layout.svelte-NEEZmd_Y.js.map @@ -0,0 +1 @@ +{"version":3,"file":"_layout.svelte-NEEZmd_Y.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/_layout.svelte.js"],"sourcesContent":["import { c as create_ssr_component, v as validate_component } from \"../../chunks/ssr.js\";\nconst Header = create_ssr_component(($$result, $$props, $$bindings, slots) => {\n return ``;\n});\nconst css = {\n code: \".app.svelte-1i03v0h{display:flex;flex-direction:column;min-height:100vh}main.svelte-1i03v0h{flex:1;display:flex;flex-direction:column;padding:1rem;width:100%;max-width:100rem;margin:0 auto;box-sizing:border-box;justify-content:center;height:100vh}footer.svelte-1i03v0h{display:flex;flex-direction:column;justify-content:center;align-items:center;padding:12px}@media(min-width: 480px){footer.svelte-1i03v0h{padding:12px 0}}\",\n map: null\n};\nconst Layout = create_ssr_component(($$result, $$props, $$bindings, slots) => {\n $$result.css.add(css);\n return `
${validate_component(Header, \"Header\").$$render($$result, {}, {}, {})}
${slots.default ? slots.default({}) : ``}
`;\n});\nexport {\n Layout as default\n};\n"],"names":[],"mappings":";;AACA,MAAM,MAAM,GAAG,oBAAoB,CAAC,CAAC,QAAQ,EAAE,OAAO,EAAE,UAAU,EAAE,KAAK,KAAK;AAC9E,EAAE,OAAO,CAAC,CAAC,CAAC;AACZ,CAAC,CAAC,CAAC;AACH,MAAM,GAAG,GAAG;AACZ,EAAE,IAAI,EAAE,waAAwa;AAChb,EAAE,GAAG,EAAE,IAAI;AACX,CAAC,CAAC;AACG,MAAC,MAAM,GAAG,oBAAoB,CAAC,CAAC,QAAQ,EAAE,OAAO,EAAE,UAAU,EAAE,KAAK,KAAK;AAC9E,EAAE,QAAQ,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AACxB,EAAE,OAAO,CAAC,gCAAgC,EAAE,kBAAkB,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,QAAQ,CAAC,QAAQ,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,8BAA8B,EAAE,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,qFAAqF,CAAC,CAAC;AAC9Q,CAAC;;;;"} \ No newline at end of file diff --git a/build/server/chunks/_server.ts-2j04j7k5.js b/build/server/chunks/_server.ts-2j04j7k5.js new file mode 100644 index 0000000000000000000000000000000000000000..5b4589a7894b83ec86000c97cd45eea2bf8cde4d --- /dev/null +++ b/build/server/chunks/_server.ts-2j04j7k5.js @@ -0,0 +1,23 @@ +import { d as private_env } from './shared-server-49TKSBDM.js'; +import { c as redirect, b as base } from './index-JNnR1J8_.js'; +import { F as FullTextSearchService } from './FullTextSearchService-12fm-h8u.js'; + +const POST = async ({ locals, request }) => { + const body = await request.json(); + console.log(private_env.SEARCH_API_URL); + const abortController = new AbortController(); + let service = new FullTextSearchService(private_env.SEARCH_API_URL); + let results = await service.search(body.query, { abortController }); + return new Response( + JSON.stringify({ results }), + { + headers: { "Content-Type": "application/json" } + } + ); +}; +const GET = async () => { + throw redirect(302, `${base}/`); +}; + +export { GET, POST }; +//# sourceMappingURL=_server.ts-2j04j7k5.js.map diff --git a/build/server/chunks/_server.ts-2j04j7k5.js.map b/build/server/chunks/_server.ts-2j04j7k5.js.map new file mode 100644 index 0000000000000000000000000000000000000000..4f9e218777e16085161e7686f9e591fd74dfc002 --- /dev/null +++ b/build/server/chunks/_server.ts-2j04j7k5.js.map @@ -0,0 +1 @@ +{"version":3,"file":"_server.ts-2j04j7k5.js","sources":["../../../.svelte-kit/adapter-node/entries/endpoints/search/_server.ts.js"],"sourcesContent":["import { d as private_env } from \"../../../chunks/shared-server.js\";\nimport { r as redirect } from \"../../../chunks/index.js\";\nimport { b as base } from \"../../../chunks/paths.js\";\nimport { F as FullTextSearchService } from \"../../../chunks/FullTextSearchService.js\";\nconst POST = async ({ locals, request }) => {\n const body = await request.json();\n console.log(private_env.SEARCH_API_URL);\n const abortController = new AbortController();\n let service = new FullTextSearchService(private_env.SEARCH_API_URL);\n let results = await service.search(body.query, { abortController });\n return new Response(\n JSON.stringify({ results }),\n {\n headers: { \"Content-Type\": \"application/json\" }\n }\n );\n};\nconst GET = async () => {\n throw redirect(302, `${base}/`);\n};\nexport {\n GET,\n POST\n};\n"],"names":[],"mappings":";;;;AAIK,MAAC,IAAI,GAAG,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK;AAC5C,EAAE,MAAM,IAAI,GAAG,MAAM,OAAO,CAAC,IAAI,EAAE,CAAC;AACpC,EAAE,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC,cAAc,CAAC,CAAC;AAC1C,EAAE,MAAM,eAAe,GAAG,IAAI,eAAe,EAAE,CAAC;AAChD,EAAE,IAAI,OAAO,GAAG,IAAI,qBAAqB,CAAC,WAAW,CAAC,cAAc,CAAC,CAAC;AACtE,EAAE,IAAI,OAAO,GAAG,MAAM,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,EAAE,eAAe,EAAE,CAAC,CAAC;AACtE,EAAE,OAAO,IAAI,QAAQ;AACrB,IAAI,IAAI,CAAC,SAAS,CAAC,EAAE,OAAO,EAAE,CAAC;AAC/B,IAAI;AACJ,MAAM,OAAO,EAAE,EAAE,cAAc,EAAE,kBAAkB,EAAE;AACrD,KAAK;AACL,GAAG,CAAC;AACJ,EAAE;AACG,MAAC,GAAG,GAAG,YAAY;AACxB,EAAE,MAAM,QAAQ,CAAC,GAAG,EAAE,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;AAClC;;;;"} \ No newline at end of file diff --git a/build/server/chunks/_server.ts-AR2hBs_m.js b/build/server/chunks/_server.ts-AR2hBs_m.js new file mode 100644 index 0000000000000000000000000000000000000000..1eb8cd114bc00c394a52183e95b7ac977801c366 --- /dev/null +++ b/build/server/chunks/_server.ts-AR2hBs_m.js @@ -0,0 +1,18 @@ +import { d as private_env } from './shared-server-49TKSBDM.js'; +import { L as LlamaCppService } from './LlamaCppService-Bqc2roDm.js'; +import 'fs'; +import 'path'; + +const GET = async () => { + let llmService = new LlamaCppService(private_env.LLM_API_URL); + let response = await llmService.health(); + return new Response( + JSON.stringify({ status: response }), + { + headers: { "Content-Type": "application/json" } + } + ); +}; + +export { GET }; +//# sourceMappingURL=_server.ts-AR2hBs_m.js.map diff --git a/build/server/chunks/_server.ts-AR2hBs_m.js.map b/build/server/chunks/_server.ts-AR2hBs_m.js.map new file mode 100644 index 0000000000000000000000000000000000000000..c6824b9cfea901c6289a7c750fa1bfa74484da47 --- /dev/null +++ b/build/server/chunks/_server.ts-AR2hBs_m.js.map @@ -0,0 +1 @@ +{"version":3,"file":"_server.ts-AR2hBs_m.js","sources":["../../../.svelte-kit/adapter-node/entries/endpoints/llm/health/_server.ts.js"],"sourcesContent":["import { d as private_env } from \"../../../../chunks/shared-server.js\";\nimport { L as LlamaCppService } from \"../../../../chunks/LlamaCppService.js\";\nconst GET = async () => {\n let llmService = new LlamaCppService(private_env.LLM_API_URL);\n let response = await llmService.health();\n return new Response(\n JSON.stringify({ status: response }),\n {\n headers: { \"Content-Type\": \"application/json\" }\n }\n );\n};\nexport {\n GET\n};\n"],"names":[],"mappings":";;;;;AAEK,MAAC,GAAG,GAAG,YAAY;AACxB,EAAE,IAAI,UAAU,GAAG,IAAI,eAAe,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC;AAChE,EAAE,IAAI,QAAQ,GAAG,MAAM,UAAU,CAAC,MAAM,EAAE,CAAC;AAC3C,EAAE,OAAO,IAAI,QAAQ;AACrB,IAAI,IAAI,CAAC,SAAS,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC;AACxC,IAAI;AACJ,MAAM,OAAO,EAAE,EAAE,cAAc,EAAE,kBAAkB,EAAE;AACrD,KAAK;AACL,GAAG,CAAC;AACJ;;;;"} \ No newline at end of file diff --git a/build/server/chunks/_server.ts-CSwmyTMa.js b/build/server/chunks/_server.ts-CSwmyTMa.js new file mode 100644 index 0000000000000000000000000000000000000000..253dd0c5c6dbbd2dcb3d404b391a68c997d04c44 --- /dev/null +++ b/build/server/chunks/_server.ts-CSwmyTMa.js @@ -0,0 +1,42 @@ +import { d as private_env } from './shared-server-49TKSBDM.js'; +import { c as redirect, b as base } from './index-JNnR1J8_.js'; +import { L as LlamaCppService } from './LlamaCppService-Bqc2roDm.js'; +import { F as FullTextSearchService } from './FullTextSearchService-12fm-h8u.js'; +import 'fs'; +import 'path'; + +const POST = async ({ locals, request }) => { + const body = await request.json(); + let prompt = body.user_query; + let template = body.prompt_template; + const defaultTemplate = 'Ты бухгалтер. Ты отвечаешь на русском языке. Ты всегда следуешь моим инструкциям.\n Ты отвечаешь на вопросы клиентов. Чтобы ответить, ты обязательно используешь только "источники", которые я тебе предоставляю. Ты используешь только официально-деловой стиль и необходимую терминологию. Соблюдай этические нормы. \nПри ответе на вопрос ты используешь только такой формат ответа:\n 1) Четкий и краткий ответ на поставленный вопрос. Ты можешь начать свой ответ так: "По Вашему вопросу сообщаем...". Используй по возможности слова: да, можно, нет, нельзя.\n 2) Обоснование (ты используешь для обоснования "источники". Ты используешь только "источники" для поиска необходимых "законов", "статей", "пунктов" и "подпунктов" для ответа на вопрос пользователя).\n 3) Аргументация (Ты используешь только "источники" для поиска необходимых "писем" и "судебных решений", чтобы аргументировать свой ответ)."\n 4) Заключение (ты подводишь итоги всего, что сказал выше. Избегай повторения и сложных конструкций). Если в источниках нельзя найти подходящую информацию для ответа, ты отвечаешь так: "Мы не можем ответить на данный вопрос. Обратитесь к специалисту."\n Вопрос: {{ВОПРОС}} \nИсточники: {{ИСТОЧНИКИ}}'; + if (!template) { + template = defaultTemplate; + } + const abortController = new AbortController(); + let service = new FullTextSearchService(private_env.SEARCH_API_URL); + let results = await service.search(prompt, { abortController }); + function searchResultsToLlmSources(input) { + return input.map(({ title, text }) => `${title} +${text}`).join("\n\n"); + } + const userPrompt = template.replace("{{ВОПРОС}}", prompt).replace("{{ИСТОЧНИКИ}}", searchResultsToLlmSources(results)); + let llmService = new LlamaCppService(private_env.LLM_API_URL); + let llmGenerator = await llmService.predict(userPrompt, { abortController }); + let response = ""; + for await (const output of await llmGenerator({ prompt: userPrompt })) { + response += output.token.text; + } + return new Response( + JSON.stringify({ response, search_results: results }), + { + headers: { "Content-Type": "application/json" } + } + ); +}; +const GET = async () => { + throw redirect(302, `${base}/`); +}; + +export { GET, POST }; +//# sourceMappingURL=_server.ts-CSwmyTMa.js.map diff --git a/build/server/chunks/_server.ts-CSwmyTMa.js.map b/build/server/chunks/_server.ts-CSwmyTMa.js.map new file mode 100644 index 0000000000000000000000000000000000000000..d93001574cb427d1bfa2874cf50348ab25180585 --- /dev/null +++ b/build/server/chunks/_server.ts-CSwmyTMa.js.map @@ -0,0 +1 @@ +{"version":3,"file":"_server.ts-CSwmyTMa.js","sources":["../../../.svelte-kit/adapter-node/entries/endpoints/api/_server.ts.js"],"sourcesContent":["import { d as private_env } from \"../../../chunks/shared-server.js\";\nimport { r as redirect } from \"../../../chunks/index.js\";\nimport { b as base } from \"../../../chunks/paths.js\";\nimport { L as LlamaCppService } from \"../../../chunks/LlamaCppService.js\";\nimport { F as FullTextSearchService } from \"../../../chunks/FullTextSearchService.js\";\nconst POST = async ({ locals, request }) => {\n const body = await request.json();\n let prompt = body.user_query;\n let template = body.prompt_template;\n const defaultTemplate = 'Ты бухгалтер. Ты отвечаешь на русском языке. Ты всегда следуешь моим инструкциям.\\n Ты отвечаешь на вопросы клиентов. Чтобы ответить, ты обязательно используешь только \"источники\", которые я тебе предоставляю. Ты используешь только официально-деловой стиль и необходимую терминологию. Соблюдай этические нормы. \\nПри ответе на вопрос ты используешь только такой формат ответа:\\n 1) Четкий и краткий ответ на поставленный вопрос. Ты можешь начать свой ответ так: \"По Вашему вопросу сообщаем...\". Используй по возможности слова: да, можно, нет, нельзя.\\n 2) Обоснование (ты используешь для обоснования \"источники\". Ты используешь только \"источники\" для поиска необходимых \"законов\", \"статей\", \"пунктов\" и \"подпунктов\" для ответа на вопрос пользователя).\\n 3) Аргументация (Ты используешь только \"источники\" для поиска необходимых \"писем\" и \"судебных решений\", чтобы аргументировать свой ответ).\"\\n 4) Заключение (ты подводишь итоги всего, что сказал выше. Избегай повторения и сложных конструкций). Если в источниках нельзя найти подходящую информацию для ответа, ты отвечаешь так: \"Мы не можем ответить на данный вопрос. Обратитесь к специалисту.\"\\n Вопрос: {{ВОПРОС}} \\nИсточники: {{ИСТОЧНИКИ}}';\n if (!template) {\n template = defaultTemplate;\n }\n const abortController = new AbortController();\n let service = new FullTextSearchService(private_env.SEARCH_API_URL);\n let results = await service.search(prompt, { abortController });\n function searchResultsToLlmSources(input) {\n return input.map(({ title, text }) => `${title}\n${text}`).join(\"\\n\\n\");\n }\n const userPrompt = template.replace(\"{{ВОПРОС}}\", prompt).replace(\"{{ИСТОЧНИКИ}}\", searchResultsToLlmSources(results));\n let llmService = new LlamaCppService(private_env.LLM_API_URL);\n let llmGenerator = await llmService.predict(userPrompt, { abortController });\n let response = \"\";\n for await (const output of await llmGenerator({ prompt: userPrompt })) {\n response += output.token.text;\n }\n return new Response(\n JSON.stringify({ response, search_results: results }),\n {\n headers: { \"Content-Type\": \"application/json\" }\n }\n );\n};\nconst GET = async () => {\n throw redirect(302, `${base}/`);\n};\nexport {\n GET,\n POST\n};\n"],"names":[],"mappings":";;;;;;;AAKK,MAAC,IAAI,GAAG,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK;AAC5C,EAAE,MAAM,IAAI,GAAG,MAAM,OAAO,CAAC,IAAI,EAAE,CAAC;AACpC,EAAE,IAAI,MAAM,GAAG,IAAI,CAAC,UAAU,CAAC;AAC/B,EAAE,IAAI,QAAQ,GAAG,IAAI,CAAC,eAAe,CAAC;AACtC,EAAE,MAAM,eAAe,GAAG,6qCAA6qC,CAAC;AACxsC,EAAE,IAAI,CAAC,QAAQ,EAAE;AACjB,IAAI,QAAQ,GAAG,eAAe,CAAC;AAC/B,GAAG;AACH,EAAE,MAAM,eAAe,GAAG,IAAI,eAAe,EAAE,CAAC;AAChD,EAAE,IAAI,OAAO,GAAG,IAAI,qBAAqB,CAAC,WAAW,CAAC,cAAc,CAAC,CAAC;AACtE,EAAE,IAAI,OAAO,GAAG,MAAM,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,EAAE,eAAe,EAAE,CAAC,CAAC;AAClE,EAAE,SAAS,yBAAyB,CAAC,KAAK,EAAE;AAC5C,IAAI,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,CAAC,EAAE,KAAK,CAAC;AACnD,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;AACvB,GAAG;AACH,EAAE,MAAM,UAAU,GAAG,QAAQ,CAAC,OAAO,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC,OAAO,CAAC,eAAe,EAAE,yBAAyB,CAAC,OAAO,CAAC,CAAC,CAAC;AACzH,EAAE,IAAI,UAAU,GAAG,IAAI,eAAe,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC;AAChE,EAAE,IAAI,YAAY,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,UAAU,EAAE,EAAE,eAAe,EAAE,CAAC,CAAC;AAC/E,EAAE,IAAI,QAAQ,GAAG,EAAE,CAAC;AACpB,EAAE,WAAW,MAAM,MAAM,IAAI,MAAM,YAAY,CAAC,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC,EAAE;AACzE,IAAI,QAAQ,IAAI,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC;AAClC,GAAG;AACH,EAAE,OAAO,IAAI,QAAQ;AACrB,IAAI,IAAI,CAAC,SAAS,CAAC,EAAE,QAAQ,EAAE,cAAc,EAAE,OAAO,EAAE,CAAC;AACzD,IAAI;AACJ,MAAM,OAAO,EAAE,EAAE,cAAc,EAAE,kBAAkB,EAAE;AACrD,KAAK;AACL,GAAG,CAAC;AACJ,EAAE;AACG,MAAC,GAAG,GAAG,YAAY;AACxB,EAAE,MAAM,QAAQ,CAAC,GAAG,EAAE,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;AAClC;;;;"} \ No newline at end of file diff --git a/build/server/chunks/_server.ts-OSIPCWCP.js b/build/server/chunks/_server.ts-OSIPCWCP.js new file mode 100644 index 0000000000000000000000000000000000000000..35721ef28595680246144167c036a85ce02304cb --- /dev/null +++ b/build/server/chunks/_server.ts-OSIPCWCP.js @@ -0,0 +1,52 @@ +import { c as redirect, b as base } from './index-JNnR1J8_.js'; +import { resolve } from 'path'; +import { existsSync, mkdirSync, writeFileSync } from 'fs'; + +function createLogFile(text, namePrefix = "") { + const logsDirectory = resolve("/logs"); + if (!existsSync(logsDirectory)) { + mkdirSync(logsDirectory); + } + const timestamp = (/* @__PURE__ */ new Date()).toISOString().replace(/[:.]/g, ""); + const logFilePath = resolve(logsDirectory, `${namePrefix}${timestamp}.json`); + writeFileSync(logFilePath, text); + console.log(`Log file created: ${logFilePath}`); +} +const POST = async ({ locals, request }) => { + try { + const body = await request.json(); + let prompt = body.user_query; + let template = body.prompt_template; + let search_results = body.search_results; + let llm_response = body.llm_response; + let user_score = body.user_score; + let user_comment = body.user_comment; + createLogFile(JSON.stringify({ + prompt, + template, + search_results, + llm_response, + user_score, + user_comment + }), "llmresponse-"); + return new Response( + JSON.stringify({ success: true }), + { + headers: { "Content-Type": "application/json" } + } + ); + } catch (e) { + return new Response( + JSON.stringify({ success: false, error: e }), + { + headers: { "Content-Type": "application/json" } + } + ); + } +}; +const GET = async () => { + throw redirect(302, `${base}/`); +}; + +export { GET, POST }; +//# sourceMappingURL=_server.ts-OSIPCWCP.js.map diff --git a/build/server/chunks/_server.ts-OSIPCWCP.js.map b/build/server/chunks/_server.ts-OSIPCWCP.js.map new file mode 100644 index 0000000000000000000000000000000000000000..fc4a03828d1d81d5a28238af839710fb1dbf51a2 --- /dev/null +++ b/build/server/chunks/_server.ts-OSIPCWCP.js.map @@ -0,0 +1 @@ +{"version":3,"file":"_server.ts-OSIPCWCP.js","sources":["../../../.svelte-kit/adapter-node/entries/endpoints/log/response/_server.ts.js"],"sourcesContent":["import { r as redirect } from \"../../../../chunks/index.js\";\nimport { b as base } from \"../../../../chunks/paths.js\";\nimport { resolve } from \"path\";\nimport { existsSync, mkdirSync, writeFileSync } from \"fs\";\nfunction createLogFile(text, namePrefix = \"\") {\n const logsDirectory = resolve(\"/logs\");\n if (!existsSync(logsDirectory)) {\n mkdirSync(logsDirectory);\n }\n const timestamp = (/* @__PURE__ */ new Date()).toISOString().replace(/[:.]/g, \"\");\n const logFilePath = resolve(logsDirectory, `${namePrefix}${timestamp}.json`);\n writeFileSync(logFilePath, text);\n console.log(`Log file created: ${logFilePath}`);\n}\nconst POST = async ({ locals, request }) => {\n try {\n const body = await request.json();\n let prompt = body.user_query;\n let template = body.prompt_template;\n let search_results = body.search_results;\n let llm_response = body.llm_response;\n let user_score = body.user_score;\n let user_comment = body.user_comment;\n createLogFile(JSON.stringify({\n prompt,\n template,\n search_results,\n llm_response,\n user_score,\n user_comment\n }), \"llmresponse-\");\n return new Response(\n JSON.stringify({ success: true }),\n {\n headers: { \"Content-Type\": \"application/json\" }\n }\n );\n } catch (e) {\n return new Response(\n JSON.stringify({ success: false, error: e }),\n {\n headers: { \"Content-Type\": \"application/json\" }\n }\n );\n }\n};\nconst GET = async () => {\n throw redirect(302, `${base}/`);\n};\nexport {\n GET,\n POST\n};\n"],"names":[],"mappings":";;;;AAIA,SAAS,aAAa,CAAC,IAAI,EAAE,UAAU,GAAG,EAAE,EAAE;AAC9C,EAAE,MAAM,aAAa,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;AACzC,EAAE,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,EAAE;AAClC,IAAI,SAAS,CAAC,aAAa,CAAC,CAAC;AAC7B,GAAG;AACH,EAAE,MAAM,SAAS,GAAG,iBAAiB,IAAI,IAAI,EAAE,EAAE,WAAW,EAAE,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;AACpF,EAAE,MAAM,WAAW,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC,EAAE,UAAU,CAAC,EAAE,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;AAC/E,EAAE,aAAa,CAAC,WAAW,EAAE,IAAI,CAAC,CAAC;AACnC,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC,kBAAkB,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC;AAClD,CAAC;AACI,MAAC,IAAI,GAAG,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK;AAC5C,EAAE,IAAI;AACN,IAAI,MAAM,IAAI,GAAG,MAAM,OAAO,CAAC,IAAI,EAAE,CAAC;AACtC,IAAI,IAAI,MAAM,GAAG,IAAI,CAAC,UAAU,CAAC;AACjC,IAAI,IAAI,QAAQ,GAAG,IAAI,CAAC,eAAe,CAAC;AACxC,IAAI,IAAI,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC;AAC7C,IAAI,IAAI,YAAY,GAAG,IAAI,CAAC,YAAY,CAAC;AACzC,IAAI,IAAI,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC;AACrC,IAAI,IAAI,YAAY,GAAG,IAAI,CAAC,YAAY,CAAC;AACzC,IAAI,aAAa,CAAC,IAAI,CAAC,SAAS,CAAC;AACjC,MAAM,MAAM;AACZ,MAAM,QAAQ;AACd,MAAM,cAAc;AACpB,MAAM,YAAY;AAClB,MAAM,UAAU;AAChB,MAAM,YAAY;AAClB,KAAK,CAAC,EAAE,cAAc,CAAC,CAAC;AACxB,IAAI,OAAO,IAAI,QAAQ;AACvB,MAAM,IAAI,CAAC,SAAS,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;AACvC,MAAM;AACN,QAAQ,OAAO,EAAE,EAAE,cAAc,EAAE,kBAAkB,EAAE;AACvD,OAAO;AACP,KAAK,CAAC;AACN,GAAG,CAAC,OAAO,CAAC,EAAE;AACd,IAAI,OAAO,IAAI,QAAQ;AACvB,MAAM,IAAI,CAAC,SAAS,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;AAClD,MAAM;AACN,QAAQ,OAAO,EAAE,EAAE,cAAc,EAAE,kBAAkB,EAAE;AACvD,OAAO;AACP,KAAK,CAAC;AACN,GAAG;AACH,EAAE;AACG,MAAC,GAAG,GAAG,YAAY;AACxB,EAAE,MAAM,QAAQ,CAAC,GAAG,EAAE,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;AAClC;;;;"} \ No newline at end of file diff --git a/build/server/chunks/_server.ts-Pe14v0Un.js b/build/server/chunks/_server.ts-Pe14v0Un.js new file mode 100644 index 0000000000000000000000000000000000000000..5439b4c0242d3fae0a4fdd472dd5f8feb038faed --- /dev/null +++ b/build/server/chunks/_server.ts-Pe14v0Un.js @@ -0,0 +1,16 @@ +import { d as private_env } from './shared-server-49TKSBDM.js'; +import { F as FullTextSearchService } from './FullTextSearchService-12fm-h8u.js'; + +const GET = async () => { + let service = new FullTextSearchService(private_env.SEARCH_API_URL); + let response = await service.health(); + return new Response( + JSON.stringify({ status: response }), + { + headers: { "Content-Type": "application/json" } + } + ); +}; + +export { GET }; +//# sourceMappingURL=_server.ts-Pe14v0Un.js.map diff --git a/build/server/chunks/_server.ts-Pe14v0Un.js.map b/build/server/chunks/_server.ts-Pe14v0Un.js.map new file mode 100644 index 0000000000000000000000000000000000000000..50e86e10df3c1fba0ee0ec67b467db066c79dcac --- /dev/null +++ b/build/server/chunks/_server.ts-Pe14v0Un.js.map @@ -0,0 +1 @@ +{"version":3,"file":"_server.ts-Pe14v0Un.js","sources":["../../../.svelte-kit/adapter-node/entries/endpoints/search/health/_server.ts.js"],"sourcesContent":["import { d as private_env } from \"../../../../chunks/shared-server.js\";\nimport { F as FullTextSearchService } from \"../../../../chunks/FullTextSearchService.js\";\nconst GET = async () => {\n let service = new FullTextSearchService(private_env.SEARCH_API_URL);\n let response = await service.health();\n return new Response(\n JSON.stringify({ status: response }),\n {\n headers: { \"Content-Type\": \"application/json\" }\n }\n );\n};\nexport {\n GET\n};\n"],"names":[],"mappings":";;;AAEK,MAAC,GAAG,GAAG,YAAY;AACxB,EAAE,IAAI,OAAO,GAAG,IAAI,qBAAqB,CAAC,WAAW,CAAC,cAAc,CAAC,CAAC;AACtE,EAAE,IAAI,QAAQ,GAAG,MAAM,OAAO,CAAC,MAAM,EAAE,CAAC;AACxC,EAAE,OAAO,IAAI,QAAQ;AACrB,IAAI,IAAI,CAAC,SAAS,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC;AACxC,IAAI;AACJ,MAAM,OAAO,EAAE,EAAE,cAAc,EAAE,kBAAkB,EAAE;AACrD,KAAK;AACL,GAAG,CAAC;AACJ;;;;"} \ No newline at end of file diff --git a/build/server/chunks/_server.ts-sovP_dKD.js b/build/server/chunks/_server.ts-sovP_dKD.js new file mode 100644 index 0000000000000000000000000000000000000000..eea9d156f8c7542e36f249330fda39a93bebc559 --- /dev/null +++ b/build/server/chunks/_server.ts-sovP_dKD.js @@ -0,0 +1,44 @@ +import { d as private_env } from './shared-server-49TKSBDM.js'; +import { c as redirect, b as base } from './index-JNnR1J8_.js'; +import { L as LlamaCppService } from './LlamaCppService-Bqc2roDm.js'; +import 'fs'; +import 'path'; + +const POST = async ({ locals, request }) => { + const body = await request.json(); + console.log(private_env.LLM_API_URL); + const abortController = new AbortController(); + let llmService = new LlamaCppService(private_env.LLM_API_URL); + let llmGenerator = await llmService.predict(body.userprompt, { abortController }); + const stream = new ReadableStream({ + async start(controller) { + try { + for await (const output of await llmGenerator({ prompt: body.userprompt })) { + controller.enqueue(output.token.text); + } + } catch (error2) { + if (error2.name === "AbortError") { + console.log("Request was aborted during LLMServer prediction."); + } else { + console.error("Error during LLMServer prediction:", error2); + } + } + controller.close(); + }, + cancel() { + console.log("ReadableStream canceled and aborted"); + abortController.abort(); + } + }); + return new Response(stream, { + headers: { + "content-type": "text/event-stream" + } + }); +}; +const GET = async () => { + throw redirect(302, `${base}/`); +}; + +export { GET, POST }; +//# sourceMappingURL=_server.ts-sovP_dKD.js.map diff --git a/build/server/chunks/_server.ts-sovP_dKD.js.map b/build/server/chunks/_server.ts-sovP_dKD.js.map new file mode 100644 index 0000000000000000000000000000000000000000..19178c5044a9341c36486763d6f8e882c73471cd --- /dev/null +++ b/build/server/chunks/_server.ts-sovP_dKD.js.map @@ -0,0 +1 @@ +{"version":3,"file":"_server.ts-sovP_dKD.js","sources":["../../../.svelte-kit/adapter-node/entries/endpoints/llm/_server.ts.js"],"sourcesContent":["import { d as private_env } from \"../../../chunks/shared-server.js\";\nimport { r as redirect } from \"../../../chunks/index.js\";\nimport { b as base } from \"../../../chunks/paths.js\";\nimport { L as LlamaCppService } from \"../../../chunks/LlamaCppService.js\";\nconst POST = async ({ locals, request }) => {\n const body = await request.json();\n console.log(private_env.LLM_API_URL);\n const abortController = new AbortController();\n let llmService = new LlamaCppService(private_env.LLM_API_URL);\n let llmGenerator = await llmService.predict(body.userprompt, { abortController });\n const stream = new ReadableStream({\n async start(controller) {\n try {\n for await (const output of await llmGenerator({ prompt: body.userprompt })) {\n controller.enqueue(output.token.text);\n }\n } catch (error2) {\n if (error2.name === \"AbortError\") {\n console.log(\"Request was aborted during LLMServer prediction.\");\n } else {\n console.error(\"Error during LLMServer prediction:\", error2);\n }\n }\n controller.close();\n },\n cancel() {\n console.log(\"ReadableStream canceled and aborted\");\n abortController.abort();\n }\n });\n return new Response(stream, {\n headers: {\n \"content-type\": \"text/event-stream\"\n }\n });\n};\nconst GET = async () => {\n throw redirect(302, `${base}/`);\n};\nexport {\n GET,\n POST\n};\n"],"names":[],"mappings":";;;;;;AAIK,MAAC,IAAI,GAAG,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK;AAC5C,EAAE,MAAM,IAAI,GAAG,MAAM,OAAO,CAAC,IAAI,EAAE,CAAC;AACpC,EAAE,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC;AACvC,EAAE,MAAM,eAAe,GAAG,IAAI,eAAe,EAAE,CAAC;AAChD,EAAE,IAAI,UAAU,GAAG,IAAI,eAAe,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC;AAChE,EAAE,IAAI,YAAY,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE,EAAE,eAAe,EAAE,CAAC,CAAC;AACpF,EAAE,MAAM,MAAM,GAAG,IAAI,cAAc,CAAC;AACpC,IAAI,MAAM,KAAK,CAAC,UAAU,EAAE;AAC5B,MAAM,IAAI;AACV,QAAQ,WAAW,MAAM,MAAM,IAAI,MAAM,YAAY,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,UAAU,EAAE,CAAC,EAAE;AACpF,UAAU,UAAU,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;AAChD,SAAS;AACT,OAAO,CAAC,OAAO,MAAM,EAAE;AACvB,QAAQ,IAAI,MAAM,CAAC,IAAI,KAAK,YAAY,EAAE;AAC1C,UAAU,OAAO,CAAC,GAAG,CAAC,kDAAkD,CAAC,CAAC;AAC1E,SAAS,MAAM;AACf,UAAU,OAAO,CAAC,KAAK,CAAC,oCAAoC,EAAE,MAAM,CAAC,CAAC;AACtE,SAAS;AACT,OAAO;AACP,MAAM,UAAU,CAAC,KAAK,EAAE,CAAC;AACzB,KAAK;AACL,IAAI,MAAM,GAAG;AACb,MAAM,OAAO,CAAC,GAAG,CAAC,qCAAqC,CAAC,CAAC;AACzD,MAAM,eAAe,CAAC,KAAK,EAAE,CAAC;AAC9B,KAAK;AACL,GAAG,CAAC,CAAC;AACL,EAAE,OAAO,IAAI,QAAQ,CAAC,MAAM,EAAE;AAC9B,IAAI,OAAO,EAAE;AACb,MAAM,cAAc,EAAE,mBAAmB;AACzC,KAAK;AACL,GAAG,CAAC,CAAC;AACL,EAAE;AACG,MAAC,GAAG,GAAG,YAAY;AACxB,EAAE,MAAM,QAAQ,CAAC,GAAG,EAAE,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;AAClC;;;;"} \ No newline at end of file diff --git a/build/server/chunks/error.svelte-CXA0L2a-.js b/build/server/chunks/error.svelte-CXA0L2a-.js new file mode 100644 index 0000000000000000000000000000000000000000..8b9333c66eb26b0f12e08c16c6141f6ad47f29d1 --- /dev/null +++ b/build/server/chunks/error.svelte-CXA0L2a-.js @@ -0,0 +1,44 @@ +import { c as create_ssr_component, b as subscribe, e as escape, g as getContext } from './ssr-jUwReIMa.js'; +import './exports-mq_1S73-.js'; + +function get(key, parse = JSON.parse) { + try { + return parse(sessionStorage[key]); + } catch { + } +} +const SNAPSHOT_KEY = "sveltekit:snapshot"; +const SCROLL_KEY = "sveltekit:scroll"; +get(SCROLL_KEY) ?? {}; +get(SNAPSHOT_KEY) ?? {}; + +const getStores = () => { + const stores = getContext("__svelte__"); + return { + /** @type {typeof page} */ + page: { + subscribe: stores.page.subscribe + }, + /** @type {typeof navigating} */ + navigating: { + subscribe: stores.navigating.subscribe + }, + /** @type {typeof updated} */ + updated: stores.updated + }; +}; +const page = { + subscribe(fn) { + const store = getStores().page; + return store.subscribe(fn); + } +}; +const Error$1 = create_ssr_component(($$result, $$props, $$bindings, slots) => { + let $page, $$unsubscribe_page; + $$unsubscribe_page = subscribe(page, (value) => $page = value); + $$unsubscribe_page(); + return `

${escape($page.status)}

${escape($page.error?.message)}

`; +}); + +export { Error$1 as default }; +//# sourceMappingURL=error.svelte-CXA0L2a-.js.map diff --git a/build/server/chunks/error.svelte-CXA0L2a-.js.map b/build/server/chunks/error.svelte-CXA0L2a-.js.map new file mode 100644 index 0000000000000000000000000000000000000000..66deb6eed797846a1d66181c2d4994556613a0ce --- /dev/null +++ b/build/server/chunks/error.svelte-CXA0L2a-.js.map @@ -0,0 +1 @@ +{"version":3,"file":"error.svelte-CXA0L2a-.js","sources":["../../../.svelte-kit/adapter-node/chunks/client.js","../../../.svelte-kit/adapter-node/entries/fallbacks/error.svelte.js"],"sourcesContent":["import \"./exports.js\";\nimport \"devalue\";\nfunction get(key, parse = JSON.parse) {\n try {\n return parse(sessionStorage[key]);\n } catch {\n }\n}\nconst SNAPSHOT_KEY = \"sveltekit:snapshot\";\nconst SCROLL_KEY = \"sveltekit:scroll\";\nget(SCROLL_KEY) ?? {};\nget(SNAPSHOT_KEY) ?? {};\n","import { g as getContext, c as create_ssr_component, a as subscribe, e as escape } from \"../../chunks/ssr.js\";\nimport \"../../chunks/client.js\";\nconst getStores = () => {\n const stores = getContext(\"__svelte__\");\n return {\n /** @type {typeof page} */\n page: {\n subscribe: stores.page.subscribe\n },\n /** @type {typeof navigating} */\n navigating: {\n subscribe: stores.navigating.subscribe\n },\n /** @type {typeof updated} */\n updated: stores.updated\n };\n};\nconst page = {\n subscribe(fn) {\n const store = getStores().page;\n return store.subscribe(fn);\n }\n};\nconst Error$1 = create_ssr_component(($$result, $$props, $$bindings, slots) => {\n let $page, $$unsubscribe_page;\n $$unsubscribe_page = subscribe(page, (value) => $page = value);\n $$unsubscribe_page();\n return `

${escape($page.status)}

${escape($page.error?.message)}

`;\n});\nexport {\n Error$1 as default\n};\n"],"names":[],"mappings":";;;AAEA,SAAS,GAAG,CAAC,GAAG,EAAE,KAAK,GAAG,IAAI,CAAC,KAAK,EAAE;AACtC,EAAE,IAAI;AACN,IAAI,OAAO,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC;AACtC,GAAG,CAAC,MAAM;AACV,GAAG;AACH,CAAC;AACD,MAAM,YAAY,GAAG,oBAAoB,CAAC;AAC1C,MAAM,UAAU,GAAG,kBAAkB,CAAC;AACtC,GAAG,CAAC,UAAU,CAAC,IAAI,EAAE,CAAC;AACtB,GAAG,CAAC,YAAY,CAAC,IAAI,EAAE;;ACTvB,MAAM,SAAS,GAAG,MAAM;AACxB,EAAE,MAAM,MAAM,GAAG,UAAU,CAAC,YAAY,CAAC,CAAC;AAC1C,EAAE,OAAO;AACT;AACA,IAAI,IAAI,EAAE;AACV,MAAM,SAAS,EAAE,MAAM,CAAC,IAAI,CAAC,SAAS;AACtC,KAAK;AACL;AACA,IAAI,UAAU,EAAE;AAChB,MAAM,SAAS,EAAE,MAAM,CAAC,UAAU,CAAC,SAAS;AAC5C,KAAK;AACL;AACA,IAAI,OAAO,EAAE,MAAM,CAAC,OAAO;AAC3B,GAAG,CAAC;AACJ,CAAC,CAAC;AACF,MAAM,IAAI,GAAG;AACb,EAAE,SAAS,CAAC,EAAE,EAAE;AAChB,IAAI,MAAM,KAAK,GAAG,SAAS,EAAE,CAAC,IAAI,CAAC;AACnC,IAAI,OAAO,KAAK,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;AAC/B,GAAG;AACH,CAAC,CAAC;AACG,MAAC,OAAO,GAAG,oBAAoB,CAAC,CAAC,QAAQ,EAAE,OAAO,EAAE,UAAU,EAAE,KAAK,KAAK;AAC/E,EAAE,IAAI,KAAK,EAAE,kBAAkB,CAAC;AAChC,EAAE,kBAAkB,GAAG,SAAS,CAAC,IAAI,EAAE,CAAC,KAAK,KAAK,KAAK,GAAG,KAAK,CAAC,CAAC;AACjE,EAAE,kBAAkB,EAAE,CAAC;AACvB,EAAE,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,SAAS,EAAE,MAAM,CAAC,KAAK,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC;AACnF,CAAC;;;;"} \ No newline at end of file diff --git a/build/server/chunks/exports-mq_1S73-.js b/build/server/chunks/exports-mq_1S73-.js new file mode 100644 index 0000000000000000000000000000000000000000..11e2ea9cc2f2d461b31696644e03186892f55363 --- /dev/null +++ b/build/server/chunks/exports-mq_1S73-.js @@ -0,0 +1,133 @@ +const internal = new URL("sveltekit-internal://"); +function resolve(base, path) { + if (path[0] === "/" && path[1] === "/") + return path; + let url = new URL(base, internal); + url = new URL(path, url); + return url.protocol === internal.protocol ? url.pathname + url.search + url.hash : url.href; +} +function normalize_path(path, trailing_slash) { + if (path === "/" || trailing_slash === "ignore") + return path; + if (trailing_slash === "never") { + return path.endsWith("/") ? path.slice(0, -1) : path; + } else if (trailing_slash === "always" && !path.endsWith("/")) { + return path + "/"; + } + return path; +} +function decode_pathname(pathname) { + return pathname.split("%25").map(decodeURI).join("%25"); +} +function decode_params(params) { + for (const key in params) { + params[key] = decodeURIComponent(params[key]); + } + return params; +} +const tracked_url_properties = ( + /** @type {const} */ + [ + "href", + "pathname", + "search", + "toString", + "toJSON" + ] +); +function make_trackable(url, callback, search_params_callback) { + const tracked = new URL(url); + Object.defineProperty(tracked, "searchParams", { + value: new Proxy(tracked.searchParams, { + get(obj, key) { + if (key === "get" || key === "getAll" || key === "has") { + return (param) => { + search_params_callback(param); + return obj[key](param); + }; + } + callback(); + const value = Reflect.get(obj, key); + return typeof value === "function" ? value.bind(obj) : value; + } + }), + enumerable: true, + configurable: true + }); + for (const property of tracked_url_properties) { + Object.defineProperty(tracked, property, { + get() { + callback(); + return url[property]; + }, + enumerable: true, + configurable: true + }); + } + { + tracked[Symbol.for("nodejs.util.inspect.custom")] = (depth, opts, inspect) => { + return inspect(url, opts); + }; + } + { + disable_hash(tracked); + } + return tracked; +} +function disable_hash(url) { + allow_nodejs_console_log(url); + Object.defineProperty(url, "hash", { + get() { + throw new Error( + "Cannot access event.url.hash. Consider using `$page.url.hash` inside a component instead" + ); + } + }); +} +function disable_search(url) { + allow_nodejs_console_log(url); + for (const property of ["search", "searchParams"]) { + Object.defineProperty(url, property, { + get() { + throw new Error(`Cannot access url.${property} on a page with prerendering enabled`); + } + }); + } +} +function allow_nodejs_console_log(url) { + { + url[Symbol.for("nodejs.util.inspect.custom")] = (depth, opts, inspect) => { + return inspect(new URL(url), opts); + }; + } +} +const DATA_SUFFIX = "/__data.json"; +const HTML_DATA_SUFFIX = ".html__data.json"; +function has_data_suffix(pathname) { + return pathname.endsWith(DATA_SUFFIX) || pathname.endsWith(HTML_DATA_SUFFIX); +} +function add_data_suffix(pathname) { + if (pathname.endsWith(".html")) + return pathname.replace(/\.html$/, HTML_DATA_SUFFIX); + return pathname.replace(/\/$/, "") + DATA_SUFFIX; +} +function strip_data_suffix(pathname) { + if (pathname.endsWith(HTML_DATA_SUFFIX)) { + return pathname.slice(0, -HTML_DATA_SUFFIX.length) + ".html"; + } + return pathname.slice(0, -DATA_SUFFIX.length); +} +const valid_layout_exports = /* @__PURE__ */ new Set([ + "load", + "prerender", + "csr", + "ssr", + "trailingSlash", + "config" +]); +/* @__PURE__ */ new Set([...valid_layout_exports, "entries"]); +const valid_layout_server_exports = /* @__PURE__ */ new Set([...valid_layout_exports]); +/* @__PURE__ */ new Set([...valid_layout_server_exports, "actions", "entries"]); + +export { decode_params as a, disable_search as b, add_data_suffix as c, decode_pathname as d, has_data_suffix as h, make_trackable as m, normalize_path as n, resolve as r, strip_data_suffix as s }; +//# sourceMappingURL=exports-mq_1S73-.js.map diff --git a/build/server/chunks/exports-mq_1S73-.js.map b/build/server/chunks/exports-mq_1S73-.js.map new file mode 100644 index 0000000000000000000000000000000000000000..534f580093baa1d62e40db4a60d4aae8968f58f1 --- /dev/null +++ b/build/server/chunks/exports-mq_1S73-.js.map @@ -0,0 +1 @@ +{"version":3,"file":"exports-mq_1S73-.js","sources":["../../../.svelte-kit/adapter-node/chunks/exports.js"],"sourcesContent":["const internal = new URL(\"sveltekit-internal://\");\nfunction resolve(base, path) {\n if (path[0] === \"/\" && path[1] === \"/\")\n return path;\n let url = new URL(base, internal);\n url = new URL(path, url);\n return url.protocol === internal.protocol ? url.pathname + url.search + url.hash : url.href;\n}\nfunction normalize_path(path, trailing_slash) {\n if (path === \"/\" || trailing_slash === \"ignore\")\n return path;\n if (trailing_slash === \"never\") {\n return path.endsWith(\"/\") ? path.slice(0, -1) : path;\n } else if (trailing_slash === \"always\" && !path.endsWith(\"/\")) {\n return path + \"/\";\n }\n return path;\n}\nfunction decode_pathname(pathname) {\n return pathname.split(\"%25\").map(decodeURI).join(\"%25\");\n}\nfunction decode_params(params) {\n for (const key in params) {\n params[key] = decodeURIComponent(params[key]);\n }\n return params;\n}\nconst tracked_url_properties = (\n /** @type {const} */\n [\n \"href\",\n \"pathname\",\n \"search\",\n \"toString\",\n \"toJSON\"\n ]\n);\nfunction make_trackable(url, callback, search_params_callback) {\n const tracked = new URL(url);\n Object.defineProperty(tracked, \"searchParams\", {\n value: new Proxy(tracked.searchParams, {\n get(obj, key) {\n if (key === \"get\" || key === \"getAll\" || key === \"has\") {\n return (param) => {\n search_params_callback(param);\n return obj[key](param);\n };\n }\n callback();\n const value = Reflect.get(obj, key);\n return typeof value === \"function\" ? value.bind(obj) : value;\n }\n }),\n enumerable: true,\n configurable: true\n });\n for (const property of tracked_url_properties) {\n Object.defineProperty(tracked, property, {\n get() {\n callback();\n return url[property];\n },\n enumerable: true,\n configurable: true\n });\n }\n {\n tracked[Symbol.for(\"nodejs.util.inspect.custom\")] = (depth, opts, inspect) => {\n return inspect(url, opts);\n };\n }\n {\n disable_hash(tracked);\n }\n return tracked;\n}\nfunction disable_hash(url) {\n allow_nodejs_console_log(url);\n Object.defineProperty(url, \"hash\", {\n get() {\n throw new Error(\n \"Cannot access event.url.hash. Consider using `$page.url.hash` inside a component instead\"\n );\n }\n });\n}\nfunction disable_search(url) {\n allow_nodejs_console_log(url);\n for (const property of [\"search\", \"searchParams\"]) {\n Object.defineProperty(url, property, {\n get() {\n throw new Error(`Cannot access url.${property} on a page with prerendering enabled`);\n }\n });\n }\n}\nfunction allow_nodejs_console_log(url) {\n {\n url[Symbol.for(\"nodejs.util.inspect.custom\")] = (depth, opts, inspect) => {\n return inspect(new URL(url), opts);\n };\n }\n}\nconst DATA_SUFFIX = \"/__data.json\";\nconst HTML_DATA_SUFFIX = \".html__data.json\";\nfunction has_data_suffix(pathname) {\n return pathname.endsWith(DATA_SUFFIX) || pathname.endsWith(HTML_DATA_SUFFIX);\n}\nfunction add_data_suffix(pathname) {\n if (pathname.endsWith(\".html\"))\n return pathname.replace(/\\.html$/, HTML_DATA_SUFFIX);\n return pathname.replace(/\\/$/, \"\") + DATA_SUFFIX;\n}\nfunction strip_data_suffix(pathname) {\n if (pathname.endsWith(HTML_DATA_SUFFIX)) {\n return pathname.slice(0, -HTML_DATA_SUFFIX.length) + \".html\";\n }\n return pathname.slice(0, -DATA_SUFFIX.length);\n}\nfunction validator(expected) {\n function validate(module, file) {\n if (!module)\n return;\n for (const key in module) {\n if (key[0] === \"_\" || expected.has(key))\n continue;\n const values = [...expected.values()];\n const hint = hint_for_supported_files(key, file?.slice(file.lastIndexOf(\".\"))) ?? `valid exports are ${values.join(\", \")}, or anything with a '_' prefix`;\n throw new Error(`Invalid export '${key}'${file ? ` in ${file}` : \"\"} (${hint})`);\n }\n }\n return validate;\n}\nfunction hint_for_supported_files(key, ext = \".js\") {\n const supported_files = [];\n if (valid_layout_exports.has(key)) {\n supported_files.push(`+layout${ext}`);\n }\n if (valid_page_exports.has(key)) {\n supported_files.push(`+page${ext}`);\n }\n if (valid_layout_server_exports.has(key)) {\n supported_files.push(`+layout.server${ext}`);\n }\n if (valid_page_server_exports.has(key)) {\n supported_files.push(`+page.server${ext}`);\n }\n if (valid_server_exports.has(key)) {\n supported_files.push(`+server${ext}`);\n }\n if (supported_files.length > 0) {\n return `'${key}' is a valid export in ${supported_files.slice(0, -1).join(\", \")}${supported_files.length > 1 ? \" or \" : \"\"}${supported_files.at(-1)}`;\n }\n}\nconst valid_layout_exports = /* @__PURE__ */ new Set([\n \"load\",\n \"prerender\",\n \"csr\",\n \"ssr\",\n \"trailingSlash\",\n \"config\"\n]);\nconst valid_page_exports = /* @__PURE__ */ new Set([...valid_layout_exports, \"entries\"]);\nconst valid_layout_server_exports = /* @__PURE__ */ new Set([...valid_layout_exports]);\nconst valid_page_server_exports = /* @__PURE__ */ new Set([...valid_layout_server_exports, \"actions\", \"entries\"]);\nconst valid_server_exports = /* @__PURE__ */ new Set([\n \"GET\",\n \"POST\",\n \"PATCH\",\n \"PUT\",\n \"DELETE\",\n \"OPTIONS\",\n \"HEAD\",\n \"fallback\",\n \"prerender\",\n \"trailingSlash\",\n \"config\",\n \"entries\"\n]);\nconst validate_layout_exports = validator(valid_layout_exports);\nconst validate_page_exports = validator(valid_page_exports);\nconst validate_layout_server_exports = validator(valid_layout_server_exports);\nconst validate_page_server_exports = validator(valid_page_server_exports);\nconst validate_server_exports = validator(valid_server_exports);\nexport {\n add_data_suffix as a,\n decode_pathname as b,\n decode_params as c,\n disable_search as d,\n validate_layout_exports as e,\n validate_page_server_exports as f,\n validate_page_exports as g,\n has_data_suffix as h,\n validate_server_exports as i,\n make_trackable as m,\n normalize_path as n,\n resolve as r,\n strip_data_suffix as s,\n validate_layout_server_exports as v\n};\n"],"names":[],"mappings":"AAAA,MAAM,QAAQ,GAAG,IAAI,GAAG,CAAC,uBAAuB,CAAC,CAAC;AAClD,SAAS,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE;AAC7B,EAAE,IAAI,IAAI,CAAC,CAAC,CAAC,KAAK,GAAG,IAAI,IAAI,CAAC,CAAC,CAAC,KAAK,GAAG;AACxC,IAAI,OAAO,IAAI,CAAC;AAChB,EAAE,IAAI,GAAG,GAAG,IAAI,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AACpC,EAAE,GAAG,GAAG,IAAI,GAAG,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;AAC3B,EAAE,OAAO,GAAG,CAAC,QAAQ,KAAK,QAAQ,CAAC,QAAQ,GAAG,GAAG,CAAC,QAAQ,GAAG,GAAG,CAAC,MAAM,GAAG,GAAG,CAAC,IAAI,GAAG,GAAG,CAAC,IAAI,CAAC;AAC9F,CAAC;AACD,SAAS,cAAc,CAAC,IAAI,EAAE,cAAc,EAAE;AAC9C,EAAE,IAAI,IAAI,KAAK,GAAG,IAAI,cAAc,KAAK,QAAQ;AACjD,IAAI,OAAO,IAAI,CAAC;AAChB,EAAE,IAAI,cAAc,KAAK,OAAO,EAAE;AAClC,IAAI,OAAO,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC;AACzD,GAAG,MAAM,IAAI,cAAc,KAAK,QAAQ,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;AACjE,IAAI,OAAO,IAAI,GAAG,GAAG,CAAC;AACtB,GAAG;AACH,EAAE,OAAO,IAAI,CAAC;AACd,CAAC;AACD,SAAS,eAAe,CAAC,QAAQ,EAAE;AACnC,EAAE,OAAO,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AAC1D,CAAC;AACD,SAAS,aAAa,CAAC,MAAM,EAAE;AAC/B,EAAE,KAAK,MAAM,GAAG,IAAI,MAAM,EAAE;AAC5B,IAAI,MAAM,CAAC,GAAG,CAAC,GAAG,kBAAkB,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC;AAClD,GAAG;AACH,EAAE,OAAO,MAAM,CAAC;AAChB,CAAC;AACD,MAAM,sBAAsB;AAC5B;AACA,EAAE;AACF,IAAI,MAAM;AACV,IAAI,UAAU;AACd,IAAI,QAAQ;AACZ,IAAI,UAAU;AACd,IAAI,QAAQ;AACZ,GAAG;AACH,CAAC,CAAC;AACF,SAAS,cAAc,CAAC,GAAG,EAAE,QAAQ,EAAE,sBAAsB,EAAE;AAC/D,EAAE,MAAM,OAAO,GAAG,IAAI,GAAG,CAAC,GAAG,CAAC,CAAC;AAC/B,EAAE,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,cAAc,EAAE;AACjD,IAAI,KAAK,EAAE,IAAI,KAAK,CAAC,OAAO,CAAC,YAAY,EAAE;AAC3C,MAAM,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE;AACpB,QAAQ,IAAI,GAAG,KAAK,KAAK,IAAI,GAAG,KAAK,QAAQ,IAAI,GAAG,KAAK,KAAK,EAAE;AAChE,UAAU,OAAO,CAAC,KAAK,KAAK;AAC5B,YAAY,sBAAsB,CAAC,KAAK,CAAC,CAAC;AAC1C,YAAY,OAAO,GAAG,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC;AACnC,WAAW,CAAC;AACZ,SAAS;AACT,QAAQ,QAAQ,EAAE,CAAC;AACnB,QAAQ,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;AAC5C,QAAQ,OAAO,OAAO,KAAK,KAAK,UAAU,GAAG,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;AACrE,OAAO;AACP,KAAK,CAAC;AACN,IAAI,UAAU,EAAE,IAAI;AACpB,IAAI,YAAY,EAAE,IAAI;AACtB,GAAG,CAAC,CAAC;AACL,EAAE,KAAK,MAAM,QAAQ,IAAI,sBAAsB,EAAE;AACjD,IAAI,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,QAAQ,EAAE;AAC7C,MAAM,GAAG,GAAG;AACZ,QAAQ,QAAQ,EAAE,CAAC;AACnB,QAAQ,OAAO,GAAG,CAAC,QAAQ,CAAC,CAAC;AAC7B,OAAO;AACP,MAAM,UAAU,EAAE,IAAI;AACtB,MAAM,YAAY,EAAE,IAAI;AACxB,KAAK,CAAC,CAAC;AACP,GAAG;AACH,EAAE;AACF,IAAI,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,4BAA4B,CAAC,CAAC,GAAG,CAAC,KAAK,EAAE,IAAI,EAAE,OAAO,KAAK;AAClF,MAAM,OAAO,OAAO,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;AAChC,KAAK,CAAC;AACN,GAAG;AACH,EAAE;AACF,IAAI,YAAY,CAAC,OAAO,CAAC,CAAC;AAC1B,GAAG;AACH,EAAE,OAAO,OAAO,CAAC;AACjB,CAAC;AACD,SAAS,YAAY,CAAC,GAAG,EAAE;AAC3B,EAAE,wBAAwB,CAAC,GAAG,CAAC,CAAC;AAChC,EAAE,MAAM,CAAC,cAAc,CAAC,GAAG,EAAE,MAAM,EAAE;AACrC,IAAI,GAAG,GAAG;AACV,MAAM,MAAM,IAAI,KAAK;AACrB,QAAQ,0FAA0F;AAClG,OAAO,CAAC;AACR,KAAK;AACL,GAAG,CAAC,CAAC;AACL,CAAC;AACD,SAAS,cAAc,CAAC,GAAG,EAAE;AAC7B,EAAE,wBAAwB,CAAC,GAAG,CAAC,CAAC;AAChC,EAAE,KAAK,MAAM,QAAQ,IAAI,CAAC,QAAQ,EAAE,cAAc,CAAC,EAAE;AACrD,IAAI,MAAM,CAAC,cAAc,CAAC,GAAG,EAAE,QAAQ,EAAE;AACzC,MAAM,GAAG,GAAG;AACZ,QAAQ,MAAM,IAAI,KAAK,CAAC,CAAC,kBAAkB,EAAE,QAAQ,CAAC,oCAAoC,CAAC,CAAC,CAAC;AAC7F,OAAO;AACP,KAAK,CAAC,CAAC;AACP,GAAG;AACH,CAAC;AACD,SAAS,wBAAwB,CAAC,GAAG,EAAE;AACvC,EAAE;AACF,IAAI,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,4BAA4B,CAAC,CAAC,GAAG,CAAC,KAAK,EAAE,IAAI,EAAE,OAAO,KAAK;AAC9E,MAAM,OAAO,OAAO,CAAC,IAAI,GAAG,CAAC,GAAG,CAAC,EAAE,IAAI,CAAC,CAAC;AACzC,KAAK,CAAC;AACN,GAAG;AACH,CAAC;AACD,MAAM,WAAW,GAAG,cAAc,CAAC;AACnC,MAAM,gBAAgB,GAAG,kBAAkB,CAAC;AAC5C,SAAS,eAAe,CAAC,QAAQ,EAAE;AACnC,EAAE,OAAO,QAAQ,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAI,QAAQ,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAAC;AAC/E,CAAC;AACD,SAAS,eAAe,CAAC,QAAQ,EAAE;AACnC,EAAE,IAAI,QAAQ,CAAC,QAAQ,CAAC,OAAO,CAAC;AAChC,IAAI,OAAO,QAAQ,CAAC,OAAO,CAAC,SAAS,EAAE,gBAAgB,CAAC,CAAC;AACzD,EAAE,OAAO,QAAQ,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,GAAG,WAAW,CAAC;AACnD,CAAC;AACD,SAAS,iBAAiB,CAAC,QAAQ,EAAE;AACrC,EAAE,IAAI,QAAQ,CAAC,QAAQ,CAAC,gBAAgB,CAAC,EAAE;AAC3C,IAAI,OAAO,QAAQ,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,gBAAgB,CAAC,MAAM,CAAC,GAAG,OAAO,CAAC;AACjE,GAAG;AACH,EAAE,OAAO,QAAQ,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;AAChD,CAAC;AAoCD,MAAM,oBAAoB,mBAAmB,IAAI,GAAG,CAAC;AACrD,EAAE,MAAM;AACR,EAAE,WAAW;AACb,EAAE,KAAK;AACP,EAAE,KAAK;AACP,EAAE,eAAe;AACjB,EAAE,QAAQ;AACV,CAAC,CAAC,CAAC;AACwB,gBAAgB,IAAI,GAAG,CAAC,CAAC,GAAG,oBAAoB,EAAE,SAAS,CAAC,EAAE;AACzF,MAAM,2BAA2B,mBAAmB,IAAI,GAAG,CAAC,CAAC,GAAG,oBAAoB,CAAC,CAAC,CAAC;AACrD,gBAAgB,IAAI,GAAG,CAAC,CAAC,GAAG,2BAA2B,EAAE,SAAS,EAAE,SAAS,CAAC;;;;"} \ No newline at end of file diff --git a/build/server/chunks/index-JNnR1J8_.js b/build/server/chunks/index-JNnR1J8_.js new file mode 100644 index 0000000000000000000000000000000000000000..770b317d96a7f0ec1ef095c1fdbd6df278d867aa --- /dev/null +++ b/build/server/chunks/index-JNnR1J8_.js @@ -0,0 +1,102 @@ +let base = ""; +let assets = base; +const initial = { base, assets }; +function override(paths) { + base = paths.base; + assets = paths.assets; +} +function reset() { + base = initial.base; + assets = initial.assets; +} + +class HttpError { + /** + * @param {number} status + * @param {{message: string} extends App.Error ? (App.Error | string | undefined) : App.Error} body + */ + constructor(status, body) { + this.status = status; + if (typeof body === "string") { + this.body = { message: body }; + } else if (body) { + this.body = body; + } else { + this.body = { message: `Error: ${status}` }; + } + } + toString() { + return JSON.stringify(this.body); + } +} +class Redirect { + /** + * @param {300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308} status + * @param {string} location + */ + constructor(status, location) { + this.status = status; + this.location = location; + } +} +class SvelteKitError extends Error { + /** + * @param {number} status + * @param {string} text + * @param {string} message + */ + constructor(status, text2, message) { + super(message); + this.status = status; + this.text = text2; + } +} +class ActionFailure { + /** + * @param {number} status + * @param {T} data + */ + constructor(status, data) { + this.status = status; + this.data = data; + } +} +function redirect(status, location) { + if (isNaN(status) || status < 300 || status > 308) { + throw new Error("Invalid status code"); + } + throw new Redirect(status, location.toString()); +} +function json(data, init) { + const body = JSON.stringify(data); + const headers = new Headers(init?.headers); + if (!headers.has("content-length")) { + headers.set("content-length", encoder.encode(body).byteLength.toString()); + } + if (!headers.has("content-type")) { + headers.set("content-type", "application/json"); + } + return new Response(body, { + ...init, + headers + }); +} +const encoder = new TextEncoder(); +function text(body, init) { + const headers = new Headers(init?.headers); + if (!headers.has("content-length")) { + const encoded = encoder.encode(body); + headers.set("content-length", encoded.byteLength.toString()); + return new Response(encoded, { + ...init, + headers + }); + } + return new Response(body, { + ...init, + headers + }); +} + +export { ActionFailure as A, HttpError as H, Redirect as R, SvelteKitError as S, assets as a, base as b, redirect as c, json as j, override as o, reset as r, text as t }; +//# sourceMappingURL=index-JNnR1J8_.js.map diff --git a/build/server/chunks/index-JNnR1J8_.js.map b/build/server/chunks/index-JNnR1J8_.js.map new file mode 100644 index 0000000000000000000000000000000000000000..69906c95807377fb3f126b80c28519f8f6b7d0ca --- /dev/null +++ b/build/server/chunks/index-JNnR1J8_.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index-JNnR1J8_.js","sources":["../../../.svelte-kit/adapter-node/chunks/paths.js","../../../.svelte-kit/adapter-node/chunks/index.js"],"sourcesContent":["let base = \"\";\nlet assets = base;\nconst initial = { base, assets };\nfunction override(paths) {\n base = paths.base;\n assets = paths.assets;\n}\nfunction reset() {\n base = initial.base;\n assets = initial.assets;\n}\nfunction set_assets(path) {\n assets = initial.assets = path;\n}\nexport {\n assets as a,\n base as b,\n override as o,\n reset as r,\n set_assets as s\n};\n","class HttpError {\n /**\n * @param {number} status\n * @param {{message: string} extends App.Error ? (App.Error | string | undefined) : App.Error} body\n */\n constructor(status, body) {\n this.status = status;\n if (typeof body === \"string\") {\n this.body = { message: body };\n } else if (body) {\n this.body = body;\n } else {\n this.body = { message: `Error: ${status}` };\n }\n }\n toString() {\n return JSON.stringify(this.body);\n }\n}\nclass Redirect {\n /**\n * @param {300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308} status\n * @param {string} location\n */\n constructor(status, location) {\n this.status = status;\n this.location = location;\n }\n}\nclass SvelteKitError extends Error {\n /**\n * @param {number} status\n * @param {string} text\n * @param {string} message\n */\n constructor(status, text2, message) {\n super(message);\n this.status = status;\n this.text = text2;\n }\n}\nclass ActionFailure {\n /**\n * @param {number} status\n * @param {T} data\n */\n constructor(status, data) {\n this.status = status;\n this.data = data;\n }\n}\nfunction redirect(status, location) {\n if (isNaN(status) || status < 300 || status > 308) {\n throw new Error(\"Invalid status code\");\n }\n throw new Redirect(status, location.toString());\n}\nfunction json(data, init) {\n const body = JSON.stringify(data);\n const headers = new Headers(init?.headers);\n if (!headers.has(\"content-length\")) {\n headers.set(\"content-length\", encoder.encode(body).byteLength.toString());\n }\n if (!headers.has(\"content-type\")) {\n headers.set(\"content-type\", \"application/json\");\n }\n return new Response(body, {\n ...init,\n headers\n });\n}\nconst encoder = new TextEncoder();\nfunction text(body, init) {\n const headers = new Headers(init?.headers);\n if (!headers.has(\"content-length\")) {\n const encoded = encoder.encode(body);\n headers.set(\"content-length\", encoded.byteLength.toString());\n return new Response(encoded, {\n ...init,\n headers\n });\n }\n return new Response(body, {\n ...init,\n headers\n });\n}\nexport {\n ActionFailure as A,\n HttpError as H,\n Redirect as R,\n SvelteKitError as S,\n json as j,\n redirect as r,\n text as t\n};\n"],"names":[],"mappings":"AAAG,IAAC,IAAI,GAAG,GAAG;AACX,IAAC,MAAM,GAAG,KAAK;AAClB,MAAM,OAAO,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;AACjC,SAAS,QAAQ,CAAC,KAAK,EAAE;AACzB,EAAE,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC;AACpB,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;AACxB,CAAC;AACD,SAAS,KAAK,GAAG;AACjB,EAAE,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;AACtB,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;AAC1B;;ACVA,MAAM,SAAS,CAAC;AAChB;AACA;AACA;AACA;AACA,EAAE,WAAW,CAAC,MAAM,EAAE,IAAI,EAAE;AAC5B,IAAI,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;AACzB,IAAI,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;AAClC,MAAM,IAAI,CAAC,IAAI,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;AACpC,KAAK,MAAM,IAAI,IAAI,EAAE;AACrB,MAAM,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;AACvB,KAAK,MAAM;AACX,MAAM,IAAI,CAAC,IAAI,GAAG,EAAE,OAAO,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,EAAE,CAAC;AAClD,KAAK;AACL,GAAG;AACH,EAAE,QAAQ,GAAG;AACb,IAAI,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACrC,GAAG;AACH,CAAC;AACD,MAAM,QAAQ,CAAC;AACf;AACA;AACA;AACA;AACA,EAAE,WAAW,CAAC,MAAM,EAAE,QAAQ,EAAE;AAChC,IAAI,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;AACzB,IAAI,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;AAC7B,GAAG;AACH,CAAC;AACD,MAAM,cAAc,SAAS,KAAK,CAAC;AACnC;AACA;AACA;AACA;AACA;AACA,EAAE,WAAW,CAAC,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE;AACtC,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC;AACnB,IAAI,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;AACzB,IAAI,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC;AACtB,GAAG;AACH,CAAC;AACD,MAAM,aAAa,CAAC;AACpB;AACA;AACA;AACA;AACA,EAAE,WAAW,CAAC,MAAM,EAAE,IAAI,EAAE;AAC5B,IAAI,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;AACzB,IAAI,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;AACrB,GAAG;AACH,CAAC;AACD,SAAS,QAAQ,CAAC,MAAM,EAAE,QAAQ,EAAE;AACpC,EAAE,IAAI,KAAK,CAAC,MAAM,CAAC,IAAI,MAAM,GAAG,GAAG,IAAI,MAAM,GAAG,GAAG,EAAE;AACrD,IAAI,MAAM,IAAI,KAAK,CAAC,qBAAqB,CAAC,CAAC;AAC3C,GAAG;AACH,EAAE,MAAM,IAAI,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC,QAAQ,EAAE,CAAC,CAAC;AAClD,CAAC;AACD,SAAS,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE;AAC1B,EAAE,MAAM,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;AACpC,EAAE,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;AAC7C,EAAE,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,gBAAgB,CAAC,EAAE;AACtC,IAAI,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAE,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC,CAAC;AAC9E,GAAG;AACH,EAAE,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,EAAE;AACpC,IAAI,OAAO,CAAC,GAAG,CAAC,cAAc,EAAE,kBAAkB,CAAC,CAAC;AACpD,GAAG;AACH,EAAE,OAAO,IAAI,QAAQ,CAAC,IAAI,EAAE;AAC5B,IAAI,GAAG,IAAI;AACX,IAAI,OAAO;AACX,GAAG,CAAC,CAAC;AACL,CAAC;AACD,MAAM,OAAO,GAAG,IAAI,WAAW,EAAE,CAAC;AAClC,SAAS,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE;AAC1B,EAAE,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;AAC7C,EAAE,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,gBAAgB,CAAC,EAAE;AACtC,IAAI,MAAM,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACzC,IAAI,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAE,OAAO,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC,CAAC;AACjE,IAAI,OAAO,IAAI,QAAQ,CAAC,OAAO,EAAE;AACjC,MAAM,GAAG,IAAI;AACb,MAAM,OAAO;AACb,KAAK,CAAC,CAAC;AACP,GAAG;AACH,EAAE,OAAO,IAAI,QAAQ,CAAC,IAAI,EAAE;AAC5B,IAAI,GAAG,IAAI;AACX,IAAI,OAAO;AACX,GAAG,CAAC,CAAC;AACL;;;;"} \ No newline at end of file diff --git a/build/server/chunks/shared-server-49TKSBDM.js b/build/server/chunks/shared-server-49TKSBDM.js new file mode 100644 index 0000000000000000000000000000000000000000..ed53f03d2d394ad26735b67a6379be26b9ff00e1 --- /dev/null +++ b/build/server/chunks/shared-server-49TKSBDM.js @@ -0,0 +1,15 @@ +let private_env = {}; +let public_env = {}; +let safe_public_env = {}; +function set_private_env(environment) { + private_env = environment; +} +function set_public_env(environment) { + public_env = environment; +} +function set_safe_public_env(environment) { + safe_public_env = environment; +} + +export { set_private_env as a, set_public_env as b, set_safe_public_env as c, private_env as d, public_env as p, safe_public_env as s }; +//# sourceMappingURL=shared-server-49TKSBDM.js.map diff --git a/build/server/chunks/shared-server-49TKSBDM.js.map b/build/server/chunks/shared-server-49TKSBDM.js.map new file mode 100644 index 0000000000000000000000000000000000000000..34cdb54ab667b9b04c0201b8efb337e23a9fbf23 --- /dev/null +++ b/build/server/chunks/shared-server-49TKSBDM.js.map @@ -0,0 +1 @@ +{"version":3,"file":"shared-server-49TKSBDM.js","sources":["../../../.svelte-kit/adapter-node/chunks/shared-server.js"],"sourcesContent":["let private_env = {};\nlet public_env = {};\nlet safe_public_env = {};\nfunction set_private_env(environment) {\n private_env = environment;\n}\nfunction set_public_env(environment) {\n public_env = environment;\n}\nfunction set_safe_public_env(environment) {\n safe_public_env = environment;\n}\nexport {\n set_private_env as a,\n set_public_env as b,\n set_safe_public_env as c,\n private_env as d,\n public_env as p,\n safe_public_env as s\n};\n"],"names":[],"mappings":"AAAG,IAAC,WAAW,GAAG,GAAG;AAClB,IAAC,UAAU,GAAG,GAAG;AACjB,IAAC,eAAe,GAAG,GAAG;AACzB,SAAS,eAAe,CAAC,WAAW,EAAE;AACtC,EAAE,WAAW,GAAG,WAAW,CAAC;AAC5B,CAAC;AACD,SAAS,cAAc,CAAC,WAAW,EAAE;AACrC,EAAE,UAAU,GAAG,WAAW,CAAC;AAC3B,CAAC;AACD,SAAS,mBAAmB,CAAC,WAAW,EAAE;AAC1C,EAAE,eAAe,GAAG,WAAW,CAAC;AAChC;;;;"} \ No newline at end of file diff --git a/build/server/chunks/ssr-jUwReIMa.js b/build/server/chunks/ssr-jUwReIMa.js new file mode 100644 index 0000000000000000000000000000000000000000..e8117397e2f3c0c7068dfc8a8bcfce50ea4640e3 --- /dev/null +++ b/build/server/chunks/ssr-jUwReIMa.js @@ -0,0 +1,109 @@ +function noop() { +} +function run(fn) { + return fn(); +} +function blank_object() { + return /* @__PURE__ */ Object.create(null); +} +function run_all(fns) { + fns.forEach(run); +} +function safe_not_equal(a, b) { + return a != a ? b == b : a !== b || a && typeof a === "object" || typeof a === "function"; +} +function subscribe(store, ...callbacks) { + if (store == null) { + for (const callback of callbacks) { + callback(void 0); + } + return noop; + } + const unsub = store.subscribe(...callbacks); + return unsub.unsubscribe ? () => unsub.unsubscribe() : unsub; +} +let current_component; +function set_current_component(component) { + current_component = component; +} +function get_current_component() { + if (!current_component) + throw new Error("Function called outside component initialization"); + return current_component; +} +function setContext(key, context) { + get_current_component().$$.context.set(key, context); + return context; +} +function getContext(key) { + return get_current_component().$$.context.get(key); +} +const ATTR_REGEX = /[&"]/g; +const CONTENT_REGEX = /[&<]/g; +function escape(value, is_attr = false) { + const str = String(value); + const pattern = is_attr ? ATTR_REGEX : CONTENT_REGEX; + pattern.lastIndex = 0; + let escaped = ""; + let last = 0; + while (pattern.test(str)) { + const i = pattern.lastIndex - 1; + const ch = str[i]; + escaped += str.substring(last, i) + (ch === "&" ? "&" : ch === '"' ? """ : "<"); + last = i + 1; + } + return escaped + str.substring(last); +} +const missing_component = { + $$render: () => "" +}; +function validate_component(component, name) { + if (!component || !component.$$render) { + if (name === "svelte:component") + name += " this={...}"; + throw new Error( + `<${name}> is not a valid SSR component. You may need to review your build config to ensure that dependencies are compiled, rather than imported as pre-compiled modules. Otherwise you may need to fix a <${name}>.` + ); + } + return component; +} +let on_destroy; +function create_ssr_component(fn) { + function $$render(result, props, bindings, slots, context) { + const parent_component = current_component; + const $$ = { + on_destroy, + context: new Map(context || (parent_component ? parent_component.$$.context : [])), + // these will be immediately discarded + on_mount: [], + before_update: [], + after_update: [], + callbacks: blank_object() + }; + set_current_component({ $$ }); + const html = fn(result, props, bindings, slots); + set_current_component(parent_component); + return html; + } + return { + render: (props = {}, { $$slots = {}, context = /* @__PURE__ */ new Map() } = {}) => { + on_destroy = []; + const result = { title: "", head: "", css: /* @__PURE__ */ new Set() }; + const html = $$render(result, props, {}, $$slots, context); + run_all(on_destroy); + return { + html, + css: { + code: Array.from(result.css).map((css) => css.code).join("\n"), + map: null + // TODO + }, + head: result.title + result.head + }; + }, + $$render + }; +} + +export { setContext as a, subscribe as b, create_ssr_component as c, escape as e, getContext as g, missing_component as m, noop as n, safe_not_equal as s, validate_component as v }; +//# sourceMappingURL=ssr-jUwReIMa.js.map diff --git a/build/server/chunks/ssr-jUwReIMa.js.map b/build/server/chunks/ssr-jUwReIMa.js.map new file mode 100644 index 0000000000000000000000000000000000000000..a1ce9e6628e77732ea8c3029179be8051d3d6b10 --- /dev/null +++ b/build/server/chunks/ssr-jUwReIMa.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ssr-jUwReIMa.js","sources":["../../../.svelte-kit/adapter-node/chunks/ssr.js"],"sourcesContent":["function noop() {\n}\nfunction run(fn) {\n return fn();\n}\nfunction blank_object() {\n return /* @__PURE__ */ Object.create(null);\n}\nfunction run_all(fns) {\n fns.forEach(run);\n}\nfunction safe_not_equal(a, b) {\n return a != a ? b == b : a !== b || a && typeof a === \"object\" || typeof a === \"function\";\n}\nfunction subscribe(store, ...callbacks) {\n if (store == null) {\n for (const callback of callbacks) {\n callback(void 0);\n }\n return noop;\n }\n const unsub = store.subscribe(...callbacks);\n return unsub.unsubscribe ? () => unsub.unsubscribe() : unsub;\n}\nfunction get_store_value(store) {\n let value;\n subscribe(store, (_) => value = _)();\n return value;\n}\nfunction compute_rest_props(props, keys) {\n const rest = {};\n keys = new Set(keys);\n for (const k in props)\n if (!keys.has(k) && k[0] !== \"$\")\n rest[k] = props[k];\n return rest;\n}\nfunction compute_slots(slots) {\n const result = {};\n for (const key in slots) {\n result[key] = true;\n }\n return result;\n}\nfunction split_css_unit(value) {\n const split = typeof value === \"string\" && value.match(/^\\s*(-?[\\d.]+)([^\\s]*)\\s*$/);\n return split ? [parseFloat(split[1]), split[2] || \"px\"] : [\n /** @type {number} */\n value,\n \"px\"\n ];\n}\nfunction custom_event(type, detail, { bubbles = false, cancelable = false } = {}) {\n return new CustomEvent(type, { detail, bubbles, cancelable });\n}\nlet current_component;\nfunction set_current_component(component) {\n current_component = component;\n}\nfunction get_current_component() {\n if (!current_component)\n throw new Error(\"Function called outside component initialization\");\n return current_component;\n}\nfunction onDestroy(fn) {\n get_current_component().$$.on_destroy.push(fn);\n}\nfunction createEventDispatcher() {\n const component = get_current_component();\n return (type, detail, { cancelable = false } = {}) => {\n const callbacks = component.$$.callbacks[type];\n if (callbacks) {\n const event = custom_event(\n /** @type {string} */\n type,\n detail,\n { cancelable }\n );\n callbacks.slice().forEach((fn) => {\n fn.call(component, event);\n });\n return !event.defaultPrevented;\n }\n return true;\n };\n}\nfunction setContext(key, context) {\n get_current_component().$$.context.set(key, context);\n return context;\n}\nfunction getContext(key) {\n return get_current_component().$$.context.get(key);\n}\nfunction ensure_array_like(array_like_or_iterator) {\n return array_like_or_iterator?.length !== void 0 ? array_like_or_iterator : Array.from(array_like_or_iterator);\n}\nconst _boolean_attributes = (\n /** @type {const} */\n [\n \"allowfullscreen\",\n \"allowpaymentrequest\",\n \"async\",\n \"autofocus\",\n \"autoplay\",\n \"checked\",\n \"controls\",\n \"default\",\n \"defer\",\n \"disabled\",\n \"formnovalidate\",\n \"hidden\",\n \"inert\",\n \"ismap\",\n \"loop\",\n \"multiple\",\n \"muted\",\n \"nomodule\",\n \"novalidate\",\n \"open\",\n \"playsinline\",\n \"readonly\",\n \"required\",\n \"reversed\",\n \"selected\"\n ]\n);\nconst boolean_attributes = /* @__PURE__ */ new Set([..._boolean_attributes]);\nconst invalid_attribute_name_character = /[\\s'\">/=\\u{FDD0}-\\u{FDEF}\\u{FFFE}\\u{FFFF}\\u{1FFFE}\\u{1FFFF}\\u{2FFFE}\\u{2FFFF}\\u{3FFFE}\\u{3FFFF}\\u{4FFFE}\\u{4FFFF}\\u{5FFFE}\\u{5FFFF}\\u{6FFFE}\\u{6FFFF}\\u{7FFFE}\\u{7FFFF}\\u{8FFFE}\\u{8FFFF}\\u{9FFFE}\\u{9FFFF}\\u{AFFFE}\\u{AFFFF}\\u{BFFFE}\\u{BFFFF}\\u{CFFFE}\\u{CFFFF}\\u{DFFFE}\\u{DFFFF}\\u{EFFFE}\\u{EFFFF}\\u{FFFFE}\\u{FFFFF}\\u{10FFFE}\\u{10FFFF}]/u;\nfunction spread(args, attrs_to_add) {\n const attributes = Object.assign({}, ...args);\n if (attrs_to_add) {\n const classes_to_add = attrs_to_add.classes;\n const styles_to_add = attrs_to_add.styles;\n if (classes_to_add) {\n if (attributes.class == null) {\n attributes.class = classes_to_add;\n } else {\n attributes.class += \" \" + classes_to_add;\n }\n }\n if (styles_to_add) {\n if (attributes.style == null) {\n attributes.style = style_object_to_string(styles_to_add);\n } else {\n attributes.style = style_object_to_string(\n merge_ssr_styles(attributes.style, styles_to_add)\n );\n }\n }\n }\n let str = \"\";\n Object.keys(attributes).forEach((name) => {\n if (invalid_attribute_name_character.test(name))\n return;\n const value = attributes[name];\n if (value === true)\n str += \" \" + name;\n else if (boolean_attributes.has(name.toLowerCase())) {\n if (value)\n str += \" \" + name;\n } else if (value != null) {\n str += ` ${name}=\"${value}\"`;\n }\n });\n return str;\n}\nfunction merge_ssr_styles(style_attribute, style_directive) {\n const style_object = {};\n for (const individual_style of style_attribute.split(\";\")) {\n const colon_index = individual_style.indexOf(\":\");\n const name = individual_style.slice(0, colon_index).trim();\n const value = individual_style.slice(colon_index + 1).trim();\n if (!name)\n continue;\n style_object[name] = value;\n }\n for (const name in style_directive) {\n const value = style_directive[name];\n if (value) {\n style_object[name] = value;\n } else {\n delete style_object[name];\n }\n }\n return style_object;\n}\nconst ATTR_REGEX = /[&\"]/g;\nconst CONTENT_REGEX = /[&<]/g;\nfunction escape(value, is_attr = false) {\n const str = String(value);\n const pattern = is_attr ? ATTR_REGEX : CONTENT_REGEX;\n pattern.lastIndex = 0;\n let escaped = \"\";\n let last = 0;\n while (pattern.test(str)) {\n const i = pattern.lastIndex - 1;\n const ch = str[i];\n escaped += str.substring(last, i) + (ch === \"&\" ? \"&\" : ch === '\"' ? \""\" : \"<\");\n last = i + 1;\n }\n return escaped + str.substring(last);\n}\nfunction escape_attribute_value(value) {\n const should_escape = typeof value === \"string\" || value && typeof value === \"object\";\n return should_escape ? escape(value, true) : value;\n}\nfunction escape_object(obj) {\n const result = {};\n for (const key in obj) {\n result[key] = escape_attribute_value(obj[key]);\n }\n return result;\n}\nfunction each(items, fn) {\n items = ensure_array_like(items);\n let str = \"\";\n for (let i = 0; i < items.length; i += 1) {\n str += fn(items[i], i);\n }\n return str;\n}\nconst missing_component = {\n $$render: () => \"\"\n};\nfunction validate_component(component, name) {\n if (!component || !component.$$render) {\n if (name === \"svelte:component\")\n name += \" this={...}\";\n throw new Error(\n `<${name}> is not a valid SSR component. You may need to review your build config to ensure that dependencies are compiled, rather than imported as pre-compiled modules. Otherwise you may need to fix a <${name}>.`\n );\n }\n return component;\n}\nlet on_destroy;\nfunction create_ssr_component(fn) {\n function $$render(result, props, bindings, slots, context) {\n const parent_component = current_component;\n const $$ = {\n on_destroy,\n context: new Map(context || (parent_component ? parent_component.$$.context : [])),\n // these will be immediately discarded\n on_mount: [],\n before_update: [],\n after_update: [],\n callbacks: blank_object()\n };\n set_current_component({ $$ });\n const html = fn(result, props, bindings, slots);\n set_current_component(parent_component);\n return html;\n }\n return {\n render: (props = {}, { $$slots = {}, context = /* @__PURE__ */ new Map() } = {}) => {\n on_destroy = [];\n const result = { title: \"\", head: \"\", css: /* @__PURE__ */ new Set() };\n const html = $$render(result, props, {}, $$slots, context);\n run_all(on_destroy);\n return {\n html,\n css: {\n code: Array.from(result.css).map((css) => css.code).join(\"\\n\"),\n map: null\n // TODO\n },\n head: result.title + result.head\n };\n },\n $$render\n };\n}\nfunction add_attribute(name, value, boolean) {\n if (value == null || boolean && !value)\n return \"\";\n const assignment = boolean && value === true ? \"\" : `=\"${escape(value, true)}\"`;\n return ` ${name}${assignment}`;\n}\nfunction style_object_to_string(style_object) {\n return Object.keys(style_object).filter((key) => style_object[key]).map((key) => `${key}: ${escape_attribute_value(style_object[key])};`).join(\" \");\n}\nexport {\n subscribe as a,\n add_attribute as b,\n create_ssr_component as c,\n get_store_value as d,\n escape as e,\n split_css_unit as f,\n getContext as g,\n compute_rest_props as h,\n createEventDispatcher as i,\n spread as j,\n escape_attribute_value as k,\n escape_object as l,\n missing_component as m,\n compute_slots as n,\n each as o,\n onDestroy as p,\n noop as q,\n safe_not_equal as r,\n setContext as s,\n validate_component as v\n};\n"],"names":[],"mappings":"AAAA,SAAS,IAAI,GAAG;AAChB,CAAC;AACD,SAAS,GAAG,CAAC,EAAE,EAAE;AACjB,EAAE,OAAO,EAAE,EAAE,CAAC;AACd,CAAC;AACD,SAAS,YAAY,GAAG;AACxB,EAAE,uBAAuB,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AAC7C,CAAC;AACD,SAAS,OAAO,CAAC,GAAG,EAAE;AACtB,EAAE,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;AACnB,CAAC;AACD,SAAS,cAAc,CAAC,CAAC,EAAE,CAAC,EAAE;AAC9B,EAAE,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,OAAO,CAAC,KAAK,QAAQ,IAAI,OAAO,CAAC,KAAK,UAAU,CAAC;AAC5F,CAAC;AACD,SAAS,SAAS,CAAC,KAAK,EAAE,GAAG,SAAS,EAAE;AACxC,EAAE,IAAI,KAAK,IAAI,IAAI,EAAE;AACrB,IAAI,KAAK,MAAM,QAAQ,IAAI,SAAS,EAAE;AACtC,MAAM,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC;AACvB,KAAK;AACL,IAAI,OAAO,IAAI,CAAC;AAChB,GAAG;AACH,EAAE,MAAM,KAAK,GAAG,KAAK,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC,CAAC;AAC9C,EAAE,OAAO,KAAK,CAAC,WAAW,GAAG,MAAM,KAAK,CAAC,WAAW,EAAE,GAAG,KAAK,CAAC;AAC/D,CAAC;AAgCD,IAAI,iBAAiB,CAAC;AACtB,SAAS,qBAAqB,CAAC,SAAS,EAAE;AAC1C,EAAE,iBAAiB,GAAG,SAAS,CAAC;AAChC,CAAC;AACD,SAAS,qBAAqB,GAAG;AACjC,EAAE,IAAI,CAAC,iBAAiB;AACxB,IAAI,MAAM,IAAI,KAAK,CAAC,kDAAkD,CAAC,CAAC;AACxE,EAAE,OAAO,iBAAiB,CAAC;AAC3B,CAAC;AAuBD,SAAS,UAAU,CAAC,GAAG,EAAE,OAAO,EAAE;AAClC,EAAE,qBAAqB,EAAE,CAAC,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;AACvD,EAAE,OAAO,OAAO,CAAC;AACjB,CAAC;AACD,SAAS,UAAU,CAAC,GAAG,EAAE;AACzB,EAAE,OAAO,qBAAqB,EAAE,CAAC,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AACrD,CAAC;AA8FD,MAAM,UAAU,GAAG,OAAO,CAAC;AAC3B,MAAM,aAAa,GAAG,OAAO,CAAC;AAC9B,SAAS,MAAM,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,EAAE;AACxC,EAAE,MAAM,GAAG,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;AAC5B,EAAE,MAAM,OAAO,GAAG,OAAO,GAAG,UAAU,GAAG,aAAa,CAAC;AACvD,EAAE,OAAO,CAAC,SAAS,GAAG,CAAC,CAAC;AACxB,EAAE,IAAI,OAAO,GAAG,EAAE,CAAC;AACnB,EAAE,IAAI,IAAI,GAAG,CAAC,CAAC;AACf,EAAE,OAAO,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE;AAC5B,IAAI,MAAM,CAAC,GAAG,OAAO,CAAC,SAAS,GAAG,CAAC,CAAC;AACpC,IAAI,MAAM,EAAE,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC;AACtB,IAAI,OAAO,IAAI,GAAG,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,KAAK,GAAG,GAAG,OAAO,GAAG,EAAE,KAAK,GAAG,GAAG,QAAQ,GAAG,MAAM,CAAC,CAAC;AAChG,IAAI,IAAI,GAAG,CAAC,GAAG,CAAC,CAAC;AACjB,GAAG;AACH,EAAE,OAAO,OAAO,GAAG,GAAG,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;AACvC,CAAC;AAoBI,MAAC,iBAAiB,GAAG;AAC1B,EAAE,QAAQ,EAAE,MAAM,EAAE;AACpB,EAAE;AACF,SAAS,kBAAkB,CAAC,SAAS,EAAE,IAAI,EAAE;AAC7C,EAAE,IAAI,CAAC,SAAS,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE;AACzC,IAAI,IAAI,IAAI,KAAK,kBAAkB;AACnC,MAAM,IAAI,IAAI,aAAa,CAAC;AAC5B,IAAI,MAAM,IAAI,KAAK;AACnB,MAAM,CAAC,CAAC,EAAE,IAAI,CAAC,kMAAkM,EAAE,IAAI,CAAC,EAAE,CAAC;AAC3N,KAAK,CAAC;AACN,GAAG;AACH,EAAE,OAAO,SAAS,CAAC;AACnB,CAAC;AACD,IAAI,UAAU,CAAC;AACf,SAAS,oBAAoB,CAAC,EAAE,EAAE;AAClC,EAAE,SAAS,QAAQ,CAAC,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE;AAC7D,IAAI,MAAM,gBAAgB,GAAG,iBAAiB,CAAC;AAC/C,IAAI,MAAM,EAAE,GAAG;AACf,MAAM,UAAU;AAChB,MAAM,OAAO,EAAE,IAAI,GAAG,CAAC,OAAO,KAAK,gBAAgB,GAAG,gBAAgB,CAAC,EAAE,CAAC,OAAO,GAAG,EAAE,CAAC,CAAC;AACxF;AACA,MAAM,QAAQ,EAAE,EAAE;AAClB,MAAM,aAAa,EAAE,EAAE;AACvB,MAAM,YAAY,EAAE,EAAE;AACtB,MAAM,SAAS,EAAE,YAAY,EAAE;AAC/B,KAAK,CAAC;AACN,IAAI,qBAAqB,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAClC,IAAI,MAAM,IAAI,GAAG,EAAE,CAAC,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC;AACpD,IAAI,qBAAqB,CAAC,gBAAgB,CAAC,CAAC;AAC5C,IAAI,OAAO,IAAI,CAAC;AAChB,GAAG;AACH,EAAE,OAAO;AACT,IAAI,MAAM,EAAE,CAAC,KAAK,GAAG,EAAE,EAAE,EAAE,OAAO,GAAG,EAAE,EAAE,OAAO,mBAAmB,IAAI,GAAG,EAAE,EAAE,GAAG,EAAE,KAAK;AACxF,MAAM,UAAU,GAAG,EAAE,CAAC;AACtB,MAAM,MAAM,MAAM,GAAG,EAAE,KAAK,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG,kBAAkB,IAAI,GAAG,EAAE,EAAE,CAAC;AAC7E,MAAM,MAAM,IAAI,GAAG,QAAQ,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;AACjE,MAAM,OAAO,CAAC,UAAU,CAAC,CAAC;AAC1B,MAAM,OAAO;AACb,QAAQ,IAAI;AACZ,QAAQ,GAAG,EAAE;AACb,UAAU,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,KAAK,GAAG,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;AACxE,UAAU,GAAG,EAAE,IAAI;AACnB;AACA,SAAS;AACT,QAAQ,IAAI,EAAE,MAAM,CAAC,KAAK,GAAG,MAAM,CAAC,IAAI;AACxC,OAAO,CAAC;AACR,KAAK;AACL,IAAI,QAAQ;AACZ,GAAG,CAAC;AACJ;;;;"} \ No newline at end of file diff --git a/build/server/index.js b/build/server/index.js new file mode 100644 index 0000000000000000000000000000000000000000..bfd29b796781423a66ca5d1273700cf1bf40ef57 --- /dev/null +++ b/build/server/index.js @@ -0,0 +1,4157 @@ +import { H as HttpError, j as json, t as text, b as base, R as Redirect, S as SvelteKitError, o as override, r as reset, a as assets, A as ActionFailure } from './chunks/index-JNnR1J8_.js'; +import { d as decode_pathname, h as has_data_suffix, s as strip_data_suffix, a as decode_params, n as normalize_path, b as disable_search, c as add_data_suffix, m as make_trackable, r as resolve } from './chunks/exports-mq_1S73-.js'; +import { n as noop, s as safe_not_equal, c as create_ssr_component, a as setContext, v as validate_component, m as missing_component } from './chunks/ssr-jUwReIMa.js'; +import { p as public_env, s as safe_public_env, a as set_private_env, b as set_public_env, c as set_safe_public_env } from './chunks/shared-server-49TKSBDM.js'; + +/** @type {Record} */ +const escaped = { + '<': '\\u003C', + '\\': '\\\\', + '\b': '\\b', + '\f': '\\f', + '\n': '\\n', + '\r': '\\r', + '\t': '\\t', + '\u2028': '\\u2028', + '\u2029': '\\u2029' +}; + +class DevalueError extends Error { + /** + * @param {string} message + * @param {string[]} keys + */ + constructor(message, keys) { + super(message); + this.name = 'DevalueError'; + this.path = keys.join(''); + } +} + +/** @param {any} thing */ +function is_primitive(thing) { + return Object(thing) !== thing; +} + +const object_proto_names = /* @__PURE__ */ Object.getOwnPropertyNames( + Object.prototype +) + .sort() + .join('\0'); + +/** @param {any} thing */ +function is_plain_object(thing) { + const proto = Object.getPrototypeOf(thing); + + return ( + proto === Object.prototype || + proto === null || + Object.getOwnPropertyNames(proto).sort().join('\0') === object_proto_names + ); +} + +/** @param {any} thing */ +function get_type(thing) { + return Object.prototype.toString.call(thing).slice(8, -1); +} + +/** @param {string} char */ +function get_escaped_char(char) { + switch (char) { + case '"': + return '\\"'; + case '<': + return '\\u003C'; + case '\\': + return '\\\\'; + case '\n': + return '\\n'; + case '\r': + return '\\r'; + case '\t': + return '\\t'; + case '\b': + return '\\b'; + case '\f': + return '\\f'; + case '\u2028': + return '\\u2028'; + case '\u2029': + return '\\u2029'; + default: + return char < ' ' + ? `\\u${char.charCodeAt(0).toString(16).padStart(4, '0')}` + : ''; + } +} + +/** @param {string} str */ +function stringify_string(str) { + let result = ''; + let last_pos = 0; + const len = str.length; + + for (let i = 0; i < len; i += 1) { + const char = str[i]; + const replacement = get_escaped_char(char); + if (replacement) { + result += str.slice(last_pos, i) + replacement; + last_pos = i + 1; + } + } + + return `"${last_pos === 0 ? str : result + str.slice(last_pos)}"`; +} + +const chars$1 = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_$'; +const unsafe_chars = /[<\b\f\n\r\t\0\u2028\u2029]/g; +const reserved = + /^(?:do|if|in|for|int|let|new|try|var|byte|case|char|else|enum|goto|long|this|void|with|await|break|catch|class|const|final|float|short|super|throw|while|yield|delete|double|export|import|native|return|switch|throws|typeof|boolean|default|extends|finally|package|private|abstract|continue|debugger|function|volatile|interface|protected|transient|implements|instanceof|synchronized)$/; + +/** + * Turn a value into the JavaScript that creates an equivalent value + * @param {any} value + * @param {(value: any) => string | void} [replacer] + */ +function uneval(value, replacer) { + const counts = new Map(); + + /** @type {string[]} */ + const keys = []; + + const custom = new Map(); + + /** @param {any} thing */ + function walk(thing) { + if (typeof thing === 'function') { + throw new DevalueError(`Cannot stringify a function`, keys); + } + + if (!is_primitive(thing)) { + if (counts.has(thing)) { + counts.set(thing, counts.get(thing) + 1); + return; + } + + counts.set(thing, 1); + + if (replacer) { + const str = replacer(thing); + + if (typeof str === 'string') { + custom.set(thing, str); + return; + } + } + + const type = get_type(thing); + + switch (type) { + case 'Number': + case 'BigInt': + case 'String': + case 'Boolean': + case 'Date': + case 'RegExp': + return; + + case 'Array': + /** @type {any[]} */ (thing).forEach((value, i) => { + keys.push(`[${i}]`); + walk(value); + keys.pop(); + }); + break; + + case 'Set': + Array.from(thing).forEach(walk); + break; + + case 'Map': + for (const [key, value] of thing) { + keys.push( + `.get(${is_primitive(key) ? stringify_primitive$1(key) : '...'})` + ); + walk(value); + keys.pop(); + } + break; + + default: + if (!is_plain_object(thing)) { + throw new DevalueError( + `Cannot stringify arbitrary non-POJOs`, + keys + ); + } + + if (Object.getOwnPropertySymbols(thing).length > 0) { + throw new DevalueError( + `Cannot stringify POJOs with symbolic keys`, + keys + ); + } + + for (const key in thing) { + keys.push(`.${key}`); + walk(thing[key]); + keys.pop(); + } + } + } + } + + walk(value); + + const names = new Map(); + + Array.from(counts) + .filter((entry) => entry[1] > 1) + .sort((a, b) => b[1] - a[1]) + .forEach((entry, i) => { + names.set(entry[0], get_name(i)); + }); + + /** + * @param {any} thing + * @returns {string} + */ + function stringify(thing) { + if (names.has(thing)) { + return names.get(thing); + } + + if (is_primitive(thing)) { + return stringify_primitive$1(thing); + } + + if (custom.has(thing)) { + return custom.get(thing); + } + + const type = get_type(thing); + + switch (type) { + case 'Number': + case 'String': + case 'Boolean': + return `Object(${stringify(thing.valueOf())})`; + + case 'RegExp': + return `new RegExp(${stringify_string(thing.source)}, "${ + thing.flags + }")`; + + case 'Date': + return `new Date(${thing.getTime()})`; + + case 'Array': + const members = /** @type {any[]} */ (thing).map((v, i) => + i in thing ? stringify(v) : '' + ); + const tail = thing.length === 0 || thing.length - 1 in thing ? '' : ','; + return `[${members.join(',')}${tail}]`; + + case 'Set': + case 'Map': + return `new ${type}([${Array.from(thing).map(stringify).join(',')}])`; + + default: + const obj = `{${Object.keys(thing) + .map((key) => `${safe_key(key)}:${stringify(thing[key])}`) + .join(',')}}`; + const proto = Object.getPrototypeOf(thing); + if (proto === null) { + return Object.keys(thing).length > 0 + ? `Object.assign(Object.create(null),${obj})` + : `Object.create(null)`; + } + + return obj; + } + } + + const str = stringify(value); + + if (names.size) { + /** @type {string[]} */ + const params = []; + + /** @type {string[]} */ + const statements = []; + + /** @type {string[]} */ + const values = []; + + names.forEach((name, thing) => { + params.push(name); + + if (custom.has(thing)) { + values.push(/** @type {string} */ (custom.get(thing))); + return; + } + + if (is_primitive(thing)) { + values.push(stringify_primitive$1(thing)); + return; + } + + const type = get_type(thing); + + switch (type) { + case 'Number': + case 'String': + case 'Boolean': + values.push(`Object(${stringify(thing.valueOf())})`); + break; + + case 'RegExp': + values.push(thing.toString()); + break; + + case 'Date': + values.push(`new Date(${thing.getTime()})`); + break; + + case 'Array': + values.push(`Array(${thing.length})`); + /** @type {any[]} */ (thing).forEach((v, i) => { + statements.push(`${name}[${i}]=${stringify(v)}`); + }); + break; + + case 'Set': + values.push(`new Set`); + statements.push( + `${name}.${Array.from(thing) + .map((v) => `add(${stringify(v)})`) + .join('.')}` + ); + break; + + case 'Map': + values.push(`new Map`); + statements.push( + `${name}.${Array.from(thing) + .map(([k, v]) => `set(${stringify(k)}, ${stringify(v)})`) + .join('.')}` + ); + break; + + default: + values.push( + Object.getPrototypeOf(thing) === null ? 'Object.create(null)' : '{}' + ); + Object.keys(thing).forEach((key) => { + statements.push( + `${name}${safe_prop(key)}=${stringify(thing[key])}` + ); + }); + } + }); + + statements.push(`return ${str}`); + + return `(function(${params.join(',')}){${statements.join( + ';' + )}}(${values.join(',')}))`; + } else { + return str; + } +} + +/** @param {number} num */ +function get_name(num) { + let name = ''; + + do { + name = chars$1[num % chars$1.length] + name; + num = ~~(num / chars$1.length) - 1; + } while (num >= 0); + + return reserved.test(name) ? `${name}0` : name; +} + +/** @param {string} c */ +function escape_unsafe_char(c) { + return escaped[c] || c; +} + +/** @param {string} str */ +function escape_unsafe_chars(str) { + return str.replace(unsafe_chars, escape_unsafe_char); +} + +/** @param {string} key */ +function safe_key(key) { + return /^[_$a-zA-Z][_$a-zA-Z0-9]*$/.test(key) + ? key + : escape_unsafe_chars(JSON.stringify(key)); +} + +/** @param {string} key */ +function safe_prop(key) { + return /^[_$a-zA-Z][_$a-zA-Z0-9]*$/.test(key) + ? `.${key}` + : `[${escape_unsafe_chars(JSON.stringify(key))}]`; +} + +/** @param {any} thing */ +function stringify_primitive$1(thing) { + if (typeof thing === 'string') return stringify_string(thing); + if (thing === void 0) return 'void 0'; + if (thing === 0 && 1 / thing < 0) return '-0'; + const str = String(thing); + if (typeof thing === 'number') return str.replace(/^(-)?0\./, '$1.'); + if (typeof thing === 'bigint') return thing + 'n'; + return str; +} + +const UNDEFINED = -1; +const HOLE = -2; +const NAN = -3; +const POSITIVE_INFINITY = -4; +const NEGATIVE_INFINITY = -5; +const NEGATIVE_ZERO = -6; + +/** + * Turn a value into a JSON string that can be parsed with `devalue.parse` + * @param {any} value + * @param {Record any>} [reducers] + */ +function stringify(value, reducers) { + /** @type {any[]} */ + const stringified = []; + + /** @type {Map} */ + const indexes = new Map(); + + /** @type {Array<{ key: string, fn: (value: any) => any }>} */ + const custom = []; + for (const key in reducers) { + custom.push({ key, fn: reducers[key] }); + } + + /** @type {string[]} */ + const keys = []; + + let p = 0; + + /** @param {any} thing */ + function flatten(thing) { + if (typeof thing === 'function') { + throw new DevalueError(`Cannot stringify a function`, keys); + } + + if (indexes.has(thing)) return indexes.get(thing); + + if (thing === undefined) return UNDEFINED; + if (Number.isNaN(thing)) return NAN; + if (thing === Infinity) return POSITIVE_INFINITY; + if (thing === -Infinity) return NEGATIVE_INFINITY; + if (thing === 0 && 1 / thing < 0) return NEGATIVE_ZERO; + + const index = p++; + indexes.set(thing, index); + + for (const { key, fn } of custom) { + const value = fn(thing); + if (value) { + stringified[index] = `["${key}",${flatten(value)}]`; + return index; + } + } + + let str = ''; + + if (is_primitive(thing)) { + str = stringify_primitive(thing); + } else { + const type = get_type(thing); + + switch (type) { + case 'Number': + case 'String': + case 'Boolean': + str = `["Object",${stringify_primitive(thing)}]`; + break; + + case 'BigInt': + str = `["BigInt",${thing}]`; + break; + + case 'Date': + str = `["Date","${thing.toISOString()}"]`; + break; + + case 'RegExp': + const { source, flags } = thing; + str = flags + ? `["RegExp",${stringify_string(source)},"${flags}"]` + : `["RegExp",${stringify_string(source)}]`; + break; + + case 'Array': + str = '['; + + for (let i = 0; i < thing.length; i += 1) { + if (i > 0) str += ','; + + if (i in thing) { + keys.push(`[${i}]`); + str += flatten(thing[i]); + keys.pop(); + } else { + str += HOLE; + } + } + + str += ']'; + + break; + + case 'Set': + str = '["Set"'; + + for (const value of thing) { + str += `,${flatten(value)}`; + } + + str += ']'; + break; + + case 'Map': + str = '["Map"'; + + for (const [key, value] of thing) { + keys.push( + `.get(${is_primitive(key) ? stringify_primitive(key) : '...'})` + ); + str += `,${flatten(key)},${flatten(value)}`; + } + + str += ']'; + break; + + default: + if (!is_plain_object(thing)) { + throw new DevalueError( + `Cannot stringify arbitrary non-POJOs`, + keys + ); + } + + if (Object.getOwnPropertySymbols(thing).length > 0) { + throw new DevalueError( + `Cannot stringify POJOs with symbolic keys`, + keys + ); + } + + if (Object.getPrototypeOf(thing) === null) { + str = '["null"'; + for (const key in thing) { + keys.push(`.${key}`); + str += `,${stringify_string(key)},${flatten(thing[key])}`; + keys.pop(); + } + str += ']'; + } else { + str = '{'; + let started = false; + for (const key in thing) { + if (started) str += ','; + started = true; + keys.push(`.${key}`); + str += `${stringify_string(key)}:${flatten(thing[key])}`; + keys.pop(); + } + str += '}'; + } + } + } + + stringified[index] = str; + return index; + } + + const index = flatten(value); + + // special case — value is represented as a negative index + if (index < 0) return `${index}`; + + return `[${stringified.join(',')}]`; +} + +/** + * @param {any} thing + * @returns {string} + */ +function stringify_primitive(thing) { + const type = typeof thing; + if (type === 'string') return stringify_string(thing); + if (thing instanceof String) return stringify_string(thing.toString()); + if (thing === void 0) return UNDEFINED.toString(); + if (thing === 0 && 1 / thing < 0) return NEGATIVE_ZERO.toString(); + if (type === 'bigint') return `["BigInt","${thing}"]`; + return String(thing); +} + +const subscriber_queue = []; +function readable(value, start) { + return { + subscribe: writable(value, start).subscribe + }; +} +function writable(value, start = noop) { + let stop; + const subscribers = /* @__PURE__ */ new Set(); + function set(new_value) { + if (safe_not_equal(value, new_value)) { + value = new_value; + if (stop) { + const run_queue = !subscriber_queue.length; + for (const subscriber of subscribers) { + subscriber[1](); + subscriber_queue.push(subscriber, value); + } + if (run_queue) { + for (let i = 0; i < subscriber_queue.length; i += 2) { + subscriber_queue[i][0](subscriber_queue[i + 1]); + } + subscriber_queue.length = 0; + } + } + } + } + function update(fn) { + set(fn(value)); + } + function subscribe(run, invalidate = noop) { + const subscriber = [run, invalidate]; + subscribers.add(subscriber); + if (subscribers.size === 1) { + stop = start(set, update) || noop; + } + run(value); + return () => { + subscribers.delete(subscriber); + if (subscribers.size === 0 && stop) { + stop(); + stop = null; + } + }; + } + return { set, update, subscribe }; +} + +var cookie = {}; + +/*! + * cookie + * Copyright(c) 2012-2014 Roman Shtylman + * Copyright(c) 2015 Douglas Christopher Wilson + * MIT Licensed + */ + +var hasRequiredCookie; + +function requireCookie () { + if (hasRequiredCookie) return cookie; + hasRequiredCookie = 1; + + /** + * Module exports. + * @public + */ + + cookie.parse = parse; + cookie.serialize = serialize; + + /** + * Module variables. + * @private + */ + + var __toString = Object.prototype.toString; + + /** + * RegExp to match field-content in RFC 7230 sec 3.2 + * + * field-content = field-vchar [ 1*( SP / HTAB ) field-vchar ] + * field-vchar = VCHAR / obs-text + * obs-text = %x80-FF + */ + + var fieldContentRegExp = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/; + + /** + * Parse a cookie header. + * + * Parse the given cookie header string into an object + * The object has the various cookies as keys(names) => values + * + * @param {string} str + * @param {object} [options] + * @return {object} + * @public + */ + + function parse(str, options) { + if (typeof str !== 'string') { + throw new TypeError('argument str must be a string'); + } + + var obj = {}; + var opt = options || {}; + var dec = opt.decode || decode; + + var index = 0; + while (index < str.length) { + var eqIdx = str.indexOf('=', index); + + // no more cookie pairs + if (eqIdx === -1) { + break + } + + var endIdx = str.indexOf(';', index); + + if (endIdx === -1) { + endIdx = str.length; + } else if (endIdx < eqIdx) { + // backtrack on prior semicolon + index = str.lastIndexOf(';', eqIdx - 1) + 1; + continue + } + + var key = str.slice(index, eqIdx).trim(); + + // only assign once + if (undefined === obj[key]) { + var val = str.slice(eqIdx + 1, endIdx).trim(); + + // quoted values + if (val.charCodeAt(0) === 0x22) { + val = val.slice(1, -1); + } + + obj[key] = tryDecode(val, dec); + } + + index = endIdx + 1; + } + + return obj; + } + + /** + * Serialize data into a cookie header. + * + * Serialize the a name value pair into a cookie string suitable for + * http headers. An optional options object specified cookie parameters. + * + * serialize('foo', 'bar', { httpOnly: true }) + * => "foo=bar; httpOnly" + * + * @param {string} name + * @param {string} val + * @param {object} [options] + * @return {string} + * @public + */ + + function serialize(name, val, options) { + var opt = options || {}; + var enc = opt.encode || encode; + + if (typeof enc !== 'function') { + throw new TypeError('option encode is invalid'); + } + + if (!fieldContentRegExp.test(name)) { + throw new TypeError('argument name is invalid'); + } + + var value = enc(val); + + if (value && !fieldContentRegExp.test(value)) { + throw new TypeError('argument val is invalid'); + } + + var str = name + '=' + value; + + if (null != opt.maxAge) { + var maxAge = opt.maxAge - 0; + + if (isNaN(maxAge) || !isFinite(maxAge)) { + throw new TypeError('option maxAge is invalid') + } + + str += '; Max-Age=' + Math.floor(maxAge); + } + + if (opt.domain) { + if (!fieldContentRegExp.test(opt.domain)) { + throw new TypeError('option domain is invalid'); + } + + str += '; Domain=' + opt.domain; + } + + if (opt.path) { + if (!fieldContentRegExp.test(opt.path)) { + throw new TypeError('option path is invalid'); + } + + str += '; Path=' + opt.path; + } + + if (opt.expires) { + var expires = opt.expires; + + if (!isDate(expires) || isNaN(expires.valueOf())) { + throw new TypeError('option expires is invalid'); + } + + str += '; Expires=' + expires.toUTCString(); + } + + if (opt.httpOnly) { + str += '; HttpOnly'; + } + + if (opt.secure) { + str += '; Secure'; + } + + if (opt.partitioned) { + str += '; Partitioned'; + } + + if (opt.priority) { + var priority = typeof opt.priority === 'string' + ? opt.priority.toLowerCase() + : opt.priority; + + switch (priority) { + case 'low': + str += '; Priority=Low'; + break + case 'medium': + str += '; Priority=Medium'; + break + case 'high': + str += '; Priority=High'; + break + default: + throw new TypeError('option priority is invalid') + } + } + + if (opt.sameSite) { + var sameSite = typeof opt.sameSite === 'string' + ? opt.sameSite.toLowerCase() : opt.sameSite; + + switch (sameSite) { + case true: + str += '; SameSite=Strict'; + break; + case 'lax': + str += '; SameSite=Lax'; + break; + case 'strict': + str += '; SameSite=Strict'; + break; + case 'none': + str += '; SameSite=None'; + break; + default: + throw new TypeError('option sameSite is invalid'); + } + } + + return str; + } + + /** + * URL-decode string value. Optimized to skip native call when no %. + * + * @param {string} str + * @returns {string} + */ + + function decode (str) { + return str.indexOf('%') !== -1 + ? decodeURIComponent(str) + : str + } + + /** + * URL-encode value. + * + * @param {string} val + * @returns {string} + */ + + function encode (val) { + return encodeURIComponent(val) + } + + /** + * Determine if value is a Date. + * + * @param {*} val + * @private + */ + + function isDate (val) { + return __toString.call(val) === '[object Date]' || + val instanceof Date + } + + /** + * Try decoding a string using a decoding function. + * + * @param {string} str + * @param {function} decode + * @private + */ + + function tryDecode(str, decode) { + try { + return decode(str); + } catch (e) { + return str; + } + } + return cookie; +} + +var cookieExports = requireCookie(); + +var setCookie = {exports: {}}; + +var hasRequiredSetCookie; + +function requireSetCookie () { + if (hasRequiredSetCookie) return setCookie.exports; + hasRequiredSetCookie = 1; + + var defaultParseOptions = { + decodeValues: true, + map: false, + silent: false, + }; + + function isNonEmptyString(str) { + return typeof str === "string" && !!str.trim(); + } + + function parseString(setCookieValue, options) { + var parts = setCookieValue.split(";").filter(isNonEmptyString); + + var nameValuePairStr = parts.shift(); + var parsed = parseNameValuePair(nameValuePairStr); + var name = parsed.name; + var value = parsed.value; + + options = options + ? Object.assign({}, defaultParseOptions, options) + : defaultParseOptions; + + try { + value = options.decodeValues ? decodeURIComponent(value) : value; // decode cookie value + } catch (e) { + console.error( + "set-cookie-parser encountered an error while decoding a cookie with value '" + + value + + "'. Set options.decodeValues to false to disable this feature.", + e + ); + } + + var cookie = { + name: name, + value: value, + }; + + parts.forEach(function (part) { + var sides = part.split("="); + var key = sides.shift().trimLeft().toLowerCase(); + var value = sides.join("="); + if (key === "expires") { + cookie.expires = new Date(value); + } else if (key === "max-age") { + cookie.maxAge = parseInt(value, 10); + } else if (key === "secure") { + cookie.secure = true; + } else if (key === "httponly") { + cookie.httpOnly = true; + } else if (key === "samesite") { + cookie.sameSite = value; + } else { + cookie[key] = value; + } + }); + + return cookie; + } + + function parseNameValuePair(nameValuePairStr) { + // Parses name-value-pair according to rfc6265bis draft + + var name = ""; + var value = ""; + var nameValueArr = nameValuePairStr.split("="); + if (nameValueArr.length > 1) { + name = nameValueArr.shift(); + value = nameValueArr.join("="); // everything after the first =, joined by a "=" if there was more than one part + } else { + value = nameValuePairStr; + } + + return { name: name, value: value }; + } + + function parse(input, options) { + options = options + ? Object.assign({}, defaultParseOptions, options) + : defaultParseOptions; + + if (!input) { + if (!options.map) { + return []; + } else { + return {}; + } + } + + if (input.headers) { + if (typeof input.headers.getSetCookie === "function") { + // for fetch responses - they combine headers of the same type in the headers array, + // but getSetCookie returns an uncombined array + input = input.headers.getSetCookie(); + } else if (input.headers["set-cookie"]) { + // fast-path for node.js (which automatically normalizes header names to lower-case + input = input.headers["set-cookie"]; + } else { + // slow-path for other environments - see #25 + var sch = + input.headers[ + Object.keys(input.headers).find(function (key) { + return key.toLowerCase() === "set-cookie"; + }) + ]; + // warn if called on a request-like object with a cookie header rather than a set-cookie header - see #34, 36 + if (!sch && input.headers.cookie && !options.silent) { + console.warn( + "Warning: set-cookie-parser appears to have been called on a request object. It is designed to parse Set-Cookie headers from responses, not Cookie headers from requests. Set the option {silent: true} to suppress this warning." + ); + } + input = sch; + } + } + if (!Array.isArray(input)) { + input = [input]; + } + + options = options + ? Object.assign({}, defaultParseOptions, options) + : defaultParseOptions; + + if (!options.map) { + return input.filter(isNonEmptyString).map(function (str) { + return parseString(str, options); + }); + } else { + var cookies = {}; + return input.filter(isNonEmptyString).reduce(function (cookies, str) { + var cookie = parseString(str, options); + cookies[cookie.name] = cookie; + return cookies; + }, cookies); + } + } + + /* + Set-Cookie header field-values are sometimes comma joined in one string. This splits them without choking on commas + that are within a single set-cookie field-value, such as in the Expires portion. + + This is uncommon, but explicitly allowed - see https://tools.ietf.org/html/rfc2616#section-4.2 + Node.js does this for every header *except* set-cookie - see https://github.com/nodejs/node/blob/d5e363b77ebaf1caf67cd7528224b651c86815c1/lib/_http_incoming.js#L128 + React Native's fetch does this for *every* header, including set-cookie. + + Based on: https://github.com/google/j2objc/commit/16820fdbc8f76ca0c33472810ce0cb03d20efe25 + Credits to: https://github.com/tomball for original and https://github.com/chrusart for JavaScript implementation + */ + function splitCookiesString(cookiesString) { + if (Array.isArray(cookiesString)) { + return cookiesString; + } + if (typeof cookiesString !== "string") { + return []; + } + + var cookiesStrings = []; + var pos = 0; + var start; + var ch; + var lastComma; + var nextStart; + var cookiesSeparatorFound; + + function skipWhitespace() { + while (pos < cookiesString.length && /\s/.test(cookiesString.charAt(pos))) { + pos += 1; + } + return pos < cookiesString.length; + } + + function notSpecialChar() { + ch = cookiesString.charAt(pos); + + return ch !== "=" && ch !== ";" && ch !== ","; + } + + while (pos < cookiesString.length) { + start = pos; + cookiesSeparatorFound = false; + + while (skipWhitespace()) { + ch = cookiesString.charAt(pos); + if (ch === ",") { + // ',' is a cookie separator if we have later first '=', not ';' or ',' + lastComma = pos; + pos += 1; + + skipWhitespace(); + nextStart = pos; + + while (pos < cookiesString.length && notSpecialChar()) { + pos += 1; + } + + // currently special character + if (pos < cookiesString.length && cookiesString.charAt(pos) === "=") { + // we found cookies separator + cookiesSeparatorFound = true; + // pos is inside the next cookie, so back up and return it. + pos = nextStart; + cookiesStrings.push(cookiesString.substring(start, lastComma)); + start = pos; + } else { + // in param ',' or param separator ';', + // we continue from that comma + pos = lastComma + 1; + } + } else { + pos += 1; + } + } + + if (!cookiesSeparatorFound || pos >= cookiesString.length) { + cookiesStrings.push(cookiesString.substring(start, cookiesString.length)); + } + } + + return cookiesStrings; + } + + setCookie.exports = parse; + setCookie.exports.parse = parse; + setCookie.exports.parseString = parseString; + setCookie.exports.splitCookiesString = splitCookiesString; + return setCookie.exports; +} + +var setCookieExports = requireSetCookie(); + +function afterUpdate() { +} +const Root = create_ssr_component(($$result, $$props, $$bindings, slots) => { + let { stores } = $$props; + let { page } = $$props; + let { constructors } = $$props; + let { components = [] } = $$props; + let { form } = $$props; + let { data_0 = null } = $$props; + let { data_1 = null } = $$props; + { + setContext("__svelte__", stores); + } + afterUpdate(stores.page.notify); + if ($$props.stores === void 0 && $$bindings.stores && stores !== void 0) + $$bindings.stores(stores); + if ($$props.page === void 0 && $$bindings.page && page !== void 0) + $$bindings.page(page); + if ($$props.constructors === void 0 && $$bindings.constructors && constructors !== void 0) + $$bindings.constructors(constructors); + if ($$props.components === void 0 && $$bindings.components && components !== void 0) + $$bindings.components(components); + if ($$props.form === void 0 && $$bindings.form && form !== void 0) + $$bindings.form(form); + if ($$props.data_0 === void 0 && $$bindings.data_0 && data_0 !== void 0) + $$bindings.data_0(data_0); + if ($$props.data_1 === void 0 && $$bindings.data_1 && data_1 !== void 0) + $$bindings.data_1(data_1); + let $$settled; + let $$rendered; + let previous_head = $$result.head; + do { + $$settled = true; + $$result.head = previous_head; + { + stores.page.set(page); + } + $$rendered = ` ${constructors[1] ? `${validate_component(constructors[0] || missing_component, "svelte:component").$$render( + $$result, + { data: data_0, this: components[0] }, + { + this: ($$value) => { + components[0] = $$value; + $$settled = false; + } + }, + { + default: () => { + return `${validate_component(constructors[1] || missing_component, "svelte:component").$$render( + $$result, + { data: data_1, form, this: components[1] }, + { + this: ($$value) => { + components[1] = $$value; + $$settled = false; + } + }, + {} + )}`; + } + } + )}` : `${validate_component(constructors[0] || missing_component, "svelte:component").$$render( + $$result, + { data: data_0, form, this: components[0] }, + { + this: ($$value) => { + components[0] = $$value; + $$settled = false; + } + }, + {} + )}`} ${``}`; + } while (!$$settled); + return $$rendered; +}); +const options = { + app_dir: "_app", + app_template_contains_nonce: false, + csp: { "mode": "auto", "directives": { "upgrade-insecure-requests": false, "block-all-mixed-content": false }, "reportOnly": { "upgrade-insecure-requests": false, "block-all-mixed-content": false } }, + csrf_check_origin: true, + embedded: false, + env_public_prefix: "PUBLIC_", + env_private_prefix: "", + hooks: null, + // added lazily, via `get_hooks` + preload_strategy: "modulepreload", + root: Root, + service_worker: false, + templates: { + app: ({ head, body, assets, nonce, env }) => '\r\n\r\n \r\n \r\n \r\n \r\n ' + head + '\r\n \r\n \r\n
\r\n
' + body + "
\r\n \r\n\r\n", + error: ({ status, message }) => '\n\n \n \n ' + message + ` + + + + +
+ ` + status + '\n
\n

' + message + "

\n
\n
\n \n\n" + }, + version_hash: "5oh4s6" +}; +async function get_hooks() { + return {}; +} + +const DEV = false; +const SVELTE_KIT_ASSETS = "/_svelte_kit_assets"; +const ENDPOINT_METHODS = ["GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS", "HEAD"]; +const PAGE_METHODS = ["GET", "POST", "HEAD"]; +function negotiate(accept, types) { + const parts = []; + accept.split(",").forEach((str, i) => { + const match = /([^/]+)\/([^;]+)(?:;q=([0-9.]+))?/.exec(str); + if (match) { + const [, type, subtype, q = "1"] = match; + parts.push({ type, subtype, q: +q, i }); + } + }); + parts.sort((a, b) => { + if (a.q !== b.q) { + return b.q - a.q; + } + if (a.subtype === "*" !== (b.subtype === "*")) { + return a.subtype === "*" ? 1 : -1; + } + if (a.type === "*" !== (b.type === "*")) { + return a.type === "*" ? 1 : -1; + } + return a.i - b.i; + }); + let accepted; + let min_priority = Infinity; + for (const mimetype of types) { + const [type, subtype] = mimetype.split("/"); + const priority = parts.findIndex( + (part) => (part.type === type || part.type === "*") && (part.subtype === subtype || part.subtype === "*") + ); + if (priority !== -1 && priority < min_priority) { + accepted = mimetype; + min_priority = priority; + } + } + return accepted; +} +function is_content_type(request, ...types) { + const type = request.headers.get("content-type")?.split(";", 1)[0].trim() ?? ""; + return types.includes(type.toLowerCase()); +} +function is_form_content_type(request) { + return is_content_type( + request, + "application/x-www-form-urlencoded", + "multipart/form-data", + "text/plain" + ); +} +function coalesce_to_error(err) { + return err instanceof Error || err && /** @type {any} */ + err.name && /** @type {any} */ + err.message ? ( + /** @type {Error} */ + err + ) : new Error(JSON.stringify(err)); +} +function normalize_error(error) { + return ( + /** @type {import('../runtime/control.js').Redirect | HttpError | SvelteKitError | Error} */ + error + ); +} +function get_status(error) { + return error instanceof HttpError || error instanceof SvelteKitError ? error.status : 500; +} +function get_message(error) { + return error instanceof SvelteKitError ? error.text : "Internal Error"; +} +function method_not_allowed(mod, method) { + return text(`${method} method not allowed`, { + status: 405, + headers: { + // https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/405 + // "The server must generate an Allow header field in a 405 status code response" + allow: allowed_methods(mod).join(", ") + } + }); +} +function allowed_methods(mod) { + const allowed = ENDPOINT_METHODS.filter((method) => method in mod); + if ("GET" in mod || "HEAD" in mod) + allowed.push("HEAD"); + return allowed; +} +function static_error_page(options2, status, message) { + let page = options2.templates.error({ status, message }); + return text(page, { + headers: { "content-type": "text/html; charset=utf-8" }, + status + }); +} +async function handle_fatal_error(event, options2, error) { + error = error instanceof HttpError ? error : coalesce_to_error(error); + const status = get_status(error); + const body2 = await handle_error_and_jsonify(event, options2, error); + const type = negotiate(event.request.headers.get("accept") || "text/html", [ + "application/json", + "text/html" + ]); + if (event.isDataRequest || type === "application/json") { + return json(body2, { + status + }); + } + return static_error_page(options2, status, body2.message); +} +async function handle_error_and_jsonify(event, options2, error) { + if (error instanceof HttpError) { + return error.body; + } + const status = get_status(error); + const message = get_message(error); + return await options2.hooks.handleError({ error, event, status, message }) ?? { message }; +} +function redirect_response(status, location) { + const response = new Response(void 0, { + status, + headers: { location } + }); + return response; +} +function clarify_devalue_error(event, error) { + if (error.path) { + return `Data returned from \`load\` while rendering ${event.route.id} is not serializable: ${error.message} (data${error.path})`; + } + if (error.path === "") { + return `Data returned from \`load\` while rendering ${event.route.id} is not a plain object`; + } + return error.message; +} +function stringify_uses(node) { + const uses = []; + if (node.uses && node.uses.dependencies.size > 0) { + uses.push(`"dependencies":${JSON.stringify(Array.from(node.uses.dependencies))}`); + } + if (node.uses && node.uses.search_params.size > 0) { + uses.push(`"search_params":${JSON.stringify(Array.from(node.uses.search_params))}`); + } + if (node.uses && node.uses.params.size > 0) { + uses.push(`"params":${JSON.stringify(Array.from(node.uses.params))}`); + } + if (node.uses?.parent) + uses.push('"parent":1'); + if (node.uses?.route) + uses.push('"route":1'); + if (node.uses?.url) + uses.push('"url":1'); + return `"uses":{${uses.join(",")}}`; +} +async function render_endpoint(event, mod, state) { + const method = ( + /** @type {import('types').HttpMethod} */ + event.request.method + ); + let handler = mod[method] || mod.fallback; + if (method === "HEAD" && mod.GET && !mod.HEAD) { + handler = mod.GET; + } + if (!handler) { + return method_not_allowed(mod, method); + } + const prerender = mod.prerender ?? state.prerender_default; + if (prerender && (mod.POST || mod.PATCH || mod.PUT || mod.DELETE)) { + throw new Error("Cannot prerender endpoints that have mutative methods"); + } + if (state.prerendering && !prerender) { + if (state.depth > 0) { + throw new Error(`${event.route.id} is not prerenderable`); + } else { + return new Response(void 0, { status: 204 }); + } + } + try { + let response = await handler( + /** @type {import('@sveltejs/kit').RequestEvent>} */ + event + ); + if (!(response instanceof Response)) { + throw new Error( + `Invalid response from route ${event.url.pathname}: handler should return a Response object` + ); + } + if (state.prerendering) { + response = new Response(response.body, { + status: response.status, + statusText: response.statusText, + headers: new Headers(response.headers) + }); + response.headers.set("x-sveltekit-prerender", String(prerender)); + } + return response; + } catch (e) { + if (e instanceof Redirect) { + return new Response(void 0, { + status: e.status, + headers: { location: e.location } + }); + } + throw e; + } +} +function is_endpoint_request(event) { + const { method, headers: headers2 } = event.request; + if (ENDPOINT_METHODS.includes(method) && !PAGE_METHODS.includes(method)) { + return true; + } + if (method === "POST" && headers2.get("x-sveltekit-action") === "true") + return false; + const accept = event.request.headers.get("accept") ?? "*/*"; + return negotiate(accept, ["*", "text/html"]) !== "text/html"; +} +function compact(arr) { + return arr.filter( + /** @returns {val is NonNullable} */ + (val) => val != null + ); +} +function is_action_json_request(event) { + const accept = negotiate(event.request.headers.get("accept") ?? "*/*", [ + "application/json", + "text/html" + ]); + return accept === "application/json" && event.request.method === "POST"; +} +async function handle_action_json_request(event, options2, server) { + const actions = server?.actions; + if (!actions) { + const no_actions_error = new SvelteKitError( + 405, + "Method Not Allowed", + "POST method not allowed. No actions exist for this page" + ); + return action_json( + { + type: "error", + error: await handle_error_and_jsonify(event, options2, no_actions_error) + }, + { + status: no_actions_error.status, + headers: { + // https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/405 + // "The server must generate an Allow header field in a 405 status code response" + allow: "GET" + } + } + ); + } + check_named_default_separate(actions); + try { + const data = await call_action(event, actions); + if (false) + ; + if (data instanceof ActionFailure) { + return action_json({ + type: "failure", + status: data.status, + // @ts-expect-error we assign a string to what is supposed to be an object. That's ok + // because we don't use the object outside, and this way we have better code navigation + // through knowing where the related interface is used. + data: stringify_action_response( + data.data, + /** @type {string} */ + event.route.id + ) + }); + } else { + return action_json({ + type: "success", + status: data ? 200 : 204, + // @ts-expect-error see comment above + data: stringify_action_response( + data, + /** @type {string} */ + event.route.id + ) + }); + } + } catch (e) { + const err = normalize_error(e); + if (err instanceof Redirect) { + return action_json_redirect(err); + } + return action_json( + { + type: "error", + error: await handle_error_and_jsonify(event, options2, check_incorrect_fail_use(err)) + }, + { + status: get_status(err) + } + ); + } +} +function check_incorrect_fail_use(error) { + return error instanceof ActionFailure ? new Error('Cannot "throw fail()". Use "return fail()"') : error; +} +function action_json_redirect(redirect) { + return action_json({ + type: "redirect", + status: redirect.status, + location: redirect.location + }); +} +function action_json(data, init2) { + return json(data, init2); +} +function is_action_request(event) { + return event.request.method === "POST"; +} +async function handle_action_request(event, server) { + const actions = server?.actions; + if (!actions) { + event.setHeaders({ + // https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/405 + // "The server must generate an Allow header field in a 405 status code response" + allow: "GET" + }); + return { + type: "error", + error: new SvelteKitError( + 405, + "Method Not Allowed", + "POST method not allowed. No actions exist for this page" + ) + }; + } + check_named_default_separate(actions); + try { + const data = await call_action(event, actions); + if (false) + ; + if (data instanceof ActionFailure) { + return { + type: "failure", + status: data.status, + data: data.data + }; + } else { + return { + type: "success", + status: 200, + // @ts-expect-error this will be removed upon serialization, so `undefined` is the same as omission + data + }; + } + } catch (e) { + const err = normalize_error(e); + if (err instanceof Redirect) { + return { + type: "redirect", + status: err.status, + location: err.location + }; + } + return { + type: "error", + error: check_incorrect_fail_use(err) + }; + } +} +function check_named_default_separate(actions) { + if (actions.default && Object.keys(actions).length > 1) { + throw new Error( + "When using named actions, the default action cannot be used. See the docs for more info: https://kit.svelte.dev/docs/form-actions#named-actions" + ); + } +} +async function call_action(event, actions) { + const url = new URL(event.request.url); + let name = "default"; + for (const param of url.searchParams) { + if (param[0].startsWith("/")) { + name = param[0].slice(1); + if (name === "default") { + throw new Error('Cannot use reserved action name "default"'); + } + break; + } + } + const action = actions[name]; + if (!action) { + throw new SvelteKitError(404, "Not Found", `No action with name '${name}' found`); + } + if (!is_form_content_type(event.request)) { + throw new SvelteKitError( + 415, + "Unsupported Media Type", + `Form actions expect form-encoded data — received ${event.request.headers.get( + "content-type" + )}` + ); + } + return action(event); +} +function uneval_action_response(data, route_id) { + return try_deserialize(data, uneval, route_id); +} +function stringify_action_response(data, route_id) { + return try_deserialize(data, stringify, route_id); +} +function try_deserialize(data, fn, route_id) { + try { + return fn(data); + } catch (e) { + const error = ( + /** @type {any} */ + e + ); + if ("path" in error) { + let message = `Data returned from action inside ${route_id} is not serializable: ${error.message}`; + if (error.path !== "") + message += ` (data.${error.path})`; + throw new Error(message); + } + throw error; + } +} +const INVALIDATED_PARAM = "x-sveltekit-invalidated"; +const TRAILING_SLASH_PARAM = "x-sveltekit-trailing-slash"; +async function load_server_data({ event, state, node, parent }) { + if (!node?.server) + return null; + let is_tracking = true; + const uses = { + dependencies: /* @__PURE__ */ new Set(), + params: /* @__PURE__ */ new Set(), + parent: false, + route: false, + url: false, + search_params: /* @__PURE__ */ new Set() + }; + const url = make_trackable( + event.url, + () => { + if (is_tracking) { + uses.url = true; + } + }, + (param) => { + if (is_tracking) { + uses.search_params.add(param); + } + } + ); + if (state.prerendering) { + disable_search(url); + } + const result = await node.server.load?.call(null, { + ...event, + fetch: (info, init2) => { + new URL(info instanceof Request ? info.url : info, event.url); + return event.fetch(info, init2); + }, + /** @param {string[]} deps */ + depends: (...deps) => { + for (const dep of deps) { + const { href } = new URL(dep, event.url); + uses.dependencies.add(href); + } + }, + params: new Proxy(event.params, { + get: (target, key2) => { + if (is_tracking) { + uses.params.add(key2); + } + return target[ + /** @type {string} */ + key2 + ]; + } + }), + parent: async () => { + if (is_tracking) { + uses.parent = true; + } + return parent(); + }, + route: new Proxy(event.route, { + get: (target, key2) => { + if (is_tracking) { + uses.route = true; + } + return target[ + /** @type {'id'} */ + key2 + ]; + } + }), + url, + untrack(fn) { + is_tracking = false; + try { + return fn(); + } finally { + is_tracking = true; + } + } + }); + return { + type: "data", + data: result ?? null, + uses, + slash: node.server.trailingSlash + }; +} +async function load_data({ + event, + fetched, + node, + parent, + server_data_promise, + state, + resolve_opts, + csr +}) { + const server_data_node = await server_data_promise; + if (!node?.universal?.load) { + return server_data_node?.data ?? null; + } + const result = await node.universal.load.call(null, { + url: event.url, + params: event.params, + data: server_data_node?.data ?? null, + route: event.route, + fetch: create_universal_fetch(event, state, fetched, csr, resolve_opts), + setHeaders: event.setHeaders, + depends: () => { + }, + parent, + untrack: (fn) => fn() + }); + return result ?? null; +} +function b64_encode(buffer) { + if (globalThis.Buffer) { + return Buffer.from(buffer).toString("base64"); + } + const little_endian = new Uint8Array(new Uint16Array([1]).buffer)[0] > 0; + return btoa( + new TextDecoder(little_endian ? "utf-16le" : "utf-16be").decode( + new Uint16Array(new Uint8Array(buffer)) + ) + ); +} +function create_universal_fetch(event, state, fetched, csr, resolve_opts) { + const universal_fetch = async (input, init2) => { + const cloned_body = input instanceof Request && input.body ? input.clone().body : null; + const cloned_headers = input instanceof Request && [...input.headers].length ? new Headers(input.headers) : init2?.headers; + let response = await event.fetch(input, init2); + const url = new URL(input instanceof Request ? input.url : input, event.url); + const same_origin = url.origin === event.url.origin; + let dependency; + if (same_origin) { + if (state.prerendering) { + dependency = { response, body: null }; + state.prerendering.dependencies.set(url.pathname, dependency); + } + } else { + const mode = input instanceof Request ? input.mode : init2?.mode ?? "cors"; + if (mode === "no-cors") { + response = new Response("", { + status: response.status, + statusText: response.statusText, + headers: response.headers + }); + } else { + const acao = response.headers.get("access-control-allow-origin"); + if (!acao || acao !== event.url.origin && acao !== "*") { + throw new Error( + `CORS error: ${acao ? "Incorrect" : "No"} 'Access-Control-Allow-Origin' header is present on the requested resource` + ); + } + } + } + const proxy = new Proxy(response, { + get(response2, key2, _receiver) { + async function push_fetched(body2, is_b64) { + const status_number = Number(response2.status); + if (isNaN(status_number)) { + throw new Error( + `response.status is not a number. value: "${response2.status}" type: ${typeof response2.status}` + ); + } + fetched.push({ + url: same_origin ? url.href.slice(event.url.origin.length) : url.href, + method: event.request.method, + request_body: ( + /** @type {string | ArrayBufferView | undefined} */ + input instanceof Request && cloned_body ? await stream_to_string(cloned_body) : init2?.body + ), + request_headers: cloned_headers, + response_body: body2, + response: response2, + is_b64 + }); + } + if (key2 === "arrayBuffer") { + return async () => { + const buffer = await response2.arrayBuffer(); + if (dependency) { + dependency.body = new Uint8Array(buffer); + } + if (buffer instanceof ArrayBuffer) { + await push_fetched(b64_encode(buffer), true); + } + return buffer; + }; + } + async function text2() { + const body2 = await response2.text(); + if (!body2 || typeof body2 === "string") { + await push_fetched(body2, false); + } + if (dependency) { + dependency.body = body2; + } + return body2; + } + if (key2 === "text") { + return text2; + } + if (key2 === "json") { + return async () => { + return JSON.parse(await text2()); + }; + } + return Reflect.get(response2, key2, response2); + } + }); + if (csr) { + const get = response.headers.get; + response.headers.get = (key2) => { + const lower = key2.toLowerCase(); + const value = get.call(response.headers, lower); + if (value && !lower.startsWith("x-sveltekit-")) { + const included = resolve_opts.filterSerializedResponseHeaders(lower, value); + if (!included) { + throw new Error( + `Failed to get response header "${lower}" — it must be included by the \`filterSerializedResponseHeaders\` option: https://kit.svelte.dev/docs/hooks#server-hooks-handle (at ${event.route.id})` + ); + } + } + return value; + }; + } + return proxy; + }; + return (input, init2) => { + const response = universal_fetch(input, init2); + response.catch(() => { + }); + return response; + }; +} +async function stream_to_string(stream) { + let result = ""; + const reader = stream.getReader(); + const decoder = new TextDecoder(); + while (true) { + const { done, value } = await reader.read(); + if (done) { + break; + } + result += decoder.decode(value); + } + return result; +} +function hash(...values) { + let hash2 = 5381; + for (const value of values) { + if (typeof value === "string") { + let i = value.length; + while (i) + hash2 = hash2 * 33 ^ value.charCodeAt(--i); + } else if (ArrayBuffer.isView(value)) { + const buffer = new Uint8Array(value.buffer, value.byteOffset, value.byteLength); + let i = buffer.length; + while (i) + hash2 = hash2 * 33 ^ buffer[--i]; + } else { + throw new TypeError("value must be a string or TypedArray"); + } + } + return (hash2 >>> 0).toString(36); +} +const escape_html_attr_dict = { + "&": "&", + '"': """ +}; +const escape_html_attr_regex = new RegExp( + // special characters + `[${Object.keys(escape_html_attr_dict).join("")}]|[\\ud800-\\udbff](?![\\udc00-\\udfff])|[\\ud800-\\udbff][\\udc00-\\udfff]|[\\udc00-\\udfff]`, + "g" +); +function escape_html_attr(str) { + const escaped_str = str.replace(escape_html_attr_regex, (match) => { + if (match.length === 2) { + return match; + } + return escape_html_attr_dict[match] ?? `&#${match.charCodeAt(0)};`; + }); + return `"${escaped_str}"`; +} +const replacements = { + "<": "\\u003C", + "\u2028": "\\u2028", + "\u2029": "\\u2029" +}; +const pattern = new RegExp(`[${Object.keys(replacements).join("")}]`, "g"); +function serialize_data(fetched, filter, prerendering2 = false) { + const headers2 = {}; + let cache_control = null; + let age = null; + let varyAny = false; + for (const [key2, value] of fetched.response.headers) { + if (filter(key2, value)) { + headers2[key2] = value; + } + if (key2 === "cache-control") + cache_control = value; + else if (key2 === "age") + age = value; + else if (key2 === "vary" && value.trim() === "*") + varyAny = true; + } + const payload = { + status: fetched.response.status, + statusText: fetched.response.statusText, + headers: headers2, + body: fetched.response_body + }; + const safe_payload = JSON.stringify(payload).replace(pattern, (match) => replacements[match]); + const attrs = [ + 'type="application/json"', + "data-sveltekit-fetched", + `data-url=${escape_html_attr(fetched.url)}` + ]; + if (fetched.is_b64) { + attrs.push("data-b64"); + } + if (fetched.request_headers || fetched.request_body) { + const values = []; + if (fetched.request_headers) { + values.push([...new Headers(fetched.request_headers)].join(",")); + } + if (fetched.request_body) { + values.push(fetched.request_body); + } + attrs.push(`data-hash="${hash(...values)}"`); + } + if (!prerendering2 && fetched.method === "GET" && cache_control && !varyAny) { + const match = /s-maxage=(\d+)/g.exec(cache_control) ?? /max-age=(\d+)/g.exec(cache_control); + if (match) { + const ttl = +match[1] - +(age ?? "0"); + attrs.push(`data-ttl="${ttl}"`); + } + } + return `