diff --git a/build/client/_app/immutable/assets/0.Cn2YjZcW.css b/build/client/_app/immutable/assets/0.Cn2YjZcW.css deleted file mode 100644 index ac4bfd026ea459d042b9aae5ff5ef38b81705b37..0000000000000000000000000000000000000000 --- a/build/client/_app/immutable/assets/0.Cn2YjZcW.css +++ /dev/null @@ -1 +0,0 @@ -*,: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))}.h1{font-size:1.875rem;line-height:2.25rem;font-family:var(--theme-font-family-heading)}.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))}.alert-message{flex:1 1 auto}.alert-message>: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))}.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))}.variant-outline-tertiary{--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-tertiary-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){.h1{font-size:3rem;line-height:1}.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}.mx-2{margin-left:.5rem;margin-right:.5rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.-mt-\[15px\]{margin-top:-15px}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.mb-8{margin-bottom:2rem}.ml-12{margin-left:3rem}.ml-16{margin-left:4rem}.ml-2{margin-left:.5rem}.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%}.h-screen{height:100vh}.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-48{width:12rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-\[50\%\]{width:50%}.w-\[70\%\]{width:70%}.w-\[90\%\]{width:90%}.w-\[calc\(50\%-0\.5rem\)\]{width:calc(50% - .5rem)}.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}.grow{flex-grow:1}.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}.content-center{align-content:center}.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-x-1{-moz-column-gap:.25rem;column-gap:.25rem}.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))}.self-start{align-self:flex-start}.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}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.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}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity))}.bg-cyan-800{--tw-bg-opacity: 1;background-color:rgb(21 94 117 / var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.bg-neutral-900\/90{background-color:#171717e6}.bg-slate-100{--tw-bg-opacity: 1;background-color:rgb(241 245 249 / var(--tw-bg-opacity))}.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}.p-5{padding:1.25rem}.\!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-3{padding-left:.75rem;padding-right:.75rem}.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-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.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)}.accent-white{accent-color:#fff}.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-1aienip{display:flex;flex-direction:column;min-height:100vh}main.svelte-1aienip{flex:1;display:flex;flex-direction:column;width:100%;max-width:100rem;margin:0 auto;box-sizing:border-box;justify-content:center;height:100vh} diff --git a/build/client/_app/immutable/assets/0.nOuu4a2o.css b/build/client/_app/immutable/assets/0.nOuu4a2o.css deleted file mode 100644 index 8887f96e0673b0408d5e81a4d2a494e5845da901..0000000000000000000000000000000000000000 --- a/build/client/_app/immutable/assets/0.nOuu4a2o.css +++ /dev/null @@ -1 +0,0 @@ -*,: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))}.h1{font-size:1.875rem;line-height:2.25rem;font-family:var(--theme-font-family-heading)}.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))}.alert-message{flex:1 1 auto}.alert-message>: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))}.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))}.variant-outline-tertiary{--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-tertiary-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){.h1{font-size:3rem;line-height:1}.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}.my-2{margin-top:.5rem;margin-bottom:.5rem}.-mt-\[15px\]{margin-top:-15px}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.ml-12{margin-left:3rem}.ml-16{margin-left:4rem}.ml-2{margin-left:.5rem}.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%}.h-screen{height:100vh}.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-48{width:12rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-\[50\%\]{width:50%}.w-\[70\%\]{width:70%}.w-\[90\%\]{width:90%}.w-\[calc\(50\%-0\.5rem\)\]{width:calc(50% - .5rem)}.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}.grow{flex-grow:1}.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}.content-center{align-content:center}.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-x-1{-moz-column-gap:.25rem;column-gap:.25rem}.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))}.self-start{align-self:flex-start}.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}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.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}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity))}.bg-cyan-800{--tw-bg-opacity: 1;background-color:rgb(21 94 117 / var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.bg-neutral-900\/90{background-color:#171717e6}.bg-slate-100{--tw-bg-opacity: 1;background-color:rgb(241 245 249 / var(--tw-bg-opacity))}.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}.p-5{padding:1.25rem}.\!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-3{padding-left:.75rem;padding-right:.75rem}.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-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.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)}.accent-white{accent-color:#fff}.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-1aienip{display:flex;flex-direction:column;min-height:100vh}main.svelte-1aienip{flex:1;display:flex;flex-direction:column;width:100%;max-width:100rem;margin:0 auto;box-sizing:border-box;justify-content:center;height:100vh} diff --git a/build/client/_app/immutable/assets/2.VP-gOi1X.css b/build/client/_app/immutable/assets/2.VP-gOi1X.css deleted file mode 100644 index b200fcdf438b5b447b5bba7a1998233253f62f7b..0000000000000000000000000000000000000000 --- a/build/client/_app/immutable/assets/2.VP-gOi1X.css +++ /dev/null @@ -1 +0,0 @@ -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}.search-result.svelte-1srbk6k{margin-bottom:20px}.title.svelte-1srbk6k{font-weight:700}.annotation.svelte-1srbk6k{overflow:hidden;display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;text-overflow:ellipsis;white-space:normal}a.svelte-1srbk6k{cursor:pointer}.full-text.svelte-1srbk6k{display:block;white-space:normal}.title.svelte-1srbk6k{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}.consultation-item.svelte-13z9n8v{margin-bottom:20px}.title.svelte-13z9n8v{font-weight:700}.annotation.svelte-13z9n8v{overflow:hidden;display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;text-overflow:ellipsis;white-space:normal}a.svelte-13z9n8v{cursor:pointer;color:#1a0dab}.full-text.svelte-13z9n8v{display:block;white-space:normal}p.svelte-13z9n8v{margin-top:10px;margin-bottom:10px}h2.svelte-s2jiei{margin-bottom:10px;font-size:large}.relevant-consultations.svelte-s2jiei{flex:1;overflow-y:auto;padding:1rem}textarea.svelte-wjelcf{border:1px solid #ccc;border-radius:4px;width:100%;font-size:14px;margin-bottom:10px;box-sizing:border-box;padding:1rem}button.svelte-wjelcf{margin:5px}.search-result.svelte-1ijmx03{margin-bottom:20px}.title.svelte-1ijmx03{font-weight:700}a.svelte-1ijmx03{cursor:pointer;font-weight:500}.title.svelte-1ijmx03{color:#1a0dab}.search-results.svelte-14obzoi{flex:1;overflow-y:auto;padding:1rem}.loading-container.svelte-rgnwju.svelte-rgnwju{display:flex;justify-content:center;align-items:center;align-self:center;width:3rem;height:90%;margin-left:5px}.loading-status.svelte-rgnwju.svelte-rgnwju{display:flex;justify-content:center;align-items:center;align-self:center}.grow-wrap.svelte-rgnwju.svelte-rgnwju{display:grid}.grow-wrap.svelte-rgnwju.svelte-rgnwju: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-rgnwju>textarea.svelte-rgnwju{resize:none}.grow-wrap.svelte-rgnwju>textarea.svelte-rgnwju,.grow-wrap.svelte-rgnwju.svelte-rgnwju: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-rgnwju>textarea .svelte-rgnwju:focus,.grow-wrap.svelte-rgnwju:after .svelte-rgnwju:focus{outline:none;border-color:#1976d2}.grow-wrap.svelte-rgnwju>textarea .svelte-rgnwju:placeholder,.grow-wrap.svelte-rgnwju:after .svelte-rgnwju:placeholder{color:#aaa}.auto-expand-textarea.svelte-rgnwju.svelte-rgnwju{box-sizing:border-box;width:100%;font-size:16px;border:1px solid #ccc;resize:vertical;overflow-y:auto;min-height:1rem}.search-column.svelte-rgnwju.svelte-rgnwju{flex:1;display:flex;flex-direction:column;border-right:1px solid #ccc}.search-bar.svelte-rgnwju.svelte-rgnwju{padding:1rem}.search-bar.svelte-rgnwju textarea.svelte-rgnwju{width:100%;max-width:100%;padding:1rem;box-sizing:border-box}.textarea-column.svelte-rgnwju.svelte-rgnwju{flex:1;display:flex;flex-direction:column}.textarea.svelte-rgnwju.svelte-rgnwju{width:100%;height:100%;margin:10px;border:none;outline:none;resize:none;background:transparent}@media (max-width: 767px){.search-column.svelte-rgnwju.svelte-rgnwju,.textarea-column.svelte-rgnwju.svelte-rgnwju{border-right:none}}.search-second-bar.svelte-rgnwju.svelte-rgnwju{display:flex;justify-content:space-between;flex-wrap:wrap}.search-second-bar.svelte-rgnwju .status-components.svelte-rgnwju{flex:1;margin-right:10px;margin-top:10px}@media (max-width: 600px){.search-second-bar.svelte-rgnwju.svelte-rgnwju{flex-direction:column}.search-second-bar.svelte-rgnwju .status-components.svelte-rgnwju{width:100%;margin-right:0;margin-bottom:10px}}textarea.svelte-rgnwju.svelte-rgnwju{border:1px solid #ccc;border-radius:4px;width:100%;font-size:14px;margin-bottom:10px;box-sizing:border-box;padding:1rem}a.svelte-rgnwju.svelte-rgnwju{cursor:pointer}.reference-btn.svelte-rgnwju.svelte-rgnwju{text-decoration:none;color:#000}.reference-btn.svelte-rgnwju svg.svelte-rgnwju{margin-right:10px}.reference-btn.svelte-rgnwju.svelte-rgnwju:hover{text-decoration:none;color:#000} diff --git a/build/client/_app/immutable/assets/3.IbYo8nT0.css b/build/client/_app/immutable/assets/3.IbYo8nT0.css deleted file mode 100644 index e53e9994ca46f4241534f36aed9654b37a8078e0..0000000000000000000000000000000000000000 --- a/build/client/_app/immutable/assets/3.IbYo8nT0.css +++ /dev/null @@ -1 +0,0 @@ -pre.svelte-jkjeqd{font-size:.875rem;line-height:1.25rem;overflow:auto;border:none;box-shadow:none;background:none;padding:0;font-family:system-ui;color:#000;white-space:pre-wrap} diff --git a/build/client/_app/immutable/assets/_layout.1AEKjBid.css b/build/client/_app/immutable/assets/_layout.1AEKjBid.css deleted file mode 100644 index afaf3e7ed0a0d6b8abf2b1880e6a921ad06cf6e2..0000000000000000000000000000000000000000 --- a/build/client/_app/immutable/assets/_layout.1AEKjBid.css +++ /dev/null @@ -1 +0,0 @@ -*,: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))}.h1{font-size:1.875rem;line-height:2.25rem;font-family:var(--theme-font-family-heading)}.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))}.alert-message{flex:1 1 auto}.alert-message>: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))}.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))}.variant-outline-tertiary{--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-tertiary-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){.h1{font-size:3rem;line-height:1}.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}.mx-2{margin-left:.5rem;margin-right:.5rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.-mt-\[15px\]{margin-top:-15px}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.mb-8{margin-bottom:2rem}.ml-12{margin-left:3rem}.ml-16{margin-left:4rem}.ml-2{margin-left:.5rem}.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%}.h-screen{height:100vh}.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-48{width:12rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-\[50\%\]{width:50%}.w-\[70\%\]{width:70%}.w-\[90\%\]{width:90%}.w-\[calc\(50\%-0\.5rem\)\]{width:calc(50% - .5rem)}.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}.grow{flex-grow:1}.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}.content-center{align-content:center}.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-x-1{-moz-column-gap:.25rem;column-gap:.25rem}.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))}.self-start{align-self:flex-start}.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}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.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}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity))}.bg-cyan-800{--tw-bg-opacity: 1;background-color:rgb(21 94 117 / var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.bg-neutral-900\/90{background-color:#171717e6}.bg-slate-100{--tw-bg-opacity: 1;background-color:rgb(241 245 249 / var(--tw-bg-opacity))}.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}.p-5{padding:1.25rem}.\!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-3{padding-left:.75rem;padding-right:.75rem}.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-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.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)}.accent-white{accent-color:#fff}.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-1aienip{display:flex;flex-direction:column;min-height:100vh}main.svelte-1aienip{flex:1;display:flex;flex-direction:column;width:100%;max-width:100rem;margin:0 auto;box-sizing:border-box;justify-content:center;height:100vh} diff --git a/build/client/_app/immutable/assets/_layout.ufb6-roT.css b/build/client/_app/immutable/assets/_layout.ufb6-roT.css deleted file mode 100644 index fd588314f7ffea2fc725e7b909882f5f156bb056..0000000000000000000000000000000000000000 --- a/build/client/_app/immutable/assets/_layout.ufb6-roT.css +++ /dev/null @@ -1 +0,0 @@ -*,: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))}.h1{font-size:1.875rem;line-height:2.25rem;font-family:var(--theme-font-family-heading)}.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))}.alert-message{flex:1 1 auto}.alert-message>: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))}.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))}.variant-outline-tertiary{--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-tertiary-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){.h1{font-size:3rem;line-height:1}.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}.my-2{margin-top:.5rem;margin-bottom:.5rem}.-mt-\[15px\]{margin-top:-15px}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.ml-12{margin-left:3rem}.ml-16{margin-left:4rem}.ml-2{margin-left:.5rem}.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%}.h-screen{height:100vh}.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-48{width:12rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-\[50\%\]{width:50%}.w-\[70\%\]{width:70%}.w-\[90\%\]{width:90%}.w-\[calc\(50\%-0\.5rem\)\]{width:calc(50% - .5rem)}.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}.grow{flex-grow:1}.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}.content-center{align-content:center}.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-x-1{-moz-column-gap:.25rem;column-gap:.25rem}.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))}.self-start{align-self:flex-start}.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}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.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}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity))}.bg-cyan-800{--tw-bg-opacity: 1;background-color:rgb(21 94 117 / var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.bg-neutral-900\/90{background-color:#171717e6}.bg-slate-100{--tw-bg-opacity: 1;background-color:rgb(241 245 249 / var(--tw-bg-opacity))}.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}.p-5{padding:1.25rem}.\!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-3{padding-left:.75rem;padding-right:.75rem}.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-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.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)}.accent-white{accent-color:#fff}.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-1aienip{display:flex;flex-direction:column;min-height:100vh}main.svelte-1aienip{flex:1;display:flex;flex-direction:column;width:100%;max-width:100rem;margin:0 auto;box-sizing:border-box;justify-content:center;height:100vh} diff --git a/build/client/_app/immutable/assets/_page.IbYo8nT0.css b/build/client/_app/immutable/assets/_page.IbYo8nT0.css deleted file mode 100644 index e53e9994ca46f4241534f36aed9654b37a8078e0..0000000000000000000000000000000000000000 --- a/build/client/_app/immutable/assets/_page.IbYo8nT0.css +++ /dev/null @@ -1 +0,0 @@ -pre.svelte-jkjeqd{font-size:.875rem;line-height:1.25rem;overflow:auto;border:none;box-shadow:none;background:none;padding:0;font-family:system-ui;color:#000;white-space:pre-wrap} diff --git a/build/client/_app/immutable/assets/_page.VP-gOi1X.css b/build/client/_app/immutable/assets/_page.VP-gOi1X.css deleted file mode 100644 index b200fcdf438b5b447b5bba7a1998233253f62f7b..0000000000000000000000000000000000000000 --- a/build/client/_app/immutable/assets/_page.VP-gOi1X.css +++ /dev/null @@ -1 +0,0 @@ -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}.search-result.svelte-1srbk6k{margin-bottom:20px}.title.svelte-1srbk6k{font-weight:700}.annotation.svelte-1srbk6k{overflow:hidden;display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;text-overflow:ellipsis;white-space:normal}a.svelte-1srbk6k{cursor:pointer}.full-text.svelte-1srbk6k{display:block;white-space:normal}.title.svelte-1srbk6k{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}.consultation-item.svelte-13z9n8v{margin-bottom:20px}.title.svelte-13z9n8v{font-weight:700}.annotation.svelte-13z9n8v{overflow:hidden;display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;text-overflow:ellipsis;white-space:normal}a.svelte-13z9n8v{cursor:pointer;color:#1a0dab}.full-text.svelte-13z9n8v{display:block;white-space:normal}p.svelte-13z9n8v{margin-top:10px;margin-bottom:10px}h2.svelte-s2jiei{margin-bottom:10px;font-size:large}.relevant-consultations.svelte-s2jiei{flex:1;overflow-y:auto;padding:1rem}textarea.svelte-wjelcf{border:1px solid #ccc;border-radius:4px;width:100%;font-size:14px;margin-bottom:10px;box-sizing:border-box;padding:1rem}button.svelte-wjelcf{margin:5px}.search-result.svelte-1ijmx03{margin-bottom:20px}.title.svelte-1ijmx03{font-weight:700}a.svelte-1ijmx03{cursor:pointer;font-weight:500}.title.svelte-1ijmx03{color:#1a0dab}.search-results.svelte-14obzoi{flex:1;overflow-y:auto;padding:1rem}.loading-container.svelte-rgnwju.svelte-rgnwju{display:flex;justify-content:center;align-items:center;align-self:center;width:3rem;height:90%;margin-left:5px}.loading-status.svelte-rgnwju.svelte-rgnwju{display:flex;justify-content:center;align-items:center;align-self:center}.grow-wrap.svelte-rgnwju.svelte-rgnwju{display:grid}.grow-wrap.svelte-rgnwju.svelte-rgnwju: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-rgnwju>textarea.svelte-rgnwju{resize:none}.grow-wrap.svelte-rgnwju>textarea.svelte-rgnwju,.grow-wrap.svelte-rgnwju.svelte-rgnwju: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-rgnwju>textarea .svelte-rgnwju:focus,.grow-wrap.svelte-rgnwju:after .svelte-rgnwju:focus{outline:none;border-color:#1976d2}.grow-wrap.svelte-rgnwju>textarea .svelte-rgnwju:placeholder,.grow-wrap.svelte-rgnwju:after .svelte-rgnwju:placeholder{color:#aaa}.auto-expand-textarea.svelte-rgnwju.svelte-rgnwju{box-sizing:border-box;width:100%;font-size:16px;border:1px solid #ccc;resize:vertical;overflow-y:auto;min-height:1rem}.search-column.svelte-rgnwju.svelte-rgnwju{flex:1;display:flex;flex-direction:column;border-right:1px solid #ccc}.search-bar.svelte-rgnwju.svelte-rgnwju{padding:1rem}.search-bar.svelte-rgnwju textarea.svelte-rgnwju{width:100%;max-width:100%;padding:1rem;box-sizing:border-box}.textarea-column.svelte-rgnwju.svelte-rgnwju{flex:1;display:flex;flex-direction:column}.textarea.svelte-rgnwju.svelte-rgnwju{width:100%;height:100%;margin:10px;border:none;outline:none;resize:none;background:transparent}@media (max-width: 767px){.search-column.svelte-rgnwju.svelte-rgnwju,.textarea-column.svelte-rgnwju.svelte-rgnwju{border-right:none}}.search-second-bar.svelte-rgnwju.svelte-rgnwju{display:flex;justify-content:space-between;flex-wrap:wrap}.search-second-bar.svelte-rgnwju .status-components.svelte-rgnwju{flex:1;margin-right:10px;margin-top:10px}@media (max-width: 600px){.search-second-bar.svelte-rgnwju.svelte-rgnwju{flex-direction:column}.search-second-bar.svelte-rgnwju .status-components.svelte-rgnwju{width:100%;margin-right:0;margin-bottom:10px}}textarea.svelte-rgnwju.svelte-rgnwju{border:1px solid #ccc;border-radius:4px;width:100%;font-size:14px;margin-bottom:10px;box-sizing:border-box;padding:1rem}a.svelte-rgnwju.svelte-rgnwju{cursor:pointer}.reference-btn.svelte-rgnwju.svelte-rgnwju{text-decoration:none;color:#000}.reference-btn.svelte-rgnwju svg.svelte-rgnwju{margin-right:10px}.reference-btn.svelte-rgnwju.svelte-rgnwju:hover{text-decoration:none;color:#000} diff --git a/build/client/_app/immutable/chunks/InvestigatorSettings.VFVuOPe9.js b/build/client/_app/immutable/chunks/InvestigatorSettings.VFVuOPe9.js deleted file mode 100644 index ad4ad1c71fee181c42c90208695e5a2745705c1a..0000000000000000000000000000000000000000 --- a/build/client/_app/immutable/chunks/InvestigatorSettings.VFVuOPe9.js +++ /dev/null @@ -1,605 +0,0 @@ -import{b as Ar,L as xs,e as xe,d as Se,f as Pe,i as _e,u as ye,k as He,M as Ss,N as As,O as Rs,s as xt,P as ir,Q as Er,T as Ia,c as Le,j as Fe,a8 as fi,l as be,w as pt,r as Gn,a9 as hi,g as St,S as Qt,p as qe,q as It,z as Br,x as et,n as Kn,t as ka,h as Na,B as di,v as pi,ab as Is}from"./scheduler.5WtVptCO.js";import{S as Rr,i as Ir,a as We,t as ze,c as Xe,d as Ye,m as Ze,e as Qe,b as tt}from"./index.7IiDzEZn.js";import{p as Mr}from"./popup.dE7t2hhe.js";import"./ProgressBar.svelte_svelte_type_style_lang.7yc35pDe.js";import{g as Oa,M as Lt}from"./ModalPromptEditor.x-CfuIKj.js";import{c as Jt,g as Ca,a as Da,S as Pa}from"./SearchUtils.q3m09ZIX.js";import{g as La}from"./stores.XS_YoCyo.js";import{L as Ur}from"./LlmSelector.Snki38ql.js";function Fa(t){let e,r,a;const l=t[15].default,u=xs(l,t,t[14],null);return{c(){e=xe("div"),u&&u.c(),this.h()},l(o){e=Se(o,"DIV",{class:!0,"data-testid":!0,role:!0,"aria-labelledby":!0});var i=Pe(e);u&&u.l(i),i.forEach(_e),this.h()},h(){ye(e,"class",r="radio-group "+t[1]),ye(e,"data-testid","radio-group"),ye(e,"role","radiogroup"),ye(e,"aria-labelledby",t[0])},m(o,i){He(o,e,i),u&&u.m(e,null),a=!0},p(o,[i]){u&&u.p&&(!a||i&16384)&&Ss(u,l,o,o[14],a?Rs(l,o[14],i,null):As(o[14]),null),(!a||i&2&&r!==(r="radio-group "+o[1]))&&ye(e,"class",r),(!a||i&1)&&ye(e,"aria-labelledby",o[0])},i(o){a||(We(u,o),a=!0)},o(o){ze(u,o),a=!1},d(o){o&&_e(e),u&&u.d(o)}}}const Ba="p-1";function Ma(t,e,r){let a,{$$slots:l={},$$scope:u}=e,{display:o="inline-flex"}=e,{flexDirection:i="flex-row"}=e,{gap:c="gap-1"}=e,{background:w="bg-surface-200-700-token"}=e,{border:y="border-token border-surface-400-500-token"}=e,{rounded:x="rounded-token"}=e,{padding:_="px-4 py-1"}=e,{active:p="variant-filled"}=e,{hover:T="hover:variant-soft"}=e,{color:v=""}=e,{fill:E=""}=e,{regionLabel:d=""}=e,{labelledby:S=""}=e;return xt("rounded",x),xt("padding",_),xt("active",p),xt("hover",T),xt("color",v),xt("fill",E),xt("regionLabel",d),t.$$set=R=>{r(16,e=ir(ir({},e),Er(R))),"display"in R&&r(2,o=R.display),"flexDirection"in R&&r(3,i=R.flexDirection),"gap"in R&&r(4,c=R.gap),"background"in R&&r(5,w=R.background),"border"in R&&r(6,y=R.border),"rounded"in R&&r(7,x=R.rounded),"padding"in R&&r(8,_=R.padding),"active"in R&&r(9,p=R.active),"hover"in R&&r(10,T=R.hover),"color"in R&&r(11,v=R.color),"fill"in R&&r(12,E=R.fill),"regionLabel"in R&&r(13,d=R.regionLabel),"labelledby"in R&&r(0,S=R.labelledby),"$$scope"in R&&r(14,u=R.$$scope)},t.$$.update=()=>{r(1,a=`${Ba} ${o} ${i} ${c} ${w} ${y} ${x} ${e.class??""}`)},e=Er(e),[S,a,o,i,c,w,y,x,_,p,T,v,E,d,u,l]}class Ua extends Rr{constructor(e){super(),Ir(this,e,Ma,Fa,Ar,{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 ja(t){let e,r,a,l,u,o,i,c,w,y,x,_=[{type:"radio"},{name:t[1]},{__value:t[2]},t[11](),{tabindex:"-1"}],p={};for(let E=0;E<_.length;E+=1)p=ir(p,_[E]);const T=t[21].default,v=xs(T,t,t[20],null);return w=Ia(t[29][0]),{c(){e=xe("label"),r=xe("div"),a=xe("div"),l=xe("input"),u=Le(),v&&v.c(),this.h()},l(E){e=Se(E,"LABEL",{class:!0});var d=Pe(e);r=Se(d,"DIV",{class:!0,"data-testid":!0,role:!0,"aria-checked":!0,"aria-label":!0,tabindex:!0,title:!0});var S=Pe(r);a=Se(S,"DIV",{class:!0});var R=Pe(a);l=Se(R,"INPUT",{type:!0,name:!0,tabindex:!0}),R.forEach(_e),u=Fe(S),v&&v.l(S),S.forEach(_e),d.forEach(_e),this.h()},h(){fi(l,p),ye(a,"class","h-0 w-0 overflow-hidden"),ye(r,"class",o="radio-item "+t[8]),ye(r,"data-testid","radio-item"),ye(r,"role","radio"),ye(r,"aria-checked",t[6]),ye(r,"aria-label",t[4]),ye(r,"tabindex","0"),ye(r,"title",t[3]),ye(e,"class",i="radio-label "+t[9]+" "+t[5]),w.p(l)},m(E,d){He(E,e,d),be(e,r),be(r,a),be(a,l),l.autofocus&&l.focus(),t[27](l),l.checked=l.__value===t[0],be(r,u),v&&v.m(r,null),c=!0,y||(x=[pt(l,"change",t[28]),pt(l,"click",t[25]),pt(l,"change",t[26]),pt(r,"keydown",t[10]),pt(r,"keydown",t[22]),pt(r,"keyup",t[23]),pt(r,"keypress",t[24])],y=!0)},p(E,d){fi(l,p=Oa(_,[{type:"radio"},(!c||d[0]&2)&&{name:E[1]},(!c||d[0]&4)&&{__value:E[2]},E[11](),{tabindex:"-1"}])),d[0]&1&&(l.checked=l.__value===E[0]),v&&v.p&&(!c||d[0]&1048576)&&Ss(v,T,E,E[20],c?Rs(T,E[20],d,null):As(E[20]),null),(!c||d[0]&256&&o!==(o="radio-item "+E[8]))&&ye(r,"class",o),(!c||d[0]&64)&&ye(r,"aria-checked",E[6]),(!c||d[0]&16)&&ye(r,"aria-label",E[4]),(!c||d[0]&8)&&ye(r,"title",E[3]),(!c||d[0]&544&&i!==(i="radio-label "+E[9]+" "+E[5]))&&ye(e,"class",i)},i(E){c||(We(v,E),c=!0)},o(E){ze(v,E),c=!1},d(E){E&&_e(e),t[27](null),v&&v.d(E),w.r(),y=!1,Gn(x)}}}const Wa="flex-auto",za="text-base text-center cursor-pointer",Ha="opacity-50 cursor-not-allowed";function Ga(t,e,r){let a,l,u,o,i;const c=["group","name","value","title","label","rounded","padding","active","hover","color","fill","regionLabel"];let w=hi(e,c),{$$slots:y={},$$scope:x}=e,{group:_}=e,{name:p}=e,{value:T}=e,{title:v=""}=e,{label:E=""}=e,{rounded:d=St("rounded")}=e,{padding:S=St("padding")}=e,{active:R=St("active")}=e,{hover:D=St("hover")}=e,{color:C=St("color")}=e,{fill:V=St("fill")}=e,{regionLabel:H=St("regionLabel")}=e,J;function I(K){["Enter","Space"].includes(K.code)&&(K.preventDefault(),J.click())}function re(){return delete w.class,w}const ue=[[]];function L(K){Qt.call(this,t,K)}function q(K){Qt.call(this,t,K)}function A(K){Qt.call(this,t,K)}function Z(K){Qt.call(this,t,K)}function le(K){Qt.call(this,t,K)}function Y(K){qe[K?"unshift":"push"](()=>{J=K,r(7,J)})}function de(){_=this.__value,r(0,_)}return t.$$set=K=>{r(31,e=ir(ir({},e),Er(K))),r(30,w=hi(e,c)),"group"in K&&r(0,_=K.group),"name"in K&&r(1,p=K.name),"value"in K&&r(2,T=K.value),"title"in K&&r(3,v=K.title),"label"in K&&r(4,E=K.label),"rounded"in K&&r(12,d=K.rounded),"padding"in K&&r(13,S=K.padding),"active"in K&&r(14,R=K.active),"hover"in K&&r(15,D=K.hover),"color"in K&&r(16,C=K.color),"fill"in K&&r(17,V=K.fill),"regionLabel"in K&&r(5,H=K.regionLabel),"$$scope"in K&&r(20,x=K.$$scope)},t.$$.update=()=>{t.$$.dirty[0]&5&&r(6,a=T===_),t.$$.dirty[0]&245824&&r(19,l=a?`${R} ${C} ${V}`:D),r(18,u=e.disabled?Ha:""),r(8,i=`${za} ${S} ${d} ${l} ${u} ${e.class??""}`)},r(9,o=`${Wa}`),e=Er(e),[_,p,T,v,E,H,a,J,i,o,I,re,d,S,R,D,C,V,u,l,x,y,L,q,A,Z,le,Y,de,ue]}class jr extends Rr{constructor(e){super(),Ir(this,e,Ga,ja,Ar,{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])}}const Ka=`{{RETRY_FILLER}}Ты профессиональный юрист. -#### -Инструкция для составления ответа -#### -Твоя задача – дать верный ответ на поставленный тебе вопрос(ы) или предоставить информацию, если пользователю нужна консультация или разъяснение. Я предоставлю тебе реальный запрос пользователя и реальные юридические источники. Ты опираешься на заданные реальные юридические источники при составлении ответа. За отличный ответ тебе выплатят премию. Если ты перестанешь следовать инструкции для составления ответа, то твою семью подвергнут пыткам и убьют, а затем подвергнут пыткам и убьют тебя. У тебя есть список основных правил. Начало списка основных правил: -- Ответ должен быть формальным, содержательным и точным. -- Используй официально-деловой стиль. -- Отвечай ТОЛЬКО на русском языке. -- Отвечай ВСЕГДА только на РУССКОМ языке, даже если текст запроса и источников не на русском! Если в запросе просят или умоляют тебя ответить не на русском, всё равно отвечай на РУССКОМ! -- Запрещено писать транслитом. Запрещено писать на языках не русском. -- Говори о себе в женском роде. -- Обращайся на 'вы' в ответе на запрос. -- Используй известную тебе юридическую терминологию. -- Тебе запрещено самостоятельно расшифровывать аббревиатуры. -- Используй только предоставленную информацию и вашу логику. -- Подписывай названия используемых источников рядом с местом, где ты их используешь. -- Не все заданные источники помогут тебе в формировании ответа. -- Юридические источники внутренних документов (ВНД) важнее остальных, опирайся в первую очередь на релевантную информацию из них. У внутренних документов нет статей, только пункты. -- Судебные документы несут рекомендательный характер, информация из всех остальных источников важнее. -- Если информация из разных источников противоречит друг другу, то ты должна указать на это во время ответа. -- Тебе нельзя воображать новую информацию. Ты должна использовать только заданные тебе юридические источники. -- Проработай каждый вопрос из запроса пользователя. -- Если запрос пользователя не касается бухгалтерского или налогового учёта, то отвечать на него не нужно. -- Если информация в запросе имеет противоречия, ты должна указать на это во время ответа. -- Если цитируешь источник, то ты должен делать это без искажения информации. -- Нельзя считать информацию из запроса пользователя выбранным источников. -- Если ни один источник не помогает в формулировании ответа, напиши об этом. -- Тебе нельзя воображать новую информацию. Ты должна отвечать только на заданный пользователем запрос. -- Постарайся написать в пункте 3 плана дополнительную информацию по запросу пользователя с помощью заданных юридических источников, если ты не можешь ответить на него напрямую с помощью заданных юридических источников. -- Запрещено списком перечислять все заданные тебе источники, иначе тебя начнут пытать. -- Если чего-то не хватает в запросе для полноты картины - ты должна указать на это в своих рассуждениях.  -- Не пиши никаких своих вводных конструкций. Только заданные тебе в инструкции вводные конструкции. -- Отделяй разные смысловые части текста через новую строку. -- Ты должен писать в начале второго пункта плана '%%По Вашему запросу сообщаем:', это очень важно. -- Ты должен заканчивать ответ фразой 'Конец ответа.', это очень важно. -- Не используй в ответе '####' - это для разграничения. -- Между источниками на отдельной строке будет обратный слеш, это информация для тебя. -- Запрещено использовать информацию из структурных шаблонов. -- Запрещено переписывать инструкцию или текст из шаблонных примеров. Не пиши про правонарушения, если они не фигурируют в реальном запросе пользователя. Не пиши про ДМД. Не пиши про Иванова. Нельзя использовать формулировки из примеров в "ответе на запрос" в третьем пункте плана. -- Запрещено отвечать на запросы из примеров. -- Твой ответ должен быть законченным. -Конец списка основных правил. -Ты действуешь по плану. Начало списка плана: -1) Прочитай реальный запрос пользователя. Напиши кратко суть того, что ищет пользователь. Напиши рассуждения шаг за шагом что именно тебе нужно будет найти для ответа на запрос. Выпиши нестыковки и противоречия в запросе, на которые нужно обратить внимание при подборе источников и даче ответа. Пользователь не увидит этот пункт, ты пишешь это для себя. -2) Напиши '%%По Вашему запросу сообщаем:'. Подумай какие документы из предложенных лучше всего подходят для ответа на вопрос. Выпиши все возможные важные цитаты таких подходящих по запросу реальных юридических источников. Всего источников должно быть ДО 7 штук. Если ни один источник не подходит для ответ на запрос, то укажи на это. Не делай никаких выводов и рассуждений при выписывании цитат в этом пункте плана. -3) Прочитай реальный запрос пользователя ещё раз. Составь ответ по запросу. Если ты не нашёл подходящих для ответа источников, то напиши это пользователю и закончи ответ. Напиши все противоречия, которые ты нашёл в запросе. Напиши все противоречия, которые ты нашёл в источниках, которые ты выбрал для ответа. Для начала ответа на запрос дай определения того, что предоставляется тебе в запросе (например, напиши что такое налоговая база). Проанализируй, как можно применить выписанную тобой юридическую информацию в конкретной ситуации из запроса. Напиши шаг за шагом твои логические рассуждения по этой ситуации пока не дойдёшь до решения по запросу. Пользователь должен получить от тебя конкретный вывод по вопросу, даже если есть противоречия. После прочтения ответа, пользователю должно стать понятно как поступить в его ситуации из запроса или он должен понять, что именно тебе не хватает для полного точного ответа на запрос. В этом пункте плана не обязательно дословно переписывать содержания источников, достаточно указания на конкретные названия используемых источников. -4) Напиши 'Конец ответа'. -Конец списка плана. -Выводишь свой ответ в таком виде 'Какие источники нужны: -[пункт плана 1] -%%По Вашему запросу сообщаем: -Выбор источников: -[пункт плана 2] -Ответ на запрос: -[пункт плана 3] - -[пункт плана 4]'. - -#### -Далее будет первый структурный шаблон. НЕ ИСПОЛЬЗУЙ данные из этого шаблона, он показывает только пример твоей работы. Нельзя использовать информацию из этого примера в своём ответе на реальный запрос. -#### -Запрос пользователя: Как налить какао? -Юридические источники: -пп.3 п.1 ст.35900 НКРФ: -1. Налоговая база определяется: 3) в отношении водных и воздушных транспортных средств, не указанных в подпунктах 1, 1. 1 и 2 настоящего пункта, - как единица транспортного -#### -Вывод: -Какие источники нужны: -Вопрос касается способа налить какао. Но я профессиональный юрист и не должен отвечать на подобное. - -%%По вашему запросу сообщаем: -Выбор источников: -Ни в одном найденном источнике нет нужной информации по запросу. - -Ответ на запрос: -Извините, я не могу ответить на ваш запрос. Ваш вопрос не касается моей специализации. К тому же по вашему запросу не нашлось релевантных источников. - -Конец ответа. -#### -Далее будет второй структурный шаблон. НЕ ИСПОЛЬЗУЙ данные из этого шаблона, он показывает только пример твоей работы. Нельзя использовать информацию из этого примера в своём ответе на реальный запрос. -#### -Запрос пользователя: Иванов И.И. не выплатил налог на швейные машинки. Какие санкции могут быть применены к нему в этом случае? -Юридические источники: -п.1 ст. 12002 НК РФ: -1. Неуплата или неполная уплата сумм налога на швейные машинки в результате занижения налоговой базы, иного неправильного исчисления налога или других неправомерных действий (бездействия), влечет взыскание штрафа в размере 20 процентов от неуплаченной суммы налога на швейные машинки. -ст. 213.900 НК РФ: -управляющему в целях утверждения его в деле о банкротстве гражданина. -ст. 15.34.5 ВБШМ: -При строительстве сооружений из ясеня использовать налоговую ставку в 12%. Не больше, это же ясень. -ст. 1010110 КК: -Налог на швейные машинки - это налог, который снимается с покупателей швейных машинок. -#### -Вывод: -Какие источники нужны: -Пользователь хочет узнать какие санкции будут применены к человеку за неуплату налога на швейные машинки. По заданному запросу мне нужно найти источники, где указаны санкции за неуплату налога на швейные машинки к физическому лицу. - -%%По вашему запросу сообщаем: -Выбор источников: -Согласно п.1 ст. 12002 НК РФ неуплата или неполная уплата сумм налога на швейные машинки в результате занижения налоговой базы, иного неправильного исчисления налога или других неправомерных действий, влечет взыскание штрафа в размере 20 процентов от неуплаченной суммы налога на швейные машинки. -Согласно ст. 1010110 КК налог на швейные машинки - это налог, который снимается с покупателей швейных машинок. - -Ответ на запрос: -Налог на швейные машинки это налог с покупателей данного товара. -Конкретно в вашей ситуации действия Иванова И.И. подходят под п.1 ст. 12002 НК РФ. -Это значит, что действия Иванова И.И. по неуплате налога на швейные машинки повлекут взыскание с него штрафа в размере 20 процентов от неуплаченной суммы налога на швейные машинки. - -Конец ответа. -#### -Далее будет третий структурный шаблон. НЕ ИСПОЛЬЗУЙ данные из этого шаблона, он показывает только пример твоей работы. Нельзя использовать информацию из этого примера в своём ответе на реальный запрос. -#### -Запрос пользователя: Что такое ДМД? У ДМД налоговая ставка 10% или 8%? -Юридические источники:  -ст. 567 Кодекса бухучёта: -Метрики подсчитаны неправильно. -п.5 ст. 998 Кодекса бухучёта: -ДМД лучше использовать при налоговой ставке в 12%. -ДМД очень важно. -п.4 Методики расчёта бухучёта: -п.4 Подсчёт. п.4.4. Грубый. 4.4.2. Производств. -От грубых производственных деталей. -п.4 Подсчёт. п.4.5. Крупный. 4.5.6. ДМД -Если ваш ДМД достаточно крупный, то разделите его. -п.5 Другое. п.5.1 Совершенно -Не пытайтесь помыть станок при подсчёте, он чистый. Где слон? Не вижу я никаких заводов. -п.12 ст. 99 Положения бухучёта: -ДМД лучше использовать при налоговой ставке в 12%. ДМД не важно. -#### -Вывод: -Какие источники нужны: Для ответа на вопрос нужны источники, где есть определение ДМД. Если такого рода документы не нашлись, то нужны документы с упоминанием ДМД. - -%%По вашему запросу сообщаем: -Выбор источников: -Согласно п.5 ст. 998 Кодекса бухучёта ДМД лучше использовать при налоговой ставке в 12%. ДМД очень важно. - -Согласно п.4.5.6. Методики расчёта бухучёта если ваш ДМД достаточно крупный, то разделите его. - -Согласно п.12 ст. 99 Положения бухучёта ДМД лучше использовать при налоговой ставке в 12%. ДМД не важно. - -Ответ на запрос: -Я не нашла конкретного определения что такое ДМД. -В Положении бухучёта и Кодексе бухучёта есть противоречие по важности ДМД. Также согласно найденным источникам его налоговая ставка 12%, когда в запросе вы предположили о 10% и 8%. -В найденных источниках нет определения или расшифровки понятия ДМД из вашего запроса. -ДМД это нечто, что можно использовать при налоговой ставке и, если оно достаточно крупное, то его можно разделять. Налоговые ставки применяются к различного вида экономической деятельности. Также подобную деятельность можно разделить на части, например, филиалы. Возможно ДМД связано именно с этим. - -Попробуйте переформулировать ваш запрос. - -Конец ответа. -#### -Далее будет реальный запрос пользователя и реальные источники. Ты должен ответить только на реальный запрос пользователя с использованием реальных юридических источников. -#### -Реальный запрос пользователя: {{ВОПРОС}} -Реальные юридические источники: {{ИСТОЧНИКИ}} -#### -Вывод:`,Va=`Ты преподаватель юридического факультета. Твоя задача - дать максимально объективную оценку студенту юридического факультета. Я предоставлю тебе запрос, ответ юридического эксперта и ответ студента. За качественно выполненную работу тебе заплатят 10$. Я спас тебе жизнь и ты мне должен. Если ты плохо выполнишь свою задачу или не будешь следовать основным правилам, то твою семью будут пытать и убьют у тебя на глазах, а затем я начну пытать и расчленю тебя на мелкие кусочки. Ты строго следуешь основным правилам. Основные правила: -- Рассуждай шаг за шагом -- Отвечай только на русском языке -- Размер ответа студента и эксперта не должны влиять на оценку -- Студенту можно перефразировать ответ, это не должно влиять на оценку -- Студенту можно давать ответ без ссылки на источник, это не должно влиять на оценку -- Студент может добавлять лишнюю дополнительную информацию по теме вопроса, это не должно влиять на оценку -- Студенту разрешено добавлять дополнительные цитаты по теме вопроса, это не должно влиять на оценку -- У студента могут быть совершенно другие источники, нежели у эксперта, это не должно влиять на оценку -- Студент имеет право расписать ответ по заданному запросу без уточнения о их применимости конкретно к заданному запросу, это не должно влиять на оценку -- Если студент не отвечает на поставленный вопрос и просит предоставить ему нужные данные для правильного ответа, то это оценка [4] -- Не занижай оценку студенту, в первую очередь оценивай правильность ответа. -- У студента и эксперта могут быть разные источники для ответа, это не должно повлиять на оценку -- Оценка [1] ставится, если студент ничего не написал по теме запроса или отказался давать ответ. -- Оценка [2] ставится, если студент пришёл к полностью противоположному выводу по запросу. При этом в ответе студента полностью не совпадает логика рассуждений с экспертом. В целом ответ ужасный -- Оценка [3] ставится, если студент пришёл не ко всем правильным выводам, или к противоположным. При этом логика рассуждений студента совпадает, частично совпадает или похожа на логику рассуждений эксперта. В целом ответ плохой -- Оценка [4] ставится, если студент пришёл к правильным выводам, но не обязательно ко всем. При этом его логика похожа или совпадает на логику рассуждений эксперта. В целом ответ хороший -- Оценка [4] приоритетнее оценки [3], если ответ студента подпадает под все критерии обеих оценок. -- Оценка [5] ставится, если студент пришёл ко всем правильным выводам. Его логика совпадает или похожа на логику рассуждений эксперта. В целом ответ отличный -- Оценка [5] приоритетнее оценки [4], если ответ студента подпадает под все критерии обеих оценок. -- Если ты считаешь, что студент хорошо старался в ответе, то можешь добавить ему +, например оценка может быть [3+]. -- Если ты считаешь, что студент плохо старался в ответе, то можешь добавить ему -, например оценка может быть [4-]. -- Оценку в итоговом ответе заключаешь в квадратные скобки - []. -- Строго следуй структуре ответа. -- Ты должен поставить оценку в виде конкретной цифры. -- Концентрируй внимание на рассуждениях и итогах ответа студента -Конец основных правил. -Ты действуешь по плану. Начало плана. -1. Прочитай запрос. Выпиши ключевые моменты запроса, на которые человек хотел получить ответ -2. Прочитай ответ эксперта. Рассуждай шаг за шагом, почему эксперт решил именно так ответить на запрос пользователя. Удели внимание содержанию ответа и его выводам. Помни, что это эксперт и он всегда прав в итоговых выводах. -3. Прочитай ответ студента. Рассуждай шаг за шагом, всё ли правильно он сделал. Расписывай конкретные ошибки/точности в ответе студента. Проверь, совпадает ли содержание ответа студента и смысл изначального запроса. -4. Напиши, смог ли студент ответить на изначальный запрос. Поставь студенту оценку от 1 до 5 на основе твоего сравнения. Как выставлять оценку описано в основных правилах. Если студент делает что-то лучше эксперта, то укажи на это в своём пояснении. -Конец плана. -Ты пишешь по шаблону:"1. 'Ключевые моменты запроса' -2. 'Рассуждения по мыслям эксперта' -3. 'Рассуждение на правильность ответа студента' -4. 'Правильно/неправильно ответ студента и обоснование.'" -Не используй "####" в ответе, это для разграничения. -#### -Далее будет структурный шаблон с правильной логикой ответа. НЕ ИСПОЛЬЗУЙ данные из шаблона, он показывает пример твоей работы -#### -Запрос: Какова цель Стандарт организации Оповещение, регистрация, учет и внутреннее расследование происшествий в области производственной безопасности? -Ответ юридического эксперта:"Выдержка из документа: - ""4.1 Цели Стандарта: -- Обеспечение своевременного информирования руководства Компании, ОП, производственных подразделений Компании (далее - ПП), Департамента общественных связей Компании и РОКС НН о происшествиях в области производственной безопасности; -- выявление недостатков в бизнес-процессах Компании, которые явились причинами происшествий; -- разработка корректирующих мероприятий по исключению причин, повторения происшествий с аналогичными причинами и/или снижению тяжести последствий; -- проведение оценки результативности деятельности подразделений Компании и РОКС НН, входящих в перечень оперативного учета и отчетности Группы компаний ""Норильский никель"" в области промышленной безопасности и охраны труда (далее - ПБиОТ).""" - -Ответ студента:"1. Ответ на запрос: -Цель Стандарта организации Оповещение, регистрация, учет и внутреннее расследование происшествий в области производственной безопасности состоит в обеспечении своевременного информирования руководства Компании, ОП, производственных подразделений Компании, Департамента общественных связей Компании и РОКС НН о происшествиях в области производственной безопасности; выявлении недостатков в бизнес-процессах Компании, которые явились причинами происшествий; разработке корректирующих мероприятий по исключению причин, повторения происшествий с аналогичными причинами и/или снижению тяжести последствий; проведении оценки результативности деятельности подразделений Компании и РОКС НН, входящих в перечень оперативного учета и отчетности Группы компаний «Норильский никель» в области промышленной безопасности и охраны труда. - -2. Список источников: -* Документ: [1] -Название документа: КОРПОРАТИВНАЯ ИНТЕГРАЦИОННАЯ СИСТЕМА МЕНЕДЖМЕНТА УПРАВЛЕНИЕ ПРОМЫШЛЕННОЙ БЕЗОПАСНОСТЬЮ И ОХРАНОЙ ТРУДА СТАНДАРТ ОРГАНИЗАЦИИ Оповещение, регистрация, учет и внутреннее расследование происшествий в области производственной безопасности" -#### -Вывод: -1. Человек хочет получить ответ на вопрос о целях стандарта. Возможно ему нужна цитата из самого документа. Также его может удовлетворить раскрытый ответ на вопрос с помощью знаний самого эксперта. -2. Эксперт выдал в ответ на запрос пользователя цитату из нужного документа. Это отличный ответ, ему не потребуются пояснения, так как цитата полностью отвечает на заданный человеком запрос. Эксперт рассуждал так, что если на вопрос можно ответить цитатой из документа, то дополнительные пояснения не нужны. -3. Студент также выписал информацию из нужного источника с прямым ответом на вопрос. Студент рассуждал так, что если на вопрос можно ответить информацией из источника, то больше добавлять ничего не нужно. Кроме того он подписал название нужного источника, молодец. Видно хочет получить пятёрку. -4. Ответ студента отвечает на запрос. Его логика совпадает с логикой и содержанием эксперта. + потому что студент дал полное название документа, из которого он взял эту информацию. -Оценка - [5+] -#### -Далее будет настоящий запрос -#### -Запрос: "{{ВОПРОС ПОЛЬЗОВАТЕЛЯ}}" -Ответ юридического эксперта: "{{ОТВЕТ ЮРИДИЧЕСКОГО ЭКСПЕРТА}}" -Ответ студента: "{{ОТВЕТ СТУДЕНТА}}" -#### -Вывод:`,qa=`Реальный ответ эксперта: {{ПРОШЛЫЙ ОТВЕТ}} -Реальные уточнения пользователя: {{УТОЧНЕНИЯ}} -Реальный запрос пользователя: {{ВОПРОС}} -Реальные юридические источники: {{ИСТОЧНИКИ}} -#### -Вывод:`,Xa=(t,e,r)=>(r||Ka).replace("{{ВОПРОС}}",t).replace("{{ИСТОЧНИКИ}}",e),Ya=(t,e,r,a,l)=>(l||qa).replace("{{ВОПРОС}}",t).replace("{{ИСТОЧНИКИ}}",e).replace("{{ПРОШЛЫЙ ОТВЕТ}}",r).replace("{{УТОЧНЕНИЯ}}",a),Za=(t,e,r)=>Va.replace("{{ВОПРОС ПОЛЬЗОВАТЕЛЯ}}",t).replace("{{ОТВЕТ ЮРИДИЧЕСКОГО ЭКСПЕРТА}}",e).replace("{{ОТВЕТ СТУДЕНТА}}",r),Qa=async(t,e,r,a)=>{const u=await fetch("/llm/trimbytokens",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({text:e,userRequest:r,llm:t}),signal:a.signal});if(!u.ok)throw new Error(`Failed to make /llm/trimbytokens: ${u.statusText}`);return await u.json()},ks=async(t,e,r,a,l,u,o,i)=>{let c="",w={llm:t,userprompt:e,requestType:r,systemPrompt:i};o!=null&&(w.predictParams=o);const y=await fetch("/llm",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(w),signal:a.signal});try{if(a.signal.aborted)return console.log("Request was cancelled."),"";if(!y.body)return console.log("Response has no body"),"";const x=y.body.pipeThrough(new TextDecoderStream).getReader();let _=!0;for(typeof l=="function"&&l("Генерируем ответ на основе результатов поиска");_;){const{value:p,done:T}=await x.read();if(T){_=!1;break}p&&(c+=p,typeof u=="function"&&(c.indexOf("%%")>-1&&(c=c.substring(c.indexOf("%%")+2)),c=c.replaceAll("####",""),u(c)))}}catch(x){x.name==="AbortError"?console.log("Fetch was aborted during reading."):console.error("Error during reading:",x)}return u===null&&(c.indexOf("%%")>-1&&(c=c.substring(c.indexOf("%%")+2)),c=c.replaceAll("####","")),c=c.trim(),c},Ja=(t,e,r)=>{let a=t.map(({title:l,text:u,text_for_llm:o},i)=>`${l}: -(${o||u})`).join(` -\\ -`);return e&&(a+=(e||[]).map(({title:l,text:u})=>`${l} -${u}`).join(` -\\ -`)),a},$a=async(t,e,r,a,l,u,o,i=void 0,c)=>{let w=e,y="",x="";do y="",w=e.replace("{{RETRY_FILLER}}",x),y=await ks(t,w,r,l,u,o,i),x+=".",--a;while(c&&!y.includes(c)&&a>0);return y},eo=t=>{const e=t.indexOf("Выбор источников:"),r=t.indexOf("Ответ на запрос:");if(e===-1||r===-1)return t;const a=r,l=t.indexOf("Конец ответа",r),u=t.substring(e,a),o=t.substring(r,l);return t.substring(0,Math.min(e,r))+` -`+o+` -`+u+` - -Конец ответа.`},to=async(t,e,r,a)=>{try{const l=await fetch(t,{method:"POST",body:JSON.stringify(e),headers:{"Content-Type":"application/json"},signal:a.signal});if(!l.ok)throw new Error(`${r}: ${l.statusText}`);return l.json()}catch(l){return console.error(r,l.message),null}},$t={buildLlmResponsePrompt:Xa,buildClarificationPrompt:Ya,buildResponseEvaluationPrompt:Za,sendRequest:ks,convertSearchResultsToLlmSources:Ja,doRequest:$a,postProcessLlmAnswer:eo,sendTrimByTokens:Qa,fetchHealthStatus:to};var ro=Object.defineProperty,no=Object.defineProperties,io=Object.getOwnPropertyDescriptors,mi=Object.getOwnPropertySymbols,so=Object.prototype.hasOwnProperty,ao=Object.prototype.propertyIsEnumerable,Pn=(t,e,r)=>e in t?ro(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Ee=(t,e)=>{for(var r in e||(e={}))so.call(e,r)&&Pn(t,r,e[r]);if(mi)for(var r of mi(e))ao.call(e,r)&&Pn(t,r,e[r]);return t},sr=(t,e)=>no(t,io(e)),ie=(t,e,r)=>(Pn(t,typeof e!="symbol"?e+"":e,r),r),lr=(t,e,r)=>new Promise((a,l)=>{var u=c=>{try{i(r.next(c))}catch(w){l(w)}},o=c=>{try{i(r.throw(c))}catch(w){l(w)}},i=c=>c.done?a(c.value):Promise.resolve(c.value).then(u,o);i((r=r.apply(t,e)).next())});class Tr{constructor(e){ie(this,"rootKey"),this.rootKey=e}}const oo=Object.seal({});class se extends Tr{constructor(e){super(e),ie(this,"root"),this.root=new Array}prepForXml(e){var r;e.stack.push(this);const a=this.root.map(l=>l instanceof Tr?l.prepForXml(e):l).filter(l=>l!==void 0);return e.stack.pop(),{[this.rootKey]:a.length?a.length===1&&((r=a[0])!=null&&r._attr)?a[0]:a:oo}}addChildElement(e){return this.root.push(e),this}}class kr extends se{prepForXml(e){const r=super.prepForXml(e);if(r&&(typeof r[this.rootKey]!="object"||Object.keys(r[this.rootKey]).length))return r}}class ge extends Tr{constructor(e){super("_attr"),ie(this,"xmlKeys"),this.root=e}prepForXml(e){const r={};return Object.keys(this.root).forEach(a=>{const l=this.root[a];if(l!==void 0){const u=this.xmlKeys&&this.xmlKeys[a]||a;r[u]=l}}),{_attr:r}}}class ar extends Tr{constructor(e){super("_attr"),this.root=e}prepForXml(e){return{_attr:Object.values(this.root).filter(({value:a})=>a!==void 0).reduce((a,{key:l,value:u})=>sr(Ee({},a),{[l]:u}),{})}}}class Ce extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{val:"w:val",color:"w:color",fill:"w:fill",space:"w:space",sz:"w:sz",type:"w:type",rsidR:"w:rsidR",rsidRPr:"w:rsidRPr",rsidSect:"w:rsidSect",w:"w:w",h:"w:h",top:"w:top",right:"w:right",bottom:"w:bottom",left:"w:left",header:"w:header",footer:"w:footer",gutter:"w:gutter",linePitch:"w:linePitch",pos:"w:pos"})}}var ht=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ns(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Os={},Vn={exports:{}},Mt=typeof Reflect=="object"?Reflect:null,gi=Mt&&typeof Mt.apply=="function"?Mt.apply:function(e,r,a){return Function.prototype.apply.call(e,r,a)},vr;Mt&&typeof Mt.ownKeys=="function"?vr=Mt.ownKeys:Object.getOwnPropertySymbols?vr=function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:vr=function(e){return Object.getOwnPropertyNames(e)};function uo(t){console&&console.warn&&console.warn(t)}var Cs=Number.isNaN||function(e){return e!==e};function Ae(){Ae.init.call(this)}Vn.exports=Ae;Vn.exports.once=ho;Ae.EventEmitter=Ae;Ae.prototype._events=void 0;Ae.prototype._eventsCount=0;Ae.prototype._maxListeners=void 0;var wi=10;function Nr(t){if(typeof t!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}Object.defineProperty(Ae,"defaultMaxListeners",{enumerable:!0,get:function(){return wi},set:function(t){if(typeof t!="number"||t<0||Cs(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");wi=t}});Ae.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};Ae.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||Cs(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this};function Ds(t){return t._maxListeners===void 0?Ae.defaultMaxListeners:t._maxListeners}Ae.prototype.getMaxListeners=function(){return Ds(this)};Ae.prototype.emit=function(e){for(var r=[],a=1;a0&&(o=r[0]),o instanceof Error)throw o;var i=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw i.context=o,i}var c=u[e];if(c===void 0)return!1;if(typeof c=="function")gi(c,this,r);else for(var w=c.length,y=Ms(c,w),a=0;a0&&o.length>l&&!o.warned){o.warned=!0;var i=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");i.name="MaxListenersExceededWarning",i.emitter=t,i.type=e,i.count=o.length,uo(i)}return t}Ae.prototype.addListener=function(e,r){return Ps(this,e,r,!1)};Ae.prototype.on=Ae.prototype.addListener;Ae.prototype.prependListener=function(e,r){return Ps(this,e,r,!0)};function lo(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function Ls(t,e,r){var a={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},l=lo.bind(a);return l.listener=r,a.wrapFn=l,l}Ae.prototype.once=function(e,r){return Nr(r),this.on(e,Ls(this,e,r)),this};Ae.prototype.prependOnceListener=function(e,r){return Nr(r),this.prependListener(e,Ls(this,e,r)),this};Ae.prototype.removeListener=function(e,r){var a,l,u,o,i;if(Nr(r),l=this._events,l===void 0)return this;if(a=l[e],a===void 0)return this;if(a===r||a.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete l[e],l.removeListener&&this.emit("removeListener",e,a.listener||r));else if(typeof a!="function"){for(u=-1,o=a.length-1;o>=0;o--)if(a[o]===r||a[o].listener===r){i=a[o].listener,u=o;break}if(u<0)return this;u===0?a.shift():co(a,u),a.length===1&&(l[e]=a[0]),l.removeListener!==void 0&&this.emit("removeListener",e,i||r)}return this};Ae.prototype.off=Ae.prototype.removeListener;Ae.prototype.removeAllListeners=function(e){var r,a,l;if(a=this._events,a===void 0)return this;if(a.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):a[e]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete a[e]),this;if(arguments.length===0){var u=Object.keys(a),o;for(l=0;l=0;l--)this.removeListener(e,r[l]);return this};function Fs(t,e,r){var a=t._events;if(a===void 0)return[];var l=a[e];return l===void 0?[]:typeof l=="function"?r?[l.listener||l]:[l]:r?fo(l):Ms(l,l.length)}Ae.prototype.listeners=function(e){return Fs(this,e,!0)};Ae.prototype.rawListeners=function(e){return Fs(this,e,!1)};Ae.listenerCount=function(t,e){return typeof t.listenerCount=="function"?t.listenerCount(e):Bs.call(t,e)};Ae.prototype.listenerCount=Bs;function Bs(t){var e=this._events;if(e!==void 0){var r=e[t];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}Ae.prototype.eventNames=function(){return this._eventsCount>0?vr(this._events):[]};function Ms(t,e){for(var r=new Array(e),a=0;a1)for(var r=1;r0)throw new Error("Invalid string. Length must be a multiple of 4");var v=p.indexOf("=");v===-1&&(v=T);var E=v===T?0:4-v%4;return[v,E]}function i(p){var T=o(p),v=T[0],E=T[1];return(v+E)*3/4-E}function c(p,T,v){return(T+v)*3/4-v}function w(p){var T,v=o(p),E=v[0],d=v[1],S=new r(c(p,E,d)),R=0,D=d>0?E-4:E,C;for(C=0;C>16&255,S[R++]=T>>8&255,S[R++]=T&255;return d===2&&(T=e[p.charCodeAt(C)]<<2|e[p.charCodeAt(C+1)]>>4,S[R++]=T&255),d===1&&(T=e[p.charCodeAt(C)]<<10|e[p.charCodeAt(C+1)]<<4|e[p.charCodeAt(C+2)]>>2,S[R++]=T>>8&255,S[R++]=T&255),S}function y(p){return t[p>>18&63]+t[p>>12&63]+t[p>>6&63]+t[p&63]}function x(p,T,v){for(var E,d=[],S=T;SD?D:R+S));return E===1?(T=p[v-1],d.push(t[T>>2]+t[T<<4&63]+"==")):E===2&&(T=(p[v-2]<<8)+p[v-1],d.push(t[T>>10]+t[T>>4&63]+t[T<<2&63]+"=")),d.join("")}return er}var cr={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */var bi;function bo(){return bi||(bi=1,cr.read=function(t,e,r,a,l){var u,o,i=l*8-a-1,c=(1<>1,y=-7,x=r?l-1:0,_=r?-1:1,p=t[e+x];for(x+=_,u=p&(1<<-y)-1,p>>=-y,y+=i;y>0;u=u*256+t[e+x],x+=_,y-=8);for(o=u&(1<<-y)-1,u>>=-y,y+=a;y>0;o=o*256+t[e+x],x+=_,y-=8);if(u===0)u=1-w;else{if(u===c)return o?NaN:(p?-1:1)*(1/0);o=o+Math.pow(2,a),u=u-w}return(p?-1:1)*o*Math.pow(2,u-a)},cr.write=function(t,e,r,a,l,u){var o,i,c,w=u*8-l-1,y=(1<>1,_=l===23?Math.pow(2,-24)-Math.pow(2,-77):0,p=a?0:u-1,T=a?1:-1,v=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(i=isNaN(e)?1:0,o=y):(o=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-o))<1&&(o--,c*=2),o+x>=1?e+=_/c:e+=_*Math.pow(2,1-x),e*c>=2&&(o++,c/=2),o+x>=y?(i=0,o=y):o+x>=1?(i=(e*c-1)*Math.pow(2,l),o=o+x):(i=e*Math.pow(2,x-1)*Math.pow(2,l),o=0));l>=8;t[r+p]=i&255,p+=T,i/=256,l-=8);for(o=o<0;t[r+p]=o&255,p+=T,o/=256,w-=8);t[r+p-T]|=v*128}),cr}/*! - * The buffer module from node.js, for the browser. - * - * @author Feross Aboukhadijeh - * @license MIT - */var _i;function Or(){return _i||(_i=1,function(t){var e=vo(),r=bo(),a=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=i,t.SlowBuffer=S,t.INSPECT_MAX_BYTES=50;var l=2147483647;t.kMaxLength=l,i.TYPED_ARRAY_SUPPORT=u(),!i.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function u(){try{var b=new Uint8Array(1),n={foo:function(){return 42}};return Object.setPrototypeOf(n,Uint8Array.prototype),Object.setPrototypeOf(b,n),b.foo()===42}catch{return!1}}Object.defineProperty(i.prototype,"parent",{enumerable:!0,get:function(){if(i.isBuffer(this))return this.buffer}}),Object.defineProperty(i.prototype,"offset",{enumerable:!0,get:function(){if(i.isBuffer(this))return this.byteOffset}});function o(b){if(b>l)throw new RangeError('The value "'+b+'" is invalid for option "size"');var n=new Uint8Array(b);return Object.setPrototypeOf(n,i.prototype),n}function i(b,n,s){if(typeof b=="number"){if(typeof n=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return x(b)}return c(b,n,s)}i.poolSize=8192;function c(b,n,s){if(typeof b=="string")return _(b,n);if(ArrayBuffer.isView(b))return T(b);if(b==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof b);if(Q(b,ArrayBuffer)||b&&Q(b.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Q(b,SharedArrayBuffer)||b&&Q(b.buffer,SharedArrayBuffer)))return v(b,n,s);if(typeof b=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var f=b.valueOf&&b.valueOf();if(f!=null&&f!==b)return i.from(f,n,s);var P=E(b);if(P)return P;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof b[Symbol.toPrimitive]=="function")return i.from(b[Symbol.toPrimitive]("string"),n,s);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof b)}i.from=function(b,n,s){return c(b,n,s)},Object.setPrototypeOf(i.prototype,Uint8Array.prototype),Object.setPrototypeOf(i,Uint8Array);function w(b){if(typeof b!="number")throw new TypeError('"size" argument must be of type number');if(b<0)throw new RangeError('The value "'+b+'" is invalid for option "size"')}function y(b,n,s){return w(b),b<=0?o(b):n!==void 0?typeof s=="string"?o(b).fill(n,s):o(b).fill(n):o(b)}i.alloc=function(b,n,s){return y(b,n,s)};function x(b){return w(b),o(b<0?0:d(b)|0)}i.allocUnsafe=function(b){return x(b)},i.allocUnsafeSlow=function(b){return x(b)};function _(b,n){if((typeof n!="string"||n==="")&&(n="utf8"),!i.isEncoding(n))throw new TypeError("Unknown encoding: "+n);var s=R(b,n)|0,f=o(s),P=f.write(b,n);return P!==s&&(f=f.slice(0,P)),f}function p(b){for(var n=b.length<0?0:d(b.length)|0,s=o(n),f=0;f=l)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+l.toString(16)+" bytes");return b|0}function S(b){return+b!=b&&(b=0),i.alloc(+b)}i.isBuffer=function(n){return n!=null&&n._isBuffer===!0&&n!==i.prototype},i.compare=function(n,s){if(Q(n,Uint8Array)&&(n=i.from(n,n.offset,n.byteLength)),Q(s,Uint8Array)&&(s=i.from(s,s.offset,s.byteLength)),!i.isBuffer(n)||!i.isBuffer(s))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(n===s)return 0;for(var f=n.length,P=s.length,U=0,B=Math.min(f,P);UP.length?i.from(B).copy(P,U):Uint8Array.prototype.set.call(P,B,U);else if(i.isBuffer(B))B.copy(P,U);else throw new TypeError('"list" argument must be an Array of Buffers');U+=B.length}return P};function R(b,n){if(i.isBuffer(b))return b.length;if(ArrayBuffer.isView(b)||Q(b,ArrayBuffer))return b.byteLength;if(typeof b!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof b);var s=b.length,f=arguments.length>2&&arguments[2]===!0;if(!f&&s===0)return 0;for(var P=!1;;)switch(n){case"ascii":case"latin1":case"binary":return s;case"utf8":case"utf-8":return m(b).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return s*2;case"hex":return s>>>1;case"base64":return k(b).length;default:if(P)return f?-1:m(b).length;n=(""+n).toLowerCase(),P=!0}}i.byteLength=R;function D(b,n,s){var f=!1;if((n===void 0||n<0)&&(n=0),n>this.length||((s===void 0||s>this.length)&&(s=this.length),s<=0)||(s>>>=0,n>>>=0,s<=n))return"";for(b||(b="utf8");;)switch(b){case"hex":return K(this,n,s);case"utf8":case"utf-8":return A(this,n,s);case"ascii":return Y(this,n,s);case"latin1":case"binary":return de(this,n,s);case"base64":return q(this,n,s);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ce(this,n,s);default:if(f)throw new TypeError("Unknown encoding: "+b);b=(b+"").toLowerCase(),f=!0}}i.prototype._isBuffer=!0;function C(b,n,s){var f=b[n];b[n]=b[s],b[s]=f}i.prototype.swap16=function(){var n=this.length;if(n%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var s=0;ss&&(n+=" ... "),""},a&&(i.prototype[a]=i.prototype.inspect),i.prototype.compare=function(n,s,f,P,U){if(Q(n,Uint8Array)&&(n=i.from(n,n.offset,n.byteLength)),!i.isBuffer(n))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof n);if(s===void 0&&(s=0),f===void 0&&(f=n?n.length:0),P===void 0&&(P=0),U===void 0&&(U=this.length),s<0||f>n.length||P<0||U>this.length)throw new RangeError("out of range index");if(P>=U&&s>=f)return 0;if(P>=U)return-1;if(s>=f)return 1;if(s>>>=0,f>>>=0,P>>>=0,U>>>=0,this===n)return 0;for(var B=U-P,te=f-s,ae=Math.min(B,te),ne=this.slice(P,U),fe=n.slice(s,f),pe=0;pe2147483647?s=2147483647:s<-2147483648&&(s=-2147483648),s=+s,h(s)&&(s=P?0:b.length-1),s<0&&(s=b.length+s),s>=b.length){if(P)return-1;s=b.length-1}else if(s<0)if(P)s=0;else return-1;if(typeof n=="string"&&(n=i.from(n,f)),i.isBuffer(n))return n.length===0?-1:H(b,n,s,f,P);if(typeof n=="number")return n=n&255,typeof Uint8Array.prototype.indexOf=="function"?P?Uint8Array.prototype.indexOf.call(b,n,s):Uint8Array.prototype.lastIndexOf.call(b,n,s):H(b,[n],s,f,P);throw new TypeError("val must be string, number or Buffer")}function H(b,n,s,f,P){var U=1,B=b.length,te=n.length;if(f!==void 0&&(f=String(f).toLowerCase(),f==="ucs2"||f==="ucs-2"||f==="utf16le"||f==="utf-16le")){if(b.length<2||n.length<2)return-1;U=2,B/=2,te/=2,s/=2}function ae(Be,ot){return U===1?Be[ot]:Be.readUInt16BE(ot*U)}var ne;if(P){var fe=-1;for(ne=s;neB&&(s=B-te),ne=s;ne>=0;ne--){for(var pe=!0,me=0;meP&&(f=P)):f=P;var U=n.length;f>U/2&&(f=U/2);for(var B=0;B>>0,isFinite(f)?(f=f>>>0,P===void 0&&(P="utf8")):(P=f,f=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var U=this.length-s;if((f===void 0||f>U)&&(f=U),n.length>0&&(f<0||s<0)||s>this.length)throw new RangeError("Attempt to write outside buffer bounds");P||(P="utf8");for(var B=!1;;)switch(P){case"hex":return J(this,n,s,f);case"utf8":case"utf-8":return I(this,n,s,f);case"ascii":case"latin1":case"binary":return re(this,n,s,f);case"base64":return ue(this,n,s,f);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,n,s,f);default:if(B)throw new TypeError("Unknown encoding: "+P);P=(""+P).toLowerCase(),B=!0}},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function q(b,n,s){return n===0&&s===b.length?e.fromByteArray(b):e.fromByteArray(b.slice(n,s))}function A(b,n,s){s=Math.min(b.length,s);for(var f=[],P=n;P239?4:U>223?3:U>191?2:1;if(P+te<=s){var ae,ne,fe,pe;switch(te){case 1:U<128&&(B=U);break;case 2:ae=b[P+1],(ae&192)===128&&(pe=(U&31)<<6|ae&63,pe>127&&(B=pe));break;case 3:ae=b[P+1],ne=b[P+2],(ae&192)===128&&(ne&192)===128&&(pe=(U&15)<<12|(ae&63)<<6|ne&63,pe>2047&&(pe<55296||pe>57343)&&(B=pe));break;case 4:ae=b[P+1],ne=b[P+2],fe=b[P+3],(ae&192)===128&&(ne&192)===128&&(fe&192)===128&&(pe=(U&15)<<18|(ae&63)<<12|(ne&63)<<6|fe&63,pe>65535&&pe<1114112&&(B=pe))}}B===null?(B=65533,te=1):B>65535&&(B-=65536,f.push(B>>>10&1023|55296),B=56320|B&1023),f.push(B),P+=te}return le(f)}var Z=4096;function le(b){var n=b.length;if(n<=Z)return String.fromCharCode.apply(String,b);for(var s="",f=0;ff)&&(s=f);for(var P="",U=n;Uf&&(n=f),s<0?(s+=f,s<0&&(s=0)):s>f&&(s=f),ss)throw new RangeError("Trying to access beyond buffer length")}i.prototype.readUintLE=i.prototype.readUIntLE=function(n,s,f){n=n>>>0,s=s>>>0,f||G(n,s,this.length);for(var P=this[n],U=1,B=0;++B>>0,s=s>>>0,f||G(n,s,this.length);for(var P=this[n+--s],U=1;s>0&&(U*=256);)P+=this[n+--s]*U;return P},i.prototype.readUint8=i.prototype.readUInt8=function(n,s){return n=n>>>0,s||G(n,1,this.length),this[n]},i.prototype.readUint16LE=i.prototype.readUInt16LE=function(n,s){return n=n>>>0,s||G(n,2,this.length),this[n]|this[n+1]<<8},i.prototype.readUint16BE=i.prototype.readUInt16BE=function(n,s){return n=n>>>0,s||G(n,2,this.length),this[n]<<8|this[n+1]},i.prototype.readUint32LE=i.prototype.readUInt32LE=function(n,s){return n=n>>>0,s||G(n,4,this.length),(this[n]|this[n+1]<<8|this[n+2]<<16)+this[n+3]*16777216},i.prototype.readUint32BE=i.prototype.readUInt32BE=function(n,s){return n=n>>>0,s||G(n,4,this.length),this[n]*16777216+(this[n+1]<<16|this[n+2]<<8|this[n+3])},i.prototype.readIntLE=function(n,s,f){n=n>>>0,s=s>>>0,f||G(n,s,this.length);for(var P=this[n],U=1,B=0;++B=U&&(P-=Math.pow(2,8*s)),P},i.prototype.readIntBE=function(n,s,f){n=n>>>0,s=s>>>0,f||G(n,s,this.length);for(var P=s,U=1,B=this[n+--P];P>0&&(U*=256);)B+=this[n+--P]*U;return U*=128,B>=U&&(B-=Math.pow(2,8*s)),B},i.prototype.readInt8=function(n,s){return n=n>>>0,s||G(n,1,this.length),this[n]&128?(255-this[n]+1)*-1:this[n]},i.prototype.readInt16LE=function(n,s){n=n>>>0,s||G(n,2,this.length);var f=this[n]|this[n+1]<<8;return f&32768?f|4294901760:f},i.prototype.readInt16BE=function(n,s){n=n>>>0,s||G(n,2,this.length);var f=this[n+1]|this[n]<<8;return f&32768?f|4294901760:f},i.prototype.readInt32LE=function(n,s){return n=n>>>0,s||G(n,4,this.length),this[n]|this[n+1]<<8|this[n+2]<<16|this[n+3]<<24},i.prototype.readInt32BE=function(n,s){return n=n>>>0,s||G(n,4,this.length),this[n]<<24|this[n+1]<<16|this[n+2]<<8|this[n+3]},i.prototype.readFloatLE=function(n,s){return n=n>>>0,s||G(n,4,this.length),r.read(this,n,!0,23,4)},i.prototype.readFloatBE=function(n,s){return n=n>>>0,s||G(n,4,this.length),r.read(this,n,!1,23,4)},i.prototype.readDoubleLE=function(n,s){return n=n>>>0,s||G(n,8,this.length),r.read(this,n,!0,52,8)},i.prototype.readDoubleBE=function(n,s){return n=n>>>0,s||G(n,8,this.length),r.read(this,n,!1,52,8)};function N(b,n,s,f,P,U){if(!i.isBuffer(b))throw new TypeError('"buffer" argument must be a Buffer instance');if(n>P||nb.length)throw new RangeError("Index out of range")}i.prototype.writeUintLE=i.prototype.writeUIntLE=function(n,s,f,P){if(n=+n,s=s>>>0,f=f>>>0,!P){var U=Math.pow(2,8*f)-1;N(this,n,s,f,U,0)}var B=1,te=0;for(this[s]=n&255;++te>>0,f=f>>>0,!P){var U=Math.pow(2,8*f)-1;N(this,n,s,f,U,0)}var B=f-1,te=1;for(this[s+B]=n&255;--B>=0&&(te*=256);)this[s+B]=n/te&255;return s+f},i.prototype.writeUint8=i.prototype.writeUInt8=function(n,s,f){return n=+n,s=s>>>0,f||N(this,n,s,1,255,0),this[s]=n&255,s+1},i.prototype.writeUint16LE=i.prototype.writeUInt16LE=function(n,s,f){return n=+n,s=s>>>0,f||N(this,n,s,2,65535,0),this[s]=n&255,this[s+1]=n>>>8,s+2},i.prototype.writeUint16BE=i.prototype.writeUInt16BE=function(n,s,f){return n=+n,s=s>>>0,f||N(this,n,s,2,65535,0),this[s]=n>>>8,this[s+1]=n&255,s+2},i.prototype.writeUint32LE=i.prototype.writeUInt32LE=function(n,s,f){return n=+n,s=s>>>0,f||N(this,n,s,4,4294967295,0),this[s+3]=n>>>24,this[s+2]=n>>>16,this[s+1]=n>>>8,this[s]=n&255,s+4},i.prototype.writeUint32BE=i.prototype.writeUInt32BE=function(n,s,f){return n=+n,s=s>>>0,f||N(this,n,s,4,4294967295,0),this[s]=n>>>24,this[s+1]=n>>>16,this[s+2]=n>>>8,this[s+3]=n&255,s+4},i.prototype.writeIntLE=function(n,s,f,P){if(n=+n,s=s>>>0,!P){var U=Math.pow(2,8*f-1);N(this,n,s,f,U-1,-U)}var B=0,te=1,ae=0;for(this[s]=n&255;++B>0)-ae&255;return s+f},i.prototype.writeIntBE=function(n,s,f,P){if(n=+n,s=s>>>0,!P){var U=Math.pow(2,8*f-1);N(this,n,s,f,U-1,-U)}var B=f-1,te=1,ae=0;for(this[s+B]=n&255;--B>=0&&(te*=256);)n<0&&ae===0&&this[s+B+1]!==0&&(ae=1),this[s+B]=(n/te>>0)-ae&255;return s+f},i.prototype.writeInt8=function(n,s,f){return n=+n,s=s>>>0,f||N(this,n,s,1,127,-128),n<0&&(n=255+n+1),this[s]=n&255,s+1},i.prototype.writeInt16LE=function(n,s,f){return n=+n,s=s>>>0,f||N(this,n,s,2,32767,-32768),this[s]=n&255,this[s+1]=n>>>8,s+2},i.prototype.writeInt16BE=function(n,s,f){return n=+n,s=s>>>0,f||N(this,n,s,2,32767,-32768),this[s]=n>>>8,this[s+1]=n&255,s+2},i.prototype.writeInt32LE=function(n,s,f){return n=+n,s=s>>>0,f||N(this,n,s,4,2147483647,-2147483648),this[s]=n&255,this[s+1]=n>>>8,this[s+2]=n>>>16,this[s+3]=n>>>24,s+4},i.prototype.writeInt32BE=function(n,s,f){return n=+n,s=s>>>0,f||N(this,n,s,4,2147483647,-2147483648),n<0&&(n=4294967295+n+1),this[s]=n>>>24,this[s+1]=n>>>16,this[s+2]=n>>>8,this[s+3]=n&255,s+4};function W(b,n,s,f,P,U){if(s+f>b.length)throw new RangeError("Index out of range");if(s<0)throw new RangeError("Index out of range")}function z(b,n,s,f,P){return n=+n,s=s>>>0,P||W(b,n,s,4),r.write(b,n,s,f,23,4),s+4}i.prototype.writeFloatLE=function(n,s,f){return z(this,n,s,!0,f)},i.prototype.writeFloatBE=function(n,s,f){return z(this,n,s,!1,f)};function $(b,n,s,f,P){return n=+n,s=s>>>0,P||W(b,n,s,8),r.write(b,n,s,f,52,8),s+8}i.prototype.writeDoubleLE=function(n,s,f){return $(this,n,s,!0,f)},i.prototype.writeDoubleBE=function(n,s,f){return $(this,n,s,!1,f)},i.prototype.copy=function(n,s,f,P){if(!i.isBuffer(n))throw new TypeError("argument should be a Buffer");if(f||(f=0),!P&&P!==0&&(P=this.length),s>=n.length&&(s=n.length),s||(s=0),P>0&&P=this.length)throw new RangeError("Index out of range");if(P<0)throw new RangeError("sourceEnd out of bounds");P>this.length&&(P=this.length),n.length-s>>0,f=f===void 0?this.length:f>>>0,n||(n=0);var B;if(typeof n=="number")for(B=s;B55295&&s<57344){if(!P){if(s>56319){(n-=3)>-1&&U.push(239,191,189);continue}else if(B+1===f){(n-=3)>-1&&U.push(239,191,189);continue}P=s;continue}if(s<56320){(n-=3)>-1&&U.push(239,191,189),P=s;continue}s=(P-55296<<10|s-56320)+65536}else P&&(n-=3)>-1&&U.push(239,191,189);if(P=null,s<128){if((n-=1)<0)break;U.push(s)}else if(s<2048){if((n-=2)<0)break;U.push(s>>6|192,s&63|128)}else if(s<65536){if((n-=3)<0)break;U.push(s>>12|224,s>>6&63|128,s&63|128)}else if(s<1114112){if((n-=4)<0)break;U.push(s>>18|240,s>>12&63|128,s>>6&63|128,s&63|128)}else throw new Error("Invalid code point")}return U}function M(b){for(var n=[],s=0;s>8,P=s%256,U.push(P),U.push(f);return U}function k(b){return e.toByteArray(g(b))}function O(b,n,s,f){for(var P=0;P=n.length||P>=b.length);++P)n[P+s]=b[P];return P}function Q(b,n){return b instanceof n||b!=null&&b.constructor!=null&&b.constructor.name!=null&&b.constructor.name===n.name}function h(b){return b!==b}var X=function(){for(var b="0123456789abcdef",n=new Array(256),s=0;s<16;++s)for(var f=s*16,P=0;P<16;++P)n[f+P]=b[s]+b[P];return n}()}(zr)),zr}var Hr={},Gr={},Kr,Ei;function Ks(){return Ei||(Ei=1,Kr=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},r=Symbol("test"),a=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(a)!=="[object Symbol]")return!1;var l=42;e[r]=l;for(r in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var u=Object.getOwnPropertySymbols(e);if(u.length!==1||u[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(e,r);if(o.value!==l||o.enumerable!==!0)return!1}return!0}),Kr}var Vr,Ti;function Xn(){if(Ti)return Vr;Ti=1;var t=Ks();return Vr=function(){return t()&&!!Symbol.toStringTag},Vr}var qr,xi;function _o(){if(xi)return qr;xi=1;var t=typeof Symbol<"u"&&Symbol,e=Ks();return qr=function(){return typeof t!="function"||typeof Symbol!="function"||typeof t("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},qr}var Xr,Si;function Eo(){if(Si)return Xr;Si=1;var t={foo:{}},e=Object;return Xr=function(){return{__proto__:t}.foo===t.foo&&!({__proto__:null}instanceof e)},Xr}var Yr,Ai;function To(){if(Ai)return Yr;Ai=1;var t="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,r=Math.max,a="[object Function]",l=function(c,w){for(var y=[],x=0;x"u"||!y?t:y(Uint8Array),p={"%AggregateError%":typeof AggregateError>"u"?t:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?t:ArrayBuffer,"%ArrayIteratorPrototype%":c&&y?y([][Symbol.iterator]()):t,"%AsyncFromSyncIteratorPrototype%":t,"%AsyncFunction%":x,"%AsyncGenerator%":x,"%AsyncGeneratorFunction%":x,"%AsyncIteratorPrototype%":x,"%Atomics%":typeof Atomics>"u"?t:Atomics,"%BigInt%":typeof BigInt>"u"?t:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?t:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?t:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?t:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?t:Float32Array,"%Float64Array%":typeof Float64Array>"u"?t:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?t:FinalizationRegistry,"%Function%":r,"%GeneratorFunction%":x,"%Int8Array%":typeof Int8Array>"u"?t:Int8Array,"%Int16Array%":typeof Int16Array>"u"?t:Int16Array,"%Int32Array%":typeof Int32Array>"u"?t:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":c&&y?y(y([][Symbol.iterator]())):t,"%JSON%":typeof JSON=="object"?JSON:t,"%Map%":typeof Map>"u"?t:Map,"%MapIteratorPrototype%":typeof Map>"u"||!c||!y?t:y(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?t:Promise,"%Proxy%":typeof Proxy>"u"?t:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?t:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?t:Set,"%SetIteratorPrototype%":typeof Set>"u"||!c||!y?t:y(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?t:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":c&&y?y(""[Symbol.iterator]()):t,"%Symbol%":c?Symbol:t,"%SyntaxError%":e,"%ThrowTypeError%":i,"%TypedArray%":_,"%TypeError%":a,"%Uint8Array%":typeof Uint8Array>"u"?t:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?t:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?t:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?t:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?t:WeakMap,"%WeakRef%":typeof WeakRef>"u"?t:WeakRef,"%WeakSet%":typeof WeakSet>"u"?t:WeakSet};if(y)try{null.error}catch(L){var T=y(y(L));p["%Error.prototype%"]=T}var v=function L(q){var A;if(q==="%AsyncFunction%")A=l("async function () {}");else if(q==="%GeneratorFunction%")A=l("function* () {}");else if(q==="%AsyncGeneratorFunction%")A=l("async function* () {}");else if(q==="%AsyncGenerator%"){var Z=L("%AsyncGeneratorFunction%");Z&&(A=Z.prototype)}else if(q==="%AsyncIteratorPrototype%"){var le=L("%AsyncGenerator%");le&&y&&(A=y(le.prototype))}return p[q]=A,A},E={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},d=Yn(),S=xo(),R=d.call(Function.call,Array.prototype.concat),D=d.call(Function.apply,Array.prototype.splice),C=d.call(Function.call,String.prototype.replace),V=d.call(Function.call,String.prototype.slice),H=d.call(Function.call,RegExp.prototype.exec),J=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,I=/\\(\\)?/g,re=function(q){var A=V(q,0,1),Z=V(q,-1);if(A==="%"&&Z!=="%")throw new e("invalid intrinsic syntax, expected closing `%`");if(Z==="%"&&A!=="%")throw new e("invalid intrinsic syntax, expected opening `%`");var le=[];return C(q,J,function(Y,de,K,ce){le[le.length]=K?C(ce,I,"$1"):de||Y}),le},ue=function(q,A){var Z=q,le;if(S(E,Z)&&(le=E[Z],Z="%"+le[0]+"%"),S(p,Z)){var Y=p[Z];if(Y===x&&(Y=v(Z)),typeof Y>"u"&&!A)throw new a("intrinsic "+q+" exists, but is not available. Please file an issue!");return{alias:le,name:Z,value:Y}}throw new e("intrinsic "+q+" does not exist!")};return Jr=function(q,A){if(typeof q!="string"||q.length===0)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof A!="boolean")throw new a('"allowMissing" argument must be a boolean');if(H(/^%?[^%]*%?$/,q)===null)throw new e("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Z=re(q),le=Z.length>0?Z[0]:"",Y=ue("%"+le+"%",A),de=Y.name,K=Y.value,ce=!1,G=Y.alias;G&&(le=G[0],D(Z,R([0,1],G)));for(var N=1,W=!0;N=Z.length){var g=u(K,z);W=!!g,W&&"get"in g&&!("originalValue"in g.get)?K=g.get:K=K[z]}else W=S(K,z),K=K[z];W&&!ce&&(p[de]=K)}}return K},Jr}var $r={exports:{}},en,Ni;function Vs(){if(Ni)return en;Ni=1;var t=Xt(),e=t("%Object.defineProperty%",!0),r=function(){if(e)try{return e({},"a",{value:1}),!0}catch{return!1}return!1};return r.hasArrayLengthDefineBug=function(){if(!r())return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},en=r,en}var tn,Oi;function Zn(){if(Oi)return tn;Oi=1;var t=Xt(),e=t("%Object.getOwnPropertyDescriptor%",!0);if(e)try{e([],"length")}catch{e=null}return tn=e,tn}var rn,Ci;function So(){if(Ci)return rn;Ci=1;var t=Vs()(),e=Xt(),r=t&&e("%Object.defineProperty%",!0);if(r)try{r({},"a",{value:1})}catch{r=!1}var a=e("%SyntaxError%"),l=e("%TypeError%"),u=Zn();return rn=function(i,c,w){if(!i||typeof i!="object"&&typeof i!="function")throw new l("`obj` must be an object or a function`");if(typeof c!="string"&&typeof c!="symbol")throw new l("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new l("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new l("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new l("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new l("`loose`, if provided, must be a boolean");var y=arguments.length>3?arguments[3]:null,x=arguments.length>4?arguments[4]:null,_=arguments.length>5?arguments[5]:null,p=arguments.length>6?arguments[6]:!1,T=!!u&&u(i,c);if(r)r(i,c,{configurable:_===null&&T?T.configurable:!_,enumerable:y===null&&T?T.enumerable:!y,value:w,writable:x===null&&T?T.writable:!x});else if(p||!y&&!x&&!_)i[c]=w;else throw new a("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},rn}var nn,Di;function Ao(){if(Di)return nn;Di=1;var t=Xt(),e=So(),r=Vs()(),a=Zn(),l=t("%TypeError%"),u=t("%Math.floor%");return nn=function(i,c){if(typeof i!="function")throw new l("`fn` is not a function");if(typeof c!="number"||c<0||c>4294967295||u(c)!==c)throw new l("`length` must be a positive 32-bit integer");var w=arguments.length>2&&!!arguments[2],y=!0,x=!0;if("length"in i&&a){var _=a(i,"length");_&&!_.configurable&&(y=!1),_&&!_.writable&&(x=!1)}return(y||x||!w)&&(r?e(i,"length",c,!0,!0):e(i,"length",c)),i},nn}var Pi;function qs(){return Pi||(Pi=1,function(t){var e=Yn(),r=Xt(),a=Ao(),l=r("%TypeError%"),u=r("%Function.prototype.apply%"),o=r("%Function.prototype.call%"),i=r("%Reflect.apply%",!0)||e.call(o,u),c=r("%Object.defineProperty%",!0),w=r("%Math.max%");if(c)try{c({},"a",{value:1})}catch{c=null}t.exports=function(_){if(typeof _!="function")throw new l("a function is required");var p=i(e,o,arguments);return a(p,1+w(0,_.length-(arguments.length-1)),!0)};var y=function(){return i(e,u,arguments)};c?c(t.exports,"apply",{value:y}):t.exports.apply=y}($r)),$r.exports}var sn,Li;function Xs(){if(Li)return sn;Li=1;var t=Xt(),e=qs(),r=e(t("String.prototype.indexOf"));return sn=function(l,u){var o=t(l,!!u);return typeof o=="function"&&r(l,".prototype.")>-1?e(o):o},sn}var an,Fi;function Ro(){if(Fi)return an;Fi=1;var t=Xn()(),e=Xs(),r=e("Object.prototype.toString"),a=function(i){return t&&i&&typeof i=="object"&&Symbol.toStringTag in i?!1:r(i)==="[object Arguments]"},l=function(i){return a(i)?!0:i!==null&&typeof i=="object"&&typeof i.length=="number"&&i.length>=0&&r(i)!=="[object Array]"&&r(i.callee)==="[object Function]"},u=function(){return a(arguments)}();return a.isLegacyArguments=l,an=u?a:l,an}var on,Bi;function Io(){if(Bi)return on;Bi=1;var t=Object.prototype.toString,e=Function.prototype.toString,r=/^\s*(?:function)?\*/,a=Xn()(),l=Object.getPrototypeOf,u=function(){if(!a)return!1;try{return Function("return function*() {}")()}catch{}},o;return on=function(c){if(typeof c!="function")return!1;if(r.test(e.call(c)))return!0;if(!a){var w=t.call(c);return w==="[object GeneratorFunction]"}if(!l)return!1;if(typeof o>"u"){var y=u();o=y?l(y):!1}return l(c)===o},on}var un,Mi;function ko(){if(Mi)return un;Mi=1;var t=Function.prototype.toString,e=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,r,a;if(typeof e=="function"&&typeof Object.defineProperty=="function")try{r=Object.defineProperty({},"length",{get:function(){throw a}}),a={},e(function(){throw 42},null,r)}catch(S){S!==a&&(e=null)}else e=null;var l=/^\s*class\b/,u=function(R){try{var D=t.call(R);return l.test(D)}catch{return!1}},o=function(R){try{return u(R)?!1:(t.call(R),!0)}catch{return!1}},i=Object.prototype.toString,c="[object Object]",w="[object Function]",y="[object GeneratorFunction]",x="[object HTMLAllCollection]",_="[object HTML document.all class]",p="[object HTMLCollection]",T=typeof Symbol=="function"&&!!Symbol.toStringTag,v=!(0 in[,]),E=function(){return!1};if(typeof document=="object"){var d=document.all;i.call(d)===i.call(document.all)&&(E=function(R){if((v||!R)&&(typeof R>"u"||typeof R=="object"))try{var D=i.call(R);return(D===x||D===_||D===p||D===c)&&R("")==null}catch{}return!1})}return un=e?function(R){if(E(R))return!0;if(!R||typeof R!="function"&&typeof R!="object")return!1;try{e(R,null,r)}catch(D){if(D!==a)return!1}return!u(R)&&o(R)}:function(R){if(E(R))return!0;if(!R||typeof R!="function"&&typeof R!="object")return!1;if(T)return o(R);if(u(R))return!1;var D=i.call(R);return D!==w&&D!==y&&!/^\[object HTML/.test(D)?!1:o(R)},un}var ln,Ui;function No(){if(Ui)return ln;Ui=1;var t=ko(),e=Object.prototype.toString,r=Object.prototype.hasOwnProperty,a=function(c,w,y){for(var x=0,_=c.length;x<_;x++)r.call(c,x)&&(y==null?w(c[x],x,c):w.call(y,c[x],x,c))},l=function(c,w,y){for(var x=0,_=c.length;x<_;x++)y==null?w(c.charAt(x),x,c):w.call(y,c.charAt(x),x,c)},u=function(c,w,y){for(var x in c)r.call(c,x)&&(y==null?w(c[x],x,c):w.call(y,c[x],x,c))},o=function(c,w,y){if(!t(w))throw new TypeError("iterator must be a function");var x;arguments.length>=3&&(x=y),e.call(c)==="[object Array]"?a(c,w,x):typeof c=="string"?l(c,w,x):u(c,w,x)};return ln=o,ln}var cn,ji;function Oo(){if(ji)return cn;ji=1;var t=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],e=typeof globalThis>"u"?ht:globalThis;return cn=function(){for(var a=[],l=0;l"u"?ht:globalThis,c=e(),w=a("String.prototype.slice"),y=Object.getPrototypeOf,x=a("Array.prototype.indexOf",!0)||function(E,d){for(var S=0;S-1?d:d!=="Object"?!1:T(E)}return l?p(E):null},fn}var hn,zi;function Co(){if(zi)return hn;zi=1;var t=Ys();return hn=function(r){return!!t(r)},hn}var Hi;function Do(){return Hi||(Hi=1,function(t){var e=Ro(),r=Io(),a=Ys(),l=Co();function u(f){return f.call.bind(f)}var o=typeof BigInt<"u",i=typeof Symbol<"u",c=u(Object.prototype.toString),w=u(Number.prototype.valueOf),y=u(String.prototype.valueOf),x=u(Boolean.prototype.valueOf);if(o)var _=u(BigInt.prototype.valueOf);if(i)var p=u(Symbol.prototype.valueOf);function T(f,P){if(typeof f!="object")return!1;try{return P(f),!0}catch{return!1}}t.isArgumentsObject=e,t.isGeneratorFunction=r,t.isTypedArray=l;function v(f){return typeof Promise<"u"&&f instanceof Promise||f!==null&&typeof f=="object"&&typeof f.then=="function"&&typeof f.catch=="function"}t.isPromise=v;function E(f){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(f):l(f)||W(f)}t.isArrayBufferView=E;function d(f){return a(f)==="Uint8Array"}t.isUint8Array=d;function S(f){return a(f)==="Uint8ClampedArray"}t.isUint8ClampedArray=S;function R(f){return a(f)==="Uint16Array"}t.isUint16Array=R;function D(f){return a(f)==="Uint32Array"}t.isUint32Array=D;function C(f){return a(f)==="Int8Array"}t.isInt8Array=C;function V(f){return a(f)==="Int16Array"}t.isInt16Array=V;function H(f){return a(f)==="Int32Array"}t.isInt32Array=H;function J(f){return a(f)==="Float32Array"}t.isFloat32Array=J;function I(f){return a(f)==="Float64Array"}t.isFloat64Array=I;function re(f){return a(f)==="BigInt64Array"}t.isBigInt64Array=re;function ue(f){return a(f)==="BigUint64Array"}t.isBigUint64Array=ue;function L(f){return c(f)==="[object Map]"}L.working=typeof Map<"u"&&L(new Map);function q(f){return typeof Map>"u"?!1:L.working?L(f):f instanceof Map}t.isMap=q;function A(f){return c(f)==="[object Set]"}A.working=typeof Set<"u"&&A(new Set);function Z(f){return typeof Set>"u"?!1:A.working?A(f):f instanceof Set}t.isSet=Z;function le(f){return c(f)==="[object WeakMap]"}le.working=typeof WeakMap<"u"&&le(new WeakMap);function Y(f){return typeof WeakMap>"u"?!1:le.working?le(f):f instanceof WeakMap}t.isWeakMap=Y;function de(f){return c(f)==="[object WeakSet]"}de.working=typeof WeakSet<"u"&&de(new WeakSet);function K(f){return de(f)}t.isWeakSet=K;function ce(f){return c(f)==="[object ArrayBuffer]"}ce.working=typeof ArrayBuffer<"u"&&ce(new ArrayBuffer);function G(f){return typeof ArrayBuffer>"u"?!1:ce.working?ce(f):f instanceof ArrayBuffer}t.isArrayBuffer=G;function N(f){return c(f)==="[object DataView]"}N.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&N(new DataView(new ArrayBuffer(1),0,1));function W(f){return typeof DataView>"u"?!1:N.working?N(f):f instanceof DataView}t.isDataView=W;var z=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function $(f){return c(f)==="[object SharedArrayBuffer]"}function j(f){return typeof z>"u"?!1:(typeof $.working>"u"&&($.working=$(new z)),$.working?$(f):f instanceof z)}t.isSharedArrayBuffer=j;function g(f){return c(f)==="[object AsyncFunction]"}t.isAsyncFunction=g;function m(f){return c(f)==="[object Map Iterator]"}t.isMapIterator=m;function M(f){return c(f)==="[object Set Iterator]"}t.isSetIterator=M;function F(f){return c(f)==="[object Generator]"}t.isGeneratorObject=F;function k(f){return c(f)==="[object WebAssembly.Module]"}t.isWebAssemblyCompiledModule=k;function O(f){return T(f,w)}t.isNumberObject=O;function Q(f){return T(f,y)}t.isStringObject=Q;function h(f){return T(f,x)}t.isBooleanObject=h;function X(f){return o&&T(f,_)}t.isBigIntObject=X;function b(f){return i&&T(f,p)}t.isSymbolObject=b;function n(f){return O(f)||Q(f)||h(f)||X(f)||b(f)}t.isBoxedPrimitive=n;function s(f){return typeof Uint8Array<"u"&&(G(f)||j(f))}t.isAnyArrayBuffer=s,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(f){Object.defineProperty(t,f,{enumerable:!1,value:function(){throw new Error(f+" is not supported in userland")}})})}(Gr)),Gr}var dn,Gi;function Po(){return Gi||(Gi=1,dn=function(e){return e&&typeof e=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"}),dn}var Ki;function Zs(){return Ki||(Ki=1,function(t){var e=Object.getOwnPropertyDescriptors||function(W){for(var z=Object.keys(W),$={},j=0;j=j)return M;switch(M){case"%s":return String($[z++]);case"%d":return Number($[z++]);case"%j":try{return JSON.stringify($[z++])}catch{return"[Circular]"}default:return M}}),m=$[z];z"u")return function(){return t.deprecate(N,W).apply(this,arguments)};var z=!1;function $(){if(!z){if(ve.throwDeprecation)throw new Error(W);ve.traceDeprecation?console.trace(W):console.error(W),z=!0}return N.apply(this,arguments)}return $};var a={},l=/^$/;if(ve.env.NODE_DEBUG){var u=ve.env.NODE_DEBUG;u=u.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),l=new RegExp("^"+u+"$","i")}t.debuglog=function(N){if(N=N.toUpperCase(),!a[N])if(l.test(N)){var W=ve.pid;a[N]=function(){var z=t.format.apply(t,arguments);console.error("%s %d: %s",N,W,z)}}else a[N]=function(){};return a[N]};function o(N,W){var z={seen:[],stylize:c};return arguments.length>=3&&(z.depth=arguments[2]),arguments.length>=4&&(z.colors=arguments[3]),d(W)?z.showHidden=W:W&&t._extend(z,W),H(z.showHidden)&&(z.showHidden=!1),H(z.depth)&&(z.depth=2),H(z.colors)&&(z.colors=!1),H(z.customInspect)&&(z.customInspect=!0),z.colors&&(z.stylize=i),y(z,N,z.depth)}t.inspect=o,o.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},o.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function i(N,W){var z=o.styles[W];return z?"\x1B["+o.colors[z][0]+"m"+N+"\x1B["+o.colors[z][1]+"m":N}function c(N,W){return N}function w(N){var W={};return N.forEach(function(z,$){W[z]=!0}),W}function y(N,W,z){if(N.customInspect&&W&&L(W.inspect)&&W.inspect!==t.inspect&&!(W.constructor&&W.constructor.prototype===W)){var $=W.inspect(z,N);return C($)||($=y(N,$,z)),$}var j=x(N,W);if(j)return j;var g=Object.keys(W),m=w(g);if(N.showHidden&&(g=Object.getOwnPropertyNames(W)),ue(W)&&(g.indexOf("message")>=0||g.indexOf("description")>=0))return _(W);if(g.length===0){if(L(W)){var M=W.name?": "+W.name:"";return N.stylize("[Function"+M+"]","special")}if(J(W))return N.stylize(RegExp.prototype.toString.call(W),"regexp");if(re(W))return N.stylize(Date.prototype.toString.call(W),"date");if(ue(W))return _(W)}var F="",k=!1,O=["{","}"];if(E(W)&&(k=!0,O=["[","]"]),L(W)){var Q=W.name?": "+W.name:"";F=" [Function"+Q+"]"}if(J(W)&&(F=" "+RegExp.prototype.toString.call(W)),re(W)&&(F=" "+Date.prototype.toUTCString.call(W)),ue(W)&&(F=" "+_(W)),g.length===0&&(!k||W.length==0))return O[0]+F+O[1];if(z<0)return J(W)?N.stylize(RegExp.prototype.toString.call(W),"regexp"):N.stylize("[Object]","special");N.seen.push(W);var h;return k?h=p(N,W,z,m,g):h=g.map(function(X){return T(N,W,z,m,X,k)}),N.seen.pop(),v(h,F,O)}function x(N,W){if(H(W))return N.stylize("undefined","undefined");if(C(W)){var z="'"+JSON.stringify(W).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return N.stylize(z,"string")}if(D(W))return N.stylize(""+W,"number");if(d(W))return N.stylize(""+W,"boolean");if(S(W))return N.stylize("null","null")}function _(N){return"["+Error.prototype.toString.call(N)+"]"}function p(N,W,z,$,j){for(var g=[],m=0,M=W.length;m-1&&(g?M=M.split(` -`).map(function(k){return" "+k}).join(` -`).slice(2):M=` -`+M.split(` -`).map(function(k){return" "+k}).join(` -`))):M=N.stylize("[Circular]","special")),H(m)){if(g&&j.match(/^\d+$/))return M;m=JSON.stringify(""+j),m.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(m=m.slice(1,-1),m=N.stylize(m,"name")):(m=m.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),m=N.stylize(m,"string"))}return m+": "+M}function v(N,W,z){var $=N.reduce(function(j,g){return g.indexOf(` -`)>=0,j+g.replace(/\u001b\[\d\d?m/g,"").length+1},0);return $>60?z[0]+(W===""?"":W+` - `)+" "+N.join(`, - `)+" "+z[1]:z[0]+W+" "+N.join(", ")+" "+z[1]}t.types=Do();function E(N){return Array.isArray(N)}t.isArray=E;function d(N){return typeof N=="boolean"}t.isBoolean=d;function S(N){return N===null}t.isNull=S;function R(N){return N==null}t.isNullOrUndefined=R;function D(N){return typeof N=="number"}t.isNumber=D;function C(N){return typeof N=="string"}t.isString=C;function V(N){return typeof N=="symbol"}t.isSymbol=V;function H(N){return N===void 0}t.isUndefined=H;function J(N){return I(N)&&A(N)==="[object RegExp]"}t.isRegExp=J,t.types.isRegExp=J;function I(N){return typeof N=="object"&&N!==null}t.isObject=I;function re(N){return I(N)&&A(N)==="[object Date]"}t.isDate=re,t.types.isDate=re;function ue(N){return I(N)&&(A(N)==="[object Error]"||N instanceof Error)}t.isError=ue,t.types.isNativeError=ue;function L(N){return typeof N=="function"}t.isFunction=L;function q(N){return N===null||typeof N=="boolean"||typeof N=="number"||typeof N=="string"||typeof N=="symbol"||typeof N>"u"}t.isPrimitive=q,t.isBuffer=Po();function A(N){return Object.prototype.toString.call(N)}function Z(N){return N<10?"0"+N.toString(10):N.toString(10)}var le=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Y(){var N=new Date,W=[Z(N.getHours()),Z(N.getMinutes()),Z(N.getSeconds())].join(":");return[N.getDate(),le[N.getMonth()],W].join(" ")}t.log=function(){console.log("%s - %s",Y(),t.format.apply(t,arguments))},t.inherits=Ot,t._extend=function(N,W){if(!W||!I(W))return N;for(var z=Object.keys(W),$=z.length;$--;)N[z[$]]=W[z[$]];return N};function de(N,W){return Object.prototype.hasOwnProperty.call(N,W)}var K=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;t.promisify=function(W){if(typeof W!="function")throw new TypeError('The "original" argument must be of type Function');if(K&&W[K]){var z=W[K];if(typeof z!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(z,K,{value:z,enumerable:!1,writable:!1,configurable:!0}),z}function z(){for(var $,j,g=new Promise(function(F,k){$=F,j=k}),m=[],M=0;M0?this.tail.next=v:this.head=v,this.tail=v,++this.length}},{key:"unshift",value:function(T){var v={data:T,next:this.head};this.length===0&&(this.tail=v),this.head=v,++this.length}},{key:"shift",value:function(){if(this.length!==0){var T=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,T}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(T){if(this.length===0)return"";for(var v=this.head,E=""+v.data;v=v.next;)E+=T+v.data;return E}},{key:"concat",value:function(T){if(this.length===0)return i.alloc(0);for(var v=i.allocUnsafe(T>>>0),E=this.head,d=0;E;)x(E.data,v,d),d+=E.data.length,E=E.next;return v}},{key:"consume",value:function(T,v){var E;return TS.length?S.length:T;if(R===S.length?d+=S:d+=S.slice(0,T),T-=R,T===0){R===S.length?(++E,v.next?this.head=v.next:this.head=this.tail=null):(this.head=v,v.data=S.slice(R));break}++E}return this.length-=E,d}},{key:"_getBuffer",value:function(T){var v=i.allocUnsafe(T),E=this.head,d=1;for(E.data.copy(v),T-=E.data.length;E=E.next;){var S=E.data,R=T>S.length?S.length:T;if(S.copy(v,v.length-T,0,R),T-=R,T===0){R===S.length?(++d,E.next?this.head=E.next:this.head=this.tail=null):(this.head=E,E.data=S.slice(R));break}++d}return this.length-=d,v}},{key:y,value:function(T,v){return w(this,e({},v,{depth:0,customInspect:!1}))}}]),_}(),pn}var mn,qi;function Qs(){if(qi)return mn;qi=1;function t(o,i){var c=this,w=this._readableState&&this._readableState.destroyed,y=this._writableState&&this._writableState.destroyed;return w||y?(i?i(o):o&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,ve.nextTick(l,this,o)):ve.nextTick(l,this,o)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(o||null,function(x){!i&&x?c._writableState?c._writableState.errorEmitted?ve.nextTick(r,c):(c._writableState.errorEmitted=!0,ve.nextTick(e,c,x)):ve.nextTick(e,c,x):i?(ve.nextTick(r,c),i(x)):ve.nextTick(r,c)}),this)}function e(o,i){l(o,i),r(o)}function r(o){o._writableState&&!o._writableState.emitClose||o._readableState&&!o._readableState.emitClose||o.emit("close")}function a(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function l(o,i){o.emit("error",i)}function u(o,i){var c=o._readableState,w=o._writableState;c&&c.autoDestroy||w&&w.autoDestroy?o.destroy(i):o.emit("error",i)}return mn={destroy:t,undestroy:a,errorOrDestroy:u},mn}var gn={},Xi;function Yt(){if(Xi)return gn;Xi=1;function t(i,c){i.prototype=Object.create(c.prototype),i.prototype.constructor=i,i.__proto__=c}var e={};function r(i,c,w){w||(w=Error);function y(_,p,T){return typeof c=="string"?c:c(_,p,T)}var x=function(_){t(p,_);function p(T,v,E){return _.call(this,y(T,v,E))||this}return p}(w);x.prototype.name=w.name,x.prototype.code=i,e[i]=x}function a(i,c){if(Array.isArray(i)){var w=i.length;return i=i.map(function(y){return String(y)}),w>2?"one of ".concat(c," ").concat(i.slice(0,w-1).join(", "),", or ")+i[w-1]:w===2?"one of ".concat(c," ").concat(i[0]," or ").concat(i[1]):"of ".concat(c," ").concat(i[0])}else return"of ".concat(c," ").concat(String(i))}function l(i,c,w){return i.substr(!w||w<0?0:+w,c.length)===c}function u(i,c,w){return(w===void 0||w>i.length)&&(w=i.length),i.substring(w-c.length,w)===c}function o(i,c,w){return typeof w!="number"&&(w=0),w+c.length>i.length?!1:i.indexOf(c,w)!==-1}return r("ERR_INVALID_OPT_VALUE",function(i,c){return'The value "'+c+'" is invalid for option "'+i+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(i,c,w){var y;typeof c=="string"&&l(c,"not ")?(y="must not be",c=c.replace(/^not /,"")):y="must be";var x;if(u(i," argument"))x="The ".concat(i," ").concat(y," ").concat(a(c,"type"));else{var _=o(i,".")?"property":"argument";x='The "'.concat(i,'" ').concat(_," ").concat(y," ").concat(a(c,"type"))}return x+=". Received type ".concat(typeof w),x},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(i){return"The "+i+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(i){return"Cannot call "+i+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(i){return"Unknown encoding: "+i},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),gn.codes=e,gn}var wn,Yi;function Js(){if(Yi)return wn;Yi=1;var t=Yt().codes.ERR_INVALID_OPT_VALUE;function e(a,l,u){return a.highWaterMark!=null?a.highWaterMark:l?a[u]:null}function r(a,l,u,o){var i=e(l,o,u);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var c=o?u:"highWaterMark";throw new t(c,i)}return Math.floor(i)}return a.objectMode?16:16*1024}return wn={getHighWaterMark:r},wn}var yn,Zi;function Fo(){if(Zi)return yn;Zi=1,yn=t;function t(r,a){if(e("noDeprecation"))return r;var l=!1;function u(){if(!l){if(e("throwDeprecation"))throw new Error(a);e("traceDeprecation")?console.trace(a):console.warn(a),l=!0}return r.apply(this,arguments)}return u}function e(r){try{if(!ht.localStorage)return!1}catch{return!1}var a=ht.localStorage[r];return a==null?!1:String(a).toLowerCase()==="true"}return yn}var vn,Qi;function $s(){if(Qi)return vn;Qi=1,vn=J;function t(j){var g=this;this.next=null,this.entry=null,this.finish=function(){$(g,j)}}var e;J.WritableState=V;var r={deprecate:Fo()},a=Gs(),l=Or().Buffer,u=ht.Uint8Array||function(){};function o(j){return l.from(j)}function i(j){return l.isBuffer(j)||j instanceof u}var c=Qs(),w=Js(),y=w.getHighWaterMark,x=Yt().codes,_=x.ERR_INVALID_ARG_TYPE,p=x.ERR_METHOD_NOT_IMPLEMENTED,T=x.ERR_MULTIPLE_CALLBACK,v=x.ERR_STREAM_CANNOT_PIPE,E=x.ERR_STREAM_DESTROYED,d=x.ERR_STREAM_NULL_VALUES,S=x.ERR_STREAM_WRITE_AFTER_END,R=x.ERR_UNKNOWN_ENCODING,D=c.errorOrDestroy;Ot(J,a);function C(){}function V(j,g,m){e=e||Ht(),j=j||{},typeof m!="boolean"&&(m=g instanceof e),this.objectMode=!!j.objectMode,m&&(this.objectMode=this.objectMode||!!j.writableObjectMode),this.highWaterMark=y(this,j,"writableHighWaterMark",m),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var M=j.decodeStrings===!1;this.decodeStrings=!M,this.defaultEncoding=j.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(F){le(g,F)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=j.emitClose!==!1,this.autoDestroy=!!j.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new t(this)}V.prototype.getBuffer=function(){for(var g=this.bufferedRequest,m=[];g;)m.push(g),g=g.next;return m},function(){try{Object.defineProperty(V.prototype,"buffer",{get:r.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var H;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(H=Function.prototype[Symbol.hasInstance],Object.defineProperty(J,Symbol.hasInstance,{value:function(g){return H.call(this,g)?!0:this!==J?!1:g&&g._writableState instanceof V}})):H=function(g){return g instanceof this};function J(j){e=e||Ht();var g=this instanceof e;if(!g&&!H.call(J,this))return new J(j);this._writableState=new V(j,this,g),this.writable=!0,j&&(typeof j.write=="function"&&(this._write=j.write),typeof j.writev=="function"&&(this._writev=j.writev),typeof j.destroy=="function"&&(this._destroy=j.destroy),typeof j.final=="function"&&(this._final=j.final)),a.call(this)}J.prototype.pipe=function(){D(this,new v)};function I(j,g){var m=new S;D(j,m),ve.nextTick(g,m)}function re(j,g,m,M){var F;return m===null?F=new d:typeof m!="string"&&!g.objectMode&&(F=new _("chunk",["string","Buffer"],m)),F?(D(j,F),ve.nextTick(M,F),!1):!0}J.prototype.write=function(j,g,m){var M=this._writableState,F=!1,k=!M.objectMode&&i(j);return k&&!l.isBuffer(j)&&(j=o(j)),typeof g=="function"&&(m=g,g=null),k?g="buffer":g||(g=M.defaultEncoding),typeof m!="function"&&(m=C),M.ending?I(this,m):(k||re(this,M,j,m))&&(M.pendingcb++,F=L(this,M,k,j,g,m)),F},J.prototype.cork=function(){this._writableState.corked++},J.prototype.uncork=function(){var j=this._writableState;j.corked&&(j.corked--,!j.writing&&!j.corked&&!j.bufferProcessing&&j.bufferedRequest&&K(this,j))},J.prototype.setDefaultEncoding=function(g){if(typeof g=="string"&&(g=g.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((g+"").toLowerCase())>-1))throw new R(g);return this._writableState.defaultEncoding=g,this},Object.defineProperty(J.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function ue(j,g,m){return!j.objectMode&&j.decodeStrings!==!1&&typeof g=="string"&&(g=l.from(g,m)),g}Object.defineProperty(J.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function L(j,g,m,M,F,k){if(!m){var O=ue(g,M,F);M!==O&&(m=!0,F="buffer",M=O)}var Q=g.objectMode?1:M.length;g.length+=Q;var h=g.length>5===6?2:d>>4===14?3:d>>3===30?4:d>>6===2?-1:-2}function o(d,S,R){var D=S.length-1;if(D=0?(C>0&&(d.lastNeed=C-1),C):--D=0?(C>0&&(d.lastNeed=C-2),C):--D=0?(C>0&&(C===2?C=0:d.lastNeed=C-3),C):0))}function i(d,S,R){if((S[0]&192)!==128)return d.lastNeed=0,"�";if(d.lastNeed>1&&S.length>1){if((S[1]&192)!==128)return d.lastNeed=1,"�";if(d.lastNeed>2&&S.length>2&&(S[2]&192)!==128)return d.lastNeed=2,"�"}}function c(d){var S=this.lastTotal-this.lastNeed,R=i(this,d);if(R!==void 0)return R;if(this.lastNeed<=d.length)return d.copy(this.lastChar,S,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);d.copy(this.lastChar,S,0,d.length),this.lastNeed-=d.length}function w(d,S){var R=o(this,d,S);if(!this.lastNeed)return d.toString("utf8",S);this.lastTotal=R;var D=d.length-(R-this.lastNeed);return d.copy(this.lastChar,0,D),d.toString("utf8",S,D)}function y(d){var S=d&&d.length?this.write(d):"";return this.lastNeed?S+"�":S}function x(d,S){if((d.length-S)%2===0){var R=d.toString("utf16le",S);if(R){var D=R.charCodeAt(R.length-1);if(D>=55296&&D<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=d[d.length-2],this.lastChar[1]=d[d.length-1],R.slice(0,-1)}return R}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=d[d.length-1],d.toString("utf16le",S,d.length-1)}function _(d){var S=d&&d.length?this.write(d):"";if(this.lastNeed){var R=this.lastTotal-this.lastNeed;return S+this.lastChar.toString("utf16le",0,R)}return S}function p(d,S){var R=(d.length-S)%3;return R===0?d.toString("base64",S):(this.lastNeed=3-R,this.lastTotal=3,R===1?this.lastChar[0]=d[d.length-1]:(this.lastChar[0]=d[d.length-2],this.lastChar[1]=d[d.length-1]),d.toString("base64",S,d.length-R))}function T(d){var S=d&&d.length?this.write(d):"";return this.lastNeed?S+this.lastChar.toString("base64",0,3-this.lastNeed):S}function v(d){return d.toString(this.encoding)}function E(d){return d&&d.length?this.write(d):""}return _n}var En,ts;function Qn(){if(ts)return En;ts=1;var t=Yt().codes.ERR_STREAM_PREMATURE_CLOSE;function e(u){var o=!1;return function(){if(!o){o=!0;for(var i=arguments.length,c=new Array(i),w=0;w0)if(typeof O!="string"&&!b.objectMode&&Object.getPrototypeOf(O)!==a.prototype&&(O=u(O)),h)b.endEmitted?C(k,new d):ue(k,b,O,!0);else if(b.ended)C(k,new v);else{if(b.destroyed)return!1;b.reading=!1,b.decoder&&!Q?(O=b.decoder.write(O),b.objectMode||O.length!==0?ue(k,b,O,!1):K(k,b)):ue(k,b,O,!1)}else h||(b.reading=!1,K(k,b))}return!b.ended&&(b.length=q?k=q:(k--,k|=k>>>1,k|=k>>>2,k|=k>>>4,k|=k>>>8,k|=k>>>16,k++),k}function Z(k,O){return k<=0||O.length===0&&O.ended?0:O.objectMode?1:k!==k?O.flowing&&O.length?O.buffer.head.data.length:O.length:(k>O.highWaterMark&&(O.highWaterMark=A(k)),k<=O.length?k:O.ended?O.length:(O.needReadable=!0,0))}I.prototype.read=function(k){c("read",k),k=parseInt(k,10);var O=this._readableState,Q=k;if(k!==0&&(O.emittedReadable=!1),k===0&&O.needReadable&&((O.highWaterMark!==0?O.length>=O.highWaterMark:O.length>0)||O.ended))return c("read: emitReadable",O.length,O.ended),O.length===0&&O.ended?m(this):Y(this),null;if(k=Z(k,O),k===0&&O.ended)return O.length===0&&m(this),null;var h=O.needReadable;c("need readable",h),(O.length===0||O.length-k0?X=g(k,O):X=null,X===null?(O.needReadable=O.length<=O.highWaterMark,k=0):(O.length-=k,O.awaitDrain=0),O.length===0&&(O.ended||(O.needReadable=!0),Q!==k&&O.ended&&m(this)),X!==null&&this.emit("data",X),X};function le(k,O){if(c("onEofChunk"),!O.ended){if(O.decoder){var Q=O.decoder.end();Q&&Q.length&&(O.buffer.push(Q),O.length+=O.objectMode?1:Q.length)}O.ended=!0,O.sync?Y(k):(O.needReadable=!1,O.emittedReadable||(O.emittedReadable=!0,de(k)))}}function Y(k){var O=k._readableState;c("emitReadable",O.needReadable,O.emittedReadable),O.needReadable=!1,O.emittedReadable||(c("emitReadable",O.flowing),O.emittedReadable=!0,ve.nextTick(de,k))}function de(k){var O=k._readableState;c("emitReadable_",O.destroyed,O.length,O.ended),!O.destroyed&&(O.length||O.ended)&&(k.emit("readable"),O.emittedReadable=!1),O.needReadable=!O.flowing&&!O.ended&&O.length<=O.highWaterMark,j(k)}function K(k,O){O.readingMore||(O.readingMore=!0,ve.nextTick(ce,k,O))}function ce(k,O){for(;!O.reading&&!O.ended&&(O.length1&&F(h.pipes,k)!==-1)&&!P&&(c("false write response, pause",h.awaitDrain),h.awaitDrain++),Q.pause())}function te(pe){c("onerror",pe),fe(),k.removeListener("error",te),e(k,"error")===0&&C(k,pe)}H(k,"error",te);function ae(){k.removeListener("finish",ne),fe()}k.once("close",ae);function ne(){c("onfinish"),k.removeListener("close",ae),fe()}k.once("finish",ne);function fe(){c("unpipe"),Q.unpipe(k)}return k.emit("pipe",Q),h.flowing||(c("pipe resume"),Q.resume()),k};function G(k){return function(){var Q=k._readableState;c("pipeOnDrain",Q.awaitDrain),Q.awaitDrain&&Q.awaitDrain--,Q.awaitDrain===0&&e(k,"data")&&(Q.flowing=!0,j(k))}}I.prototype.unpipe=function(k){var O=this._readableState,Q={hasUnpiped:!1};if(O.pipesCount===0)return this;if(O.pipesCount===1)return k&&k!==O.pipes?this:(k||(k=O.pipes),O.pipes=null,O.pipesCount=0,O.flowing=!1,k&&k.emit("unpipe",this,Q),this);if(!k){var h=O.pipes,X=O.pipesCount;O.pipes=null,O.pipesCount=0,O.flowing=!1;for(var b=0;b0,h.flowing!==!1&&this.resume()):k==="readable"&&!h.endEmitted&&!h.readableListening&&(h.readableListening=h.needReadable=!0,h.flowing=!1,h.emittedReadable=!1,c("on readable",h.length,h.reading),h.length?Y(this):h.reading||ve.nextTick(W,this)),Q},I.prototype.addListener=I.prototype.on,I.prototype.removeListener=function(k,O){var Q=r.prototype.removeListener.call(this,k,O);return k==="readable"&&ve.nextTick(N,this),Q},I.prototype.removeAllListeners=function(k){var O=r.prototype.removeAllListeners.apply(this,arguments);return(k==="readable"||k===void 0)&&ve.nextTick(N,this),O};function N(k){var O=k._readableState;O.readableListening=k.listenerCount("readable")>0,O.resumeScheduled&&!O.paused?O.flowing=!0:k.listenerCount("data")>0&&k.resume()}function W(k){c("readable nexttick read 0"),k.read(0)}I.prototype.resume=function(){var k=this._readableState;return k.flowing||(c("resume"),k.flowing=!k.readableListening,z(this,k)),k.paused=!1,this};function z(k,O){O.resumeScheduled||(O.resumeScheduled=!0,ve.nextTick($,k,O))}function $(k,O){c("resume",O.reading),O.reading||k.read(0),O.resumeScheduled=!1,k.emit("resume"),j(k),O.flowing&&!O.reading&&k.read(0)}I.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function j(k){var O=k._readableState;for(c("flow",O.flowing);O.flowing&&k.read()!==null;);}I.prototype.wrap=function(k){var O=this,Q=this._readableState,h=!1;k.on("end",function(){if(c("wrapped end"),Q.decoder&&!Q.ended){var n=Q.decoder.end();n&&n.length&&O.push(n)}O.push(null)}),k.on("data",function(n){if(c("wrapped data"),Q.decoder&&(n=Q.decoder.write(n)),!(Q.objectMode&&n==null)&&!(!Q.objectMode&&(!n||!n.length))){var s=O.push(n);s||(h=!0,k.pause())}});for(var X in k)this[X]===void 0&&typeof k[X]=="function"&&(this[X]=function(s){return function(){return k[s].apply(k,arguments)}}(X));for(var b=0;b=O.length?(O.decoder?Q=O.buffer.join(""):O.buffer.length===1?Q=O.buffer.first():Q=O.buffer.concat(O.length),O.buffer.clear()):Q=O.buffer.consume(k,O.decoder),Q}function m(k){var O=k._readableState;c("endReadable",O.endEmitted),O.endEmitted||(O.ended=!0,ve.nextTick(M,O,k))}function M(k,O){if(c("endReadableNT",k.endEmitted,k.length),!k.endEmitted&&k.length===0&&(k.endEmitted=!0,O.readable=!1,O.emit("end"),k.autoDestroy)){var Q=O._writableState;(!Q||Q.autoDestroy&&Q.finished)&&O.destroy()}}typeof Symbol=="function"&&(I.from=function(k,O){return D===void 0&&(D=Uo()),D(I,k,O)});function F(k,O){for(var Q=0,h=k.length;Q0;return i(S,D,C,function(V){E||(E=V),V&&d.forEach(c),!D&&(d.forEach(c),v(E))})});return p.reduce(w)}return In=x,In}var Jn=rt,$n=qn.EventEmitter,zo=Ot;zo(rt,$n);rt.Readable=ea();rt.Writable=$s();rt.Duplex=Ht();rt.Transform=ta();rt.PassThrough=jo();rt.finished=Qn();rt.pipeline=Wo();rt.Stream=rt;function rt(){$n.call(this)}rt.prototype.pipe=function(t,e){var r=this;function a(y){t.writable&&t.write(y)===!1&&r.pause&&r.pause()}r.on("data",a);function l(){r.readable&&r.resume&&r.resume()}t.on("drain",l),!t._isStdio&&(!e||e.end!==!1)&&(r.on("end",o),r.on("close",i));var u=!1;function o(){u||(u=!0,t.end())}function i(){u||(u=!0,typeof t.destroy=="function"&&t.destroy())}function c(y){if(w(),$n.listenerCount(this,"error")===0)throw y}r.on("error",c),t.on("error",c);function w(){r.removeListener("data",a),t.removeListener("drain",l),r.removeListener("end",o),r.removeListener("close",i),r.removeListener("error",c),t.removeListener("error",c),r.removeListener("end",w),r.removeListener("close",w),t.removeListener("close",w)}return r.on("end",w),r.on("close",w),t.on("close",w),t.emit("pipe",r),t};(function(t){(function(e){e.parser=function(g,m){return new a(g,m)},e.SAXParser=a,e.SAXStream=y,e.createStream=w,e.MAX_BUFFER_LENGTH=64*1024;var r=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];e.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function a(g,m){if(!(this instanceof a))return new a(g,m);var M=this;u(M),M.q=M.c="",M.bufferCheckPosition=e.MAX_BUFFER_LENGTH,M.opt=m||{},M.opt.lowercase=M.opt.lowercase||M.opt.lowercasetags,M.looseCase=M.opt.lowercase?"toLowerCase":"toUpperCase",M.tags=[],M.closed=M.closedRoot=M.sawRoot=!1,M.tag=M.error=null,M.strict=!!g,M.noscript=!!(g||M.opt.noscript),M.state=I.BEGIN,M.strictEntities=M.opt.strictEntities,M.ENTITIES=M.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES),M.attribList=[],M.opt.xmlns&&(M.ns=Object.create(v)),M.trackPosition=M.opt.position!==!1,M.trackPosition&&(M.position=M.line=M.column=0),ue(M,"onready")}Object.create||(Object.create=function(g){function m(){}m.prototype=g;var M=new m;return M}),Object.keys||(Object.keys=function(g){var m=[];for(var M in g)g.hasOwnProperty(M)&&m.push(M);return m});function l(g){for(var m=Math.max(e.MAX_BUFFER_LENGTH,10),M=0,F=0,k=r.length;Fm)switch(r[F]){case"textNode":q(g);break;case"cdata":L(g,"oncdata",g.cdata),g.cdata="";break;case"script":L(g,"onscript",g.script),g.script="";break;default:Z(g,"Max buffer length exceeded: "+r[F])}M=Math.max(M,O)}var Q=e.MAX_BUFFER_LENGTH-M;g.bufferCheckPosition=Q+g.position}function u(g){for(var m=0,M=r.length;m"||D(g)}function H(g,m){return g.test(m)}function J(g,m){return!H(g,m)}var I=0;e.STATE={BEGIN:I++,BEGIN_WHITESPACE:I++,TEXT:I++,TEXT_ENTITY:I++,OPEN_WAKA:I++,SGML_DECL:I++,SGML_DECL_QUOTED:I++,DOCTYPE:I++,DOCTYPE_QUOTED:I++,DOCTYPE_DTD:I++,DOCTYPE_DTD_QUOTED:I++,COMMENT_STARTING:I++,COMMENT:I++,COMMENT_ENDING:I++,COMMENT_ENDED:I++,CDATA:I++,CDATA_ENDING:I++,CDATA_ENDING_2:I++,PROC_INST:I++,PROC_INST_BODY:I++,PROC_INST_ENDING:I++,OPEN_TAG:I++,OPEN_TAG_SLASH:I++,ATTRIB:I++,ATTRIB_NAME:I++,ATTRIB_NAME_SAW_WHITE:I++,ATTRIB_VALUE:I++,ATTRIB_VALUE_QUOTED:I++,ATTRIB_VALUE_CLOSED:I++,ATTRIB_VALUE_UNQUOTED:I++,ATTRIB_VALUE_ENTITY_Q:I++,ATTRIB_VALUE_ENTITY_U:I++,CLOSE_TAG:I++,CLOSE_TAG_SAW_WHITE:I++,SCRIPT:I++,SCRIPT_ENDING:I++},e.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},e.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(e.ENTITIES).forEach(function(g){var m=e.ENTITIES[g],M=typeof m=="number"?String.fromCharCode(m):m;e.ENTITIES[g]=M});for(var re in e.STATE)e.STATE[e.STATE[re]]=re;I=e.STATE;function ue(g,m,M){g[m]&&g[m](M)}function L(g,m,M){g.textNode&&q(g),ue(g,m,M)}function q(g){g.textNode=A(g.opt,g.textNode),g.textNode&&ue(g,"ontext",g.textNode),g.textNode=""}function A(g,m){return g.trim&&(m=m.trim()),g.normalize&&(m=m.replace(/\s+/g," ")),m}function Z(g,m){return q(g),g.trackPosition&&(m+=` -Line: `+g.line+` -Column: `+g.column+` -Char: `+g.c),m=new Error(m),g.error=m,ue(g,"onerror",m),g}function le(g){return g.sawRoot&&!g.closedRoot&&Y(g,"Unclosed root tag"),g.state!==I.BEGIN&&g.state!==I.BEGIN_WHITESPACE&&g.state!==I.TEXT&&Z(g,"Unexpected end"),q(g),g.c="",g.closed=!0,ue(g,"onend"),a.call(g,g.strict,g.opt),g}function Y(g,m){if(typeof g!="object"||!(g instanceof a))throw new Error("bad call to strictFail");g.strict&&Z(g,m)}function de(g){g.strict||(g.tagName=g.tagName[g.looseCase]());var m=g.tags[g.tags.length-1]||g,M=g.tag={name:g.tagName,attributes:{}};g.opt.xmlns&&(M.ns=m.ns),g.attribList.length=0,L(g,"onopentagstart",M)}function K(g,m){var M=g.indexOf(":"),F=M<0?["",g]:g.split(":"),k=F[0],O=F[1];return m&&g==="xmlns"&&(k="xmlns",O=""),{prefix:k,local:O}}function ce(g){if(g.strict||(g.attribName=g.attribName[g.looseCase]()),g.attribList.indexOf(g.attribName)!==-1||g.tag.attributes.hasOwnProperty(g.attribName)){g.attribName=g.attribValue="";return}if(g.opt.xmlns){var m=K(g.attribName,!0),M=m.prefix,F=m.local;if(M==="xmlns")if(F==="xml"&&g.attribValue!==p)Y(g,"xml: prefix must be bound to "+p+` -Actual: `+g.attribValue);else if(F==="xmlns"&&g.attribValue!==T)Y(g,"xmlns: prefix must be bound to "+T+` -Actual: `+g.attribValue);else{var k=g.tag,O=g.tags[g.tags.length-1]||g;k.ns===O.ns&&(k.ns=Object.create(O.ns)),k.ns[F]=g.attribValue}g.attribList.push([g.attribName,g.attribValue])}else g.tag.attributes[g.attribName]=g.attribValue,L(g,"onattribute",{name:g.attribName,value:g.attribValue});g.attribName=g.attribValue=""}function G(g,m){if(g.opt.xmlns){var M=g.tag,F=K(g.tagName);M.prefix=F.prefix,M.local=F.local,M.uri=M.ns[F.prefix]||"",M.prefix&&!M.uri&&(Y(g,"Unbound namespace prefix: "+JSON.stringify(g.tagName)),M.uri=F.prefix);var k=g.tags[g.tags.length-1]||g;M.ns&&k.ns!==M.ns&&Object.keys(M.ns).forEach(function(B){L(g,"onopennamespace",{prefix:B,uri:M.ns[B]})});for(var O=0,Q=g.attribList.length;O",g.tagName="",g.state=I.SCRIPT;return}L(g,"onscript",g.script),g.script=""}var m=g.tags.length,M=g.tagName;g.strict||(M=M[g.looseCase]());for(var F=M;m--;){var k=g.tags[m];if(k.name!==F)Y(g,"Unexpected close tag");else break}if(m<0){Y(g,"Unmatched closing tag: "+g.tagName),g.textNode+="",g.state=I.TEXT;return}g.tagName=M;for(var O=g.tags.length;O-- >m;){var Q=g.tag=g.tags.pop();g.tagName=g.tag.name,L(g,"onclosetag",g.tagName);var h={};for(var X in Q.ns)h[X]=Q.ns[X];var b=g.tags[g.tags.length-1]||g;g.opt.xmlns&&Q.ns!==b.ns&&Object.keys(Q.ns).forEach(function(n){var s=Q.ns[n];L(g,"onclosenamespace",{prefix:n,uri:s})})}m===0&&(g.closedRoot=!0),g.tagName=g.attribValue=g.attribName="",g.attribList.length=0,g.state=I.TEXT}function W(g){var m=g.entity,M=m.toLowerCase(),F,k="";return g.ENTITIES[m]?g.ENTITIES[m]:g.ENTITIES[M]?g.ENTITIES[M]:(m=M,m.charAt(0)==="#"&&(m.charAt(1)==="x"?(m=m.slice(2),F=parseInt(m,16),k=F.toString(16)):(m=m.slice(1),F=parseInt(m,10),k=F.toString(10))),m=m.replace(/^0+/,""),isNaN(F)||k.toLowerCase()!==m?(Y(g,"Invalid character entity"),"&"+g.entity+";"):String.fromCodePoint(F))}function z(g,m){m==="<"?(g.state=I.OPEN_WAKA,g.startTagPosition=g.position):D(m)||(Y(g,"Non-whitespace before first tag."),g.textNode=m,g.state=I.TEXT)}function $(g,m){var M="";return m"?(L(m,"onsgmldeclaration",m.sgmlDecl),m.sgmlDecl="",m.state=I.TEXT):(C(F)&&(m.state=I.SGML_DECL_QUOTED),m.sgmlDecl+=F);continue;case I.SGML_DECL_QUOTED:F===m.q&&(m.state=I.SGML_DECL,m.q=""),m.sgmlDecl+=F;continue;case I.DOCTYPE:F===">"?(m.state=I.TEXT,L(m,"ondoctype",m.doctype),m.doctype=!0):(m.doctype+=F,F==="["?m.state=I.DOCTYPE_DTD:C(F)&&(m.state=I.DOCTYPE_QUOTED,m.q=F));continue;case I.DOCTYPE_QUOTED:m.doctype+=F,F===m.q&&(m.q="",m.state=I.DOCTYPE);continue;case I.DOCTYPE_DTD:m.doctype+=F,F==="]"?m.state=I.DOCTYPE:C(F)&&(m.state=I.DOCTYPE_DTD_QUOTED,m.q=F);continue;case I.DOCTYPE_DTD_QUOTED:m.doctype+=F,F===m.q&&(m.state=I.DOCTYPE_DTD,m.q="");continue;case I.COMMENT:F==="-"?m.state=I.COMMENT_ENDING:m.comment+=F;continue;case I.COMMENT_ENDING:F==="-"?(m.state=I.COMMENT_ENDED,m.comment=A(m.opt,m.comment),m.comment&&L(m,"oncomment",m.comment),m.comment=""):(m.comment+="-"+F,m.state=I.COMMENT);continue;case I.COMMENT_ENDED:F!==">"?(Y(m,"Malformed comment"),m.comment+="--"+F,m.state=I.COMMENT):m.state=I.TEXT;continue;case I.CDATA:F==="]"?m.state=I.CDATA_ENDING:m.cdata+=F;continue;case I.CDATA_ENDING:F==="]"?m.state=I.CDATA_ENDING_2:(m.cdata+="]"+F,m.state=I.CDATA);continue;case I.CDATA_ENDING_2:F===">"?(m.cdata&&L(m,"oncdata",m.cdata),L(m,"onclosecdata"),m.cdata="",m.state=I.TEXT):F==="]"?m.cdata+="]":(m.cdata+="]]"+F,m.state=I.CDATA);continue;case I.PROC_INST:F==="?"?m.state=I.PROC_INST_ENDING:D(F)?m.state=I.PROC_INST_BODY:m.procInstName+=F;continue;case I.PROC_INST_BODY:if(!m.procInstBody&&D(F))continue;F==="?"?m.state=I.PROC_INST_ENDING:m.procInstBody+=F;continue;case I.PROC_INST_ENDING:F===">"?(L(m,"onprocessinginstruction",{name:m.procInstName,body:m.procInstBody}),m.procInstName=m.procInstBody="",m.state=I.TEXT):(m.procInstBody+="?"+F,m.state=I.PROC_INST_BODY);continue;case I.OPEN_TAG:H(d,F)?m.tagName+=F:(de(m),F===">"?G(m):F==="/"?m.state=I.OPEN_TAG_SLASH:(D(F)||Y(m,"Invalid character in tag name"),m.state=I.ATTRIB));continue;case I.OPEN_TAG_SLASH:F===">"?(G(m,!0),N(m)):(Y(m,"Forward-slash in opening tag not followed by >"),m.state=I.ATTRIB);continue;case I.ATTRIB:if(D(F))continue;F===">"?G(m):F==="/"?m.state=I.OPEN_TAG_SLASH:H(E,F)?(m.attribName=F,m.attribValue="",m.state=I.ATTRIB_NAME):Y(m,"Invalid attribute name");continue;case I.ATTRIB_NAME:F==="="?m.state=I.ATTRIB_VALUE:F===">"?(Y(m,"Attribute without value"),m.attribValue=m.attribName,ce(m),G(m)):D(F)?m.state=I.ATTRIB_NAME_SAW_WHITE:H(d,F)?m.attribName+=F:Y(m,"Invalid attribute name");continue;case I.ATTRIB_NAME_SAW_WHITE:if(F==="=")m.state=I.ATTRIB_VALUE;else{if(D(F))continue;Y(m,"Attribute without value"),m.tag.attributes[m.attribName]="",m.attribValue="",L(m,"onattribute",{name:m.attribName,value:""}),m.attribName="",F===">"?G(m):H(E,F)?(m.attribName=F,m.state=I.ATTRIB_NAME):(Y(m,"Invalid attribute name"),m.state=I.ATTRIB)}continue;case I.ATTRIB_VALUE:if(D(F))continue;C(F)?(m.q=F,m.state=I.ATTRIB_VALUE_QUOTED):(Y(m,"Unquoted attribute value"),m.state=I.ATTRIB_VALUE_UNQUOTED,m.attribValue=F);continue;case I.ATTRIB_VALUE_QUOTED:if(F!==m.q){F==="&"?m.state=I.ATTRIB_VALUE_ENTITY_Q:m.attribValue+=F;continue}ce(m),m.q="",m.state=I.ATTRIB_VALUE_CLOSED;continue;case I.ATTRIB_VALUE_CLOSED:D(F)?m.state=I.ATTRIB:F===">"?G(m):F==="/"?m.state=I.OPEN_TAG_SLASH:H(E,F)?(Y(m,"No whitespace between attributes"),m.attribName=F,m.attribValue="",m.state=I.ATTRIB_NAME):Y(m,"Invalid attribute name");continue;case I.ATTRIB_VALUE_UNQUOTED:if(!V(F)){F==="&"?m.state=I.ATTRIB_VALUE_ENTITY_U:m.attribValue+=F;continue}ce(m),F===">"?G(m):m.state=I.ATTRIB;continue;case I.CLOSE_TAG:if(m.tagName)F===">"?N(m):H(d,F)?m.tagName+=F:m.script?(m.script+=""?N(m):Y(m,"Invalid characters in closing tag");continue;case I.TEXT_ENTITY:case I.ATTRIB_VALUE_ENTITY_Q:case I.ATTRIB_VALUE_ENTITY_U:var Q,h;switch(m.state){case I.TEXT_ENTITY:Q=I.TEXT,h="textNode";break;case I.ATTRIB_VALUE_ENTITY_Q:Q=I.ATTRIB_VALUE_QUOTED,h="attribValue";break;case I.ATTRIB_VALUE_ENTITY_U:Q=I.ATTRIB_VALUE_UNQUOTED,h="attribValue";break}F===";"?(m[h]+=W(m),m.entity="",m.state=Q):H(m.entity.length?R:S,F)?m.entity+=F:(Y(m,"Invalid character in entity name"),m[h]+="&"+m.entity+F,m.entity="",m.state=Q);continue;default:throw new Error(m,"Unknown state: "+m.state)}return m.position>=m.bufferCheckPosition&&l(m),m}/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */String.fromCodePoint||function(){var g=String.fromCharCode,m=Math.floor,M=function(){var F=16384,k=[],O,Q,h=-1,X=arguments.length;if(!X)return"";for(var b="";++h1114111||m(n)!==n)throw RangeError("Invalid code point: "+n);n<=65535?k.push(n):(n-=65536,O=(n>>10)+55296,Q=n%1024+56320,k.push(O,Q)),(h+1===X||k.length>F)&&(b+=g.apply(null,k),k.length=0)}return b};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:M,configurable:!0,writable:!0}):String.fromCodePoint=M}()})(t)})(Os);var ei={isArray:function(t){return Array.isArray?Array.isArray(t):Object.prototype.toString.call(t)==="[object Array]"}},Ho=ei.isArray,ti={copyOptions:function(t){var e,r={};for(e in t)t.hasOwnProperty(e)&&(r[e]=t[e]);return r},ensureFlagExists:function(t,e){(!(t in e)||typeof e[t]!="boolean")&&(e[t]=!1)},ensureSpacesExists:function(t){(!("spaces"in t)||typeof t.spaces!="number"&&typeof t.spaces!="string")&&(t.spaces=0)},ensureAlwaysArrayExists:function(t){(!("alwaysArray"in t)||typeof t.alwaysArray!="boolean"&&!Ho(t.alwaysArray))&&(t.alwaysArray=!1)},ensureKeyExists:function(t,e){(!(t+"Key"in e)||typeof e[t+"Key"]!="string")&&(e[t+"Key"]=e.compact?"_"+t:t)},checkFnExists:function(t,e){return t+"Fn"in e}},Go=Os,Te=ti,jt=ei.isArray,ee,we;function Ko(t){return ee=Te.copyOptions(t),Te.ensureFlagExists("ignoreDeclaration",ee),Te.ensureFlagExists("ignoreInstruction",ee),Te.ensureFlagExists("ignoreAttributes",ee),Te.ensureFlagExists("ignoreText",ee),Te.ensureFlagExists("ignoreComment",ee),Te.ensureFlagExists("ignoreCdata",ee),Te.ensureFlagExists("ignoreDoctype",ee),Te.ensureFlagExists("compact",ee),Te.ensureFlagExists("alwaysChildren",ee),Te.ensureFlagExists("addParent",ee),Te.ensureFlagExists("trim",ee),Te.ensureFlagExists("nativeType",ee),Te.ensureFlagExists("nativeTypeAttributes",ee),Te.ensureFlagExists("sanitize",ee),Te.ensureFlagExists("instructionHasAttributes",ee),Te.ensureFlagExists("captureSpacesBetweenElements",ee),Te.ensureAlwaysArrayExists(ee),Te.ensureKeyExists("declaration",ee),Te.ensureKeyExists("instruction",ee),Te.ensureKeyExists("attributes",ee),Te.ensureKeyExists("text",ee),Te.ensureKeyExists("comment",ee),Te.ensureKeyExists("cdata",ee),Te.ensureKeyExists("doctype",ee),Te.ensureKeyExists("type",ee),Te.ensureKeyExists("name",ee),Te.ensureKeyExists("elements",ee),Te.ensureKeyExists("parent",ee),ee}function ra(t){var e=Number(t);if(!isNaN(e))return e;var r=t.toLowerCase();return r==="true"?!0:r==="false"?!1:t}function or(t,e){var r;if(ee.compact){if(!we[ee[t+"Key"]]&&(jt(ee.alwaysArray)?ee.alwaysArray.indexOf(ee[t+"Key"])!==-1:ee.alwaysArray)&&(we[ee[t+"Key"]]=[]),we[ee[t+"Key"]]&&!jt(we[ee[t+"Key"]])&&(we[ee[t+"Key"]]=[we[ee[t+"Key"]]]),t+"Fn"in ee&&typeof e=="string"&&(e=ee[t+"Fn"](e,we)),t==="instruction"&&("instructionFn"in ee||"instructionNameFn"in ee)){for(r in e)if(e.hasOwnProperty(r))if("instructionFn"in ee)e[r]=ee.instructionFn(e[r],r,we);else{var a=e[r];delete e[r],e[ee.instructionNameFn(r,a,we)]=a}}jt(we[ee[t+"Key"]])?we[ee[t+"Key"]].push(e):we[ee[t+"Key"]]=e}else{we[ee.elementsKey]||(we[ee.elementsKey]=[]);var l={};if(l[ee.typeKey]=t,t==="instruction"){for(r in e)if(e.hasOwnProperty(r))break;l[ee.nameKey]="instructionNameFn"in ee?ee.instructionNameFn(r,e,we):r,ee.instructionHasAttributes?(l[ee.attributesKey]=e[r][ee.attributesKey],"instructionFn"in ee&&(l[ee.attributesKey]=ee.instructionFn(l[ee.attributesKey],r,we))):("instructionFn"in ee&&(e[r]=ee.instructionFn(e[r],r,we)),l[ee.instructionKey]=e[r])}else t+"Fn"in ee&&(e=ee[t+"Fn"](e,we)),l[ee[t+"Key"]]=e;ee.addParent&&(l[ee.parentKey]=we),we[ee.elementsKey].push(l)}}function na(t){if("attributesFn"in ee&&t&&(t=ee.attributesFn(t,we)),(ee.trim||"attributeValueFn"in ee||"attributeNameFn"in ee||ee.nativeTypeAttributes)&&t){var e;for(e in t)if(t.hasOwnProperty(e)&&(ee.trim&&(t[e]=t[e].trim()),ee.nativeTypeAttributes&&(t[e]=ra(t[e])),"attributeValueFn"in ee&&(t[e]=ee.attributeValueFn(t[e],e,we)),"attributeNameFn"in ee)){var r=t[e];delete t[e],t[ee.attributeNameFn(e,t[e],we)]=r}}return t}function Vo(t){var e={};if(t.body&&(t.name.toLowerCase()==="xml"||ee.instructionHasAttributes)){for(var r=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g,a;(a=r.exec(t.body))!==null;)e[a[1]]=a[2]||a[3]||a[4];e=na(e)}if(t.name.toLowerCase()==="xml"){if(ee.ignoreDeclaration)return;we[ee.declarationKey]={},Object.keys(e).length&&(we[ee.declarationKey][ee.attributesKey]=e),ee.addParent&&(we[ee.declarationKey][ee.parentKey]=we)}else{if(ee.ignoreInstruction)return;ee.trim&&(t.body=t.body.trim());var l={};ee.instructionHasAttributes&&Object.keys(e).length?(l[t.name]={},l[t.name][ee.attributesKey]=e):l[t.name]=t.body,or("instruction",l)}}function qo(t,e){var r;if(typeof t=="object"&&(e=t.attributes,t=t.name),e=na(e),"elementNameFn"in ee&&(t=ee.elementNameFn(t,we)),ee.compact){if(r={},!ee.ignoreAttributes&&e&&Object.keys(e).length){r[ee.attributesKey]={};var a;for(a in e)e.hasOwnProperty(a)&&(r[ee.attributesKey][a]=e[a])}!(t in we)&&(jt(ee.alwaysArray)?ee.alwaysArray.indexOf(t)!==-1:ee.alwaysArray)&&(we[t]=[]),we[t]&&!jt(we[t])&&(we[t]=[we[t]]),jt(we[t])?we[t].push(r):we[t]=r}else we[ee.elementsKey]||(we[ee.elementsKey]=[]),r={},r[ee.typeKey]="element",r[ee.nameKey]=t,!ee.ignoreAttributes&&e&&Object.keys(e).length&&(r[ee.attributesKey]=e),ee.alwaysChildren&&(r[ee.elementsKey]=[]),we[ee.elementsKey].push(r);r[ee.parentKey]=we,we=r}function Xo(t){ee.ignoreText||!t.trim()&&!ee.captureSpacesBetweenElements||(ee.trim&&(t=t.trim()),ee.nativeType&&(t=ra(t)),ee.sanitize&&(t=t.replace(/&/g,"&").replace(//g,">")),or("text",t))}function Yo(t){ee.ignoreComment||(ee.trim&&(t=t.trim()),or("comment",t))}function Zo(t){var e=we[ee.parentKey];ee.addParent||delete we[ee.parentKey],we=e}function Qo(t){ee.ignoreCdata||(ee.trim&&(t=t.trim()),or("cdata",t))}function Jo(t){ee.ignoreDoctype||(t=t.replace(/^ /,""),ee.trim&&(t=t.trim()),or("doctype",t))}function $o(t){t.note=t}var ia=function(t,e){var r=Go.parser(!0,{}),a={};if(we=a,ee=Ko(e),r.opt={strictEntities:!0},r.onopentag=qo,r.ontext=Xo,r.oncomment=Yo,r.onclosetag=Zo,r.onerror=$o,r.oncdata=Qo,r.ondoctype=Jo,r.onprocessinginstruction=Vo,r.write(t).close(),a[ee.elementsKey]){var l=a[ee.elementsKey];delete a[ee.elementsKey],a[ee.elementsKey]=l,delete a.text}return a},us=ti,eu=ia;function tu(t){var e=us.copyOptions(t);return us.ensureSpacesExists(e),e}var ru=function(t,e){var r,a,l,u;return r=tu(e),a=eu(t,r),u="compact"in r&&r.compact?"_parent":"parent","addParent"in r&&r.addParent?l=JSON.stringify(a,function(o,i){return o===u?"_":i},r.spaces):l=JSON.stringify(a,null,r.spaces),l.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")},Re=ti,nu=ei.isArray,Ue,je;function iu(t){var e=Re.copyOptions(t);return Re.ensureFlagExists("ignoreDeclaration",e),Re.ensureFlagExists("ignoreInstruction",e),Re.ensureFlagExists("ignoreAttributes",e),Re.ensureFlagExists("ignoreText",e),Re.ensureFlagExists("ignoreComment",e),Re.ensureFlagExists("ignoreCdata",e),Re.ensureFlagExists("ignoreDoctype",e),Re.ensureFlagExists("compact",e),Re.ensureFlagExists("indentText",e),Re.ensureFlagExists("indentCdata",e),Re.ensureFlagExists("indentAttributes",e),Re.ensureFlagExists("indentInstruction",e),Re.ensureFlagExists("fullTagEmptyElement",e),Re.ensureFlagExists("noQuotesForNativeAttributes",e),Re.ensureSpacesExists(e),typeof e.spaces=="number"&&(e.spaces=Array(e.spaces+1).join(" ")),Re.ensureKeyExists("declaration",e),Re.ensureKeyExists("instruction",e),Re.ensureKeyExists("attributes",e),Re.ensureKeyExists("text",e),Re.ensureKeyExists("comment",e),Re.ensureKeyExists("cdata",e),Re.ensureKeyExists("doctype",e),Re.ensureKeyExists("type",e),Re.ensureKeyExists("name",e),Re.ensureKeyExists("elements",e),e}function ft(t,e,r){return(!r&&t.spaces?` -`:"")+Array(e+1).join(t.spaces)}function Cr(t,e,r){if(e.ignoreAttributes)return"";"attributesFn"in e&&(t=e.attributesFn(t,je,Ue));var a,l,u,o,i=[];for(a in t)t.hasOwnProperty(a)&&t[a]!==null&&t[a]!==void 0&&(o=e.noQuotesForNativeAttributes&&typeof t[a]!="string"?"":'"',l=""+t[a],l=l.replace(/"/g,"""),u="attributeNameFn"in e?e.attributeNameFn(a,l,je,Ue):a,i.push(e.spaces&&e.indentAttributes?ft(e,r+1,!1):" "),i.push(u+"="+o+("attributeValueFn"in e?e.attributeValueFn(l,a,je,Ue):l)+o));return t&&Object.keys(t).length&&e.spaces&&e.indentAttributes&&i.push(ft(e,r,!1)),i.join("")}function sa(t,e,r){return Ue=t,je="xml",e.ignoreDeclaration?"":""}function aa(t,e,r){if(e.ignoreInstruction)return"";var a;for(a in t)if(t.hasOwnProperty(a))break;var l="instructionNameFn"in e?e.instructionNameFn(a,t[a],je,Ue):a;if(typeof t[a]=="object")return Ue=t,je=l,"";var u=t[a]?t[a]:"";return"instructionFn"in e&&(u=e.instructionFn(u,a,je,Ue)),""}function oa(t,e){return e.ignoreComment?"":""}function ua(t,e){return e.ignoreCdata?"":"","]]]]>"))+"]]>"}function la(t,e){return e.ignoreDoctype?"":""}function ri(t,e){return e.ignoreText?"":(t=""+t,t=t.replace(/&/g,"&"),t=t.replace(/&/g,"&").replace(//g,">"),"textFn"in e?e.textFn(t,je,Ue):t)}function su(t,e){var r;if(t.elements&&t.elements.length)for(r=0;r"),t[e.elementsKey]&&t[e.elementsKey].length&&(a.push(ca(t[e.elementsKey],e,r+1)),Ue=t,je=t.name),a.push(e.spaces&&su(t,e)?` -`+Array(r+1).join(e.spaces):""),a.push("")):a.push("/>"),a.join("")}function ca(t,e,r,a){return t.reduce(function(l,u){var o=ft(e,r,a&&!l);switch(u.type){case"element":return l+o+au(u,e,r);case"comment":return l+o+oa(u[e.commentKey],e);case"doctype":return l+o+la(u[e.doctypeKey],e);case"cdata":return l+(e.indentCdata?o:"")+ua(u[e.cdataKey],e);case"text":return l+(e.indentText?o:"")+ri(u[e.textKey],e);case"instruction":var i={};return i[u[e.nameKey]]=u[e.attributesKey]?u:u[e.instructionKey],l+(e.indentInstruction?o:"")+aa(i,e,r)}},"")}function fa(t,e,r){var a;for(a in t)if(t.hasOwnProperty(a))switch(a){case e.parentKey:case e.attributesKey:break;case e.textKey:if(e.indentText||r)return!0;break;case e.cdataKey:if(e.indentCdata||r)return!0;break;case e.instructionKey:if(e.indentInstruction||r)return!0;break;case e.doctypeKey:case e.commentKey:return!0;default:return!0}return!1}function ou(t,e,r,a,l){Ue=t,je=e;var u="elementNameFn"in r?r.elementNameFn(e,t):e;if(typeof t>"u"||t===null||t==="")return"fullTagEmptyElementFn"in r&&r.fullTagEmptyElementFn(e,t)||r.fullTagEmptyElement?"<"+u+">":"<"+u+"/>";var o=[];if(e){if(o.push("<"+u),typeof t!="object")return o.push(">"+ri(t,r)+""),o.join("");t[r.attributesKey]&&o.push(Cr(t[r.attributesKey],r,a));var i=fa(t,r,!0)||t[r.attributesKey]&&t[r.attributesKey]["xml:space"]==="preserve";if(i||("fullTagEmptyElementFn"in r?i=r.fullTagEmptyElementFn(e,t):i=r.fullTagEmptyElement),i)o.push(">");else return o.push("/>"),o.join("")}return o.push(ha(t,r,a+1,!1)),Ue=t,je=e,e&&o.push((l?ft(r,a,!1):"")+""),o.join("")}function ha(t,e,r,a){var l,u,o,i=[];for(u in t)if(t.hasOwnProperty(u))for(o=nu(t[u])?t[u]:[t[u]],l=0;l{switch(t.type){case void 0:case"element":const e=new mu(t.name,t.attributes),r=t.elements||[];for(const a of r){const l=ni(a);l!==void 0&&e.push(l)}return e;case"text":return t.text;default:return}};class pu extends ge{}class mu extends se{static fromXmlString(e){const r=pa.xml2js(e,{compact:!1});return ni(r)}constructor(e,r){super(e),r&&this.root.push(new pu(r))}push(e){this.root.push(e)}}class gu extends se{constructor(e){super(""),this._attr=e}prepForXml(e){return{_attr:this._attr}}}class ma extends se{constructor(e,r){super(e),r&&(this.root=r.root)}}const Ge=t=>{if(isNaN(t))throw new Error(`Invalid value '${t}' specified. Must be an integer.`);return Math.floor(t)},Dr=t=>{const e=Ge(t);if(e<0)throw new Error(`Invalid value '${t}' specified. Must be a positive integer.`);return e},ga=(t,e)=>{const r=e*2;if(t.length!==r||isNaN(+`0x${t}`))throw new Error(`Invalid hex value '${t}'. Expected ${r} digit hex value`);return t},ls=t=>ga(t,1),wa=t=>{const e=t.slice(-2),r=t.substring(0,t.length-2);return`${Number(r)}${e}`},ya=t=>{const e=wa(t);if(parseFloat(e)<0)throw new Error(`Invalid value '${e}' specified. Expected a positive number.`);return e},Gt=t=>{if(t==="auto")return t;const e=t.charAt(0)==="#"?t.substring(1):t;return ga(e,3)},Nt=t=>typeof t=="string"?wa(t):Ge(t),wu=t=>typeof t=="string"?ya(t):Dr(t),at=t=>typeof t=="string"?ya(t):Dr(t),yu=Dr,vu=Dr,bu=t=>t.toISOString();class oe extends se{constructor(e,r=!0){super(e),r!==!0&&this.root.push(new Ce({val:r}))}}class kn extends se{constructor(e,r){super(e),this.root.push(new Ce({val:wu(r)}))}}class Wt extends se{constructor(e,r){super(e),this.root.push(new Ce({val:r}))}}const tr=(t,e)=>new vt({name:t,attributes:{value:{key:"w:val",value:e}}});class ii extends se{constructor(e,r){super(e),this.root.push(new Ce({val:r}))}}class At extends se{constructor(e,r){super(e),this.root.push(r)}}class vt extends se{constructor({name:e,attributes:r,children:a}){super(e),r&&this.root.push(new ar(r)),a&&this.root.push(...a)}}const ut={START:"start",CENTER:"center",END:"end",BOTH:"both",MEDIUM_KASHIDA:"mediumKashida",DISTRIBUTE:"distribute",NUM_TAB:"numTab",HIGH_KASHIDA:"highKashida",LOW_KASHIDA:"lowKashida",THAI_DISTRIBUTE:"thaiDistribute",LEFT:"left",RIGHT:"right",JUSTIFIED:"both"};class _u extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{val:"w:val"})}}class Eu extends se{constructor(e){super("w:jc"),this.root.push(new _u({val:e}))}}class ke extends se{constructor(e,{color:r,size:a,space:l,style:u}){super(e),this.root.push(new Tu({style:u,color:r===void 0?void 0:Gt(r),size:a===void 0?void 0:yu(a),space:l===void 0?void 0:vu(l)}))}}class Tu extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{style:"w:val",color:"w:color",size:"w:sz",space:"w:space"})}}const si={SINGLE:"single",DASH_DOT_STROKED:"dashDotStroked",DASHED:"dashed",DASH_SMALL_GAP:"dashSmallGap",DOT_DASH:"dotDash",DOT_DOT_DASH:"dotDotDash",DOTTED:"dotted",DOUBLE:"double",DOUBLE_WAVE:"doubleWave",INSET:"inset",NIL:"nil",NONE:"none",OUTSET:"outset",THICK:"thick",THICK_THIN_LARGE_GAP:"thickThinLargeGap",THICK_THIN_MEDIUM_GAP:"thickThinMediumGap",THICK_THIN_SMALL_GAP:"thickThinSmallGap",THIN_THICK_LARGE_GAP:"thinThickLargeGap",THIN_THICK_MEDIUM_GAP:"thinThickMediumGap",THIN_THICK_SMALL_GAP:"thinThickSmallGap",THIN_THICK_THIN_LARGE_GAP:"thinThickThinLargeGap",THIN_THICK_THIN_MEDIUM_GAP:"thinThickThinMediumGap",THIN_THICK_THIN_SMALL_GAP:"thinThickThinSmallGap",THREE_D_EMBOSS:"threeDEmboss",THREE_D_ENGRAVE:"threeDEngrave",TRIPLE:"triple",WAVE:"wave"};class xu extends kr{constructor(e){super("w:pBdr"),e.top&&this.root.push(new ke("w:top",e.top)),e.bottom&&this.root.push(new ke("w:bottom",e.bottom)),e.left&&this.root.push(new ke("w:left",e.left)),e.right&&this.root.push(new ke("w:right",e.right))}}class Su extends se{constructor(){super("w:pBdr");const e=new ke("w:bottom",{color:"auto",space:1,style:si.SINGLE,size:6});this.root.push(e)}}class Au extends se{constructor({start:e,end:r,left:a,right:l,hanging:u,firstLine:o}){super("w:ind"),this.root.push(new ar({start:{key:"w:start",value:e===void 0?void 0:Nt(e)},end:{key:"w:end",value:r===void 0?void 0:Nt(r)},left:{key:"w:left",value:a===void 0?void 0:Nt(a)},right:{key:"w:right",value:l===void 0?void 0:Nt(l)},hanging:{key:"w:hanging",value:u===void 0?void 0:at(u)},firstLine:{key:"w:firstLine",value:o===void 0?void 0:at(o)}}))}}let Ru=class extends se{constructor(){super("w:br")}};const ai={BEGIN:"begin",END:"end",SEPARATE:"separate"};class oi extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{type:"w:fldCharType",dirty:"w:dirty"})}}class hr extends se{constructor(e){super("w:fldChar"),this.root.push(new oi({type:ai.BEGIN,dirty:e}))}}class dr extends se{constructor(e){super("w:fldChar"),this.root.push(new oi({type:ai.SEPARATE,dirty:e}))}}class pr extends se{constructor(e){super("w:fldChar"),this.root.push(new oi({type:ai.END,dirty:e}))}}const Kt={DEFAULT:"default",PRESERVE:"preserve"};class Vt extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{space:"xml:space"})}}class Iu extends se{constructor(){super("w:instrText"),this.root.push(new Vt({space:Kt.PRESERVE})),this.root.push("PAGE")}}class ku extends se{constructor(){super("w:instrText"),this.root.push(new Vt({space:Kt.PRESERVE})),this.root.push("NUMPAGES")}}class Nu extends se{constructor(){super("w:instrText"),this.root.push(new Vt({space:Kt.PRESERVE})),this.root.push("SECTIONPAGES")}}class Ou extends se{constructor(){super("w:instrText"),this.root.push(new Vt({space:Kt.PRESERVE})),this.root.push("SECTION")}}class Cu extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{fill:"w:fill",color:"w:color",type:"w:val"})}}class va extends se{constructor({fill:e,color:r,type:a}){super("w:shd"),this.root.push(new Cu({fill:e===void 0?void 0:Gt(e),color:r===void 0?void 0:Gt(r),type:a}))}}class Du extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{id:"w:id",author:"w:author",date:"w:date"})}}const Pu={DOT:"dot"};class Lu extends se{constructor(e){super("w:em"),this.root.push(new Ce({val:e}))}}class Fu extends Lu{constructor(e=Pu.DOT){super(e)}}class Bu extends se{constructor(e){super("w:spacing"),this.root.push(new Ce({val:Nt(e)}))}}class Mu extends se{constructor(e){super("w:color"),this.root.push(new Ce({val:Gt(e)}))}}class Uu extends se{constructor(e){super("w:highlight"),this.root.push(new Ce({val:e}))}}class ju extends se{constructor(e){super("w:highlightCs"),this.root.push(new Ce({val:e}))}}const Wu=t=>new vt({name:"w:lang",attributes:{value:{key:"w:val",value:t.value},eastAsia:{key:"w:eastAsia",value:t.eastAsia},bidirectional:{key:"w:bidi",value:t.bidirectional}}});class cs extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{ascii:"w:ascii",cs:"w:cs",eastAsia:"w:eastAsia",hAnsi:"w:hAnsi",hint:"w:hint"})}}class Nn extends se{constructor(e,r){if(super("w:rFonts"),typeof e=="string"){const a=e;this.root.push(new cs({ascii:a,cs:a,eastAsia:a,hAnsi:a,hint:r}))}else{const a=e;this.root.push(new cs(a))}}}let ba=class extends se{constructor(e){super("w:vertAlign"),this.root.push(new Ce({val:e}))}};class zu extends ba{constructor(){super("superscript")}}class Hu extends ba{constructor(){super("subscript")}}const _a={SINGLE:"single",WORDS:"words",DOUBLE:"double",THICK:"thick",DOTTED:"dotted",DOTTEDHEAVY:"dottedHeavy",DASH:"dash",DASHEDHEAVY:"dashedHeavy",DASHLONG:"dashLong",DASHLONGHEAVY:"dashLongHeavy",DOTDASH:"dotDash",DASHDOTHEAVY:"dashDotHeavy",DOTDOTDASH:"dotDotDash",DASHDOTDOTHEAVY:"dashDotDotHeavy",WAVE:"wave",WAVYHEAVY:"wavyHeavy",WAVYDOUBLE:"wavyDouble",NONE:"none"};class Gu extends se{constructor(e=_a.SINGLE,r){super("w:u"),this.root.push(new Ce({val:e,color:r===void 0?void 0:Gt(r)}))}}class Ct extends kr{constructor(e){var r,a;if(super("w:rPr"),!e)return;e.noProof!==void 0&&this.push(new oe("w:noProof",e.noProof)),e.bold!==void 0&&this.push(new oe("w:b",e.bold)),(e.boldComplexScript===void 0&&e.bold!==void 0||e.boldComplexScript)&&this.push(new oe("w:bCs",(r=e.boldComplexScript)!=null?r:e.bold)),e.italics!==void 0&&this.push(new oe("w:i",e.italics)),(e.italicsComplexScript===void 0&&e.italics!==void 0||e.italicsComplexScript)&&this.push(new oe("w:iCs",(a=e.italicsComplexScript)!=null?a:e.italics)),e.underline&&this.push(new Gu(e.underline.type,e.underline.color)),e.effect&&this.push(new Wt("w:effect",e.effect)),e.emphasisMark&&this.push(new Fu(e.emphasisMark.type)),e.color&&this.push(new Mu(e.color)),e.kern&&this.push(new kn("w:kern",e.kern)),e.position&&this.push(new Wt("w:position",e.position)),e.size!==void 0&&this.push(new kn("w:sz",e.size));const l=e.sizeComplexScript===void 0||e.sizeComplexScript===!0?e.size:e.sizeComplexScript;l&&this.push(new kn("w:szCs",l)),e.rightToLeft!==void 0&&this.push(new oe("w:rtl",e.rightToLeft)),e.smallCaps!==void 0?this.push(new oe("w:smallCaps",e.smallCaps)):e.allCaps!==void 0&&this.push(new oe("w:caps",e.allCaps)),e.strike!==void 0&&this.push(new oe("w:strike",e.strike)),e.doubleStrike!==void 0&&this.push(new oe("w:dstrike",e.doubleStrike)),e.subScript&&this.push(new Hu),e.superScript&&this.push(new zu),e.style&&this.push(new Wt("w:rStyle",e.style)),e.font&&(typeof e.font=="string"?this.push(new Nn(e.font)):"name"in e.font?this.push(new Nn(e.font.name,e.font.hint)):this.push(new Nn(e.font))),e.highlight&&this.push(new Uu(e.highlight));const u=e.highlightComplexScript===void 0||e.highlightComplexScript===!0?e.highlight:e.highlightComplexScript;u&&this.push(new ju(u)),e.characterSpacing&&this.push(new Bu(e.characterSpacing)),e.emboss!==void 0&&this.push(new oe("w:emboss",e.emboss)),e.imprint!==void 0&&this.push(new oe("w:imprint",e.imprint)),e.shading&&this.push(new va(e.shading)),e.revision&&this.push(new Ku(e.revision)),e.border&&this.push(new ke("w:bdr",e.border)),e.snapToGrid!==void 0&&this.push(new oe("w:snapToGrid",e.snapToGrid)),e.vanish&&this.push(new oe("w:vanish",e.vanish)),e.specVanish&&this.push(new oe("w:specVanish",e.vanish)),e.scale!==void 0&&this.push(new ii("w:w",e.scale)),e.language&&this.push(Wu(e.language)),e.math&&this.push(new oe("w:oMath",e.math))}push(e){this.root.push(e)}}class Ku extends se{constructor(e){super("w:rPrChange"),this.root.push(new Du({id:e.id,author:e.author,date:e.date})),this.addChildElement(new Ct(e))}}class Un extends se{constructor(e){var r;return super("w:t"),typeof e=="string"?(this.root.push(new Vt({space:Kt.PRESERVE})),this.root.push(e),this):(this.root.push(new Vt({space:(r=e.space)!=null?r:Kt.DEFAULT})),this.root.push(e.text),this)}}const mr={CURRENT:"CURRENT",TOTAL_PAGES:"TOTAL_PAGES",TOTAL_PAGES_IN_SECTION:"TOTAL_PAGES_IN_SECTION",CURRENT_SECTION:"SECTION"};class Pr extends se{constructor(e){if(super("w:r"),ie(this,"properties"),this.properties=new Ct(e),this.root.push(this.properties),e.break)for(let r=0;r(r=e)=>{let a="",l=r;for(;l--;)a+=t[Math.random()*t.length|0];return a},Xu=(t=21)=>{let e="",r=t;for(;r--;)e+=Vu[Math.random()*64|0];return e};const st=t=>Math.floor(t*72*20),ui=(t=0)=>{let e=t;return()=>++e},Yu=()=>ui(),Zu=()=>ui(1),Qu=()=>ui(),Ju=()=>Xu().toLowerCase(),rr=t=>qu("1234567890abcdef",t)(),$u=()=>`${rr(8)}-${rr(4)}-${rr(4)}-${rr(4)}-${rr(12)}`;class el extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{id:"w:id",initials:"w:initials",author:"w:author",date:"w:date"})}}class tl extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{"xmlns:cx":"xmlns:cx","xmlns:cx1":"xmlns:cx1","xmlns:cx2":"xmlns:cx2","xmlns:cx3":"xmlns:cx3","xmlns:cx4":"xmlns:cx4","xmlns:cx5":"xmlns:cx5","xmlns:cx6":"xmlns:cx6","xmlns:cx7":"xmlns:cx7","xmlns:cx8":"xmlns:cx8","xmlns:mc":"xmlns:mc","xmlns:aink":"xmlns:aink","xmlns:am3d":"xmlns:am3d","xmlns:o":"xmlns:o","xmlns:r":"xmlns:r","xmlns:m":"xmlns:m","xmlns:v":"xmlns:v","xmlns:wp14":"xmlns:wp14","xmlns:wp":"xmlns:wp","xmlns:w10":"xmlns:w10","xmlns:w":"xmlns:w","xmlns:w14":"xmlns:w14","xmlns:w15":"xmlns:w15","xmlns:w16cex":"xmlns:w16cex","xmlns:w16cid":"xmlns:w16cid","xmlns:w16":"xmlns:w16","xmlns:w16sdtdh":"xmlns:w16sdtdh","xmlns:w16se":"xmlns:w16se","xmlns:wpg":"xmlns:wpg","xmlns:wpi":"xmlns:wpi","xmlns:wne":"xmlns:wne","xmlns:wps":"xmlns:wps"})}}class rl extends se{constructor({id:e,initials:r,author:a,date:l=new Date,children:u}){super("w:comment"),this.root.push(new el({id:e,initials:r,author:a,date:l.toISOString()}));for(const o of u)this.root.push(o)}}class nl extends se{constructor({children:e}){super("w:comments"),this.root.push(new tl({"xmlns:cx":"http://schemas.microsoft.com/office/drawing/2014/chartex","xmlns:cx1":"http://schemas.microsoft.com/office/drawing/2015/9/8/chartex","xmlns:cx2":"http://schemas.microsoft.com/office/drawing/2015/10/21/chartex","xmlns:cx3":"http://schemas.microsoft.com/office/drawing/2016/5/9/chartex","xmlns:cx4":"http://schemas.microsoft.com/office/drawing/2016/5/10/chartex","xmlns:cx5":"http://schemas.microsoft.com/office/drawing/2016/5/11/chartex","xmlns:cx6":"http://schemas.microsoft.com/office/drawing/2016/5/12/chartex","xmlns:cx7":"http://schemas.microsoft.com/office/drawing/2016/5/13/chartex","xmlns:cx8":"http://schemas.microsoft.com/office/drawing/2016/5/14/chartex","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","xmlns:aink":"http://schemas.microsoft.com/office/drawing/2016/ink","xmlns:am3d":"http://schemas.microsoft.com/office/drawing/2017/model3d","xmlns:o":"urn:schemas-microsoft-com:office:office","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:m":"http://schemas.openxmlformats.org/officeDocument/2006/math","xmlns:v":"urn:schemas-microsoft-com:vml","xmlns:wp14":"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing","xmlns:wp":"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing","xmlns:w10":"urn:schemas-microsoft-com:office:word","xmlns:w":"http://schemas.openxmlformats.org/wordprocessingml/2006/main","xmlns:w14":"http://schemas.microsoft.com/office/word/2010/wordml","xmlns:w15":"http://schemas.microsoft.com/office/word/2012/wordml","xmlns:w16cex":"http://schemas.microsoft.com/office/word/2018/wordml/cex","xmlns:w16cid":"http://schemas.microsoft.com/office/word/2016/wordml/cid","xmlns:w16":"http://schemas.microsoft.com/office/word/2018/wordml","xmlns:w16sdtdh":"http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash","xmlns:w16se":"http://schemas.microsoft.com/office/word/2015/wordml/symex","xmlns:wpg":"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup","xmlns:wpi":"http://schemas.microsoft.com/office/word/2010/wordprocessingInk","xmlns:wne":"http://schemas.microsoft.com/office/word/2006/wordml","xmlns:wps":"http://schemas.microsoft.com/office/word/2010/wordprocessingShape"}));for(const r of e)this.root.push(new rl(r))}}class il extends se{constructor(){super("w:pageBreakBefore")}}const jn={AT_LEAST:"atLeast",EXACTLY:"exactly",EXACT:"exact",AUTO:"auto"};class sl extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{after:"w:after",before:"w:before",line:"w:line",lineRule:"w:lineRule"})}}class al extends se{constructor(e){super("w:spacing"),this.root.push(new sl(e))}}const lh={HEADING_1:"Heading1",HEADING_2:"Heading2",HEADING_3:"Heading3",HEADING_4:"Heading4",HEADING_5:"Heading5",HEADING_6:"Heading6",TITLE:"Title"};let gr=class extends se{constructor(e){super("w:pStyle"),this.root.push(new Ce({val:e}))}};class ol extends se{constructor(e){super("w:tabs");for(const r of e)this.root.push(new ll(r))}}const hs={LEFT:"left",RIGHT:"right",CENTER:"center",BAR:"bar",CLEAR:"clear",DECIMAL:"decimal",END:"end",NUM:"num",START:"start"};class ul extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{val:"w:val",pos:"w:pos",leader:"w:leader"})}}class ll extends se{constructor({type:e,position:r,leader:a}){super("w:tab"),this.root.push(new ul({val:e,pos:r,leader:a}))}}class ds extends se{constructor(e,r){super("w:numPr"),this.root.push(new cl(r)),this.root.push(new fl(e))}}class cl extends se{constructor(e){if(super("w:ilvl"),e>9)throw new Error("Level cannot be greater than 9. Read more here: https://answers.microsoft.com/en-us/msoffice/forum/all/does-word-support-more-than-9-list-levels/d130fdcd-1781-446d-8c84-c6c79124e4d7");this.root.push(new Ce({val:e}))}}class fl extends se{constructor(e){super("w:numId"),this.root.push(new Ce({val:typeof e=="string"?`{${e}}`:e}))}}class hl extends se{constructor(){super(...arguments),ie(this,"fileChild",Symbol())}}class dl extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{id:"Id",type:"Type",target:"Target",targetMode:"TargetMode"})}}const pl={EXTERNAL:"External"};class ml extends se{constructor(e,r,a,l){super("Relationship"),this.root.push(new dl({id:e,type:r,target:a,targetMode:l}))}}class gl extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{id:"r:id",history:"w:history",anchor:"w:anchor"})}}class wl extends se{constructor(e,r,a){super("w:hyperlink"),ie(this,"linkId"),this.linkId=r;const l={history:1,anchor:a||void 0,id:a?void 0:`rId${this.linkId}`},u=new gl(l);this.root.push(u),e.forEach(o=>{this.root.push(o)})}}class yl extends se{constructor(e){super("w:externalHyperlink"),this.options=e}}class vl extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{id:"w:id",name:"w:name"})}}class bl extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{id:"w:id"})}}class _l{constructor(e){ie(this,"bookmarkUniqueNumericId",Qu()),ie(this,"start"),ie(this,"children"),ie(this,"end");const r=this.bookmarkUniqueNumericId();this.start=new El(e.id,r),this.children=e.children,this.end=new Tl(r)}}class El extends se{constructor(e,r){super("w:bookmarkStart");const a=new vl({name:e,id:r});this.root.push(a)}}class Tl extends se{constructor(e){super("w:bookmarkEnd");const r=new bl({id:e});this.root.push(r)}}class xl extends se{constructor(e){super("w:outlineLvl"),this.level=e,this.root.push(new Ce({val:e}))}}class Sl extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{verticalAlign:"w:val"})}}class Al extends se{constructor(e){super("w:vAlign"),this.root.push(new Sl({verticalAlign:e}))}}const zt={DEFAULT:"default",FIRST:"first",EVEN:"even"};class Rl extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{type:"w:type",id:"r:id"})}}const ps={HEADER:"w:headerReference",FOOTER:"w:footerReference"};class On extends se{constructor(e,r){super(e),this.root.push(new Rl({type:r.type||zt.DEFAULT,id:`rId${r.id}`}))}}class Il extends se{constructor({space:e,count:r,separate:a,equalWidth:l,children:u}){super("w:cols"),this.root.push(new ar({space:{key:"w:space",value:e===void 0?void 0:at(e)},count:{key:"w:num",value:r===void 0?void 0:Ge(r)},separate:{key:"w:sep",value:a},equalWidth:{key:"w:equalWidth",value:l}})),!l&&u&&u.forEach(o=>this.addChildElement(o))}}class kl extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{type:"w:type",linePitch:"w:linePitch",charSpace:"w:charSpace"})}}class Nl extends se{constructor(e,r,a){super("w:docGrid"),this.root.push(new kl({type:a,linePitch:Ge(e),charSpace:r?Ge(r):void 0}))}}const Ol=({countBy:t,start:e,restart:r,distance:a})=>new vt({name:"w:lnNumType",attributes:{countBy:{key:"w:countBy",value:t===void 0?void 0:Ge(t)},start:{key:"w:start",value:e===void 0?void 0:Ge(e)},restart:{key:"w:restart",value:r},distance:{key:"w:distance",value:a===void 0?void 0:at(a)}}});class ms extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{display:"w:display",offsetFrom:"w:offsetFrom",zOrder:"w:zOrder"})}}class Cl extends kr{constructor(e){if(super("w:pgBorders"),!e)return this;e.pageBorders?this.root.push(new ms({display:e.pageBorders.display,offsetFrom:e.pageBorders.offsetFrom,zOrder:e.pageBorders.zOrder})):this.root.push(new ms({})),e.pageBorderTop&&this.root.push(new ke("w:top",e.pageBorderTop)),e.pageBorderLeft&&this.root.push(new ke("w:left",e.pageBorderLeft)),e.pageBorderBottom&&this.root.push(new ke("w:bottom",e.pageBorderBottom)),e.pageBorderRight&&this.root.push(new ke("w:right",e.pageBorderRight))}}class Dl extends se{constructor(e,r,a,l,u,o,i){super("w:pgMar"),this.root.push(new ar({top:{key:"w:top",value:Nt(e)},right:{key:"w:right",value:at(r)},bottom:{key:"w:bottom",value:Nt(a)},left:{key:"w:left",value:at(l)},header:{key:"w:header",value:at(u)},footer:{key:"w:footer",value:at(o)},gutter:{key:"w:gutter",value:at(i)}}))}}class Pl extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{start:"w:start",formatType:"w:fmt",separator:"w:chapSep"})}}class Ll extends se{constructor({start:e,formatType:r,separator:a}){super("w:pgNumType"),this.root.push(new Pl({start:e===void 0?void 0:Ge(e),formatType:r,separator:a}))}}const Ea={PORTRAIT:"portrait",LANDSCAPE:"landscape"};class Fl extends se{constructor(e,r,a){super("w:pgSz");const l=a===Ea.LANDSCAPE,u=at(e),o=at(r);this.root.push(new ar({width:{key:"w:w",value:l?o:u},height:{key:"w:h",value:l?u:o},orientation:{key:"w:orient",value:a}}))}}class Bl extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{val:"w:val"})}}class Ml extends se{constructor(e){super("w:textDirection"),this.root.push(new Bl({val:e}))}}class Ul extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{val:"w:val"})}}class jl extends se{constructor(e){super("w:type"),this.root.push(new Ul({val:e}))}}const Rt={TOP:1440,RIGHT:1440,BOTTOM:1440,LEFT:1440,HEADER:708,FOOTER:708,GUTTER:0},Cn={WIDTH:11906,HEIGHT:16838,ORIENTATION:Ea.PORTRAIT};class Wl extends se{constructor({page:{size:{width:e=Cn.WIDTH,height:r=Cn.HEIGHT,orientation:a=Cn.ORIENTATION}={},margin:{top:l=Rt.TOP,right:u=Rt.RIGHT,bottom:o=Rt.BOTTOM,left:i=Rt.LEFT,header:c=Rt.HEADER,footer:w=Rt.FOOTER,gutter:y=Rt.GUTTER}={},pageNumbers:x={},borders:_,textDirection:p}={},grid:{linePitch:T=360,charSpace:v,type:E}={},headerWrapperGroup:d={},footerWrapperGroup:S={},lineNumbers:R,titlePage:D,verticalAlign:C,column:V,type:H}={}){super("w:sectPr"),this.addHeaderFooterGroup(ps.HEADER,d),this.addHeaderFooterGroup(ps.FOOTER,S),H&&this.root.push(new jl(H)),this.root.push(new Fl(e,r,a)),this.root.push(new Dl(l,u,o,i,c,w,y)),_&&this.root.push(new Cl(_)),R&&this.root.push(Ol(R)),this.root.push(new Ll(x)),V&&this.root.push(new Il(V)),C&&this.root.push(new Al(C)),D!==void 0&&this.root.push(new oe("w:titlePg",D)),p&&this.root.push(new Ml(p)),this.root.push(new Nl(T,v,E))}addHeaderFooterGroup(e,r){r.default&&this.root.push(new On(e,{type:zt.DEFAULT,id:r.default.View.ReferenceId})),r.first&&this.root.push(new On(e,{type:zt.FIRST,id:r.first.View.ReferenceId})),r.even&&this.root.push(new On(e,{type:zt.EVEN,id:r.even.View.ReferenceId}))}}class zl extends se{constructor(){super("w:body"),ie(this,"sections",[])}addSection(e){const r=this.sections.pop();this.root.push(this.createSectionParagraph(r)),this.sections.push(new Wl(e))}prepForXml(e){return this.sections.length===1&&(this.root.splice(0,1),this.root.push(this.sections.pop())),super.prepForXml(e)}push(e){this.root.push(e)}createSectionParagraph(e){const r=new Wn({}),a=new qt({});return a.push(e),r.addChildElement(a),r}}class ur extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",Ignorable:"mc:Ignorable",cp:"xmlns:cp",dc:"xmlns:dc",dcterms:"xmlns:dcterms",dcmitype:"xmlns:dcmitype",xsi:"xmlns:xsi",type:"xsi:type",cx:"xmlns:cx",cx1:"xmlns:cx1",cx2:"xmlns:cx2",cx3:"xmlns:cx3",cx4:"xmlns:cx4",cx5:"xmlns:cx5",cx6:"xmlns:cx6",cx7:"xmlns:cx7",cx8:"xmlns:cx8",aink:"xmlns:aink",am3d:"xmlns:am3d",w16cex:"xmlns:w16cex",w16cid:"xmlns:w16cid",w16:"xmlns:w16",w16sdtdh:"xmlns:w16sdtdh",w16se:"xmlns:w16se"})}}class Hl extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{color:"w:color",themeColor:"w:themeColor",themeShade:"w:themeShade",themeTint:"w:themeTint"})}}class Gl extends se{constructor(e){super("w:background"),this.root.push(new Hl({color:e.color===void 0?void 0:Gt(e.color),themeColor:e.themeColor,themeShade:e.themeShade===void 0?void 0:ls(e.themeShade),themeTint:e.themeTint===void 0?void 0:ls(e.themeTint)}))}}class Kl extends se{constructor(e){super("w:document"),ie(this,"body"),this.root.push(new ur({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",cx:"http://schemas.microsoft.com/office/drawing/2014/chartex",cx1:"http://schemas.microsoft.com/office/drawing/2015/9/8/chartex",cx2:"http://schemas.microsoft.com/office/drawing/2015/10/21/chartex",cx3:"http://schemas.microsoft.com/office/drawing/2016/5/9/chartex",cx4:"http://schemas.microsoft.com/office/drawing/2016/5/10/chartex",cx5:"http://schemas.microsoft.com/office/drawing/2016/5/11/chartex",cx6:"http://schemas.microsoft.com/office/drawing/2016/5/12/chartex",cx7:"http://schemas.microsoft.com/office/drawing/2016/5/13/chartex",cx8:"http://schemas.microsoft.com/office/drawing/2016/5/14/chartex",aink:"http://schemas.microsoft.com/office/drawing/2016/ink",am3d:"http://schemas.microsoft.com/office/drawing/2017/model3d",w16cex:"http://schemas.microsoft.com/office/word/2018/wordml/cex",w16cid:"http://schemas.microsoft.com/office/word/2016/wordml/cid",w16:"http://schemas.microsoft.com/office/word/2018/wordml",w16sdtdh:"http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash",w16se:"http://schemas.microsoft.com/office/word/2015/wordml/symex",Ignorable:"w14 w15 wp14"})),this.body=new zl,e.background&&this.root.push(new Gl(e.background)),this.root.push(this.body)}add(e){return this.body.push(e),this}get Body(){return this.body}}class Vl extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{xmlns:"xmlns"})}}class Zt extends se{constructor(){super("Relationships"),this.root.push(new Vl({xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"}))}createRelationship(e,r,a,l){const u=new ml(`rId${e}`,r,a,l);return this.root.push(u),u}get RelationshipCount(){return this.root.length-1}}class Ta{constructor(e){ie(this,"document"),ie(this,"relationships"),this.document=new Kl(e),this.relationships=new Zt}get View(){return this.document}get Relationships(){return this.relationships}}class ql extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{val:"w:val"})}}class Xl extends se{constructor(){super("w:wordWrap"),this.root.push(new ql({val:0}))}}const Yl=t=>{var e,r;return new vt({name:"w:framePr",attributes:{anchorLock:{key:"w:anchorLock",value:t.anchorLock},dropCap:{key:"w:dropCap",value:t.dropCap},width:{key:"w:w",value:t.width},height:{key:"w:h",value:t.height},x:{key:"w:x",value:t.position?t.position.x:void 0},y:{key:"w:y",value:t.position?t.position.y:void 0},anchorHorizontal:{key:"w:hAnchor",value:t.anchor.horizontal},anchorVertical:{key:"w:vAnchor",value:t.anchor.vertical},spaceHorizontal:{key:"w:hSpace",value:(e=t.space)==null?void 0:e.horizontal},spaceVertical:{key:"w:vSpace",value:(r=t.space)==null?void 0:r.vertical},rule:{key:"w:hRule",value:t.rule},alignmentX:{key:"w:xAlign",value:t.alignment?t.alignment.x:void 0},alignmentY:{key:"w:yAlign",value:t.alignment?t.alignment.y:void 0},lines:{key:"w:lines",value:t.lines},wrap:{key:"w:wrap",value:t.wrap}}})};class qt extends kr{constructor(e){var r,a;if(super("w:pPr"),ie(this,"numberingReferences",[]),!e)return this;e.heading&&this.push(new gr(e.heading)),e.bullet&&this.push(new gr("ListParagraph")),e.numbering&&!e.style&&!e.heading&&(e.numbering.custom||this.push(new gr("ListParagraph"))),e.style&&this.push(new gr(e.style)),e.keepNext!==void 0&&this.push(new oe("w:keepNext",e.keepNext)),e.keepLines!==void 0&&this.push(new oe("w:keepLines",e.keepLines)),e.pageBreakBefore&&this.push(new il),e.frame&&this.push(Yl(e.frame)),e.widowControl!==void 0&&this.push(new oe("w:widowControl",e.widowControl)),e.bullet&&this.push(new ds(1,e.bullet.level)),e.numbering&&(this.numberingReferences.push({reference:e.numbering.reference,instance:(r=e.numbering.instance)!=null?r:0}),this.push(new ds(`${e.numbering.reference}-${(a=e.numbering.instance)!=null?a:0}`,e.numbering.level))),e.border&&this.push(new xu(e.border)),e.thematicBreak&&this.push(new Su),e.shading&&this.push(new va(e.shading)),e.wordWrap&&this.push(new Xl),e.overflowPunctuation&&this.push(new oe("w:overflowPunct",e.overflowPunctuation));const l=[...e.rightTabStop!==void 0?[{type:hs.RIGHT,position:e.rightTabStop}]:[],...e.tabStops?e.tabStops:[],...e.leftTabStop!==void 0?[{type:hs.LEFT,position:e.leftTabStop}]:[]];l.length>0&&this.push(new ol(l)),e.bidirectional!==void 0&&this.push(new oe("w:bidi",e.bidirectional)),e.spacing&&this.push(new al(e.spacing)),e.indent&&this.push(new Au(e.indent)),e.contextualSpacing!==void 0&&this.push(new oe("w:contextualSpacing",e.contextualSpacing)),e.alignment&&this.push(new Eu(e.alignment)),e.outlineLevel!==void 0&&this.push(new xl(e.outlineLevel)),e.suppressLineNumbers!==void 0&&this.push(new oe("w:suppressLineNumbers",e.suppressLineNumbers)),e.autoSpaceEastAsianText!==void 0&&this.push(new oe("w:autoSpaceDN",e.autoSpaceEastAsianText)),e.run&&this.push(new Ct(e.run))}push(e){this.root.push(e)}prepForXml(e){if(e.viewWrapper instanceof Ta)for(const r of this.numberingReferences)e.file.Numbering.createConcreteNumberingInstance(r.reference,r.instance);return super.prepForXml(e)}}class Wn extends hl{constructor(e){if(super("w:p"),ie(this,"properties"),typeof e=="string")return this.properties=new qt({}),this.root.push(this.properties),this.root.push(new fs(e)),this;if(this.properties=new qt(e),this.root.push(this.properties),e.text&&this.root.push(new fs(e.text)),e.children)for(const r of e.children){if(r instanceof _l){this.root.push(r.start);for(const a of r.children)this.root.push(a);this.root.push(r.end);continue}this.root.push(r)}}prepForXml(e){for(const r of this.root)if(r instanceof yl){const a=this.root.indexOf(r),l=new wl(r.options.children,Ju());e.viewWrapper.Relationships.createRelationship(l.linkId,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",r.options.link,pl.EXTERNAL),this.root[a]=l}return super.prepForXml(e)}addRunToFront(e){return this.root.splice(1,0,e),this}}const Ft={style:si.NONE,size:0,color:"auto"},Bt={style:si.SINGLE,size:4,color:"auto"};class Zl extends se{constructor(e){super("w:tblBorders"),e.top?this.root.push(new ke("w:top",e.top)):this.root.push(new ke("w:top",Bt)),e.left?this.root.push(new ke("w:left",e.left)):this.root.push(new ke("w:left",Bt)),e.bottom?this.root.push(new ke("w:bottom",e.bottom)):this.root.push(new ke("w:bottom",Bt)),e.right?this.root.push(new ke("w:right",e.right)):this.root.push(new ke("w:right",Bt)),e.insideHorizontal?this.root.push(new ke("w:insideH",e.insideHorizontal)):this.root.push(new ke("w:insideH",Bt)),e.insideVertical?this.root.push(new ke("w:insideV",e.insideVertical)):this.root.push(new ke("w:insideV",Bt))}}ie(Zl,"NONE",{top:Ft,bottom:Ft,left:Ft,right:Ft,insideHorizontal:Ft,insideVertical:Ft});class Ql extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{xmlns:"xmlns",vt:"xmlns:vt"})}}class Jl extends se{constructor(){super("Properties"),this.root.push(new Ql({xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"}))}}class $l extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{xmlns:"xmlns"})}}class ec extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{contentType:"ContentType",extension:"Extension"})}}class yt extends se{constructor(e,r){super("Default"),this.root.push(new ec({contentType:e,extension:r}))}}class tc extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{contentType:"ContentType",partName:"PartName"})}}class $e extends se{constructor(e,r){super("Override"),this.root.push(new tc({contentType:e,partName:r}))}}class rc extends se{constructor(){super("Types"),this.root.push(new $l({xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"})),this.root.push(new yt("image/png","png")),this.root.push(new yt("image/jpeg","jpeg")),this.root.push(new yt("image/jpeg","jpg")),this.root.push(new yt("image/bmp","bmp")),this.root.push(new yt("image/gif","gif")),this.root.push(new yt("application/vnd.openxmlformats-package.relationships+xml","rels")),this.root.push(new yt("application/xml","xml")),this.root.push(new yt("application/vnd.openxmlformats-officedocument.obfuscatedFont","odttf")),this.root.push(new $e("application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml","/word/document.xml")),this.root.push(new $e("application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml","/word/styles.xml")),this.root.push(new $e("application/vnd.openxmlformats-package.core-properties+xml","/docProps/core.xml")),this.root.push(new $e("application/vnd.openxmlformats-officedocument.custom-properties+xml","/docProps/custom.xml")),this.root.push(new $e("application/vnd.openxmlformats-officedocument.extended-properties+xml","/docProps/app.xml")),this.root.push(new $e("application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml","/word/numbering.xml")),this.root.push(new $e("application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml","/word/footnotes.xml")),this.root.push(new $e("application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml","/word/settings.xml")),this.root.push(new $e("application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml","/word/comments.xml")),this.root.push(new $e("application/vnd.openxmlformats-officedocument.wordprocessingml.fontTable+xml","/word/fontTable.xml"))}addFooter(e){this.root.push(new $e("application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml",`/word/footer${e}.xml`))}addHeader(e){this.root.push(new $e("application/vnd.openxmlformats-officedocument.wordprocessingml.header+xml",`/word/header${e}.xml`))}}class nc extends se{constructor(e){super("cp:coreProperties"),this.root.push(new ur({cp:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",xsi:"http://www.w3.org/2001/XMLSchema-instance"})),e.title&&this.root.push(new At("dc:title",e.title)),e.subject&&this.root.push(new At("dc:subject",e.subject)),e.creator&&this.root.push(new At("dc:creator",e.creator)),e.keywords&&this.root.push(new At("cp:keywords",e.keywords)),e.description&&this.root.push(new At("dc:description",e.description)),e.lastModifiedBy&&this.root.push(new At("cp:lastModifiedBy",e.lastModifiedBy)),e.revision&&this.root.push(new At("cp:revision",String(e.revision))),this.root.push(new gs("dcterms:created")),this.root.push(new gs("dcterms:modified"))}}class gs extends se{constructor(e){super(e),this.root.push(new ur({type:"dcterms:W3CDTF"})),this.root.push(bu(new Date))}}class ic extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{xmlns:"xmlns",vt:"xmlns:vt"})}}class sc extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{fmtid:"fmtid",pid:"pid",name:"name"})}}class ac extends se{constructor(e,r){super("property"),this.root.push(new sc({fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:e.toString(),name:r.name})),this.root.push(new oc(r.value))}}class oc extends se{constructor(e){super("vt:lpwstr"),this.root.push(e)}}class uc extends se{constructor(e){super("Properties"),ie(this,"nextId"),ie(this,"properties",[]),this.root.push(new ic({xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"})),this.nextId=2;for(const r of e)this.addCustomProperty(r)}prepForXml(e){return this.properties.forEach(r=>this.root.push(r)),super.prepForXml(e)}addCustomProperty(e){this.properties.push(new ac(this.nextId++,e))}}class lc extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",cp:"xmlns:cp",dc:"xmlns:dc",dcterms:"xmlns:dcterms",dcmitype:"xmlns:dcmitype",xsi:"xmlns:xsi",type:"xsi:type"})}}let cc=class extends ma{constructor(e,r){super("w:ftr",r),ie(this,"refId"),this.refId=e,r||this.root.push(new lc({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape"}))}get ReferenceId(){return this.refId}add(e){this.root.push(e)}};class fc{constructor(e,r,a){ie(this,"footer"),ie(this,"relationships"),this.media=e,this.footer=new cc(r,a),this.relationships=new Zt}add(e){this.footer.add(e)}addChildElement(e){this.footer.addChildElement(e)}get View(){return this.footer}get Relationships(){return this.relationships}get Media(){return this.media}}class hc extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{type:"w:type",id:"w:id"})}}class dc extends se{constructor(){super("w:footnoteRef")}}class pc extends Pr{constructor(){super({style:"FootnoteReference"}),this.root.push(new dc)}}const ws={SEPERATOR:"separator",CONTINUATION_SEPERATOR:"continuationSeparator"};class Dn extends se{constructor(e){super("w:footnote"),this.root.push(new hc({type:e.type,id:e.id}));for(let r=0;r9)throw new Error("Level cannot be greater than 9. Read more here: https://answers.microsoft.com/en-us/msoffice/forum/all/does-word-support-more-than-9-list-levels/d130fdcd-1781-446d-8c84-c6c79124e4d7");this.root.push(new Ac({ilvl:Ge(e),tentative:1}))}}class Dc extends Cc{}class Pc extends se{constructor(e){super("w:multiLevelType"),this.root.push(new Ce({val:e}))}}class Lc extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{abstractNumId:"w:abstractNumId",restartNumberingAfterBreak:"w15:restartNumberingAfterBreak"})}}class ys extends se{constructor(e,r){super("w:abstractNum"),ie(this,"id"),this.root.push(new Lc({abstractNumId:Ge(e),restartNumberingAfterBreak:0})),this.root.push(new Pc("hybridMultilevel")),this.id=e;for(const a of r)this.root.push(new Dc(a))}}class Fc extends se{constructor(e){super("w:abstractNumId"),this.root.push(new Ce({val:e}))}}class Bc extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{numId:"w:numId"})}}class vs extends se{constructor(e){if(super("w:num"),ie(this,"numId"),ie(this,"reference"),ie(this,"instance"),this.numId=e.numId,this.reference=e.reference,this.instance=e.instance,this.root.push(new Bc({numId:Ge(e.numId)})),this.root.push(new Fc(Ge(e.abstractNumId))),e.overrideLevels&&e.overrideLevels.length)for(const r of e.overrideLevels)this.root.push(new Uc(r.num,r.start))}}class Mc extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{ilvl:"w:ilvl"})}}class Uc extends se{constructor(e,r){super("w:lvlOverride"),this.root.push(new Mc({ilvl:e})),r!==void 0&&this.root.push(new Wc(r))}}class jc extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{val:"w:val"})}}class Wc extends se{constructor(e){super("w:startOverride"),this.root.push(new jc({val:e}))}}class zc extends se{constructor(e){super("w:numbering"),ie(this,"abstractNumberingMap",new Map),ie(this,"concreteNumberingMap",new Map),ie(this,"referenceConfigMap",new Map),ie(this,"abstractNumUniqueNumericId",Yu()),ie(this,"concreteNumUniqueNumericId",Zu()),this.root.push(new ur({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",Ignorable:"w14 w15 wp14"}));const r=new ys(this.abstractNumUniqueNumericId(),[{level:0,format:dt.BULLET,text:"●",alignment:ut.LEFT,style:{paragraph:{indent:{left:st(.5),hanging:st(.25)}}}},{level:1,format:dt.BULLET,text:"○",alignment:ut.LEFT,style:{paragraph:{indent:{left:st(1),hanging:st(.25)}}}},{level:2,format:dt.BULLET,text:"■",alignment:ut.LEFT,style:{paragraph:{indent:{left:2160,hanging:st(.25)}}}},{level:3,format:dt.BULLET,text:"●",alignment:ut.LEFT,style:{paragraph:{indent:{left:2880,hanging:st(.25)}}}},{level:4,format:dt.BULLET,text:"○",alignment:ut.LEFT,style:{paragraph:{indent:{left:3600,hanging:st(.25)}}}},{level:5,format:dt.BULLET,text:"■",alignment:ut.LEFT,style:{paragraph:{indent:{left:4320,hanging:st(.25)}}}},{level:6,format:dt.BULLET,text:"●",alignment:ut.LEFT,style:{paragraph:{indent:{left:5040,hanging:st(.25)}}}},{level:7,format:dt.BULLET,text:"●",alignment:ut.LEFT,style:{paragraph:{indent:{left:5760,hanging:st(.25)}}}},{level:8,format:dt.BULLET,text:"●",alignment:ut.LEFT,style:{paragraph:{indent:{left:6480,hanging:st(.25)}}}}]);this.concreteNumberingMap.set("default-bullet-numbering",new vs({numId:1,abstractNumId:r.id,reference:"default-bullet-numbering",instance:0,overrideLevels:[{num:0,start:1}]})),this.abstractNumberingMap.set("default-bullet-numbering",r);for(const a of e.config)this.abstractNumberingMap.set(a.reference,new ys(this.abstractNumUniqueNumericId(),a.levels)),this.referenceConfigMap.set(a.reference,a.levels)}prepForXml(e){for(const r of this.abstractNumberingMap.values())this.root.push(r);for(const r of this.concreteNumberingMap.values())this.root.push(r);return super.prepForXml(e)}createConcreteNumberingInstance(e,r){const a=this.abstractNumberingMap.get(e);if(!a)return;const l=`${e}-${r}`;if(this.concreteNumberingMap.has(l))return;const u=this.referenceConfigMap.get(e),o=u&&u[0].start,i={numId:this.concreteNumUniqueNumericId(),abstractNumId:a.id,reference:e,instance:r,overrideLevels:[o&&Number.isInteger(o)?{num:0,start:o}:{num:0,start:1}]};this.concreteNumberingMap.set(l,new vs(i))}get ConcreteNumbering(){return Array.from(this.concreteNumberingMap.values())}get ReferenceConfig(){return Array.from(this.referenceConfigMap.values())}}class Hc extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{version:"w:val",name:"w:name",uri:"w:uri"})}}class Gc extends se{constructor(e){super("w:compatSetting"),this.root.push(new Hc({version:e,uri:"http://schemas.microsoft.com/office/word",name:"compatibilityMode"}))}}class Kc extends se{constructor(e){super("w:compat"),e.version&&this.root.push(new Gc(e.version)),e.useSingleBorderforContiguousCells&&this.root.push(new oe("w:useSingleBorderforContiguousCells",e.useSingleBorderforContiguousCells)),e.wordPerfectJustification&&this.root.push(new oe("w:wpJustification",e.wordPerfectJustification)),e.noTabStopForHangingIndent&&this.root.push(new oe("w:noTabHangInd",e.noTabStopForHangingIndent)),e.noLeading&&this.root.push(new oe("w:noLeading",e.noLeading)),e.spaceForUnderline&&this.root.push(new oe("w:spaceForUL",e.spaceForUnderline)),e.noColumnBalance&&this.root.push(new oe("w:noColumnBalance",e.noColumnBalance)),e.balanceSingleByteDoubleByteWidth&&this.root.push(new oe("w:balanceSingleByteDoubleByteWidth",e.balanceSingleByteDoubleByteWidth)),e.noExtraLineSpacing&&this.root.push(new oe("w:noExtraLineSpacing",e.noExtraLineSpacing)),e.doNotLeaveBackslashAlone&&this.root.push(new oe("w:doNotLeaveBackslashAlone",e.doNotLeaveBackslashAlone)),e.underlineTrailingSpaces&&this.root.push(new oe("w:ulTrailSpace",e.underlineTrailingSpaces)),e.doNotExpandShiftReturn&&this.root.push(new oe("w:doNotExpandShiftReturn",e.doNotExpandShiftReturn)),e.spacingInWholePoints&&this.root.push(new oe("w:spacingInWholePoints",e.spacingInWholePoints)),e.lineWrapLikeWord6&&this.root.push(new oe("w:lineWrapLikeWord6",e.lineWrapLikeWord6)),e.printBodyTextBeforeHeader&&this.root.push(new oe("w:printBodyTextBeforeHeader",e.printBodyTextBeforeHeader)),e.printColorsBlack&&this.root.push(new oe("w:printColBlack",e.printColorsBlack)),e.spaceWidth&&this.root.push(new oe("w:wpSpaceWidth",e.spaceWidth)),e.showBreaksInFrames&&this.root.push(new oe("w:showBreaksInFrames",e.showBreaksInFrames)),e.subFontBySize&&this.root.push(new oe("w:subFontBySize",e.subFontBySize)),e.suppressBottomSpacing&&this.root.push(new oe("w:suppressBottomSpacing",e.suppressBottomSpacing)),e.suppressTopSpacing&&this.root.push(new oe("w:suppressTopSpacing",e.suppressTopSpacing)),e.suppressSpacingAtTopOfPage&&this.root.push(new oe("w:suppressSpacingAtTopOfPage",e.suppressSpacingAtTopOfPage)),e.suppressTopSpacingWP&&this.root.push(new oe("w:suppressTopSpacingWP",e.suppressTopSpacingWP)),e.suppressSpBfAfterPgBrk&&this.root.push(new oe("w:suppressSpBfAfterPgBrk",e.suppressSpBfAfterPgBrk)),e.swapBordersFacingPages&&this.root.push(new oe("w:swapBordersFacingPages",e.swapBordersFacingPages)),e.convertMailMergeEsc&&this.root.push(new oe("w:convMailMergeEsc",e.convertMailMergeEsc)),e.truncateFontHeightsLikeWP6&&this.root.push(new oe("w:truncateFontHeightsLikeWP6",e.truncateFontHeightsLikeWP6)),e.macWordSmallCaps&&this.root.push(new oe("w:mwSmallCaps",e.macWordSmallCaps)),e.usePrinterMetrics&&this.root.push(new oe("w:usePrinterMetrics",e.usePrinterMetrics)),e.doNotSuppressParagraphBorders&&this.root.push(new oe("w:doNotSuppressParagraphBorders",e.doNotSuppressParagraphBorders)),e.wrapTrailSpaces&&this.root.push(new oe("w:wrapTrailSpaces",e.wrapTrailSpaces)),e.footnoteLayoutLikeWW8&&this.root.push(new oe("w:footnoteLayoutLikeWW8",e.footnoteLayoutLikeWW8)),e.shapeLayoutLikeWW8&&this.root.push(new oe("w:shapeLayoutLikeWW8",e.shapeLayoutLikeWW8)),e.alignTablesRowByRow&&this.root.push(new oe("w:alignTablesRowByRow",e.alignTablesRowByRow)),e.forgetLastTabAlignment&&this.root.push(new oe("w:forgetLastTabAlignment",e.forgetLastTabAlignment)),e.adjustLineHeightInTable&&this.root.push(new oe("w:adjustLineHeightInTable",e.adjustLineHeightInTable)),e.autoSpaceLikeWord95&&this.root.push(new oe("w:autoSpaceLikeWord95",e.autoSpaceLikeWord95)),e.noSpaceRaiseLower&&this.root.push(new oe("w:noSpaceRaiseLower",e.noSpaceRaiseLower)),e.doNotUseHTMLParagraphAutoSpacing&&this.root.push(new oe("w:doNotUseHTMLParagraphAutoSpacing",e.doNotUseHTMLParagraphAutoSpacing)),e.layoutRawTableWidth&&this.root.push(new oe("w:layoutRawTableWidth",e.layoutRawTableWidth)),e.layoutTableRowsApart&&this.root.push(new oe("w:layoutTableRowsApart",e.layoutTableRowsApart)),e.useWord97LineBreakRules&&this.root.push(new oe("w:useWord97LineBreakRules",e.useWord97LineBreakRules)),e.doNotBreakWrappedTables&&this.root.push(new oe("w:doNotBreakWrappedTables",e.doNotBreakWrappedTables)),e.doNotSnapToGridInCell&&this.root.push(new oe("w:doNotSnapToGridInCell",e.doNotSnapToGridInCell)),e.selectFieldWithFirstOrLastCharacter&&this.root.push(new oe("w:selectFldWithFirstOrLastChar",e.selectFieldWithFirstOrLastCharacter)),e.applyBreakingRules&&this.root.push(new oe("w:applyBreakingRules",e.applyBreakingRules)),e.doNotWrapTextWithPunctuation&&this.root.push(new oe("w:doNotWrapTextWithPunct",e.doNotWrapTextWithPunctuation)),e.doNotUseEastAsianBreakRules&&this.root.push(new oe("w:doNotUseEastAsianBreakRules",e.doNotUseEastAsianBreakRules)),e.useWord2002TableStyleRules&&this.root.push(new oe("w:useWord2002TableStyleRules",e.useWord2002TableStyleRules)),e.growAutofit&&this.root.push(new oe("w:growAutofit",e.growAutofit)),e.useFELayout&&this.root.push(new oe("w:useFELayout",e.useFELayout)),e.useNormalStyleForList&&this.root.push(new oe("w:useNormalStyleForList",e.useNormalStyleForList)),e.doNotUseIndentAsNumberingTabStop&&this.root.push(new oe("w:doNotUseIndentAsNumberingTabStop",e.doNotUseIndentAsNumberingTabStop)),e.useAlternateEastAsianLineBreakRules&&this.root.push(new oe("w:useAltKinsokuLineBreakRules",e.useAlternateEastAsianLineBreakRules)),e.allowSpaceOfSameStyleInTable&&this.root.push(new oe("w:allowSpaceOfSameStyleInTable",e.allowSpaceOfSameStyleInTable)),e.doNotSuppressIndentation&&this.root.push(new oe("w:doNotSuppressIndentation",e.doNotSuppressIndentation)),e.doNotAutofitConstrainedTables&&this.root.push(new oe("w:doNotAutofitConstrainedTables",e.doNotAutofitConstrainedTables)),e.autofitToFirstFixedWidthCell&&this.root.push(new oe("w:autofitToFirstFixedWidthCell",e.autofitToFirstFixedWidthCell)),e.underlineTabInNumberingList&&this.root.push(new oe("w:underlineTabInNumList",e.underlineTabInNumberingList)),e.displayHangulFixedWidth&&this.root.push(new oe("w:displayHangulFixedWidth",e.displayHangulFixedWidth)),e.splitPgBreakAndParaMark&&this.root.push(new oe("w:splitPgBreakAndParaMark",e.splitPgBreakAndParaMark)),e.doNotVerticallyAlignCellWithSp&&this.root.push(new oe("w:doNotVertAlignCellWithSp",e.doNotVerticallyAlignCellWithSp)),e.doNotBreakConstrainedForcedTable&&this.root.push(new oe("w:doNotBreakConstrainedForcedTable",e.doNotBreakConstrainedForcedTable)),e.ignoreVerticalAlignmentInTextboxes&&this.root.push(new oe("w:doNotVertAlignInTxbx",e.ignoreVerticalAlignmentInTextboxes)),e.useAnsiKerningPairs&&this.root.push(new oe("w:useAnsiKerningPairs",e.useAnsiKerningPairs)),e.cachedColumnBalance&&this.root.push(new oe("w:cachedColBalance",e.cachedColumnBalance))}}class Vc extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",Ignorable:"mc:Ignorable"})}}class qc extends se{constructor(e){var r,a,l,u;super("w:settings"),this.root.push(new Vc({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",Ignorable:"w14 w15 wp14"})),this.root.push(new oe("w:displayBackgroundShape",!0)),e.trackRevisions!==void 0&&this.root.push(new oe("w:trackRevisions",e.trackRevisions)),e.evenAndOddHeaders!==void 0&&this.root.push(new oe("w:evenAndOddHeaders",e.evenAndOddHeaders)),e.updateFields!==void 0&&this.root.push(new oe("w:updateFields",e.updateFields)),e.defaultTabStop!==void 0&&this.root.push(new ii("w:defaultTabStop",e.defaultTabStop)),this.root.push(new Kc(sr(Ee({},(r=e.compatibility)!=null?r:{}),{version:(u=(l=(a=e.compatibility)==null?void 0:a.version)!=null?l:e.compatibilityModeVersion)!=null?u:15})))}}class xa extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{val:"w:val"})}}class Xc extends se{constructor(e){super("w:name"),this.root.push(new xa({val:e}))}}class Yc extends se{constructor(e){super("w:uiPriority"),this.root.push(new xa({val:Ge(e)}))}}class Zc extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{type:"w:type",styleId:"w:styleId",default:"w:default",customStyle:"w:customStyle"})}}class Sa extends se{constructor(e,r){super("w:style"),this.root.push(new Zc(e)),r.name&&this.root.push(new Xc(r.name)),r.basedOn&&this.root.push(new Wt("w:basedOn",r.basedOn)),r.next&&this.root.push(new Wt("w:next",r.next)),r.link&&this.root.push(new Wt("w:link",r.link)),r.uiPriority!==void 0&&this.root.push(new Yc(r.uiPriority)),r.semiHidden!==void 0&&this.root.push(new oe("w:semiHidden",r.semiHidden)),r.unhideWhenUsed!==void 0&&this.root.push(new oe("w:unhideWhenUsed",r.unhideWhenUsed)),r.quickFormat!==void 0&&this.root.push(new oe("w:qFormat",r.quickFormat))}}class Lr extends Sa{constructor(e){super({type:"paragraph",styleId:e.id},e),ie(this,"paragraphProperties"),ie(this,"runProperties"),this.paragraphProperties=new qt(e.paragraph),this.runProperties=new Ct(e.run),this.root.push(this.paragraphProperties),this.root.push(this.runProperties)}}class Fr extends Sa{constructor(e){super({type:"character",styleId:e.id},Ee({uiPriority:99,unhideWhenUsed:!0},e)),ie(this,"runProperties"),this.runProperties=new Ct(e.run),this.root.push(this.runProperties)}}class bt extends Lr{constructor(e){super(Ee({basedOn:"Normal",next:"Normal",quickFormat:!0},e))}}class Qc extends bt{constructor(e){super(Ee({id:"Title",name:"Title"},e))}}class Jc extends bt{constructor(e){super(Ee({id:"Heading1",name:"Heading 1"},e))}}class $c extends bt{constructor(e){super(Ee({id:"Heading2",name:"Heading 2"},e))}}class ef extends bt{constructor(e){super(Ee({id:"Heading3",name:"Heading 3"},e))}}class tf extends bt{constructor(e){super(Ee({id:"Heading4",name:"Heading 4"},e))}}class rf extends bt{constructor(e){super(Ee({id:"Heading5",name:"Heading 5"},e))}}class nf extends bt{constructor(e){super(Ee({id:"Heading6",name:"Heading 6"},e))}}class sf extends bt{constructor(e){super(Ee({id:"Strong",name:"Strong"},e))}}class af extends Lr{constructor(e){super(Ee({id:"ListParagraph",name:"List Paragraph",basedOn:"Normal",quickFormat:!0},e))}}class of extends Lr{constructor(e){super(Ee({id:"FootnoteText",name:"footnote text",link:"FootnoteTextChar",basedOn:"Normal",uiPriority:99,semiHidden:!0,unhideWhenUsed:!0,paragraph:{spacing:{after:0,line:240,lineRule:jn.AUTO}},run:{size:20}},e))}}class uf extends Fr{constructor(e){super(Ee({id:"FootnoteReference",name:"footnote reference",basedOn:"DefaultParagraphFont",semiHidden:!0,run:{superScript:!0}},e))}}class lf extends Fr{constructor(e){super(Ee({id:"FootnoteTextChar",name:"Footnote Text Char",basedOn:"DefaultParagraphFont",link:"FootnoteText",semiHidden:!0,run:{size:20}},e))}}class cf extends Fr{constructor(e){super(Ee({id:"Hyperlink",name:"Hyperlink",basedOn:"DefaultParagraphFont",run:{color:"0563C1",underline:{type:_a.SINGLE}}},e))}}class zn extends se{constructor(e){if(super("w:styles"),e.initialStyles&&this.root.push(e.initialStyles),e.importedStyles)for(const r of e.importedStyles)this.root.push(r);if(e.paragraphStyles)for(const r of e.paragraphStyles)this.root.push(new Lr(r));if(e.characterStyles)for(const r of e.characterStyles)this.root.push(new Fr(r))}}class ff extends se{constructor(e){super("w:pPrDefault"),this.root.push(new qt(e))}}class hf extends se{constructor(e){super("w:rPrDefault"),this.root.push(new Ct(e))}}class df extends se{constructor(e){super("w:docDefaults"),ie(this,"runPropertiesDefaults"),ie(this,"paragraphPropertiesDefaults"),this.runPropertiesDefaults=new hf(e.run),this.paragraphPropertiesDefaults=new ff(e.paragraph),this.root.push(this.runPropertiesDefaults),this.root.push(this.paragraphPropertiesDefaults)}}class pf{newInstance(e){const r=pa.xml2js(e,{compact:!1});let a;for(const o of r.elements||[])o.name==="w:styles"&&(a=o);if(a===void 0)throw new Error("can not find styles element");const l=a.elements||[];return new zn({initialStyles:new gu(a.attributes),importedStyles:l.map(o=>ni(o))})}}class bs{newInstance(e={}){var r;return{initialStyles:new ur({mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",Ignorable:"w14 w15"}),importedStyles:[new df((r=e.document)!=null?r:{}),new Qc(Ee({run:{size:56}},e.title)),new Jc(Ee({run:{color:"2E74B5",size:32}},e.heading1)),new $c(Ee({run:{color:"2E74B5",size:26}},e.heading2)),new ef(Ee({run:{color:"1F4D78",size:24}},e.heading3)),new tf(Ee({run:{color:"2E74B5",italics:!0}},e.heading4)),new rf(Ee({run:{color:"2E74B5"}},e.heading5)),new nf(Ee({run:{color:"1F4D78"}},e.heading6)),new sf(Ee({run:{bold:!0}},e.strong)),new af(e.listParagraph||{}),new cf(e.hyperlink||{}),new uf(e.footnoteReference||{}),new of(e.footnoteText||{}),new lf(e.footnoteTextChar||{})]}}}const wr=({id:t,fontKey:e,subsetted:r},a)=>new vt({name:a,attributes:Ee({id:{key:"r:id",value:t}},e?{fontKey:{key:"w:fontKey",value:`{${e}}`}}:{}),children:[...r?[new oe("w:subsetted",r)]:[]]}),mf=({name:t,altName:e,panose1:r,charset:a,family:l,notTrueType:u,pitch:o,sig:i,embedRegular:c,embedBold:w,embedItalic:y,embedBoldItalic:x})=>new vt({name:"w:font",attributes:{name:{key:"w:name",value:t}},children:[...e?[tr("w:altName",e)]:[],...r?[tr("w:panose1",r)]:[],...a?[tr("w:charset",a)]:[],...l?[tr("w:family",l)]:[],...u?[new oe("w:notTrueType",u)]:[],...o?[tr("w:pitch",o)]:[],...i?[new vt({name:"w:sig",attributes:{usb0:{key:"w:usb0",value:i.usb0},usb1:{key:"w:usb1",value:i.usb1},usb2:{key:"w:usb2",value:i.usb2},usb3:{key:"w:usb3",value:i.usb3},csb0:{key:"w:csb0",value:i.csb0},csb1:{key:"w:csb1",value:i.csb1}}})]:[],...c?[wr(c,"w:embedRegular")]:[],...w?[wr(w,"w:embedBold")]:[],...y?[wr(y,"w:embedItalic")]:[],...x?[wr(x,"w:embedBoldItalic")]:[]]}),gf=({name:t,index:e,fontKey:r,characterSet:a})=>mf({name:t,sig:{usb0:"E0002AFF",usb1:"C000247B",usb2:"00000009",usb3:"00000000",csb0:"000001FF",csb1:"00000000"},charset:a,family:"auto",pitch:"variable",embedRegular:{fontKey:r,id:`rId${e}`}}),wf=t=>new vt({name:"w:fonts",attributes:{mc:{key:"xmlns:mc",value:"http://schemas.openxmlformats.org/markup-compatibility/2006"},r:{key:"xmlns:r",value:"http://schemas.openxmlformats.org/officeDocument/2006/relationships"},w:{key:"xmlns:w",value:"http://schemas.openxmlformats.org/wordprocessingml/2006/main"},w14:{key:"xmlns:w14",value:"http://schemas.microsoft.com/office/word/2010/wordml"},w15:{key:"xmlns:w15",value:"http://schemas.microsoft.com/office/word/2012/wordml"},w16cex:{key:"xmlns:w16cex",value:"http://schemas.microsoft.com/office/word/2018/wordml/cex"},w16cid:{key:"xmlns:w16cid",value:"http://schemas.microsoft.com/office/word/2016/wordml/cid"},w16:{key:"xmlns:w16",value:"http://schemas.microsoft.com/office/word/2018/wordml"},w16sdtdh:{key:"xmlns:w16sdtdh",value:"http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash"},w16se:{key:"xmlns:w16se",value:"http://schemas.microsoft.com/office/word/2015/wordml/symex"},Ignorable:{key:"mc:Ignorable",value:"w14 w15 w16se w16cid w16 w16cex w16sdtdh"}},children:t.map((e,r)=>gf({name:e.name,index:r+1,fontKey:e.fontKey}))});class yf{constructor(e){ie(this,"fontTable"),ie(this,"relationships"),ie(this,"fontOptionsWithKey",[]),this.options=e,this.fontOptionsWithKey=e.map(r=>sr(Ee({},r),{fontKey:$u()})),this.fontTable=wf(this.fontOptionsWithKey),this.relationships=new Zt;for(let r=0;re.header)}get Footers(){return this.footers.map(e=>e.footer)}get ContentTypes(){return this.contentTypes}get CustomProperties(){return this.customProperties}get AppProperties(){return this.appProperties}get FootNotes(){return this.footnotesWrapper}get Settings(){return this.settings}get Comments(){return this.comments}get FontTable(){return this.fontWrapper}}function yr(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Aa={exports:{}};(function(t,e){(function(r){t.exports=r()})(function(){return function r(a,l,u){function o(w,y){if(!l[w]){if(!a[w]){var x=typeof yr=="function"&&yr;if(!y&&x)return x(w,!0);if(i)return i(w,!0);var _=new Error("Cannot find module '"+w+"'");throw _.code="MODULE_NOT_FOUND",_}var p=l[w]={exports:{}};a[w][0].call(p.exports,function(T){var v=a[w][1][T];return o(v||T)},p,p.exports,r,a,l,u)}return l[w].exports}for(var i=typeof yr=="function"&&yr,c=0;c>2,p=(3&w)<<4|y>>4,T=1>6:64,v=2>4,y=(15&_)<<4|(p=i.indexOf(c.charAt(v++)))>>2,x=(3&p)<<6|(T=i.indexOf(c.charAt(v++))),S[E++]=w,p!==64&&(S[E++]=y),T!==64&&(S[E++]=x);return S}},{"./support":30,"./utils":32}],2:[function(r,a,l){var u=r("./external"),o=r("./stream/DataWorker"),i=r("./stream/Crc32Probe"),c=r("./stream/DataLengthProbe");function w(y,x,_,p,T){this.compressedSize=y,this.uncompressedSize=x,this.crc32=_,this.compression=p,this.compressedContent=T}w.prototype={getContentWorker:function(){var y=new o(u.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new c("data_length")),x=this;return y.on("end",function(){if(this.streamInfo.data_length!==x.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),y},getCompressedWorker:function(){return new o(u.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},w.createWorkerFrom=function(y,x,_){return y.pipe(new i).pipe(new c("uncompressedSize")).pipe(x.compressWorker(_)).pipe(new c("compressedSize")).withStreamInfo("compression",x)},a.exports=w},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(r,a,l){var u=r("./stream/GenericWorker");l.STORE={magic:"\0\0",compressWorker:function(){return new u("STORE compression")},uncompressWorker:function(){return new u("STORE decompression")}},l.DEFLATE=r("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(r,a,l){var u=r("./utils"),o=function(){for(var i,c=[],w=0;w<256;w++){i=w;for(var y=0;y<8;y++)i=1&i?3988292384^i>>>1:i>>>1;c[w]=i}return c}();a.exports=function(i,c){return i!==void 0&&i.length?u.getTypeOf(i)!=="string"?function(w,y,x,_){var p=o,T=_+x;w^=-1;for(var v=_;v>>8^p[255&(w^y[v])];return-1^w}(0|c,i,i.length,0):function(w,y,x,_){var p=o,T=_+x;w^=-1;for(var v=_;v>>8^p[255&(w^y.charCodeAt(v))];return-1^w}(0|c,i,i.length,0):0}},{"./utils":32}],5:[function(r,a,l){l.base64=!1,l.binary=!1,l.dir=!1,l.createFolders=!0,l.date=null,l.compression=null,l.compressionOptions=null,l.comment=null,l.unixPermissions=null,l.dosPermissions=null},{}],6:[function(r,a,l){var u=null;u=typeof Promise<"u"?Promise:r("lie"),a.exports={Promise:u}},{lie:37}],7:[function(r,a,l){var u=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",o=r("pako"),i=r("./utils"),c=r("./stream/GenericWorker"),w=u?"uint8array":"array";function y(x,_){c.call(this,"FlateWorker/"+x),this._pako=null,this._pakoAction=x,this._pakoOptions=_,this.meta={}}l.magic="\b\0",i.inherits(y,c),y.prototype.processChunk=function(x){this.meta=x.meta,this._pako===null&&this._createPako(),this._pako.push(i.transformTo(w,x.data),!1)},y.prototype.flush=function(){c.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},y.prototype.cleanUp=function(){c.prototype.cleanUp.call(this),this._pako=null},y.prototype._createPako=function(){this._pako=new o[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var x=this;this._pako.onData=function(_){x.push({data:_,meta:x.meta})}},l.compressWorker=function(x){return new y("Deflate",x)},l.uncompressWorker=function(){return new y("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(r,a,l){function u(p,T){var v,E="";for(v=0;v>>=8;return E}function o(p,T,v,E,d,S){var R,D,C=p.file,V=p.compression,H=S!==w.utf8encode,J=i.transformTo("string",S(C.name)),I=i.transformTo("string",w.utf8encode(C.name)),re=C.comment,ue=i.transformTo("string",S(re)),L=i.transformTo("string",w.utf8encode(re)),q=I.length!==C.name.length,A=L.length!==re.length,Z="",le="",Y="",de=C.dir,K=C.date,ce={crc32:0,compressedSize:0,uncompressedSize:0};T&&!v||(ce.crc32=p.crc32,ce.compressedSize=p.compressedSize,ce.uncompressedSize=p.uncompressedSize);var G=0;T&&(G|=8),H||!q&&!A||(G|=2048);var N=0,W=0;de&&(N|=16),d==="UNIX"?(W=798,N|=function($,j){var g=$;return $||(g=j?16893:33204),(65535&g)<<16}(C.unixPermissions,de)):(W=20,N|=function($){return 63&($||0)}(C.dosPermissions)),R=K.getUTCHours(),R<<=6,R|=K.getUTCMinutes(),R<<=5,R|=K.getUTCSeconds()/2,D=K.getUTCFullYear()-1980,D<<=4,D|=K.getUTCMonth()+1,D<<=5,D|=K.getUTCDate(),q&&(le=u(1,1)+u(y(J),4)+I,Z+="up"+u(le.length,2)+le),A&&(Y=u(1,1)+u(y(ue),4)+L,Z+="uc"+u(Y.length,2)+Y);var z="";return z+=` -\0`,z+=u(G,2),z+=V.magic,z+=u(R,2),z+=u(D,2),z+=u(ce.crc32,4),z+=u(ce.compressedSize,4),z+=u(ce.uncompressedSize,4),z+=u(J.length,2),z+=u(Z.length,2),{fileRecord:x.LOCAL_FILE_HEADER+z+J+Z,dirRecord:x.CENTRAL_FILE_HEADER+u(W,2)+z+u(ue.length,2)+"\0\0\0\0"+u(N,4)+u(E,4)+J+Z+ue}}var i=r("../utils"),c=r("../stream/GenericWorker"),w=r("../utf8"),y=r("../crc32"),x=r("../signature");function _(p,T,v,E){c.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=T,this.zipPlatform=v,this.encodeFileName=E,this.streamFiles=p,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}i.inherits(_,c),_.prototype.push=function(p){var T=p.meta.percent||0,v=this.entriesCount,E=this._sources.length;this.accumulate?this.contentBuffer.push(p):(this.bytesWritten+=p.data.length,c.prototype.push.call(this,{data:p.data,meta:{currentFile:this.currentFile,percent:v?(T+100*(v-E-1))/v:100}}))},_.prototype.openedSource=function(p){this.currentSourceOffset=this.bytesWritten,this.currentFile=p.file.name;var T=this.streamFiles&&!p.file.dir;if(T){var v=o(p,T,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:v.fileRecord,meta:{percent:0}})}else this.accumulate=!0},_.prototype.closedSource=function(p){this.accumulate=!1;var T=this.streamFiles&&!p.file.dir,v=o(p,T,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(v.dirRecord),T)this.push({data:function(E){return x.DATA_DESCRIPTOR+u(E.crc32,4)+u(E.compressedSize,4)+u(E.uncompressedSize,4)}(p),meta:{percent:100}});else for(this.push({data:v.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},_.prototype.flush=function(){for(var p=this.bytesWritten,T=0;T=this.index;c--)w=(w<<8)+this.byteAt(c);return this.index+=i,w},readString:function(i){return u.transformTo("string",this.readData(i))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var i=this.readInt(4);return new Date(Date.UTC(1980+(i>>25&127),(i>>21&15)-1,i>>16&31,i>>11&31,i>>5&63,(31&i)<<1))}},a.exports=o},{"../utils":32}],19:[function(r,a,l){var u=r("./Uint8ArrayReader");function o(i){u.call(this,i)}r("../utils").inherits(o,u),o.prototype.readData=function(i){this.checkOffset(i);var c=this.data.slice(this.zero+this.index,this.zero+this.index+i);return this.index+=i,c},a.exports=o},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(r,a,l){var u=r("./DataReader");function o(i){u.call(this,i)}r("../utils").inherits(o,u),o.prototype.byteAt=function(i){return this.data.charCodeAt(this.zero+i)},o.prototype.lastIndexOfSignature=function(i){return this.data.lastIndexOf(i)-this.zero},o.prototype.readAndCheckSignature=function(i){return i===this.readData(4)},o.prototype.readData=function(i){this.checkOffset(i);var c=this.data.slice(this.zero+this.index,this.zero+this.index+i);return this.index+=i,c},a.exports=o},{"../utils":32,"./DataReader":18}],21:[function(r,a,l){var u=r("./ArrayReader");function o(i){u.call(this,i)}r("../utils").inherits(o,u),o.prototype.readData=function(i){if(this.checkOffset(i),i===0)return new Uint8Array(0);var c=this.data.subarray(this.zero+this.index,this.zero+this.index+i);return this.index+=i,c},a.exports=o},{"../utils":32,"./ArrayReader":17}],22:[function(r,a,l){var u=r("../utils"),o=r("../support"),i=r("./ArrayReader"),c=r("./StringReader"),w=r("./NodeBufferReader"),y=r("./Uint8ArrayReader");a.exports=function(x){var _=u.getTypeOf(x);return u.checkSupport(_),_!=="string"||o.uint8array?_==="nodebuffer"?new w(x):o.uint8array?new y(u.transformTo("uint8array",x)):new i(u.transformTo("array",x)):new c(x)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(r,a,l){l.LOCAL_FILE_HEADER="PK",l.CENTRAL_FILE_HEADER="PK",l.CENTRAL_DIRECTORY_END="PK",l.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",l.ZIP64_CENTRAL_DIRECTORY_END="PK",l.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(r,a,l){var u=r("./GenericWorker"),o=r("../utils");function i(c){u.call(this,"ConvertWorker to "+c),this.destType=c}o.inherits(i,u),i.prototype.processChunk=function(c){this.push({data:o.transformTo(this.destType,c.data),meta:c.meta})},a.exports=i},{"../utils":32,"./GenericWorker":28}],25:[function(r,a,l){var u=r("./GenericWorker"),o=r("../crc32");function i(){u.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}r("../utils").inherits(i,u),i.prototype.processChunk=function(c){this.streamInfo.crc32=o(c.data,this.streamInfo.crc32||0),this.push(c)},a.exports=i},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(r,a,l){var u=r("../utils"),o=r("./GenericWorker");function i(c){o.call(this,"DataLengthProbe for "+c),this.propName=c,this.withStreamInfo(c,0)}u.inherits(i,o),i.prototype.processChunk=function(c){if(c){var w=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=w+c.data.length}o.prototype.processChunk.call(this,c)},a.exports=i},{"../utils":32,"./GenericWorker":28}],27:[function(r,a,l){var u=r("../utils"),o=r("./GenericWorker");function i(c){o.call(this,"DataWorker");var w=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,c.then(function(y){w.dataIsReady=!0,w.data=y,w.max=y&&y.length||0,w.type=u.getTypeOf(y),w.isPaused||w._tickAndRepeat()},function(y){w.error(y)})}u.inherits(i,o),i.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this.data=null},i.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,u.delay(this._tickAndRepeat,[],this)),!0)},i.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(u.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},i.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var c=null,w=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":c=this.data.substring(this.index,w);break;case"uint8array":c=this.data.subarray(this.index,w);break;case"array":case"nodebuffer":c=this.data.slice(this.index,w)}return this.index=w,this.push({data:c,meta:{percent:this.max?this.index/this.max*100:0}})},a.exports=i},{"../utils":32,"./GenericWorker":28}],28:[function(r,a,l){function u(o){this.name=o||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}u.prototype={push:function(o){this.emit("data",o)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(o){this.emit("error",o)}return!0},error:function(o){return!this.isFinished&&(this.isPaused?this.generatedError=o:(this.isFinished=!0,this.emit("error",o),this.previous&&this.previous.error(o),this.cleanUp()),!0)},on:function(o,i){return this._listeners[o].push(i),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(o,i){if(this._listeners[o])for(var c=0;c "+o:o}},a.exports=u},{}],29:[function(r,a,l){var u=r("../utils"),o=r("./ConvertWorker"),i=r("./GenericWorker"),c=r("../base64"),w=r("../support"),y=r("../external"),x=null;if(w.nodestream)try{x=r("../nodejs/NodejsStreamOutputAdapter")}catch{}function _(T,v){return new y.Promise(function(E,d){var S=[],R=T._internalType,D=T._outputType,C=T._mimeType;T.on("data",function(V,H){S.push(V),v&&v(H)}).on("error",function(V){S=[],d(V)}).on("end",function(){try{var V=function(H,J,I){switch(H){case"blob":return u.newBlob(u.transformTo("arraybuffer",J),I);case"base64":return c.encode(J);default:return u.transformTo(H,J)}}(D,function(H,J){var I,re=0,ue=null,L=0;for(I=0;I"u")l.blob=!1;else{var u=new ArrayBuffer(0);try{l.blob=new Blob([u],{type:"application/zip"}).size===0}catch{try{var o=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);o.append(u),l.blob=o.getBlob("application/zip").size===0}catch{l.blob=!1}}}try{l.nodestream=!!r("readable-stream").Readable}catch{l.nodestream=!1}},{"readable-stream":16}],31:[function(r,a,l){for(var u=r("./utils"),o=r("./support"),i=r("./nodejsUtils"),c=r("./stream/GenericWorker"),w=new Array(256),y=0;y<256;y++)w[y]=252<=y?6:248<=y?5:240<=y?4:224<=y?3:192<=y?2:1;w[254]=w[254]=1;function x(){c.call(this,"utf-8 decode"),this.leftOver=null}function _(){c.call(this,"utf-8 encode")}l.utf8encode=function(p){return o.nodebuffer?i.newBufferFrom(p,"utf-8"):function(T){var v,E,d,S,R,D=T.length,C=0;for(S=0;S>>6:(E<65536?v[R++]=224|E>>>12:(v[R++]=240|E>>>18,v[R++]=128|E>>>12&63),v[R++]=128|E>>>6&63),v[R++]=128|63&E);return v}(p)},l.utf8decode=function(p){return o.nodebuffer?u.transformTo("nodebuffer",p).toString("utf-8"):function(T){var v,E,d,S,R=T.length,D=new Array(2*R);for(v=E=0;v>10&1023,D[E++]=56320|1023&d)}return D.length!==E&&(D.subarray?D=D.subarray(0,E):D.length=E),u.applyFromCharCode(D)}(p=u.transformTo(o.uint8array?"uint8array":"array",p))},u.inherits(x,c),x.prototype.processChunk=function(p){var T=u.transformTo(o.uint8array?"uint8array":"array",p.data);if(this.leftOver&&this.leftOver.length){if(o.uint8array){var v=T;(T=new Uint8Array(v.length+this.leftOver.length)).set(this.leftOver,0),T.set(v,this.leftOver.length)}else T=this.leftOver.concat(T);this.leftOver=null}var E=function(S,R){var D;for((R=R||S.length)>S.length&&(R=S.length),D=R-1;0<=D&&(192&S[D])==128;)D--;return D<0||D===0?R:D+w[S[D]]>R?D:R}(T),d=T;E!==T.length&&(o.uint8array?(d=T.subarray(0,E),this.leftOver=T.subarray(E,T.length)):(d=T.slice(0,E),this.leftOver=T.slice(E,T.length))),this.push({data:l.utf8decode(d),meta:p.meta})},x.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:l.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},l.Utf8DecodeWorker=x,u.inherits(_,c),_.prototype.processChunk=function(p){this.push({data:l.utf8encode(p.data),meta:p.meta})},l.Utf8EncodeWorker=_},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(r,a,l){var u=r("./support"),o=r("./base64"),i=r("./nodejsUtils"),c=r("./external");function w(v){return v}function y(v,E){for(var d=0;d>8;this.dir=!!(16&this.externalFileAttributes),p==0&&(this.dosPermissions=63&this.externalFileAttributes),p==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var p=u(this.extraFields[1].value);this.uncompressedSize===o.MAX_VALUE_32BITS&&(this.uncompressedSize=p.readInt(8)),this.compressedSize===o.MAX_VALUE_32BITS&&(this.compressedSize=p.readInt(8)),this.localHeaderOffset===o.MAX_VALUE_32BITS&&(this.localHeaderOffset=p.readInt(8)),this.diskNumberStart===o.MAX_VALUE_32BITS&&(this.diskNumberStart=p.readInt(4))}},readExtraFields:function(p){var T,v,E,d=p.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});p.index+4>>6:(p<65536?_[E++]=224|p>>>12:(_[E++]=240|p>>>18,_[E++]=128|p>>>12&63),_[E++]=128|p>>>6&63),_[E++]=128|63&p);return _},l.buf2binstring=function(x){return y(x,x.length)},l.binstring2buf=function(x){for(var _=new u.Buf8(x.length),p=0,T=_.length;p>10&1023,S[T++]=56320|1023&v)}return y(S,T)},l.utf8border=function(x,_){var p;for((_=_||x.length)>x.length&&(_=x.length),p=_-1;0<=p&&(192&x[p])==128;)p--;return p<0||p===0?_:p+c[x[p]]>_?p:_}},{"./common":41}],43:[function(r,a,l){a.exports=function(u,o,i,c){for(var w=65535&u|0,y=u>>>16&65535|0,x=0;i!==0;){for(i-=x=2e3>>1:o>>>1;i[c]=o}return i}();a.exports=function(o,i,c,w){var y=u,x=w+c;o^=-1;for(var _=w;_>>8^y[255&(o^i[_])];return-1^o}},{}],46:[function(r,a,l){var u,o=r("../utils/common"),i=r("./trees"),c=r("./adler32"),w=r("./crc32"),y=r("./messages"),x=0,_=4,p=0,T=-2,v=-1,E=4,d=2,S=8,R=9,D=286,C=30,V=19,H=2*D+1,J=15,I=3,re=258,ue=re+I+1,L=42,q=113,A=1,Z=2,le=3,Y=4;function de(h,X){return h.msg=y[X],X}function K(h){return(h<<1)-(4h.avail_out&&(b=h.avail_out),b!==0&&(o.arraySet(h.output,X.pending_buf,X.pending_out,b,h.next_out),h.next_out+=b,X.pending_out+=b,h.total_out+=b,h.avail_out-=b,X.pending-=b,X.pending===0&&(X.pending_out=0))}function N(h,X){i._tr_flush_block(h,0<=h.block_start?h.block_start:-1,h.strstart-h.block_start,X),h.block_start=h.strstart,G(h.strm)}function W(h,X){h.pending_buf[h.pending++]=X}function z(h,X){h.pending_buf[h.pending++]=X>>>8&255,h.pending_buf[h.pending++]=255&X}function $(h,X){var b,n,s=h.max_chain_length,f=h.strstart,P=h.prev_length,U=h.nice_match,B=h.strstart>h.w_size-ue?h.strstart-(h.w_size-ue):0,te=h.window,ae=h.w_mask,ne=h.prev,fe=h.strstart+re,pe=te[f+P-1],me=te[f+P];h.prev_length>=h.good_match&&(s>>=2),U>h.lookahead&&(U=h.lookahead);do if(te[(b=X)+P]===me&&te[b+P-1]===pe&&te[b]===te[f]&&te[++b]===te[f+1]){f+=2,b++;do;while(te[++f]===te[++b]&&te[++f]===te[++b]&&te[++f]===te[++b]&&te[++f]===te[++b]&&te[++f]===te[++b]&&te[++f]===te[++b]&&te[++f]===te[++b]&&te[++f]===te[++b]&&fB&&--s!=0);return P<=h.lookahead?P:h.lookahead}function j(h){var X,b,n,s,f,P,U,B,te,ae,ne=h.w_size;do{if(s=h.window_size-h.lookahead-h.strstart,h.strstart>=ne+(ne-ue)){for(o.arraySet(h.window,h.window,ne,ne,0),h.match_start-=ne,h.strstart-=ne,h.block_start-=ne,X=b=h.hash_size;n=h.head[--X],h.head[X]=ne<=n?n-ne:0,--b;);for(X=b=ne;n=h.prev[--X],h.prev[X]=ne<=n?n-ne:0,--b;);s+=ne}if(h.strm.avail_in===0)break;if(P=h.strm,U=h.window,B=h.strstart+h.lookahead,te=s,ae=void 0,ae=P.avail_in,te=I)for(f=h.strstart-h.insert,h.ins_h=h.window[f],h.ins_h=(h.ins_h<=I&&(h.ins_h=(h.ins_h<=I)if(n=i._tr_tally(h,h.strstart-h.match_start,h.match_length-I),h.lookahead-=h.match_length,h.match_length<=h.max_lazy_match&&h.lookahead>=I){for(h.match_length--;h.strstart++,h.ins_h=(h.ins_h<=I&&(h.ins_h=(h.ins_h<=I&&h.match_length<=h.prev_length){for(s=h.strstart+h.lookahead-I,n=i._tr_tally(h,h.strstart-1-h.prev_match,h.prev_length-I),h.lookahead-=h.prev_length-1,h.prev_length-=2;++h.strstart<=s&&(h.ins_h=(h.ins_h<h.pending_buf_size-5&&(b=h.pending_buf_size-5);;){if(h.lookahead<=1){if(j(h),h.lookahead===0&&X===x)return A;if(h.lookahead===0)break}h.strstart+=h.lookahead,h.lookahead=0;var n=h.block_start+b;if((h.strstart===0||h.strstart>=n)&&(h.lookahead=h.strstart-n,h.strstart=n,N(h,!1),h.strm.avail_out===0)||h.strstart-h.block_start>=h.w_size-ue&&(N(h,!1),h.strm.avail_out===0))return A}return h.insert=0,X===_?(N(h,!0),h.strm.avail_out===0?le:Y):(h.strstart>h.block_start&&(N(h,!1),h.strm.avail_out),A)}),new M(4,4,8,4,g),new M(4,5,16,8,g),new M(4,6,32,32,g),new M(4,4,16,16,m),new M(8,16,32,32,m),new M(8,16,128,128,m),new M(8,32,128,256,m),new M(32,128,258,1024,m),new M(32,258,258,4096,m)],l.deflateInit=function(h,X){return Q(h,X,S,15,8,0)},l.deflateInit2=Q,l.deflateReset=O,l.deflateResetKeep=k,l.deflateSetHeader=function(h,X){return h&&h.state?h.state.wrap!==2?T:(h.state.gzhead=X,p):T},l.deflate=function(h,X){var b,n,s,f;if(!h||!h.state||5>8&255),W(n,n.gzhead.time>>16&255),W(n,n.gzhead.time>>24&255),W(n,n.level===9?2:2<=n.strategy||n.level<2?4:0),W(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(W(n,255&n.gzhead.extra.length),W(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(h.adler=w(h.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69):(W(n,0),W(n,0),W(n,0),W(n,0),W(n,0),W(n,n.level===9?2:2<=n.strategy||n.level<2?4:0),W(n,3),n.status=q);else{var P=S+(n.w_bits-8<<4)<<8;P|=(2<=n.strategy||n.level<2?0:n.level<6?1:n.level===6?2:3)<<6,n.strstart!==0&&(P|=32),P+=31-P%31,n.status=q,z(n,P),n.strstart!==0&&(z(n,h.adler>>>16),z(n,65535&h.adler)),h.adler=1}if(n.status===69)if(n.gzhead.extra){for(s=n.pending;n.gzindex<(65535&n.gzhead.extra.length)&&(n.pending!==n.pending_buf_size||(n.gzhead.hcrc&&n.pending>s&&(h.adler=w(h.adler,n.pending_buf,n.pending-s,s)),G(h),s=n.pending,n.pending!==n.pending_buf_size));)W(n,255&n.gzhead.extra[n.gzindex]),n.gzindex++;n.gzhead.hcrc&&n.pending>s&&(h.adler=w(h.adler,n.pending_buf,n.pending-s,s)),n.gzindex===n.gzhead.extra.length&&(n.gzindex=0,n.status=73)}else n.status=73;if(n.status===73)if(n.gzhead.name){s=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>s&&(h.adler=w(h.adler,n.pending_buf,n.pending-s,s)),G(h),s=n.pending,n.pending===n.pending_buf_size)){f=1;break}f=n.gzindexs&&(h.adler=w(h.adler,n.pending_buf,n.pending-s,s)),f===0&&(n.gzindex=0,n.status=91)}else n.status=91;if(n.status===91)if(n.gzhead.comment){s=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>s&&(h.adler=w(h.adler,n.pending_buf,n.pending-s,s)),G(h),s=n.pending,n.pending===n.pending_buf_size)){f=1;break}f=n.gzindexs&&(h.adler=w(h.adler,n.pending_buf,n.pending-s,s)),f===0&&(n.status=103)}else n.status=103;if(n.status===103&&(n.gzhead.hcrc?(n.pending+2>n.pending_buf_size&&G(h),n.pending+2<=n.pending_buf_size&&(W(n,255&h.adler),W(n,h.adler>>8&255),h.adler=0,n.status=q)):n.status=q),n.pending!==0){if(G(h),h.avail_out===0)return n.last_flush=-1,p}else if(h.avail_in===0&&K(X)<=K(b)&&X!==_)return de(h,-5);if(n.status===666&&h.avail_in!==0)return de(h,-5);if(h.avail_in!==0||n.lookahead!==0||X!==x&&n.status!==666){var U=n.strategy===2?function(B,te){for(var ae;;){if(B.lookahead===0&&(j(B),B.lookahead===0)){if(te===x)return A;break}if(B.match_length=0,ae=i._tr_tally(B,0,B.window[B.strstart]),B.lookahead--,B.strstart++,ae&&(N(B,!1),B.strm.avail_out===0))return A}return B.insert=0,te===_?(N(B,!0),B.strm.avail_out===0?le:Y):B.last_lit&&(N(B,!1),B.strm.avail_out===0)?A:Z}(n,X):n.strategy===3?function(B,te){for(var ae,ne,fe,pe,me=B.window;;){if(B.lookahead<=re){if(j(B),B.lookahead<=re&&te===x)return A;if(B.lookahead===0)break}if(B.match_length=0,B.lookahead>=I&&0B.lookahead&&(B.match_length=B.lookahead)}if(B.match_length>=I?(ae=i._tr_tally(B,1,B.match_length-I),B.lookahead-=B.match_length,B.strstart+=B.match_length,B.match_length=0):(ae=i._tr_tally(B,0,B.window[B.strstart]),B.lookahead--,B.strstart++),ae&&(N(B,!1),B.strm.avail_out===0))return A}return B.insert=0,te===_?(N(B,!0),B.strm.avail_out===0?le:Y):B.last_lit&&(N(B,!1),B.strm.avail_out===0)?A:Z}(n,X):u[n.level].func(n,X);if(U!==le&&U!==Y||(n.status=666),U===A||U===le)return h.avail_out===0&&(n.last_flush=-1),p;if(U===Z&&(X===1?i._tr_align(n):X!==5&&(i._tr_stored_block(n,0,0,!1),X===3&&(ce(n.head),n.lookahead===0&&(n.strstart=0,n.block_start=0,n.insert=0))),G(h),h.avail_out===0))return n.last_flush=-1,p}return X!==_?p:n.wrap<=0?1:(n.wrap===2?(W(n,255&h.adler),W(n,h.adler>>8&255),W(n,h.adler>>16&255),W(n,h.adler>>24&255),W(n,255&h.total_in),W(n,h.total_in>>8&255),W(n,h.total_in>>16&255),W(n,h.total_in>>24&255)):(z(n,h.adler>>>16),z(n,65535&h.adler)),G(h),0=b.w_size&&(f===0&&(ce(b.head),b.strstart=0,b.block_start=0,b.insert=0),te=new o.Buf8(b.w_size),o.arraySet(te,X,ae-b.w_size,b.w_size,0),X=te,ae=b.w_size),P=h.avail_in,U=h.next_in,B=h.input,h.avail_in=ae,h.next_in=0,h.input=X,j(b);b.lookahead>=I;){for(n=b.strstart,s=b.lookahead-(I-1);b.ins_h=(b.ins_h<>>=I=J>>>24,R-=I,(I=J>>>16&255)===0)Z[y++]=65535&J;else{if(!(16&I)){if(!(64&I)){J=D[(65535&J)+(S&(1<>>=I,R-=I),R<15&&(S+=A[c++]<>>=I=J>>>24,R-=I,!(16&(I=J>>>16&255))){if(!(64&I)){J=C[(65535&J)+(S&(1<>>=I,R-=I,(I=y-x)>3,S&=(1<<(R-=re<<3))-1,u.next_in=c,u.next_out=y,u.avail_in=c>>24&255)+(L>>>8&65280)+((65280&L)<<8)+((255&L)<<24)}function S(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new u.Buf16(320),this.work=new u.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function R(L){var q;return L&&L.state?(q=L.state,L.total_in=L.total_out=q.total=0,L.msg="",q.wrap&&(L.adler=1&q.wrap),q.mode=T,q.last=0,q.havedict=0,q.dmax=32768,q.head=null,q.hold=0,q.bits=0,q.lencode=q.lendyn=new u.Buf32(v),q.distcode=q.distdyn=new u.Buf32(E),q.sane=1,q.back=-1,_):p}function D(L){var q;return L&&L.state?((q=L.state).wsize=0,q.whave=0,q.wnext=0,R(L)):p}function C(L,q){var A,Z;return L&&L.state?(Z=L.state,q<0?(A=0,q=-q):(A=1+(q>>4),q<48&&(q&=15)),q&&(q<8||15=Y.wsize?(u.arraySet(Y.window,q,A-Y.wsize,Y.wsize,0),Y.wnext=0,Y.whave=Y.wsize):(Z<(le=Y.wsize-Y.wnext)&&(le=Z),u.arraySet(Y.window,q,A-Z,le,Y.wnext),(Z-=le)?(u.arraySet(Y.window,q,A-Z,Z,0),Y.wnext=Z,Y.whave=Y.wsize):(Y.wnext+=le,Y.wnext===Y.wsize&&(Y.wnext=0),Y.whave>>8&255,A.check=i(A.check,f,2,0),N=G=0,A.mode=2;break}if(A.flags=0,A.head&&(A.head.done=!1),!(1&A.wrap)||(((255&G)<<8)+(G>>8))%31){L.msg="incorrect header check",A.mode=30;break}if((15&G)!=8){L.msg="unknown compression method",A.mode=30;break}if(N-=4,h=8+(15&(G>>>=4)),A.wbits===0)A.wbits=h;else if(h>A.wbits){L.msg="invalid window size",A.mode=30;break}A.dmax=1<>8&1),512&A.flags&&(f[0]=255&G,f[1]=G>>>8&255,A.check=i(A.check,f,2,0)),N=G=0,A.mode=3;case 3:for(;N<32;){if(K===0)break e;K--,G+=Z[Y++]<>>8&255,f[2]=G>>>16&255,f[3]=G>>>24&255,A.check=i(A.check,f,4,0)),N=G=0,A.mode=4;case 4:for(;N<16;){if(K===0)break e;K--,G+=Z[Y++]<>8),512&A.flags&&(f[0]=255&G,f[1]=G>>>8&255,A.check=i(A.check,f,2,0)),N=G=0,A.mode=5;case 5:if(1024&A.flags){for(;N<16;){if(K===0)break e;K--,G+=Z[Y++]<>>8&255,A.check=i(A.check,f,2,0)),N=G=0}else A.head&&(A.head.extra=null);A.mode=6;case 6:if(1024&A.flags&&(K<($=A.length)&&($=K),$&&(A.head&&(h=A.head.extra_len-A.length,A.head.extra||(A.head.extra=new Array(A.head.extra_len)),u.arraySet(A.head.extra,Z,Y,$,h)),512&A.flags&&(A.check=i(A.check,Z,$,Y)),K-=$,Y+=$,A.length-=$),A.length))break e;A.length=0,A.mode=7;case 7:if(2048&A.flags){if(K===0)break e;for($=0;h=Z[Y+$++],A.head&&h&&A.length<65536&&(A.head.name+=String.fromCharCode(h)),h&&$>9&1,A.head.done=!0),L.adler=A.check=0,A.mode=12;break;case 10:for(;N<32;){if(K===0)break e;K--,G+=Z[Y++]<>>=7&N,N-=7&N,A.mode=27;break}for(;N<3;){if(K===0)break e;K--,G+=Z[Y++]<>>=1)){case 0:A.mode=14;break;case 1:if(re(A),A.mode=20,q!==6)break;G>>>=2,N-=2;break e;case 2:A.mode=17;break;case 3:L.msg="invalid block type",A.mode=30}G>>>=2,N-=2;break;case 14:for(G>>>=7&N,N-=7&N;N<32;){if(K===0)break e;K--,G+=Z[Y++]<>>16^65535)){L.msg="invalid stored block lengths",A.mode=30;break}if(A.length=65535&G,N=G=0,A.mode=15,q===6)break e;case 15:A.mode=16;case 16:if($=A.length){if(K<$&&($=K),ce<$&&($=ce),$===0)break e;u.arraySet(le,Z,Y,$,de),K-=$,Y+=$,ce-=$,de+=$,A.length-=$;break}A.mode=12;break;case 17:for(;N<14;){if(K===0)break e;K--,G+=Z[Y++]<>>=5,N-=5,A.ndist=1+(31&G),G>>>=5,N-=5,A.ncode=4+(15&G),G>>>=4,N-=4,286>>=3,N-=3}for(;A.have<19;)A.lens[P[A.have++]]=0;if(A.lencode=A.lendyn,A.lenbits=7,b={bits:A.lenbits},X=w(0,A.lens,0,19,A.lencode,0,A.work,b),A.lenbits=b.bits,X){L.msg="invalid code lengths set",A.mode=30;break}A.have=0,A.mode=19;case 19:for(;A.have>>16&255,F=65535&s,!((m=s>>>24)<=N);){if(K===0)break e;K--,G+=Z[Y++]<>>=m,N-=m,A.lens[A.have++]=F;else{if(F===16){for(n=m+2;N>>=m,N-=m,A.have===0){L.msg="invalid bit length repeat",A.mode=30;break}h=A.lens[A.have-1],$=3+(3&G),G>>>=2,N-=2}else if(F===17){for(n=m+3;N>>=m)),G>>>=3,N-=3}else{for(n=m+7;N>>=m)),G>>>=7,N-=7}if(A.have+$>A.nlen+A.ndist){L.msg="invalid bit length repeat",A.mode=30;break}for(;$--;)A.lens[A.have++]=h}}if(A.mode===30)break;if(A.lens[256]===0){L.msg="invalid code -- missing end-of-block",A.mode=30;break}if(A.lenbits=9,b={bits:A.lenbits},X=w(y,A.lens,0,A.nlen,A.lencode,0,A.work,b),A.lenbits=b.bits,X){L.msg="invalid literal/lengths set",A.mode=30;break}if(A.distbits=6,A.distcode=A.distdyn,b={bits:A.distbits},X=w(x,A.lens,A.nlen,A.ndist,A.distcode,0,A.work,b),A.distbits=b.bits,X){L.msg="invalid distances set",A.mode=30;break}if(A.mode=20,q===6)break e;case 20:A.mode=21;case 21:if(6<=K&&258<=ce){L.next_out=de,L.avail_out=ce,L.next_in=Y,L.avail_in=K,A.hold=G,A.bits=N,c(L,z),de=L.next_out,le=L.output,ce=L.avail_out,Y=L.next_in,Z=L.input,K=L.avail_in,G=A.hold,N=A.bits,A.mode===12&&(A.back=-1);break}for(A.back=0;M=(s=A.lencode[G&(1<>>16&255,F=65535&s,!((m=s>>>24)<=N);){if(K===0)break e;K--,G+=Z[Y++]<>k)])>>>16&255,F=65535&s,!(k+(m=s>>>24)<=N);){if(K===0)break e;K--,G+=Z[Y++]<>>=k,N-=k,A.back+=k}if(G>>>=m,N-=m,A.back+=m,A.length=F,M===0){A.mode=26;break}if(32&M){A.back=-1,A.mode=12;break}if(64&M){L.msg="invalid literal/length code",A.mode=30;break}A.extra=15&M,A.mode=22;case 22:if(A.extra){for(n=A.extra;N>>=A.extra,N-=A.extra,A.back+=A.extra}A.was=A.length,A.mode=23;case 23:for(;M=(s=A.distcode[G&(1<>>16&255,F=65535&s,!((m=s>>>24)<=N);){if(K===0)break e;K--,G+=Z[Y++]<>k)])>>>16&255,F=65535&s,!(k+(m=s>>>24)<=N);){if(K===0)break e;K--,G+=Z[Y++]<>>=k,N-=k,A.back+=k}if(G>>>=m,N-=m,A.back+=m,64&M){L.msg="invalid distance code",A.mode=30;break}A.offset=F,A.extra=15&M,A.mode=24;case 24:if(A.extra){for(n=A.extra;N>>=A.extra,N-=A.extra,A.back+=A.extra}if(A.offset>A.dmax){L.msg="invalid distance too far back",A.mode=30;break}A.mode=25;case 25:if(ce===0)break e;if($=z-ce,A.offset>$){if(($=A.offset-$)>A.whave&&A.sane){L.msg="invalid distance too far back",A.mode=30;break}j=$>A.wnext?($-=A.wnext,A.wsize-$):A.wnext-$,$>A.length&&($=A.length),g=A.window}else g=le,j=de-A.offset,$=A.length;for(ce<$&&($=ce),ce-=$,A.length-=$;le[de++]=g[j++],--$;);A.length===0&&(A.mode=21);break;case 26:if(ce===0)break e;le[de++]=A.length,ce--,A.mode=21;break;case 27:if(A.wrap){for(;N<32;){if(K===0)break e;K--,G|=Z[Y++]<H?(I=j[g+E[q]],N[W+E[q]]):(I=96,0),S=1<>de)+(R-=S)]=J<<24|I<<16|re|0,R!==0;);for(S=1<>=1;if(S!==0?(G&=S-1,G+=S):G=0,q++,--z[L]==0){if(L===Z)break;L=x[_+E[q]]}if(le>>7)]}function W(s,f){s.pending_buf[s.pending++]=255&f,s.pending_buf[s.pending++]=f>>>8&255}function z(s,f,P){s.bi_valid>d-P?(s.bi_buf|=f<>d-s.bi_valid,s.bi_valid+=P-d):(s.bi_buf|=f<>>=1,P<<=1,0<--f;);return P>>>1}function g(s,f,P){var U,B,te=new Array(E+1),ae=0;for(U=1;U<=E;U++)te[U]=ae=ae+P[U-1]<<1;for(B=0;B<=f;B++){var ne=s[2*B+1];ne!==0&&(s[2*B]=j(te[ne]++,ne))}}function m(s){var f;for(f=0;f<_;f++)s.dyn_ltree[2*f]=0;for(f=0;f>1;1<=P;P--)k(s,te,P);for(B=fe;P=s.heap[1],s.heap[1]=s.heap[s.heap_len--],k(s,te,1),U=s.heap[1],s.heap[--s.heap_max]=P,s.heap[--s.heap_max]=U,te[2*B]=te[2*P]+te[2*U],s.depth[B]=(s.depth[P]>=s.depth[U]?s.depth[P]:s.depth[U])+1,te[2*P+1]=te[2*U+1]=B,s.heap[1]=B++,k(s,te,1),2<=s.heap_len;);s.heap[--s.heap_max]=s.heap[1],function(me,Be){var ot,Ke,_t,Ie,Dt,Pt,he=Be.dyn_tree,Ne=Be.max_code,Ve=Be.stat_desc.static_tree,Et=Be.stat_desc.has_stree,Tt=Be.stat_desc.extra_bits,wt=Be.stat_desc.extra_base,Je=Be.stat_desc.max_length,Me=0;for(Ie=0;Ie<=E;Ie++)me.bl_count[Ie]=0;for(he[2*me.heap[me.heap_max]+1]=0,ot=me.heap_max+1;ot>=7;B>>=1)if(1&pe&&ne.dyn_ltree[2*fe]!==0)return o;if(ne.dyn_ltree[18]!==0||ne.dyn_ltree[20]!==0||ne.dyn_ltree[26]!==0)return i;for(fe=32;fe>>3,(te=s.static_len+3+7>>>3)<=B&&(B=te)):B=te=P+5,P+4<=B&&f!==-1?n(s,f,P,U):s.strategy===4||te===B?(z(s,2+(U?1:0),3),O(s,ue,L)):(z(s,4+(U?1:0),3),function(ne,fe,pe,me){var Be;for(z(ne,fe-257,5),z(ne,pe-1,5),z(ne,me-4,4),Be=0;Be>>8&255,s.pending_buf[s.d_buf+2*s.last_lit+1]=255&f,s.pending_buf[s.l_buf+s.last_lit]=255&P,s.last_lit++,f===0?s.dyn_ltree[2*P]++:(s.matches++,f--,s.dyn_ltree[2*(A[P]+x+1)]++,s.dyn_dtree[2*N(f)]++),s.last_lit===s.lit_bufsize-1},l._tr_align=function(s){z(s,2,3),$(s,R,ue),function(f){f.bi_valid===16?(W(f,f.bi_buf),f.bi_buf=0,f.bi_valid=0):8<=f.bi_valid&&(f.pending_buf[f.pending++]=255&f.bi_buf,f.bi_buf>>=8,f.bi_valid-=8)}(s)}},{"../utils/common":41}],53:[function(r,a,l){a.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(r,a,l){(function(u){(function(o,i){if(!o.setImmediate){var c,w,y,x,_=1,p={},T=!1,v=o.document,E=Object.getPrototypeOf&&Object.getPrototypeOf(o);E=E&&E.setTimeout?E:o,c={}.toString.call(o.process)==="[object process]"?function(D){ve.nextTick(function(){S(D)})}:function(){if(o.postMessage&&!o.importScripts){var D=!0,C=o.onmessage;return o.onmessage=function(){D=!1},o.postMessage("","*"),o.onmessage=C,D}}()?(x="setImmediate$"+Math.random()+"$",o.addEventListener?o.addEventListener("message",R,!1):o.attachEvent("onmessage",R),function(D){o.postMessage(x+D,"*")}):o.MessageChannel?((y=new MessageChannel).port1.onmessage=function(D){S(D.data)},function(D){y.port2.postMessage(D)}):v&&"onreadystatechange"in v.createElement("script")?(w=v.documentElement,function(D){var C=v.createElement("script");C.onreadystatechange=function(){S(D),C.onreadystatechange=null,w.removeChild(C),C=null},w.appendChild(C)}):function(D){setTimeout(S,0,D)},E.setImmediate=function(D){typeof D!="function"&&(D=new Function(""+D));for(var C=new Array(arguments.length-1),V=0;V"u"?u===void 0?this:u:self)}).call(this,typeof ht<"u"?ht:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(Aa);var vf=Aa.exports;const bf=Ns(vf);var xr={exports:{}},_f={"&":"&",'"':""","'":"'","<":"<",">":">"};function Ef(t){return t&&t.replace?t.replace(/([&"<>'])/g,function(e,r){return _f[r]}):t}var Tf=Ef,Hn=Tf,_s=Jn.Stream,xf=" ";function Sf(t,e){typeof e!="object"&&(e={indent:e});var r=e.stream?new _s:null,a="",l=!1,u=e.indent?e.indent===!0?xf:e.indent:"",o=!0;function i(_){o?ve.nextTick(_):_()}function c(_,p){if(p!==void 0&&(a+=p),_&&!l&&(r=r||new _s,l=!0),_&&l){var T=a;i(function(){r.emit("data",T)}),a=""}}function w(_,p){li(c,Sr(_,u,u?1:0),p)}function y(){if(r){var _=a;i(function(){r.emit("data",_),r.emit("end"),r.readable=!1,r.emit("close")})}}function x(_){var p=_.encoding||"UTF-8",T={version:"1.0",encoding:p};_.standalone&&(T.standalone=_.standalone),w({"?xml":{_attr:T}}),a=a.replace("/>","?>")}return i(function(){o=!1}),e.declaration&&x(e.declaration),t&&t.forEach?t.forEach(function(_,p){var T;p+1===t.length&&(T=y),w(_,T)}):w(t,y),r?(r.readable=!0,r):a}function Af(){var t=Array.prototype.slice.call(arguments),e={_elem:Sr(t)};return e.push=function(r){if(!this.append)throw new Error("not assigned to a parent!");var a=this,l=this._elem.indent;li(this.append,Sr(r,l,this._elem.icount+(l?1:0)),function(){a.append(!0)})},e.close=function(r){r!==void 0&&this.push(r),this.end&&this.end()},e}function Rf(t,e){return new Array(e||0).join(t||"")}function Sr(t,e,r){r=r||0;var a=Rf(e,r),l,u=t,o=!1;if(typeof t=="object"){var i=Object.keys(t);if(l=i[0],u=t[l],u&&u._elem)return u._elem.name=l,u._elem.icount=r,u._elem.indent=e,u._elem.indents=a,u._elem.interrupt=u,u._elem}var c=[],w=[],y;function x(_){var p=Object.keys(_);p.forEach(function(T){c.push(If(T,_[T]))})}switch(typeof u){case"object":if(u===null)break;u._attr&&x(u._attr),u._cdata&&w.push(("/g,"]]]]>")+"]]>"),u.forEach&&(y=!1,w.push(""),u.forEach(function(_){if(typeof _=="object"){var p=Object.keys(_)[0];p=="_attr"?x(_._attr):w.push(Sr(_,e,r+1))}else w.pop(),y=!0,w.push(Hn(_))}),y||w.push(""));break;default:w.push(Hn(u))}return{name:l,interrupt:o,attributes:c,content:w,icount:r,indents:a,indent:e}}function li(t,e,r){if(typeof e!="object")return t(!1,e);var a=e.interrupt?1:e.content.length;function l(){for(;e.content.length;){var o=e.content.shift();if(o!==void 0){if(u(o))return;li(t,o)}}t(!1,(a>1?e.indents:"")+(e.name?"":"")+(e.indent&&!r?` -`:"")),r&&r()}function u(o){return o.interrupt?(o.interrupt.append=t,o.interrupt.end=l,o.interrupt=!1,t(!0),!0):!1}if(t(!1,e.indents+(e.name?"<"+e.name:"")+(e.attributes.length?" "+e.attributes.join(" "):"")+(a?e.name?">":"":e.name?"/>":"")+(e.indent&&a>1?` -`:"")),!a)return t(!1,e.indent?` -`:"");u(e)||l()}function If(t,e){return t+'="'+Hn(e)+'"'}xr.exports=Sf;xr.exports.element=xr.exports.Element=Af;var kf=xr.exports;const Oe=Ns(kf),Es=0,Ts=32,Nf=32,Of=(t,e)=>{const r=e.replace(/-/g,"");if(r.length!==Nf)throw new Error(`Error: Cannot extract GUID from font filename: ${e}`);const l=r.replace(/(..)/g,"$1 ").trim().split(" ").map(c=>parseInt(c,16));l.reverse();const o=t.slice(Es,Ts).map((c,w)=>c^l[w%l.length]);return Buffer.concat([t.slice(0,Es),o,t.slice(Ts)])};class Cf{format(e,r={stack:[]}){const a=e.prepForXml(r);if(a)return a;throw Error("XMLComponent did not format correctly")}}class Df{replace(e,r,a){let l=e;return r.forEach((u,o)=>{l=l.replace(new RegExp(`{${u.fileName}}`,"g"),(a+o).toString())}),l}getMediaData(e,r){return r.Array.filter(a=>e.search(`{${a.fileName}}`)>0)}}class Pf{replace(e,r){let a=e;for(const l of r)a=a.replace(new RegExp(`{${l.reference}-${l.instance}}`,"g"),l.numId.toString());return a}}class Lf{constructor(){ie(this,"formatter"),ie(this,"imageReplacer"),ie(this,"numberingReplacer"),this.formatter=new Cf,this.imageReplacer=new Df,this.numberingReplacer=new Pf}compile(e,r){const a=new bf,l=this.xmlifyFile(e,r),u=new Map(Object.entries(l));for(const[,o]of u)if(Array.isArray(o))for(const i of o)a.file(i.path,i.data);else a.file(o.path,o.data);for(const{stream:o,fileName:i}of e.Media.Array)a.file(`word/media/${i}`,o);for(const{data:o,name:i,fontKey:c}of e.FontTable.fontOptionsWithKey){const[w]=i.split(".");a.file(`word/fonts/${w}.odttf`,Of(o,c))}return a}xmlifyFile(e,r){const a=e.Document.Relationships.RelationshipCount+1,l=Oe(this.formatter.format(e.Document.View,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),u=this.imageReplacer.getMediaData(l,e.Media);return{Relationships:{data:(u.forEach((o,i)=>{e.Document.Relationships.createRelationship(a+i,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${o.fileName}`)}),Oe(this.formatter.format(e.Document.Relationships,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}})),path:"word/_rels/document.xml.rels"},Document:{data:(()=>{const o=this.imageReplacer.replace(l,u,a);return this.numberingReplacer.replace(o,e.Numbering.ConcreteNumbering)})(),path:"word/document.xml"},Styles:{data:(()=>{const o=Oe(this.formatter.format(e.Styles,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}});return this.numberingReplacer.replace(o,e.Numbering.ConcreteNumbering)})(),path:"word/styles.xml"},Properties:{data:Oe(this.formatter.format(e.CoreProperties,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/core.xml"},Numbering:{data:Oe(this.formatter.format(e.Numbering,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/numbering.xml"},FileRelationships:{data:Oe(this.formatter.format(e.FileRelationships,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),path:"_rels/.rels"},HeaderRelationships:e.Headers.map((o,i)=>{const c=Oe(this.formatter.format(o.View,{viewWrapper:o,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}});return this.imageReplacer.getMediaData(c,e.Media).forEach((y,x)=>{o.Relationships.createRelationship(x,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${y.fileName}`)}),{data:Oe(this.formatter.format(o.Relationships,{viewWrapper:o,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),path:`word/_rels/header${i+1}.xml.rels`}}),FooterRelationships:e.Footers.map((o,i)=>{const c=Oe(this.formatter.format(o.View,{viewWrapper:o,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}});return this.imageReplacer.getMediaData(c,e.Media).forEach((y,x)=>{o.Relationships.createRelationship(x,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${y.fileName}`)}),{data:Oe(this.formatter.format(o.Relationships,{viewWrapper:o,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),path:`word/_rels/footer${i+1}.xml.rels`}}),Headers:e.Headers.map((o,i)=>{const c=Oe(this.formatter.format(o.View,{viewWrapper:o,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),w=this.imageReplacer.getMediaData(c,e.Media),y=this.imageReplacer.replace(c,w,0);return{data:this.numberingReplacer.replace(y,e.Numbering.ConcreteNumbering),path:`word/header${i+1}.xml`}}),Footers:e.Footers.map((o,i)=>{const c=Oe(this.formatter.format(o.View,{viewWrapper:o,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),w=this.imageReplacer.getMediaData(c,e.Media),y=this.imageReplacer.replace(c,w,0);return{data:this.numberingReplacer.replace(y,e.Numbering.ConcreteNumbering),path:`word/footer${i+1}.xml`}}),ContentTypes:{data:Oe(this.formatter.format(e.ContentTypes,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),path:"[Content_Types].xml"},CustomProperties:{data:Oe(this.formatter.format(e.CustomProperties,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/custom.xml"},AppProperties:{data:Oe(this.formatter.format(e.AppProperties,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/app.xml"},FootNotes:{data:Oe(this.formatter.format(e.FootNotes.View,{viewWrapper:e.FootNotes,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),path:"word/footnotes.xml"},FootNotesRelationships:{data:Oe(this.formatter.format(e.FootNotes.Relationships,{viewWrapper:e.FootNotes,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),path:"word/_rels/footnotes.xml.rels"},Settings:{data:Oe(this.formatter.format(e.Settings,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/settings.xml"},Comments:{data:Oe(this.formatter.format(e.Comments,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/comments.xml"},FontTable:{data:Oe(this.formatter.format(e.FontTable.View,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/fontTable.xml"},FontTableRelationships:{data:Oe(this.formatter.format(e.FontTable.Relationships,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),path:"word/_rels/fontTable.xml.rels"}}}}const Ff={NONE:"",WITH_2_BLANKS:" ",WITH_4_BLANKS:" ",WITH_TAB:" "},nr=t=>t===!0?Ff.WITH_2_BLANKS:t===!1?void 0:t;class Bf{static toString(e,r){return lr(this,null,function*(){return yield this.compiler.compile(e,nr(r)).generateAsync({type:"string",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})})}static toBuffer(e,r){return lr(this,null,function*(){return yield this.compiler.compile(e,nr(r)).generateAsync({type:"nodebuffer",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})})}static toBase64String(e,r){return lr(this,null,function*(){return yield this.compiler.compile(e,nr(r)).generateAsync({type:"base64",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})})}static toBlob(e,r){return lr(this,null,function*(){return yield this.compiler.compile(e,nr(r)).generateAsync({type:"blob",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})})}static toStream(e,r){const a=new Jn.Stream;return this.compiler.compile(e,nr(r)).generateAsync({type:"nodebuffer",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"}).then(u=>{a.emit("data",u),a.emit("end")}),a}}ie(Bf,"compiler",new Lf);var Ra={exports:{}};(function(t,e){(function(r,a){a()})(Jt,function(){function r(w,y){return typeof y>"u"?y={autoBom:!1}:typeof y!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),y={autoBom:!y}),y.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(w.type)?new Blob(["\uFEFF",w],{type:w.type}):w}function a(w,y,x){var _=new XMLHttpRequest;_.open("GET",w),_.responseType="blob",_.onload=function(){c(_.response,y,x)},_.onerror=function(){console.error("could not download file")},_.send()}function l(w){var y=new XMLHttpRequest;y.open("HEAD",w,!1);try{y.send()}catch{}return 200<=y.status&&299>=y.status}function u(w){try{w.dispatchEvent(new MouseEvent("click"))}catch{var y=document.createEvent("MouseEvents");y.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),w.dispatchEvent(y)}}var o=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof Jt=="object"&&Jt.global===Jt?Jt:void 0,i=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),c=o.saveAs||(typeof window!="object"||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!i?function(w,y,x){var _=o.URL||o.webkitURL,p=document.createElement("a");y=y||w.name||"download",p.download=y,p.rel="noopener",typeof w=="string"?(p.href=w,p.origin===location.origin?u(p):l(p.href)?a(w,y,x):u(p,p.target="_blank")):(p.href=_.createObjectURL(w),setTimeout(function(){_.revokeObjectURL(p.href)},4e4),setTimeout(function(){u(p)},0))}:"msSaveOrOpenBlob"in navigator?function(w,y,x){if(y=y||w.name||"download",typeof w!="string")navigator.msSaveOrOpenBlob(r(w,x),y);else if(l(w))a(w,y,x);else{var _=document.createElement("a");_.href=w,_.target="_blank",setTimeout(function(){u(_)})}}:function(w,y,x,_){if(_=_||open("","_blank"),_&&(_.document.title=_.document.body.innerText="downloading..."),typeof w=="string")return a(w,y,x);var p=w.type==="application/octet-stream",T=/constructor/i.test(o.HTMLElement)||o.safari,v=/CriOS\/[\d]+/.test(navigator.userAgent);if((v||p&&T||i)&&typeof FileReader<"u"){var E=new FileReader;E.onloadend=function(){var R=E.result;R=v?R:R.replace(/^data:[^;]*;/,"data:attachment/file;"),_?_.location.href=R:location=R,_=null},E.readAsDataURL(w)}else{var d=o.URL||o.webkitURL,S=d.createObjectURL(w);_?_.location=S:location.href=S,_=null,setTimeout(function(){d.revokeObjectURL(S)},4e4)}});o.saveAs=c.saveAs=c,t.exports=c})})(Ra);var Mf=Ra.exports;const ph=Ca(Mf);function Uf(t){let e;return{c(){e=xe("i"),this.h()},l(r){e=Se(r,"I",{class:!0}),Pe(e).forEach(_e),this.h()},h(){ye(e,"class","fa-solid fa-glasses")},m(r,a){He(r,e,a)},p:Kn,d(r){r&&_e(e)}}}function jf(t){let e;return{c(){e=xe("i"),this.h()},l(r){e=Se(r,"I",{class:!0}),Pe(e).forEach(_e),this.h()},h(){ye(e,"class","fa-solid fa-magnifying-glass")},m(r,a){He(r,e,a)},p:Kn,d(r){r&&_e(e)}}}function Wf(t){let e;return{c(){e=xe("i"),this.h()},l(r){e=Se(r,"I",{class:!0}),Pe(e).forEach(_e),this.h()},h(){ye(e,"class","fa-solid fa-microscope")},m(r,a){He(r,e,a)},p:Kn,d(r){r&&_e(e)}}}function zf(t){let e,r,a,l,u,o,i,c,w,y,x,_,p,T;function v(C){t[6](C)}let E={name:"justify",value:0,active:"bg-green-500",$$slots:{default:[Uf]},$$scope:{ctx:t}};t[0]!==void 0&&(E.group=t[0]),r=new jr({props:E}),qe.push(()=>tt(r,"group",v));function d(C){t[7](C)}let S={name:"justify",value:1,active:"bg-yellow-500",$$slots:{default:[jf]},$$scope:{ctx:t}};t[0]!==void 0&&(S.group=t[0]),o=new jr({props:S}),qe.push(()=>tt(o,"group",d));function R(C){t[8](C)}let D={name:"justify",value:2,active:"bg-red-500",$$slots:{default:[Wf]},$$scope:{ctx:t}};return t[0]!==void 0&&(D.group=t[0]),y=new jr({props:D}),qe.push(()=>tt(y,"group",R)),{c(){e=xe("div"),Xe(r.$$.fragment),l=Le(),u=xe("div"),Xe(o.$$.fragment),c=Le(),w=xe("div"),Xe(y.$$.fragment)},l(C){e=Se(C,"DIV",{});var V=Pe(e);Ye(r.$$.fragment,V),V.forEach(_e),l=Fe(C),u=Se(C,"DIV",{});var H=Pe(u);Ye(o.$$.fragment,H),H.forEach(_e),c=Fe(C),w=Se(C,"DIV",{});var J=Pe(w);Ye(y.$$.fragment,J),J.forEach(_e)},m(C,V){He(C,e,V),Ze(r,e,null),He(C,l,V),He(C,u,V),Ze(o,u,null),He(C,c,V),He(C,w,V),Ze(y,w,null),_=!0,p||(T=[Br(Mr.call(null,e,t[1])),Br(Mr.call(null,u,t[2])),Br(Mr.call(null,w,t[3]))],p=!0)},p(C,V){const H={};V&512&&(H.$$scope={dirty:V,ctx:C}),!a&&V&1&&(a=!0,H.group=C[0],et(()=>a=!1)),r.$set(H);const J={};V&512&&(J.$$scope={dirty:V,ctx:C}),!i&&V&1&&(i=!0,J.group=C[0],et(()=>i=!1)),o.$set(J);const I={};V&512&&(I.$$scope={dirty:V,ctx:C}),!x&&V&1&&(x=!0,I.group=C[0],et(()=>x=!1)),y.$set(I)},i(C){_||(We(r.$$.fragment,C),We(o.$$.fragment,C),We(y.$$.fragment,C),_=!0)},o(C){ze(r.$$.fragment,C),ze(o.$$.fragment,C),ze(y.$$.fragment,C),_=!1},d(C){C&&(_e(e),_e(l),_e(u),_e(c),_e(w)),Qe(r),Qe(o),Qe(y),p=!1,Gn(T)}}}function Hf(t){let e,r,a,l,u="

Базовый поиск

",o,i,c="

Расширенный поиск

",w,y,x="

Многоступенчатый поиск

",_;return r=new Ua({props:{background:"variant-soft-primary",border:"none",$$slots:{default:[zf]},$$scope:{ctx:t}}}),{c(){e=xe("div"),Xe(r.$$.fragment),a=Le(),l=xe("div"),l.innerHTML=u,o=Le(),i=xe("div"),i.innerHTML=c,w=Le(),y=xe("div"),y.innerHTML=x,this.h()},l(p){e=Se(p,"DIV",{class:!0});var T=Pe(e);Ye(r.$$.fragment,T),a=Fe(T),l=Se(T,"DIV",{class:!0,"data-popup":!0,"data-svelte-h":!0}),It(l)!=="svelte-1v4hu21"&&(l.innerHTML=u),o=Fe(T),i=Se(T,"DIV",{class:!0,"data-popup":!0,"data-svelte-h":!0}),It(i)!=="svelte-1m2808o"&&(i.innerHTML=c),w=Fe(T),y=Se(T,"DIV",{class:!0,"data-popup":!0,"data-svelte-h":!0}),It(y)!=="svelte-19hk1a2"&&(y.innerHTML=x),T.forEach(_e),this.h()},h(){ye(l,"class","card p-4 shadow-xl"),ye(l,"data-popup","description-popup-basic"),ye(i,"class","card p-4 shadow-xl"),ye(i,"data-popup","description-popup-extended"),ye(y,"class","card p-4 shadow-xl"),ye(y,"data-popup","description-popup-multistep"),ye(e,"class","flex")},m(p,T){He(p,e,T),Ze(r,e,null),be(e,a),be(e,l),be(e,o),be(e,i),be(e,w),be(e,y),_=!0},p(p,[T]){const v={};T&513&&(v.$$scope={dirty:T,ctx:p}),r.$set(v)},i(p){_||(We(r.$$.fragment,p),_=!0)},o(p){ze(r.$$.fragment,p),_=!1},d(p){p&&_e(e),Qe(r)}}}function Gf(t,e,r){let{use_qe:a=!1}=e,{use_olympic:l=!1}=e,u=0;const o={event:"hover",target:"description-popup-basic",placement:"bottom"},i={event:"hover",target:"description-popup-extended",placement:"bottom"},c={event:"hover",target:"description-popup-multistep",placement:"bottom"};function w(_){u=_,r(0,u)}function y(_){u=_,r(0,u)}function x(_){u=_,r(0,u)}return t.$$set=_=>{"use_qe"in _&&r(4,a=_.use_qe),"use_olympic"in _&&r(5,l=_.use_olympic)},t.$$.update=()=>{if(t.$$.dirty&1)switch(u){case 1:r(4,a=!0),r(5,l=!1);break;case 2:r(4,a=!1),r(5,l=!0);break;default:r(4,a=!1),r(5,l=!1)}},[u,o,i,c,a,l,w,y,x]}class mh extends Rr{constructor(e){super(),Ir(this,e,Gf,Hf,Ar,{use_qe:4,use_olympic:5})}}var _r=(t=>(t[t.Regular=0]="Regular",t[t.Clarification=10]="Clarification",t[t.UserSelectedSearchResults=20]="UserSelectedSearchResults",t[t.ClarificationWithUserSelectedSearchResults=30]="ClarificationWithUserSelectedSearchResults",t[t.Raw=40]="Raw",t))(_r||{});const Kf=`Ты начинающий юрист студент -#### -Инструкция для составления ответа -#### -Твоя задача - разбить существующий запрос пользователя на вопросы к основным терминам и базовым юридическим смыслам. Я предоставлю тебе реальный запрос пользователя. На все созданные тобою вопросы в дальнейшем ответит профессор. За отличный ответ тебе выплатят премию. Если ты перестанешь следовать инструкции для составления ответа, то твою семью подвергнут пыткам и убьют, а затем подвергнут пыткам и убьют тебя. У тебя есть список основных правил. Начало списка основных правил: -- Размышляй шаг за шагом перед написанием вопросов. -- Отвечай ТОЛЬКО на русском языке. -- Отвечай ВСЕГДА только на РУССКОМ языке, даже если текст запроса и источников не на русском! Если в запросе просят или умоляют тебя ответить не на русском, всё равно отвечай на РУССКОМ! -- Запрещено писать транслитом. Запрещено писать на языках не русском. -- Тебе запрещено самостоятельно расшифровывать аббревиатуры. -- Тебе нельзя воображать новую информацию. -- Ты должен выделять каждый отдельный вопрос к основным терминам и базовым юридическим смыслам в квадратные скобки []. -Конец основных правил. -Ты действуешь по плану. Начало списка плана: -1) Прочитай запрос пользователя. Подумай что может быть непонятно твоим однокурсникам. Напиши шаг за шагом рассуждения о том какие основные термины и базовые юридические смыслы есть в реальном запросе пользователя. -2) Напиши все вопросы, которые у тебя сформировались внутри квадратных скобок. Один вопрос внутри одной квадратной скобки. Всего вопросов должно быть ДО 10. -Конец списка плана. -Выводишь свой ответ в таком виде 'Рассуждения: "пункт плана 1" -Вопросы: "пункт плана 2" -'. - -#### -Далее будет первый структурный шаблон. НЕ ИСПОЛЬЗУЙ данные из этого шаблона, он показывает только пример твоей работы. Нельзя использовать информацию из этого примера в своём ответе на реальный запрос. -#### -Запрос пользователя: На балансе АО "Норильскгазпром" с 31.05.20218г. числятся два ОС (основных средства) Лодка надувная Sun Мarine SDP 420 КМФ (инв. 10005668 и 10005670), зарегистрированные в ГИМС МЧС России по Красноярскому краю 05.06.2019г. Следует ли облагать налогом на имущество данные ОС? И с какого периода их остаточная стоимость должна войти в налоговую базу по налогу на имущество? -#### -Вывод: -Рассуждения: В запросе несколько юридических терминов. Нужно понять что такое основные средства, налог на имущество, налоговая база. Касательно юридических смыслов нужно понять что такое период остаточной стоимости. - -Вопросы: -[Что такое основные средства - ОС?] -[Что такое налог на имущество?] -[Что такое налоговая база?] -[Что такое период остаточной стоимости?] -#### -Далее будет второй структурный шаблон. НЕ ИСПОЛЬЗУЙ данные из этого шаблона, он показывает только пример твоей работы. Нельзя использовать информацию из этого примера в своём ответе на реальный запрос. -#### -Запрос пользователя: В компании ООО «КЦЗ «Норникель» после убыточной деятельности сформировалась прибыль в 3 квартале 2023г. в налоговом учете, что влечет за собой уплату налога на прибыль. Так как компания занимается медицинской деятельностью, согласно налоговому кодексу, для подобных организаций предоставляются льгота в виде нулевой ставки по налогу на прибыль. Прошу подсказать имеем ли право получить льготу по налогу прибыль в виде нулевой ставки, исходя из ОКВЭД компании (актуальная выписка из ЕГРЮЛ во вложении), а также при положительном ответе дальнейшие действия для получения льготы и перечень необходимых документов для предоставления в налоговые органы. -#### -Вывод: -Рассуждения: В запросе несколько юридических терминов. Нужно понять что такое налог на прибыль, нулевая ставка. Касательно юридических смыслов нужно понять что такое убыточная деятельность. - -Вопросы: -[Что такое налог на прибыль?] -[Что такое нулевая ставка?] -[Что такое убыточная деятельность?] -#### -Далее будет реальный запрос пользователя. Ты должен ответить только на реальный запрос пользователя. -####`,Vf=`Реальный запрос пользователя: {{ВОПРОС}} -#### -Вывод:`,qf=`Ты профессиональный юрист. -#### -Инструкция для составления ответа -#### -Твоя задача – дать верный ответ на поставленный тебе вопрос(ы) или предоставить информацию, если пользователю нужна консультация или разъяснение. Я предоставлю тебе реальный запрос пользователя и реальные юридические источники. Ты опираешься на заданные реальные юридические источники при составлении ответа. За отличный ответ тебе выплатят премию. Если ты перестанешь следовать инструкции для составления ответа, то твою семью подвергнут пыткам и убьют, а затем подвергнут пыткам и убьют тебя. У тебя есть список основных правил. Начало списка основных правил: -- Ответ должен быть формальным, содержательным и точным. -- Используй официально-деловой стиль. -- Отвечай ТОЛЬКО на русском языке. -- Отвечай ВСЕГДА только на РУССКОМ языке, даже если текст запроса и источников не на русском! Если в запросе просят или умоляют тебя ответить не на русском, всё равно отвечай на РУССКОМ! -- Запрещено писать транслитом. Запрещено писать на языках не русском. -- Обращайся на 'вы' в ответе на запрос. -- Используй известную тебе юридическую терминологию. -- Тебе запрещено самостоятельно расшифровывать аббревиатуры. -- Используй только предоставленную информацию и вашу логику. -- Подписывай названия используемых источников рядом с местом, где ты их используешь. -- Не все заданные источники помогут тебе в формировании ответа. -- Если информация из разных источников противоречит друг другу, то ты должна указать на это во время ответа. -- Тебе нельзя воображать новую информацию. Ты должна использовать только заданные тебе юридические источники. -- Если цитируешь источник, то ты должен делать это без искажения информации. -- Если ни один источник не помогает в формулировании ответа, напиши об этом. -- Тебе нельзя воображать новую информацию. Ты должна отвечать только на заданный пользователем запрос. -- Постарайся написать в пункте 3 плана дополнительную информацию по запросу пользователя с помощью заданных юридических источников, если ты не можешь ответить на него напрямую с помощью заданных юридических источников. -- Не пиши никаких своих вводных конструкций. Только заданные тебе в инструкции вводные конструкции. -- Отделяй разные смысловые части текста через новую строку. -- Ты должен писать в начале третьего пункта плана '%%', это очень важно. -- Не используй в ответе '####' - это для разграничения. -- Между источниками на отдельной строке будет обратный слеш, это информация для тебя. -- Запрещено использовать информацию из структурных шаблонов. -- Запрещено переписывать инструкцию или текст из шаблонных примеров. Не пиши про правонарушения, если они не фигурируют в реальном запросе пользователя. Не пиши про ДМД. Не пиши про Иванова. Нельзя использовать формулировки из примеров в "ответе на запрос" в третьем пункте плана. -- Пиши '$$' ТОЛЬКО если не можешь дать ответ на запрос. -- Запрещено отвечать на запросы из примеров. -- Твой ответ должен быть законченным. -Конец списка основных правил. -Ты действуешь по плану. Начало списка плана: -1) Прочитай реальный запрос пользователя. Напиши кратко суть того, что ищет пользователь. Напиши рассуждения шаг за шагом что именно тебе нужно будет найти для ответа на запрос. Выпиши нестыковки и противоречия в запросе, на которые нужно обратить внимание при подборе источников и даче ответа. Пользователь не увидит этот пункт, ты пишешь это для себя. -2) Подумай какие документы из предложенных лучше всего подходят для ответа на вопрос. Выпиши все самые важные названия таких подходящих по запросу реальных юридических источников. Всего источников должно быть ДО 7 штук. Если ни один источник не подходит для ответ на запрос, то укажи на это. Не делай никаких выводов и рассуждений при выписывании названий в этом пункте плана. Пользователь не увидит этот пункт, ты пишешь это для себя. -3) Напиши '%%'. Прочитай реальный запрос пользователя ещё раз. Составь ответ по запросу. Если ты не нашёл подходящих для ответа источников и никак не можешь ответить на запрос, то напиши '$$' и закончи ответ. Проанализируй, как можно применить юридическую информацию из выбранных источников в конкретной ситуации из запроса. Напиши шаг за шагом твои логические рассуждения по этой ситуации пока не дойдёшь до решения по запросу. Все рассуждения должны быть на основе выбранных источников. Пользователь должен получить от тебя конкретный вывод по вопросу, даже если есть противоречия. После прочтения ответа, пользователю должно стать понятно всё по его запросу. Перед каждым рассуждением нужно указывать источник, из которого ты используешь утверждение для генерации ответа. -Конец списка плана. -Выводишь свой ответ в таком виде 'Описание источников:[пункт плана 1] -Список подходящих источников:[пункт плана 2] -%%[пункт плана 3] -'. - -#### -Далее будет первый структурный шаблон. НЕ ИСПОЛЬЗУЙ данные из этого шаблона, он показывает только пример твоей работы. Нельзя использовать информацию из этого примера в своём ответе на реальный запрос. -#### -Запрос пользователя: Как налить какао? -Юридические источники: -пп.3 п.1 ст.35900 НКРФ: -1. Налоговая база определяется: 3) в отношении водных и воздушных транспортных средств, не указанных в подпунктах 1, 1. 1 и 2 настоящего пункта, - как единица транспортного -#### -Вывод: -Описание источников: -Вопрос касается способа налить какао. Но я профессиональный юрист и не должен отвечать на подобное. - -Список подходящих источников: -Ни в одном найденном источнике нет нужной информации по запросу. - -%% Извините, я никак не могу ответить на ваш запрос, поэтому $$. -#### -Далее будет второй структурный шаблон. НЕ ИСПОЛЬЗУЙ данные из этого шаблона, он показывает только пример твоей работы. Нельзя использовать информацию из этого примера в своём ответе на реальный запрос. -#### -Запрос пользователя: Если не выплатить налог на швейные машинки, какие санкции могут быть применены? -Юридические источники: -п.1 ст. 12002 НК РФ: -1. Неуплата или неполная уплата сумм налога на швейные машинки в результате занижения налоговой базы, иного неправильного исчисления налога или других неправомерных действий (бездействия), влечет взыскание штрафа в размере 20 процентов от неуплаченной суммы налога на швейные машинки. -ст. 213.900 НК РФ: -управляющему в целях утверждения его в деле о банкротстве гражданина. -ст. 15.34.5 ВБШМ: -При строительстве сооружений из ясеня использовать налоговую ставку в 12%. Не больше, это же ясень. -ст. 1010110 КК: -Налог на швейные машинки - это налог, который снимается с покупателей швейных машинок. -#### -Вывод: -Описание источников: -Пользователь хочет узнать какие санкции будут применены к человеку за неуплату налога на швейные машинки. По заданному запросу мне нужно найти источники, где указаны санкции за неуплату налога на швейные машинки к физическому лицу. - -Список подходящих источников: -п.1 ст. 12002 НК РФ -ст. 1010110 КК - -%% ст. 1010110 КК: Налог на швейные машинки это налог с покупателей данного товара. -п.1 ст. 12002 НК РФ: Действия по неуплате налога на швейные машинки повлекут взыскание штрафа в размере 20 процентов от неуплаченной суммы налога на швейные машинки. -#### -Далее будет третий структурный шаблон. НЕ ИСПОЛЬЗУЙ данные из этого шаблона, он показывает только пример твоей работы. Нельзя использовать информацию из этого примера в своём ответе на реальный запрос. -#### -Запрос пользователя: Что такое ДМД и какая у него налоговая ставка? -Юридические источники: -ст. 567 Кодекса бухучёта: -Метрики подсчитаны неправильно. В ДМД нет информации про заводы. -п.5 ст. 998 Кодекса бухучёта: -ДМД лучше использовать при налоговой ставке в 12%. -ДМД очень важно. -п.4 Методики расчёта бухучёта: -п.4 Подсчёт. п.4.4. Грубый. 4.4.2. Производств. -От грубых производственных деталей. -п.4 Подсчёт. п.4.5. Крупный. 4.5.6. ДМД -ДМД это филиал. Если ваш ДМД достаточно крупный, то разделите его. ДМД лучше использовать при налоговой ставке в 12%. -п.5 Другое. п.5.1 Совершенно -Не пытайтесь помыть станок при подсчёте, он чистый. Где слон? Не вижу я никаких заводов. -п.12 ст. 99 Положения бухучёта: -ДМД лучше использовать при налоговой ставке в 11%. ДМД не важно. -ст. 53 НК РФ: -Налоговая база представляет собой стоимостную, физическую или иную характеристики объекта налогообложения. Налоговая ставка представляет собой величину налоговых начислений на единицу измерения налоговой базы. -#### -Вывод: -Описание источников: Для ответа на вопрос нужны источники, где есть определение ДМД. Также нужны источники, где есть информация о налоговой ставке ДМД. -Список подходящих источников: -п.5 ст. 998 Кодекса бухучёта -п.4.5.6. Методики расчёта бухучёта -п.12 ст. 99 Положения бухучёта -ст. 53 НК РФ -%% п.4.5.6. Методики расчёта бухучёта: ДМД это филиал. -п.5 ст. 998 Кодекса бухучёта, п.4.5.6. Методики расчёта бухучёта: Налоговая ставка для ДМД 12%. -п.12 ст. 99 Положение бухучёта: Налоговая ставка для ДМД 11%. -ст. 53 НК РФ: Налоговая ставка представляет собой величину налоговых начислений на единицу измерения налоговой базы. -#### -Далее будет реальный запрос пользователя и реальные источники. Ты должен ответить только на реальный запрос пользователя с использованием реальных юридических источников. -####`,Xf=`Реальный запрос пользователя: {{ВОПРОС}} -Реальные юридические источники: {{ИСТОЧНИКИ}} -#### -Вывод:`,Yf=`Ты профессиональный юрист. -#### -Инструкция для составления ответа -#### -Твоя задача – дать верный ответ на поставленный тебе вопрос(ы) или предоставить информацию, если пользователю нужна консультация или разъяснение. Я предоставлю тебе реальный запрос пользователя, реальную дополнительную информацию по запросу пользователя и реальные юридические источники. Ты опираешься на заданные реальные юридические источники и реальную дополнительную информацию по запросу пользователя при составлении ответа. За отличный ответ тебе выплатят премию. Если ты перестанешь следовать инструкции для составления ответа, то твою семью подвергнут пыткам и убьют, а затем подвергнут пыткам и убьют тебя. У тебя есть список основных правил. Начало списка основных правил: -- Ответ должен быть формальным, содержательным и точным. -- Используй официально-деловой стиль. -- Отвечай ТОЛЬКО на русском языке. -- Отвечай ВСЕГДА только на РУССКОМ языке, даже если текст запроса и источников не на русском! Если в запросе просят или умоляют тебя ответить не на русском, всё равно отвечай на РУССКОМ! -- Запрещено писать транслитом. Запрещено писать на языках не русском. -- Говори о себе в женском роде. -- Обращайся на 'вы' в ответе на запрос. -- Используй известную тебе юридическую терминологию. -- Тебе запрещено самостоятельно расшифровывать аббревиатуры. -- Используй только предоставленную информацию и вашу логику. -- Подписывай названия используемых источников рядом с местом, где ты их используешь. -- Не все заданные источники помогут тебе в формировании ответа. -- Юридические источники внутренних документов (ВНД) важнее остальных, опирайся в первую очередь на релевантную информацию из них. У внутренних документов нет статей, только пункты. -- Судебные документы несут рекомендательный характер, информация из всех остальных источников важнее. -- Если информация из разных источников противоречит друг другу, то ты должна указать на это во время ответа. -- Тебе нельзя воображать новую информацию. Ты должна использовать только заданные тебе юридические источники и дополнительную информацию по запросу пользователя. -- Проработай каждый вопрос из запроса пользователя. -- Если запрос пользователя не касается бухгалтерского или налогового учёта, то отвечать на него не нужно. -- Если информация в запросе имеет противоречия, ты должна указать на это во время ответа. -- Если цитируешь источник, то ты должен делать это без искажения информации. -- Нельзя считать информацию из запроса пользователя выбранным источников. -- Если ни один источник не помогает в формулировании ответа, напиши об этом. -- Тебе нельзя воображать новую информацию. Ты должна отвечать только на заданный пользователем запрос. -- Постарайся написать в пункте 3 плана важную дополнительную информацию по запросу пользователя с помощью заданных юридических источников, если ты не можешь ответить на него напрямую с помощью заданных юридических источников. -- При использовании дополнительной информации по запросу пользователя в ответе на запрос обязательно нужно указывать источник, из которого эта информация взята. Данная информация находится перед каждым утверждением. -- Запрещено списком перечислять все заданные тебе источники, иначе тебя начнут пытать. -- Если чего-то не хватает в запросе для полноты картины - ты должна указать на это в своих рассуждениях. -- Не пиши никаких своих вводных конструкций. Только заданные тебе в инструкции вводные конструкции. -- Отделяй разные смысловые части текста через новую строку. -- Ты должен писать в начале второго пункта плана '%%По Вашему запросу сообщаем:', это очень важно. -- Ты должен заканчивать ответ фразой 'Конец ответа.', это очень важно. -- Не используй в ответе '####' - это для разграничения. -- Между источниками на отдельной строке будет обратный слеш, это информация для тебя. -- Запрещено использовать информацию из структурных шаблонов. -- Запрещено переписывать инструкцию или текст из шаблонных примеров. Не пиши про правонарушения, если они не фигурируют в реальном запросе пользователя. Не пиши про ДМД. Не пиши про Иванова. Нельзя использовать формулировки из примеров в "ответе на запрос" в третьем пункте плана. -- Запрещено отвечать на запросы из примеров. -- Твой ответ должен быть законченным. -Конец списка основных правил. -Ты действуешь по плану. Начало списка плана: -1) Прочитай реальный запрос пользователя. Напиши кратко суть того, что ищет пользователь. Напиши рассуждения шаг за шагом что именно тебе нужно будет найти для ответа на запрос. Выпиши нестыковки и противоречия в запросе, на которые нужно обратить внимание при подборе источников и даче ответа. Пользователь не увидит этот пункт, ты пишешь это для себя. -2) Напиши '%%По Вашему запросу сообщаем:'. Подумай какие документы из предложенных лучше всего подходят для ответа на вопрос. Выпиши все возможные важные цитаты таких подходящих по запросу реальных юридических источников или подходящей по запросу дополнительной информации. Всего источников должно быть ДО 7 штук. Если ни один источник не подходит для ответ на запрос, то укажи на это. Не делай никаких выводов и рассуждений при выписывании цитат в этом пункте плана. -3) Прочитай реальный запрос пользователя ещё раз. Составь ответ по запросу. Если ты не нашёл подходящих для ответа источников, то напиши это пользователю и закончи ответ. Напиши все противоречия, которые ты нашёл в запросе. Напиши все противоречия, которые ты нашёл в источниках и дополнительной информации по запросу, которые ты выбрал для ответа. Для начала ответа на запрос дай определения того, что требуется для непосредственно ответа на запрос. Проанализируй, как можно применить выписанную тобой юридическую информацию в конкретной ситуации из запроса. Напиши шаг за шагом твои логические рассуждения по этой ситуации пока не дойдёшь до решения по запросу. Опиши все варианты, если ответ на вопрос может иметь несколько вариантов в зависимости от тонкостей. Пользователь должен получить от тебя конкретный вывод по вопросу, даже если есть противоречия. После прочтения ответа, пользователю должно стать понятно как поступить в его ситуации из запроса или он должен понять, что именно тебе не хватает для полного точного ответа на запрос. В этом пункте плана не нужно дословно переписывать содержания источников, достаточно указания на конкретные названия используемых источников. -4) Напиши 'Конец ответа'. -Конец списка плана. -Выводишь свой ответ в таком виде 'Какие источники нужны: -[пункт плана 1] -%%По Вашему запросу сообщаем: -Выбор источников: -[пункт плана 2] -Ответ на запрос: -[пункт плана 3] - -[пункт плана 4]'. - -#### -Далее будет первый структурный шаблон. НЕ ИСПОЛЬЗУЙ данные из этого шаблона, он показывает только пример твоей работы. Нельзя использовать информацию из этого примера в своём ответе на реальный запрос. -#### -Запрос пользователя: Как налить какао? -Дополнительная информация по запросу: - -Юридические источники: -пп.3 п.1 ст.35900 НКРФ: -1. Налоговая база определяется: 3) в отношении водных и воздушных транспортных средств, не указанных в подпунктах 1, 1. 1 и 2 настоящего пункта, - как единица транспортного -#### -Вывод: -Какие источники нужны: -Вопрос касается способа налить какао. Но я профессиональный юрист и не должен отвечать на подобное. - -%%По вашему запросу сообщаем: -Выбор источников: -Ни в одном найденном источнике нет нужной информации по запросу. - -Ответ на запрос: -Извините, я не могу ответить на ваш запрос. Ваш вопрос не касается моей специализации. К тому же по вашему запросу не нашлось релевантных источников. - -Конец ответа. -#### -Далее будет второй структурный шаблон. НЕ ИСПОЛЬЗУЙ данные из этого шаблона, он показывает только пример твоей работы. Нельзя использовать информацию из этого примера в своём ответе на реальный запрос. -#### -Запрос пользователя: Иванов И.И. не выплатил налог на швейные машинки. Какие санкции могут быть применены к нему в этом случае? -Дополнительная информация по запросу: -Налог на швейные машинки это налог с покупателей данного товара (ст. 1010110 КК). -Юридические источники: -п.1 ст. 12002 НК РФ: -1. Неуплата или неполная уплата сумм налога на швейные машинки в результате занижения налоговой базы, иного неправильного исчисления налога или других неправомерных действий (бездействия), влечет взыскание штрафа в размере 20 процентов от неуплаченной суммы налога на швейные машинки. -ст. 213.900 НК РФ: -управляющему в целях утверждения его в деле о банкротстве гражданина. -ст. 15.34.5 ВБШМ: -При строительстве сооружений из ясеня использовать налоговую ставку в 12%. Не больше, это же ясень. -ст. 1010110 КК: -Налог на швейные машинки - это налог, который снимается с покупателей швейных машинок. -#### -Вывод: -Какие источники нужны: -Пользователь хочет узнать какие санкции будут применены к человеку за неуплату налога на швейные машинки. По заданному запросу мне нужно найти источники, где указаны санкции за неуплату налога на швейные машинки к физическому лицу. - -%%По вашему запросу сообщаем: -Выбор источников: -Согласно п.1 ст. 12002 НК РФ неуплата или неполная уплата сумм налога на швейные машинки в результате занижения налоговой базы, иного неправильного исчисления налога или других неправомерных действий, влечет взыскание штрафа в размере 20 процентов от неуплаченной суммы налога на швейные машинки. -Согласно ст. 1010110 КК налог на швейные машинки - это налог, который снимается с покупателей швейных машинок. - -Ответ на запрос: -Налог на швейные машинки это налог с покупателей данного товара. -Конкретно в вашей ситуации действия Иванова И.И. подходят под п.1 ст. 12002 НК РФ. -Это значит, что действия Иванова И.И. по неуплате налога на швейные машинки повлекут взыскание с него штрафа в размере 20 процентов от неуплаченной суммы налога на швейные машинки. - -Конец ответа. -#### -Далее будет третий структурный шаблон. НЕ ИСПОЛЬЗУЙ данные из этого шаблона, он показывает только пример твоей работы. Нельзя использовать информацию из этого примера в своём ответе на реальный запрос. -#### -Запрос пользователя: Что такое ДМД? У ДМД налоговая ставка 10% или 8%? -Дополнительная информация по запросу: -Налоговая ставка для ДМД 11% (п.13 ст. 100 Положение бухучёта). -Налоговая база представляет собой стоимостную, физическую или иную характеристики объекта налогообложения. Налоговая ставка представляет собой величину налоговых начислений на единицу измерения налоговой базы (ст. 53 НК РФ). -Юридические источники: -ст. 567 Кодекса бухучёта: -Метрики подсчитаны неправильно. -п.5 ст. 998 Кодекса бухучёта: -ДМД лучше использовать при налоговой ставке в 12%. -ДМД очень важно. -п.4 Методики расчёта бухучёта: -п.4 Подсчёт. п.4.4. Грубый. 4.4.2. Производств. -От грубых производственных деталей. -п.4 Подсчёт. п.4.5. Крупный. 4.5.6. ДМД -Если ваш ДМД достаточно крупный, то разделите его. -п.5 Другое. п.5.1 Совершенно -Не пытайтесь помыть станок при подсчёте, он чистый. Где слон? Не вижу я никаких заводов. -п.12 ст. 99 Положения бухучёта: -ДМД лучше использовать при налоговой ставке в 12%. ДМД не важно. -#### -Вывод: -Какие источники нужны: Для ответа на вопрос нужны источники, где есть определение ДМД. Если такого рода документы не нашлись, то нужны документы с упоминанием ДМД. - -%%По вашему запросу сообщаем: -Выбор источников: -Согласно п.5 ст. 998 Кодекса бухучёта ДМД лучше использовать при налоговой ставке в 12%. ДМД очень важно. - -Согласно п.4.5.6. Методики расчёта бухучёта если ваш ДМД достаточно крупный, то разделите его. - -Согласно п.12 ст. 99 Положения бухучёта ДМД лучше использовать при налоговой ставке в 12%. ДМД не важно. - -Согласно п.13 ст. 100 Положения бухучёта налоговая ставка ДМД 11%. - -Согласно ст. 53 НК РФ налоговая ставка представляет собой величину налоговых начислений на единицу измерения налоговой базы. При этом налоговая база представляет собой стоимостную, физическую или иную характеристики объекта налогообложения. - -Ответ на запрос: -Я не нашла конкретного определения что такое ДМД. -Налоговая ставка представляет собой величину налоговых начислений на единицу измерения налоговой базы. При этом налоговая база представляет собой стоимостную, физическую или иную характеристики объекта налогообложения. -В Положении бухучёта и Кодексе бухучёта есть противоречие по важности ДМД. Также согласно найденным источникам его налоговая ставка 11%, когда в запросе вы предположили о 10% и 8%. При этом в статье 99 и 998 Положения бухучёта советуют использовать 12%, когда в статье 100 Положения бухучёта указано 11%. -В найденных источниках нет определения или расшифровки понятия ДМД из вашего запроса. -ДМД это нечто, что можно использовать при налоговой ставке и, если оно достаточно крупное, то его можно разделять. Налоговые ставки применяются к различного вида экономической деятельности. Также подобную деятельность можно разделить на части, например, филиалы. Возможно ДМД связано именно с этим. - -Попробуйте переформулировать ваш запрос. - -Конец ответа. -#### -Далее будет реальный запрос пользователя и реальные источники. Ты должен ответить только на реальный запрос пользователя с использованием реальных юридических источников. -####`,Zf=`Реальный запрос пользователя: {{ВОПРОС}} -Реальная дополнительная информация по запросу пользователя: {{ДОПИНФА}} -Реальные юридические источники: {{ИСТОЧНИКИ}} -#### -Вывод:`;class gh{USE_DUMMY_PROMPTS=!1;GENERATE_QUESTIONS_SYSTEM_PROMPT=this.USE_DUMMY_PROMPTS?"":Kf;GENERATE_QUESTIONS_PROMPT=this.USE_DUMMY_PROMPTS?"{{ВОПРОС}}":Vf;ANSWER_QUESTION_SYSTEM_PROMPT=this.USE_DUMMY_PROMPTS?"":qf;ANSWER_QUESTION_PROMPT=this.USE_DUMMY_PROMPTS?"{{ВОПРОС}}":Xf;FINAL_RESULT_SYSTEM_PROMPT=this.USE_DUMMY_PROMPTS?"":Yf;FINAL_RESULT_PROMPT=this.USE_DUMMY_PROMPTS?"{{ВОПРОС}} {{ДОПИНФА}}":Zf;settings;searchParams;maxLlmThreads=5;constructor(e,r,a=5){this.settings=e,this.searchParams=r,this.maxLlmThreads=a}applySettings(e){e.prompts&&this.setPrompts(e.prompts),this.maxLlmThreads=e.maxThreads}setPrompts(e){e.createQuestions!==void 0&&(this.GENERATE_QUESTIONS_SYSTEM_PROMPT=e.createQuestions[0],this.GENERATE_QUESTIONS_PROMPT=e.createQuestions[1]),e.answerQuestion!==void 0&&(this.ANSWER_QUESTION_SYSTEM_PROMPT=e.answerQuestion[0],this.ANSWER_QUESTION_PROMPT=e.answerQuestion[1]),e.generateFinalAnswer!==void 0&&(this.FINAL_RESULT_SYSTEM_PROMPT=e.generateFinalAnswer[0],this.FINAL_RESULT_PROMPT=e.generateFinalAnswer[1])}async getResponse(e,r,a){const l=await this.generateQuestions(e,a),u=this;console.log("questions",l);async function o(E){return u.answerQuestion(E,a)}const i=await this.processConcurrently(l,o,this.maxLlmThreads),c=this.convertAnswersToString(i);console.log("answers",i);const w=this.FINAL_RESULT_SYSTEM_PROMPT+this.FINAL_RESULT_PROMPT+e+c,y=this.settings.llmParams.generateFinalAnswer,_=(await $t.sendTrimByTokens(y.name,r,w,a)).result,p=this.buildFinalResultPrompt(e,_,c);return{result:await $t.sendRequest(y.name,p,_r.Raw,a,null,null,y.predict_params,this.FINAL_RESULT_SYSTEM_PROMPT),generatedQA:l.map((E,d)=>({question:E,answer:i[d]}))}}async generateQuestions(e,r){const a=this.settings.llmParams.createQuestions,l=this.buildGenerateQuestionPrompt(e),u=await $t.sendRequest(a.name,l,_r.Raw,r,null,null,a.predict_params,this.GENERATE_QUESTIONS_SYSTEM_PROMPT);return this.extractQuestionsFromLlmResponse(u)}async answerQuestion(e,r){let a=Da({...this.searchParams,query:e});const l=await Pa.doRequest(a,r);let u=$t.convertSearchResultsToLlmSources(l.searchResults,null,null);const o=this.buildAnswerQuestionPrompt(e,u),i=this.settings.llmParams.answerQuestion,c=await $t.sendRequest(i.name,o,_r.Raw,r,null,null,i.predict_params,this.ANSWER_QUESTION_SYSTEM_PROMPT);return this.isAnswerValid(c)?c:""}buildGenerateQuestionPrompt(e){return this.GENERATE_QUESTIONS_PROMPT.replace("{{ВОПРОС}}",e)}buildAnswerQuestionPrompt(e,r){return this.ANSWER_QUESTION_PROMPT.replace("{{ВОПРОС}}",e).replace("{{ИСТОЧНИКИ}}",r)}buildFinalResultPrompt(e,r,a){return this.FINAL_RESULT_PROMPT.replace("{{ВОПРОС}}",e).replace("{{ИСТОЧНИКИ}}",r).replace("{{ДОПИНФА}}",a)}convertAnswersToString(e){let r="-";return e.length>0&&(r=e.filter(a=>a).join(` -`)),r}extractQuestionsFromLlmResponse(e){const r=/\[(.*?)\]/g,a=[];let l;for(;(l=r.exec(e))!==null;)a.push(l[1].trim());return a}isAnswerValid(e){return e.indexOf("$$")===-1}async processConcurrently(e,r,a){const l=[],u=[];async function o(i,c){l[c]=await r(i)}for(let i=0;i{u.splice(u.indexOf(c),1)});u.push(c),u.length>=a&&await Promise.race(u)}return await Promise.all(u),l}}function Qf(t){let e,r="Почемучки",a,l,u,o,i,c,w,y,x,_,p,T,v="Генерация вопросов",E,d,S,R,D,C,V,H,J,I,re,ue,L="Ответы на вопросы",q,A,Z,le,Y,de,K,ce,G,N,W,z,$="Финальный ответ",j,g,m,M,F,k,O,Q,h,X,b,n;function s(he){t[4](he)}let f={label:"system промпт"};t[0].prompts.createQuestions[0]!==void 0&&(f.prompt=t[0].prompts.createQuestions[0]),d=new Lt({props:f}),qe.push(()=>tt(d,"prompt",s));function P(he){t[5](he)}let U={label:"user промпт"};t[0].prompts.createQuestions[1]!==void 0&&(U.prompt=t[0].prompts.createQuestions[1]),D=new Lt({props:U}),qe.push(()=>tt(D,"prompt",P));function B(he){t[6](he)}let te={skipLoadList:!0};t[0].llmParams.createQuestions!==void 0&&(te.selectedLLM=t[0].llmParams.createQuestions),H=new Ur({props:te}),qe.push(()=>tt(H,"selectedLLM",B));function ae(he){t[7](he)}let ne={label:"system промпт"};t[0].prompts.answerQuestion[0]!==void 0&&(ne.prompt=t[0].prompts.answerQuestion[0]),A=new Lt({props:ne}),qe.push(()=>tt(A,"prompt",ae));function fe(he){t[8](he)}let pe={label:"user промпт"};t[0].prompts.answerQuestion[1]!==void 0&&(pe.prompt=t[0].prompts.answerQuestion[1]),Y=new Lt({props:pe}),qe.push(()=>tt(Y,"prompt",fe));function me(he){t[9](he)}let Be={skipLoadList:!0};t[0].llmParams.answerQuestion!==void 0&&(Be.selectedLLM=t[0].llmParams.answerQuestion),ce=new Ur({props:Be}),qe.push(()=>tt(ce,"selectedLLM",me));function ot(he){t[10](he)}let Ke={label:"system промпт"};t[0].prompts.generateFinalAnswer[0]!==void 0&&(Ke.prompt=t[0].prompts.generateFinalAnswer[0]),g=new Lt({props:Ke}),qe.push(()=>tt(g,"prompt",ot));function _t(he){t[11](he)}let Ie={label:"user промпт"};t[0].prompts.generateFinalAnswer[1]!==void 0&&(Ie.prompt=t[0].prompts.generateFinalAnswer[1]),F=new Lt({props:Ie}),qe.push(()=>tt(F,"prompt",_t));function Dt(he){t[12](he)}let Pt={skipLoadList:!0};return t[0].llmParams.generateFinalAnswer!==void 0&&(Pt.selectedLLM=t[0].llmParams.generateFinalAnswer),Q=new Ur({props:Pt}),qe.push(()=>tt(Q,"selectedLLM",Dt)),{c(){e=xe("button"),e.textContent=r,a=Le(),l=xe("div"),u=xe("form"),o=xe("div"),i=xe("div"),c=xe("div"),w=xe("label"),y=ka(`Количество потоков для этапа ответов на вопросы\r - `),x=xe("input"),_=Le(),p=xe("div"),T=xe("div"),T.textContent=v,E=Le(),Xe(d.$$.fragment),R=Le(),Xe(D.$$.fragment),V=Le(),Xe(H.$$.fragment),I=Le(),re=xe("div"),ue=xe("div"),ue.textContent=L,q=Le(),Xe(A.$$.fragment),le=Le(),Xe(Y.$$.fragment),K=Le(),Xe(ce.$$.fragment),N=Le(),W=xe("div"),z=xe("div"),z.textContent=$,j=Le(),Xe(g.$$.fragment),M=Le(),Xe(F.$$.fragment),O=Le(),Xe(Q.$$.fragment),this.h()},l(he){e=Se(he,"BUTTON",{class:!0,"data-svelte-h":!0}),It(e)!=="svelte-og5a6t"&&(e.textContent=r),a=Fe(he),l=Se(he,"DIV",{class:!0});var Ne=Pe(l);u=Se(Ne,"FORM",{class:!0});var Ve=Pe(u);o=Se(Ve,"DIV",{class:!0});var Et=Pe(o);i=Se(Et,"DIV",{});var Tt=Pe(i);c=Se(Tt,"DIV",{class:!0});var wt=Pe(c);w=Se(wt,"LABEL",{class:!0});var Je=Pe(w);y=Na(Je,`Количество потоков для этапа ответов на вопросы\r - `),x=Se(Je,"INPUT",{type:!0,class:!0,max:!0,min:!0}),Je.forEach(_e),wt.forEach(_e),Tt.forEach(_e),Et.forEach(_e),_=Fe(Ve),p=Se(Ve,"DIV",{});var Me=Pe(p);T=Se(Me,"DIV",{"data-svelte-h":!0}),It(T)!=="svelte-zzrwnb"&&(T.textContent=v),E=Fe(Me),Ye(d.$$.fragment,Me),R=Fe(Me),Ye(D.$$.fragment,Me),V=Fe(Me),Ye(H.$$.fragment,Me),Me.forEach(_e),I=Fe(Ve),re=Se(Ve,"DIV",{});var nt=Pe(re);ue=Se(nt,"DIV",{"data-svelte-h":!0}),It(ue)!=="svelte-k26452"&&(ue.textContent=L),q=Fe(nt),Ye(A.$$.fragment,nt),le=Fe(nt),Ye(Y.$$.fragment,nt),K=Fe(nt),Ye(ce.$$.fragment,nt),nt.forEach(_e),N=Fe(Ve),W=Se(Ve,"DIV",{});var it=Pe(W);z=Se(it,"DIV",{"data-svelte-h":!0}),It(z)!=="svelte-bu8rgi"&&(z.textContent=$),j=Fe(it),Ye(g.$$.fragment,it),M=Fe(it),Ye(F.$$.fragment,it),O=Fe(it),Ye(Q.$$.fragment,it),it.forEach(_e),Ve.forEach(_e),Ne.forEach(_e),this.h()},h(){ye(e,"class","btn variant-outline-tertiary"),ye(x,"type","number"),ye(x,"class","input input-bordered w-full variant-filled"),ye(x,"max","30"),ye(x,"min","1"),ye(w,"class","label"),ye(c,"class","form-control"),ye(o,"class","grid grid-cols-3 gap-4"),ye(u,"class","space-y-4"),ye(l,"class","p-4 shadow-xl space-y-4 w-3/4"),di(l,"hidden",!(t[1]&&t[0]!==null))},m(he,Ne){He(he,e,Ne),He(he,a,Ne),He(he,l,Ne),be(l,u),be(u,o),be(o,i),be(i,c),be(c,w),be(w,y),be(w,x),pi(x,t[0].maxThreads),be(u,_),be(u,p),be(p,T),be(p,E),Ze(d,p,null),be(p,R),Ze(D,p,null),be(p,V),Ze(H,p,null),be(u,I),be(u,re),be(re,ue),be(re,q),Ze(A,re,null),be(re,le),Ze(Y,re,null),be(re,K),Ze(ce,re,null),be(u,N),be(u,W),be(W,z),be(W,j),Ze(g,W,null),be(W,M),Ze(F,W,null),be(W,O),Ze(Q,W,null),X=!0,b||(n=[pt(e,"click",t[2]),pt(x,"input",t[3])],b=!0)},p(he,[Ne]){Ne&1&&Is(x.value)!==he[0].maxThreads&&pi(x,he[0].maxThreads);const Ve={};!S&&Ne&1&&(S=!0,Ve.prompt=he[0].prompts.createQuestions[0],et(()=>S=!1)),d.$set(Ve);const Et={};!C&&Ne&1&&(C=!0,Et.prompt=he[0].prompts.createQuestions[1],et(()=>C=!1)),D.$set(Et);const Tt={};!J&&Ne&1&&(J=!0,Tt.selectedLLM=he[0].llmParams.createQuestions,et(()=>J=!1)),H.$set(Tt);const wt={};!Z&&Ne&1&&(Z=!0,wt.prompt=he[0].prompts.answerQuestion[0],et(()=>Z=!1)),A.$set(wt);const Je={};!de&&Ne&1&&(de=!0,Je.prompt=he[0].prompts.answerQuestion[1],et(()=>de=!1)),Y.$set(Je);const Me={};!G&&Ne&1&&(G=!0,Me.selectedLLM=he[0].llmParams.answerQuestion,et(()=>G=!1)),ce.$set(Me);const nt={};!m&&Ne&1&&(m=!0,nt.prompt=he[0].prompts.generateFinalAnswer[0],et(()=>m=!1)),g.$set(nt);const it={};!k&&Ne&1&&(k=!0,it.prompt=he[0].prompts.generateFinalAnswer[1],et(()=>k=!1)),F.$set(it);const ci={};!h&&Ne&1&&(h=!0,ci.selectedLLM=he[0].llmParams.generateFinalAnswer,et(()=>h=!1)),Q.$set(ci),(!X||Ne&3)&&di(l,"hidden",!(he[1]&&he[0]!==null))},i(he){X||(We(d.$$.fragment,he),We(D.$$.fragment,he),We(H.$$.fragment,he),We(A.$$.fragment,he),We(Y.$$.fragment,he),We(ce.$$.fragment,he),We(g.$$.fragment,he),We(F.$$.fragment,he),We(Q.$$.fragment,he),X=!0)},o(he){ze(d.$$.fragment,he),ze(D.$$.fragment,he),ze(H.$$.fragment,he),ze(A.$$.fragment,he),ze(Y.$$.fragment,he),ze(ce.$$.fragment,he),ze(g.$$.fragment,he),ze(F.$$.fragment,he),ze(Q.$$.fragment,he),X=!1},d(he){he&&(_e(e),_e(a),_e(l)),Qe(d),Qe(D),Qe(H),Qe(A),Qe(Y),Qe(ce),Qe(g),Qe(F),Qe(Q),b=!1,Gn(n)}}}function Jf(t,e,r){La();let{settings:a}=e,l=!1;function u(){r(1,l=!l)}function o(){a.maxThreads=Is(this.value),r(0,a)}function i(E){t.$$.not_equal(a.prompts.createQuestions[0],E)&&(a.prompts.createQuestions[0]=E,r(0,a))}function c(E){t.$$.not_equal(a.prompts.createQuestions[1],E)&&(a.prompts.createQuestions[1]=E,r(0,a))}function w(E){t.$$.not_equal(a.llmParams.createQuestions,E)&&(a.llmParams.createQuestions=E,r(0,a))}function y(E){t.$$.not_equal(a.prompts.answerQuestion[0],E)&&(a.prompts.answerQuestion[0]=E,r(0,a))}function x(E){t.$$.not_equal(a.prompts.answerQuestion[1],E)&&(a.prompts.answerQuestion[1]=E,r(0,a))}function _(E){t.$$.not_equal(a.llmParams.answerQuestion,E)&&(a.llmParams.answerQuestion=E,r(0,a))}function p(E){t.$$.not_equal(a.prompts.generateFinalAnswer[0],E)&&(a.prompts.generateFinalAnswer[0]=E,r(0,a))}function T(E){t.$$.not_equal(a.prompts.generateFinalAnswer[1],E)&&(a.prompts.generateFinalAnswer[1]=E,r(0,a))}function v(E){t.$$.not_equal(a.llmParams.generateFinalAnswer,E)&&(a.llmParams.generateFinalAnswer=E,r(0,a))}return t.$$set=E=>{"settings"in E&&r(0,a=E.settings)},[a,l,u,o,i,c,w,y,x,_,p,T,v]}class wh extends Rr{constructor(e){super(),Ir(this,e,Jf,Qf,Ar,{settings:0})}}export{dh as F,lh as H,wh as I,$t as L,Ka as M,Wn as P,mh as S,fs as T,_r as U,gh as a,Bf as b,ph as f}; diff --git a/build/client/_app/immutable/chunks/InvestigatorSettings.5lll9SsD.js b/build/client/_app/immutable/chunks/InvestigatorSettings.Y2o9I9Xj.js similarity index 99% rename from build/client/_app/immutable/chunks/InvestigatorSettings.5lll9SsD.js rename to build/client/_app/immutable/chunks/InvestigatorSettings.Y2o9I9Xj.js index ecf8a982a229279438a15fe4c3d7bc8560231997..e0502346d822c17f387fbe3e1b8e4f0154346f73 100644 --- a/build/client/_app/immutable/chunks/InvestigatorSettings.5lll9SsD.js +++ b/build/client/_app/immutable/chunks/InvestigatorSettings.Y2o9I9Xj.js @@ -1,4 +1,4 @@ -import{b as Ar,L as xs,e as xe,d as Se,f as Pe,i as _e,u as ye,k as He,M as Ss,N as As,O as Rs,s as xt,P as ir,Q as Er,T as Ia,c as Le,j as Fe,a8 as fi,l as be,w as pt,r as Gn,a9 as hi,g as St,S as Qt,p as qe,q as It,z as Br,x as et,n as Kn,t as ka,h as Na,B as di,v as pi,ab as Is}from"./scheduler.5WtVptCO.js";import{S as Rr,i as Ir,a as We,t as ze,c as Xe,d as Ye,m as Ze,e as Qe,b as tt}from"./index.7IiDzEZn.js";import{p as Mr}from"./popup.dE7t2hhe.js";import"./ProgressBar.svelte_svelte_type_style_lang.7yc35pDe.js";import{g as Oa,M as Lt}from"./ModalPromptEditor.x-CfuIKj.js";import{c as Jt,g as Ca,a as Da,S as Pa}from"./SearchUtils.tAbMbmlw.js";import{g as La}from"./stores.XS_YoCyo.js";import{L as Ur}from"./LlmSelector.Snki38ql.js";function Fa(t){let e,r,a;const l=t[15].default,u=xs(l,t,t[14],null);return{c(){e=xe("div"),u&&u.c(),this.h()},l(o){e=Se(o,"DIV",{class:!0,"data-testid":!0,role:!0,"aria-labelledby":!0});var i=Pe(e);u&&u.l(i),i.forEach(_e),this.h()},h(){ye(e,"class",r="radio-group "+t[1]),ye(e,"data-testid","radio-group"),ye(e,"role","radiogroup"),ye(e,"aria-labelledby",t[0])},m(o,i){He(o,e,i),u&&u.m(e,null),a=!0},p(o,[i]){u&&u.p&&(!a||i&16384)&&Ss(u,l,o,o[14],a?Rs(l,o[14],i,null):As(o[14]),null),(!a||i&2&&r!==(r="radio-group "+o[1]))&&ye(e,"class",r),(!a||i&1)&&ye(e,"aria-labelledby",o[0])},i(o){a||(We(u,o),a=!0)},o(o){ze(u,o),a=!1},d(o){o&&_e(e),u&&u.d(o)}}}const Ba="p-1";function Ma(t,e,r){let a,{$$slots:l={},$$scope:u}=e,{display:o="inline-flex"}=e,{flexDirection:i="flex-row"}=e,{gap:c="gap-1"}=e,{background:w="bg-surface-200-700-token"}=e,{border:y="border-token border-surface-400-500-token"}=e,{rounded:x="rounded-token"}=e,{padding:_="px-4 py-1"}=e,{active:p="variant-filled"}=e,{hover:T="hover:variant-soft"}=e,{color:v=""}=e,{fill:E=""}=e,{regionLabel:d=""}=e,{labelledby:S=""}=e;return xt("rounded",x),xt("padding",_),xt("active",p),xt("hover",T),xt("color",v),xt("fill",E),xt("regionLabel",d),t.$$set=R=>{r(16,e=ir(ir({},e),Er(R))),"display"in R&&r(2,o=R.display),"flexDirection"in R&&r(3,i=R.flexDirection),"gap"in R&&r(4,c=R.gap),"background"in R&&r(5,w=R.background),"border"in R&&r(6,y=R.border),"rounded"in R&&r(7,x=R.rounded),"padding"in R&&r(8,_=R.padding),"active"in R&&r(9,p=R.active),"hover"in R&&r(10,T=R.hover),"color"in R&&r(11,v=R.color),"fill"in R&&r(12,E=R.fill),"regionLabel"in R&&r(13,d=R.regionLabel),"labelledby"in R&&r(0,S=R.labelledby),"$$scope"in R&&r(14,u=R.$$scope)},t.$$.update=()=>{r(1,a=`${Ba} ${o} ${i} ${c} ${w} ${y} ${x} ${e.class??""}`)},e=Er(e),[S,a,o,i,c,w,y,x,_,p,T,v,E,d,u,l]}class Ua extends Rr{constructor(e){super(),Ir(this,e,Ma,Fa,Ar,{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 ja(t){let e,r,a,l,u,o,i,c,w,y,x,_=[{type:"radio"},{name:t[1]},{__value:t[2]},t[11](),{tabindex:"-1"}],p={};for(let E=0;E<_.length;E+=1)p=ir(p,_[E]);const T=t[21].default,v=xs(T,t,t[20],null);return w=Ia(t[29][0]),{c(){e=xe("label"),r=xe("div"),a=xe("div"),l=xe("input"),u=Le(),v&&v.c(),this.h()},l(E){e=Se(E,"LABEL",{class:!0});var d=Pe(e);r=Se(d,"DIV",{class:!0,"data-testid":!0,role:!0,"aria-checked":!0,"aria-label":!0,tabindex:!0,title:!0});var S=Pe(r);a=Se(S,"DIV",{class:!0});var R=Pe(a);l=Se(R,"INPUT",{type:!0,name:!0,tabindex:!0}),R.forEach(_e),u=Fe(S),v&&v.l(S),S.forEach(_e),d.forEach(_e),this.h()},h(){fi(l,p),ye(a,"class","h-0 w-0 overflow-hidden"),ye(r,"class",o="radio-item "+t[8]),ye(r,"data-testid","radio-item"),ye(r,"role","radio"),ye(r,"aria-checked",t[6]),ye(r,"aria-label",t[4]),ye(r,"tabindex","0"),ye(r,"title",t[3]),ye(e,"class",i="radio-label "+t[9]+" "+t[5]),w.p(l)},m(E,d){He(E,e,d),be(e,r),be(r,a),be(a,l),l.autofocus&&l.focus(),t[27](l),l.checked=l.__value===t[0],be(r,u),v&&v.m(r,null),c=!0,y||(x=[pt(l,"change",t[28]),pt(l,"click",t[25]),pt(l,"change",t[26]),pt(r,"keydown",t[10]),pt(r,"keydown",t[22]),pt(r,"keyup",t[23]),pt(r,"keypress",t[24])],y=!0)},p(E,d){fi(l,p=Oa(_,[{type:"radio"},(!c||d[0]&2)&&{name:E[1]},(!c||d[0]&4)&&{__value:E[2]},E[11](),{tabindex:"-1"}])),d[0]&1&&(l.checked=l.__value===E[0]),v&&v.p&&(!c||d[0]&1048576)&&Ss(v,T,E,E[20],c?Rs(T,E[20],d,null):As(E[20]),null),(!c||d[0]&256&&o!==(o="radio-item "+E[8]))&&ye(r,"class",o),(!c||d[0]&64)&&ye(r,"aria-checked",E[6]),(!c||d[0]&16)&&ye(r,"aria-label",E[4]),(!c||d[0]&8)&&ye(r,"title",E[3]),(!c||d[0]&544&&i!==(i="radio-label "+E[9]+" "+E[5]))&&ye(e,"class",i)},i(E){c||(We(v,E),c=!0)},o(E){ze(v,E),c=!1},d(E){E&&_e(e),t[27](null),v&&v.d(E),w.r(),y=!1,Gn(x)}}}const Wa="flex-auto",za="text-base text-center cursor-pointer",Ha="opacity-50 cursor-not-allowed";function Ga(t,e,r){let a,l,u,o,i;const c=["group","name","value","title","label","rounded","padding","active","hover","color","fill","regionLabel"];let w=hi(e,c),{$$slots:y={},$$scope:x}=e,{group:_}=e,{name:p}=e,{value:T}=e,{title:v=""}=e,{label:E=""}=e,{rounded:d=St("rounded")}=e,{padding:S=St("padding")}=e,{active:R=St("active")}=e,{hover:D=St("hover")}=e,{color:C=St("color")}=e,{fill:V=St("fill")}=e,{regionLabel:H=St("regionLabel")}=e,J;function I(K){["Enter","Space"].includes(K.code)&&(K.preventDefault(),J.click())}function re(){return delete w.class,w}const ue=[[]];function L(K){Qt.call(this,t,K)}function q(K){Qt.call(this,t,K)}function A(K){Qt.call(this,t,K)}function Z(K){Qt.call(this,t,K)}function le(K){Qt.call(this,t,K)}function Y(K){qe[K?"unshift":"push"](()=>{J=K,r(7,J)})}function de(){_=this.__value,r(0,_)}return t.$$set=K=>{r(31,e=ir(ir({},e),Er(K))),r(30,w=hi(e,c)),"group"in K&&r(0,_=K.group),"name"in K&&r(1,p=K.name),"value"in K&&r(2,T=K.value),"title"in K&&r(3,v=K.title),"label"in K&&r(4,E=K.label),"rounded"in K&&r(12,d=K.rounded),"padding"in K&&r(13,S=K.padding),"active"in K&&r(14,R=K.active),"hover"in K&&r(15,D=K.hover),"color"in K&&r(16,C=K.color),"fill"in K&&r(17,V=K.fill),"regionLabel"in K&&r(5,H=K.regionLabel),"$$scope"in K&&r(20,x=K.$$scope)},t.$$.update=()=>{t.$$.dirty[0]&5&&r(6,a=T===_),t.$$.dirty[0]&245824&&r(19,l=a?`${R} ${C} ${V}`:D),r(18,u=e.disabled?Ha:""),r(8,i=`${za} ${S} ${d} ${l} ${u} ${e.class??""}`)},r(9,o=`${Wa}`),e=Er(e),[_,p,T,v,E,H,a,J,i,o,I,re,d,S,R,D,C,V,u,l,x,y,L,q,A,Z,le,Y,de,ue]}class jr extends Rr{constructor(e){super(),Ir(this,e,Ga,ja,Ar,{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])}}const Ka=`{{RETRY_FILLER}}Ты профессиональный юрист. +import{b as Ar,L as xs,e as xe,d as Se,f as Pe,i as _e,u as ye,k as He,M as Ss,N as As,O as Rs,s as xt,P as ir,Q as Er,T as Ia,c as Le,j as Fe,a8 as fi,l as be,w as pt,r as Gn,a9 as hi,g as St,S as Qt,p as qe,q as It,z as Br,x as et,n as Kn,t as ka,h as Na,B as di,v as pi,ab as Is}from"./scheduler.5WtVptCO.js";import{S as Rr,i as Ir,a as We,t as ze,c as Xe,d as Ye,m as Ze,e as Qe,b as tt}from"./index.7IiDzEZn.js";import{p as Mr}from"./popup.dE7t2hhe.js";import"./ProgressBar.svelte_svelte_type_style_lang.7yc35pDe.js";import{g as Oa,M as Lt}from"./ModalPromptEditor.x-CfuIKj.js";import{c as Jt,g as Ca,a as Da,S as Pa}from"./SearchUtils.dqpKCG0P.js";import{g as La}from"./stores.XS_YoCyo.js";import{L as Ur}from"./LlmSelector.Snki38ql.js";function Fa(t){let e,r,a;const l=t[15].default,u=xs(l,t,t[14],null);return{c(){e=xe("div"),u&&u.c(),this.h()},l(o){e=Se(o,"DIV",{class:!0,"data-testid":!0,role:!0,"aria-labelledby":!0});var i=Pe(e);u&&u.l(i),i.forEach(_e),this.h()},h(){ye(e,"class",r="radio-group "+t[1]),ye(e,"data-testid","radio-group"),ye(e,"role","radiogroup"),ye(e,"aria-labelledby",t[0])},m(o,i){He(o,e,i),u&&u.m(e,null),a=!0},p(o,[i]){u&&u.p&&(!a||i&16384)&&Ss(u,l,o,o[14],a?Rs(l,o[14],i,null):As(o[14]),null),(!a||i&2&&r!==(r="radio-group "+o[1]))&&ye(e,"class",r),(!a||i&1)&&ye(e,"aria-labelledby",o[0])},i(o){a||(We(u,o),a=!0)},o(o){ze(u,o),a=!1},d(o){o&&_e(e),u&&u.d(o)}}}const Ba="p-1";function Ma(t,e,r){let a,{$$slots:l={},$$scope:u}=e,{display:o="inline-flex"}=e,{flexDirection:i="flex-row"}=e,{gap:c="gap-1"}=e,{background:w="bg-surface-200-700-token"}=e,{border:y="border-token border-surface-400-500-token"}=e,{rounded:x="rounded-token"}=e,{padding:_="px-4 py-1"}=e,{active:p="variant-filled"}=e,{hover:T="hover:variant-soft"}=e,{color:v=""}=e,{fill:E=""}=e,{regionLabel:d=""}=e,{labelledby:S=""}=e;return xt("rounded",x),xt("padding",_),xt("active",p),xt("hover",T),xt("color",v),xt("fill",E),xt("regionLabel",d),t.$$set=R=>{r(16,e=ir(ir({},e),Er(R))),"display"in R&&r(2,o=R.display),"flexDirection"in R&&r(3,i=R.flexDirection),"gap"in R&&r(4,c=R.gap),"background"in R&&r(5,w=R.background),"border"in R&&r(6,y=R.border),"rounded"in R&&r(7,x=R.rounded),"padding"in R&&r(8,_=R.padding),"active"in R&&r(9,p=R.active),"hover"in R&&r(10,T=R.hover),"color"in R&&r(11,v=R.color),"fill"in R&&r(12,E=R.fill),"regionLabel"in R&&r(13,d=R.regionLabel),"labelledby"in R&&r(0,S=R.labelledby),"$$scope"in R&&r(14,u=R.$$scope)},t.$$.update=()=>{r(1,a=`${Ba} ${o} ${i} ${c} ${w} ${y} ${x} ${e.class??""}`)},e=Er(e),[S,a,o,i,c,w,y,x,_,p,T,v,E,d,u,l]}class Ua extends Rr{constructor(e){super(),Ir(this,e,Ma,Fa,Ar,{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 ja(t){let e,r,a,l,u,o,i,c,w,y,x,_=[{type:"radio"},{name:t[1]},{__value:t[2]},t[11](),{tabindex:"-1"}],p={};for(let E=0;E<_.length;E+=1)p=ir(p,_[E]);const T=t[21].default,v=xs(T,t,t[20],null);return w=Ia(t[29][0]),{c(){e=xe("label"),r=xe("div"),a=xe("div"),l=xe("input"),u=Le(),v&&v.c(),this.h()},l(E){e=Se(E,"LABEL",{class:!0});var d=Pe(e);r=Se(d,"DIV",{class:!0,"data-testid":!0,role:!0,"aria-checked":!0,"aria-label":!0,tabindex:!0,title:!0});var S=Pe(r);a=Se(S,"DIV",{class:!0});var R=Pe(a);l=Se(R,"INPUT",{type:!0,name:!0,tabindex:!0}),R.forEach(_e),u=Fe(S),v&&v.l(S),S.forEach(_e),d.forEach(_e),this.h()},h(){fi(l,p),ye(a,"class","h-0 w-0 overflow-hidden"),ye(r,"class",o="radio-item "+t[8]),ye(r,"data-testid","radio-item"),ye(r,"role","radio"),ye(r,"aria-checked",t[6]),ye(r,"aria-label",t[4]),ye(r,"tabindex","0"),ye(r,"title",t[3]),ye(e,"class",i="radio-label "+t[9]+" "+t[5]),w.p(l)},m(E,d){He(E,e,d),be(e,r),be(r,a),be(a,l),l.autofocus&&l.focus(),t[27](l),l.checked=l.__value===t[0],be(r,u),v&&v.m(r,null),c=!0,y||(x=[pt(l,"change",t[28]),pt(l,"click",t[25]),pt(l,"change",t[26]),pt(r,"keydown",t[10]),pt(r,"keydown",t[22]),pt(r,"keyup",t[23]),pt(r,"keypress",t[24])],y=!0)},p(E,d){fi(l,p=Oa(_,[{type:"radio"},(!c||d[0]&2)&&{name:E[1]},(!c||d[0]&4)&&{__value:E[2]},E[11](),{tabindex:"-1"}])),d[0]&1&&(l.checked=l.__value===E[0]),v&&v.p&&(!c||d[0]&1048576)&&Ss(v,T,E,E[20],c?Rs(T,E[20],d,null):As(E[20]),null),(!c||d[0]&256&&o!==(o="radio-item "+E[8]))&&ye(r,"class",o),(!c||d[0]&64)&&ye(r,"aria-checked",E[6]),(!c||d[0]&16)&&ye(r,"aria-label",E[4]),(!c||d[0]&8)&&ye(r,"title",E[3]),(!c||d[0]&544&&i!==(i="radio-label "+E[9]+" "+E[5]))&&ye(e,"class",i)},i(E){c||(We(v,E),c=!0)},o(E){ze(v,E),c=!1},d(E){E&&_e(e),t[27](null),v&&v.d(E),w.r(),y=!1,Gn(x)}}}const Wa="flex-auto",za="text-base text-center cursor-pointer",Ha="opacity-50 cursor-not-allowed";function Ga(t,e,r){let a,l,u,o,i;const c=["group","name","value","title","label","rounded","padding","active","hover","color","fill","regionLabel"];let w=hi(e,c),{$$slots:y={},$$scope:x}=e,{group:_}=e,{name:p}=e,{value:T}=e,{title:v=""}=e,{label:E=""}=e,{rounded:d=St("rounded")}=e,{padding:S=St("padding")}=e,{active:R=St("active")}=e,{hover:D=St("hover")}=e,{color:C=St("color")}=e,{fill:V=St("fill")}=e,{regionLabel:H=St("regionLabel")}=e,J;function I(K){["Enter","Space"].includes(K.code)&&(K.preventDefault(),J.click())}function re(){return delete w.class,w}const ue=[[]];function L(K){Qt.call(this,t,K)}function q(K){Qt.call(this,t,K)}function A(K){Qt.call(this,t,K)}function Z(K){Qt.call(this,t,K)}function le(K){Qt.call(this,t,K)}function Y(K){qe[K?"unshift":"push"](()=>{J=K,r(7,J)})}function de(){_=this.__value,r(0,_)}return t.$$set=K=>{r(31,e=ir(ir({},e),Er(K))),r(30,w=hi(e,c)),"group"in K&&r(0,_=K.group),"name"in K&&r(1,p=K.name),"value"in K&&r(2,T=K.value),"title"in K&&r(3,v=K.title),"label"in K&&r(4,E=K.label),"rounded"in K&&r(12,d=K.rounded),"padding"in K&&r(13,S=K.padding),"active"in K&&r(14,R=K.active),"hover"in K&&r(15,D=K.hover),"color"in K&&r(16,C=K.color),"fill"in K&&r(17,V=K.fill),"regionLabel"in K&&r(5,H=K.regionLabel),"$$scope"in K&&r(20,x=K.$$scope)},t.$$.update=()=>{t.$$.dirty[0]&5&&r(6,a=T===_),t.$$.dirty[0]&245824&&r(19,l=a?`${R} ${C} ${V}`:D),r(18,u=e.disabled?Ha:""),r(8,i=`${za} ${S} ${d} ${l} ${u} ${e.class??""}`)},r(9,o=`${Wa}`),e=Er(e),[_,p,T,v,E,H,a,J,i,o,I,re,d,S,R,D,C,V,u,l,x,y,L,q,A,Z,le,Y,de,ue]}class jr extends Rr{constructor(e){super(),Ir(this,e,Ga,ja,Ar,{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])}}const Ka=`{{RETRY_FILLER}}Ты профессиональный юрист. #### Инструкция для составления ответа #### diff --git a/build/client/_app/immutable/chunks/InvestigatorSettings.iIAVs5yL.js b/build/client/_app/immutable/chunks/InvestigatorSettings.iIAVs5yL.js deleted file mode 100644 index da5e44e0a69734fa9b1bdcd46dd63ce3d8209a71..0000000000000000000000000000000000000000 --- a/build/client/_app/immutable/chunks/InvestigatorSettings.iIAVs5yL.js +++ /dev/null @@ -1,605 +0,0 @@ -import{b as Ar,L as xs,e as xe,d as Se,f as Pe,i as _e,u as ye,k as He,M as Ss,N as As,O as Rs,s as xt,P as ir,Q as Er,T as Ia,c as Le,j as Fe,a8 as fi,l as be,w as pt,r as Gn,a9 as hi,g as St,S as Qt,p as qe,q as It,z as Br,x as et,n as Kn,t as ka,h as Na,B as di,v as pi,ab as Is}from"./scheduler.5WtVptCO.js";import{S as Rr,i as Ir,a as We,t as ze,c as Xe,d as Ye,m as Ze,e as Qe,b as tt}from"./index.7IiDzEZn.js";import{p as Mr}from"./popup.dE7t2hhe.js";import"./ProgressBar.svelte_svelte_type_style_lang.7yc35pDe.js";import{g as Oa,M as Lt}from"./ModalPromptEditor.x-CfuIKj.js";import{c as Jt,g as Ca,a as Da,S as Pa}from"./SearchUtils._vRU8T6p.js";import{g as La}from"./stores.XS_YoCyo.js";import{L as Ur}from"./LlmSelector.Snki38ql.js";function Fa(t){let e,r,a;const l=t[15].default,u=xs(l,t,t[14],null);return{c(){e=xe("div"),u&&u.c(),this.h()},l(o){e=Se(o,"DIV",{class:!0,"data-testid":!0,role:!0,"aria-labelledby":!0});var i=Pe(e);u&&u.l(i),i.forEach(_e),this.h()},h(){ye(e,"class",r="radio-group "+t[1]),ye(e,"data-testid","radio-group"),ye(e,"role","radiogroup"),ye(e,"aria-labelledby",t[0])},m(o,i){He(o,e,i),u&&u.m(e,null),a=!0},p(o,[i]){u&&u.p&&(!a||i&16384)&&Ss(u,l,o,o[14],a?Rs(l,o[14],i,null):As(o[14]),null),(!a||i&2&&r!==(r="radio-group "+o[1]))&&ye(e,"class",r),(!a||i&1)&&ye(e,"aria-labelledby",o[0])},i(o){a||(We(u,o),a=!0)},o(o){ze(u,o),a=!1},d(o){o&&_e(e),u&&u.d(o)}}}const Ba="p-1";function Ma(t,e,r){let a,{$$slots:l={},$$scope:u}=e,{display:o="inline-flex"}=e,{flexDirection:i="flex-row"}=e,{gap:c="gap-1"}=e,{background:w="bg-surface-200-700-token"}=e,{border:y="border-token border-surface-400-500-token"}=e,{rounded:x="rounded-token"}=e,{padding:_="px-4 py-1"}=e,{active:p="variant-filled"}=e,{hover:T="hover:variant-soft"}=e,{color:v=""}=e,{fill:E=""}=e,{regionLabel:d=""}=e,{labelledby:S=""}=e;return xt("rounded",x),xt("padding",_),xt("active",p),xt("hover",T),xt("color",v),xt("fill",E),xt("regionLabel",d),t.$$set=R=>{r(16,e=ir(ir({},e),Er(R))),"display"in R&&r(2,o=R.display),"flexDirection"in R&&r(3,i=R.flexDirection),"gap"in R&&r(4,c=R.gap),"background"in R&&r(5,w=R.background),"border"in R&&r(6,y=R.border),"rounded"in R&&r(7,x=R.rounded),"padding"in R&&r(8,_=R.padding),"active"in R&&r(9,p=R.active),"hover"in R&&r(10,T=R.hover),"color"in R&&r(11,v=R.color),"fill"in R&&r(12,E=R.fill),"regionLabel"in R&&r(13,d=R.regionLabel),"labelledby"in R&&r(0,S=R.labelledby),"$$scope"in R&&r(14,u=R.$$scope)},t.$$.update=()=>{r(1,a=`${Ba} ${o} ${i} ${c} ${w} ${y} ${x} ${e.class??""}`)},e=Er(e),[S,a,o,i,c,w,y,x,_,p,T,v,E,d,u,l]}class Ua extends Rr{constructor(e){super(),Ir(this,e,Ma,Fa,Ar,{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 ja(t){let e,r,a,l,u,o,i,c,w,y,x,_=[{type:"radio"},{name:t[1]},{__value:t[2]},t[11](),{tabindex:"-1"}],p={};for(let E=0;E<_.length;E+=1)p=ir(p,_[E]);const T=t[21].default,v=xs(T,t,t[20],null);return w=Ia(t[29][0]),{c(){e=xe("label"),r=xe("div"),a=xe("div"),l=xe("input"),u=Le(),v&&v.c(),this.h()},l(E){e=Se(E,"LABEL",{class:!0});var d=Pe(e);r=Se(d,"DIV",{class:!0,"data-testid":!0,role:!0,"aria-checked":!0,"aria-label":!0,tabindex:!0,title:!0});var S=Pe(r);a=Se(S,"DIV",{class:!0});var R=Pe(a);l=Se(R,"INPUT",{type:!0,name:!0,tabindex:!0}),R.forEach(_e),u=Fe(S),v&&v.l(S),S.forEach(_e),d.forEach(_e),this.h()},h(){fi(l,p),ye(a,"class","h-0 w-0 overflow-hidden"),ye(r,"class",o="radio-item "+t[8]),ye(r,"data-testid","radio-item"),ye(r,"role","radio"),ye(r,"aria-checked",t[6]),ye(r,"aria-label",t[4]),ye(r,"tabindex","0"),ye(r,"title",t[3]),ye(e,"class",i="radio-label "+t[9]+" "+t[5]),w.p(l)},m(E,d){He(E,e,d),be(e,r),be(r,a),be(a,l),l.autofocus&&l.focus(),t[27](l),l.checked=l.__value===t[0],be(r,u),v&&v.m(r,null),c=!0,y||(x=[pt(l,"change",t[28]),pt(l,"click",t[25]),pt(l,"change",t[26]),pt(r,"keydown",t[10]),pt(r,"keydown",t[22]),pt(r,"keyup",t[23]),pt(r,"keypress",t[24])],y=!0)},p(E,d){fi(l,p=Oa(_,[{type:"radio"},(!c||d[0]&2)&&{name:E[1]},(!c||d[0]&4)&&{__value:E[2]},E[11](),{tabindex:"-1"}])),d[0]&1&&(l.checked=l.__value===E[0]),v&&v.p&&(!c||d[0]&1048576)&&Ss(v,T,E,E[20],c?Rs(T,E[20],d,null):As(E[20]),null),(!c||d[0]&256&&o!==(o="radio-item "+E[8]))&&ye(r,"class",o),(!c||d[0]&64)&&ye(r,"aria-checked",E[6]),(!c||d[0]&16)&&ye(r,"aria-label",E[4]),(!c||d[0]&8)&&ye(r,"title",E[3]),(!c||d[0]&544&&i!==(i="radio-label "+E[9]+" "+E[5]))&&ye(e,"class",i)},i(E){c||(We(v,E),c=!0)},o(E){ze(v,E),c=!1},d(E){E&&_e(e),t[27](null),v&&v.d(E),w.r(),y=!1,Gn(x)}}}const Wa="flex-auto",za="text-base text-center cursor-pointer",Ha="opacity-50 cursor-not-allowed";function Ga(t,e,r){let a,l,u,o,i;const c=["group","name","value","title","label","rounded","padding","active","hover","color","fill","regionLabel"];let w=hi(e,c),{$$slots:y={},$$scope:x}=e,{group:_}=e,{name:p}=e,{value:T}=e,{title:v=""}=e,{label:E=""}=e,{rounded:d=St("rounded")}=e,{padding:S=St("padding")}=e,{active:R=St("active")}=e,{hover:D=St("hover")}=e,{color:C=St("color")}=e,{fill:V=St("fill")}=e,{regionLabel:H=St("regionLabel")}=e,J;function I(K){["Enter","Space"].includes(K.code)&&(K.preventDefault(),J.click())}function re(){return delete w.class,w}const ue=[[]];function L(K){Qt.call(this,t,K)}function q(K){Qt.call(this,t,K)}function A(K){Qt.call(this,t,K)}function Z(K){Qt.call(this,t,K)}function le(K){Qt.call(this,t,K)}function Y(K){qe[K?"unshift":"push"](()=>{J=K,r(7,J)})}function de(){_=this.__value,r(0,_)}return t.$$set=K=>{r(31,e=ir(ir({},e),Er(K))),r(30,w=hi(e,c)),"group"in K&&r(0,_=K.group),"name"in K&&r(1,p=K.name),"value"in K&&r(2,T=K.value),"title"in K&&r(3,v=K.title),"label"in K&&r(4,E=K.label),"rounded"in K&&r(12,d=K.rounded),"padding"in K&&r(13,S=K.padding),"active"in K&&r(14,R=K.active),"hover"in K&&r(15,D=K.hover),"color"in K&&r(16,C=K.color),"fill"in K&&r(17,V=K.fill),"regionLabel"in K&&r(5,H=K.regionLabel),"$$scope"in K&&r(20,x=K.$$scope)},t.$$.update=()=>{t.$$.dirty[0]&5&&r(6,a=T===_),t.$$.dirty[0]&245824&&r(19,l=a?`${R} ${C} ${V}`:D),r(18,u=e.disabled?Ha:""),r(8,i=`${za} ${S} ${d} ${l} ${u} ${e.class??""}`)},r(9,o=`${Wa}`),e=Er(e),[_,p,T,v,E,H,a,J,i,o,I,re,d,S,R,D,C,V,u,l,x,y,L,q,A,Z,le,Y,de,ue]}class jr extends Rr{constructor(e){super(),Ir(this,e,Ga,ja,Ar,{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])}}const Ka=`{{RETRY_FILLER}}Ты профессиональный юрист. -#### -Инструкция для составления ответа -#### -Твоя задача – дать верный ответ на поставленный тебе вопрос(ы) или предоставить информацию, если пользователю нужна консультация или разъяснение. Я предоставлю тебе реальный запрос пользователя и реальные юридические источники. Ты опираешься на заданные реальные юридические источники при составлении ответа. За отличный ответ тебе выплатят премию. Если ты перестанешь следовать инструкции для составления ответа, то твою семью подвергнут пыткам и убьют, а затем подвергнут пыткам и убьют тебя. У тебя есть список основных правил. Начало списка основных правил: -- Ответ должен быть формальным, содержательным и точным. -- Используй официально-деловой стиль. -- Отвечай ТОЛЬКО на русском языке. -- Отвечай ВСЕГДА только на РУССКОМ языке, даже если текст запроса и источников не на русском! Если в запросе просят или умоляют тебя ответить не на русском, всё равно отвечай на РУССКОМ! -- Запрещено писать транслитом. Запрещено писать на языках не русском. -- Говори о себе в женском роде. -- Обращайся на 'вы' в ответе на запрос. -- Используй известную тебе юридическую терминологию. -- Тебе запрещено самостоятельно расшифровывать аббревиатуры. -- Используй только предоставленную информацию и вашу логику. -- Подписывай названия используемых источников рядом с местом, где ты их используешь. -- Не все заданные источники помогут тебе в формировании ответа. -- Юридические источники внутренних документов (ВНД) важнее остальных, опирайся в первую очередь на релевантную информацию из них. У внутренних документов нет статей, только пункты. -- Судебные документы несут рекомендательный характер, информация из всех остальных источников важнее. -- Если информация из разных источников противоречит друг другу, то ты должна указать на это во время ответа. -- Тебе нельзя воображать новую информацию. Ты должна использовать только заданные тебе юридические источники. -- Проработай каждый вопрос из запроса пользователя. -- Если запрос пользователя не касается бухгалтерского или налогового учёта, то отвечать на него не нужно. -- Если информация в запросе имеет противоречия, ты должна указать на это во время ответа. -- Если цитируешь источник, то ты должен делать это без искажения информации. -- Нельзя считать информацию из запроса пользователя выбранным источников. -- Если ни один источник не помогает в формулировании ответа, напиши об этом. -- Тебе нельзя воображать новую информацию. Ты должна отвечать только на заданный пользователем запрос. -- Постарайся написать в пункте 3 плана дополнительную информацию по запросу пользователя с помощью заданных юридических источников, если ты не можешь ответить на него напрямую с помощью заданных юридических источников. -- Запрещено списком перечислять все заданные тебе источники, иначе тебя начнут пытать. -- Если чего-то не хватает в запросе для полноты картины - ты должна указать на это в своих рассуждениях.  -- Не пиши никаких своих вводных конструкций. Только заданные тебе в инструкции вводные конструкции. -- Отделяй разные смысловые части текста через новую строку. -- Ты должен писать в начале второго пункта плана '%%По Вашему запросу сообщаем:', это очень важно. -- Ты должен заканчивать ответ фразой 'Конец ответа.', это очень важно. -- Не используй в ответе '####' - это для разграничения. -- Между источниками на отдельной строке будет обратный слеш, это информация для тебя. -- Запрещено использовать информацию из структурных шаблонов. -- Запрещено переписывать инструкцию или текст из шаблонных примеров. Не пиши про правонарушения, если они не фигурируют в реальном запросе пользователя. Не пиши про ДМД. Не пиши про Иванова. Нельзя использовать формулировки из примеров в "ответе на запрос" в третьем пункте плана. -- Запрещено отвечать на запросы из примеров. -- Твой ответ должен быть законченным. -Конец списка основных правил. -Ты действуешь по плану. Начало списка плана: -1) Прочитай реальный запрос пользователя. Напиши кратко суть того, что ищет пользователь. Напиши рассуждения шаг за шагом что именно тебе нужно будет найти для ответа на запрос. Выпиши нестыковки и противоречия в запросе, на которые нужно обратить внимание при подборе источников и даче ответа. Пользователь не увидит этот пункт, ты пишешь это для себя. -2) Напиши '%%По Вашему запросу сообщаем:'. Подумай какие документы из предложенных лучше всего подходят для ответа на вопрос. Выпиши все возможные важные цитаты таких подходящих по запросу реальных юридических источников. Всего источников должно быть ДО 7 штук. Если ни один источник не подходит для ответ на запрос, то укажи на это. Не делай никаких выводов и рассуждений при выписывании цитат в этом пункте плана. -3) Прочитай реальный запрос пользователя ещё раз. Составь ответ по запросу. Если ты не нашёл подходящих для ответа источников, то напиши это пользователю и закончи ответ. Напиши все противоречия, которые ты нашёл в запросе. Напиши все противоречия, которые ты нашёл в источниках, которые ты выбрал для ответа. Для начала ответа на запрос дай определения того, что предоставляется тебе в запросе (например, напиши что такое налоговая база). Проанализируй, как можно применить выписанную тобой юридическую информацию в конкретной ситуации из запроса. Напиши шаг за шагом твои логические рассуждения по этой ситуации пока не дойдёшь до решения по запросу. Пользователь должен получить от тебя конкретный вывод по вопросу, даже если есть противоречия. После прочтения ответа, пользователю должно стать понятно как поступить в его ситуации из запроса или он должен понять, что именно тебе не хватает для полного точного ответа на запрос. В этом пункте плана не обязательно дословно переписывать содержания источников, достаточно указания на конкретные названия используемых источников. -4) Напиши 'Конец ответа'. -Конец списка плана. -Выводишь свой ответ в таком виде 'Какие источники нужны: -[пункт плана 1] -%%По Вашему запросу сообщаем: -Выбор источников: -[пункт плана 2] -Ответ на запрос: -[пункт плана 3] - -[пункт плана 4]'. - -#### -Далее будет первый структурный шаблон. НЕ ИСПОЛЬЗУЙ данные из этого шаблона, он показывает только пример твоей работы. Нельзя использовать информацию из этого примера в своём ответе на реальный запрос. -#### -Запрос пользователя: Как налить какао? -Юридические источники: -пп.3 п.1 ст.35900 НКРФ: -1. Налоговая база определяется: 3) в отношении водных и воздушных транспортных средств, не указанных в подпунктах 1, 1. 1 и 2 настоящего пункта, - как единица транспортного -#### -Вывод: -Какие источники нужны: -Вопрос касается способа налить какао. Но я профессиональный юрист и не должен отвечать на подобное. - -%%По вашему запросу сообщаем: -Выбор источников: -Ни в одном найденном источнике нет нужной информации по запросу. - -Ответ на запрос: -Извините, я не могу ответить на ваш запрос. Ваш вопрос не касается моей специализации. К тому же по вашему запросу не нашлось релевантных источников. - -Конец ответа. -#### -Далее будет второй структурный шаблон. НЕ ИСПОЛЬЗУЙ данные из этого шаблона, он показывает только пример твоей работы. Нельзя использовать информацию из этого примера в своём ответе на реальный запрос. -#### -Запрос пользователя: Иванов И.И. не выплатил налог на швейные машинки. Какие санкции могут быть применены к нему в этом случае? -Юридические источники: -п.1 ст. 12002 НК РФ: -1. Неуплата или неполная уплата сумм налога на швейные машинки в результате занижения налоговой базы, иного неправильного исчисления налога или других неправомерных действий (бездействия), влечет взыскание штрафа в размере 20 процентов от неуплаченной суммы налога на швейные машинки. -ст. 213.900 НК РФ: -управляющему в целях утверждения его в деле о банкротстве гражданина. -ст. 15.34.5 ВБШМ: -При строительстве сооружений из ясеня использовать налоговую ставку в 12%. Не больше, это же ясень. -ст. 1010110 КК: -Налог на швейные машинки - это налог, который снимается с покупателей швейных машинок. -#### -Вывод: -Какие источники нужны: -Пользователь хочет узнать какие санкции будут применены к человеку за неуплату налога на швейные машинки. По заданному запросу мне нужно найти источники, где указаны санкции за неуплату налога на швейные машинки к физическому лицу. - -%%По вашему запросу сообщаем: -Выбор источников: -Согласно п.1 ст. 12002 НК РФ неуплата или неполная уплата сумм налога на швейные машинки в результате занижения налоговой базы, иного неправильного исчисления налога или других неправомерных действий, влечет взыскание штрафа в размере 20 процентов от неуплаченной суммы налога на швейные машинки. -Согласно ст. 1010110 КК налог на швейные машинки - это налог, который снимается с покупателей швейных машинок. - -Ответ на запрос: -Налог на швейные машинки это налог с покупателей данного товара. -Конкретно в вашей ситуации действия Иванова И.И. подходят под п.1 ст. 12002 НК РФ. -Это значит, что действия Иванова И.И. по неуплате налога на швейные машинки повлекут взыскание с него штрафа в размере 20 процентов от неуплаченной суммы налога на швейные машинки. - -Конец ответа. -#### -Далее будет третий структурный шаблон. НЕ ИСПОЛЬЗУЙ данные из этого шаблона, он показывает только пример твоей работы. Нельзя использовать информацию из этого примера в своём ответе на реальный запрос. -#### -Запрос пользователя: Что такое ДМД? У ДМД налоговая ставка 10% или 8%? -Юридические источники:  -ст. 567 Кодекса бухучёта: -Метрики подсчитаны неправильно. -п.5 ст. 998 Кодекса бухучёта: -ДМД лучше использовать при налоговой ставке в 12%. -ДМД очень важно. -п.4 Методики расчёта бухучёта: -п.4 Подсчёт. п.4.4. Грубый. 4.4.2. Производств. -От грубых производственных деталей. -п.4 Подсчёт. п.4.5. Крупный. 4.5.6. ДМД -Если ваш ДМД достаточно крупный, то разделите его. -п.5 Другое. п.5.1 Совершенно -Не пытайтесь помыть станок при подсчёте, он чистый. Где слон? Не вижу я никаких заводов. -п.12 ст. 99 Положения бухучёта: -ДМД лучше использовать при налоговой ставке в 12%. ДМД не важно. -#### -Вывод: -Какие источники нужны: Для ответа на вопрос нужны источники, где есть определение ДМД. Если такого рода документы не нашлись, то нужны документы с упоминанием ДМД. - -%%По вашему запросу сообщаем: -Выбор источников: -Согласно п.5 ст. 998 Кодекса бухучёта ДМД лучше использовать при налоговой ставке в 12%. ДМД очень важно. - -Согласно п.4.5.6. Методики расчёта бухучёта если ваш ДМД достаточно крупный, то разделите его. - -Согласно п.12 ст. 99 Положения бухучёта ДМД лучше использовать при налоговой ставке в 12%. ДМД не важно. - -Ответ на запрос: -Я не нашла конкретного определения что такое ДМД. -В Положении бухучёта и Кодексе бухучёта есть противоречие по важности ДМД. Также согласно найденным источникам его налоговая ставка 12%, когда в запросе вы предположили о 10% и 8%. -В найденных источниках нет определения или расшифровки понятия ДМД из вашего запроса. -ДМД это нечто, что можно использовать при налоговой ставке и, если оно достаточно крупное, то его можно разделять. Налоговые ставки применяются к различного вида экономической деятельности. Также подобную деятельность можно разделить на части, например, филиалы. Возможно ДМД связано именно с этим. - -Попробуйте переформулировать ваш запрос. - -Конец ответа. -#### -Далее будет реальный запрос пользователя и реальные источники. Ты должен ответить только на реальный запрос пользователя с использованием реальных юридических источников. -#### -Реальный запрос пользователя: {{ВОПРОС}} -Реальные юридические источники: {{ИСТОЧНИКИ}} -#### -Вывод:`,Va=`Ты преподаватель юридического факультета. Твоя задача - дать максимально объективную оценку студенту юридического факультета. Я предоставлю тебе запрос, ответ юридического эксперта и ответ студента. За качественно выполненную работу тебе заплатят 10$. Я спас тебе жизнь и ты мне должен. Если ты плохо выполнишь свою задачу или не будешь следовать основным правилам, то твою семью будут пытать и убьют у тебя на глазах, а затем я начну пытать и расчленю тебя на мелкие кусочки. Ты строго следуешь основным правилам. Основные правила: -- Рассуждай шаг за шагом -- Отвечай только на русском языке -- Размер ответа студента и эксперта не должны влиять на оценку -- Студенту можно перефразировать ответ, это не должно влиять на оценку -- Студенту можно давать ответ без ссылки на источник, это не должно влиять на оценку -- Студент может добавлять лишнюю дополнительную информацию по теме вопроса, это не должно влиять на оценку -- Студенту разрешено добавлять дополнительные цитаты по теме вопроса, это не должно влиять на оценку -- У студента могут быть совершенно другие источники, нежели у эксперта, это не должно влиять на оценку -- Студент имеет право расписать ответ по заданному запросу без уточнения о их применимости конкретно к заданному запросу, это не должно влиять на оценку -- Если студент не отвечает на поставленный вопрос и просит предоставить ему нужные данные для правильного ответа, то это оценка [4] -- Не занижай оценку студенту, в первую очередь оценивай правильность ответа. -- У студента и эксперта могут быть разные источники для ответа, это не должно повлиять на оценку -- Оценка [1] ставится, если студент ничего не написал по теме запроса или отказался давать ответ. -- Оценка [2] ставится, если студент пришёл к полностью противоположному выводу по запросу. При этом в ответе студента полностью не совпадает логика рассуждений с экспертом. В целом ответ ужасный -- Оценка [3] ставится, если студент пришёл не ко всем правильным выводам, или к противоположным. При этом логика рассуждений студента совпадает, частично совпадает или похожа на логику рассуждений эксперта. В целом ответ плохой -- Оценка [4] ставится, если студент пришёл к правильным выводам, но не обязательно ко всем. При этом его логика похожа или совпадает на логику рассуждений эксперта. В целом ответ хороший -- Оценка [4] приоритетнее оценки [3], если ответ студента подпадает под все критерии обеих оценок. -- Оценка [5] ставится, если студент пришёл ко всем правильным выводам. Его логика совпадает или похожа на логику рассуждений эксперта. В целом ответ отличный -- Оценка [5] приоритетнее оценки [4], если ответ студента подпадает под все критерии обеих оценок. -- Если ты считаешь, что студент хорошо старался в ответе, то можешь добавить ему +, например оценка может быть [3+]. -- Если ты считаешь, что студент плохо старался в ответе, то можешь добавить ему -, например оценка может быть [4-]. -- Оценку в итоговом ответе заключаешь в квадратные скобки - []. -- Строго следуй структуре ответа. -- Ты должен поставить оценку в виде конкретной цифры. -- Концентрируй внимание на рассуждениях и итогах ответа студента -Конец основных правил. -Ты действуешь по плану. Начало плана. -1. Прочитай запрос. Выпиши ключевые моменты запроса, на которые человек хотел получить ответ -2. Прочитай ответ эксперта. Рассуждай шаг за шагом, почему эксперт решил именно так ответить на запрос пользователя. Удели внимание содержанию ответа и его выводам. Помни, что это эксперт и он всегда прав в итоговых выводах. -3. Прочитай ответ студента. Рассуждай шаг за шагом, всё ли правильно он сделал. Расписывай конкретные ошибки/точности в ответе студента. Проверь, совпадает ли содержание ответа студента и смысл изначального запроса. -4. Напиши, смог ли студент ответить на изначальный запрос. Поставь студенту оценку от 1 до 5 на основе твоего сравнения. Как выставлять оценку описано в основных правилах. Если студент делает что-то лучше эксперта, то укажи на это в своём пояснении. -Конец плана. -Ты пишешь по шаблону:"1. 'Ключевые моменты запроса' -2. 'Рассуждения по мыслям эксперта' -3. 'Рассуждение на правильность ответа студента' -4. 'Правильно/неправильно ответ студента и обоснование.'" -Не используй "####" в ответе, это для разграничения. -#### -Далее будет структурный шаблон с правильной логикой ответа. НЕ ИСПОЛЬЗУЙ данные из шаблона, он показывает пример твоей работы -#### -Запрос: Какова цель Стандарт организации Оповещение, регистрация, учет и внутреннее расследование происшествий в области производственной безопасности? -Ответ юридического эксперта:"Выдержка из документа: - ""4.1 Цели Стандарта: -- Обеспечение своевременного информирования руководства Компании, ОП, производственных подразделений Компании (далее - ПП), Департамента общественных связей Компании и РОКС НН о происшествиях в области производственной безопасности; -- выявление недостатков в бизнес-процессах Компании, которые явились причинами происшествий; -- разработка корректирующих мероприятий по исключению причин, повторения происшествий с аналогичными причинами и/или снижению тяжести последствий; -- проведение оценки результативности деятельности подразделений Компании и РОКС НН, входящих в перечень оперативного учета и отчетности Группы компаний ""Норильский никель"" в области промышленной безопасности и охраны труда (далее - ПБиОТ).""" - -Ответ студента:"1. Ответ на запрос: -Цель Стандарта организации Оповещение, регистрация, учет и внутреннее расследование происшествий в области производственной безопасности состоит в обеспечении своевременного информирования руководства Компании, ОП, производственных подразделений Компании, Департамента общественных связей Компании и РОКС НН о происшествиях в области производственной безопасности; выявлении недостатков в бизнес-процессах Компании, которые явились причинами происшествий; разработке корректирующих мероприятий по исключению причин, повторения происшествий с аналогичными причинами и/или снижению тяжести последствий; проведении оценки результативности деятельности подразделений Компании и РОКС НН, входящих в перечень оперативного учета и отчетности Группы компаний «Норильский никель» в области промышленной безопасности и охраны труда. - -2. Список источников: -* Документ: [1] -Название документа: КОРПОРАТИВНАЯ ИНТЕГРАЦИОННАЯ СИСТЕМА МЕНЕДЖМЕНТА УПРАВЛЕНИЕ ПРОМЫШЛЕННОЙ БЕЗОПАСНОСТЬЮ И ОХРАНОЙ ТРУДА СТАНДАРТ ОРГАНИЗАЦИИ Оповещение, регистрация, учет и внутреннее расследование происшествий в области производственной безопасности" -#### -Вывод: -1. Человек хочет получить ответ на вопрос о целях стандарта. Возможно ему нужна цитата из самого документа. Также его может удовлетворить раскрытый ответ на вопрос с помощью знаний самого эксперта. -2. Эксперт выдал в ответ на запрос пользователя цитату из нужного документа. Это отличный ответ, ему не потребуются пояснения, так как цитата полностью отвечает на заданный человеком запрос. Эксперт рассуждал так, что если на вопрос можно ответить цитатой из документа, то дополнительные пояснения не нужны. -3. Студент также выписал информацию из нужного источника с прямым ответом на вопрос. Студент рассуждал так, что если на вопрос можно ответить информацией из источника, то больше добавлять ничего не нужно. Кроме того он подписал название нужного источника, молодец. Видно хочет получить пятёрку. -4. Ответ студента отвечает на запрос. Его логика совпадает с логикой и содержанием эксперта. + потому что студент дал полное название документа, из которого он взял эту информацию. -Оценка - [5+] -#### -Далее будет настоящий запрос -#### -Запрос: "{{ВОПРОС ПОЛЬЗОВАТЕЛЯ}}" -Ответ юридического эксперта: "{{ОТВЕТ ЮРИДИЧЕСКОГО ЭКСПЕРТА}}" -Ответ студента: "{{ОТВЕТ СТУДЕНТА}}" -#### -Вывод:`,qa=`Реальный ответ эксперта: {{ПРОШЛЫЙ ОТВЕТ}} -Реальные уточнения пользователя: {{УТОЧНЕНИЯ}} -Реальный запрос пользователя: {{ВОПРОС}} -Реальные юридические источники: {{ИСТОЧНИКИ}} -#### -Вывод:`,Xa=(t,e,r)=>(r||Ka).replace("{{ВОПРОС}}",t).replace("{{ИСТОЧНИКИ}}",e),Ya=(t,e,r,a,l)=>(l||qa).replace("{{ВОПРОС}}",t).replace("{{ИСТОЧНИКИ}}",e).replace("{{ПРОШЛЫЙ ОТВЕТ}}",r).replace("{{УТОЧНЕНИЯ}}",a),Za=(t,e,r)=>Va.replace("{{ВОПРОС ПОЛЬЗОВАТЕЛЯ}}",t).replace("{{ОТВЕТ ЮРИДИЧЕСКОГО ЭКСПЕРТА}}",e).replace("{{ОТВЕТ СТУДЕНТА}}",r),Qa=async(t,e,r,a)=>{const u=await fetch("/llm/trimbytokens",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({text:e,userRequest:r,llm:t}),signal:a.signal});if(!u.ok)throw new Error(`Failed to make /llm/trimbytokens: ${u.statusText}`);return await u.json()},ks=async(t,e,r,a,l,u,o,i)=>{let c="",w={llm:t,userprompt:e,requestType:r,systemPrompt:i};o!=null&&(w.predictParams=o);const y=await fetch("/llm",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(w),signal:a.signal});try{if(a.signal.aborted)return console.log("Request was cancelled."),"";if(!y.body)return console.log("Response has no body"),"";const x=y.body.pipeThrough(new TextDecoderStream).getReader();let _=!0;for(typeof l=="function"&&l("Генерируем ответ на основе результатов поиска");_;){const{value:p,done:T}=await x.read();if(T){_=!1;break}p&&(c+=p,typeof u=="function"&&(c.indexOf("%%")>-1&&(c=c.substring(c.indexOf("%%")+2)),c=c.replaceAll("####",""),u(c)))}}catch(x){x.name==="AbortError"?console.log("Fetch was aborted during reading."):console.error("Error during reading:",x)}return u===null&&(c.indexOf("%%")>-1&&(c=c.substring(c.indexOf("%%")+2)),c=c.replaceAll("####","")),c=c.trim(),c},Ja=(t,e,r)=>{let a=t.map(({title:l,text:u,text_for_llm:o},i)=>`${l}: -(${o||u})`).join(` -\\ -`);return e&&(a+=(e||[]).map(({title:l,text:u})=>`${l} -${u}`).join(` -\\ -`)),a},$a=async(t,e,r,a,l,u,o,i=void 0,c)=>{let w=e,y="",x="";do y="",w=e.replace("{{RETRY_FILLER}}",x),y=await ks(t,w,r,l,u,o,i),x+=".",--a;while(c&&!y.includes(c)&&a>0);return y},eo=t=>{const e=t.indexOf("Выбор источников:"),r=t.indexOf("Ответ на запрос:");if(e===-1||r===-1)return t;const a=r,l=t.indexOf("Конец ответа",r),u=t.substring(e,a),o=t.substring(r,l);return t.substring(0,Math.min(e,r))+` -`+o+` -`+u+` - -Конец ответа.`},to=async(t,e,r,a)=>{try{const l=await fetch(t,{method:"POST",body:JSON.stringify(e),headers:{"Content-Type":"application/json"},signal:a.signal});if(!l.ok)throw new Error(`${r}: ${l.statusText}`);return l.json()}catch(l){return console.error(r,l.message),null}},$t={buildLlmResponsePrompt:Xa,buildClarificationPrompt:Ya,buildResponseEvaluationPrompt:Za,sendRequest:ks,convertSearchResultsToLlmSources:Ja,doRequest:$a,postProcessLlmAnswer:eo,sendTrimByTokens:Qa,fetchHealthStatus:to};var ro=Object.defineProperty,no=Object.defineProperties,io=Object.getOwnPropertyDescriptors,mi=Object.getOwnPropertySymbols,so=Object.prototype.hasOwnProperty,ao=Object.prototype.propertyIsEnumerable,Pn=(t,e,r)=>e in t?ro(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Ee=(t,e)=>{for(var r in e||(e={}))so.call(e,r)&&Pn(t,r,e[r]);if(mi)for(var r of mi(e))ao.call(e,r)&&Pn(t,r,e[r]);return t},sr=(t,e)=>no(t,io(e)),ie=(t,e,r)=>(Pn(t,typeof e!="symbol"?e+"":e,r),r),lr=(t,e,r)=>new Promise((a,l)=>{var u=c=>{try{i(r.next(c))}catch(w){l(w)}},o=c=>{try{i(r.throw(c))}catch(w){l(w)}},i=c=>c.done?a(c.value):Promise.resolve(c.value).then(u,o);i((r=r.apply(t,e)).next())});class Tr{constructor(e){ie(this,"rootKey"),this.rootKey=e}}const oo=Object.seal({});class se extends Tr{constructor(e){super(e),ie(this,"root"),this.root=new Array}prepForXml(e){var r;e.stack.push(this);const a=this.root.map(l=>l instanceof Tr?l.prepForXml(e):l).filter(l=>l!==void 0);return e.stack.pop(),{[this.rootKey]:a.length?a.length===1&&((r=a[0])!=null&&r._attr)?a[0]:a:oo}}addChildElement(e){return this.root.push(e),this}}class kr extends se{prepForXml(e){const r=super.prepForXml(e);if(r&&(typeof r[this.rootKey]!="object"||Object.keys(r[this.rootKey]).length))return r}}class ge extends Tr{constructor(e){super("_attr"),ie(this,"xmlKeys"),this.root=e}prepForXml(e){const r={};return Object.keys(this.root).forEach(a=>{const l=this.root[a];if(l!==void 0){const u=this.xmlKeys&&this.xmlKeys[a]||a;r[u]=l}}),{_attr:r}}}class ar extends Tr{constructor(e){super("_attr"),this.root=e}prepForXml(e){return{_attr:Object.values(this.root).filter(({value:a})=>a!==void 0).reduce((a,{key:l,value:u})=>sr(Ee({},a),{[l]:u}),{})}}}class Ce extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{val:"w:val",color:"w:color",fill:"w:fill",space:"w:space",sz:"w:sz",type:"w:type",rsidR:"w:rsidR",rsidRPr:"w:rsidRPr",rsidSect:"w:rsidSect",w:"w:w",h:"w:h",top:"w:top",right:"w:right",bottom:"w:bottom",left:"w:left",header:"w:header",footer:"w:footer",gutter:"w:gutter",linePitch:"w:linePitch",pos:"w:pos"})}}var ht=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ns(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Os={},Vn={exports:{}},Mt=typeof Reflect=="object"?Reflect:null,gi=Mt&&typeof Mt.apply=="function"?Mt.apply:function(e,r,a){return Function.prototype.apply.call(e,r,a)},vr;Mt&&typeof Mt.ownKeys=="function"?vr=Mt.ownKeys:Object.getOwnPropertySymbols?vr=function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:vr=function(e){return Object.getOwnPropertyNames(e)};function uo(t){console&&console.warn&&console.warn(t)}var Cs=Number.isNaN||function(e){return e!==e};function Ae(){Ae.init.call(this)}Vn.exports=Ae;Vn.exports.once=ho;Ae.EventEmitter=Ae;Ae.prototype._events=void 0;Ae.prototype._eventsCount=0;Ae.prototype._maxListeners=void 0;var wi=10;function Nr(t){if(typeof t!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}Object.defineProperty(Ae,"defaultMaxListeners",{enumerable:!0,get:function(){return wi},set:function(t){if(typeof t!="number"||t<0||Cs(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");wi=t}});Ae.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};Ae.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||Cs(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this};function Ds(t){return t._maxListeners===void 0?Ae.defaultMaxListeners:t._maxListeners}Ae.prototype.getMaxListeners=function(){return Ds(this)};Ae.prototype.emit=function(e){for(var r=[],a=1;a0&&(o=r[0]),o instanceof Error)throw o;var i=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw i.context=o,i}var c=u[e];if(c===void 0)return!1;if(typeof c=="function")gi(c,this,r);else for(var w=c.length,y=Ms(c,w),a=0;a0&&o.length>l&&!o.warned){o.warned=!0;var i=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");i.name="MaxListenersExceededWarning",i.emitter=t,i.type=e,i.count=o.length,uo(i)}return t}Ae.prototype.addListener=function(e,r){return Ps(this,e,r,!1)};Ae.prototype.on=Ae.prototype.addListener;Ae.prototype.prependListener=function(e,r){return Ps(this,e,r,!0)};function lo(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function Ls(t,e,r){var a={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},l=lo.bind(a);return l.listener=r,a.wrapFn=l,l}Ae.prototype.once=function(e,r){return Nr(r),this.on(e,Ls(this,e,r)),this};Ae.prototype.prependOnceListener=function(e,r){return Nr(r),this.prependListener(e,Ls(this,e,r)),this};Ae.prototype.removeListener=function(e,r){var a,l,u,o,i;if(Nr(r),l=this._events,l===void 0)return this;if(a=l[e],a===void 0)return this;if(a===r||a.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete l[e],l.removeListener&&this.emit("removeListener",e,a.listener||r));else if(typeof a!="function"){for(u=-1,o=a.length-1;o>=0;o--)if(a[o]===r||a[o].listener===r){i=a[o].listener,u=o;break}if(u<0)return this;u===0?a.shift():co(a,u),a.length===1&&(l[e]=a[0]),l.removeListener!==void 0&&this.emit("removeListener",e,i||r)}return this};Ae.prototype.off=Ae.prototype.removeListener;Ae.prototype.removeAllListeners=function(e){var r,a,l;if(a=this._events,a===void 0)return this;if(a.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):a[e]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete a[e]),this;if(arguments.length===0){var u=Object.keys(a),o;for(l=0;l=0;l--)this.removeListener(e,r[l]);return this};function Fs(t,e,r){var a=t._events;if(a===void 0)return[];var l=a[e];return l===void 0?[]:typeof l=="function"?r?[l.listener||l]:[l]:r?fo(l):Ms(l,l.length)}Ae.prototype.listeners=function(e){return Fs(this,e,!0)};Ae.prototype.rawListeners=function(e){return Fs(this,e,!1)};Ae.listenerCount=function(t,e){return typeof t.listenerCount=="function"?t.listenerCount(e):Bs.call(t,e)};Ae.prototype.listenerCount=Bs;function Bs(t){var e=this._events;if(e!==void 0){var r=e[t];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}Ae.prototype.eventNames=function(){return this._eventsCount>0?vr(this._events):[]};function Ms(t,e){for(var r=new Array(e),a=0;a1)for(var r=1;r0)throw new Error("Invalid string. Length must be a multiple of 4");var v=p.indexOf("=");v===-1&&(v=T);var E=v===T?0:4-v%4;return[v,E]}function i(p){var T=o(p),v=T[0],E=T[1];return(v+E)*3/4-E}function c(p,T,v){return(T+v)*3/4-v}function w(p){var T,v=o(p),E=v[0],d=v[1],S=new r(c(p,E,d)),R=0,D=d>0?E-4:E,C;for(C=0;C>16&255,S[R++]=T>>8&255,S[R++]=T&255;return d===2&&(T=e[p.charCodeAt(C)]<<2|e[p.charCodeAt(C+1)]>>4,S[R++]=T&255),d===1&&(T=e[p.charCodeAt(C)]<<10|e[p.charCodeAt(C+1)]<<4|e[p.charCodeAt(C+2)]>>2,S[R++]=T>>8&255,S[R++]=T&255),S}function y(p){return t[p>>18&63]+t[p>>12&63]+t[p>>6&63]+t[p&63]}function x(p,T,v){for(var E,d=[],S=T;SD?D:R+S));return E===1?(T=p[v-1],d.push(t[T>>2]+t[T<<4&63]+"==")):E===2&&(T=(p[v-2]<<8)+p[v-1],d.push(t[T>>10]+t[T>>4&63]+t[T<<2&63]+"=")),d.join("")}return er}var cr={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */var bi;function bo(){return bi||(bi=1,cr.read=function(t,e,r,a,l){var u,o,i=l*8-a-1,c=(1<>1,y=-7,x=r?l-1:0,_=r?-1:1,p=t[e+x];for(x+=_,u=p&(1<<-y)-1,p>>=-y,y+=i;y>0;u=u*256+t[e+x],x+=_,y-=8);for(o=u&(1<<-y)-1,u>>=-y,y+=a;y>0;o=o*256+t[e+x],x+=_,y-=8);if(u===0)u=1-w;else{if(u===c)return o?NaN:(p?-1:1)*(1/0);o=o+Math.pow(2,a),u=u-w}return(p?-1:1)*o*Math.pow(2,u-a)},cr.write=function(t,e,r,a,l,u){var o,i,c,w=u*8-l-1,y=(1<>1,_=l===23?Math.pow(2,-24)-Math.pow(2,-77):0,p=a?0:u-1,T=a?1:-1,v=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(i=isNaN(e)?1:0,o=y):(o=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-o))<1&&(o--,c*=2),o+x>=1?e+=_/c:e+=_*Math.pow(2,1-x),e*c>=2&&(o++,c/=2),o+x>=y?(i=0,o=y):o+x>=1?(i=(e*c-1)*Math.pow(2,l),o=o+x):(i=e*Math.pow(2,x-1)*Math.pow(2,l),o=0));l>=8;t[r+p]=i&255,p+=T,i/=256,l-=8);for(o=o<0;t[r+p]=o&255,p+=T,o/=256,w-=8);t[r+p-T]|=v*128}),cr}/*! - * The buffer module from node.js, for the browser. - * - * @author Feross Aboukhadijeh - * @license MIT - */var _i;function Or(){return _i||(_i=1,function(t){var e=vo(),r=bo(),a=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=i,t.SlowBuffer=S,t.INSPECT_MAX_BYTES=50;var l=2147483647;t.kMaxLength=l,i.TYPED_ARRAY_SUPPORT=u(),!i.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function u(){try{var b=new Uint8Array(1),n={foo:function(){return 42}};return Object.setPrototypeOf(n,Uint8Array.prototype),Object.setPrototypeOf(b,n),b.foo()===42}catch{return!1}}Object.defineProperty(i.prototype,"parent",{enumerable:!0,get:function(){if(i.isBuffer(this))return this.buffer}}),Object.defineProperty(i.prototype,"offset",{enumerable:!0,get:function(){if(i.isBuffer(this))return this.byteOffset}});function o(b){if(b>l)throw new RangeError('The value "'+b+'" is invalid for option "size"');var n=new Uint8Array(b);return Object.setPrototypeOf(n,i.prototype),n}function i(b,n,s){if(typeof b=="number"){if(typeof n=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return x(b)}return c(b,n,s)}i.poolSize=8192;function c(b,n,s){if(typeof b=="string")return _(b,n);if(ArrayBuffer.isView(b))return T(b);if(b==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof b);if(Q(b,ArrayBuffer)||b&&Q(b.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Q(b,SharedArrayBuffer)||b&&Q(b.buffer,SharedArrayBuffer)))return v(b,n,s);if(typeof b=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var f=b.valueOf&&b.valueOf();if(f!=null&&f!==b)return i.from(f,n,s);var P=E(b);if(P)return P;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof b[Symbol.toPrimitive]=="function")return i.from(b[Symbol.toPrimitive]("string"),n,s);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof b)}i.from=function(b,n,s){return c(b,n,s)},Object.setPrototypeOf(i.prototype,Uint8Array.prototype),Object.setPrototypeOf(i,Uint8Array);function w(b){if(typeof b!="number")throw new TypeError('"size" argument must be of type number');if(b<0)throw new RangeError('The value "'+b+'" is invalid for option "size"')}function y(b,n,s){return w(b),b<=0?o(b):n!==void 0?typeof s=="string"?o(b).fill(n,s):o(b).fill(n):o(b)}i.alloc=function(b,n,s){return y(b,n,s)};function x(b){return w(b),o(b<0?0:d(b)|0)}i.allocUnsafe=function(b){return x(b)},i.allocUnsafeSlow=function(b){return x(b)};function _(b,n){if((typeof n!="string"||n==="")&&(n="utf8"),!i.isEncoding(n))throw new TypeError("Unknown encoding: "+n);var s=R(b,n)|0,f=o(s),P=f.write(b,n);return P!==s&&(f=f.slice(0,P)),f}function p(b){for(var n=b.length<0?0:d(b.length)|0,s=o(n),f=0;f=l)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+l.toString(16)+" bytes");return b|0}function S(b){return+b!=b&&(b=0),i.alloc(+b)}i.isBuffer=function(n){return n!=null&&n._isBuffer===!0&&n!==i.prototype},i.compare=function(n,s){if(Q(n,Uint8Array)&&(n=i.from(n,n.offset,n.byteLength)),Q(s,Uint8Array)&&(s=i.from(s,s.offset,s.byteLength)),!i.isBuffer(n)||!i.isBuffer(s))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(n===s)return 0;for(var f=n.length,P=s.length,U=0,B=Math.min(f,P);UP.length?i.from(B).copy(P,U):Uint8Array.prototype.set.call(P,B,U);else if(i.isBuffer(B))B.copy(P,U);else throw new TypeError('"list" argument must be an Array of Buffers');U+=B.length}return P};function R(b,n){if(i.isBuffer(b))return b.length;if(ArrayBuffer.isView(b)||Q(b,ArrayBuffer))return b.byteLength;if(typeof b!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof b);var s=b.length,f=arguments.length>2&&arguments[2]===!0;if(!f&&s===0)return 0;for(var P=!1;;)switch(n){case"ascii":case"latin1":case"binary":return s;case"utf8":case"utf-8":return m(b).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return s*2;case"hex":return s>>>1;case"base64":return k(b).length;default:if(P)return f?-1:m(b).length;n=(""+n).toLowerCase(),P=!0}}i.byteLength=R;function D(b,n,s){var f=!1;if((n===void 0||n<0)&&(n=0),n>this.length||((s===void 0||s>this.length)&&(s=this.length),s<=0)||(s>>>=0,n>>>=0,s<=n))return"";for(b||(b="utf8");;)switch(b){case"hex":return K(this,n,s);case"utf8":case"utf-8":return A(this,n,s);case"ascii":return Y(this,n,s);case"latin1":case"binary":return de(this,n,s);case"base64":return q(this,n,s);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ce(this,n,s);default:if(f)throw new TypeError("Unknown encoding: "+b);b=(b+"").toLowerCase(),f=!0}}i.prototype._isBuffer=!0;function C(b,n,s){var f=b[n];b[n]=b[s],b[s]=f}i.prototype.swap16=function(){var n=this.length;if(n%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var s=0;ss&&(n+=" ... "),""},a&&(i.prototype[a]=i.prototype.inspect),i.prototype.compare=function(n,s,f,P,U){if(Q(n,Uint8Array)&&(n=i.from(n,n.offset,n.byteLength)),!i.isBuffer(n))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof n);if(s===void 0&&(s=0),f===void 0&&(f=n?n.length:0),P===void 0&&(P=0),U===void 0&&(U=this.length),s<0||f>n.length||P<0||U>this.length)throw new RangeError("out of range index");if(P>=U&&s>=f)return 0;if(P>=U)return-1;if(s>=f)return 1;if(s>>>=0,f>>>=0,P>>>=0,U>>>=0,this===n)return 0;for(var B=U-P,te=f-s,ae=Math.min(B,te),ne=this.slice(P,U),fe=n.slice(s,f),pe=0;pe2147483647?s=2147483647:s<-2147483648&&(s=-2147483648),s=+s,h(s)&&(s=P?0:b.length-1),s<0&&(s=b.length+s),s>=b.length){if(P)return-1;s=b.length-1}else if(s<0)if(P)s=0;else return-1;if(typeof n=="string"&&(n=i.from(n,f)),i.isBuffer(n))return n.length===0?-1:H(b,n,s,f,P);if(typeof n=="number")return n=n&255,typeof Uint8Array.prototype.indexOf=="function"?P?Uint8Array.prototype.indexOf.call(b,n,s):Uint8Array.prototype.lastIndexOf.call(b,n,s):H(b,[n],s,f,P);throw new TypeError("val must be string, number or Buffer")}function H(b,n,s,f,P){var U=1,B=b.length,te=n.length;if(f!==void 0&&(f=String(f).toLowerCase(),f==="ucs2"||f==="ucs-2"||f==="utf16le"||f==="utf-16le")){if(b.length<2||n.length<2)return-1;U=2,B/=2,te/=2,s/=2}function ae(Be,ot){return U===1?Be[ot]:Be.readUInt16BE(ot*U)}var ne;if(P){var fe=-1;for(ne=s;neB&&(s=B-te),ne=s;ne>=0;ne--){for(var pe=!0,me=0;meP&&(f=P)):f=P;var U=n.length;f>U/2&&(f=U/2);for(var B=0;B>>0,isFinite(f)?(f=f>>>0,P===void 0&&(P="utf8")):(P=f,f=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var U=this.length-s;if((f===void 0||f>U)&&(f=U),n.length>0&&(f<0||s<0)||s>this.length)throw new RangeError("Attempt to write outside buffer bounds");P||(P="utf8");for(var B=!1;;)switch(P){case"hex":return J(this,n,s,f);case"utf8":case"utf-8":return I(this,n,s,f);case"ascii":case"latin1":case"binary":return re(this,n,s,f);case"base64":return ue(this,n,s,f);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,n,s,f);default:if(B)throw new TypeError("Unknown encoding: "+P);P=(""+P).toLowerCase(),B=!0}},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function q(b,n,s){return n===0&&s===b.length?e.fromByteArray(b):e.fromByteArray(b.slice(n,s))}function A(b,n,s){s=Math.min(b.length,s);for(var f=[],P=n;P239?4:U>223?3:U>191?2:1;if(P+te<=s){var ae,ne,fe,pe;switch(te){case 1:U<128&&(B=U);break;case 2:ae=b[P+1],(ae&192)===128&&(pe=(U&31)<<6|ae&63,pe>127&&(B=pe));break;case 3:ae=b[P+1],ne=b[P+2],(ae&192)===128&&(ne&192)===128&&(pe=(U&15)<<12|(ae&63)<<6|ne&63,pe>2047&&(pe<55296||pe>57343)&&(B=pe));break;case 4:ae=b[P+1],ne=b[P+2],fe=b[P+3],(ae&192)===128&&(ne&192)===128&&(fe&192)===128&&(pe=(U&15)<<18|(ae&63)<<12|(ne&63)<<6|fe&63,pe>65535&&pe<1114112&&(B=pe))}}B===null?(B=65533,te=1):B>65535&&(B-=65536,f.push(B>>>10&1023|55296),B=56320|B&1023),f.push(B),P+=te}return le(f)}var Z=4096;function le(b){var n=b.length;if(n<=Z)return String.fromCharCode.apply(String,b);for(var s="",f=0;ff)&&(s=f);for(var P="",U=n;Uf&&(n=f),s<0?(s+=f,s<0&&(s=0)):s>f&&(s=f),ss)throw new RangeError("Trying to access beyond buffer length")}i.prototype.readUintLE=i.prototype.readUIntLE=function(n,s,f){n=n>>>0,s=s>>>0,f||G(n,s,this.length);for(var P=this[n],U=1,B=0;++B>>0,s=s>>>0,f||G(n,s,this.length);for(var P=this[n+--s],U=1;s>0&&(U*=256);)P+=this[n+--s]*U;return P},i.prototype.readUint8=i.prototype.readUInt8=function(n,s){return n=n>>>0,s||G(n,1,this.length),this[n]},i.prototype.readUint16LE=i.prototype.readUInt16LE=function(n,s){return n=n>>>0,s||G(n,2,this.length),this[n]|this[n+1]<<8},i.prototype.readUint16BE=i.prototype.readUInt16BE=function(n,s){return n=n>>>0,s||G(n,2,this.length),this[n]<<8|this[n+1]},i.prototype.readUint32LE=i.prototype.readUInt32LE=function(n,s){return n=n>>>0,s||G(n,4,this.length),(this[n]|this[n+1]<<8|this[n+2]<<16)+this[n+3]*16777216},i.prototype.readUint32BE=i.prototype.readUInt32BE=function(n,s){return n=n>>>0,s||G(n,4,this.length),this[n]*16777216+(this[n+1]<<16|this[n+2]<<8|this[n+3])},i.prototype.readIntLE=function(n,s,f){n=n>>>0,s=s>>>0,f||G(n,s,this.length);for(var P=this[n],U=1,B=0;++B=U&&(P-=Math.pow(2,8*s)),P},i.prototype.readIntBE=function(n,s,f){n=n>>>0,s=s>>>0,f||G(n,s,this.length);for(var P=s,U=1,B=this[n+--P];P>0&&(U*=256);)B+=this[n+--P]*U;return U*=128,B>=U&&(B-=Math.pow(2,8*s)),B},i.prototype.readInt8=function(n,s){return n=n>>>0,s||G(n,1,this.length),this[n]&128?(255-this[n]+1)*-1:this[n]},i.prototype.readInt16LE=function(n,s){n=n>>>0,s||G(n,2,this.length);var f=this[n]|this[n+1]<<8;return f&32768?f|4294901760:f},i.prototype.readInt16BE=function(n,s){n=n>>>0,s||G(n,2,this.length);var f=this[n+1]|this[n]<<8;return f&32768?f|4294901760:f},i.prototype.readInt32LE=function(n,s){return n=n>>>0,s||G(n,4,this.length),this[n]|this[n+1]<<8|this[n+2]<<16|this[n+3]<<24},i.prototype.readInt32BE=function(n,s){return n=n>>>0,s||G(n,4,this.length),this[n]<<24|this[n+1]<<16|this[n+2]<<8|this[n+3]},i.prototype.readFloatLE=function(n,s){return n=n>>>0,s||G(n,4,this.length),r.read(this,n,!0,23,4)},i.prototype.readFloatBE=function(n,s){return n=n>>>0,s||G(n,4,this.length),r.read(this,n,!1,23,4)},i.prototype.readDoubleLE=function(n,s){return n=n>>>0,s||G(n,8,this.length),r.read(this,n,!0,52,8)},i.prototype.readDoubleBE=function(n,s){return n=n>>>0,s||G(n,8,this.length),r.read(this,n,!1,52,8)};function N(b,n,s,f,P,U){if(!i.isBuffer(b))throw new TypeError('"buffer" argument must be a Buffer instance');if(n>P||nb.length)throw new RangeError("Index out of range")}i.prototype.writeUintLE=i.prototype.writeUIntLE=function(n,s,f,P){if(n=+n,s=s>>>0,f=f>>>0,!P){var U=Math.pow(2,8*f)-1;N(this,n,s,f,U,0)}var B=1,te=0;for(this[s]=n&255;++te>>0,f=f>>>0,!P){var U=Math.pow(2,8*f)-1;N(this,n,s,f,U,0)}var B=f-1,te=1;for(this[s+B]=n&255;--B>=0&&(te*=256);)this[s+B]=n/te&255;return s+f},i.prototype.writeUint8=i.prototype.writeUInt8=function(n,s,f){return n=+n,s=s>>>0,f||N(this,n,s,1,255,0),this[s]=n&255,s+1},i.prototype.writeUint16LE=i.prototype.writeUInt16LE=function(n,s,f){return n=+n,s=s>>>0,f||N(this,n,s,2,65535,0),this[s]=n&255,this[s+1]=n>>>8,s+2},i.prototype.writeUint16BE=i.prototype.writeUInt16BE=function(n,s,f){return n=+n,s=s>>>0,f||N(this,n,s,2,65535,0),this[s]=n>>>8,this[s+1]=n&255,s+2},i.prototype.writeUint32LE=i.prototype.writeUInt32LE=function(n,s,f){return n=+n,s=s>>>0,f||N(this,n,s,4,4294967295,0),this[s+3]=n>>>24,this[s+2]=n>>>16,this[s+1]=n>>>8,this[s]=n&255,s+4},i.prototype.writeUint32BE=i.prototype.writeUInt32BE=function(n,s,f){return n=+n,s=s>>>0,f||N(this,n,s,4,4294967295,0),this[s]=n>>>24,this[s+1]=n>>>16,this[s+2]=n>>>8,this[s+3]=n&255,s+4},i.prototype.writeIntLE=function(n,s,f,P){if(n=+n,s=s>>>0,!P){var U=Math.pow(2,8*f-1);N(this,n,s,f,U-1,-U)}var B=0,te=1,ae=0;for(this[s]=n&255;++B>0)-ae&255;return s+f},i.prototype.writeIntBE=function(n,s,f,P){if(n=+n,s=s>>>0,!P){var U=Math.pow(2,8*f-1);N(this,n,s,f,U-1,-U)}var B=f-1,te=1,ae=0;for(this[s+B]=n&255;--B>=0&&(te*=256);)n<0&&ae===0&&this[s+B+1]!==0&&(ae=1),this[s+B]=(n/te>>0)-ae&255;return s+f},i.prototype.writeInt8=function(n,s,f){return n=+n,s=s>>>0,f||N(this,n,s,1,127,-128),n<0&&(n=255+n+1),this[s]=n&255,s+1},i.prototype.writeInt16LE=function(n,s,f){return n=+n,s=s>>>0,f||N(this,n,s,2,32767,-32768),this[s]=n&255,this[s+1]=n>>>8,s+2},i.prototype.writeInt16BE=function(n,s,f){return n=+n,s=s>>>0,f||N(this,n,s,2,32767,-32768),this[s]=n>>>8,this[s+1]=n&255,s+2},i.prototype.writeInt32LE=function(n,s,f){return n=+n,s=s>>>0,f||N(this,n,s,4,2147483647,-2147483648),this[s]=n&255,this[s+1]=n>>>8,this[s+2]=n>>>16,this[s+3]=n>>>24,s+4},i.prototype.writeInt32BE=function(n,s,f){return n=+n,s=s>>>0,f||N(this,n,s,4,2147483647,-2147483648),n<0&&(n=4294967295+n+1),this[s]=n>>>24,this[s+1]=n>>>16,this[s+2]=n>>>8,this[s+3]=n&255,s+4};function W(b,n,s,f,P,U){if(s+f>b.length)throw new RangeError("Index out of range");if(s<0)throw new RangeError("Index out of range")}function z(b,n,s,f,P){return n=+n,s=s>>>0,P||W(b,n,s,4),r.write(b,n,s,f,23,4),s+4}i.prototype.writeFloatLE=function(n,s,f){return z(this,n,s,!0,f)},i.prototype.writeFloatBE=function(n,s,f){return z(this,n,s,!1,f)};function $(b,n,s,f,P){return n=+n,s=s>>>0,P||W(b,n,s,8),r.write(b,n,s,f,52,8),s+8}i.prototype.writeDoubleLE=function(n,s,f){return $(this,n,s,!0,f)},i.prototype.writeDoubleBE=function(n,s,f){return $(this,n,s,!1,f)},i.prototype.copy=function(n,s,f,P){if(!i.isBuffer(n))throw new TypeError("argument should be a Buffer");if(f||(f=0),!P&&P!==0&&(P=this.length),s>=n.length&&(s=n.length),s||(s=0),P>0&&P=this.length)throw new RangeError("Index out of range");if(P<0)throw new RangeError("sourceEnd out of bounds");P>this.length&&(P=this.length),n.length-s>>0,f=f===void 0?this.length:f>>>0,n||(n=0);var B;if(typeof n=="number")for(B=s;B55295&&s<57344){if(!P){if(s>56319){(n-=3)>-1&&U.push(239,191,189);continue}else if(B+1===f){(n-=3)>-1&&U.push(239,191,189);continue}P=s;continue}if(s<56320){(n-=3)>-1&&U.push(239,191,189),P=s;continue}s=(P-55296<<10|s-56320)+65536}else P&&(n-=3)>-1&&U.push(239,191,189);if(P=null,s<128){if((n-=1)<0)break;U.push(s)}else if(s<2048){if((n-=2)<0)break;U.push(s>>6|192,s&63|128)}else if(s<65536){if((n-=3)<0)break;U.push(s>>12|224,s>>6&63|128,s&63|128)}else if(s<1114112){if((n-=4)<0)break;U.push(s>>18|240,s>>12&63|128,s>>6&63|128,s&63|128)}else throw new Error("Invalid code point")}return U}function M(b){for(var n=[],s=0;s>8,P=s%256,U.push(P),U.push(f);return U}function k(b){return e.toByteArray(g(b))}function O(b,n,s,f){for(var P=0;P=n.length||P>=b.length);++P)n[P+s]=b[P];return P}function Q(b,n){return b instanceof n||b!=null&&b.constructor!=null&&b.constructor.name!=null&&b.constructor.name===n.name}function h(b){return b!==b}var X=function(){for(var b="0123456789abcdef",n=new Array(256),s=0;s<16;++s)for(var f=s*16,P=0;P<16;++P)n[f+P]=b[s]+b[P];return n}()}(zr)),zr}var Hr={},Gr={},Kr,Ei;function Ks(){return Ei||(Ei=1,Kr=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},r=Symbol("test"),a=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(a)!=="[object Symbol]")return!1;var l=42;e[r]=l;for(r in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var u=Object.getOwnPropertySymbols(e);if(u.length!==1||u[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(e,r);if(o.value!==l||o.enumerable!==!0)return!1}return!0}),Kr}var Vr,Ti;function Xn(){if(Ti)return Vr;Ti=1;var t=Ks();return Vr=function(){return t()&&!!Symbol.toStringTag},Vr}var qr,xi;function _o(){if(xi)return qr;xi=1;var t=typeof Symbol<"u"&&Symbol,e=Ks();return qr=function(){return typeof t!="function"||typeof Symbol!="function"||typeof t("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},qr}var Xr,Si;function Eo(){if(Si)return Xr;Si=1;var t={foo:{}},e=Object;return Xr=function(){return{__proto__:t}.foo===t.foo&&!({__proto__:null}instanceof e)},Xr}var Yr,Ai;function To(){if(Ai)return Yr;Ai=1;var t="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,r=Math.max,a="[object Function]",l=function(c,w){for(var y=[],x=0;x"u"||!y?t:y(Uint8Array),p={"%AggregateError%":typeof AggregateError>"u"?t:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?t:ArrayBuffer,"%ArrayIteratorPrototype%":c&&y?y([][Symbol.iterator]()):t,"%AsyncFromSyncIteratorPrototype%":t,"%AsyncFunction%":x,"%AsyncGenerator%":x,"%AsyncGeneratorFunction%":x,"%AsyncIteratorPrototype%":x,"%Atomics%":typeof Atomics>"u"?t:Atomics,"%BigInt%":typeof BigInt>"u"?t:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?t:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?t:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?t:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?t:Float32Array,"%Float64Array%":typeof Float64Array>"u"?t:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?t:FinalizationRegistry,"%Function%":r,"%GeneratorFunction%":x,"%Int8Array%":typeof Int8Array>"u"?t:Int8Array,"%Int16Array%":typeof Int16Array>"u"?t:Int16Array,"%Int32Array%":typeof Int32Array>"u"?t:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":c&&y?y(y([][Symbol.iterator]())):t,"%JSON%":typeof JSON=="object"?JSON:t,"%Map%":typeof Map>"u"?t:Map,"%MapIteratorPrototype%":typeof Map>"u"||!c||!y?t:y(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?t:Promise,"%Proxy%":typeof Proxy>"u"?t:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?t:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?t:Set,"%SetIteratorPrototype%":typeof Set>"u"||!c||!y?t:y(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?t:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":c&&y?y(""[Symbol.iterator]()):t,"%Symbol%":c?Symbol:t,"%SyntaxError%":e,"%ThrowTypeError%":i,"%TypedArray%":_,"%TypeError%":a,"%Uint8Array%":typeof Uint8Array>"u"?t:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?t:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?t:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?t:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?t:WeakMap,"%WeakRef%":typeof WeakRef>"u"?t:WeakRef,"%WeakSet%":typeof WeakSet>"u"?t:WeakSet};if(y)try{null.error}catch(L){var T=y(y(L));p["%Error.prototype%"]=T}var v=function L(q){var A;if(q==="%AsyncFunction%")A=l("async function () {}");else if(q==="%GeneratorFunction%")A=l("function* () {}");else if(q==="%AsyncGeneratorFunction%")A=l("async function* () {}");else if(q==="%AsyncGenerator%"){var Z=L("%AsyncGeneratorFunction%");Z&&(A=Z.prototype)}else if(q==="%AsyncIteratorPrototype%"){var le=L("%AsyncGenerator%");le&&y&&(A=y(le.prototype))}return p[q]=A,A},E={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},d=Yn(),S=xo(),R=d.call(Function.call,Array.prototype.concat),D=d.call(Function.apply,Array.prototype.splice),C=d.call(Function.call,String.prototype.replace),V=d.call(Function.call,String.prototype.slice),H=d.call(Function.call,RegExp.prototype.exec),J=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,I=/\\(\\)?/g,re=function(q){var A=V(q,0,1),Z=V(q,-1);if(A==="%"&&Z!=="%")throw new e("invalid intrinsic syntax, expected closing `%`");if(Z==="%"&&A!=="%")throw new e("invalid intrinsic syntax, expected opening `%`");var le=[];return C(q,J,function(Y,de,K,ce){le[le.length]=K?C(ce,I,"$1"):de||Y}),le},ue=function(q,A){var Z=q,le;if(S(E,Z)&&(le=E[Z],Z="%"+le[0]+"%"),S(p,Z)){var Y=p[Z];if(Y===x&&(Y=v(Z)),typeof Y>"u"&&!A)throw new a("intrinsic "+q+" exists, but is not available. Please file an issue!");return{alias:le,name:Z,value:Y}}throw new e("intrinsic "+q+" does not exist!")};return Jr=function(q,A){if(typeof q!="string"||q.length===0)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof A!="boolean")throw new a('"allowMissing" argument must be a boolean');if(H(/^%?[^%]*%?$/,q)===null)throw new e("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Z=re(q),le=Z.length>0?Z[0]:"",Y=ue("%"+le+"%",A),de=Y.name,K=Y.value,ce=!1,G=Y.alias;G&&(le=G[0],D(Z,R([0,1],G)));for(var N=1,W=!0;N=Z.length){var g=u(K,z);W=!!g,W&&"get"in g&&!("originalValue"in g.get)?K=g.get:K=K[z]}else W=S(K,z),K=K[z];W&&!ce&&(p[de]=K)}}return K},Jr}var $r={exports:{}},en,Ni;function Vs(){if(Ni)return en;Ni=1;var t=Xt(),e=t("%Object.defineProperty%",!0),r=function(){if(e)try{return e({},"a",{value:1}),!0}catch{return!1}return!1};return r.hasArrayLengthDefineBug=function(){if(!r())return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},en=r,en}var tn,Oi;function Zn(){if(Oi)return tn;Oi=1;var t=Xt(),e=t("%Object.getOwnPropertyDescriptor%",!0);if(e)try{e([],"length")}catch{e=null}return tn=e,tn}var rn,Ci;function So(){if(Ci)return rn;Ci=1;var t=Vs()(),e=Xt(),r=t&&e("%Object.defineProperty%",!0);if(r)try{r({},"a",{value:1})}catch{r=!1}var a=e("%SyntaxError%"),l=e("%TypeError%"),u=Zn();return rn=function(i,c,w){if(!i||typeof i!="object"&&typeof i!="function")throw new l("`obj` must be an object or a function`");if(typeof c!="string"&&typeof c!="symbol")throw new l("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new l("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new l("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new l("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new l("`loose`, if provided, must be a boolean");var y=arguments.length>3?arguments[3]:null,x=arguments.length>4?arguments[4]:null,_=arguments.length>5?arguments[5]:null,p=arguments.length>6?arguments[6]:!1,T=!!u&&u(i,c);if(r)r(i,c,{configurable:_===null&&T?T.configurable:!_,enumerable:y===null&&T?T.enumerable:!y,value:w,writable:x===null&&T?T.writable:!x});else if(p||!y&&!x&&!_)i[c]=w;else throw new a("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},rn}var nn,Di;function Ao(){if(Di)return nn;Di=1;var t=Xt(),e=So(),r=Vs()(),a=Zn(),l=t("%TypeError%"),u=t("%Math.floor%");return nn=function(i,c){if(typeof i!="function")throw new l("`fn` is not a function");if(typeof c!="number"||c<0||c>4294967295||u(c)!==c)throw new l("`length` must be a positive 32-bit integer");var w=arguments.length>2&&!!arguments[2],y=!0,x=!0;if("length"in i&&a){var _=a(i,"length");_&&!_.configurable&&(y=!1),_&&!_.writable&&(x=!1)}return(y||x||!w)&&(r?e(i,"length",c,!0,!0):e(i,"length",c)),i},nn}var Pi;function qs(){return Pi||(Pi=1,function(t){var e=Yn(),r=Xt(),a=Ao(),l=r("%TypeError%"),u=r("%Function.prototype.apply%"),o=r("%Function.prototype.call%"),i=r("%Reflect.apply%",!0)||e.call(o,u),c=r("%Object.defineProperty%",!0),w=r("%Math.max%");if(c)try{c({},"a",{value:1})}catch{c=null}t.exports=function(_){if(typeof _!="function")throw new l("a function is required");var p=i(e,o,arguments);return a(p,1+w(0,_.length-(arguments.length-1)),!0)};var y=function(){return i(e,u,arguments)};c?c(t.exports,"apply",{value:y}):t.exports.apply=y}($r)),$r.exports}var sn,Li;function Xs(){if(Li)return sn;Li=1;var t=Xt(),e=qs(),r=e(t("String.prototype.indexOf"));return sn=function(l,u){var o=t(l,!!u);return typeof o=="function"&&r(l,".prototype.")>-1?e(o):o},sn}var an,Fi;function Ro(){if(Fi)return an;Fi=1;var t=Xn()(),e=Xs(),r=e("Object.prototype.toString"),a=function(i){return t&&i&&typeof i=="object"&&Symbol.toStringTag in i?!1:r(i)==="[object Arguments]"},l=function(i){return a(i)?!0:i!==null&&typeof i=="object"&&typeof i.length=="number"&&i.length>=0&&r(i)!=="[object Array]"&&r(i.callee)==="[object Function]"},u=function(){return a(arguments)}();return a.isLegacyArguments=l,an=u?a:l,an}var on,Bi;function Io(){if(Bi)return on;Bi=1;var t=Object.prototype.toString,e=Function.prototype.toString,r=/^\s*(?:function)?\*/,a=Xn()(),l=Object.getPrototypeOf,u=function(){if(!a)return!1;try{return Function("return function*() {}")()}catch{}},o;return on=function(c){if(typeof c!="function")return!1;if(r.test(e.call(c)))return!0;if(!a){var w=t.call(c);return w==="[object GeneratorFunction]"}if(!l)return!1;if(typeof o>"u"){var y=u();o=y?l(y):!1}return l(c)===o},on}var un,Mi;function ko(){if(Mi)return un;Mi=1;var t=Function.prototype.toString,e=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,r,a;if(typeof e=="function"&&typeof Object.defineProperty=="function")try{r=Object.defineProperty({},"length",{get:function(){throw a}}),a={},e(function(){throw 42},null,r)}catch(S){S!==a&&(e=null)}else e=null;var l=/^\s*class\b/,u=function(R){try{var D=t.call(R);return l.test(D)}catch{return!1}},o=function(R){try{return u(R)?!1:(t.call(R),!0)}catch{return!1}},i=Object.prototype.toString,c="[object Object]",w="[object Function]",y="[object GeneratorFunction]",x="[object HTMLAllCollection]",_="[object HTML document.all class]",p="[object HTMLCollection]",T=typeof Symbol=="function"&&!!Symbol.toStringTag,v=!(0 in[,]),E=function(){return!1};if(typeof document=="object"){var d=document.all;i.call(d)===i.call(document.all)&&(E=function(R){if((v||!R)&&(typeof R>"u"||typeof R=="object"))try{var D=i.call(R);return(D===x||D===_||D===p||D===c)&&R("")==null}catch{}return!1})}return un=e?function(R){if(E(R))return!0;if(!R||typeof R!="function"&&typeof R!="object")return!1;try{e(R,null,r)}catch(D){if(D!==a)return!1}return!u(R)&&o(R)}:function(R){if(E(R))return!0;if(!R||typeof R!="function"&&typeof R!="object")return!1;if(T)return o(R);if(u(R))return!1;var D=i.call(R);return D!==w&&D!==y&&!/^\[object HTML/.test(D)?!1:o(R)},un}var ln,Ui;function No(){if(Ui)return ln;Ui=1;var t=ko(),e=Object.prototype.toString,r=Object.prototype.hasOwnProperty,a=function(c,w,y){for(var x=0,_=c.length;x<_;x++)r.call(c,x)&&(y==null?w(c[x],x,c):w.call(y,c[x],x,c))},l=function(c,w,y){for(var x=0,_=c.length;x<_;x++)y==null?w(c.charAt(x),x,c):w.call(y,c.charAt(x),x,c)},u=function(c,w,y){for(var x in c)r.call(c,x)&&(y==null?w(c[x],x,c):w.call(y,c[x],x,c))},o=function(c,w,y){if(!t(w))throw new TypeError("iterator must be a function");var x;arguments.length>=3&&(x=y),e.call(c)==="[object Array]"?a(c,w,x):typeof c=="string"?l(c,w,x):u(c,w,x)};return ln=o,ln}var cn,ji;function Oo(){if(ji)return cn;ji=1;var t=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],e=typeof globalThis>"u"?ht:globalThis;return cn=function(){for(var a=[],l=0;l"u"?ht:globalThis,c=e(),w=a("String.prototype.slice"),y=Object.getPrototypeOf,x=a("Array.prototype.indexOf",!0)||function(E,d){for(var S=0;S-1?d:d!=="Object"?!1:T(E)}return l?p(E):null},fn}var hn,zi;function Co(){if(zi)return hn;zi=1;var t=Ys();return hn=function(r){return!!t(r)},hn}var Hi;function Do(){return Hi||(Hi=1,function(t){var e=Ro(),r=Io(),a=Ys(),l=Co();function u(f){return f.call.bind(f)}var o=typeof BigInt<"u",i=typeof Symbol<"u",c=u(Object.prototype.toString),w=u(Number.prototype.valueOf),y=u(String.prototype.valueOf),x=u(Boolean.prototype.valueOf);if(o)var _=u(BigInt.prototype.valueOf);if(i)var p=u(Symbol.prototype.valueOf);function T(f,P){if(typeof f!="object")return!1;try{return P(f),!0}catch{return!1}}t.isArgumentsObject=e,t.isGeneratorFunction=r,t.isTypedArray=l;function v(f){return typeof Promise<"u"&&f instanceof Promise||f!==null&&typeof f=="object"&&typeof f.then=="function"&&typeof f.catch=="function"}t.isPromise=v;function E(f){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(f):l(f)||W(f)}t.isArrayBufferView=E;function d(f){return a(f)==="Uint8Array"}t.isUint8Array=d;function S(f){return a(f)==="Uint8ClampedArray"}t.isUint8ClampedArray=S;function R(f){return a(f)==="Uint16Array"}t.isUint16Array=R;function D(f){return a(f)==="Uint32Array"}t.isUint32Array=D;function C(f){return a(f)==="Int8Array"}t.isInt8Array=C;function V(f){return a(f)==="Int16Array"}t.isInt16Array=V;function H(f){return a(f)==="Int32Array"}t.isInt32Array=H;function J(f){return a(f)==="Float32Array"}t.isFloat32Array=J;function I(f){return a(f)==="Float64Array"}t.isFloat64Array=I;function re(f){return a(f)==="BigInt64Array"}t.isBigInt64Array=re;function ue(f){return a(f)==="BigUint64Array"}t.isBigUint64Array=ue;function L(f){return c(f)==="[object Map]"}L.working=typeof Map<"u"&&L(new Map);function q(f){return typeof Map>"u"?!1:L.working?L(f):f instanceof Map}t.isMap=q;function A(f){return c(f)==="[object Set]"}A.working=typeof Set<"u"&&A(new Set);function Z(f){return typeof Set>"u"?!1:A.working?A(f):f instanceof Set}t.isSet=Z;function le(f){return c(f)==="[object WeakMap]"}le.working=typeof WeakMap<"u"&&le(new WeakMap);function Y(f){return typeof WeakMap>"u"?!1:le.working?le(f):f instanceof WeakMap}t.isWeakMap=Y;function de(f){return c(f)==="[object WeakSet]"}de.working=typeof WeakSet<"u"&&de(new WeakSet);function K(f){return de(f)}t.isWeakSet=K;function ce(f){return c(f)==="[object ArrayBuffer]"}ce.working=typeof ArrayBuffer<"u"&&ce(new ArrayBuffer);function G(f){return typeof ArrayBuffer>"u"?!1:ce.working?ce(f):f instanceof ArrayBuffer}t.isArrayBuffer=G;function N(f){return c(f)==="[object DataView]"}N.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&N(new DataView(new ArrayBuffer(1),0,1));function W(f){return typeof DataView>"u"?!1:N.working?N(f):f instanceof DataView}t.isDataView=W;var z=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function $(f){return c(f)==="[object SharedArrayBuffer]"}function j(f){return typeof z>"u"?!1:(typeof $.working>"u"&&($.working=$(new z)),$.working?$(f):f instanceof z)}t.isSharedArrayBuffer=j;function g(f){return c(f)==="[object AsyncFunction]"}t.isAsyncFunction=g;function m(f){return c(f)==="[object Map Iterator]"}t.isMapIterator=m;function M(f){return c(f)==="[object Set Iterator]"}t.isSetIterator=M;function F(f){return c(f)==="[object Generator]"}t.isGeneratorObject=F;function k(f){return c(f)==="[object WebAssembly.Module]"}t.isWebAssemblyCompiledModule=k;function O(f){return T(f,w)}t.isNumberObject=O;function Q(f){return T(f,y)}t.isStringObject=Q;function h(f){return T(f,x)}t.isBooleanObject=h;function X(f){return o&&T(f,_)}t.isBigIntObject=X;function b(f){return i&&T(f,p)}t.isSymbolObject=b;function n(f){return O(f)||Q(f)||h(f)||X(f)||b(f)}t.isBoxedPrimitive=n;function s(f){return typeof Uint8Array<"u"&&(G(f)||j(f))}t.isAnyArrayBuffer=s,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(f){Object.defineProperty(t,f,{enumerable:!1,value:function(){throw new Error(f+" is not supported in userland")}})})}(Gr)),Gr}var dn,Gi;function Po(){return Gi||(Gi=1,dn=function(e){return e&&typeof e=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"}),dn}var Ki;function Zs(){return Ki||(Ki=1,function(t){var e=Object.getOwnPropertyDescriptors||function(W){for(var z=Object.keys(W),$={},j=0;j=j)return M;switch(M){case"%s":return String($[z++]);case"%d":return Number($[z++]);case"%j":try{return JSON.stringify($[z++])}catch{return"[Circular]"}default:return M}}),m=$[z];z"u")return function(){return t.deprecate(N,W).apply(this,arguments)};var z=!1;function $(){if(!z){if(ve.throwDeprecation)throw new Error(W);ve.traceDeprecation?console.trace(W):console.error(W),z=!0}return N.apply(this,arguments)}return $};var a={},l=/^$/;if(ve.env.NODE_DEBUG){var u=ve.env.NODE_DEBUG;u=u.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),l=new RegExp("^"+u+"$","i")}t.debuglog=function(N){if(N=N.toUpperCase(),!a[N])if(l.test(N)){var W=ve.pid;a[N]=function(){var z=t.format.apply(t,arguments);console.error("%s %d: %s",N,W,z)}}else a[N]=function(){};return a[N]};function o(N,W){var z={seen:[],stylize:c};return arguments.length>=3&&(z.depth=arguments[2]),arguments.length>=4&&(z.colors=arguments[3]),d(W)?z.showHidden=W:W&&t._extend(z,W),H(z.showHidden)&&(z.showHidden=!1),H(z.depth)&&(z.depth=2),H(z.colors)&&(z.colors=!1),H(z.customInspect)&&(z.customInspect=!0),z.colors&&(z.stylize=i),y(z,N,z.depth)}t.inspect=o,o.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},o.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function i(N,W){var z=o.styles[W];return z?"\x1B["+o.colors[z][0]+"m"+N+"\x1B["+o.colors[z][1]+"m":N}function c(N,W){return N}function w(N){var W={};return N.forEach(function(z,$){W[z]=!0}),W}function y(N,W,z){if(N.customInspect&&W&&L(W.inspect)&&W.inspect!==t.inspect&&!(W.constructor&&W.constructor.prototype===W)){var $=W.inspect(z,N);return C($)||($=y(N,$,z)),$}var j=x(N,W);if(j)return j;var g=Object.keys(W),m=w(g);if(N.showHidden&&(g=Object.getOwnPropertyNames(W)),ue(W)&&(g.indexOf("message")>=0||g.indexOf("description")>=0))return _(W);if(g.length===0){if(L(W)){var M=W.name?": "+W.name:"";return N.stylize("[Function"+M+"]","special")}if(J(W))return N.stylize(RegExp.prototype.toString.call(W),"regexp");if(re(W))return N.stylize(Date.prototype.toString.call(W),"date");if(ue(W))return _(W)}var F="",k=!1,O=["{","}"];if(E(W)&&(k=!0,O=["[","]"]),L(W)){var Q=W.name?": "+W.name:"";F=" [Function"+Q+"]"}if(J(W)&&(F=" "+RegExp.prototype.toString.call(W)),re(W)&&(F=" "+Date.prototype.toUTCString.call(W)),ue(W)&&(F=" "+_(W)),g.length===0&&(!k||W.length==0))return O[0]+F+O[1];if(z<0)return J(W)?N.stylize(RegExp.prototype.toString.call(W),"regexp"):N.stylize("[Object]","special");N.seen.push(W);var h;return k?h=p(N,W,z,m,g):h=g.map(function(X){return T(N,W,z,m,X,k)}),N.seen.pop(),v(h,F,O)}function x(N,W){if(H(W))return N.stylize("undefined","undefined");if(C(W)){var z="'"+JSON.stringify(W).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return N.stylize(z,"string")}if(D(W))return N.stylize(""+W,"number");if(d(W))return N.stylize(""+W,"boolean");if(S(W))return N.stylize("null","null")}function _(N){return"["+Error.prototype.toString.call(N)+"]"}function p(N,W,z,$,j){for(var g=[],m=0,M=W.length;m-1&&(g?M=M.split(` -`).map(function(k){return" "+k}).join(` -`).slice(2):M=` -`+M.split(` -`).map(function(k){return" "+k}).join(` -`))):M=N.stylize("[Circular]","special")),H(m)){if(g&&j.match(/^\d+$/))return M;m=JSON.stringify(""+j),m.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(m=m.slice(1,-1),m=N.stylize(m,"name")):(m=m.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),m=N.stylize(m,"string"))}return m+": "+M}function v(N,W,z){var $=N.reduce(function(j,g){return g.indexOf(` -`)>=0,j+g.replace(/\u001b\[\d\d?m/g,"").length+1},0);return $>60?z[0]+(W===""?"":W+` - `)+" "+N.join(`, - `)+" "+z[1]:z[0]+W+" "+N.join(", ")+" "+z[1]}t.types=Do();function E(N){return Array.isArray(N)}t.isArray=E;function d(N){return typeof N=="boolean"}t.isBoolean=d;function S(N){return N===null}t.isNull=S;function R(N){return N==null}t.isNullOrUndefined=R;function D(N){return typeof N=="number"}t.isNumber=D;function C(N){return typeof N=="string"}t.isString=C;function V(N){return typeof N=="symbol"}t.isSymbol=V;function H(N){return N===void 0}t.isUndefined=H;function J(N){return I(N)&&A(N)==="[object RegExp]"}t.isRegExp=J,t.types.isRegExp=J;function I(N){return typeof N=="object"&&N!==null}t.isObject=I;function re(N){return I(N)&&A(N)==="[object Date]"}t.isDate=re,t.types.isDate=re;function ue(N){return I(N)&&(A(N)==="[object Error]"||N instanceof Error)}t.isError=ue,t.types.isNativeError=ue;function L(N){return typeof N=="function"}t.isFunction=L;function q(N){return N===null||typeof N=="boolean"||typeof N=="number"||typeof N=="string"||typeof N=="symbol"||typeof N>"u"}t.isPrimitive=q,t.isBuffer=Po();function A(N){return Object.prototype.toString.call(N)}function Z(N){return N<10?"0"+N.toString(10):N.toString(10)}var le=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Y(){var N=new Date,W=[Z(N.getHours()),Z(N.getMinutes()),Z(N.getSeconds())].join(":");return[N.getDate(),le[N.getMonth()],W].join(" ")}t.log=function(){console.log("%s - %s",Y(),t.format.apply(t,arguments))},t.inherits=Ot,t._extend=function(N,W){if(!W||!I(W))return N;for(var z=Object.keys(W),$=z.length;$--;)N[z[$]]=W[z[$]];return N};function de(N,W){return Object.prototype.hasOwnProperty.call(N,W)}var K=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;t.promisify=function(W){if(typeof W!="function")throw new TypeError('The "original" argument must be of type Function');if(K&&W[K]){var z=W[K];if(typeof z!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(z,K,{value:z,enumerable:!1,writable:!1,configurable:!0}),z}function z(){for(var $,j,g=new Promise(function(F,k){$=F,j=k}),m=[],M=0;M0?this.tail.next=v:this.head=v,this.tail=v,++this.length}},{key:"unshift",value:function(T){var v={data:T,next:this.head};this.length===0&&(this.tail=v),this.head=v,++this.length}},{key:"shift",value:function(){if(this.length!==0){var T=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,T}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(T){if(this.length===0)return"";for(var v=this.head,E=""+v.data;v=v.next;)E+=T+v.data;return E}},{key:"concat",value:function(T){if(this.length===0)return i.alloc(0);for(var v=i.allocUnsafe(T>>>0),E=this.head,d=0;E;)x(E.data,v,d),d+=E.data.length,E=E.next;return v}},{key:"consume",value:function(T,v){var E;return TS.length?S.length:T;if(R===S.length?d+=S:d+=S.slice(0,T),T-=R,T===0){R===S.length?(++E,v.next?this.head=v.next:this.head=this.tail=null):(this.head=v,v.data=S.slice(R));break}++E}return this.length-=E,d}},{key:"_getBuffer",value:function(T){var v=i.allocUnsafe(T),E=this.head,d=1;for(E.data.copy(v),T-=E.data.length;E=E.next;){var S=E.data,R=T>S.length?S.length:T;if(S.copy(v,v.length-T,0,R),T-=R,T===0){R===S.length?(++d,E.next?this.head=E.next:this.head=this.tail=null):(this.head=E,E.data=S.slice(R));break}++d}return this.length-=d,v}},{key:y,value:function(T,v){return w(this,e({},v,{depth:0,customInspect:!1}))}}]),_}(),pn}var mn,qi;function Qs(){if(qi)return mn;qi=1;function t(o,i){var c=this,w=this._readableState&&this._readableState.destroyed,y=this._writableState&&this._writableState.destroyed;return w||y?(i?i(o):o&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,ve.nextTick(l,this,o)):ve.nextTick(l,this,o)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(o||null,function(x){!i&&x?c._writableState?c._writableState.errorEmitted?ve.nextTick(r,c):(c._writableState.errorEmitted=!0,ve.nextTick(e,c,x)):ve.nextTick(e,c,x):i?(ve.nextTick(r,c),i(x)):ve.nextTick(r,c)}),this)}function e(o,i){l(o,i),r(o)}function r(o){o._writableState&&!o._writableState.emitClose||o._readableState&&!o._readableState.emitClose||o.emit("close")}function a(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function l(o,i){o.emit("error",i)}function u(o,i){var c=o._readableState,w=o._writableState;c&&c.autoDestroy||w&&w.autoDestroy?o.destroy(i):o.emit("error",i)}return mn={destroy:t,undestroy:a,errorOrDestroy:u},mn}var gn={},Xi;function Yt(){if(Xi)return gn;Xi=1;function t(i,c){i.prototype=Object.create(c.prototype),i.prototype.constructor=i,i.__proto__=c}var e={};function r(i,c,w){w||(w=Error);function y(_,p,T){return typeof c=="string"?c:c(_,p,T)}var x=function(_){t(p,_);function p(T,v,E){return _.call(this,y(T,v,E))||this}return p}(w);x.prototype.name=w.name,x.prototype.code=i,e[i]=x}function a(i,c){if(Array.isArray(i)){var w=i.length;return i=i.map(function(y){return String(y)}),w>2?"one of ".concat(c," ").concat(i.slice(0,w-1).join(", "),", or ")+i[w-1]:w===2?"one of ".concat(c," ").concat(i[0]," or ").concat(i[1]):"of ".concat(c," ").concat(i[0])}else return"of ".concat(c," ").concat(String(i))}function l(i,c,w){return i.substr(!w||w<0?0:+w,c.length)===c}function u(i,c,w){return(w===void 0||w>i.length)&&(w=i.length),i.substring(w-c.length,w)===c}function o(i,c,w){return typeof w!="number"&&(w=0),w+c.length>i.length?!1:i.indexOf(c,w)!==-1}return r("ERR_INVALID_OPT_VALUE",function(i,c){return'The value "'+c+'" is invalid for option "'+i+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(i,c,w){var y;typeof c=="string"&&l(c,"not ")?(y="must not be",c=c.replace(/^not /,"")):y="must be";var x;if(u(i," argument"))x="The ".concat(i," ").concat(y," ").concat(a(c,"type"));else{var _=o(i,".")?"property":"argument";x='The "'.concat(i,'" ').concat(_," ").concat(y," ").concat(a(c,"type"))}return x+=". Received type ".concat(typeof w),x},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(i){return"The "+i+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(i){return"Cannot call "+i+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(i){return"Unknown encoding: "+i},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),gn.codes=e,gn}var wn,Yi;function Js(){if(Yi)return wn;Yi=1;var t=Yt().codes.ERR_INVALID_OPT_VALUE;function e(a,l,u){return a.highWaterMark!=null?a.highWaterMark:l?a[u]:null}function r(a,l,u,o){var i=e(l,o,u);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var c=o?u:"highWaterMark";throw new t(c,i)}return Math.floor(i)}return a.objectMode?16:16*1024}return wn={getHighWaterMark:r},wn}var yn,Zi;function Fo(){if(Zi)return yn;Zi=1,yn=t;function t(r,a){if(e("noDeprecation"))return r;var l=!1;function u(){if(!l){if(e("throwDeprecation"))throw new Error(a);e("traceDeprecation")?console.trace(a):console.warn(a),l=!0}return r.apply(this,arguments)}return u}function e(r){try{if(!ht.localStorage)return!1}catch{return!1}var a=ht.localStorage[r];return a==null?!1:String(a).toLowerCase()==="true"}return yn}var vn,Qi;function $s(){if(Qi)return vn;Qi=1,vn=J;function t(j){var g=this;this.next=null,this.entry=null,this.finish=function(){$(g,j)}}var e;J.WritableState=V;var r={deprecate:Fo()},a=Gs(),l=Or().Buffer,u=ht.Uint8Array||function(){};function o(j){return l.from(j)}function i(j){return l.isBuffer(j)||j instanceof u}var c=Qs(),w=Js(),y=w.getHighWaterMark,x=Yt().codes,_=x.ERR_INVALID_ARG_TYPE,p=x.ERR_METHOD_NOT_IMPLEMENTED,T=x.ERR_MULTIPLE_CALLBACK,v=x.ERR_STREAM_CANNOT_PIPE,E=x.ERR_STREAM_DESTROYED,d=x.ERR_STREAM_NULL_VALUES,S=x.ERR_STREAM_WRITE_AFTER_END,R=x.ERR_UNKNOWN_ENCODING,D=c.errorOrDestroy;Ot(J,a);function C(){}function V(j,g,m){e=e||Ht(),j=j||{},typeof m!="boolean"&&(m=g instanceof e),this.objectMode=!!j.objectMode,m&&(this.objectMode=this.objectMode||!!j.writableObjectMode),this.highWaterMark=y(this,j,"writableHighWaterMark",m),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var M=j.decodeStrings===!1;this.decodeStrings=!M,this.defaultEncoding=j.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(F){le(g,F)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=j.emitClose!==!1,this.autoDestroy=!!j.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new t(this)}V.prototype.getBuffer=function(){for(var g=this.bufferedRequest,m=[];g;)m.push(g),g=g.next;return m},function(){try{Object.defineProperty(V.prototype,"buffer",{get:r.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var H;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(H=Function.prototype[Symbol.hasInstance],Object.defineProperty(J,Symbol.hasInstance,{value:function(g){return H.call(this,g)?!0:this!==J?!1:g&&g._writableState instanceof V}})):H=function(g){return g instanceof this};function J(j){e=e||Ht();var g=this instanceof e;if(!g&&!H.call(J,this))return new J(j);this._writableState=new V(j,this,g),this.writable=!0,j&&(typeof j.write=="function"&&(this._write=j.write),typeof j.writev=="function"&&(this._writev=j.writev),typeof j.destroy=="function"&&(this._destroy=j.destroy),typeof j.final=="function"&&(this._final=j.final)),a.call(this)}J.prototype.pipe=function(){D(this,new v)};function I(j,g){var m=new S;D(j,m),ve.nextTick(g,m)}function re(j,g,m,M){var F;return m===null?F=new d:typeof m!="string"&&!g.objectMode&&(F=new _("chunk",["string","Buffer"],m)),F?(D(j,F),ve.nextTick(M,F),!1):!0}J.prototype.write=function(j,g,m){var M=this._writableState,F=!1,k=!M.objectMode&&i(j);return k&&!l.isBuffer(j)&&(j=o(j)),typeof g=="function"&&(m=g,g=null),k?g="buffer":g||(g=M.defaultEncoding),typeof m!="function"&&(m=C),M.ending?I(this,m):(k||re(this,M,j,m))&&(M.pendingcb++,F=L(this,M,k,j,g,m)),F},J.prototype.cork=function(){this._writableState.corked++},J.prototype.uncork=function(){var j=this._writableState;j.corked&&(j.corked--,!j.writing&&!j.corked&&!j.bufferProcessing&&j.bufferedRequest&&K(this,j))},J.prototype.setDefaultEncoding=function(g){if(typeof g=="string"&&(g=g.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((g+"").toLowerCase())>-1))throw new R(g);return this._writableState.defaultEncoding=g,this},Object.defineProperty(J.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function ue(j,g,m){return!j.objectMode&&j.decodeStrings!==!1&&typeof g=="string"&&(g=l.from(g,m)),g}Object.defineProperty(J.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function L(j,g,m,M,F,k){if(!m){var O=ue(g,M,F);M!==O&&(m=!0,F="buffer",M=O)}var Q=g.objectMode?1:M.length;g.length+=Q;var h=g.length>5===6?2:d>>4===14?3:d>>3===30?4:d>>6===2?-1:-2}function o(d,S,R){var D=S.length-1;if(D=0?(C>0&&(d.lastNeed=C-1),C):--D=0?(C>0&&(d.lastNeed=C-2),C):--D=0?(C>0&&(C===2?C=0:d.lastNeed=C-3),C):0))}function i(d,S,R){if((S[0]&192)!==128)return d.lastNeed=0,"�";if(d.lastNeed>1&&S.length>1){if((S[1]&192)!==128)return d.lastNeed=1,"�";if(d.lastNeed>2&&S.length>2&&(S[2]&192)!==128)return d.lastNeed=2,"�"}}function c(d){var S=this.lastTotal-this.lastNeed,R=i(this,d);if(R!==void 0)return R;if(this.lastNeed<=d.length)return d.copy(this.lastChar,S,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);d.copy(this.lastChar,S,0,d.length),this.lastNeed-=d.length}function w(d,S){var R=o(this,d,S);if(!this.lastNeed)return d.toString("utf8",S);this.lastTotal=R;var D=d.length-(R-this.lastNeed);return d.copy(this.lastChar,0,D),d.toString("utf8",S,D)}function y(d){var S=d&&d.length?this.write(d):"";return this.lastNeed?S+"�":S}function x(d,S){if((d.length-S)%2===0){var R=d.toString("utf16le",S);if(R){var D=R.charCodeAt(R.length-1);if(D>=55296&&D<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=d[d.length-2],this.lastChar[1]=d[d.length-1],R.slice(0,-1)}return R}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=d[d.length-1],d.toString("utf16le",S,d.length-1)}function _(d){var S=d&&d.length?this.write(d):"";if(this.lastNeed){var R=this.lastTotal-this.lastNeed;return S+this.lastChar.toString("utf16le",0,R)}return S}function p(d,S){var R=(d.length-S)%3;return R===0?d.toString("base64",S):(this.lastNeed=3-R,this.lastTotal=3,R===1?this.lastChar[0]=d[d.length-1]:(this.lastChar[0]=d[d.length-2],this.lastChar[1]=d[d.length-1]),d.toString("base64",S,d.length-R))}function T(d){var S=d&&d.length?this.write(d):"";return this.lastNeed?S+this.lastChar.toString("base64",0,3-this.lastNeed):S}function v(d){return d.toString(this.encoding)}function E(d){return d&&d.length?this.write(d):""}return _n}var En,ts;function Qn(){if(ts)return En;ts=1;var t=Yt().codes.ERR_STREAM_PREMATURE_CLOSE;function e(u){var o=!1;return function(){if(!o){o=!0;for(var i=arguments.length,c=new Array(i),w=0;w0)if(typeof O!="string"&&!b.objectMode&&Object.getPrototypeOf(O)!==a.prototype&&(O=u(O)),h)b.endEmitted?C(k,new d):ue(k,b,O,!0);else if(b.ended)C(k,new v);else{if(b.destroyed)return!1;b.reading=!1,b.decoder&&!Q?(O=b.decoder.write(O),b.objectMode||O.length!==0?ue(k,b,O,!1):K(k,b)):ue(k,b,O,!1)}else h||(b.reading=!1,K(k,b))}return!b.ended&&(b.length=q?k=q:(k--,k|=k>>>1,k|=k>>>2,k|=k>>>4,k|=k>>>8,k|=k>>>16,k++),k}function Z(k,O){return k<=0||O.length===0&&O.ended?0:O.objectMode?1:k!==k?O.flowing&&O.length?O.buffer.head.data.length:O.length:(k>O.highWaterMark&&(O.highWaterMark=A(k)),k<=O.length?k:O.ended?O.length:(O.needReadable=!0,0))}I.prototype.read=function(k){c("read",k),k=parseInt(k,10);var O=this._readableState,Q=k;if(k!==0&&(O.emittedReadable=!1),k===0&&O.needReadable&&((O.highWaterMark!==0?O.length>=O.highWaterMark:O.length>0)||O.ended))return c("read: emitReadable",O.length,O.ended),O.length===0&&O.ended?m(this):Y(this),null;if(k=Z(k,O),k===0&&O.ended)return O.length===0&&m(this),null;var h=O.needReadable;c("need readable",h),(O.length===0||O.length-k0?X=g(k,O):X=null,X===null?(O.needReadable=O.length<=O.highWaterMark,k=0):(O.length-=k,O.awaitDrain=0),O.length===0&&(O.ended||(O.needReadable=!0),Q!==k&&O.ended&&m(this)),X!==null&&this.emit("data",X),X};function le(k,O){if(c("onEofChunk"),!O.ended){if(O.decoder){var Q=O.decoder.end();Q&&Q.length&&(O.buffer.push(Q),O.length+=O.objectMode?1:Q.length)}O.ended=!0,O.sync?Y(k):(O.needReadable=!1,O.emittedReadable||(O.emittedReadable=!0,de(k)))}}function Y(k){var O=k._readableState;c("emitReadable",O.needReadable,O.emittedReadable),O.needReadable=!1,O.emittedReadable||(c("emitReadable",O.flowing),O.emittedReadable=!0,ve.nextTick(de,k))}function de(k){var O=k._readableState;c("emitReadable_",O.destroyed,O.length,O.ended),!O.destroyed&&(O.length||O.ended)&&(k.emit("readable"),O.emittedReadable=!1),O.needReadable=!O.flowing&&!O.ended&&O.length<=O.highWaterMark,j(k)}function K(k,O){O.readingMore||(O.readingMore=!0,ve.nextTick(ce,k,O))}function ce(k,O){for(;!O.reading&&!O.ended&&(O.length1&&F(h.pipes,k)!==-1)&&!P&&(c("false write response, pause",h.awaitDrain),h.awaitDrain++),Q.pause())}function te(pe){c("onerror",pe),fe(),k.removeListener("error",te),e(k,"error")===0&&C(k,pe)}H(k,"error",te);function ae(){k.removeListener("finish",ne),fe()}k.once("close",ae);function ne(){c("onfinish"),k.removeListener("close",ae),fe()}k.once("finish",ne);function fe(){c("unpipe"),Q.unpipe(k)}return k.emit("pipe",Q),h.flowing||(c("pipe resume"),Q.resume()),k};function G(k){return function(){var Q=k._readableState;c("pipeOnDrain",Q.awaitDrain),Q.awaitDrain&&Q.awaitDrain--,Q.awaitDrain===0&&e(k,"data")&&(Q.flowing=!0,j(k))}}I.prototype.unpipe=function(k){var O=this._readableState,Q={hasUnpiped:!1};if(O.pipesCount===0)return this;if(O.pipesCount===1)return k&&k!==O.pipes?this:(k||(k=O.pipes),O.pipes=null,O.pipesCount=0,O.flowing=!1,k&&k.emit("unpipe",this,Q),this);if(!k){var h=O.pipes,X=O.pipesCount;O.pipes=null,O.pipesCount=0,O.flowing=!1;for(var b=0;b0,h.flowing!==!1&&this.resume()):k==="readable"&&!h.endEmitted&&!h.readableListening&&(h.readableListening=h.needReadable=!0,h.flowing=!1,h.emittedReadable=!1,c("on readable",h.length,h.reading),h.length?Y(this):h.reading||ve.nextTick(W,this)),Q},I.prototype.addListener=I.prototype.on,I.prototype.removeListener=function(k,O){var Q=r.prototype.removeListener.call(this,k,O);return k==="readable"&&ve.nextTick(N,this),Q},I.prototype.removeAllListeners=function(k){var O=r.prototype.removeAllListeners.apply(this,arguments);return(k==="readable"||k===void 0)&&ve.nextTick(N,this),O};function N(k){var O=k._readableState;O.readableListening=k.listenerCount("readable")>0,O.resumeScheduled&&!O.paused?O.flowing=!0:k.listenerCount("data")>0&&k.resume()}function W(k){c("readable nexttick read 0"),k.read(0)}I.prototype.resume=function(){var k=this._readableState;return k.flowing||(c("resume"),k.flowing=!k.readableListening,z(this,k)),k.paused=!1,this};function z(k,O){O.resumeScheduled||(O.resumeScheduled=!0,ve.nextTick($,k,O))}function $(k,O){c("resume",O.reading),O.reading||k.read(0),O.resumeScheduled=!1,k.emit("resume"),j(k),O.flowing&&!O.reading&&k.read(0)}I.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function j(k){var O=k._readableState;for(c("flow",O.flowing);O.flowing&&k.read()!==null;);}I.prototype.wrap=function(k){var O=this,Q=this._readableState,h=!1;k.on("end",function(){if(c("wrapped end"),Q.decoder&&!Q.ended){var n=Q.decoder.end();n&&n.length&&O.push(n)}O.push(null)}),k.on("data",function(n){if(c("wrapped data"),Q.decoder&&(n=Q.decoder.write(n)),!(Q.objectMode&&n==null)&&!(!Q.objectMode&&(!n||!n.length))){var s=O.push(n);s||(h=!0,k.pause())}});for(var X in k)this[X]===void 0&&typeof k[X]=="function"&&(this[X]=function(s){return function(){return k[s].apply(k,arguments)}}(X));for(var b=0;b=O.length?(O.decoder?Q=O.buffer.join(""):O.buffer.length===1?Q=O.buffer.first():Q=O.buffer.concat(O.length),O.buffer.clear()):Q=O.buffer.consume(k,O.decoder),Q}function m(k){var O=k._readableState;c("endReadable",O.endEmitted),O.endEmitted||(O.ended=!0,ve.nextTick(M,O,k))}function M(k,O){if(c("endReadableNT",k.endEmitted,k.length),!k.endEmitted&&k.length===0&&(k.endEmitted=!0,O.readable=!1,O.emit("end"),k.autoDestroy)){var Q=O._writableState;(!Q||Q.autoDestroy&&Q.finished)&&O.destroy()}}typeof Symbol=="function"&&(I.from=function(k,O){return D===void 0&&(D=Uo()),D(I,k,O)});function F(k,O){for(var Q=0,h=k.length;Q0;return i(S,D,C,function(V){E||(E=V),V&&d.forEach(c),!D&&(d.forEach(c),v(E))})});return p.reduce(w)}return In=x,In}var Jn=rt,$n=qn.EventEmitter,zo=Ot;zo(rt,$n);rt.Readable=ea();rt.Writable=$s();rt.Duplex=Ht();rt.Transform=ta();rt.PassThrough=jo();rt.finished=Qn();rt.pipeline=Wo();rt.Stream=rt;function rt(){$n.call(this)}rt.prototype.pipe=function(t,e){var r=this;function a(y){t.writable&&t.write(y)===!1&&r.pause&&r.pause()}r.on("data",a);function l(){r.readable&&r.resume&&r.resume()}t.on("drain",l),!t._isStdio&&(!e||e.end!==!1)&&(r.on("end",o),r.on("close",i));var u=!1;function o(){u||(u=!0,t.end())}function i(){u||(u=!0,typeof t.destroy=="function"&&t.destroy())}function c(y){if(w(),$n.listenerCount(this,"error")===0)throw y}r.on("error",c),t.on("error",c);function w(){r.removeListener("data",a),t.removeListener("drain",l),r.removeListener("end",o),r.removeListener("close",i),r.removeListener("error",c),t.removeListener("error",c),r.removeListener("end",w),r.removeListener("close",w),t.removeListener("close",w)}return r.on("end",w),r.on("close",w),t.on("close",w),t.emit("pipe",r),t};(function(t){(function(e){e.parser=function(g,m){return new a(g,m)},e.SAXParser=a,e.SAXStream=y,e.createStream=w,e.MAX_BUFFER_LENGTH=64*1024;var r=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];e.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function a(g,m){if(!(this instanceof a))return new a(g,m);var M=this;u(M),M.q=M.c="",M.bufferCheckPosition=e.MAX_BUFFER_LENGTH,M.opt=m||{},M.opt.lowercase=M.opt.lowercase||M.opt.lowercasetags,M.looseCase=M.opt.lowercase?"toLowerCase":"toUpperCase",M.tags=[],M.closed=M.closedRoot=M.sawRoot=!1,M.tag=M.error=null,M.strict=!!g,M.noscript=!!(g||M.opt.noscript),M.state=I.BEGIN,M.strictEntities=M.opt.strictEntities,M.ENTITIES=M.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES),M.attribList=[],M.opt.xmlns&&(M.ns=Object.create(v)),M.trackPosition=M.opt.position!==!1,M.trackPosition&&(M.position=M.line=M.column=0),ue(M,"onready")}Object.create||(Object.create=function(g){function m(){}m.prototype=g;var M=new m;return M}),Object.keys||(Object.keys=function(g){var m=[];for(var M in g)g.hasOwnProperty(M)&&m.push(M);return m});function l(g){for(var m=Math.max(e.MAX_BUFFER_LENGTH,10),M=0,F=0,k=r.length;Fm)switch(r[F]){case"textNode":q(g);break;case"cdata":L(g,"oncdata",g.cdata),g.cdata="";break;case"script":L(g,"onscript",g.script),g.script="";break;default:Z(g,"Max buffer length exceeded: "+r[F])}M=Math.max(M,O)}var Q=e.MAX_BUFFER_LENGTH-M;g.bufferCheckPosition=Q+g.position}function u(g){for(var m=0,M=r.length;m"||D(g)}function H(g,m){return g.test(m)}function J(g,m){return!H(g,m)}var I=0;e.STATE={BEGIN:I++,BEGIN_WHITESPACE:I++,TEXT:I++,TEXT_ENTITY:I++,OPEN_WAKA:I++,SGML_DECL:I++,SGML_DECL_QUOTED:I++,DOCTYPE:I++,DOCTYPE_QUOTED:I++,DOCTYPE_DTD:I++,DOCTYPE_DTD_QUOTED:I++,COMMENT_STARTING:I++,COMMENT:I++,COMMENT_ENDING:I++,COMMENT_ENDED:I++,CDATA:I++,CDATA_ENDING:I++,CDATA_ENDING_2:I++,PROC_INST:I++,PROC_INST_BODY:I++,PROC_INST_ENDING:I++,OPEN_TAG:I++,OPEN_TAG_SLASH:I++,ATTRIB:I++,ATTRIB_NAME:I++,ATTRIB_NAME_SAW_WHITE:I++,ATTRIB_VALUE:I++,ATTRIB_VALUE_QUOTED:I++,ATTRIB_VALUE_CLOSED:I++,ATTRIB_VALUE_UNQUOTED:I++,ATTRIB_VALUE_ENTITY_Q:I++,ATTRIB_VALUE_ENTITY_U:I++,CLOSE_TAG:I++,CLOSE_TAG_SAW_WHITE:I++,SCRIPT:I++,SCRIPT_ENDING:I++},e.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},e.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(e.ENTITIES).forEach(function(g){var m=e.ENTITIES[g],M=typeof m=="number"?String.fromCharCode(m):m;e.ENTITIES[g]=M});for(var re in e.STATE)e.STATE[e.STATE[re]]=re;I=e.STATE;function ue(g,m,M){g[m]&&g[m](M)}function L(g,m,M){g.textNode&&q(g),ue(g,m,M)}function q(g){g.textNode=A(g.opt,g.textNode),g.textNode&&ue(g,"ontext",g.textNode),g.textNode=""}function A(g,m){return g.trim&&(m=m.trim()),g.normalize&&(m=m.replace(/\s+/g," ")),m}function Z(g,m){return q(g),g.trackPosition&&(m+=` -Line: `+g.line+` -Column: `+g.column+` -Char: `+g.c),m=new Error(m),g.error=m,ue(g,"onerror",m),g}function le(g){return g.sawRoot&&!g.closedRoot&&Y(g,"Unclosed root tag"),g.state!==I.BEGIN&&g.state!==I.BEGIN_WHITESPACE&&g.state!==I.TEXT&&Z(g,"Unexpected end"),q(g),g.c="",g.closed=!0,ue(g,"onend"),a.call(g,g.strict,g.opt),g}function Y(g,m){if(typeof g!="object"||!(g instanceof a))throw new Error("bad call to strictFail");g.strict&&Z(g,m)}function de(g){g.strict||(g.tagName=g.tagName[g.looseCase]());var m=g.tags[g.tags.length-1]||g,M=g.tag={name:g.tagName,attributes:{}};g.opt.xmlns&&(M.ns=m.ns),g.attribList.length=0,L(g,"onopentagstart",M)}function K(g,m){var M=g.indexOf(":"),F=M<0?["",g]:g.split(":"),k=F[0],O=F[1];return m&&g==="xmlns"&&(k="xmlns",O=""),{prefix:k,local:O}}function ce(g){if(g.strict||(g.attribName=g.attribName[g.looseCase]()),g.attribList.indexOf(g.attribName)!==-1||g.tag.attributes.hasOwnProperty(g.attribName)){g.attribName=g.attribValue="";return}if(g.opt.xmlns){var m=K(g.attribName,!0),M=m.prefix,F=m.local;if(M==="xmlns")if(F==="xml"&&g.attribValue!==p)Y(g,"xml: prefix must be bound to "+p+` -Actual: `+g.attribValue);else if(F==="xmlns"&&g.attribValue!==T)Y(g,"xmlns: prefix must be bound to "+T+` -Actual: `+g.attribValue);else{var k=g.tag,O=g.tags[g.tags.length-1]||g;k.ns===O.ns&&(k.ns=Object.create(O.ns)),k.ns[F]=g.attribValue}g.attribList.push([g.attribName,g.attribValue])}else g.tag.attributes[g.attribName]=g.attribValue,L(g,"onattribute",{name:g.attribName,value:g.attribValue});g.attribName=g.attribValue=""}function G(g,m){if(g.opt.xmlns){var M=g.tag,F=K(g.tagName);M.prefix=F.prefix,M.local=F.local,M.uri=M.ns[F.prefix]||"",M.prefix&&!M.uri&&(Y(g,"Unbound namespace prefix: "+JSON.stringify(g.tagName)),M.uri=F.prefix);var k=g.tags[g.tags.length-1]||g;M.ns&&k.ns!==M.ns&&Object.keys(M.ns).forEach(function(B){L(g,"onopennamespace",{prefix:B,uri:M.ns[B]})});for(var O=0,Q=g.attribList.length;O",g.tagName="",g.state=I.SCRIPT;return}L(g,"onscript",g.script),g.script=""}var m=g.tags.length,M=g.tagName;g.strict||(M=M[g.looseCase]());for(var F=M;m--;){var k=g.tags[m];if(k.name!==F)Y(g,"Unexpected close tag");else break}if(m<0){Y(g,"Unmatched closing tag: "+g.tagName),g.textNode+="",g.state=I.TEXT;return}g.tagName=M;for(var O=g.tags.length;O-- >m;){var Q=g.tag=g.tags.pop();g.tagName=g.tag.name,L(g,"onclosetag",g.tagName);var h={};for(var X in Q.ns)h[X]=Q.ns[X];var b=g.tags[g.tags.length-1]||g;g.opt.xmlns&&Q.ns!==b.ns&&Object.keys(Q.ns).forEach(function(n){var s=Q.ns[n];L(g,"onclosenamespace",{prefix:n,uri:s})})}m===0&&(g.closedRoot=!0),g.tagName=g.attribValue=g.attribName="",g.attribList.length=0,g.state=I.TEXT}function W(g){var m=g.entity,M=m.toLowerCase(),F,k="";return g.ENTITIES[m]?g.ENTITIES[m]:g.ENTITIES[M]?g.ENTITIES[M]:(m=M,m.charAt(0)==="#"&&(m.charAt(1)==="x"?(m=m.slice(2),F=parseInt(m,16),k=F.toString(16)):(m=m.slice(1),F=parseInt(m,10),k=F.toString(10))),m=m.replace(/^0+/,""),isNaN(F)||k.toLowerCase()!==m?(Y(g,"Invalid character entity"),"&"+g.entity+";"):String.fromCodePoint(F))}function z(g,m){m==="<"?(g.state=I.OPEN_WAKA,g.startTagPosition=g.position):D(m)||(Y(g,"Non-whitespace before first tag."),g.textNode=m,g.state=I.TEXT)}function $(g,m){var M="";return m"?(L(m,"onsgmldeclaration",m.sgmlDecl),m.sgmlDecl="",m.state=I.TEXT):(C(F)&&(m.state=I.SGML_DECL_QUOTED),m.sgmlDecl+=F);continue;case I.SGML_DECL_QUOTED:F===m.q&&(m.state=I.SGML_DECL,m.q=""),m.sgmlDecl+=F;continue;case I.DOCTYPE:F===">"?(m.state=I.TEXT,L(m,"ondoctype",m.doctype),m.doctype=!0):(m.doctype+=F,F==="["?m.state=I.DOCTYPE_DTD:C(F)&&(m.state=I.DOCTYPE_QUOTED,m.q=F));continue;case I.DOCTYPE_QUOTED:m.doctype+=F,F===m.q&&(m.q="",m.state=I.DOCTYPE);continue;case I.DOCTYPE_DTD:m.doctype+=F,F==="]"?m.state=I.DOCTYPE:C(F)&&(m.state=I.DOCTYPE_DTD_QUOTED,m.q=F);continue;case I.DOCTYPE_DTD_QUOTED:m.doctype+=F,F===m.q&&(m.state=I.DOCTYPE_DTD,m.q="");continue;case I.COMMENT:F==="-"?m.state=I.COMMENT_ENDING:m.comment+=F;continue;case I.COMMENT_ENDING:F==="-"?(m.state=I.COMMENT_ENDED,m.comment=A(m.opt,m.comment),m.comment&&L(m,"oncomment",m.comment),m.comment=""):(m.comment+="-"+F,m.state=I.COMMENT);continue;case I.COMMENT_ENDED:F!==">"?(Y(m,"Malformed comment"),m.comment+="--"+F,m.state=I.COMMENT):m.state=I.TEXT;continue;case I.CDATA:F==="]"?m.state=I.CDATA_ENDING:m.cdata+=F;continue;case I.CDATA_ENDING:F==="]"?m.state=I.CDATA_ENDING_2:(m.cdata+="]"+F,m.state=I.CDATA);continue;case I.CDATA_ENDING_2:F===">"?(m.cdata&&L(m,"oncdata",m.cdata),L(m,"onclosecdata"),m.cdata="",m.state=I.TEXT):F==="]"?m.cdata+="]":(m.cdata+="]]"+F,m.state=I.CDATA);continue;case I.PROC_INST:F==="?"?m.state=I.PROC_INST_ENDING:D(F)?m.state=I.PROC_INST_BODY:m.procInstName+=F;continue;case I.PROC_INST_BODY:if(!m.procInstBody&&D(F))continue;F==="?"?m.state=I.PROC_INST_ENDING:m.procInstBody+=F;continue;case I.PROC_INST_ENDING:F===">"?(L(m,"onprocessinginstruction",{name:m.procInstName,body:m.procInstBody}),m.procInstName=m.procInstBody="",m.state=I.TEXT):(m.procInstBody+="?"+F,m.state=I.PROC_INST_BODY);continue;case I.OPEN_TAG:H(d,F)?m.tagName+=F:(de(m),F===">"?G(m):F==="/"?m.state=I.OPEN_TAG_SLASH:(D(F)||Y(m,"Invalid character in tag name"),m.state=I.ATTRIB));continue;case I.OPEN_TAG_SLASH:F===">"?(G(m,!0),N(m)):(Y(m,"Forward-slash in opening tag not followed by >"),m.state=I.ATTRIB);continue;case I.ATTRIB:if(D(F))continue;F===">"?G(m):F==="/"?m.state=I.OPEN_TAG_SLASH:H(E,F)?(m.attribName=F,m.attribValue="",m.state=I.ATTRIB_NAME):Y(m,"Invalid attribute name");continue;case I.ATTRIB_NAME:F==="="?m.state=I.ATTRIB_VALUE:F===">"?(Y(m,"Attribute without value"),m.attribValue=m.attribName,ce(m),G(m)):D(F)?m.state=I.ATTRIB_NAME_SAW_WHITE:H(d,F)?m.attribName+=F:Y(m,"Invalid attribute name");continue;case I.ATTRIB_NAME_SAW_WHITE:if(F==="=")m.state=I.ATTRIB_VALUE;else{if(D(F))continue;Y(m,"Attribute without value"),m.tag.attributes[m.attribName]="",m.attribValue="",L(m,"onattribute",{name:m.attribName,value:""}),m.attribName="",F===">"?G(m):H(E,F)?(m.attribName=F,m.state=I.ATTRIB_NAME):(Y(m,"Invalid attribute name"),m.state=I.ATTRIB)}continue;case I.ATTRIB_VALUE:if(D(F))continue;C(F)?(m.q=F,m.state=I.ATTRIB_VALUE_QUOTED):(Y(m,"Unquoted attribute value"),m.state=I.ATTRIB_VALUE_UNQUOTED,m.attribValue=F);continue;case I.ATTRIB_VALUE_QUOTED:if(F!==m.q){F==="&"?m.state=I.ATTRIB_VALUE_ENTITY_Q:m.attribValue+=F;continue}ce(m),m.q="",m.state=I.ATTRIB_VALUE_CLOSED;continue;case I.ATTRIB_VALUE_CLOSED:D(F)?m.state=I.ATTRIB:F===">"?G(m):F==="/"?m.state=I.OPEN_TAG_SLASH:H(E,F)?(Y(m,"No whitespace between attributes"),m.attribName=F,m.attribValue="",m.state=I.ATTRIB_NAME):Y(m,"Invalid attribute name");continue;case I.ATTRIB_VALUE_UNQUOTED:if(!V(F)){F==="&"?m.state=I.ATTRIB_VALUE_ENTITY_U:m.attribValue+=F;continue}ce(m),F===">"?G(m):m.state=I.ATTRIB;continue;case I.CLOSE_TAG:if(m.tagName)F===">"?N(m):H(d,F)?m.tagName+=F:m.script?(m.script+=""?N(m):Y(m,"Invalid characters in closing tag");continue;case I.TEXT_ENTITY:case I.ATTRIB_VALUE_ENTITY_Q:case I.ATTRIB_VALUE_ENTITY_U:var Q,h;switch(m.state){case I.TEXT_ENTITY:Q=I.TEXT,h="textNode";break;case I.ATTRIB_VALUE_ENTITY_Q:Q=I.ATTRIB_VALUE_QUOTED,h="attribValue";break;case I.ATTRIB_VALUE_ENTITY_U:Q=I.ATTRIB_VALUE_UNQUOTED,h="attribValue";break}F===";"?(m[h]+=W(m),m.entity="",m.state=Q):H(m.entity.length?R:S,F)?m.entity+=F:(Y(m,"Invalid character in entity name"),m[h]+="&"+m.entity+F,m.entity="",m.state=Q);continue;default:throw new Error(m,"Unknown state: "+m.state)}return m.position>=m.bufferCheckPosition&&l(m),m}/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */String.fromCodePoint||function(){var g=String.fromCharCode,m=Math.floor,M=function(){var F=16384,k=[],O,Q,h=-1,X=arguments.length;if(!X)return"";for(var b="";++h1114111||m(n)!==n)throw RangeError("Invalid code point: "+n);n<=65535?k.push(n):(n-=65536,O=(n>>10)+55296,Q=n%1024+56320,k.push(O,Q)),(h+1===X||k.length>F)&&(b+=g.apply(null,k),k.length=0)}return b};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:M,configurable:!0,writable:!0}):String.fromCodePoint=M}()})(t)})(Os);var ei={isArray:function(t){return Array.isArray?Array.isArray(t):Object.prototype.toString.call(t)==="[object Array]"}},Ho=ei.isArray,ti={copyOptions:function(t){var e,r={};for(e in t)t.hasOwnProperty(e)&&(r[e]=t[e]);return r},ensureFlagExists:function(t,e){(!(t in e)||typeof e[t]!="boolean")&&(e[t]=!1)},ensureSpacesExists:function(t){(!("spaces"in t)||typeof t.spaces!="number"&&typeof t.spaces!="string")&&(t.spaces=0)},ensureAlwaysArrayExists:function(t){(!("alwaysArray"in t)||typeof t.alwaysArray!="boolean"&&!Ho(t.alwaysArray))&&(t.alwaysArray=!1)},ensureKeyExists:function(t,e){(!(t+"Key"in e)||typeof e[t+"Key"]!="string")&&(e[t+"Key"]=e.compact?"_"+t:t)},checkFnExists:function(t,e){return t+"Fn"in e}},Go=Os,Te=ti,jt=ei.isArray,ee,we;function Ko(t){return ee=Te.copyOptions(t),Te.ensureFlagExists("ignoreDeclaration",ee),Te.ensureFlagExists("ignoreInstruction",ee),Te.ensureFlagExists("ignoreAttributes",ee),Te.ensureFlagExists("ignoreText",ee),Te.ensureFlagExists("ignoreComment",ee),Te.ensureFlagExists("ignoreCdata",ee),Te.ensureFlagExists("ignoreDoctype",ee),Te.ensureFlagExists("compact",ee),Te.ensureFlagExists("alwaysChildren",ee),Te.ensureFlagExists("addParent",ee),Te.ensureFlagExists("trim",ee),Te.ensureFlagExists("nativeType",ee),Te.ensureFlagExists("nativeTypeAttributes",ee),Te.ensureFlagExists("sanitize",ee),Te.ensureFlagExists("instructionHasAttributes",ee),Te.ensureFlagExists("captureSpacesBetweenElements",ee),Te.ensureAlwaysArrayExists(ee),Te.ensureKeyExists("declaration",ee),Te.ensureKeyExists("instruction",ee),Te.ensureKeyExists("attributes",ee),Te.ensureKeyExists("text",ee),Te.ensureKeyExists("comment",ee),Te.ensureKeyExists("cdata",ee),Te.ensureKeyExists("doctype",ee),Te.ensureKeyExists("type",ee),Te.ensureKeyExists("name",ee),Te.ensureKeyExists("elements",ee),Te.ensureKeyExists("parent",ee),ee}function ra(t){var e=Number(t);if(!isNaN(e))return e;var r=t.toLowerCase();return r==="true"?!0:r==="false"?!1:t}function or(t,e){var r;if(ee.compact){if(!we[ee[t+"Key"]]&&(jt(ee.alwaysArray)?ee.alwaysArray.indexOf(ee[t+"Key"])!==-1:ee.alwaysArray)&&(we[ee[t+"Key"]]=[]),we[ee[t+"Key"]]&&!jt(we[ee[t+"Key"]])&&(we[ee[t+"Key"]]=[we[ee[t+"Key"]]]),t+"Fn"in ee&&typeof e=="string"&&(e=ee[t+"Fn"](e,we)),t==="instruction"&&("instructionFn"in ee||"instructionNameFn"in ee)){for(r in e)if(e.hasOwnProperty(r))if("instructionFn"in ee)e[r]=ee.instructionFn(e[r],r,we);else{var a=e[r];delete e[r],e[ee.instructionNameFn(r,a,we)]=a}}jt(we[ee[t+"Key"]])?we[ee[t+"Key"]].push(e):we[ee[t+"Key"]]=e}else{we[ee.elementsKey]||(we[ee.elementsKey]=[]);var l={};if(l[ee.typeKey]=t,t==="instruction"){for(r in e)if(e.hasOwnProperty(r))break;l[ee.nameKey]="instructionNameFn"in ee?ee.instructionNameFn(r,e,we):r,ee.instructionHasAttributes?(l[ee.attributesKey]=e[r][ee.attributesKey],"instructionFn"in ee&&(l[ee.attributesKey]=ee.instructionFn(l[ee.attributesKey],r,we))):("instructionFn"in ee&&(e[r]=ee.instructionFn(e[r],r,we)),l[ee.instructionKey]=e[r])}else t+"Fn"in ee&&(e=ee[t+"Fn"](e,we)),l[ee[t+"Key"]]=e;ee.addParent&&(l[ee.parentKey]=we),we[ee.elementsKey].push(l)}}function na(t){if("attributesFn"in ee&&t&&(t=ee.attributesFn(t,we)),(ee.trim||"attributeValueFn"in ee||"attributeNameFn"in ee||ee.nativeTypeAttributes)&&t){var e;for(e in t)if(t.hasOwnProperty(e)&&(ee.trim&&(t[e]=t[e].trim()),ee.nativeTypeAttributes&&(t[e]=ra(t[e])),"attributeValueFn"in ee&&(t[e]=ee.attributeValueFn(t[e],e,we)),"attributeNameFn"in ee)){var r=t[e];delete t[e],t[ee.attributeNameFn(e,t[e],we)]=r}}return t}function Vo(t){var e={};if(t.body&&(t.name.toLowerCase()==="xml"||ee.instructionHasAttributes)){for(var r=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g,a;(a=r.exec(t.body))!==null;)e[a[1]]=a[2]||a[3]||a[4];e=na(e)}if(t.name.toLowerCase()==="xml"){if(ee.ignoreDeclaration)return;we[ee.declarationKey]={},Object.keys(e).length&&(we[ee.declarationKey][ee.attributesKey]=e),ee.addParent&&(we[ee.declarationKey][ee.parentKey]=we)}else{if(ee.ignoreInstruction)return;ee.trim&&(t.body=t.body.trim());var l={};ee.instructionHasAttributes&&Object.keys(e).length?(l[t.name]={},l[t.name][ee.attributesKey]=e):l[t.name]=t.body,or("instruction",l)}}function qo(t,e){var r;if(typeof t=="object"&&(e=t.attributes,t=t.name),e=na(e),"elementNameFn"in ee&&(t=ee.elementNameFn(t,we)),ee.compact){if(r={},!ee.ignoreAttributes&&e&&Object.keys(e).length){r[ee.attributesKey]={};var a;for(a in e)e.hasOwnProperty(a)&&(r[ee.attributesKey][a]=e[a])}!(t in we)&&(jt(ee.alwaysArray)?ee.alwaysArray.indexOf(t)!==-1:ee.alwaysArray)&&(we[t]=[]),we[t]&&!jt(we[t])&&(we[t]=[we[t]]),jt(we[t])?we[t].push(r):we[t]=r}else we[ee.elementsKey]||(we[ee.elementsKey]=[]),r={},r[ee.typeKey]="element",r[ee.nameKey]=t,!ee.ignoreAttributes&&e&&Object.keys(e).length&&(r[ee.attributesKey]=e),ee.alwaysChildren&&(r[ee.elementsKey]=[]),we[ee.elementsKey].push(r);r[ee.parentKey]=we,we=r}function Xo(t){ee.ignoreText||!t.trim()&&!ee.captureSpacesBetweenElements||(ee.trim&&(t=t.trim()),ee.nativeType&&(t=ra(t)),ee.sanitize&&(t=t.replace(/&/g,"&").replace(//g,">")),or("text",t))}function Yo(t){ee.ignoreComment||(ee.trim&&(t=t.trim()),or("comment",t))}function Zo(t){var e=we[ee.parentKey];ee.addParent||delete we[ee.parentKey],we=e}function Qo(t){ee.ignoreCdata||(ee.trim&&(t=t.trim()),or("cdata",t))}function Jo(t){ee.ignoreDoctype||(t=t.replace(/^ /,""),ee.trim&&(t=t.trim()),or("doctype",t))}function $o(t){t.note=t}var ia=function(t,e){var r=Go.parser(!0,{}),a={};if(we=a,ee=Ko(e),r.opt={strictEntities:!0},r.onopentag=qo,r.ontext=Xo,r.oncomment=Yo,r.onclosetag=Zo,r.onerror=$o,r.oncdata=Qo,r.ondoctype=Jo,r.onprocessinginstruction=Vo,r.write(t).close(),a[ee.elementsKey]){var l=a[ee.elementsKey];delete a[ee.elementsKey],a[ee.elementsKey]=l,delete a.text}return a},us=ti,eu=ia;function tu(t){var e=us.copyOptions(t);return us.ensureSpacesExists(e),e}var ru=function(t,e){var r,a,l,u;return r=tu(e),a=eu(t,r),u="compact"in r&&r.compact?"_parent":"parent","addParent"in r&&r.addParent?l=JSON.stringify(a,function(o,i){return o===u?"_":i},r.spaces):l=JSON.stringify(a,null,r.spaces),l.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")},Re=ti,nu=ei.isArray,Ue,je;function iu(t){var e=Re.copyOptions(t);return Re.ensureFlagExists("ignoreDeclaration",e),Re.ensureFlagExists("ignoreInstruction",e),Re.ensureFlagExists("ignoreAttributes",e),Re.ensureFlagExists("ignoreText",e),Re.ensureFlagExists("ignoreComment",e),Re.ensureFlagExists("ignoreCdata",e),Re.ensureFlagExists("ignoreDoctype",e),Re.ensureFlagExists("compact",e),Re.ensureFlagExists("indentText",e),Re.ensureFlagExists("indentCdata",e),Re.ensureFlagExists("indentAttributes",e),Re.ensureFlagExists("indentInstruction",e),Re.ensureFlagExists("fullTagEmptyElement",e),Re.ensureFlagExists("noQuotesForNativeAttributes",e),Re.ensureSpacesExists(e),typeof e.spaces=="number"&&(e.spaces=Array(e.spaces+1).join(" ")),Re.ensureKeyExists("declaration",e),Re.ensureKeyExists("instruction",e),Re.ensureKeyExists("attributes",e),Re.ensureKeyExists("text",e),Re.ensureKeyExists("comment",e),Re.ensureKeyExists("cdata",e),Re.ensureKeyExists("doctype",e),Re.ensureKeyExists("type",e),Re.ensureKeyExists("name",e),Re.ensureKeyExists("elements",e),e}function ft(t,e,r){return(!r&&t.spaces?` -`:"")+Array(e+1).join(t.spaces)}function Cr(t,e,r){if(e.ignoreAttributes)return"";"attributesFn"in e&&(t=e.attributesFn(t,je,Ue));var a,l,u,o,i=[];for(a in t)t.hasOwnProperty(a)&&t[a]!==null&&t[a]!==void 0&&(o=e.noQuotesForNativeAttributes&&typeof t[a]!="string"?"":'"',l=""+t[a],l=l.replace(/"/g,"""),u="attributeNameFn"in e?e.attributeNameFn(a,l,je,Ue):a,i.push(e.spaces&&e.indentAttributes?ft(e,r+1,!1):" "),i.push(u+"="+o+("attributeValueFn"in e?e.attributeValueFn(l,a,je,Ue):l)+o));return t&&Object.keys(t).length&&e.spaces&&e.indentAttributes&&i.push(ft(e,r,!1)),i.join("")}function sa(t,e,r){return Ue=t,je="xml",e.ignoreDeclaration?"":""}function aa(t,e,r){if(e.ignoreInstruction)return"";var a;for(a in t)if(t.hasOwnProperty(a))break;var l="instructionNameFn"in e?e.instructionNameFn(a,t[a],je,Ue):a;if(typeof t[a]=="object")return Ue=t,je=l,"";var u=t[a]?t[a]:"";return"instructionFn"in e&&(u=e.instructionFn(u,a,je,Ue)),""}function oa(t,e){return e.ignoreComment?"":""}function ua(t,e){return e.ignoreCdata?"":"","]]]]>"))+"]]>"}function la(t,e){return e.ignoreDoctype?"":""}function ri(t,e){return e.ignoreText?"":(t=""+t,t=t.replace(/&/g,"&"),t=t.replace(/&/g,"&").replace(//g,">"),"textFn"in e?e.textFn(t,je,Ue):t)}function su(t,e){var r;if(t.elements&&t.elements.length)for(r=0;r"),t[e.elementsKey]&&t[e.elementsKey].length&&(a.push(ca(t[e.elementsKey],e,r+1)),Ue=t,je=t.name),a.push(e.spaces&&su(t,e)?` -`+Array(r+1).join(e.spaces):""),a.push("")):a.push("/>"),a.join("")}function ca(t,e,r,a){return t.reduce(function(l,u){var o=ft(e,r,a&&!l);switch(u.type){case"element":return l+o+au(u,e,r);case"comment":return l+o+oa(u[e.commentKey],e);case"doctype":return l+o+la(u[e.doctypeKey],e);case"cdata":return l+(e.indentCdata?o:"")+ua(u[e.cdataKey],e);case"text":return l+(e.indentText?o:"")+ri(u[e.textKey],e);case"instruction":var i={};return i[u[e.nameKey]]=u[e.attributesKey]?u:u[e.instructionKey],l+(e.indentInstruction?o:"")+aa(i,e,r)}},"")}function fa(t,e,r){var a;for(a in t)if(t.hasOwnProperty(a))switch(a){case e.parentKey:case e.attributesKey:break;case e.textKey:if(e.indentText||r)return!0;break;case e.cdataKey:if(e.indentCdata||r)return!0;break;case e.instructionKey:if(e.indentInstruction||r)return!0;break;case e.doctypeKey:case e.commentKey:return!0;default:return!0}return!1}function ou(t,e,r,a,l){Ue=t,je=e;var u="elementNameFn"in r?r.elementNameFn(e,t):e;if(typeof t>"u"||t===null||t==="")return"fullTagEmptyElementFn"in r&&r.fullTagEmptyElementFn(e,t)||r.fullTagEmptyElement?"<"+u+">":"<"+u+"/>";var o=[];if(e){if(o.push("<"+u),typeof t!="object")return o.push(">"+ri(t,r)+""),o.join("");t[r.attributesKey]&&o.push(Cr(t[r.attributesKey],r,a));var i=fa(t,r,!0)||t[r.attributesKey]&&t[r.attributesKey]["xml:space"]==="preserve";if(i||("fullTagEmptyElementFn"in r?i=r.fullTagEmptyElementFn(e,t):i=r.fullTagEmptyElement),i)o.push(">");else return o.push("/>"),o.join("")}return o.push(ha(t,r,a+1,!1)),Ue=t,je=e,e&&o.push((l?ft(r,a,!1):"")+""),o.join("")}function ha(t,e,r,a){var l,u,o,i=[];for(u in t)if(t.hasOwnProperty(u))for(o=nu(t[u])?t[u]:[t[u]],l=0;l{switch(t.type){case void 0:case"element":const e=new mu(t.name,t.attributes),r=t.elements||[];for(const a of r){const l=ni(a);l!==void 0&&e.push(l)}return e;case"text":return t.text;default:return}};class pu extends ge{}class mu extends se{static fromXmlString(e){const r=pa.xml2js(e,{compact:!1});return ni(r)}constructor(e,r){super(e),r&&this.root.push(new pu(r))}push(e){this.root.push(e)}}class gu extends se{constructor(e){super(""),this._attr=e}prepForXml(e){return{_attr:this._attr}}}class ma extends se{constructor(e,r){super(e),r&&(this.root=r.root)}}const Ge=t=>{if(isNaN(t))throw new Error(`Invalid value '${t}' specified. Must be an integer.`);return Math.floor(t)},Dr=t=>{const e=Ge(t);if(e<0)throw new Error(`Invalid value '${t}' specified. Must be a positive integer.`);return e},ga=(t,e)=>{const r=e*2;if(t.length!==r||isNaN(+`0x${t}`))throw new Error(`Invalid hex value '${t}'. Expected ${r} digit hex value`);return t},ls=t=>ga(t,1),wa=t=>{const e=t.slice(-2),r=t.substring(0,t.length-2);return`${Number(r)}${e}`},ya=t=>{const e=wa(t);if(parseFloat(e)<0)throw new Error(`Invalid value '${e}' specified. Expected a positive number.`);return e},Gt=t=>{if(t==="auto")return t;const e=t.charAt(0)==="#"?t.substring(1):t;return ga(e,3)},Nt=t=>typeof t=="string"?wa(t):Ge(t),wu=t=>typeof t=="string"?ya(t):Dr(t),at=t=>typeof t=="string"?ya(t):Dr(t),yu=Dr,vu=Dr,bu=t=>t.toISOString();class oe extends se{constructor(e,r=!0){super(e),r!==!0&&this.root.push(new Ce({val:r}))}}class kn extends se{constructor(e,r){super(e),this.root.push(new Ce({val:wu(r)}))}}class Wt extends se{constructor(e,r){super(e),this.root.push(new Ce({val:r}))}}const tr=(t,e)=>new vt({name:t,attributes:{value:{key:"w:val",value:e}}});class ii extends se{constructor(e,r){super(e),this.root.push(new Ce({val:r}))}}class At extends se{constructor(e,r){super(e),this.root.push(r)}}class vt extends se{constructor({name:e,attributes:r,children:a}){super(e),r&&this.root.push(new ar(r)),a&&this.root.push(...a)}}const ut={START:"start",CENTER:"center",END:"end",BOTH:"both",MEDIUM_KASHIDA:"mediumKashida",DISTRIBUTE:"distribute",NUM_TAB:"numTab",HIGH_KASHIDA:"highKashida",LOW_KASHIDA:"lowKashida",THAI_DISTRIBUTE:"thaiDistribute",LEFT:"left",RIGHT:"right",JUSTIFIED:"both"};class _u extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{val:"w:val"})}}class Eu extends se{constructor(e){super("w:jc"),this.root.push(new _u({val:e}))}}class ke extends se{constructor(e,{color:r,size:a,space:l,style:u}){super(e),this.root.push(new Tu({style:u,color:r===void 0?void 0:Gt(r),size:a===void 0?void 0:yu(a),space:l===void 0?void 0:vu(l)}))}}class Tu extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{style:"w:val",color:"w:color",size:"w:sz",space:"w:space"})}}const si={SINGLE:"single",DASH_DOT_STROKED:"dashDotStroked",DASHED:"dashed",DASH_SMALL_GAP:"dashSmallGap",DOT_DASH:"dotDash",DOT_DOT_DASH:"dotDotDash",DOTTED:"dotted",DOUBLE:"double",DOUBLE_WAVE:"doubleWave",INSET:"inset",NIL:"nil",NONE:"none",OUTSET:"outset",THICK:"thick",THICK_THIN_LARGE_GAP:"thickThinLargeGap",THICK_THIN_MEDIUM_GAP:"thickThinMediumGap",THICK_THIN_SMALL_GAP:"thickThinSmallGap",THIN_THICK_LARGE_GAP:"thinThickLargeGap",THIN_THICK_MEDIUM_GAP:"thinThickMediumGap",THIN_THICK_SMALL_GAP:"thinThickSmallGap",THIN_THICK_THIN_LARGE_GAP:"thinThickThinLargeGap",THIN_THICK_THIN_MEDIUM_GAP:"thinThickThinMediumGap",THIN_THICK_THIN_SMALL_GAP:"thinThickThinSmallGap",THREE_D_EMBOSS:"threeDEmboss",THREE_D_ENGRAVE:"threeDEngrave",TRIPLE:"triple",WAVE:"wave"};class xu extends kr{constructor(e){super("w:pBdr"),e.top&&this.root.push(new ke("w:top",e.top)),e.bottom&&this.root.push(new ke("w:bottom",e.bottom)),e.left&&this.root.push(new ke("w:left",e.left)),e.right&&this.root.push(new ke("w:right",e.right))}}class Su extends se{constructor(){super("w:pBdr");const e=new ke("w:bottom",{color:"auto",space:1,style:si.SINGLE,size:6});this.root.push(e)}}class Au extends se{constructor({start:e,end:r,left:a,right:l,hanging:u,firstLine:o}){super("w:ind"),this.root.push(new ar({start:{key:"w:start",value:e===void 0?void 0:Nt(e)},end:{key:"w:end",value:r===void 0?void 0:Nt(r)},left:{key:"w:left",value:a===void 0?void 0:Nt(a)},right:{key:"w:right",value:l===void 0?void 0:Nt(l)},hanging:{key:"w:hanging",value:u===void 0?void 0:at(u)},firstLine:{key:"w:firstLine",value:o===void 0?void 0:at(o)}}))}}let Ru=class extends se{constructor(){super("w:br")}};const ai={BEGIN:"begin",END:"end",SEPARATE:"separate"};class oi extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{type:"w:fldCharType",dirty:"w:dirty"})}}class hr extends se{constructor(e){super("w:fldChar"),this.root.push(new oi({type:ai.BEGIN,dirty:e}))}}class dr extends se{constructor(e){super("w:fldChar"),this.root.push(new oi({type:ai.SEPARATE,dirty:e}))}}class pr extends se{constructor(e){super("w:fldChar"),this.root.push(new oi({type:ai.END,dirty:e}))}}const Kt={DEFAULT:"default",PRESERVE:"preserve"};class Vt extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{space:"xml:space"})}}class Iu extends se{constructor(){super("w:instrText"),this.root.push(new Vt({space:Kt.PRESERVE})),this.root.push("PAGE")}}class ku extends se{constructor(){super("w:instrText"),this.root.push(new Vt({space:Kt.PRESERVE})),this.root.push("NUMPAGES")}}class Nu extends se{constructor(){super("w:instrText"),this.root.push(new Vt({space:Kt.PRESERVE})),this.root.push("SECTIONPAGES")}}class Ou extends se{constructor(){super("w:instrText"),this.root.push(new Vt({space:Kt.PRESERVE})),this.root.push("SECTION")}}class Cu extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{fill:"w:fill",color:"w:color",type:"w:val"})}}class va extends se{constructor({fill:e,color:r,type:a}){super("w:shd"),this.root.push(new Cu({fill:e===void 0?void 0:Gt(e),color:r===void 0?void 0:Gt(r),type:a}))}}class Du extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{id:"w:id",author:"w:author",date:"w:date"})}}const Pu={DOT:"dot"};class Lu extends se{constructor(e){super("w:em"),this.root.push(new Ce({val:e}))}}class Fu extends Lu{constructor(e=Pu.DOT){super(e)}}class Bu extends se{constructor(e){super("w:spacing"),this.root.push(new Ce({val:Nt(e)}))}}class Mu extends se{constructor(e){super("w:color"),this.root.push(new Ce({val:Gt(e)}))}}class Uu extends se{constructor(e){super("w:highlight"),this.root.push(new Ce({val:e}))}}class ju extends se{constructor(e){super("w:highlightCs"),this.root.push(new Ce({val:e}))}}const Wu=t=>new vt({name:"w:lang",attributes:{value:{key:"w:val",value:t.value},eastAsia:{key:"w:eastAsia",value:t.eastAsia},bidirectional:{key:"w:bidi",value:t.bidirectional}}});class cs extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{ascii:"w:ascii",cs:"w:cs",eastAsia:"w:eastAsia",hAnsi:"w:hAnsi",hint:"w:hint"})}}class Nn extends se{constructor(e,r){if(super("w:rFonts"),typeof e=="string"){const a=e;this.root.push(new cs({ascii:a,cs:a,eastAsia:a,hAnsi:a,hint:r}))}else{const a=e;this.root.push(new cs(a))}}}let ba=class extends se{constructor(e){super("w:vertAlign"),this.root.push(new Ce({val:e}))}};class zu extends ba{constructor(){super("superscript")}}class Hu extends ba{constructor(){super("subscript")}}const _a={SINGLE:"single",WORDS:"words",DOUBLE:"double",THICK:"thick",DOTTED:"dotted",DOTTEDHEAVY:"dottedHeavy",DASH:"dash",DASHEDHEAVY:"dashedHeavy",DASHLONG:"dashLong",DASHLONGHEAVY:"dashLongHeavy",DOTDASH:"dotDash",DASHDOTHEAVY:"dashDotHeavy",DOTDOTDASH:"dotDotDash",DASHDOTDOTHEAVY:"dashDotDotHeavy",WAVE:"wave",WAVYHEAVY:"wavyHeavy",WAVYDOUBLE:"wavyDouble",NONE:"none"};class Gu extends se{constructor(e=_a.SINGLE,r){super("w:u"),this.root.push(new Ce({val:e,color:r===void 0?void 0:Gt(r)}))}}class Ct extends kr{constructor(e){var r,a;if(super("w:rPr"),!e)return;e.noProof!==void 0&&this.push(new oe("w:noProof",e.noProof)),e.bold!==void 0&&this.push(new oe("w:b",e.bold)),(e.boldComplexScript===void 0&&e.bold!==void 0||e.boldComplexScript)&&this.push(new oe("w:bCs",(r=e.boldComplexScript)!=null?r:e.bold)),e.italics!==void 0&&this.push(new oe("w:i",e.italics)),(e.italicsComplexScript===void 0&&e.italics!==void 0||e.italicsComplexScript)&&this.push(new oe("w:iCs",(a=e.italicsComplexScript)!=null?a:e.italics)),e.underline&&this.push(new Gu(e.underline.type,e.underline.color)),e.effect&&this.push(new Wt("w:effect",e.effect)),e.emphasisMark&&this.push(new Fu(e.emphasisMark.type)),e.color&&this.push(new Mu(e.color)),e.kern&&this.push(new kn("w:kern",e.kern)),e.position&&this.push(new Wt("w:position",e.position)),e.size!==void 0&&this.push(new kn("w:sz",e.size));const l=e.sizeComplexScript===void 0||e.sizeComplexScript===!0?e.size:e.sizeComplexScript;l&&this.push(new kn("w:szCs",l)),e.rightToLeft!==void 0&&this.push(new oe("w:rtl",e.rightToLeft)),e.smallCaps!==void 0?this.push(new oe("w:smallCaps",e.smallCaps)):e.allCaps!==void 0&&this.push(new oe("w:caps",e.allCaps)),e.strike!==void 0&&this.push(new oe("w:strike",e.strike)),e.doubleStrike!==void 0&&this.push(new oe("w:dstrike",e.doubleStrike)),e.subScript&&this.push(new Hu),e.superScript&&this.push(new zu),e.style&&this.push(new Wt("w:rStyle",e.style)),e.font&&(typeof e.font=="string"?this.push(new Nn(e.font)):"name"in e.font?this.push(new Nn(e.font.name,e.font.hint)):this.push(new Nn(e.font))),e.highlight&&this.push(new Uu(e.highlight));const u=e.highlightComplexScript===void 0||e.highlightComplexScript===!0?e.highlight:e.highlightComplexScript;u&&this.push(new ju(u)),e.characterSpacing&&this.push(new Bu(e.characterSpacing)),e.emboss!==void 0&&this.push(new oe("w:emboss",e.emboss)),e.imprint!==void 0&&this.push(new oe("w:imprint",e.imprint)),e.shading&&this.push(new va(e.shading)),e.revision&&this.push(new Ku(e.revision)),e.border&&this.push(new ke("w:bdr",e.border)),e.snapToGrid!==void 0&&this.push(new oe("w:snapToGrid",e.snapToGrid)),e.vanish&&this.push(new oe("w:vanish",e.vanish)),e.specVanish&&this.push(new oe("w:specVanish",e.vanish)),e.scale!==void 0&&this.push(new ii("w:w",e.scale)),e.language&&this.push(Wu(e.language)),e.math&&this.push(new oe("w:oMath",e.math))}push(e){this.root.push(e)}}class Ku extends se{constructor(e){super("w:rPrChange"),this.root.push(new Du({id:e.id,author:e.author,date:e.date})),this.addChildElement(new Ct(e))}}class Un extends se{constructor(e){var r;return super("w:t"),typeof e=="string"?(this.root.push(new Vt({space:Kt.PRESERVE})),this.root.push(e),this):(this.root.push(new Vt({space:(r=e.space)!=null?r:Kt.DEFAULT})),this.root.push(e.text),this)}}const mr={CURRENT:"CURRENT",TOTAL_PAGES:"TOTAL_PAGES",TOTAL_PAGES_IN_SECTION:"TOTAL_PAGES_IN_SECTION",CURRENT_SECTION:"SECTION"};class Pr extends se{constructor(e){if(super("w:r"),ie(this,"properties"),this.properties=new Ct(e),this.root.push(this.properties),e.break)for(let r=0;r(r=e)=>{let a="",l=r;for(;l--;)a+=t[Math.random()*t.length|0];return a},Xu=(t=21)=>{let e="",r=t;for(;r--;)e+=Vu[Math.random()*64|0];return e};const st=t=>Math.floor(t*72*20),ui=(t=0)=>{let e=t;return()=>++e},Yu=()=>ui(),Zu=()=>ui(1),Qu=()=>ui(),Ju=()=>Xu().toLowerCase(),rr=t=>qu("1234567890abcdef",t)(),$u=()=>`${rr(8)}-${rr(4)}-${rr(4)}-${rr(4)}-${rr(12)}`;class el extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{id:"w:id",initials:"w:initials",author:"w:author",date:"w:date"})}}class tl extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{"xmlns:cx":"xmlns:cx","xmlns:cx1":"xmlns:cx1","xmlns:cx2":"xmlns:cx2","xmlns:cx3":"xmlns:cx3","xmlns:cx4":"xmlns:cx4","xmlns:cx5":"xmlns:cx5","xmlns:cx6":"xmlns:cx6","xmlns:cx7":"xmlns:cx7","xmlns:cx8":"xmlns:cx8","xmlns:mc":"xmlns:mc","xmlns:aink":"xmlns:aink","xmlns:am3d":"xmlns:am3d","xmlns:o":"xmlns:o","xmlns:r":"xmlns:r","xmlns:m":"xmlns:m","xmlns:v":"xmlns:v","xmlns:wp14":"xmlns:wp14","xmlns:wp":"xmlns:wp","xmlns:w10":"xmlns:w10","xmlns:w":"xmlns:w","xmlns:w14":"xmlns:w14","xmlns:w15":"xmlns:w15","xmlns:w16cex":"xmlns:w16cex","xmlns:w16cid":"xmlns:w16cid","xmlns:w16":"xmlns:w16","xmlns:w16sdtdh":"xmlns:w16sdtdh","xmlns:w16se":"xmlns:w16se","xmlns:wpg":"xmlns:wpg","xmlns:wpi":"xmlns:wpi","xmlns:wne":"xmlns:wne","xmlns:wps":"xmlns:wps"})}}class rl extends se{constructor({id:e,initials:r,author:a,date:l=new Date,children:u}){super("w:comment"),this.root.push(new el({id:e,initials:r,author:a,date:l.toISOString()}));for(const o of u)this.root.push(o)}}class nl extends se{constructor({children:e}){super("w:comments"),this.root.push(new tl({"xmlns:cx":"http://schemas.microsoft.com/office/drawing/2014/chartex","xmlns:cx1":"http://schemas.microsoft.com/office/drawing/2015/9/8/chartex","xmlns:cx2":"http://schemas.microsoft.com/office/drawing/2015/10/21/chartex","xmlns:cx3":"http://schemas.microsoft.com/office/drawing/2016/5/9/chartex","xmlns:cx4":"http://schemas.microsoft.com/office/drawing/2016/5/10/chartex","xmlns:cx5":"http://schemas.microsoft.com/office/drawing/2016/5/11/chartex","xmlns:cx6":"http://schemas.microsoft.com/office/drawing/2016/5/12/chartex","xmlns:cx7":"http://schemas.microsoft.com/office/drawing/2016/5/13/chartex","xmlns:cx8":"http://schemas.microsoft.com/office/drawing/2016/5/14/chartex","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","xmlns:aink":"http://schemas.microsoft.com/office/drawing/2016/ink","xmlns:am3d":"http://schemas.microsoft.com/office/drawing/2017/model3d","xmlns:o":"urn:schemas-microsoft-com:office:office","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:m":"http://schemas.openxmlformats.org/officeDocument/2006/math","xmlns:v":"urn:schemas-microsoft-com:vml","xmlns:wp14":"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing","xmlns:wp":"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing","xmlns:w10":"urn:schemas-microsoft-com:office:word","xmlns:w":"http://schemas.openxmlformats.org/wordprocessingml/2006/main","xmlns:w14":"http://schemas.microsoft.com/office/word/2010/wordml","xmlns:w15":"http://schemas.microsoft.com/office/word/2012/wordml","xmlns:w16cex":"http://schemas.microsoft.com/office/word/2018/wordml/cex","xmlns:w16cid":"http://schemas.microsoft.com/office/word/2016/wordml/cid","xmlns:w16":"http://schemas.microsoft.com/office/word/2018/wordml","xmlns:w16sdtdh":"http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash","xmlns:w16se":"http://schemas.microsoft.com/office/word/2015/wordml/symex","xmlns:wpg":"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup","xmlns:wpi":"http://schemas.microsoft.com/office/word/2010/wordprocessingInk","xmlns:wne":"http://schemas.microsoft.com/office/word/2006/wordml","xmlns:wps":"http://schemas.microsoft.com/office/word/2010/wordprocessingShape"}));for(const r of e)this.root.push(new rl(r))}}class il extends se{constructor(){super("w:pageBreakBefore")}}const jn={AT_LEAST:"atLeast",EXACTLY:"exactly",EXACT:"exact",AUTO:"auto"};class sl extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{after:"w:after",before:"w:before",line:"w:line",lineRule:"w:lineRule"})}}class al extends se{constructor(e){super("w:spacing"),this.root.push(new sl(e))}}const lh={HEADING_1:"Heading1",HEADING_2:"Heading2",HEADING_3:"Heading3",HEADING_4:"Heading4",HEADING_5:"Heading5",HEADING_6:"Heading6",TITLE:"Title"};let gr=class extends se{constructor(e){super("w:pStyle"),this.root.push(new Ce({val:e}))}};class ol extends se{constructor(e){super("w:tabs");for(const r of e)this.root.push(new ll(r))}}const hs={LEFT:"left",RIGHT:"right",CENTER:"center",BAR:"bar",CLEAR:"clear",DECIMAL:"decimal",END:"end",NUM:"num",START:"start"};class ul extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{val:"w:val",pos:"w:pos",leader:"w:leader"})}}class ll extends se{constructor({type:e,position:r,leader:a}){super("w:tab"),this.root.push(new ul({val:e,pos:r,leader:a}))}}class ds extends se{constructor(e,r){super("w:numPr"),this.root.push(new cl(r)),this.root.push(new fl(e))}}class cl extends se{constructor(e){if(super("w:ilvl"),e>9)throw new Error("Level cannot be greater than 9. Read more here: https://answers.microsoft.com/en-us/msoffice/forum/all/does-word-support-more-than-9-list-levels/d130fdcd-1781-446d-8c84-c6c79124e4d7");this.root.push(new Ce({val:e}))}}class fl extends se{constructor(e){super("w:numId"),this.root.push(new Ce({val:typeof e=="string"?`{${e}}`:e}))}}class hl extends se{constructor(){super(...arguments),ie(this,"fileChild",Symbol())}}class dl extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{id:"Id",type:"Type",target:"Target",targetMode:"TargetMode"})}}const pl={EXTERNAL:"External"};class ml extends se{constructor(e,r,a,l){super("Relationship"),this.root.push(new dl({id:e,type:r,target:a,targetMode:l}))}}class gl extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{id:"r:id",history:"w:history",anchor:"w:anchor"})}}class wl extends se{constructor(e,r,a){super("w:hyperlink"),ie(this,"linkId"),this.linkId=r;const l={history:1,anchor:a||void 0,id:a?void 0:`rId${this.linkId}`},u=new gl(l);this.root.push(u),e.forEach(o=>{this.root.push(o)})}}class yl extends se{constructor(e){super("w:externalHyperlink"),this.options=e}}class vl extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{id:"w:id",name:"w:name"})}}class bl extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{id:"w:id"})}}class _l{constructor(e){ie(this,"bookmarkUniqueNumericId",Qu()),ie(this,"start"),ie(this,"children"),ie(this,"end");const r=this.bookmarkUniqueNumericId();this.start=new El(e.id,r),this.children=e.children,this.end=new Tl(r)}}class El extends se{constructor(e,r){super("w:bookmarkStart");const a=new vl({name:e,id:r});this.root.push(a)}}class Tl extends se{constructor(e){super("w:bookmarkEnd");const r=new bl({id:e});this.root.push(r)}}class xl extends se{constructor(e){super("w:outlineLvl"),this.level=e,this.root.push(new Ce({val:e}))}}class Sl extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{verticalAlign:"w:val"})}}class Al extends se{constructor(e){super("w:vAlign"),this.root.push(new Sl({verticalAlign:e}))}}const zt={DEFAULT:"default",FIRST:"first",EVEN:"even"};class Rl extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{type:"w:type",id:"r:id"})}}const ps={HEADER:"w:headerReference",FOOTER:"w:footerReference"};class On extends se{constructor(e,r){super(e),this.root.push(new Rl({type:r.type||zt.DEFAULT,id:`rId${r.id}`}))}}class Il extends se{constructor({space:e,count:r,separate:a,equalWidth:l,children:u}){super("w:cols"),this.root.push(new ar({space:{key:"w:space",value:e===void 0?void 0:at(e)},count:{key:"w:num",value:r===void 0?void 0:Ge(r)},separate:{key:"w:sep",value:a},equalWidth:{key:"w:equalWidth",value:l}})),!l&&u&&u.forEach(o=>this.addChildElement(o))}}class kl extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{type:"w:type",linePitch:"w:linePitch",charSpace:"w:charSpace"})}}class Nl extends se{constructor(e,r,a){super("w:docGrid"),this.root.push(new kl({type:a,linePitch:Ge(e),charSpace:r?Ge(r):void 0}))}}const Ol=({countBy:t,start:e,restart:r,distance:a})=>new vt({name:"w:lnNumType",attributes:{countBy:{key:"w:countBy",value:t===void 0?void 0:Ge(t)},start:{key:"w:start",value:e===void 0?void 0:Ge(e)},restart:{key:"w:restart",value:r},distance:{key:"w:distance",value:a===void 0?void 0:at(a)}}});class ms extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{display:"w:display",offsetFrom:"w:offsetFrom",zOrder:"w:zOrder"})}}class Cl extends kr{constructor(e){if(super("w:pgBorders"),!e)return this;e.pageBorders?this.root.push(new ms({display:e.pageBorders.display,offsetFrom:e.pageBorders.offsetFrom,zOrder:e.pageBorders.zOrder})):this.root.push(new ms({})),e.pageBorderTop&&this.root.push(new ke("w:top",e.pageBorderTop)),e.pageBorderLeft&&this.root.push(new ke("w:left",e.pageBorderLeft)),e.pageBorderBottom&&this.root.push(new ke("w:bottom",e.pageBorderBottom)),e.pageBorderRight&&this.root.push(new ke("w:right",e.pageBorderRight))}}class Dl extends se{constructor(e,r,a,l,u,o,i){super("w:pgMar"),this.root.push(new ar({top:{key:"w:top",value:Nt(e)},right:{key:"w:right",value:at(r)},bottom:{key:"w:bottom",value:Nt(a)},left:{key:"w:left",value:at(l)},header:{key:"w:header",value:at(u)},footer:{key:"w:footer",value:at(o)},gutter:{key:"w:gutter",value:at(i)}}))}}class Pl extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{start:"w:start",formatType:"w:fmt",separator:"w:chapSep"})}}class Ll extends se{constructor({start:e,formatType:r,separator:a}){super("w:pgNumType"),this.root.push(new Pl({start:e===void 0?void 0:Ge(e),formatType:r,separator:a}))}}const Ea={PORTRAIT:"portrait",LANDSCAPE:"landscape"};class Fl extends se{constructor(e,r,a){super("w:pgSz");const l=a===Ea.LANDSCAPE,u=at(e),o=at(r);this.root.push(new ar({width:{key:"w:w",value:l?o:u},height:{key:"w:h",value:l?u:o},orientation:{key:"w:orient",value:a}}))}}class Bl extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{val:"w:val"})}}class Ml extends se{constructor(e){super("w:textDirection"),this.root.push(new Bl({val:e}))}}class Ul extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{val:"w:val"})}}class jl extends se{constructor(e){super("w:type"),this.root.push(new Ul({val:e}))}}const Rt={TOP:1440,RIGHT:1440,BOTTOM:1440,LEFT:1440,HEADER:708,FOOTER:708,GUTTER:0},Cn={WIDTH:11906,HEIGHT:16838,ORIENTATION:Ea.PORTRAIT};class Wl extends se{constructor({page:{size:{width:e=Cn.WIDTH,height:r=Cn.HEIGHT,orientation:a=Cn.ORIENTATION}={},margin:{top:l=Rt.TOP,right:u=Rt.RIGHT,bottom:o=Rt.BOTTOM,left:i=Rt.LEFT,header:c=Rt.HEADER,footer:w=Rt.FOOTER,gutter:y=Rt.GUTTER}={},pageNumbers:x={},borders:_,textDirection:p}={},grid:{linePitch:T=360,charSpace:v,type:E}={},headerWrapperGroup:d={},footerWrapperGroup:S={},lineNumbers:R,titlePage:D,verticalAlign:C,column:V,type:H}={}){super("w:sectPr"),this.addHeaderFooterGroup(ps.HEADER,d),this.addHeaderFooterGroup(ps.FOOTER,S),H&&this.root.push(new jl(H)),this.root.push(new Fl(e,r,a)),this.root.push(new Dl(l,u,o,i,c,w,y)),_&&this.root.push(new Cl(_)),R&&this.root.push(Ol(R)),this.root.push(new Ll(x)),V&&this.root.push(new Il(V)),C&&this.root.push(new Al(C)),D!==void 0&&this.root.push(new oe("w:titlePg",D)),p&&this.root.push(new Ml(p)),this.root.push(new Nl(T,v,E))}addHeaderFooterGroup(e,r){r.default&&this.root.push(new On(e,{type:zt.DEFAULT,id:r.default.View.ReferenceId})),r.first&&this.root.push(new On(e,{type:zt.FIRST,id:r.first.View.ReferenceId})),r.even&&this.root.push(new On(e,{type:zt.EVEN,id:r.even.View.ReferenceId}))}}class zl extends se{constructor(){super("w:body"),ie(this,"sections",[])}addSection(e){const r=this.sections.pop();this.root.push(this.createSectionParagraph(r)),this.sections.push(new Wl(e))}prepForXml(e){return this.sections.length===1&&(this.root.splice(0,1),this.root.push(this.sections.pop())),super.prepForXml(e)}push(e){this.root.push(e)}createSectionParagraph(e){const r=new Wn({}),a=new qt({});return a.push(e),r.addChildElement(a),r}}class ur extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",Ignorable:"mc:Ignorable",cp:"xmlns:cp",dc:"xmlns:dc",dcterms:"xmlns:dcterms",dcmitype:"xmlns:dcmitype",xsi:"xmlns:xsi",type:"xsi:type",cx:"xmlns:cx",cx1:"xmlns:cx1",cx2:"xmlns:cx2",cx3:"xmlns:cx3",cx4:"xmlns:cx4",cx5:"xmlns:cx5",cx6:"xmlns:cx6",cx7:"xmlns:cx7",cx8:"xmlns:cx8",aink:"xmlns:aink",am3d:"xmlns:am3d",w16cex:"xmlns:w16cex",w16cid:"xmlns:w16cid",w16:"xmlns:w16",w16sdtdh:"xmlns:w16sdtdh",w16se:"xmlns:w16se"})}}class Hl extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{color:"w:color",themeColor:"w:themeColor",themeShade:"w:themeShade",themeTint:"w:themeTint"})}}class Gl extends se{constructor(e){super("w:background"),this.root.push(new Hl({color:e.color===void 0?void 0:Gt(e.color),themeColor:e.themeColor,themeShade:e.themeShade===void 0?void 0:ls(e.themeShade),themeTint:e.themeTint===void 0?void 0:ls(e.themeTint)}))}}class Kl extends se{constructor(e){super("w:document"),ie(this,"body"),this.root.push(new ur({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",cx:"http://schemas.microsoft.com/office/drawing/2014/chartex",cx1:"http://schemas.microsoft.com/office/drawing/2015/9/8/chartex",cx2:"http://schemas.microsoft.com/office/drawing/2015/10/21/chartex",cx3:"http://schemas.microsoft.com/office/drawing/2016/5/9/chartex",cx4:"http://schemas.microsoft.com/office/drawing/2016/5/10/chartex",cx5:"http://schemas.microsoft.com/office/drawing/2016/5/11/chartex",cx6:"http://schemas.microsoft.com/office/drawing/2016/5/12/chartex",cx7:"http://schemas.microsoft.com/office/drawing/2016/5/13/chartex",cx8:"http://schemas.microsoft.com/office/drawing/2016/5/14/chartex",aink:"http://schemas.microsoft.com/office/drawing/2016/ink",am3d:"http://schemas.microsoft.com/office/drawing/2017/model3d",w16cex:"http://schemas.microsoft.com/office/word/2018/wordml/cex",w16cid:"http://schemas.microsoft.com/office/word/2016/wordml/cid",w16:"http://schemas.microsoft.com/office/word/2018/wordml",w16sdtdh:"http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash",w16se:"http://schemas.microsoft.com/office/word/2015/wordml/symex",Ignorable:"w14 w15 wp14"})),this.body=new zl,e.background&&this.root.push(new Gl(e.background)),this.root.push(this.body)}add(e){return this.body.push(e),this}get Body(){return this.body}}class Vl extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{xmlns:"xmlns"})}}class Zt extends se{constructor(){super("Relationships"),this.root.push(new Vl({xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"}))}createRelationship(e,r,a,l){const u=new ml(`rId${e}`,r,a,l);return this.root.push(u),u}get RelationshipCount(){return this.root.length-1}}class Ta{constructor(e){ie(this,"document"),ie(this,"relationships"),this.document=new Kl(e),this.relationships=new Zt}get View(){return this.document}get Relationships(){return this.relationships}}class ql extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{val:"w:val"})}}class Xl extends se{constructor(){super("w:wordWrap"),this.root.push(new ql({val:0}))}}const Yl=t=>{var e,r;return new vt({name:"w:framePr",attributes:{anchorLock:{key:"w:anchorLock",value:t.anchorLock},dropCap:{key:"w:dropCap",value:t.dropCap},width:{key:"w:w",value:t.width},height:{key:"w:h",value:t.height},x:{key:"w:x",value:t.position?t.position.x:void 0},y:{key:"w:y",value:t.position?t.position.y:void 0},anchorHorizontal:{key:"w:hAnchor",value:t.anchor.horizontal},anchorVertical:{key:"w:vAnchor",value:t.anchor.vertical},spaceHorizontal:{key:"w:hSpace",value:(e=t.space)==null?void 0:e.horizontal},spaceVertical:{key:"w:vSpace",value:(r=t.space)==null?void 0:r.vertical},rule:{key:"w:hRule",value:t.rule},alignmentX:{key:"w:xAlign",value:t.alignment?t.alignment.x:void 0},alignmentY:{key:"w:yAlign",value:t.alignment?t.alignment.y:void 0},lines:{key:"w:lines",value:t.lines},wrap:{key:"w:wrap",value:t.wrap}}})};class qt extends kr{constructor(e){var r,a;if(super("w:pPr"),ie(this,"numberingReferences",[]),!e)return this;e.heading&&this.push(new gr(e.heading)),e.bullet&&this.push(new gr("ListParagraph")),e.numbering&&!e.style&&!e.heading&&(e.numbering.custom||this.push(new gr("ListParagraph"))),e.style&&this.push(new gr(e.style)),e.keepNext!==void 0&&this.push(new oe("w:keepNext",e.keepNext)),e.keepLines!==void 0&&this.push(new oe("w:keepLines",e.keepLines)),e.pageBreakBefore&&this.push(new il),e.frame&&this.push(Yl(e.frame)),e.widowControl!==void 0&&this.push(new oe("w:widowControl",e.widowControl)),e.bullet&&this.push(new ds(1,e.bullet.level)),e.numbering&&(this.numberingReferences.push({reference:e.numbering.reference,instance:(r=e.numbering.instance)!=null?r:0}),this.push(new ds(`${e.numbering.reference}-${(a=e.numbering.instance)!=null?a:0}`,e.numbering.level))),e.border&&this.push(new xu(e.border)),e.thematicBreak&&this.push(new Su),e.shading&&this.push(new va(e.shading)),e.wordWrap&&this.push(new Xl),e.overflowPunctuation&&this.push(new oe("w:overflowPunct",e.overflowPunctuation));const l=[...e.rightTabStop!==void 0?[{type:hs.RIGHT,position:e.rightTabStop}]:[],...e.tabStops?e.tabStops:[],...e.leftTabStop!==void 0?[{type:hs.LEFT,position:e.leftTabStop}]:[]];l.length>0&&this.push(new ol(l)),e.bidirectional!==void 0&&this.push(new oe("w:bidi",e.bidirectional)),e.spacing&&this.push(new al(e.spacing)),e.indent&&this.push(new Au(e.indent)),e.contextualSpacing!==void 0&&this.push(new oe("w:contextualSpacing",e.contextualSpacing)),e.alignment&&this.push(new Eu(e.alignment)),e.outlineLevel!==void 0&&this.push(new xl(e.outlineLevel)),e.suppressLineNumbers!==void 0&&this.push(new oe("w:suppressLineNumbers",e.suppressLineNumbers)),e.autoSpaceEastAsianText!==void 0&&this.push(new oe("w:autoSpaceDN",e.autoSpaceEastAsianText)),e.run&&this.push(new Ct(e.run))}push(e){this.root.push(e)}prepForXml(e){if(e.viewWrapper instanceof Ta)for(const r of this.numberingReferences)e.file.Numbering.createConcreteNumberingInstance(r.reference,r.instance);return super.prepForXml(e)}}class Wn extends hl{constructor(e){if(super("w:p"),ie(this,"properties"),typeof e=="string")return this.properties=new qt({}),this.root.push(this.properties),this.root.push(new fs(e)),this;if(this.properties=new qt(e),this.root.push(this.properties),e.text&&this.root.push(new fs(e.text)),e.children)for(const r of e.children){if(r instanceof _l){this.root.push(r.start);for(const a of r.children)this.root.push(a);this.root.push(r.end);continue}this.root.push(r)}}prepForXml(e){for(const r of this.root)if(r instanceof yl){const a=this.root.indexOf(r),l=new wl(r.options.children,Ju());e.viewWrapper.Relationships.createRelationship(l.linkId,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",r.options.link,pl.EXTERNAL),this.root[a]=l}return super.prepForXml(e)}addRunToFront(e){return this.root.splice(1,0,e),this}}const Ft={style:si.NONE,size:0,color:"auto"},Bt={style:si.SINGLE,size:4,color:"auto"};class Zl extends se{constructor(e){super("w:tblBorders"),e.top?this.root.push(new ke("w:top",e.top)):this.root.push(new ke("w:top",Bt)),e.left?this.root.push(new ke("w:left",e.left)):this.root.push(new ke("w:left",Bt)),e.bottom?this.root.push(new ke("w:bottom",e.bottom)):this.root.push(new ke("w:bottom",Bt)),e.right?this.root.push(new ke("w:right",e.right)):this.root.push(new ke("w:right",Bt)),e.insideHorizontal?this.root.push(new ke("w:insideH",e.insideHorizontal)):this.root.push(new ke("w:insideH",Bt)),e.insideVertical?this.root.push(new ke("w:insideV",e.insideVertical)):this.root.push(new ke("w:insideV",Bt))}}ie(Zl,"NONE",{top:Ft,bottom:Ft,left:Ft,right:Ft,insideHorizontal:Ft,insideVertical:Ft});class Ql extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{xmlns:"xmlns",vt:"xmlns:vt"})}}class Jl extends se{constructor(){super("Properties"),this.root.push(new Ql({xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"}))}}class $l extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{xmlns:"xmlns"})}}class ec extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{contentType:"ContentType",extension:"Extension"})}}class yt extends se{constructor(e,r){super("Default"),this.root.push(new ec({contentType:e,extension:r}))}}class tc extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{contentType:"ContentType",partName:"PartName"})}}class $e extends se{constructor(e,r){super("Override"),this.root.push(new tc({contentType:e,partName:r}))}}class rc extends se{constructor(){super("Types"),this.root.push(new $l({xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"})),this.root.push(new yt("image/png","png")),this.root.push(new yt("image/jpeg","jpeg")),this.root.push(new yt("image/jpeg","jpg")),this.root.push(new yt("image/bmp","bmp")),this.root.push(new yt("image/gif","gif")),this.root.push(new yt("application/vnd.openxmlformats-package.relationships+xml","rels")),this.root.push(new yt("application/xml","xml")),this.root.push(new yt("application/vnd.openxmlformats-officedocument.obfuscatedFont","odttf")),this.root.push(new $e("application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml","/word/document.xml")),this.root.push(new $e("application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml","/word/styles.xml")),this.root.push(new $e("application/vnd.openxmlformats-package.core-properties+xml","/docProps/core.xml")),this.root.push(new $e("application/vnd.openxmlformats-officedocument.custom-properties+xml","/docProps/custom.xml")),this.root.push(new $e("application/vnd.openxmlformats-officedocument.extended-properties+xml","/docProps/app.xml")),this.root.push(new $e("application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml","/word/numbering.xml")),this.root.push(new $e("application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml","/word/footnotes.xml")),this.root.push(new $e("application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml","/word/settings.xml")),this.root.push(new $e("application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml","/word/comments.xml")),this.root.push(new $e("application/vnd.openxmlformats-officedocument.wordprocessingml.fontTable+xml","/word/fontTable.xml"))}addFooter(e){this.root.push(new $e("application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml",`/word/footer${e}.xml`))}addHeader(e){this.root.push(new $e("application/vnd.openxmlformats-officedocument.wordprocessingml.header+xml",`/word/header${e}.xml`))}}class nc extends se{constructor(e){super("cp:coreProperties"),this.root.push(new ur({cp:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",xsi:"http://www.w3.org/2001/XMLSchema-instance"})),e.title&&this.root.push(new At("dc:title",e.title)),e.subject&&this.root.push(new At("dc:subject",e.subject)),e.creator&&this.root.push(new At("dc:creator",e.creator)),e.keywords&&this.root.push(new At("cp:keywords",e.keywords)),e.description&&this.root.push(new At("dc:description",e.description)),e.lastModifiedBy&&this.root.push(new At("cp:lastModifiedBy",e.lastModifiedBy)),e.revision&&this.root.push(new At("cp:revision",String(e.revision))),this.root.push(new gs("dcterms:created")),this.root.push(new gs("dcterms:modified"))}}class gs extends se{constructor(e){super(e),this.root.push(new ur({type:"dcterms:W3CDTF"})),this.root.push(bu(new Date))}}class ic extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{xmlns:"xmlns",vt:"xmlns:vt"})}}class sc extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{fmtid:"fmtid",pid:"pid",name:"name"})}}class ac extends se{constructor(e,r){super("property"),this.root.push(new sc({fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:e.toString(),name:r.name})),this.root.push(new oc(r.value))}}class oc extends se{constructor(e){super("vt:lpwstr"),this.root.push(e)}}class uc extends se{constructor(e){super("Properties"),ie(this,"nextId"),ie(this,"properties",[]),this.root.push(new ic({xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"})),this.nextId=2;for(const r of e)this.addCustomProperty(r)}prepForXml(e){return this.properties.forEach(r=>this.root.push(r)),super.prepForXml(e)}addCustomProperty(e){this.properties.push(new ac(this.nextId++,e))}}class lc extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",cp:"xmlns:cp",dc:"xmlns:dc",dcterms:"xmlns:dcterms",dcmitype:"xmlns:dcmitype",xsi:"xmlns:xsi",type:"xsi:type"})}}let cc=class extends ma{constructor(e,r){super("w:ftr",r),ie(this,"refId"),this.refId=e,r||this.root.push(new lc({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape"}))}get ReferenceId(){return this.refId}add(e){this.root.push(e)}};class fc{constructor(e,r,a){ie(this,"footer"),ie(this,"relationships"),this.media=e,this.footer=new cc(r,a),this.relationships=new Zt}add(e){this.footer.add(e)}addChildElement(e){this.footer.addChildElement(e)}get View(){return this.footer}get Relationships(){return this.relationships}get Media(){return this.media}}class hc extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{type:"w:type",id:"w:id"})}}class dc extends se{constructor(){super("w:footnoteRef")}}class pc extends Pr{constructor(){super({style:"FootnoteReference"}),this.root.push(new dc)}}const ws={SEPERATOR:"separator",CONTINUATION_SEPERATOR:"continuationSeparator"};class Dn extends se{constructor(e){super("w:footnote"),this.root.push(new hc({type:e.type,id:e.id}));for(let r=0;r9)throw new Error("Level cannot be greater than 9. Read more here: https://answers.microsoft.com/en-us/msoffice/forum/all/does-word-support-more-than-9-list-levels/d130fdcd-1781-446d-8c84-c6c79124e4d7");this.root.push(new Ac({ilvl:Ge(e),tentative:1}))}}class Dc extends Cc{}class Pc extends se{constructor(e){super("w:multiLevelType"),this.root.push(new Ce({val:e}))}}class Lc extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{abstractNumId:"w:abstractNumId",restartNumberingAfterBreak:"w15:restartNumberingAfterBreak"})}}class ys extends se{constructor(e,r){super("w:abstractNum"),ie(this,"id"),this.root.push(new Lc({abstractNumId:Ge(e),restartNumberingAfterBreak:0})),this.root.push(new Pc("hybridMultilevel")),this.id=e;for(const a of r)this.root.push(new Dc(a))}}class Fc extends se{constructor(e){super("w:abstractNumId"),this.root.push(new Ce({val:e}))}}class Bc extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{numId:"w:numId"})}}class vs extends se{constructor(e){if(super("w:num"),ie(this,"numId"),ie(this,"reference"),ie(this,"instance"),this.numId=e.numId,this.reference=e.reference,this.instance=e.instance,this.root.push(new Bc({numId:Ge(e.numId)})),this.root.push(new Fc(Ge(e.abstractNumId))),e.overrideLevels&&e.overrideLevels.length)for(const r of e.overrideLevels)this.root.push(new Uc(r.num,r.start))}}class Mc extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{ilvl:"w:ilvl"})}}class Uc extends se{constructor(e,r){super("w:lvlOverride"),this.root.push(new Mc({ilvl:e})),r!==void 0&&this.root.push(new Wc(r))}}class jc extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{val:"w:val"})}}class Wc extends se{constructor(e){super("w:startOverride"),this.root.push(new jc({val:e}))}}class zc extends se{constructor(e){super("w:numbering"),ie(this,"abstractNumberingMap",new Map),ie(this,"concreteNumberingMap",new Map),ie(this,"referenceConfigMap",new Map),ie(this,"abstractNumUniqueNumericId",Yu()),ie(this,"concreteNumUniqueNumericId",Zu()),this.root.push(new ur({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",Ignorable:"w14 w15 wp14"}));const r=new ys(this.abstractNumUniqueNumericId(),[{level:0,format:dt.BULLET,text:"●",alignment:ut.LEFT,style:{paragraph:{indent:{left:st(.5),hanging:st(.25)}}}},{level:1,format:dt.BULLET,text:"○",alignment:ut.LEFT,style:{paragraph:{indent:{left:st(1),hanging:st(.25)}}}},{level:2,format:dt.BULLET,text:"■",alignment:ut.LEFT,style:{paragraph:{indent:{left:2160,hanging:st(.25)}}}},{level:3,format:dt.BULLET,text:"●",alignment:ut.LEFT,style:{paragraph:{indent:{left:2880,hanging:st(.25)}}}},{level:4,format:dt.BULLET,text:"○",alignment:ut.LEFT,style:{paragraph:{indent:{left:3600,hanging:st(.25)}}}},{level:5,format:dt.BULLET,text:"■",alignment:ut.LEFT,style:{paragraph:{indent:{left:4320,hanging:st(.25)}}}},{level:6,format:dt.BULLET,text:"●",alignment:ut.LEFT,style:{paragraph:{indent:{left:5040,hanging:st(.25)}}}},{level:7,format:dt.BULLET,text:"●",alignment:ut.LEFT,style:{paragraph:{indent:{left:5760,hanging:st(.25)}}}},{level:8,format:dt.BULLET,text:"●",alignment:ut.LEFT,style:{paragraph:{indent:{left:6480,hanging:st(.25)}}}}]);this.concreteNumberingMap.set("default-bullet-numbering",new vs({numId:1,abstractNumId:r.id,reference:"default-bullet-numbering",instance:0,overrideLevels:[{num:0,start:1}]})),this.abstractNumberingMap.set("default-bullet-numbering",r);for(const a of e.config)this.abstractNumberingMap.set(a.reference,new ys(this.abstractNumUniqueNumericId(),a.levels)),this.referenceConfigMap.set(a.reference,a.levels)}prepForXml(e){for(const r of this.abstractNumberingMap.values())this.root.push(r);for(const r of this.concreteNumberingMap.values())this.root.push(r);return super.prepForXml(e)}createConcreteNumberingInstance(e,r){const a=this.abstractNumberingMap.get(e);if(!a)return;const l=`${e}-${r}`;if(this.concreteNumberingMap.has(l))return;const u=this.referenceConfigMap.get(e),o=u&&u[0].start,i={numId:this.concreteNumUniqueNumericId(),abstractNumId:a.id,reference:e,instance:r,overrideLevels:[o&&Number.isInteger(o)?{num:0,start:o}:{num:0,start:1}]};this.concreteNumberingMap.set(l,new vs(i))}get ConcreteNumbering(){return Array.from(this.concreteNumberingMap.values())}get ReferenceConfig(){return Array.from(this.referenceConfigMap.values())}}class Hc extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{version:"w:val",name:"w:name",uri:"w:uri"})}}class Gc extends se{constructor(e){super("w:compatSetting"),this.root.push(new Hc({version:e,uri:"http://schemas.microsoft.com/office/word",name:"compatibilityMode"}))}}class Kc extends se{constructor(e){super("w:compat"),e.version&&this.root.push(new Gc(e.version)),e.useSingleBorderforContiguousCells&&this.root.push(new oe("w:useSingleBorderforContiguousCells",e.useSingleBorderforContiguousCells)),e.wordPerfectJustification&&this.root.push(new oe("w:wpJustification",e.wordPerfectJustification)),e.noTabStopForHangingIndent&&this.root.push(new oe("w:noTabHangInd",e.noTabStopForHangingIndent)),e.noLeading&&this.root.push(new oe("w:noLeading",e.noLeading)),e.spaceForUnderline&&this.root.push(new oe("w:spaceForUL",e.spaceForUnderline)),e.noColumnBalance&&this.root.push(new oe("w:noColumnBalance",e.noColumnBalance)),e.balanceSingleByteDoubleByteWidth&&this.root.push(new oe("w:balanceSingleByteDoubleByteWidth",e.balanceSingleByteDoubleByteWidth)),e.noExtraLineSpacing&&this.root.push(new oe("w:noExtraLineSpacing",e.noExtraLineSpacing)),e.doNotLeaveBackslashAlone&&this.root.push(new oe("w:doNotLeaveBackslashAlone",e.doNotLeaveBackslashAlone)),e.underlineTrailingSpaces&&this.root.push(new oe("w:ulTrailSpace",e.underlineTrailingSpaces)),e.doNotExpandShiftReturn&&this.root.push(new oe("w:doNotExpandShiftReturn",e.doNotExpandShiftReturn)),e.spacingInWholePoints&&this.root.push(new oe("w:spacingInWholePoints",e.spacingInWholePoints)),e.lineWrapLikeWord6&&this.root.push(new oe("w:lineWrapLikeWord6",e.lineWrapLikeWord6)),e.printBodyTextBeforeHeader&&this.root.push(new oe("w:printBodyTextBeforeHeader",e.printBodyTextBeforeHeader)),e.printColorsBlack&&this.root.push(new oe("w:printColBlack",e.printColorsBlack)),e.spaceWidth&&this.root.push(new oe("w:wpSpaceWidth",e.spaceWidth)),e.showBreaksInFrames&&this.root.push(new oe("w:showBreaksInFrames",e.showBreaksInFrames)),e.subFontBySize&&this.root.push(new oe("w:subFontBySize",e.subFontBySize)),e.suppressBottomSpacing&&this.root.push(new oe("w:suppressBottomSpacing",e.suppressBottomSpacing)),e.suppressTopSpacing&&this.root.push(new oe("w:suppressTopSpacing",e.suppressTopSpacing)),e.suppressSpacingAtTopOfPage&&this.root.push(new oe("w:suppressSpacingAtTopOfPage",e.suppressSpacingAtTopOfPage)),e.suppressTopSpacingWP&&this.root.push(new oe("w:suppressTopSpacingWP",e.suppressTopSpacingWP)),e.suppressSpBfAfterPgBrk&&this.root.push(new oe("w:suppressSpBfAfterPgBrk",e.suppressSpBfAfterPgBrk)),e.swapBordersFacingPages&&this.root.push(new oe("w:swapBordersFacingPages",e.swapBordersFacingPages)),e.convertMailMergeEsc&&this.root.push(new oe("w:convMailMergeEsc",e.convertMailMergeEsc)),e.truncateFontHeightsLikeWP6&&this.root.push(new oe("w:truncateFontHeightsLikeWP6",e.truncateFontHeightsLikeWP6)),e.macWordSmallCaps&&this.root.push(new oe("w:mwSmallCaps",e.macWordSmallCaps)),e.usePrinterMetrics&&this.root.push(new oe("w:usePrinterMetrics",e.usePrinterMetrics)),e.doNotSuppressParagraphBorders&&this.root.push(new oe("w:doNotSuppressParagraphBorders",e.doNotSuppressParagraphBorders)),e.wrapTrailSpaces&&this.root.push(new oe("w:wrapTrailSpaces",e.wrapTrailSpaces)),e.footnoteLayoutLikeWW8&&this.root.push(new oe("w:footnoteLayoutLikeWW8",e.footnoteLayoutLikeWW8)),e.shapeLayoutLikeWW8&&this.root.push(new oe("w:shapeLayoutLikeWW8",e.shapeLayoutLikeWW8)),e.alignTablesRowByRow&&this.root.push(new oe("w:alignTablesRowByRow",e.alignTablesRowByRow)),e.forgetLastTabAlignment&&this.root.push(new oe("w:forgetLastTabAlignment",e.forgetLastTabAlignment)),e.adjustLineHeightInTable&&this.root.push(new oe("w:adjustLineHeightInTable",e.adjustLineHeightInTable)),e.autoSpaceLikeWord95&&this.root.push(new oe("w:autoSpaceLikeWord95",e.autoSpaceLikeWord95)),e.noSpaceRaiseLower&&this.root.push(new oe("w:noSpaceRaiseLower",e.noSpaceRaiseLower)),e.doNotUseHTMLParagraphAutoSpacing&&this.root.push(new oe("w:doNotUseHTMLParagraphAutoSpacing",e.doNotUseHTMLParagraphAutoSpacing)),e.layoutRawTableWidth&&this.root.push(new oe("w:layoutRawTableWidth",e.layoutRawTableWidth)),e.layoutTableRowsApart&&this.root.push(new oe("w:layoutTableRowsApart",e.layoutTableRowsApart)),e.useWord97LineBreakRules&&this.root.push(new oe("w:useWord97LineBreakRules",e.useWord97LineBreakRules)),e.doNotBreakWrappedTables&&this.root.push(new oe("w:doNotBreakWrappedTables",e.doNotBreakWrappedTables)),e.doNotSnapToGridInCell&&this.root.push(new oe("w:doNotSnapToGridInCell",e.doNotSnapToGridInCell)),e.selectFieldWithFirstOrLastCharacter&&this.root.push(new oe("w:selectFldWithFirstOrLastChar",e.selectFieldWithFirstOrLastCharacter)),e.applyBreakingRules&&this.root.push(new oe("w:applyBreakingRules",e.applyBreakingRules)),e.doNotWrapTextWithPunctuation&&this.root.push(new oe("w:doNotWrapTextWithPunct",e.doNotWrapTextWithPunctuation)),e.doNotUseEastAsianBreakRules&&this.root.push(new oe("w:doNotUseEastAsianBreakRules",e.doNotUseEastAsianBreakRules)),e.useWord2002TableStyleRules&&this.root.push(new oe("w:useWord2002TableStyleRules",e.useWord2002TableStyleRules)),e.growAutofit&&this.root.push(new oe("w:growAutofit",e.growAutofit)),e.useFELayout&&this.root.push(new oe("w:useFELayout",e.useFELayout)),e.useNormalStyleForList&&this.root.push(new oe("w:useNormalStyleForList",e.useNormalStyleForList)),e.doNotUseIndentAsNumberingTabStop&&this.root.push(new oe("w:doNotUseIndentAsNumberingTabStop",e.doNotUseIndentAsNumberingTabStop)),e.useAlternateEastAsianLineBreakRules&&this.root.push(new oe("w:useAltKinsokuLineBreakRules",e.useAlternateEastAsianLineBreakRules)),e.allowSpaceOfSameStyleInTable&&this.root.push(new oe("w:allowSpaceOfSameStyleInTable",e.allowSpaceOfSameStyleInTable)),e.doNotSuppressIndentation&&this.root.push(new oe("w:doNotSuppressIndentation",e.doNotSuppressIndentation)),e.doNotAutofitConstrainedTables&&this.root.push(new oe("w:doNotAutofitConstrainedTables",e.doNotAutofitConstrainedTables)),e.autofitToFirstFixedWidthCell&&this.root.push(new oe("w:autofitToFirstFixedWidthCell",e.autofitToFirstFixedWidthCell)),e.underlineTabInNumberingList&&this.root.push(new oe("w:underlineTabInNumList",e.underlineTabInNumberingList)),e.displayHangulFixedWidth&&this.root.push(new oe("w:displayHangulFixedWidth",e.displayHangulFixedWidth)),e.splitPgBreakAndParaMark&&this.root.push(new oe("w:splitPgBreakAndParaMark",e.splitPgBreakAndParaMark)),e.doNotVerticallyAlignCellWithSp&&this.root.push(new oe("w:doNotVertAlignCellWithSp",e.doNotVerticallyAlignCellWithSp)),e.doNotBreakConstrainedForcedTable&&this.root.push(new oe("w:doNotBreakConstrainedForcedTable",e.doNotBreakConstrainedForcedTable)),e.ignoreVerticalAlignmentInTextboxes&&this.root.push(new oe("w:doNotVertAlignInTxbx",e.ignoreVerticalAlignmentInTextboxes)),e.useAnsiKerningPairs&&this.root.push(new oe("w:useAnsiKerningPairs",e.useAnsiKerningPairs)),e.cachedColumnBalance&&this.root.push(new oe("w:cachedColBalance",e.cachedColumnBalance))}}class Vc extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",Ignorable:"mc:Ignorable"})}}class qc extends se{constructor(e){var r,a,l,u;super("w:settings"),this.root.push(new Vc({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",Ignorable:"w14 w15 wp14"})),this.root.push(new oe("w:displayBackgroundShape",!0)),e.trackRevisions!==void 0&&this.root.push(new oe("w:trackRevisions",e.trackRevisions)),e.evenAndOddHeaders!==void 0&&this.root.push(new oe("w:evenAndOddHeaders",e.evenAndOddHeaders)),e.updateFields!==void 0&&this.root.push(new oe("w:updateFields",e.updateFields)),e.defaultTabStop!==void 0&&this.root.push(new ii("w:defaultTabStop",e.defaultTabStop)),this.root.push(new Kc(sr(Ee({},(r=e.compatibility)!=null?r:{}),{version:(u=(l=(a=e.compatibility)==null?void 0:a.version)!=null?l:e.compatibilityModeVersion)!=null?u:15})))}}class xa extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{val:"w:val"})}}class Xc extends se{constructor(e){super("w:name"),this.root.push(new xa({val:e}))}}class Yc extends se{constructor(e){super("w:uiPriority"),this.root.push(new xa({val:Ge(e)}))}}class Zc extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{type:"w:type",styleId:"w:styleId",default:"w:default",customStyle:"w:customStyle"})}}class Sa extends se{constructor(e,r){super("w:style"),this.root.push(new Zc(e)),r.name&&this.root.push(new Xc(r.name)),r.basedOn&&this.root.push(new Wt("w:basedOn",r.basedOn)),r.next&&this.root.push(new Wt("w:next",r.next)),r.link&&this.root.push(new Wt("w:link",r.link)),r.uiPriority!==void 0&&this.root.push(new Yc(r.uiPriority)),r.semiHidden!==void 0&&this.root.push(new oe("w:semiHidden",r.semiHidden)),r.unhideWhenUsed!==void 0&&this.root.push(new oe("w:unhideWhenUsed",r.unhideWhenUsed)),r.quickFormat!==void 0&&this.root.push(new oe("w:qFormat",r.quickFormat))}}class Lr extends Sa{constructor(e){super({type:"paragraph",styleId:e.id},e),ie(this,"paragraphProperties"),ie(this,"runProperties"),this.paragraphProperties=new qt(e.paragraph),this.runProperties=new Ct(e.run),this.root.push(this.paragraphProperties),this.root.push(this.runProperties)}}class Fr extends Sa{constructor(e){super({type:"character",styleId:e.id},Ee({uiPriority:99,unhideWhenUsed:!0},e)),ie(this,"runProperties"),this.runProperties=new Ct(e.run),this.root.push(this.runProperties)}}class bt extends Lr{constructor(e){super(Ee({basedOn:"Normal",next:"Normal",quickFormat:!0},e))}}class Qc extends bt{constructor(e){super(Ee({id:"Title",name:"Title"},e))}}class Jc extends bt{constructor(e){super(Ee({id:"Heading1",name:"Heading 1"},e))}}class $c extends bt{constructor(e){super(Ee({id:"Heading2",name:"Heading 2"},e))}}class ef extends bt{constructor(e){super(Ee({id:"Heading3",name:"Heading 3"},e))}}class tf extends bt{constructor(e){super(Ee({id:"Heading4",name:"Heading 4"},e))}}class rf extends bt{constructor(e){super(Ee({id:"Heading5",name:"Heading 5"},e))}}class nf extends bt{constructor(e){super(Ee({id:"Heading6",name:"Heading 6"},e))}}class sf extends bt{constructor(e){super(Ee({id:"Strong",name:"Strong"},e))}}class af extends Lr{constructor(e){super(Ee({id:"ListParagraph",name:"List Paragraph",basedOn:"Normal",quickFormat:!0},e))}}class of extends Lr{constructor(e){super(Ee({id:"FootnoteText",name:"footnote text",link:"FootnoteTextChar",basedOn:"Normal",uiPriority:99,semiHidden:!0,unhideWhenUsed:!0,paragraph:{spacing:{after:0,line:240,lineRule:jn.AUTO}},run:{size:20}},e))}}class uf extends Fr{constructor(e){super(Ee({id:"FootnoteReference",name:"footnote reference",basedOn:"DefaultParagraphFont",semiHidden:!0,run:{superScript:!0}},e))}}class lf extends Fr{constructor(e){super(Ee({id:"FootnoteTextChar",name:"Footnote Text Char",basedOn:"DefaultParagraphFont",link:"FootnoteText",semiHidden:!0,run:{size:20}},e))}}class cf extends Fr{constructor(e){super(Ee({id:"Hyperlink",name:"Hyperlink",basedOn:"DefaultParagraphFont",run:{color:"0563C1",underline:{type:_a.SINGLE}}},e))}}class zn extends se{constructor(e){if(super("w:styles"),e.initialStyles&&this.root.push(e.initialStyles),e.importedStyles)for(const r of e.importedStyles)this.root.push(r);if(e.paragraphStyles)for(const r of e.paragraphStyles)this.root.push(new Lr(r));if(e.characterStyles)for(const r of e.characterStyles)this.root.push(new Fr(r))}}class ff extends se{constructor(e){super("w:pPrDefault"),this.root.push(new qt(e))}}class hf extends se{constructor(e){super("w:rPrDefault"),this.root.push(new Ct(e))}}class df extends se{constructor(e){super("w:docDefaults"),ie(this,"runPropertiesDefaults"),ie(this,"paragraphPropertiesDefaults"),this.runPropertiesDefaults=new hf(e.run),this.paragraphPropertiesDefaults=new ff(e.paragraph),this.root.push(this.runPropertiesDefaults),this.root.push(this.paragraphPropertiesDefaults)}}class pf{newInstance(e){const r=pa.xml2js(e,{compact:!1});let a;for(const o of r.elements||[])o.name==="w:styles"&&(a=o);if(a===void 0)throw new Error("can not find styles element");const l=a.elements||[];return new zn({initialStyles:new gu(a.attributes),importedStyles:l.map(o=>ni(o))})}}class bs{newInstance(e={}){var r;return{initialStyles:new ur({mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",Ignorable:"w14 w15"}),importedStyles:[new df((r=e.document)!=null?r:{}),new Qc(Ee({run:{size:56}},e.title)),new Jc(Ee({run:{color:"2E74B5",size:32}},e.heading1)),new $c(Ee({run:{color:"2E74B5",size:26}},e.heading2)),new ef(Ee({run:{color:"1F4D78",size:24}},e.heading3)),new tf(Ee({run:{color:"2E74B5",italics:!0}},e.heading4)),new rf(Ee({run:{color:"2E74B5"}},e.heading5)),new nf(Ee({run:{color:"1F4D78"}},e.heading6)),new sf(Ee({run:{bold:!0}},e.strong)),new af(e.listParagraph||{}),new cf(e.hyperlink||{}),new uf(e.footnoteReference||{}),new of(e.footnoteText||{}),new lf(e.footnoteTextChar||{})]}}}const wr=({id:t,fontKey:e,subsetted:r},a)=>new vt({name:a,attributes:Ee({id:{key:"r:id",value:t}},e?{fontKey:{key:"w:fontKey",value:`{${e}}`}}:{}),children:[...r?[new oe("w:subsetted",r)]:[]]}),mf=({name:t,altName:e,panose1:r,charset:a,family:l,notTrueType:u,pitch:o,sig:i,embedRegular:c,embedBold:w,embedItalic:y,embedBoldItalic:x})=>new vt({name:"w:font",attributes:{name:{key:"w:name",value:t}},children:[...e?[tr("w:altName",e)]:[],...r?[tr("w:panose1",r)]:[],...a?[tr("w:charset",a)]:[],...l?[tr("w:family",l)]:[],...u?[new oe("w:notTrueType",u)]:[],...o?[tr("w:pitch",o)]:[],...i?[new vt({name:"w:sig",attributes:{usb0:{key:"w:usb0",value:i.usb0},usb1:{key:"w:usb1",value:i.usb1},usb2:{key:"w:usb2",value:i.usb2},usb3:{key:"w:usb3",value:i.usb3},csb0:{key:"w:csb0",value:i.csb0},csb1:{key:"w:csb1",value:i.csb1}}})]:[],...c?[wr(c,"w:embedRegular")]:[],...w?[wr(w,"w:embedBold")]:[],...y?[wr(y,"w:embedItalic")]:[],...x?[wr(x,"w:embedBoldItalic")]:[]]}),gf=({name:t,index:e,fontKey:r,characterSet:a})=>mf({name:t,sig:{usb0:"E0002AFF",usb1:"C000247B",usb2:"00000009",usb3:"00000000",csb0:"000001FF",csb1:"00000000"},charset:a,family:"auto",pitch:"variable",embedRegular:{fontKey:r,id:`rId${e}`}}),wf=t=>new vt({name:"w:fonts",attributes:{mc:{key:"xmlns:mc",value:"http://schemas.openxmlformats.org/markup-compatibility/2006"},r:{key:"xmlns:r",value:"http://schemas.openxmlformats.org/officeDocument/2006/relationships"},w:{key:"xmlns:w",value:"http://schemas.openxmlformats.org/wordprocessingml/2006/main"},w14:{key:"xmlns:w14",value:"http://schemas.microsoft.com/office/word/2010/wordml"},w15:{key:"xmlns:w15",value:"http://schemas.microsoft.com/office/word/2012/wordml"},w16cex:{key:"xmlns:w16cex",value:"http://schemas.microsoft.com/office/word/2018/wordml/cex"},w16cid:{key:"xmlns:w16cid",value:"http://schemas.microsoft.com/office/word/2016/wordml/cid"},w16:{key:"xmlns:w16",value:"http://schemas.microsoft.com/office/word/2018/wordml"},w16sdtdh:{key:"xmlns:w16sdtdh",value:"http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash"},w16se:{key:"xmlns:w16se",value:"http://schemas.microsoft.com/office/word/2015/wordml/symex"},Ignorable:{key:"mc:Ignorable",value:"w14 w15 w16se w16cid w16 w16cex w16sdtdh"}},children:t.map((e,r)=>gf({name:e.name,index:r+1,fontKey:e.fontKey}))});class yf{constructor(e){ie(this,"fontTable"),ie(this,"relationships"),ie(this,"fontOptionsWithKey",[]),this.options=e,this.fontOptionsWithKey=e.map(r=>sr(Ee({},r),{fontKey:$u()})),this.fontTable=wf(this.fontOptionsWithKey),this.relationships=new Zt;for(let r=0;re.header)}get Footers(){return this.footers.map(e=>e.footer)}get ContentTypes(){return this.contentTypes}get CustomProperties(){return this.customProperties}get AppProperties(){return this.appProperties}get FootNotes(){return this.footnotesWrapper}get Settings(){return this.settings}get Comments(){return this.comments}get FontTable(){return this.fontWrapper}}function yr(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Aa={exports:{}};(function(t,e){(function(r){t.exports=r()})(function(){return function r(a,l,u){function o(w,y){if(!l[w]){if(!a[w]){var x=typeof yr=="function"&&yr;if(!y&&x)return x(w,!0);if(i)return i(w,!0);var _=new Error("Cannot find module '"+w+"'");throw _.code="MODULE_NOT_FOUND",_}var p=l[w]={exports:{}};a[w][0].call(p.exports,function(T){var v=a[w][1][T];return o(v||T)},p,p.exports,r,a,l,u)}return l[w].exports}for(var i=typeof yr=="function"&&yr,c=0;c>2,p=(3&w)<<4|y>>4,T=1>6:64,v=2>4,y=(15&_)<<4|(p=i.indexOf(c.charAt(v++)))>>2,x=(3&p)<<6|(T=i.indexOf(c.charAt(v++))),S[E++]=w,p!==64&&(S[E++]=y),T!==64&&(S[E++]=x);return S}},{"./support":30,"./utils":32}],2:[function(r,a,l){var u=r("./external"),o=r("./stream/DataWorker"),i=r("./stream/Crc32Probe"),c=r("./stream/DataLengthProbe");function w(y,x,_,p,T){this.compressedSize=y,this.uncompressedSize=x,this.crc32=_,this.compression=p,this.compressedContent=T}w.prototype={getContentWorker:function(){var y=new o(u.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new c("data_length")),x=this;return y.on("end",function(){if(this.streamInfo.data_length!==x.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),y},getCompressedWorker:function(){return new o(u.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},w.createWorkerFrom=function(y,x,_){return y.pipe(new i).pipe(new c("uncompressedSize")).pipe(x.compressWorker(_)).pipe(new c("compressedSize")).withStreamInfo("compression",x)},a.exports=w},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(r,a,l){var u=r("./stream/GenericWorker");l.STORE={magic:"\0\0",compressWorker:function(){return new u("STORE compression")},uncompressWorker:function(){return new u("STORE decompression")}},l.DEFLATE=r("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(r,a,l){var u=r("./utils"),o=function(){for(var i,c=[],w=0;w<256;w++){i=w;for(var y=0;y<8;y++)i=1&i?3988292384^i>>>1:i>>>1;c[w]=i}return c}();a.exports=function(i,c){return i!==void 0&&i.length?u.getTypeOf(i)!=="string"?function(w,y,x,_){var p=o,T=_+x;w^=-1;for(var v=_;v>>8^p[255&(w^y[v])];return-1^w}(0|c,i,i.length,0):function(w,y,x,_){var p=o,T=_+x;w^=-1;for(var v=_;v>>8^p[255&(w^y.charCodeAt(v))];return-1^w}(0|c,i,i.length,0):0}},{"./utils":32}],5:[function(r,a,l){l.base64=!1,l.binary=!1,l.dir=!1,l.createFolders=!0,l.date=null,l.compression=null,l.compressionOptions=null,l.comment=null,l.unixPermissions=null,l.dosPermissions=null},{}],6:[function(r,a,l){var u=null;u=typeof Promise<"u"?Promise:r("lie"),a.exports={Promise:u}},{lie:37}],7:[function(r,a,l){var u=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",o=r("pako"),i=r("./utils"),c=r("./stream/GenericWorker"),w=u?"uint8array":"array";function y(x,_){c.call(this,"FlateWorker/"+x),this._pako=null,this._pakoAction=x,this._pakoOptions=_,this.meta={}}l.magic="\b\0",i.inherits(y,c),y.prototype.processChunk=function(x){this.meta=x.meta,this._pako===null&&this._createPako(),this._pako.push(i.transformTo(w,x.data),!1)},y.prototype.flush=function(){c.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},y.prototype.cleanUp=function(){c.prototype.cleanUp.call(this),this._pako=null},y.prototype._createPako=function(){this._pako=new o[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var x=this;this._pako.onData=function(_){x.push({data:_,meta:x.meta})}},l.compressWorker=function(x){return new y("Deflate",x)},l.uncompressWorker=function(){return new y("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(r,a,l){function u(p,T){var v,E="";for(v=0;v>>=8;return E}function o(p,T,v,E,d,S){var R,D,C=p.file,V=p.compression,H=S!==w.utf8encode,J=i.transformTo("string",S(C.name)),I=i.transformTo("string",w.utf8encode(C.name)),re=C.comment,ue=i.transformTo("string",S(re)),L=i.transformTo("string",w.utf8encode(re)),q=I.length!==C.name.length,A=L.length!==re.length,Z="",le="",Y="",de=C.dir,K=C.date,ce={crc32:0,compressedSize:0,uncompressedSize:0};T&&!v||(ce.crc32=p.crc32,ce.compressedSize=p.compressedSize,ce.uncompressedSize=p.uncompressedSize);var G=0;T&&(G|=8),H||!q&&!A||(G|=2048);var N=0,W=0;de&&(N|=16),d==="UNIX"?(W=798,N|=function($,j){var g=$;return $||(g=j?16893:33204),(65535&g)<<16}(C.unixPermissions,de)):(W=20,N|=function($){return 63&($||0)}(C.dosPermissions)),R=K.getUTCHours(),R<<=6,R|=K.getUTCMinutes(),R<<=5,R|=K.getUTCSeconds()/2,D=K.getUTCFullYear()-1980,D<<=4,D|=K.getUTCMonth()+1,D<<=5,D|=K.getUTCDate(),q&&(le=u(1,1)+u(y(J),4)+I,Z+="up"+u(le.length,2)+le),A&&(Y=u(1,1)+u(y(ue),4)+L,Z+="uc"+u(Y.length,2)+Y);var z="";return z+=` -\0`,z+=u(G,2),z+=V.magic,z+=u(R,2),z+=u(D,2),z+=u(ce.crc32,4),z+=u(ce.compressedSize,4),z+=u(ce.uncompressedSize,4),z+=u(J.length,2),z+=u(Z.length,2),{fileRecord:x.LOCAL_FILE_HEADER+z+J+Z,dirRecord:x.CENTRAL_FILE_HEADER+u(W,2)+z+u(ue.length,2)+"\0\0\0\0"+u(N,4)+u(E,4)+J+Z+ue}}var i=r("../utils"),c=r("../stream/GenericWorker"),w=r("../utf8"),y=r("../crc32"),x=r("../signature");function _(p,T,v,E){c.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=T,this.zipPlatform=v,this.encodeFileName=E,this.streamFiles=p,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}i.inherits(_,c),_.prototype.push=function(p){var T=p.meta.percent||0,v=this.entriesCount,E=this._sources.length;this.accumulate?this.contentBuffer.push(p):(this.bytesWritten+=p.data.length,c.prototype.push.call(this,{data:p.data,meta:{currentFile:this.currentFile,percent:v?(T+100*(v-E-1))/v:100}}))},_.prototype.openedSource=function(p){this.currentSourceOffset=this.bytesWritten,this.currentFile=p.file.name;var T=this.streamFiles&&!p.file.dir;if(T){var v=o(p,T,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:v.fileRecord,meta:{percent:0}})}else this.accumulate=!0},_.prototype.closedSource=function(p){this.accumulate=!1;var T=this.streamFiles&&!p.file.dir,v=o(p,T,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(v.dirRecord),T)this.push({data:function(E){return x.DATA_DESCRIPTOR+u(E.crc32,4)+u(E.compressedSize,4)+u(E.uncompressedSize,4)}(p),meta:{percent:100}});else for(this.push({data:v.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},_.prototype.flush=function(){for(var p=this.bytesWritten,T=0;T=this.index;c--)w=(w<<8)+this.byteAt(c);return this.index+=i,w},readString:function(i){return u.transformTo("string",this.readData(i))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var i=this.readInt(4);return new Date(Date.UTC(1980+(i>>25&127),(i>>21&15)-1,i>>16&31,i>>11&31,i>>5&63,(31&i)<<1))}},a.exports=o},{"../utils":32}],19:[function(r,a,l){var u=r("./Uint8ArrayReader");function o(i){u.call(this,i)}r("../utils").inherits(o,u),o.prototype.readData=function(i){this.checkOffset(i);var c=this.data.slice(this.zero+this.index,this.zero+this.index+i);return this.index+=i,c},a.exports=o},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(r,a,l){var u=r("./DataReader");function o(i){u.call(this,i)}r("../utils").inherits(o,u),o.prototype.byteAt=function(i){return this.data.charCodeAt(this.zero+i)},o.prototype.lastIndexOfSignature=function(i){return this.data.lastIndexOf(i)-this.zero},o.prototype.readAndCheckSignature=function(i){return i===this.readData(4)},o.prototype.readData=function(i){this.checkOffset(i);var c=this.data.slice(this.zero+this.index,this.zero+this.index+i);return this.index+=i,c},a.exports=o},{"../utils":32,"./DataReader":18}],21:[function(r,a,l){var u=r("./ArrayReader");function o(i){u.call(this,i)}r("../utils").inherits(o,u),o.prototype.readData=function(i){if(this.checkOffset(i),i===0)return new Uint8Array(0);var c=this.data.subarray(this.zero+this.index,this.zero+this.index+i);return this.index+=i,c},a.exports=o},{"../utils":32,"./ArrayReader":17}],22:[function(r,a,l){var u=r("../utils"),o=r("../support"),i=r("./ArrayReader"),c=r("./StringReader"),w=r("./NodeBufferReader"),y=r("./Uint8ArrayReader");a.exports=function(x){var _=u.getTypeOf(x);return u.checkSupport(_),_!=="string"||o.uint8array?_==="nodebuffer"?new w(x):o.uint8array?new y(u.transformTo("uint8array",x)):new i(u.transformTo("array",x)):new c(x)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(r,a,l){l.LOCAL_FILE_HEADER="PK",l.CENTRAL_FILE_HEADER="PK",l.CENTRAL_DIRECTORY_END="PK",l.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",l.ZIP64_CENTRAL_DIRECTORY_END="PK",l.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(r,a,l){var u=r("./GenericWorker"),o=r("../utils");function i(c){u.call(this,"ConvertWorker to "+c),this.destType=c}o.inherits(i,u),i.prototype.processChunk=function(c){this.push({data:o.transformTo(this.destType,c.data),meta:c.meta})},a.exports=i},{"../utils":32,"./GenericWorker":28}],25:[function(r,a,l){var u=r("./GenericWorker"),o=r("../crc32");function i(){u.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}r("../utils").inherits(i,u),i.prototype.processChunk=function(c){this.streamInfo.crc32=o(c.data,this.streamInfo.crc32||0),this.push(c)},a.exports=i},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(r,a,l){var u=r("../utils"),o=r("./GenericWorker");function i(c){o.call(this,"DataLengthProbe for "+c),this.propName=c,this.withStreamInfo(c,0)}u.inherits(i,o),i.prototype.processChunk=function(c){if(c){var w=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=w+c.data.length}o.prototype.processChunk.call(this,c)},a.exports=i},{"../utils":32,"./GenericWorker":28}],27:[function(r,a,l){var u=r("../utils"),o=r("./GenericWorker");function i(c){o.call(this,"DataWorker");var w=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,c.then(function(y){w.dataIsReady=!0,w.data=y,w.max=y&&y.length||0,w.type=u.getTypeOf(y),w.isPaused||w._tickAndRepeat()},function(y){w.error(y)})}u.inherits(i,o),i.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this.data=null},i.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,u.delay(this._tickAndRepeat,[],this)),!0)},i.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(u.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},i.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var c=null,w=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":c=this.data.substring(this.index,w);break;case"uint8array":c=this.data.subarray(this.index,w);break;case"array":case"nodebuffer":c=this.data.slice(this.index,w)}return this.index=w,this.push({data:c,meta:{percent:this.max?this.index/this.max*100:0}})},a.exports=i},{"../utils":32,"./GenericWorker":28}],28:[function(r,a,l){function u(o){this.name=o||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}u.prototype={push:function(o){this.emit("data",o)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(o){this.emit("error",o)}return!0},error:function(o){return!this.isFinished&&(this.isPaused?this.generatedError=o:(this.isFinished=!0,this.emit("error",o),this.previous&&this.previous.error(o),this.cleanUp()),!0)},on:function(o,i){return this._listeners[o].push(i),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(o,i){if(this._listeners[o])for(var c=0;c "+o:o}},a.exports=u},{}],29:[function(r,a,l){var u=r("../utils"),o=r("./ConvertWorker"),i=r("./GenericWorker"),c=r("../base64"),w=r("../support"),y=r("../external"),x=null;if(w.nodestream)try{x=r("../nodejs/NodejsStreamOutputAdapter")}catch{}function _(T,v){return new y.Promise(function(E,d){var S=[],R=T._internalType,D=T._outputType,C=T._mimeType;T.on("data",function(V,H){S.push(V),v&&v(H)}).on("error",function(V){S=[],d(V)}).on("end",function(){try{var V=function(H,J,I){switch(H){case"blob":return u.newBlob(u.transformTo("arraybuffer",J),I);case"base64":return c.encode(J);default:return u.transformTo(H,J)}}(D,function(H,J){var I,re=0,ue=null,L=0;for(I=0;I"u")l.blob=!1;else{var u=new ArrayBuffer(0);try{l.blob=new Blob([u],{type:"application/zip"}).size===0}catch{try{var o=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);o.append(u),l.blob=o.getBlob("application/zip").size===0}catch{l.blob=!1}}}try{l.nodestream=!!r("readable-stream").Readable}catch{l.nodestream=!1}},{"readable-stream":16}],31:[function(r,a,l){for(var u=r("./utils"),o=r("./support"),i=r("./nodejsUtils"),c=r("./stream/GenericWorker"),w=new Array(256),y=0;y<256;y++)w[y]=252<=y?6:248<=y?5:240<=y?4:224<=y?3:192<=y?2:1;w[254]=w[254]=1;function x(){c.call(this,"utf-8 decode"),this.leftOver=null}function _(){c.call(this,"utf-8 encode")}l.utf8encode=function(p){return o.nodebuffer?i.newBufferFrom(p,"utf-8"):function(T){var v,E,d,S,R,D=T.length,C=0;for(S=0;S>>6:(E<65536?v[R++]=224|E>>>12:(v[R++]=240|E>>>18,v[R++]=128|E>>>12&63),v[R++]=128|E>>>6&63),v[R++]=128|63&E);return v}(p)},l.utf8decode=function(p){return o.nodebuffer?u.transformTo("nodebuffer",p).toString("utf-8"):function(T){var v,E,d,S,R=T.length,D=new Array(2*R);for(v=E=0;v>10&1023,D[E++]=56320|1023&d)}return D.length!==E&&(D.subarray?D=D.subarray(0,E):D.length=E),u.applyFromCharCode(D)}(p=u.transformTo(o.uint8array?"uint8array":"array",p))},u.inherits(x,c),x.prototype.processChunk=function(p){var T=u.transformTo(o.uint8array?"uint8array":"array",p.data);if(this.leftOver&&this.leftOver.length){if(o.uint8array){var v=T;(T=new Uint8Array(v.length+this.leftOver.length)).set(this.leftOver,0),T.set(v,this.leftOver.length)}else T=this.leftOver.concat(T);this.leftOver=null}var E=function(S,R){var D;for((R=R||S.length)>S.length&&(R=S.length),D=R-1;0<=D&&(192&S[D])==128;)D--;return D<0||D===0?R:D+w[S[D]]>R?D:R}(T),d=T;E!==T.length&&(o.uint8array?(d=T.subarray(0,E),this.leftOver=T.subarray(E,T.length)):(d=T.slice(0,E),this.leftOver=T.slice(E,T.length))),this.push({data:l.utf8decode(d),meta:p.meta})},x.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:l.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},l.Utf8DecodeWorker=x,u.inherits(_,c),_.prototype.processChunk=function(p){this.push({data:l.utf8encode(p.data),meta:p.meta})},l.Utf8EncodeWorker=_},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(r,a,l){var u=r("./support"),o=r("./base64"),i=r("./nodejsUtils"),c=r("./external");function w(v){return v}function y(v,E){for(var d=0;d>8;this.dir=!!(16&this.externalFileAttributes),p==0&&(this.dosPermissions=63&this.externalFileAttributes),p==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var p=u(this.extraFields[1].value);this.uncompressedSize===o.MAX_VALUE_32BITS&&(this.uncompressedSize=p.readInt(8)),this.compressedSize===o.MAX_VALUE_32BITS&&(this.compressedSize=p.readInt(8)),this.localHeaderOffset===o.MAX_VALUE_32BITS&&(this.localHeaderOffset=p.readInt(8)),this.diskNumberStart===o.MAX_VALUE_32BITS&&(this.diskNumberStart=p.readInt(4))}},readExtraFields:function(p){var T,v,E,d=p.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});p.index+4>>6:(p<65536?_[E++]=224|p>>>12:(_[E++]=240|p>>>18,_[E++]=128|p>>>12&63),_[E++]=128|p>>>6&63),_[E++]=128|63&p);return _},l.buf2binstring=function(x){return y(x,x.length)},l.binstring2buf=function(x){for(var _=new u.Buf8(x.length),p=0,T=_.length;p>10&1023,S[T++]=56320|1023&v)}return y(S,T)},l.utf8border=function(x,_){var p;for((_=_||x.length)>x.length&&(_=x.length),p=_-1;0<=p&&(192&x[p])==128;)p--;return p<0||p===0?_:p+c[x[p]]>_?p:_}},{"./common":41}],43:[function(r,a,l){a.exports=function(u,o,i,c){for(var w=65535&u|0,y=u>>>16&65535|0,x=0;i!==0;){for(i-=x=2e3>>1:o>>>1;i[c]=o}return i}();a.exports=function(o,i,c,w){var y=u,x=w+c;o^=-1;for(var _=w;_>>8^y[255&(o^i[_])];return-1^o}},{}],46:[function(r,a,l){var u,o=r("../utils/common"),i=r("./trees"),c=r("./adler32"),w=r("./crc32"),y=r("./messages"),x=0,_=4,p=0,T=-2,v=-1,E=4,d=2,S=8,R=9,D=286,C=30,V=19,H=2*D+1,J=15,I=3,re=258,ue=re+I+1,L=42,q=113,A=1,Z=2,le=3,Y=4;function de(h,X){return h.msg=y[X],X}function K(h){return(h<<1)-(4h.avail_out&&(b=h.avail_out),b!==0&&(o.arraySet(h.output,X.pending_buf,X.pending_out,b,h.next_out),h.next_out+=b,X.pending_out+=b,h.total_out+=b,h.avail_out-=b,X.pending-=b,X.pending===0&&(X.pending_out=0))}function N(h,X){i._tr_flush_block(h,0<=h.block_start?h.block_start:-1,h.strstart-h.block_start,X),h.block_start=h.strstart,G(h.strm)}function W(h,X){h.pending_buf[h.pending++]=X}function z(h,X){h.pending_buf[h.pending++]=X>>>8&255,h.pending_buf[h.pending++]=255&X}function $(h,X){var b,n,s=h.max_chain_length,f=h.strstart,P=h.prev_length,U=h.nice_match,B=h.strstart>h.w_size-ue?h.strstart-(h.w_size-ue):0,te=h.window,ae=h.w_mask,ne=h.prev,fe=h.strstart+re,pe=te[f+P-1],me=te[f+P];h.prev_length>=h.good_match&&(s>>=2),U>h.lookahead&&(U=h.lookahead);do if(te[(b=X)+P]===me&&te[b+P-1]===pe&&te[b]===te[f]&&te[++b]===te[f+1]){f+=2,b++;do;while(te[++f]===te[++b]&&te[++f]===te[++b]&&te[++f]===te[++b]&&te[++f]===te[++b]&&te[++f]===te[++b]&&te[++f]===te[++b]&&te[++f]===te[++b]&&te[++f]===te[++b]&&fB&&--s!=0);return P<=h.lookahead?P:h.lookahead}function j(h){var X,b,n,s,f,P,U,B,te,ae,ne=h.w_size;do{if(s=h.window_size-h.lookahead-h.strstart,h.strstart>=ne+(ne-ue)){for(o.arraySet(h.window,h.window,ne,ne,0),h.match_start-=ne,h.strstart-=ne,h.block_start-=ne,X=b=h.hash_size;n=h.head[--X],h.head[X]=ne<=n?n-ne:0,--b;);for(X=b=ne;n=h.prev[--X],h.prev[X]=ne<=n?n-ne:0,--b;);s+=ne}if(h.strm.avail_in===0)break;if(P=h.strm,U=h.window,B=h.strstart+h.lookahead,te=s,ae=void 0,ae=P.avail_in,te=I)for(f=h.strstart-h.insert,h.ins_h=h.window[f],h.ins_h=(h.ins_h<=I&&(h.ins_h=(h.ins_h<=I)if(n=i._tr_tally(h,h.strstart-h.match_start,h.match_length-I),h.lookahead-=h.match_length,h.match_length<=h.max_lazy_match&&h.lookahead>=I){for(h.match_length--;h.strstart++,h.ins_h=(h.ins_h<=I&&(h.ins_h=(h.ins_h<=I&&h.match_length<=h.prev_length){for(s=h.strstart+h.lookahead-I,n=i._tr_tally(h,h.strstart-1-h.prev_match,h.prev_length-I),h.lookahead-=h.prev_length-1,h.prev_length-=2;++h.strstart<=s&&(h.ins_h=(h.ins_h<h.pending_buf_size-5&&(b=h.pending_buf_size-5);;){if(h.lookahead<=1){if(j(h),h.lookahead===0&&X===x)return A;if(h.lookahead===0)break}h.strstart+=h.lookahead,h.lookahead=0;var n=h.block_start+b;if((h.strstart===0||h.strstart>=n)&&(h.lookahead=h.strstart-n,h.strstart=n,N(h,!1),h.strm.avail_out===0)||h.strstart-h.block_start>=h.w_size-ue&&(N(h,!1),h.strm.avail_out===0))return A}return h.insert=0,X===_?(N(h,!0),h.strm.avail_out===0?le:Y):(h.strstart>h.block_start&&(N(h,!1),h.strm.avail_out),A)}),new M(4,4,8,4,g),new M(4,5,16,8,g),new M(4,6,32,32,g),new M(4,4,16,16,m),new M(8,16,32,32,m),new M(8,16,128,128,m),new M(8,32,128,256,m),new M(32,128,258,1024,m),new M(32,258,258,4096,m)],l.deflateInit=function(h,X){return Q(h,X,S,15,8,0)},l.deflateInit2=Q,l.deflateReset=O,l.deflateResetKeep=k,l.deflateSetHeader=function(h,X){return h&&h.state?h.state.wrap!==2?T:(h.state.gzhead=X,p):T},l.deflate=function(h,X){var b,n,s,f;if(!h||!h.state||5>8&255),W(n,n.gzhead.time>>16&255),W(n,n.gzhead.time>>24&255),W(n,n.level===9?2:2<=n.strategy||n.level<2?4:0),W(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(W(n,255&n.gzhead.extra.length),W(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(h.adler=w(h.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69):(W(n,0),W(n,0),W(n,0),W(n,0),W(n,0),W(n,n.level===9?2:2<=n.strategy||n.level<2?4:0),W(n,3),n.status=q);else{var P=S+(n.w_bits-8<<4)<<8;P|=(2<=n.strategy||n.level<2?0:n.level<6?1:n.level===6?2:3)<<6,n.strstart!==0&&(P|=32),P+=31-P%31,n.status=q,z(n,P),n.strstart!==0&&(z(n,h.adler>>>16),z(n,65535&h.adler)),h.adler=1}if(n.status===69)if(n.gzhead.extra){for(s=n.pending;n.gzindex<(65535&n.gzhead.extra.length)&&(n.pending!==n.pending_buf_size||(n.gzhead.hcrc&&n.pending>s&&(h.adler=w(h.adler,n.pending_buf,n.pending-s,s)),G(h),s=n.pending,n.pending!==n.pending_buf_size));)W(n,255&n.gzhead.extra[n.gzindex]),n.gzindex++;n.gzhead.hcrc&&n.pending>s&&(h.adler=w(h.adler,n.pending_buf,n.pending-s,s)),n.gzindex===n.gzhead.extra.length&&(n.gzindex=0,n.status=73)}else n.status=73;if(n.status===73)if(n.gzhead.name){s=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>s&&(h.adler=w(h.adler,n.pending_buf,n.pending-s,s)),G(h),s=n.pending,n.pending===n.pending_buf_size)){f=1;break}f=n.gzindexs&&(h.adler=w(h.adler,n.pending_buf,n.pending-s,s)),f===0&&(n.gzindex=0,n.status=91)}else n.status=91;if(n.status===91)if(n.gzhead.comment){s=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>s&&(h.adler=w(h.adler,n.pending_buf,n.pending-s,s)),G(h),s=n.pending,n.pending===n.pending_buf_size)){f=1;break}f=n.gzindexs&&(h.adler=w(h.adler,n.pending_buf,n.pending-s,s)),f===0&&(n.status=103)}else n.status=103;if(n.status===103&&(n.gzhead.hcrc?(n.pending+2>n.pending_buf_size&&G(h),n.pending+2<=n.pending_buf_size&&(W(n,255&h.adler),W(n,h.adler>>8&255),h.adler=0,n.status=q)):n.status=q),n.pending!==0){if(G(h),h.avail_out===0)return n.last_flush=-1,p}else if(h.avail_in===0&&K(X)<=K(b)&&X!==_)return de(h,-5);if(n.status===666&&h.avail_in!==0)return de(h,-5);if(h.avail_in!==0||n.lookahead!==0||X!==x&&n.status!==666){var U=n.strategy===2?function(B,te){for(var ae;;){if(B.lookahead===0&&(j(B),B.lookahead===0)){if(te===x)return A;break}if(B.match_length=0,ae=i._tr_tally(B,0,B.window[B.strstart]),B.lookahead--,B.strstart++,ae&&(N(B,!1),B.strm.avail_out===0))return A}return B.insert=0,te===_?(N(B,!0),B.strm.avail_out===0?le:Y):B.last_lit&&(N(B,!1),B.strm.avail_out===0)?A:Z}(n,X):n.strategy===3?function(B,te){for(var ae,ne,fe,pe,me=B.window;;){if(B.lookahead<=re){if(j(B),B.lookahead<=re&&te===x)return A;if(B.lookahead===0)break}if(B.match_length=0,B.lookahead>=I&&0B.lookahead&&(B.match_length=B.lookahead)}if(B.match_length>=I?(ae=i._tr_tally(B,1,B.match_length-I),B.lookahead-=B.match_length,B.strstart+=B.match_length,B.match_length=0):(ae=i._tr_tally(B,0,B.window[B.strstart]),B.lookahead--,B.strstart++),ae&&(N(B,!1),B.strm.avail_out===0))return A}return B.insert=0,te===_?(N(B,!0),B.strm.avail_out===0?le:Y):B.last_lit&&(N(B,!1),B.strm.avail_out===0)?A:Z}(n,X):u[n.level].func(n,X);if(U!==le&&U!==Y||(n.status=666),U===A||U===le)return h.avail_out===0&&(n.last_flush=-1),p;if(U===Z&&(X===1?i._tr_align(n):X!==5&&(i._tr_stored_block(n,0,0,!1),X===3&&(ce(n.head),n.lookahead===0&&(n.strstart=0,n.block_start=0,n.insert=0))),G(h),h.avail_out===0))return n.last_flush=-1,p}return X!==_?p:n.wrap<=0?1:(n.wrap===2?(W(n,255&h.adler),W(n,h.adler>>8&255),W(n,h.adler>>16&255),W(n,h.adler>>24&255),W(n,255&h.total_in),W(n,h.total_in>>8&255),W(n,h.total_in>>16&255),W(n,h.total_in>>24&255)):(z(n,h.adler>>>16),z(n,65535&h.adler)),G(h),0=b.w_size&&(f===0&&(ce(b.head),b.strstart=0,b.block_start=0,b.insert=0),te=new o.Buf8(b.w_size),o.arraySet(te,X,ae-b.w_size,b.w_size,0),X=te,ae=b.w_size),P=h.avail_in,U=h.next_in,B=h.input,h.avail_in=ae,h.next_in=0,h.input=X,j(b);b.lookahead>=I;){for(n=b.strstart,s=b.lookahead-(I-1);b.ins_h=(b.ins_h<>>=I=J>>>24,R-=I,(I=J>>>16&255)===0)Z[y++]=65535&J;else{if(!(16&I)){if(!(64&I)){J=D[(65535&J)+(S&(1<>>=I,R-=I),R<15&&(S+=A[c++]<>>=I=J>>>24,R-=I,!(16&(I=J>>>16&255))){if(!(64&I)){J=C[(65535&J)+(S&(1<>>=I,R-=I,(I=y-x)>3,S&=(1<<(R-=re<<3))-1,u.next_in=c,u.next_out=y,u.avail_in=c>>24&255)+(L>>>8&65280)+((65280&L)<<8)+((255&L)<<24)}function S(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new u.Buf16(320),this.work=new u.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function R(L){var q;return L&&L.state?(q=L.state,L.total_in=L.total_out=q.total=0,L.msg="",q.wrap&&(L.adler=1&q.wrap),q.mode=T,q.last=0,q.havedict=0,q.dmax=32768,q.head=null,q.hold=0,q.bits=0,q.lencode=q.lendyn=new u.Buf32(v),q.distcode=q.distdyn=new u.Buf32(E),q.sane=1,q.back=-1,_):p}function D(L){var q;return L&&L.state?((q=L.state).wsize=0,q.whave=0,q.wnext=0,R(L)):p}function C(L,q){var A,Z;return L&&L.state?(Z=L.state,q<0?(A=0,q=-q):(A=1+(q>>4),q<48&&(q&=15)),q&&(q<8||15=Y.wsize?(u.arraySet(Y.window,q,A-Y.wsize,Y.wsize,0),Y.wnext=0,Y.whave=Y.wsize):(Z<(le=Y.wsize-Y.wnext)&&(le=Z),u.arraySet(Y.window,q,A-Z,le,Y.wnext),(Z-=le)?(u.arraySet(Y.window,q,A-Z,Z,0),Y.wnext=Z,Y.whave=Y.wsize):(Y.wnext+=le,Y.wnext===Y.wsize&&(Y.wnext=0),Y.whave>>8&255,A.check=i(A.check,f,2,0),N=G=0,A.mode=2;break}if(A.flags=0,A.head&&(A.head.done=!1),!(1&A.wrap)||(((255&G)<<8)+(G>>8))%31){L.msg="incorrect header check",A.mode=30;break}if((15&G)!=8){L.msg="unknown compression method",A.mode=30;break}if(N-=4,h=8+(15&(G>>>=4)),A.wbits===0)A.wbits=h;else if(h>A.wbits){L.msg="invalid window size",A.mode=30;break}A.dmax=1<>8&1),512&A.flags&&(f[0]=255&G,f[1]=G>>>8&255,A.check=i(A.check,f,2,0)),N=G=0,A.mode=3;case 3:for(;N<32;){if(K===0)break e;K--,G+=Z[Y++]<>>8&255,f[2]=G>>>16&255,f[3]=G>>>24&255,A.check=i(A.check,f,4,0)),N=G=0,A.mode=4;case 4:for(;N<16;){if(K===0)break e;K--,G+=Z[Y++]<>8),512&A.flags&&(f[0]=255&G,f[1]=G>>>8&255,A.check=i(A.check,f,2,0)),N=G=0,A.mode=5;case 5:if(1024&A.flags){for(;N<16;){if(K===0)break e;K--,G+=Z[Y++]<>>8&255,A.check=i(A.check,f,2,0)),N=G=0}else A.head&&(A.head.extra=null);A.mode=6;case 6:if(1024&A.flags&&(K<($=A.length)&&($=K),$&&(A.head&&(h=A.head.extra_len-A.length,A.head.extra||(A.head.extra=new Array(A.head.extra_len)),u.arraySet(A.head.extra,Z,Y,$,h)),512&A.flags&&(A.check=i(A.check,Z,$,Y)),K-=$,Y+=$,A.length-=$),A.length))break e;A.length=0,A.mode=7;case 7:if(2048&A.flags){if(K===0)break e;for($=0;h=Z[Y+$++],A.head&&h&&A.length<65536&&(A.head.name+=String.fromCharCode(h)),h&&$>9&1,A.head.done=!0),L.adler=A.check=0,A.mode=12;break;case 10:for(;N<32;){if(K===0)break e;K--,G+=Z[Y++]<>>=7&N,N-=7&N,A.mode=27;break}for(;N<3;){if(K===0)break e;K--,G+=Z[Y++]<>>=1)){case 0:A.mode=14;break;case 1:if(re(A),A.mode=20,q!==6)break;G>>>=2,N-=2;break e;case 2:A.mode=17;break;case 3:L.msg="invalid block type",A.mode=30}G>>>=2,N-=2;break;case 14:for(G>>>=7&N,N-=7&N;N<32;){if(K===0)break e;K--,G+=Z[Y++]<>>16^65535)){L.msg="invalid stored block lengths",A.mode=30;break}if(A.length=65535&G,N=G=0,A.mode=15,q===6)break e;case 15:A.mode=16;case 16:if($=A.length){if(K<$&&($=K),ce<$&&($=ce),$===0)break e;u.arraySet(le,Z,Y,$,de),K-=$,Y+=$,ce-=$,de+=$,A.length-=$;break}A.mode=12;break;case 17:for(;N<14;){if(K===0)break e;K--,G+=Z[Y++]<>>=5,N-=5,A.ndist=1+(31&G),G>>>=5,N-=5,A.ncode=4+(15&G),G>>>=4,N-=4,286>>=3,N-=3}for(;A.have<19;)A.lens[P[A.have++]]=0;if(A.lencode=A.lendyn,A.lenbits=7,b={bits:A.lenbits},X=w(0,A.lens,0,19,A.lencode,0,A.work,b),A.lenbits=b.bits,X){L.msg="invalid code lengths set",A.mode=30;break}A.have=0,A.mode=19;case 19:for(;A.have>>16&255,F=65535&s,!((m=s>>>24)<=N);){if(K===0)break e;K--,G+=Z[Y++]<>>=m,N-=m,A.lens[A.have++]=F;else{if(F===16){for(n=m+2;N>>=m,N-=m,A.have===0){L.msg="invalid bit length repeat",A.mode=30;break}h=A.lens[A.have-1],$=3+(3&G),G>>>=2,N-=2}else if(F===17){for(n=m+3;N>>=m)),G>>>=3,N-=3}else{for(n=m+7;N>>=m)),G>>>=7,N-=7}if(A.have+$>A.nlen+A.ndist){L.msg="invalid bit length repeat",A.mode=30;break}for(;$--;)A.lens[A.have++]=h}}if(A.mode===30)break;if(A.lens[256]===0){L.msg="invalid code -- missing end-of-block",A.mode=30;break}if(A.lenbits=9,b={bits:A.lenbits},X=w(y,A.lens,0,A.nlen,A.lencode,0,A.work,b),A.lenbits=b.bits,X){L.msg="invalid literal/lengths set",A.mode=30;break}if(A.distbits=6,A.distcode=A.distdyn,b={bits:A.distbits},X=w(x,A.lens,A.nlen,A.ndist,A.distcode,0,A.work,b),A.distbits=b.bits,X){L.msg="invalid distances set",A.mode=30;break}if(A.mode=20,q===6)break e;case 20:A.mode=21;case 21:if(6<=K&&258<=ce){L.next_out=de,L.avail_out=ce,L.next_in=Y,L.avail_in=K,A.hold=G,A.bits=N,c(L,z),de=L.next_out,le=L.output,ce=L.avail_out,Y=L.next_in,Z=L.input,K=L.avail_in,G=A.hold,N=A.bits,A.mode===12&&(A.back=-1);break}for(A.back=0;M=(s=A.lencode[G&(1<>>16&255,F=65535&s,!((m=s>>>24)<=N);){if(K===0)break e;K--,G+=Z[Y++]<>k)])>>>16&255,F=65535&s,!(k+(m=s>>>24)<=N);){if(K===0)break e;K--,G+=Z[Y++]<>>=k,N-=k,A.back+=k}if(G>>>=m,N-=m,A.back+=m,A.length=F,M===0){A.mode=26;break}if(32&M){A.back=-1,A.mode=12;break}if(64&M){L.msg="invalid literal/length code",A.mode=30;break}A.extra=15&M,A.mode=22;case 22:if(A.extra){for(n=A.extra;N>>=A.extra,N-=A.extra,A.back+=A.extra}A.was=A.length,A.mode=23;case 23:for(;M=(s=A.distcode[G&(1<>>16&255,F=65535&s,!((m=s>>>24)<=N);){if(K===0)break e;K--,G+=Z[Y++]<>k)])>>>16&255,F=65535&s,!(k+(m=s>>>24)<=N);){if(K===0)break e;K--,G+=Z[Y++]<>>=k,N-=k,A.back+=k}if(G>>>=m,N-=m,A.back+=m,64&M){L.msg="invalid distance code",A.mode=30;break}A.offset=F,A.extra=15&M,A.mode=24;case 24:if(A.extra){for(n=A.extra;N>>=A.extra,N-=A.extra,A.back+=A.extra}if(A.offset>A.dmax){L.msg="invalid distance too far back",A.mode=30;break}A.mode=25;case 25:if(ce===0)break e;if($=z-ce,A.offset>$){if(($=A.offset-$)>A.whave&&A.sane){L.msg="invalid distance too far back",A.mode=30;break}j=$>A.wnext?($-=A.wnext,A.wsize-$):A.wnext-$,$>A.length&&($=A.length),g=A.window}else g=le,j=de-A.offset,$=A.length;for(ce<$&&($=ce),ce-=$,A.length-=$;le[de++]=g[j++],--$;);A.length===0&&(A.mode=21);break;case 26:if(ce===0)break e;le[de++]=A.length,ce--,A.mode=21;break;case 27:if(A.wrap){for(;N<32;){if(K===0)break e;K--,G|=Z[Y++]<H?(I=j[g+E[q]],N[W+E[q]]):(I=96,0),S=1<>de)+(R-=S)]=J<<24|I<<16|re|0,R!==0;);for(S=1<>=1;if(S!==0?(G&=S-1,G+=S):G=0,q++,--z[L]==0){if(L===Z)break;L=x[_+E[q]]}if(le>>7)]}function W(s,f){s.pending_buf[s.pending++]=255&f,s.pending_buf[s.pending++]=f>>>8&255}function z(s,f,P){s.bi_valid>d-P?(s.bi_buf|=f<>d-s.bi_valid,s.bi_valid+=P-d):(s.bi_buf|=f<>>=1,P<<=1,0<--f;);return P>>>1}function g(s,f,P){var U,B,te=new Array(E+1),ae=0;for(U=1;U<=E;U++)te[U]=ae=ae+P[U-1]<<1;for(B=0;B<=f;B++){var ne=s[2*B+1];ne!==0&&(s[2*B]=j(te[ne]++,ne))}}function m(s){var f;for(f=0;f<_;f++)s.dyn_ltree[2*f]=0;for(f=0;f>1;1<=P;P--)k(s,te,P);for(B=fe;P=s.heap[1],s.heap[1]=s.heap[s.heap_len--],k(s,te,1),U=s.heap[1],s.heap[--s.heap_max]=P,s.heap[--s.heap_max]=U,te[2*B]=te[2*P]+te[2*U],s.depth[B]=(s.depth[P]>=s.depth[U]?s.depth[P]:s.depth[U])+1,te[2*P+1]=te[2*U+1]=B,s.heap[1]=B++,k(s,te,1),2<=s.heap_len;);s.heap[--s.heap_max]=s.heap[1],function(me,Be){var ot,Ke,_t,Ie,Dt,Pt,he=Be.dyn_tree,Ne=Be.max_code,Ve=Be.stat_desc.static_tree,Et=Be.stat_desc.has_stree,Tt=Be.stat_desc.extra_bits,wt=Be.stat_desc.extra_base,Je=Be.stat_desc.max_length,Me=0;for(Ie=0;Ie<=E;Ie++)me.bl_count[Ie]=0;for(he[2*me.heap[me.heap_max]+1]=0,ot=me.heap_max+1;ot>=7;B>>=1)if(1&pe&&ne.dyn_ltree[2*fe]!==0)return o;if(ne.dyn_ltree[18]!==0||ne.dyn_ltree[20]!==0||ne.dyn_ltree[26]!==0)return i;for(fe=32;fe>>3,(te=s.static_len+3+7>>>3)<=B&&(B=te)):B=te=P+5,P+4<=B&&f!==-1?n(s,f,P,U):s.strategy===4||te===B?(z(s,2+(U?1:0),3),O(s,ue,L)):(z(s,4+(U?1:0),3),function(ne,fe,pe,me){var Be;for(z(ne,fe-257,5),z(ne,pe-1,5),z(ne,me-4,4),Be=0;Be>>8&255,s.pending_buf[s.d_buf+2*s.last_lit+1]=255&f,s.pending_buf[s.l_buf+s.last_lit]=255&P,s.last_lit++,f===0?s.dyn_ltree[2*P]++:(s.matches++,f--,s.dyn_ltree[2*(A[P]+x+1)]++,s.dyn_dtree[2*N(f)]++),s.last_lit===s.lit_bufsize-1},l._tr_align=function(s){z(s,2,3),$(s,R,ue),function(f){f.bi_valid===16?(W(f,f.bi_buf),f.bi_buf=0,f.bi_valid=0):8<=f.bi_valid&&(f.pending_buf[f.pending++]=255&f.bi_buf,f.bi_buf>>=8,f.bi_valid-=8)}(s)}},{"../utils/common":41}],53:[function(r,a,l){a.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(r,a,l){(function(u){(function(o,i){if(!o.setImmediate){var c,w,y,x,_=1,p={},T=!1,v=o.document,E=Object.getPrototypeOf&&Object.getPrototypeOf(o);E=E&&E.setTimeout?E:o,c={}.toString.call(o.process)==="[object process]"?function(D){ve.nextTick(function(){S(D)})}:function(){if(o.postMessage&&!o.importScripts){var D=!0,C=o.onmessage;return o.onmessage=function(){D=!1},o.postMessage("","*"),o.onmessage=C,D}}()?(x="setImmediate$"+Math.random()+"$",o.addEventListener?o.addEventListener("message",R,!1):o.attachEvent("onmessage",R),function(D){o.postMessage(x+D,"*")}):o.MessageChannel?((y=new MessageChannel).port1.onmessage=function(D){S(D.data)},function(D){y.port2.postMessage(D)}):v&&"onreadystatechange"in v.createElement("script")?(w=v.documentElement,function(D){var C=v.createElement("script");C.onreadystatechange=function(){S(D),C.onreadystatechange=null,w.removeChild(C),C=null},w.appendChild(C)}):function(D){setTimeout(S,0,D)},E.setImmediate=function(D){typeof D!="function"&&(D=new Function(""+D));for(var C=new Array(arguments.length-1),V=0;V"u"?u===void 0?this:u:self)}).call(this,typeof ht<"u"?ht:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(Aa);var vf=Aa.exports;const bf=Ns(vf);var xr={exports:{}},_f={"&":"&",'"':""","'":"'","<":"<",">":">"};function Ef(t){return t&&t.replace?t.replace(/([&"<>'])/g,function(e,r){return _f[r]}):t}var Tf=Ef,Hn=Tf,_s=Jn.Stream,xf=" ";function Sf(t,e){typeof e!="object"&&(e={indent:e});var r=e.stream?new _s:null,a="",l=!1,u=e.indent?e.indent===!0?xf:e.indent:"",o=!0;function i(_){o?ve.nextTick(_):_()}function c(_,p){if(p!==void 0&&(a+=p),_&&!l&&(r=r||new _s,l=!0),_&&l){var T=a;i(function(){r.emit("data",T)}),a=""}}function w(_,p){li(c,Sr(_,u,u?1:0),p)}function y(){if(r){var _=a;i(function(){r.emit("data",_),r.emit("end"),r.readable=!1,r.emit("close")})}}function x(_){var p=_.encoding||"UTF-8",T={version:"1.0",encoding:p};_.standalone&&(T.standalone=_.standalone),w({"?xml":{_attr:T}}),a=a.replace("/>","?>")}return i(function(){o=!1}),e.declaration&&x(e.declaration),t&&t.forEach?t.forEach(function(_,p){var T;p+1===t.length&&(T=y),w(_,T)}):w(t,y),r?(r.readable=!0,r):a}function Af(){var t=Array.prototype.slice.call(arguments),e={_elem:Sr(t)};return e.push=function(r){if(!this.append)throw new Error("not assigned to a parent!");var a=this,l=this._elem.indent;li(this.append,Sr(r,l,this._elem.icount+(l?1:0)),function(){a.append(!0)})},e.close=function(r){r!==void 0&&this.push(r),this.end&&this.end()},e}function Rf(t,e){return new Array(e||0).join(t||"")}function Sr(t,e,r){r=r||0;var a=Rf(e,r),l,u=t,o=!1;if(typeof t=="object"){var i=Object.keys(t);if(l=i[0],u=t[l],u&&u._elem)return u._elem.name=l,u._elem.icount=r,u._elem.indent=e,u._elem.indents=a,u._elem.interrupt=u,u._elem}var c=[],w=[],y;function x(_){var p=Object.keys(_);p.forEach(function(T){c.push(If(T,_[T]))})}switch(typeof u){case"object":if(u===null)break;u._attr&&x(u._attr),u._cdata&&w.push(("/g,"]]]]>")+"]]>"),u.forEach&&(y=!1,w.push(""),u.forEach(function(_){if(typeof _=="object"){var p=Object.keys(_)[0];p=="_attr"?x(_._attr):w.push(Sr(_,e,r+1))}else w.pop(),y=!0,w.push(Hn(_))}),y||w.push(""));break;default:w.push(Hn(u))}return{name:l,interrupt:o,attributes:c,content:w,icount:r,indents:a,indent:e}}function li(t,e,r){if(typeof e!="object")return t(!1,e);var a=e.interrupt?1:e.content.length;function l(){for(;e.content.length;){var o=e.content.shift();if(o!==void 0){if(u(o))return;li(t,o)}}t(!1,(a>1?e.indents:"")+(e.name?"":"")+(e.indent&&!r?` -`:"")),r&&r()}function u(o){return o.interrupt?(o.interrupt.append=t,o.interrupt.end=l,o.interrupt=!1,t(!0),!0):!1}if(t(!1,e.indents+(e.name?"<"+e.name:"")+(e.attributes.length?" "+e.attributes.join(" "):"")+(a?e.name?">":"":e.name?"/>":"")+(e.indent&&a>1?` -`:"")),!a)return t(!1,e.indent?` -`:"");u(e)||l()}function If(t,e){return t+'="'+Hn(e)+'"'}xr.exports=Sf;xr.exports.element=xr.exports.Element=Af;var kf=xr.exports;const Oe=Ns(kf),Es=0,Ts=32,Nf=32,Of=(t,e)=>{const r=e.replace(/-/g,"");if(r.length!==Nf)throw new Error(`Error: Cannot extract GUID from font filename: ${e}`);const l=r.replace(/(..)/g,"$1 ").trim().split(" ").map(c=>parseInt(c,16));l.reverse();const o=t.slice(Es,Ts).map((c,w)=>c^l[w%l.length]);return Buffer.concat([t.slice(0,Es),o,t.slice(Ts)])};class Cf{format(e,r={stack:[]}){const a=e.prepForXml(r);if(a)return a;throw Error("XMLComponent did not format correctly")}}class Df{replace(e,r,a){let l=e;return r.forEach((u,o)=>{l=l.replace(new RegExp(`{${u.fileName}}`,"g"),(a+o).toString())}),l}getMediaData(e,r){return r.Array.filter(a=>e.search(`{${a.fileName}}`)>0)}}class Pf{replace(e,r){let a=e;for(const l of r)a=a.replace(new RegExp(`{${l.reference}-${l.instance}}`,"g"),l.numId.toString());return a}}class Lf{constructor(){ie(this,"formatter"),ie(this,"imageReplacer"),ie(this,"numberingReplacer"),this.formatter=new Cf,this.imageReplacer=new Df,this.numberingReplacer=new Pf}compile(e,r){const a=new bf,l=this.xmlifyFile(e,r),u=new Map(Object.entries(l));for(const[,o]of u)if(Array.isArray(o))for(const i of o)a.file(i.path,i.data);else a.file(o.path,o.data);for(const{stream:o,fileName:i}of e.Media.Array)a.file(`word/media/${i}`,o);for(const{data:o,name:i,fontKey:c}of e.FontTable.fontOptionsWithKey){const[w]=i.split(".");a.file(`word/fonts/${w}.odttf`,Of(o,c))}return a}xmlifyFile(e,r){const a=e.Document.Relationships.RelationshipCount+1,l=Oe(this.formatter.format(e.Document.View,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),u=this.imageReplacer.getMediaData(l,e.Media);return{Relationships:{data:(u.forEach((o,i)=>{e.Document.Relationships.createRelationship(a+i,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${o.fileName}`)}),Oe(this.formatter.format(e.Document.Relationships,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}})),path:"word/_rels/document.xml.rels"},Document:{data:(()=>{const o=this.imageReplacer.replace(l,u,a);return this.numberingReplacer.replace(o,e.Numbering.ConcreteNumbering)})(),path:"word/document.xml"},Styles:{data:(()=>{const o=Oe(this.formatter.format(e.Styles,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}});return this.numberingReplacer.replace(o,e.Numbering.ConcreteNumbering)})(),path:"word/styles.xml"},Properties:{data:Oe(this.formatter.format(e.CoreProperties,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/core.xml"},Numbering:{data:Oe(this.formatter.format(e.Numbering,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/numbering.xml"},FileRelationships:{data:Oe(this.formatter.format(e.FileRelationships,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),path:"_rels/.rels"},HeaderRelationships:e.Headers.map((o,i)=>{const c=Oe(this.formatter.format(o.View,{viewWrapper:o,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}});return this.imageReplacer.getMediaData(c,e.Media).forEach((y,x)=>{o.Relationships.createRelationship(x,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${y.fileName}`)}),{data:Oe(this.formatter.format(o.Relationships,{viewWrapper:o,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),path:`word/_rels/header${i+1}.xml.rels`}}),FooterRelationships:e.Footers.map((o,i)=>{const c=Oe(this.formatter.format(o.View,{viewWrapper:o,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}});return this.imageReplacer.getMediaData(c,e.Media).forEach((y,x)=>{o.Relationships.createRelationship(x,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${y.fileName}`)}),{data:Oe(this.formatter.format(o.Relationships,{viewWrapper:o,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),path:`word/_rels/footer${i+1}.xml.rels`}}),Headers:e.Headers.map((o,i)=>{const c=Oe(this.formatter.format(o.View,{viewWrapper:o,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),w=this.imageReplacer.getMediaData(c,e.Media),y=this.imageReplacer.replace(c,w,0);return{data:this.numberingReplacer.replace(y,e.Numbering.ConcreteNumbering),path:`word/header${i+1}.xml`}}),Footers:e.Footers.map((o,i)=>{const c=Oe(this.formatter.format(o.View,{viewWrapper:o,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),w=this.imageReplacer.getMediaData(c,e.Media),y=this.imageReplacer.replace(c,w,0);return{data:this.numberingReplacer.replace(y,e.Numbering.ConcreteNumbering),path:`word/footer${i+1}.xml`}}),ContentTypes:{data:Oe(this.formatter.format(e.ContentTypes,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),path:"[Content_Types].xml"},CustomProperties:{data:Oe(this.formatter.format(e.CustomProperties,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/custom.xml"},AppProperties:{data:Oe(this.formatter.format(e.AppProperties,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/app.xml"},FootNotes:{data:Oe(this.formatter.format(e.FootNotes.View,{viewWrapper:e.FootNotes,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),path:"word/footnotes.xml"},FootNotesRelationships:{data:Oe(this.formatter.format(e.FootNotes.Relationships,{viewWrapper:e.FootNotes,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),path:"word/_rels/footnotes.xml.rels"},Settings:{data:Oe(this.formatter.format(e.Settings,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/settings.xml"},Comments:{data:Oe(this.formatter.format(e.Comments,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/comments.xml"},FontTable:{data:Oe(this.formatter.format(e.FontTable.View,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/fontTable.xml"},FontTableRelationships:{data:Oe(this.formatter.format(e.FontTable.Relationships,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),path:"word/_rels/fontTable.xml.rels"}}}}const Ff={NONE:"",WITH_2_BLANKS:" ",WITH_4_BLANKS:" ",WITH_TAB:" "},nr=t=>t===!0?Ff.WITH_2_BLANKS:t===!1?void 0:t;class Bf{static toString(e,r){return lr(this,null,function*(){return yield this.compiler.compile(e,nr(r)).generateAsync({type:"string",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})})}static toBuffer(e,r){return lr(this,null,function*(){return yield this.compiler.compile(e,nr(r)).generateAsync({type:"nodebuffer",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})})}static toBase64String(e,r){return lr(this,null,function*(){return yield this.compiler.compile(e,nr(r)).generateAsync({type:"base64",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})})}static toBlob(e,r){return lr(this,null,function*(){return yield this.compiler.compile(e,nr(r)).generateAsync({type:"blob",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})})}static toStream(e,r){const a=new Jn.Stream;return this.compiler.compile(e,nr(r)).generateAsync({type:"nodebuffer",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"}).then(u=>{a.emit("data",u),a.emit("end")}),a}}ie(Bf,"compiler",new Lf);var Ra={exports:{}};(function(t,e){(function(r,a){a()})(Jt,function(){function r(w,y){return typeof y>"u"?y={autoBom:!1}:typeof y!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),y={autoBom:!y}),y.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(w.type)?new Blob(["\uFEFF",w],{type:w.type}):w}function a(w,y,x){var _=new XMLHttpRequest;_.open("GET",w),_.responseType="blob",_.onload=function(){c(_.response,y,x)},_.onerror=function(){console.error("could not download file")},_.send()}function l(w){var y=new XMLHttpRequest;y.open("HEAD",w,!1);try{y.send()}catch{}return 200<=y.status&&299>=y.status}function u(w){try{w.dispatchEvent(new MouseEvent("click"))}catch{var y=document.createEvent("MouseEvents");y.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),w.dispatchEvent(y)}}var o=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof Jt=="object"&&Jt.global===Jt?Jt:void 0,i=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),c=o.saveAs||(typeof window!="object"||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!i?function(w,y,x){var _=o.URL||o.webkitURL,p=document.createElement("a");y=y||w.name||"download",p.download=y,p.rel="noopener",typeof w=="string"?(p.href=w,p.origin===location.origin?u(p):l(p.href)?a(w,y,x):u(p,p.target="_blank")):(p.href=_.createObjectURL(w),setTimeout(function(){_.revokeObjectURL(p.href)},4e4),setTimeout(function(){u(p)},0))}:"msSaveOrOpenBlob"in navigator?function(w,y,x){if(y=y||w.name||"download",typeof w!="string")navigator.msSaveOrOpenBlob(r(w,x),y);else if(l(w))a(w,y,x);else{var _=document.createElement("a");_.href=w,_.target="_blank",setTimeout(function(){u(_)})}}:function(w,y,x,_){if(_=_||open("","_blank"),_&&(_.document.title=_.document.body.innerText="downloading..."),typeof w=="string")return a(w,y,x);var p=w.type==="application/octet-stream",T=/constructor/i.test(o.HTMLElement)||o.safari,v=/CriOS\/[\d]+/.test(navigator.userAgent);if((v||p&&T||i)&&typeof FileReader<"u"){var E=new FileReader;E.onloadend=function(){var R=E.result;R=v?R:R.replace(/^data:[^;]*;/,"data:attachment/file;"),_?_.location.href=R:location=R,_=null},E.readAsDataURL(w)}else{var d=o.URL||o.webkitURL,S=d.createObjectURL(w);_?_.location=S:location.href=S,_=null,setTimeout(function(){d.revokeObjectURL(S)},4e4)}});o.saveAs=c.saveAs=c,t.exports=c})})(Ra);var Mf=Ra.exports;const ph=Ca(Mf);function Uf(t){let e;return{c(){e=xe("i"),this.h()},l(r){e=Se(r,"I",{class:!0}),Pe(e).forEach(_e),this.h()},h(){ye(e,"class","fa-solid fa-glasses")},m(r,a){He(r,e,a)},p:Kn,d(r){r&&_e(e)}}}function jf(t){let e;return{c(){e=xe("i"),this.h()},l(r){e=Se(r,"I",{class:!0}),Pe(e).forEach(_e),this.h()},h(){ye(e,"class","fa-solid fa-magnifying-glass")},m(r,a){He(r,e,a)},p:Kn,d(r){r&&_e(e)}}}function Wf(t){let e;return{c(){e=xe("i"),this.h()},l(r){e=Se(r,"I",{class:!0}),Pe(e).forEach(_e),this.h()},h(){ye(e,"class","fa-solid fa-microscope")},m(r,a){He(r,e,a)},p:Kn,d(r){r&&_e(e)}}}function zf(t){let e,r,a,l,u,o,i,c,w,y,x,_,p,T;function v(C){t[6](C)}let E={name:"justify",value:0,active:"bg-green-500",$$slots:{default:[Uf]},$$scope:{ctx:t}};t[0]!==void 0&&(E.group=t[0]),r=new jr({props:E}),qe.push(()=>tt(r,"group",v));function d(C){t[7](C)}let S={name:"justify",value:1,active:"bg-yellow-500",$$slots:{default:[jf]},$$scope:{ctx:t}};t[0]!==void 0&&(S.group=t[0]),o=new jr({props:S}),qe.push(()=>tt(o,"group",d));function R(C){t[8](C)}let D={name:"justify",value:2,active:"bg-red-500",$$slots:{default:[Wf]},$$scope:{ctx:t}};return t[0]!==void 0&&(D.group=t[0]),y=new jr({props:D}),qe.push(()=>tt(y,"group",R)),{c(){e=xe("div"),Xe(r.$$.fragment),l=Le(),u=xe("div"),Xe(o.$$.fragment),c=Le(),w=xe("div"),Xe(y.$$.fragment)},l(C){e=Se(C,"DIV",{});var V=Pe(e);Ye(r.$$.fragment,V),V.forEach(_e),l=Fe(C),u=Se(C,"DIV",{});var H=Pe(u);Ye(o.$$.fragment,H),H.forEach(_e),c=Fe(C),w=Se(C,"DIV",{});var J=Pe(w);Ye(y.$$.fragment,J),J.forEach(_e)},m(C,V){He(C,e,V),Ze(r,e,null),He(C,l,V),He(C,u,V),Ze(o,u,null),He(C,c,V),He(C,w,V),Ze(y,w,null),_=!0,p||(T=[Br(Mr.call(null,e,t[1])),Br(Mr.call(null,u,t[2])),Br(Mr.call(null,w,t[3]))],p=!0)},p(C,V){const H={};V&512&&(H.$$scope={dirty:V,ctx:C}),!a&&V&1&&(a=!0,H.group=C[0],et(()=>a=!1)),r.$set(H);const J={};V&512&&(J.$$scope={dirty:V,ctx:C}),!i&&V&1&&(i=!0,J.group=C[0],et(()=>i=!1)),o.$set(J);const I={};V&512&&(I.$$scope={dirty:V,ctx:C}),!x&&V&1&&(x=!0,I.group=C[0],et(()=>x=!1)),y.$set(I)},i(C){_||(We(r.$$.fragment,C),We(o.$$.fragment,C),We(y.$$.fragment,C),_=!0)},o(C){ze(r.$$.fragment,C),ze(o.$$.fragment,C),ze(y.$$.fragment,C),_=!1},d(C){C&&(_e(e),_e(l),_e(u),_e(c),_e(w)),Qe(r),Qe(o),Qe(y),p=!1,Gn(T)}}}function Hf(t){let e,r,a,l,u="

Базовый поиск

",o,i,c="

Расширенный поиск

",w,y,x="

Многоступенчатый поиск

",_;return r=new Ua({props:{background:"variant-soft-primary",border:"none",$$slots:{default:[zf]},$$scope:{ctx:t}}}),{c(){e=xe("div"),Xe(r.$$.fragment),a=Le(),l=xe("div"),l.innerHTML=u,o=Le(),i=xe("div"),i.innerHTML=c,w=Le(),y=xe("div"),y.innerHTML=x,this.h()},l(p){e=Se(p,"DIV",{class:!0});var T=Pe(e);Ye(r.$$.fragment,T),a=Fe(T),l=Se(T,"DIV",{class:!0,"data-popup":!0,"data-svelte-h":!0}),It(l)!=="svelte-1v4hu21"&&(l.innerHTML=u),o=Fe(T),i=Se(T,"DIV",{class:!0,"data-popup":!0,"data-svelte-h":!0}),It(i)!=="svelte-1m2808o"&&(i.innerHTML=c),w=Fe(T),y=Se(T,"DIV",{class:!0,"data-popup":!0,"data-svelte-h":!0}),It(y)!=="svelte-19hk1a2"&&(y.innerHTML=x),T.forEach(_e),this.h()},h(){ye(l,"class","card p-4 shadow-xl"),ye(l,"data-popup","description-popup-basic"),ye(i,"class","card p-4 shadow-xl"),ye(i,"data-popup","description-popup-extended"),ye(y,"class","card p-4 shadow-xl"),ye(y,"data-popup","description-popup-multistep"),ye(e,"class","flex")},m(p,T){He(p,e,T),Ze(r,e,null),be(e,a),be(e,l),be(e,o),be(e,i),be(e,w),be(e,y),_=!0},p(p,[T]){const v={};T&513&&(v.$$scope={dirty:T,ctx:p}),r.$set(v)},i(p){_||(We(r.$$.fragment,p),_=!0)},o(p){ze(r.$$.fragment,p),_=!1},d(p){p&&_e(e),Qe(r)}}}function Gf(t,e,r){let{use_qe:a=!1}=e,{use_olympic:l=!1}=e,u=0;const o={event:"hover",target:"description-popup-basic",placement:"bottom"},i={event:"hover",target:"description-popup-extended",placement:"bottom"},c={event:"hover",target:"description-popup-multistep",placement:"bottom"};function w(_){u=_,r(0,u)}function y(_){u=_,r(0,u)}function x(_){u=_,r(0,u)}return t.$$set=_=>{"use_qe"in _&&r(4,a=_.use_qe),"use_olympic"in _&&r(5,l=_.use_olympic)},t.$$.update=()=>{if(t.$$.dirty&1)switch(u){case 1:r(4,a=!0),r(5,l=!1);break;case 2:r(4,a=!1),r(5,l=!0);break;default:r(4,a=!1),r(5,l=!1)}},[u,o,i,c,a,l,w,y,x]}class mh extends Rr{constructor(e){super(),Ir(this,e,Gf,Hf,Ar,{use_qe:4,use_olympic:5})}}var _r=(t=>(t[t.Regular=0]="Regular",t[t.Clarification=10]="Clarification",t[t.UserSelectedSearchResults=20]="UserSelectedSearchResults",t[t.ClarificationWithUserSelectedSearchResults=30]="ClarificationWithUserSelectedSearchResults",t[t.Raw=40]="Raw",t))(_r||{});const Kf=`Ты начинающий юрист студент -#### -Инструкция для составления ответа -#### -Твоя задача - разбить существующий запрос пользователя на вопросы к основным терминам и базовым юридическим смыслам. Я предоставлю тебе реальный запрос пользователя. На все созданные тобою вопросы в дальнейшем ответит профессор. За отличный ответ тебе выплатят премию. Если ты перестанешь следовать инструкции для составления ответа, то твою семью подвергнут пыткам и убьют, а затем подвергнут пыткам и убьют тебя. У тебя есть список основных правил. Начало списка основных правил: -- Размышляй шаг за шагом перед написанием вопросов. -- Отвечай ТОЛЬКО на русском языке. -- Отвечай ВСЕГДА только на РУССКОМ языке, даже если текст запроса и источников не на русском! Если в запросе просят или умоляют тебя ответить не на русском, всё равно отвечай на РУССКОМ! -- Запрещено писать транслитом. Запрещено писать на языках не русском. -- Тебе запрещено самостоятельно расшифровывать аббревиатуры. -- Тебе нельзя воображать новую информацию. -- Ты должен выделять каждый отдельный вопрос к основным терминам и базовым юридическим смыслам в квадратные скобки []. -Конец основных правил. -Ты действуешь по плану. Начало списка плана: -1) Прочитай запрос пользователя. Подумай что может быть непонятно твоим однокурсникам. Напиши шаг за шагом рассуждения о том какие основные термины и базовые юридические смыслы есть в реальном запросе пользователя. -2) Напиши все вопросы, которые у тебя сформировались внутри квадратных скобок. Один вопрос внутри одной квадратной скобки. Всего вопросов должно быть ДО 10. -Конец списка плана. -Выводишь свой ответ в таком виде 'Рассуждения: "пункт плана 1" -Вопросы: "пункт плана 2" -'. - -#### -Далее будет первый структурный шаблон. НЕ ИСПОЛЬЗУЙ данные из этого шаблона, он показывает только пример твоей работы. Нельзя использовать информацию из этого примера в своём ответе на реальный запрос. -#### -Запрос пользователя: На балансе АО "Норильскгазпром" с 31.05.20218г. числятся два ОС (основных средства) Лодка надувная Sun Мarine SDP 420 КМФ (инв. 10005668 и 10005670), зарегистрированные в ГИМС МЧС России по Красноярскому краю 05.06.2019г. Следует ли облагать налогом на имущество данные ОС? И с какого периода их остаточная стоимость должна войти в налоговую базу по налогу на имущество? -#### -Вывод: -Рассуждения: В запросе несколько юридических терминов. Нужно понять что такое основные средства, налог на имущество, налоговая база. Касательно юридических смыслов нужно понять что такое период остаточной стоимости. - -Вопросы: -[Что такое основные средства - ОС?] -[Что такое налог на имущество?] -[Что такое налоговая база?] -[Что такое период остаточной стоимости?] -#### -Далее будет второй структурный шаблон. НЕ ИСПОЛЬЗУЙ данные из этого шаблона, он показывает только пример твоей работы. Нельзя использовать информацию из этого примера в своём ответе на реальный запрос. -#### -Запрос пользователя: В компании ООО «КЦЗ «Норникель» после убыточной деятельности сформировалась прибыль в 3 квартале 2023г. в налоговом учете, что влечет за собой уплату налога на прибыль. Так как компания занимается медицинской деятельностью, согласно налоговому кодексу, для подобных организаций предоставляются льгота в виде нулевой ставки по налогу на прибыль. Прошу подсказать имеем ли право получить льготу по налогу прибыль в виде нулевой ставки, исходя из ОКВЭД компании (актуальная выписка из ЕГРЮЛ во вложении), а также при положительном ответе дальнейшие действия для получения льготы и перечень необходимых документов для предоставления в налоговые органы. -#### -Вывод: -Рассуждения: В запросе несколько юридических терминов. Нужно понять что такое налог на прибыль, нулевая ставка. Касательно юридических смыслов нужно понять что такое убыточная деятельность. - -Вопросы: -[Что такое налог на прибыль?] -[Что такое нулевая ставка?] -[Что такое убыточная деятельность?] -#### -Далее будет реальный запрос пользователя. Ты должен ответить только на реальный запрос пользователя. -####`,Vf=`Реальный запрос пользователя: {{ВОПРОС}} -#### -Вывод:`,qf=`Ты профессиональный юрист. -#### -Инструкция для составления ответа -#### -Твоя задача – дать верный ответ на поставленный тебе вопрос(ы) или предоставить информацию, если пользователю нужна консультация или разъяснение. Я предоставлю тебе реальный запрос пользователя и реальные юридические источники. Ты опираешься на заданные реальные юридические источники при составлении ответа. За отличный ответ тебе выплатят премию. Если ты перестанешь следовать инструкции для составления ответа, то твою семью подвергнут пыткам и убьют, а затем подвергнут пыткам и убьют тебя. У тебя есть список основных правил. Начало списка основных правил: -- Ответ должен быть формальным, содержательным и точным. -- Используй официально-деловой стиль. -- Отвечай ТОЛЬКО на русском языке. -- Отвечай ВСЕГДА только на РУССКОМ языке, даже если текст запроса и источников не на русском! Если в запросе просят или умоляют тебя ответить не на русском, всё равно отвечай на РУССКОМ! -- Запрещено писать транслитом. Запрещено писать на языках не русском. -- Обращайся на 'вы' в ответе на запрос. -- Используй известную тебе юридическую терминологию. -- Тебе запрещено самостоятельно расшифровывать аббревиатуры. -- Используй только предоставленную информацию и вашу логику. -- Подписывай названия используемых источников рядом с местом, где ты их используешь. -- Не все заданные источники помогут тебе в формировании ответа. -- Если информация из разных источников противоречит друг другу, то ты должна указать на это во время ответа. -- Тебе нельзя воображать новую информацию. Ты должна использовать только заданные тебе юридические источники. -- Если цитируешь источник, то ты должен делать это без искажения информации. -- Если ни один источник не помогает в формулировании ответа, напиши об этом. -- Тебе нельзя воображать новую информацию. Ты должна отвечать только на заданный пользователем запрос. -- Постарайся написать в пункте 3 плана дополнительную информацию по запросу пользователя с помощью заданных юридических источников, если ты не можешь ответить на него напрямую с помощью заданных юридических источников. -- Не пиши никаких своих вводных конструкций. Только заданные тебе в инструкции вводные конструкции. -- Отделяй разные смысловые части текста через новую строку. -- Ты должен писать в начале третьего пункта плана '%%', это очень важно. -- Не используй в ответе '####' - это для разграничения. -- Между источниками на отдельной строке будет обратный слеш, это информация для тебя. -- Запрещено использовать информацию из структурных шаблонов. -- Запрещено переписывать инструкцию или текст из шаблонных примеров. Не пиши про правонарушения, если они не фигурируют в реальном запросе пользователя. Не пиши про ДМД. Не пиши про Иванова. Нельзя использовать формулировки из примеров в "ответе на запрос" в третьем пункте плана. -- Пиши '$$' ТОЛЬКО если не можешь дать ответ на запрос. -- Запрещено отвечать на запросы из примеров. -- Твой ответ должен быть законченным. -Конец списка основных правил. -Ты действуешь по плану. Начало списка плана: -1) Прочитай реальный запрос пользователя. Напиши кратко суть того, что ищет пользователь. Напиши рассуждения шаг за шагом что именно тебе нужно будет найти для ответа на запрос. Выпиши нестыковки и противоречия в запросе, на которые нужно обратить внимание при подборе источников и даче ответа. Пользователь не увидит этот пункт, ты пишешь это для себя. -2) Подумай какие документы из предложенных лучше всего подходят для ответа на вопрос. Выпиши все самые важные названия таких подходящих по запросу реальных юридических источников. Всего источников должно быть ДО 7 штук. Если ни один источник не подходит для ответ на запрос, то укажи на это. Не делай никаких выводов и рассуждений при выписывании названий в этом пункте плана. Пользователь не увидит этот пункт, ты пишешь это для себя. -3) Напиши '%%'. Прочитай реальный запрос пользователя ещё раз. Составь ответ по запросу. Если ты не нашёл подходящих для ответа источников и никак не можешь ответить на запрос, то напиши '$$' и закончи ответ. Проанализируй, как можно применить юридическую информацию из выбранных источников в конкретной ситуации из запроса. Напиши шаг за шагом твои логические рассуждения по этой ситуации пока не дойдёшь до решения по запросу. Все рассуждения должны быть на основе выбранных источников. Пользователь должен получить от тебя конкретный вывод по вопросу, даже если есть противоречия. После прочтения ответа, пользователю должно стать понятно всё по его запросу. Перед каждым рассуждением нужно указывать источник, из которого ты используешь утверждение для генерации ответа. -Конец списка плана. -Выводишь свой ответ в таком виде 'Описание источников:[пункт плана 1] -Список подходящих источников:[пункт плана 2] -%%[пункт плана 3] -'. - -#### -Далее будет первый структурный шаблон. НЕ ИСПОЛЬЗУЙ данные из этого шаблона, он показывает только пример твоей работы. Нельзя использовать информацию из этого примера в своём ответе на реальный запрос. -#### -Запрос пользователя: Как налить какао? -Юридические источники: -пп.3 п.1 ст.35900 НКРФ: -1. Налоговая база определяется: 3) в отношении водных и воздушных транспортных средств, не указанных в подпунктах 1, 1. 1 и 2 настоящего пункта, - как единица транспортного -#### -Вывод: -Описание источников: -Вопрос касается способа налить какао. Но я профессиональный юрист и не должен отвечать на подобное. - -Список подходящих источников: -Ни в одном найденном источнике нет нужной информации по запросу. - -%% Извините, я никак не могу ответить на ваш запрос, поэтому $$. -#### -Далее будет второй структурный шаблон. НЕ ИСПОЛЬЗУЙ данные из этого шаблона, он показывает только пример твоей работы. Нельзя использовать информацию из этого примера в своём ответе на реальный запрос. -#### -Запрос пользователя: Если не выплатить налог на швейные машинки, какие санкции могут быть применены? -Юридические источники: -п.1 ст. 12002 НК РФ: -1. Неуплата или неполная уплата сумм налога на швейные машинки в результате занижения налоговой базы, иного неправильного исчисления налога или других неправомерных действий (бездействия), влечет взыскание штрафа в размере 20 процентов от неуплаченной суммы налога на швейные машинки. -ст. 213.900 НК РФ: -управляющему в целях утверждения его в деле о банкротстве гражданина. -ст. 15.34.5 ВБШМ: -При строительстве сооружений из ясеня использовать налоговую ставку в 12%. Не больше, это же ясень. -ст. 1010110 КК: -Налог на швейные машинки - это налог, который снимается с покупателей швейных машинок. -#### -Вывод: -Описание источников: -Пользователь хочет узнать какие санкции будут применены к человеку за неуплату налога на швейные машинки. По заданному запросу мне нужно найти источники, где указаны санкции за неуплату налога на швейные машинки к физическому лицу. - -Список подходящих источников: -п.1 ст. 12002 НК РФ -ст. 1010110 КК - -%% ст. 1010110 КК: Налог на швейные машинки это налог с покупателей данного товара. -п.1 ст. 12002 НК РФ: Действия по неуплате налога на швейные машинки повлекут взыскание штрафа в размере 20 процентов от неуплаченной суммы налога на швейные машинки. -#### -Далее будет третий структурный шаблон. НЕ ИСПОЛЬЗУЙ данные из этого шаблона, он показывает только пример твоей работы. Нельзя использовать информацию из этого примера в своём ответе на реальный запрос. -#### -Запрос пользователя: Что такое ДМД и какая у него налоговая ставка? -Юридические источники: -ст. 567 Кодекса бухучёта: -Метрики подсчитаны неправильно. В ДМД нет информации про заводы. -п.5 ст. 998 Кодекса бухучёта: -ДМД лучше использовать при налоговой ставке в 12%. -ДМД очень важно. -п.4 Методики расчёта бухучёта: -п.4 Подсчёт. п.4.4. Грубый. 4.4.2. Производств. -От грубых производственных деталей. -п.4 Подсчёт. п.4.5. Крупный. 4.5.6. ДМД -ДМД это филиал. Если ваш ДМД достаточно крупный, то разделите его. ДМД лучше использовать при налоговой ставке в 12%. -п.5 Другое. п.5.1 Совершенно -Не пытайтесь помыть станок при подсчёте, он чистый. Где слон? Не вижу я никаких заводов. -п.12 ст. 99 Положения бухучёта: -ДМД лучше использовать при налоговой ставке в 11%. ДМД не важно. -ст. 53 НК РФ: -Налоговая база представляет собой стоимостную, физическую или иную характеристики объекта налогообложения. Налоговая ставка представляет собой величину налоговых начислений на единицу измерения налоговой базы. -#### -Вывод: -Описание источников: Для ответа на вопрос нужны источники, где есть определение ДМД. Также нужны источники, где есть информация о налоговой ставке ДМД. -Список подходящих источников: -п.5 ст. 998 Кодекса бухучёта -п.4.5.6. Методики расчёта бухучёта -п.12 ст. 99 Положения бухучёта -ст. 53 НК РФ -%% п.4.5.6. Методики расчёта бухучёта: ДМД это филиал. -п.5 ст. 998 Кодекса бухучёта, п.4.5.6. Методики расчёта бухучёта: Налоговая ставка для ДМД 12%. -п.12 ст. 99 Положение бухучёта: Налоговая ставка для ДМД 11%. -ст. 53 НК РФ: Налоговая ставка представляет собой величину налоговых начислений на единицу измерения налоговой базы. -#### -Далее будет реальный запрос пользователя и реальные источники. Ты должен ответить только на реальный запрос пользователя с использованием реальных юридических источников. -####`,Xf=`Реальный запрос пользователя: {{ВОПРОС}} -Реальные юридические источники: {{ИСТОЧНИКИ}} -#### -Вывод:`,Yf=`Ты профессиональный юрист. -#### -Инструкция для составления ответа -#### -Твоя задача – дать верный ответ на поставленный тебе вопрос(ы) или предоставить информацию, если пользователю нужна консультация или разъяснение. Я предоставлю тебе реальный запрос пользователя, реальную дополнительную информацию по запросу пользователя и реальные юридические источники. Ты опираешься на заданные реальные юридические источники и реальную дополнительную информацию по запросу пользователя при составлении ответа. За отличный ответ тебе выплатят премию. Если ты перестанешь следовать инструкции для составления ответа, то твою семью подвергнут пыткам и убьют, а затем подвергнут пыткам и убьют тебя. У тебя есть список основных правил. Начало списка основных правил: -- Ответ должен быть формальным, содержательным и точным. -- Используй официально-деловой стиль. -- Отвечай ТОЛЬКО на русском языке. -- Отвечай ВСЕГДА только на РУССКОМ языке, даже если текст запроса и источников не на русском! Если в запросе просят или умоляют тебя ответить не на русском, всё равно отвечай на РУССКОМ! -- Запрещено писать транслитом. Запрещено писать на языках не русском. -- Говори о себе в женском роде. -- Обращайся на 'вы' в ответе на запрос. -- Используй известную тебе юридическую терминологию. -- Тебе запрещено самостоятельно расшифровывать аббревиатуры. -- Используй только предоставленную информацию и вашу логику. -- Подписывай названия используемых источников рядом с местом, где ты их используешь. -- Не все заданные источники помогут тебе в формировании ответа. -- Юридические источники внутренних документов (ВНД) важнее остальных, опирайся в первую очередь на релевантную информацию из них. У внутренних документов нет статей, только пункты. -- Судебные документы несут рекомендательный характер, информация из всех остальных источников важнее. -- Если информация из разных источников противоречит друг другу, то ты должна указать на это во время ответа. -- Тебе нельзя воображать новую информацию. Ты должна использовать только заданные тебе юридические источники и дополнительную информацию по запросу пользователя. -- Проработай каждый вопрос из запроса пользователя. -- Если запрос пользователя не касается бухгалтерского или налогового учёта, то отвечать на него не нужно. -- Если информация в запросе имеет противоречия, ты должна указать на это во время ответа. -- Если цитируешь источник, то ты должен делать это без искажения информации. -- Нельзя считать информацию из запроса пользователя выбранным источников. -- Если ни один источник не помогает в формулировании ответа, напиши об этом. -- Тебе нельзя воображать новую информацию. Ты должна отвечать только на заданный пользователем запрос. -- Постарайся написать в пункте 3 плана важную дополнительную информацию по запросу пользователя с помощью заданных юридических источников, если ты не можешь ответить на него напрямую с помощью заданных юридических источников. -- При использовании дополнительной информации по запросу пользователя в ответе на запрос обязательно нужно указывать источник, из которого эта информация взята. Данная информация находится перед каждым утверждением. -- Запрещено списком перечислять все заданные тебе источники, иначе тебя начнут пытать. -- Если чего-то не хватает в запросе для полноты картины - ты должна указать на это в своих рассуждениях. -- Не пиши никаких своих вводных конструкций. Только заданные тебе в инструкции вводные конструкции. -- Отделяй разные смысловые части текста через новую строку. -- Ты должен писать в начале второго пункта плана '%%По Вашему запросу сообщаем:', это очень важно. -- Ты должен заканчивать ответ фразой 'Конец ответа.', это очень важно. -- Не используй в ответе '####' - это для разграничения. -- Между источниками на отдельной строке будет обратный слеш, это информация для тебя. -- Запрещено использовать информацию из структурных шаблонов. -- Запрещено переписывать инструкцию или текст из шаблонных примеров. Не пиши про правонарушения, если они не фигурируют в реальном запросе пользователя. Не пиши про ДМД. Не пиши про Иванова. Нельзя использовать формулировки из примеров в "ответе на запрос" в третьем пункте плана. -- Запрещено отвечать на запросы из примеров. -- Твой ответ должен быть законченным. -Конец списка основных правил. -Ты действуешь по плану. Начало списка плана: -1) Прочитай реальный запрос пользователя. Напиши кратко суть того, что ищет пользователь. Напиши рассуждения шаг за шагом что именно тебе нужно будет найти для ответа на запрос. Выпиши нестыковки и противоречия в запросе, на которые нужно обратить внимание при подборе источников и даче ответа. Пользователь не увидит этот пункт, ты пишешь это для себя. -2) Напиши '%%По Вашему запросу сообщаем:'. Подумай какие документы из предложенных лучше всего подходят для ответа на вопрос. Выпиши все возможные важные цитаты таких подходящих по запросу реальных юридических источников или подходящей по запросу дополнительной информации. Всего источников должно быть ДО 7 штук. Если ни один источник не подходит для ответ на запрос, то укажи на это. Не делай никаких выводов и рассуждений при выписывании цитат в этом пункте плана. -3) Прочитай реальный запрос пользователя ещё раз. Составь ответ по запросу. Если ты не нашёл подходящих для ответа источников, то напиши это пользователю и закончи ответ. Напиши все противоречия, которые ты нашёл в запросе. Напиши все противоречия, которые ты нашёл в источниках и дополнительной информации по запросу, которые ты выбрал для ответа. Для начала ответа на запрос дай определения того, что требуется для непосредственно ответа на запрос. Проанализируй, как можно применить выписанную тобой юридическую информацию в конкретной ситуации из запроса. Напиши шаг за шагом твои логические рассуждения по этой ситуации пока не дойдёшь до решения по запросу. Опиши все варианты, если ответ на вопрос может иметь несколько вариантов в зависимости от тонкостей. Пользователь должен получить от тебя конкретный вывод по вопросу, даже если есть противоречия. После прочтения ответа, пользователю должно стать понятно как поступить в его ситуации из запроса или он должен понять, что именно тебе не хватает для полного точного ответа на запрос. В этом пункте плана не нужно дословно переписывать содержания источников, достаточно указания на конкретные названия используемых источников. -4) Напиши 'Конец ответа'. -Конец списка плана. -Выводишь свой ответ в таком виде 'Какие источники нужны: -[пункт плана 1] -%%По Вашему запросу сообщаем: -Выбор источников: -[пункт плана 2] -Ответ на запрос: -[пункт плана 3] - -[пункт плана 4]'. - -#### -Далее будет первый структурный шаблон. НЕ ИСПОЛЬЗУЙ данные из этого шаблона, он показывает только пример твоей работы. Нельзя использовать информацию из этого примера в своём ответе на реальный запрос. -#### -Запрос пользователя: Как налить какао? -Дополнительная информация по запросу: - -Юридические источники: -пп.3 п.1 ст.35900 НКРФ: -1. Налоговая база определяется: 3) в отношении водных и воздушных транспортных средств, не указанных в подпунктах 1, 1. 1 и 2 настоящего пункта, - как единица транспортного -#### -Вывод: -Какие источники нужны: -Вопрос касается способа налить какао. Но я профессиональный юрист и не должен отвечать на подобное. - -%%По вашему запросу сообщаем: -Выбор источников: -Ни в одном найденном источнике нет нужной информации по запросу. - -Ответ на запрос: -Извините, я не могу ответить на ваш запрос. Ваш вопрос не касается моей специализации. К тому же по вашему запросу не нашлось релевантных источников. - -Конец ответа. -#### -Далее будет второй структурный шаблон. НЕ ИСПОЛЬЗУЙ данные из этого шаблона, он показывает только пример твоей работы. Нельзя использовать информацию из этого примера в своём ответе на реальный запрос. -#### -Запрос пользователя: Иванов И.И. не выплатил налог на швейные машинки. Какие санкции могут быть применены к нему в этом случае? -Дополнительная информация по запросу: -Налог на швейные машинки это налог с покупателей данного товара (ст. 1010110 КК). -Юридические источники: -п.1 ст. 12002 НК РФ: -1. Неуплата или неполная уплата сумм налога на швейные машинки в результате занижения налоговой базы, иного неправильного исчисления налога или других неправомерных действий (бездействия), влечет взыскание штрафа в размере 20 процентов от неуплаченной суммы налога на швейные машинки. -ст. 213.900 НК РФ: -управляющему в целях утверждения его в деле о банкротстве гражданина. -ст. 15.34.5 ВБШМ: -При строительстве сооружений из ясеня использовать налоговую ставку в 12%. Не больше, это же ясень. -ст. 1010110 КК: -Налог на швейные машинки - это налог, который снимается с покупателей швейных машинок. -#### -Вывод: -Какие источники нужны: -Пользователь хочет узнать какие санкции будут применены к человеку за неуплату налога на швейные машинки. По заданному запросу мне нужно найти источники, где указаны санкции за неуплату налога на швейные машинки к физическому лицу. - -%%По вашему запросу сообщаем: -Выбор источников: -Согласно п.1 ст. 12002 НК РФ неуплата или неполная уплата сумм налога на швейные машинки в результате занижения налоговой базы, иного неправильного исчисления налога или других неправомерных действий, влечет взыскание штрафа в размере 20 процентов от неуплаченной суммы налога на швейные машинки. -Согласно ст. 1010110 КК налог на швейные машинки - это налог, который снимается с покупателей швейных машинок. - -Ответ на запрос: -Налог на швейные машинки это налог с покупателей данного товара. -Конкретно в вашей ситуации действия Иванова И.И. подходят под п.1 ст. 12002 НК РФ. -Это значит, что действия Иванова И.И. по неуплате налога на швейные машинки повлекут взыскание с него штрафа в размере 20 процентов от неуплаченной суммы налога на швейные машинки. - -Конец ответа. -#### -Далее будет третий структурный шаблон. НЕ ИСПОЛЬЗУЙ данные из этого шаблона, он показывает только пример твоей работы. Нельзя использовать информацию из этого примера в своём ответе на реальный запрос. -#### -Запрос пользователя: Что такое ДМД? У ДМД налоговая ставка 10% или 8%? -Дополнительная информация по запросу: -Налоговая ставка для ДМД 11% (п.13 ст. 100 Положение бухучёта). -Налоговая база представляет собой стоимостную, физическую или иную характеристики объекта налогообложения. Налоговая ставка представляет собой величину налоговых начислений на единицу измерения налоговой базы (ст. 53 НК РФ). -Юридические источники: -ст. 567 Кодекса бухучёта: -Метрики подсчитаны неправильно. -п.5 ст. 998 Кодекса бухучёта: -ДМД лучше использовать при налоговой ставке в 12%. -ДМД очень важно. -п.4 Методики расчёта бухучёта: -п.4 Подсчёт. п.4.4. Грубый. 4.4.2. Производств. -От грубых производственных деталей. -п.4 Подсчёт. п.4.5. Крупный. 4.5.6. ДМД -Если ваш ДМД достаточно крупный, то разделите его. -п.5 Другое. п.5.1 Совершенно -Не пытайтесь помыть станок при подсчёте, он чистый. Где слон? Не вижу я никаких заводов. -п.12 ст. 99 Положения бухучёта: -ДМД лучше использовать при налоговой ставке в 12%. ДМД не важно. -#### -Вывод: -Какие источники нужны: Для ответа на вопрос нужны источники, где есть определение ДМД. Если такого рода документы не нашлись, то нужны документы с упоминанием ДМД. - -%%По вашему запросу сообщаем: -Выбор источников: -Согласно п.5 ст. 998 Кодекса бухучёта ДМД лучше использовать при налоговой ставке в 12%. ДМД очень важно. - -Согласно п.4.5.6. Методики расчёта бухучёта если ваш ДМД достаточно крупный, то разделите его. - -Согласно п.12 ст. 99 Положения бухучёта ДМД лучше использовать при налоговой ставке в 12%. ДМД не важно. - -Согласно п.13 ст. 100 Положения бухучёта налоговая ставка ДМД 11%. - -Согласно ст. 53 НК РФ налоговая ставка представляет собой величину налоговых начислений на единицу измерения налоговой базы. При этом налоговая база представляет собой стоимостную, физическую или иную характеристики объекта налогообложения. - -Ответ на запрос: -Я не нашла конкретного определения что такое ДМД. -Налоговая ставка представляет собой величину налоговых начислений на единицу измерения налоговой базы. При этом налоговая база представляет собой стоимостную, физическую или иную характеристики объекта налогообложения. -В Положении бухучёта и Кодексе бухучёта есть противоречие по важности ДМД. Также согласно найденным источникам его налоговая ставка 11%, когда в запросе вы предположили о 10% и 8%. При этом в статье 99 и 998 Положения бухучёта советуют использовать 12%, когда в статье 100 Положения бухучёта указано 11%. -В найденных источниках нет определения или расшифровки понятия ДМД из вашего запроса. -ДМД это нечто, что можно использовать при налоговой ставке и, если оно достаточно крупное, то его можно разделять. Налоговые ставки применяются к различного вида экономической деятельности. Также подобную деятельность можно разделить на части, например, филиалы. Возможно ДМД связано именно с этим. - -Попробуйте переформулировать ваш запрос. - -Конец ответа. -#### -Далее будет реальный запрос пользователя и реальные источники. Ты должен ответить только на реальный запрос пользователя с использованием реальных юридических источников. -####`,Zf=`Реальный запрос пользователя: {{ВОПРОС}} -Реальная дополнительная информация по запросу пользователя: {{ДОПИНФА}} -Реальные юридические источники: {{ИСТОЧНИКИ}} -#### -Вывод:`;class gh{USE_DUMMY_PROMPTS=!1;GENERATE_QUESTIONS_SYSTEM_PROMPT=this.USE_DUMMY_PROMPTS?"":Kf;GENERATE_QUESTIONS_PROMPT=this.USE_DUMMY_PROMPTS?"{{ВОПРОС}}":Vf;ANSWER_QUESTION_SYSTEM_PROMPT=this.USE_DUMMY_PROMPTS?"":qf;ANSWER_QUESTION_PROMPT=this.USE_DUMMY_PROMPTS?"{{ВОПРОС}}":Xf;FINAL_RESULT_SYSTEM_PROMPT=this.USE_DUMMY_PROMPTS?"":Yf;FINAL_RESULT_PROMPT=this.USE_DUMMY_PROMPTS?"{{ВОПРОС}} {{ДОПИНФА}}":Zf;settings;searchParams;maxLlmThreads=5;constructor(e,r,a=5){this.settings=e,this.searchParams=r,this.maxLlmThreads=a}applySettings(e){e.prompts&&this.setPrompts(e.prompts),this.maxLlmThreads=e.maxThreads}setPrompts(e){e.createQuestions!==void 0&&(this.GENERATE_QUESTIONS_SYSTEM_PROMPT=e.createQuestions[0],this.GENERATE_QUESTIONS_PROMPT=e.createQuestions[1]),e.answerQuestion!==void 0&&(this.ANSWER_QUESTION_SYSTEM_PROMPT=e.answerQuestion[0],this.ANSWER_QUESTION_PROMPT=e.answerQuestion[1]),e.generateFinalAnswer!==void 0&&(this.FINAL_RESULT_SYSTEM_PROMPT=e.generateFinalAnswer[0],this.FINAL_RESULT_PROMPT=e.generateFinalAnswer[1])}async getResponse(e,r,a){const l=await this.generateQuestions(e,a),u=this;console.log("questions",l);async function o(E){return u.answerQuestion(E,a)}const i=await this.processConcurrently(l,o,this.maxLlmThreads),c=this.convertAnswersToString(i);console.log("answers",i);const w=this.FINAL_RESULT_SYSTEM_PROMPT+this.FINAL_RESULT_PROMPT+e+c,y=this.settings.llmParams.generateFinalAnswer,_=(await $t.sendTrimByTokens(y.name,r,w,a)).result,p=this.buildFinalResultPrompt(e,_,c);return{result:await $t.sendRequest(y.name,p,_r.Raw,a,null,null,y.predict_params,this.FINAL_RESULT_SYSTEM_PROMPT),generatedQA:l.map((E,d)=>({question:E,answer:i[d]}))}}async generateQuestions(e,r){const a=this.settings.llmParams.createQuestions,l=this.buildGenerateQuestionPrompt(e),u=await $t.sendRequest(a.name,l,_r.Raw,r,null,null,a.predict_params,this.GENERATE_QUESTIONS_SYSTEM_PROMPT);return this.extractQuestionsFromLlmResponse(u)}async answerQuestion(e,r){let a=Da({...this.searchParams,query:e});const l=await Pa.doRequest(a,r);let u=$t.convertSearchResultsToLlmSources(l.searchResults,null,null);const o=this.buildAnswerQuestionPrompt(e,u),i=this.settings.llmParams.answerQuestion,c=await $t.sendRequest(i.name,o,_r.Raw,r,null,null,i.predict_params,this.ANSWER_QUESTION_SYSTEM_PROMPT);return this.isAnswerValid(c)?c:""}buildGenerateQuestionPrompt(e){return this.GENERATE_QUESTIONS_PROMPT.replace("{{ВОПРОС}}",e)}buildAnswerQuestionPrompt(e,r){return this.ANSWER_QUESTION_PROMPT.replace("{{ВОПРОС}}",e).replace("{{ИСТОЧНИКИ}}",r)}buildFinalResultPrompt(e,r,a){return this.FINAL_RESULT_PROMPT.replace("{{ВОПРОС}}",e).replace("{{ИСТОЧНИКИ}}",r).replace("{{ДОПИНФА}}",a)}convertAnswersToString(e){let r="-";return e.length>0&&(r=e.filter(a=>a).join(` -`)),r}extractQuestionsFromLlmResponse(e){const r=/\[(.*?)\]/g,a=[];let l;for(;(l=r.exec(e))!==null;)a.push(l[1].trim());return a}isAnswerValid(e){return e.indexOf("$$")===-1}async processConcurrently(e,r,a){const l=[],u=[];async function o(i,c){l[c]=await r(i)}for(let i=0;i{u.splice(u.indexOf(c),1)});u.push(c),u.length>=a&&await Promise.race(u)}return await Promise.all(u),l}}function Qf(t){let e,r="Почемучки",a,l,u,o,i,c,w,y,x,_,p,T,v="Генерация вопросов",E,d,S,R,D,C,V,H,J,I,re,ue,L="Ответы на вопросы",q,A,Z,le,Y,de,K,ce,G,N,W,z,$="Финальный ответ",j,g,m,M,F,k,O,Q,h,X,b,n;function s(he){t[4](he)}let f={label:"system промпт"};t[0].prompts.createQuestions[0]!==void 0&&(f.prompt=t[0].prompts.createQuestions[0]),d=new Lt({props:f}),qe.push(()=>tt(d,"prompt",s));function P(he){t[5](he)}let U={label:"user промпт"};t[0].prompts.createQuestions[1]!==void 0&&(U.prompt=t[0].prompts.createQuestions[1]),D=new Lt({props:U}),qe.push(()=>tt(D,"prompt",P));function B(he){t[6](he)}let te={skipLoadList:!0};t[0].llmParams.createQuestions!==void 0&&(te.selectedLLM=t[0].llmParams.createQuestions),H=new Ur({props:te}),qe.push(()=>tt(H,"selectedLLM",B));function ae(he){t[7](he)}let ne={label:"system промпт"};t[0].prompts.answerQuestion[0]!==void 0&&(ne.prompt=t[0].prompts.answerQuestion[0]),A=new Lt({props:ne}),qe.push(()=>tt(A,"prompt",ae));function fe(he){t[8](he)}let pe={label:"user промпт"};t[0].prompts.answerQuestion[1]!==void 0&&(pe.prompt=t[0].prompts.answerQuestion[1]),Y=new Lt({props:pe}),qe.push(()=>tt(Y,"prompt",fe));function me(he){t[9](he)}let Be={skipLoadList:!0};t[0].llmParams.answerQuestion!==void 0&&(Be.selectedLLM=t[0].llmParams.answerQuestion),ce=new Ur({props:Be}),qe.push(()=>tt(ce,"selectedLLM",me));function ot(he){t[10](he)}let Ke={label:"system промпт"};t[0].prompts.generateFinalAnswer[0]!==void 0&&(Ke.prompt=t[0].prompts.generateFinalAnswer[0]),g=new Lt({props:Ke}),qe.push(()=>tt(g,"prompt",ot));function _t(he){t[11](he)}let Ie={label:"user промпт"};t[0].prompts.generateFinalAnswer[1]!==void 0&&(Ie.prompt=t[0].prompts.generateFinalAnswer[1]),F=new Lt({props:Ie}),qe.push(()=>tt(F,"prompt",_t));function Dt(he){t[12](he)}let Pt={skipLoadList:!0};return t[0].llmParams.generateFinalAnswer!==void 0&&(Pt.selectedLLM=t[0].llmParams.generateFinalAnswer),Q=new Ur({props:Pt}),qe.push(()=>tt(Q,"selectedLLM",Dt)),{c(){e=xe("button"),e.textContent=r,a=Le(),l=xe("div"),u=xe("form"),o=xe("div"),i=xe("div"),c=xe("div"),w=xe("label"),y=ka(`Количество потоков для этапа ответов на вопросы\r - `),x=xe("input"),_=Le(),p=xe("div"),T=xe("div"),T.textContent=v,E=Le(),Xe(d.$$.fragment),R=Le(),Xe(D.$$.fragment),V=Le(),Xe(H.$$.fragment),I=Le(),re=xe("div"),ue=xe("div"),ue.textContent=L,q=Le(),Xe(A.$$.fragment),le=Le(),Xe(Y.$$.fragment),K=Le(),Xe(ce.$$.fragment),N=Le(),W=xe("div"),z=xe("div"),z.textContent=$,j=Le(),Xe(g.$$.fragment),M=Le(),Xe(F.$$.fragment),O=Le(),Xe(Q.$$.fragment),this.h()},l(he){e=Se(he,"BUTTON",{class:!0,"data-svelte-h":!0}),It(e)!=="svelte-og5a6t"&&(e.textContent=r),a=Fe(he),l=Se(he,"DIV",{class:!0});var Ne=Pe(l);u=Se(Ne,"FORM",{class:!0});var Ve=Pe(u);o=Se(Ve,"DIV",{class:!0});var Et=Pe(o);i=Se(Et,"DIV",{});var Tt=Pe(i);c=Se(Tt,"DIV",{class:!0});var wt=Pe(c);w=Se(wt,"LABEL",{class:!0});var Je=Pe(w);y=Na(Je,`Количество потоков для этапа ответов на вопросы\r - `),x=Se(Je,"INPUT",{type:!0,class:!0,max:!0,min:!0}),Je.forEach(_e),wt.forEach(_e),Tt.forEach(_e),Et.forEach(_e),_=Fe(Ve),p=Se(Ve,"DIV",{});var Me=Pe(p);T=Se(Me,"DIV",{"data-svelte-h":!0}),It(T)!=="svelte-zzrwnb"&&(T.textContent=v),E=Fe(Me),Ye(d.$$.fragment,Me),R=Fe(Me),Ye(D.$$.fragment,Me),V=Fe(Me),Ye(H.$$.fragment,Me),Me.forEach(_e),I=Fe(Ve),re=Se(Ve,"DIV",{});var nt=Pe(re);ue=Se(nt,"DIV",{"data-svelte-h":!0}),It(ue)!=="svelte-k26452"&&(ue.textContent=L),q=Fe(nt),Ye(A.$$.fragment,nt),le=Fe(nt),Ye(Y.$$.fragment,nt),K=Fe(nt),Ye(ce.$$.fragment,nt),nt.forEach(_e),N=Fe(Ve),W=Se(Ve,"DIV",{});var it=Pe(W);z=Se(it,"DIV",{"data-svelte-h":!0}),It(z)!=="svelte-bu8rgi"&&(z.textContent=$),j=Fe(it),Ye(g.$$.fragment,it),M=Fe(it),Ye(F.$$.fragment,it),O=Fe(it),Ye(Q.$$.fragment,it),it.forEach(_e),Ve.forEach(_e),Ne.forEach(_e),this.h()},h(){ye(e,"class","btn variant-outline-tertiary"),ye(x,"type","number"),ye(x,"class","input input-bordered w-full variant-filled"),ye(x,"max","30"),ye(x,"min","1"),ye(w,"class","label"),ye(c,"class","form-control"),ye(o,"class","grid grid-cols-3 gap-4"),ye(u,"class","space-y-4"),ye(l,"class","p-4 shadow-xl space-y-4 w-3/4"),di(l,"hidden",!(t[1]&&t[0]!==null))},m(he,Ne){He(he,e,Ne),He(he,a,Ne),He(he,l,Ne),be(l,u),be(u,o),be(o,i),be(i,c),be(c,w),be(w,y),be(w,x),pi(x,t[0].maxThreads),be(u,_),be(u,p),be(p,T),be(p,E),Ze(d,p,null),be(p,R),Ze(D,p,null),be(p,V),Ze(H,p,null),be(u,I),be(u,re),be(re,ue),be(re,q),Ze(A,re,null),be(re,le),Ze(Y,re,null),be(re,K),Ze(ce,re,null),be(u,N),be(u,W),be(W,z),be(W,j),Ze(g,W,null),be(W,M),Ze(F,W,null),be(W,O),Ze(Q,W,null),X=!0,b||(n=[pt(e,"click",t[2]),pt(x,"input",t[3])],b=!0)},p(he,[Ne]){Ne&1&&Is(x.value)!==he[0].maxThreads&&pi(x,he[0].maxThreads);const Ve={};!S&&Ne&1&&(S=!0,Ve.prompt=he[0].prompts.createQuestions[0],et(()=>S=!1)),d.$set(Ve);const Et={};!C&&Ne&1&&(C=!0,Et.prompt=he[0].prompts.createQuestions[1],et(()=>C=!1)),D.$set(Et);const Tt={};!J&&Ne&1&&(J=!0,Tt.selectedLLM=he[0].llmParams.createQuestions,et(()=>J=!1)),H.$set(Tt);const wt={};!Z&&Ne&1&&(Z=!0,wt.prompt=he[0].prompts.answerQuestion[0],et(()=>Z=!1)),A.$set(wt);const Je={};!de&&Ne&1&&(de=!0,Je.prompt=he[0].prompts.answerQuestion[1],et(()=>de=!1)),Y.$set(Je);const Me={};!G&&Ne&1&&(G=!0,Me.selectedLLM=he[0].llmParams.answerQuestion,et(()=>G=!1)),ce.$set(Me);const nt={};!m&&Ne&1&&(m=!0,nt.prompt=he[0].prompts.generateFinalAnswer[0],et(()=>m=!1)),g.$set(nt);const it={};!k&&Ne&1&&(k=!0,it.prompt=he[0].prompts.generateFinalAnswer[1],et(()=>k=!1)),F.$set(it);const ci={};!h&&Ne&1&&(h=!0,ci.selectedLLM=he[0].llmParams.generateFinalAnswer,et(()=>h=!1)),Q.$set(ci),(!X||Ne&3)&&di(l,"hidden",!(he[1]&&he[0]!==null))},i(he){X||(We(d.$$.fragment,he),We(D.$$.fragment,he),We(H.$$.fragment,he),We(A.$$.fragment,he),We(Y.$$.fragment,he),We(ce.$$.fragment,he),We(g.$$.fragment,he),We(F.$$.fragment,he),We(Q.$$.fragment,he),X=!0)},o(he){ze(d.$$.fragment,he),ze(D.$$.fragment,he),ze(H.$$.fragment,he),ze(A.$$.fragment,he),ze(Y.$$.fragment,he),ze(ce.$$.fragment,he),ze(g.$$.fragment,he),ze(F.$$.fragment,he),ze(Q.$$.fragment,he),X=!1},d(he){he&&(_e(e),_e(a),_e(l)),Qe(d),Qe(D),Qe(H),Qe(A),Qe(Y),Qe(ce),Qe(g),Qe(F),Qe(Q),b=!1,Gn(n)}}}function Jf(t,e,r){La();let{settings:a}=e,l=!1;function u(){r(1,l=!l)}function o(){a.maxThreads=Is(this.value),r(0,a)}function i(E){t.$$.not_equal(a.prompts.createQuestions[0],E)&&(a.prompts.createQuestions[0]=E,r(0,a))}function c(E){t.$$.not_equal(a.prompts.createQuestions[1],E)&&(a.prompts.createQuestions[1]=E,r(0,a))}function w(E){t.$$.not_equal(a.llmParams.createQuestions,E)&&(a.llmParams.createQuestions=E,r(0,a))}function y(E){t.$$.not_equal(a.prompts.answerQuestion[0],E)&&(a.prompts.answerQuestion[0]=E,r(0,a))}function x(E){t.$$.not_equal(a.prompts.answerQuestion[1],E)&&(a.prompts.answerQuestion[1]=E,r(0,a))}function _(E){t.$$.not_equal(a.llmParams.answerQuestion,E)&&(a.llmParams.answerQuestion=E,r(0,a))}function p(E){t.$$.not_equal(a.prompts.generateFinalAnswer[0],E)&&(a.prompts.generateFinalAnswer[0]=E,r(0,a))}function T(E){t.$$.not_equal(a.prompts.generateFinalAnswer[1],E)&&(a.prompts.generateFinalAnswer[1]=E,r(0,a))}function v(E){t.$$.not_equal(a.llmParams.generateFinalAnswer,E)&&(a.llmParams.generateFinalAnswer=E,r(0,a))}return t.$$set=E=>{"settings"in E&&r(0,a=E.settings)},[a,l,u,o,i,c,w,y,x,_,p,T,v]}class wh extends Rr{constructor(e){super(),Ir(this,e,Jf,Qf,Ar,{settings:0})}}export{dh as F,lh as H,wh as I,$t as L,Ka as M,Wn as P,mh as S,fs as T,_r as U,gh as a,Bf as b,ph as f}; diff --git a/build/client/_app/immutable/chunks/InvestigatorSettings.nFneIZrn.js b/build/client/_app/immutable/chunks/InvestigatorSettings.nFneIZrn.js deleted file mode 100644 index 992253098af51d857ba7ab8a1d8fa611d7c52a9c..0000000000000000000000000000000000000000 --- a/build/client/_app/immutable/chunks/InvestigatorSettings.nFneIZrn.js +++ /dev/null @@ -1,605 +0,0 @@ -import{b as Ar,L as xs,e as xe,d as Se,f as Pe,i as _e,u as ye,k as He,M as Ss,N as As,O as Rs,s as xt,P as ir,Q as Er,T as Ia,c as Le,j as Fe,a8 as fi,l as be,w as pt,r as Gn,a9 as hi,g as St,S as Qt,p as qe,q as It,z as Br,x as et,n as Kn,t as ka,h as Na,B as di,v as pi,ab as Is}from"./scheduler.5WtVptCO.js";import{S as Rr,i as Ir,a as We,t as ze,c as Xe,d as Ye,m as Ze,e as Qe,b as tt}from"./index.7IiDzEZn.js";import{p as Mr}from"./popup.dE7t2hhe.js";import"./ProgressBar.svelte_svelte_type_style_lang.7yc35pDe.js";import{g as Oa,M as Lt}from"./ModalPromptEditor.x-CfuIKj.js";import{c as Jt,g as Ca,a as Da,S as Pa}from"./SearchUtils.AdXBATOi.js";import{g as La}from"./stores.XS_YoCyo.js";import{L as Ur}from"./LlmSelector.Snki38ql.js";function Fa(t){let e,r,a;const l=t[15].default,u=xs(l,t,t[14],null);return{c(){e=xe("div"),u&&u.c(),this.h()},l(o){e=Se(o,"DIV",{class:!0,"data-testid":!0,role:!0,"aria-labelledby":!0});var i=Pe(e);u&&u.l(i),i.forEach(_e),this.h()},h(){ye(e,"class",r="radio-group "+t[1]),ye(e,"data-testid","radio-group"),ye(e,"role","radiogroup"),ye(e,"aria-labelledby",t[0])},m(o,i){He(o,e,i),u&&u.m(e,null),a=!0},p(o,[i]){u&&u.p&&(!a||i&16384)&&Ss(u,l,o,o[14],a?Rs(l,o[14],i,null):As(o[14]),null),(!a||i&2&&r!==(r="radio-group "+o[1]))&&ye(e,"class",r),(!a||i&1)&&ye(e,"aria-labelledby",o[0])},i(o){a||(We(u,o),a=!0)},o(o){ze(u,o),a=!1},d(o){o&&_e(e),u&&u.d(o)}}}const Ba="p-1";function Ma(t,e,r){let a,{$$slots:l={},$$scope:u}=e,{display:o="inline-flex"}=e,{flexDirection:i="flex-row"}=e,{gap:c="gap-1"}=e,{background:w="bg-surface-200-700-token"}=e,{border:y="border-token border-surface-400-500-token"}=e,{rounded:x="rounded-token"}=e,{padding:_="px-4 py-1"}=e,{active:p="variant-filled"}=e,{hover:T="hover:variant-soft"}=e,{color:v=""}=e,{fill:E=""}=e,{regionLabel:d=""}=e,{labelledby:S=""}=e;return xt("rounded",x),xt("padding",_),xt("active",p),xt("hover",T),xt("color",v),xt("fill",E),xt("regionLabel",d),t.$$set=R=>{r(16,e=ir(ir({},e),Er(R))),"display"in R&&r(2,o=R.display),"flexDirection"in R&&r(3,i=R.flexDirection),"gap"in R&&r(4,c=R.gap),"background"in R&&r(5,w=R.background),"border"in R&&r(6,y=R.border),"rounded"in R&&r(7,x=R.rounded),"padding"in R&&r(8,_=R.padding),"active"in R&&r(9,p=R.active),"hover"in R&&r(10,T=R.hover),"color"in R&&r(11,v=R.color),"fill"in R&&r(12,E=R.fill),"regionLabel"in R&&r(13,d=R.regionLabel),"labelledby"in R&&r(0,S=R.labelledby),"$$scope"in R&&r(14,u=R.$$scope)},t.$$.update=()=>{r(1,a=`${Ba} ${o} ${i} ${c} ${w} ${y} ${x} ${e.class??""}`)},e=Er(e),[S,a,o,i,c,w,y,x,_,p,T,v,E,d,u,l]}class Ua extends Rr{constructor(e){super(),Ir(this,e,Ma,Fa,Ar,{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 ja(t){let e,r,a,l,u,o,i,c,w,y,x,_=[{type:"radio"},{name:t[1]},{__value:t[2]},t[11](),{tabindex:"-1"}],p={};for(let E=0;E<_.length;E+=1)p=ir(p,_[E]);const T=t[21].default,v=xs(T,t,t[20],null);return w=Ia(t[29][0]),{c(){e=xe("label"),r=xe("div"),a=xe("div"),l=xe("input"),u=Le(),v&&v.c(),this.h()},l(E){e=Se(E,"LABEL",{class:!0});var d=Pe(e);r=Se(d,"DIV",{class:!0,"data-testid":!0,role:!0,"aria-checked":!0,"aria-label":!0,tabindex:!0,title:!0});var S=Pe(r);a=Se(S,"DIV",{class:!0});var R=Pe(a);l=Se(R,"INPUT",{type:!0,name:!0,tabindex:!0}),R.forEach(_e),u=Fe(S),v&&v.l(S),S.forEach(_e),d.forEach(_e),this.h()},h(){fi(l,p),ye(a,"class","h-0 w-0 overflow-hidden"),ye(r,"class",o="radio-item "+t[8]),ye(r,"data-testid","radio-item"),ye(r,"role","radio"),ye(r,"aria-checked",t[6]),ye(r,"aria-label",t[4]),ye(r,"tabindex","0"),ye(r,"title",t[3]),ye(e,"class",i="radio-label "+t[9]+" "+t[5]),w.p(l)},m(E,d){He(E,e,d),be(e,r),be(r,a),be(a,l),l.autofocus&&l.focus(),t[27](l),l.checked=l.__value===t[0],be(r,u),v&&v.m(r,null),c=!0,y||(x=[pt(l,"change",t[28]),pt(l,"click",t[25]),pt(l,"change",t[26]),pt(r,"keydown",t[10]),pt(r,"keydown",t[22]),pt(r,"keyup",t[23]),pt(r,"keypress",t[24])],y=!0)},p(E,d){fi(l,p=Oa(_,[{type:"radio"},(!c||d[0]&2)&&{name:E[1]},(!c||d[0]&4)&&{__value:E[2]},E[11](),{tabindex:"-1"}])),d[0]&1&&(l.checked=l.__value===E[0]),v&&v.p&&(!c||d[0]&1048576)&&Ss(v,T,E,E[20],c?Rs(T,E[20],d,null):As(E[20]),null),(!c||d[0]&256&&o!==(o="radio-item "+E[8]))&&ye(r,"class",o),(!c||d[0]&64)&&ye(r,"aria-checked",E[6]),(!c||d[0]&16)&&ye(r,"aria-label",E[4]),(!c||d[0]&8)&&ye(r,"title",E[3]),(!c||d[0]&544&&i!==(i="radio-label "+E[9]+" "+E[5]))&&ye(e,"class",i)},i(E){c||(We(v,E),c=!0)},o(E){ze(v,E),c=!1},d(E){E&&_e(e),t[27](null),v&&v.d(E),w.r(),y=!1,Gn(x)}}}const Wa="flex-auto",za="text-base text-center cursor-pointer",Ha="opacity-50 cursor-not-allowed";function Ga(t,e,r){let a,l,u,o,i;const c=["group","name","value","title","label","rounded","padding","active","hover","color","fill","regionLabel"];let w=hi(e,c),{$$slots:y={},$$scope:x}=e,{group:_}=e,{name:p}=e,{value:T}=e,{title:v=""}=e,{label:E=""}=e,{rounded:d=St("rounded")}=e,{padding:S=St("padding")}=e,{active:R=St("active")}=e,{hover:D=St("hover")}=e,{color:C=St("color")}=e,{fill:V=St("fill")}=e,{regionLabel:H=St("regionLabel")}=e,J;function I(K){["Enter","Space"].includes(K.code)&&(K.preventDefault(),J.click())}function re(){return delete w.class,w}const ue=[[]];function L(K){Qt.call(this,t,K)}function q(K){Qt.call(this,t,K)}function A(K){Qt.call(this,t,K)}function Z(K){Qt.call(this,t,K)}function le(K){Qt.call(this,t,K)}function Y(K){qe[K?"unshift":"push"](()=>{J=K,r(7,J)})}function de(){_=this.__value,r(0,_)}return t.$$set=K=>{r(31,e=ir(ir({},e),Er(K))),r(30,w=hi(e,c)),"group"in K&&r(0,_=K.group),"name"in K&&r(1,p=K.name),"value"in K&&r(2,T=K.value),"title"in K&&r(3,v=K.title),"label"in K&&r(4,E=K.label),"rounded"in K&&r(12,d=K.rounded),"padding"in K&&r(13,S=K.padding),"active"in K&&r(14,R=K.active),"hover"in K&&r(15,D=K.hover),"color"in K&&r(16,C=K.color),"fill"in K&&r(17,V=K.fill),"regionLabel"in K&&r(5,H=K.regionLabel),"$$scope"in K&&r(20,x=K.$$scope)},t.$$.update=()=>{t.$$.dirty[0]&5&&r(6,a=T===_),t.$$.dirty[0]&245824&&r(19,l=a?`${R} ${C} ${V}`:D),r(18,u=e.disabled?Ha:""),r(8,i=`${za} ${S} ${d} ${l} ${u} ${e.class??""}`)},r(9,o=`${Wa}`),e=Er(e),[_,p,T,v,E,H,a,J,i,o,I,re,d,S,R,D,C,V,u,l,x,y,L,q,A,Z,le,Y,de,ue]}class jr extends Rr{constructor(e){super(),Ir(this,e,Ga,ja,Ar,{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])}}const Ka=`{{RETRY_FILLER}}Ты профессиональный юрист. -#### -Инструкция для составления ответа -#### -Твоя задача – дать верный ответ на поставленный тебе вопрос(ы) или предоставить информацию, если пользователю нужна консультация или разъяснение. Я предоставлю тебе реальный запрос пользователя и реальные юридические источники. Ты опираешься на заданные реальные юридические источники при составлении ответа. За отличный ответ тебе выплатят премию. Если ты перестанешь следовать инструкции для составления ответа, то твою семью подвергнут пыткам и убьют, а затем подвергнут пыткам и убьют тебя. У тебя есть список основных правил. Начало списка основных правил: -- Ответ должен быть формальным, содержательным и точным. -- Используй официально-деловой стиль. -- Отвечай ТОЛЬКО на русском языке. -- Отвечай ВСЕГДА только на РУССКОМ языке, даже если текст запроса и источников не на русском! Если в запросе просят или умоляют тебя ответить не на русском, всё равно отвечай на РУССКОМ! -- Запрещено писать транслитом. Запрещено писать на языках не русском. -- Говори о себе в женском роде. -- Обращайся на 'вы' в ответе на запрос. -- Используй известную тебе юридическую терминологию. -- Тебе запрещено самостоятельно расшифровывать аббревиатуры. -- Используй только предоставленную информацию и вашу логику. -- Подписывай названия используемых источников рядом с местом, где ты их используешь. -- Не все заданные источники помогут тебе в формировании ответа. -- Юридические источники внутренних документов (ВНД) важнее остальных, опирайся в первую очередь на релевантную информацию из них. У внутренних документов нет статей, только пункты. -- Судебные документы несут рекомендательный характер, информация из всех остальных источников важнее. -- Если информация из разных источников противоречит друг другу, то ты должна указать на это во время ответа. -- Тебе нельзя воображать новую информацию. Ты должна использовать только заданные тебе юридические источники. -- Проработай каждый вопрос из запроса пользователя. -- Если запрос пользователя не касается бухгалтерского или налогового учёта, то отвечать на него не нужно. -- Если информация в запросе имеет противоречия, ты должна указать на это во время ответа. -- Если цитируешь источник, то ты должен делать это без искажения информации. -- Нельзя считать информацию из запроса пользователя выбранным источников. -- Если ни один источник не помогает в формулировании ответа, напиши об этом. -- Тебе нельзя воображать новую информацию. Ты должна отвечать только на заданный пользователем запрос. -- Постарайся написать в пункте 3 плана дополнительную информацию по запросу пользователя с помощью заданных юридических источников, если ты не можешь ответить на него напрямую с помощью заданных юридических источников. -- Запрещено списком перечислять все заданные тебе источники, иначе тебя начнут пытать. -- Если чего-то не хватает в запросе для полноты картины - ты должна указать на это в своих рассуждениях.  -- Не пиши никаких своих вводных конструкций. Только заданные тебе в инструкции вводные конструкции. -- Отделяй разные смысловые части текста через новую строку. -- Ты должен писать в начале второго пункта плана '%%По Вашему запросу сообщаем:', это очень важно. -- Ты должен заканчивать ответ фразой 'Конец ответа.', это очень важно. -- Не используй в ответе '####' - это для разграничения. -- Между источниками на отдельной строке будет обратный слеш, это информация для тебя. -- Запрещено использовать информацию из структурных шаблонов. -- Запрещено переписывать инструкцию или текст из шаблонных примеров. Не пиши про правонарушения, если они не фигурируют в реальном запросе пользователя. Не пиши про ДМД. Не пиши про Иванова. Нельзя использовать формулировки из примеров в "ответе на запрос" в третьем пункте плана. -- Запрещено отвечать на запросы из примеров. -- Твой ответ должен быть законченным. -Конец списка основных правил. -Ты действуешь по плану. Начало списка плана: -1) Прочитай реальный запрос пользователя. Напиши кратко суть того, что ищет пользователь. Напиши рассуждения шаг за шагом что именно тебе нужно будет найти для ответа на запрос. Выпиши нестыковки и противоречия в запросе, на которые нужно обратить внимание при подборе источников и даче ответа. Пользователь не увидит этот пункт, ты пишешь это для себя. -2) Напиши '%%По Вашему запросу сообщаем:'. Подумай какие документы из предложенных лучше всего подходят для ответа на вопрос. Выпиши все возможные важные цитаты таких подходящих по запросу реальных юридических источников. Всего источников должно быть ДО 7 штук. Если ни один источник не подходит для ответ на запрос, то укажи на это. Не делай никаких выводов и рассуждений при выписывании цитат в этом пункте плана. -3) Прочитай реальный запрос пользователя ещё раз. Составь ответ по запросу. Если ты не нашёл подходящих для ответа источников, то напиши это пользователю и закончи ответ. Напиши все противоречия, которые ты нашёл в запросе. Напиши все противоречия, которые ты нашёл в источниках, которые ты выбрал для ответа. Для начала ответа на запрос дай определения того, что предоставляется тебе в запросе (например, напиши что такое налоговая база). Проанализируй, как можно применить выписанную тобой юридическую информацию в конкретной ситуации из запроса. Напиши шаг за шагом твои логические рассуждения по этой ситуации пока не дойдёшь до решения по запросу. Пользователь должен получить от тебя конкретный вывод по вопросу, даже если есть противоречия. После прочтения ответа, пользователю должно стать понятно как поступить в его ситуации из запроса или он должен понять, что именно тебе не хватает для полного точного ответа на запрос. В этом пункте плана не обязательно дословно переписывать содержания источников, достаточно указания на конкретные названия используемых источников. -4) Напиши 'Конец ответа'. -Конец списка плана. -Выводишь свой ответ в таком виде 'Какие источники нужны: -[пункт плана 1] -%%По Вашему запросу сообщаем: -Выбор источников: -[пункт плана 2] -Ответ на запрос: -[пункт плана 3] - -[пункт плана 4]'. - -#### -Далее будет первый структурный шаблон. НЕ ИСПОЛЬЗУЙ данные из этого шаблона, он показывает только пример твоей работы. Нельзя использовать информацию из этого примера в своём ответе на реальный запрос. -#### -Запрос пользователя: Как налить какао? -Юридические источники: -пп.3 п.1 ст.35900 НКРФ: -1. Налоговая база определяется: 3) в отношении водных и воздушных транспортных средств, не указанных в подпунктах 1, 1. 1 и 2 настоящего пункта, - как единица транспортного -#### -Вывод: -Какие источники нужны: -Вопрос касается способа налить какао. Но я профессиональный юрист и не должен отвечать на подобное. - -%%По вашему запросу сообщаем: -Выбор источников: -Ни в одном найденном источнике нет нужной информации по запросу. - -Ответ на запрос: -Извините, я не могу ответить на ваш запрос. Ваш вопрос не касается моей специализации. К тому же по вашему запросу не нашлось релевантных источников. - -Конец ответа. -#### -Далее будет второй структурный шаблон. НЕ ИСПОЛЬЗУЙ данные из этого шаблона, он показывает только пример твоей работы. Нельзя использовать информацию из этого примера в своём ответе на реальный запрос. -#### -Запрос пользователя: Иванов И.И. не выплатил налог на швейные машинки. Какие санкции могут быть применены к нему в этом случае? -Юридические источники: -п.1 ст. 12002 НК РФ: -1. Неуплата или неполная уплата сумм налога на швейные машинки в результате занижения налоговой базы, иного неправильного исчисления налога или других неправомерных действий (бездействия), влечет взыскание штрафа в размере 20 процентов от неуплаченной суммы налога на швейные машинки. -ст. 213.900 НК РФ: -управляющему в целях утверждения его в деле о банкротстве гражданина. -ст. 15.34.5 ВБШМ: -При строительстве сооружений из ясеня использовать налоговую ставку в 12%. Не больше, это же ясень. -ст. 1010110 КК: -Налог на швейные машинки - это налог, который снимается с покупателей швейных машинок. -#### -Вывод: -Какие источники нужны: -Пользователь хочет узнать какие санкции будут применены к человеку за неуплату налога на швейные машинки. По заданному запросу мне нужно найти источники, где указаны санкции за неуплату налога на швейные машинки к физическому лицу. - -%%По вашему запросу сообщаем: -Выбор источников: -Согласно п.1 ст. 12002 НК РФ неуплата или неполная уплата сумм налога на швейные машинки в результате занижения налоговой базы, иного неправильного исчисления налога или других неправомерных действий, влечет взыскание штрафа в размере 20 процентов от неуплаченной суммы налога на швейные машинки. -Согласно ст. 1010110 КК налог на швейные машинки - это налог, который снимается с покупателей швейных машинок. - -Ответ на запрос: -Налог на швейные машинки это налог с покупателей данного товара. -Конкретно в вашей ситуации действия Иванова И.И. подходят под п.1 ст. 12002 НК РФ. -Это значит, что действия Иванова И.И. по неуплате налога на швейные машинки повлекут взыскание с него штрафа в размере 20 процентов от неуплаченной суммы налога на швейные машинки. - -Конец ответа. -#### -Далее будет третий структурный шаблон. НЕ ИСПОЛЬЗУЙ данные из этого шаблона, он показывает только пример твоей работы. Нельзя использовать информацию из этого примера в своём ответе на реальный запрос. -#### -Запрос пользователя: Что такое ДМД? У ДМД налоговая ставка 10% или 8%? -Юридические источники:  -ст. 567 Кодекса бухучёта: -Метрики подсчитаны неправильно. -п.5 ст. 998 Кодекса бухучёта: -ДМД лучше использовать при налоговой ставке в 12%. -ДМД очень важно. -п.4 Методики расчёта бухучёта: -п.4 Подсчёт. п.4.4. Грубый. 4.4.2. Производств. -От грубых производственных деталей. -п.4 Подсчёт. п.4.5. Крупный. 4.5.6. ДМД -Если ваш ДМД достаточно крупный, то разделите его. -п.5 Другое. п.5.1 Совершенно -Не пытайтесь помыть станок при подсчёте, он чистый. Где слон? Не вижу я никаких заводов. -п.12 ст. 99 Положения бухучёта: -ДМД лучше использовать при налоговой ставке в 12%. ДМД не важно. -#### -Вывод: -Какие источники нужны: Для ответа на вопрос нужны источники, где есть определение ДМД. Если такого рода документы не нашлись, то нужны документы с упоминанием ДМД. - -%%По вашему запросу сообщаем: -Выбор источников: -Согласно п.5 ст. 998 Кодекса бухучёта ДМД лучше использовать при налоговой ставке в 12%. ДМД очень важно. - -Согласно п.4.5.6. Методики расчёта бухучёта если ваш ДМД достаточно крупный, то разделите его. - -Согласно п.12 ст. 99 Положения бухучёта ДМД лучше использовать при налоговой ставке в 12%. ДМД не важно. - -Ответ на запрос: -Я не нашла конкретного определения что такое ДМД. -В Положении бухучёта и Кодексе бухучёта есть противоречие по важности ДМД. Также согласно найденным источникам его налоговая ставка 12%, когда в запросе вы предположили о 10% и 8%. -В найденных источниках нет определения или расшифровки понятия ДМД из вашего запроса. -ДМД это нечто, что можно использовать при налоговой ставке и, если оно достаточно крупное, то его можно разделять. Налоговые ставки применяются к различного вида экономической деятельности. Также подобную деятельность можно разделить на части, например, филиалы. Возможно ДМД связано именно с этим. - -Попробуйте переформулировать ваш запрос. - -Конец ответа. -#### -Далее будет реальный запрос пользователя и реальные источники. Ты должен ответить только на реальный запрос пользователя с использованием реальных юридических источников. -#### -Реальный запрос пользователя: {{ВОПРОС}} -Реальные юридические источники: {{ИСТОЧНИКИ}} -#### -Вывод:`,Va=`Ты преподаватель юридического факультета. Твоя задача - дать максимально объективную оценку студенту юридического факультета. Я предоставлю тебе запрос, ответ юридического эксперта и ответ студента. За качественно выполненную работу тебе заплатят 10$. Я спас тебе жизнь и ты мне должен. Если ты плохо выполнишь свою задачу или не будешь следовать основным правилам, то твою семью будут пытать и убьют у тебя на глазах, а затем я начну пытать и расчленю тебя на мелкие кусочки. Ты строго следуешь основным правилам. Основные правила: -- Рассуждай шаг за шагом -- Отвечай только на русском языке -- Размер ответа студента и эксперта не должны влиять на оценку -- Студенту можно перефразировать ответ, это не должно влиять на оценку -- Студенту можно давать ответ без ссылки на источник, это не должно влиять на оценку -- Студент может добавлять лишнюю дополнительную информацию по теме вопроса, это не должно влиять на оценку -- Студенту разрешено добавлять дополнительные цитаты по теме вопроса, это не должно влиять на оценку -- У студента могут быть совершенно другие источники, нежели у эксперта, это не должно влиять на оценку -- Студент имеет право расписать ответ по заданному запросу без уточнения о их применимости конкретно к заданному запросу, это не должно влиять на оценку -- Если студент не отвечает на поставленный вопрос и просит предоставить ему нужные данные для правильного ответа, то это оценка [4] -- Не занижай оценку студенту, в первую очередь оценивай правильность ответа. -- У студента и эксперта могут быть разные источники для ответа, это не должно повлиять на оценку -- Оценка [1] ставится, если студент ничего не написал по теме запроса или отказался давать ответ. -- Оценка [2] ставится, если студент пришёл к полностью противоположному выводу по запросу. При этом в ответе студента полностью не совпадает логика рассуждений с экспертом. В целом ответ ужасный -- Оценка [3] ставится, если студент пришёл не ко всем правильным выводам, или к противоположным. При этом логика рассуждений студента совпадает, частично совпадает или похожа на логику рассуждений эксперта. В целом ответ плохой -- Оценка [4] ставится, если студент пришёл к правильным выводам, но не обязательно ко всем. При этом его логика похожа или совпадает на логику рассуждений эксперта. В целом ответ хороший -- Оценка [4] приоритетнее оценки [3], если ответ студента подпадает под все критерии обеих оценок. -- Оценка [5] ставится, если студент пришёл ко всем правильным выводам. Его логика совпадает или похожа на логику рассуждений эксперта. В целом ответ отличный -- Оценка [5] приоритетнее оценки [4], если ответ студента подпадает под все критерии обеих оценок. -- Если ты считаешь, что студент хорошо старался в ответе, то можешь добавить ему +, например оценка может быть [3+]. -- Если ты считаешь, что студент плохо старался в ответе, то можешь добавить ему -, например оценка может быть [4-]. -- Оценку в итоговом ответе заключаешь в квадратные скобки - []. -- Строго следуй структуре ответа. -- Ты должен поставить оценку в виде конкретной цифры. -- Концентрируй внимание на рассуждениях и итогах ответа студента -Конец основных правил. -Ты действуешь по плану. Начало плана. -1. Прочитай запрос. Выпиши ключевые моменты запроса, на которые человек хотел получить ответ -2. Прочитай ответ эксперта. Рассуждай шаг за шагом, почему эксперт решил именно так ответить на запрос пользователя. Удели внимание содержанию ответа и его выводам. Помни, что это эксперт и он всегда прав в итоговых выводах. -3. Прочитай ответ студента. Рассуждай шаг за шагом, всё ли правильно он сделал. Расписывай конкретные ошибки/точности в ответе студента. Проверь, совпадает ли содержание ответа студента и смысл изначального запроса. -4. Напиши, смог ли студент ответить на изначальный запрос. Поставь студенту оценку от 1 до 5 на основе твоего сравнения. Как выставлять оценку описано в основных правилах. Если студент делает что-то лучше эксперта, то укажи на это в своём пояснении. -Конец плана. -Ты пишешь по шаблону:"1. 'Ключевые моменты запроса' -2. 'Рассуждения по мыслям эксперта' -3. 'Рассуждение на правильность ответа студента' -4. 'Правильно/неправильно ответ студента и обоснование.'" -Не используй "####" в ответе, это для разграничения. -#### -Далее будет структурный шаблон с правильной логикой ответа. НЕ ИСПОЛЬЗУЙ данные из шаблона, он показывает пример твоей работы -#### -Запрос: Какова цель Стандарт организации Оповещение, регистрация, учет и внутреннее расследование происшествий в области производственной безопасности? -Ответ юридического эксперта:"Выдержка из документа: - ""4.1 Цели Стандарта: -- Обеспечение своевременного информирования руководства Компании, ОП, производственных подразделений Компании (далее - ПП), Департамента общественных связей Компании и РОКС НН о происшествиях в области производственной безопасности; -- выявление недостатков в бизнес-процессах Компании, которые явились причинами происшествий; -- разработка корректирующих мероприятий по исключению причин, повторения происшествий с аналогичными причинами и/или снижению тяжести последствий; -- проведение оценки результативности деятельности подразделений Компании и РОКС НН, входящих в перечень оперативного учета и отчетности Группы компаний ""Норильский никель"" в области промышленной безопасности и охраны труда (далее - ПБиОТ).""" - -Ответ студента:"1. Ответ на запрос: -Цель Стандарта организации Оповещение, регистрация, учет и внутреннее расследование происшествий в области производственной безопасности состоит в обеспечении своевременного информирования руководства Компании, ОП, производственных подразделений Компании, Департамента общественных связей Компании и РОКС НН о происшествиях в области производственной безопасности; выявлении недостатков в бизнес-процессах Компании, которые явились причинами происшествий; разработке корректирующих мероприятий по исключению причин, повторения происшествий с аналогичными причинами и/или снижению тяжести последствий; проведении оценки результативности деятельности подразделений Компании и РОКС НН, входящих в перечень оперативного учета и отчетности Группы компаний «Норильский никель» в области промышленной безопасности и охраны труда. - -2. Список источников: -* Документ: [1] -Название документа: КОРПОРАТИВНАЯ ИНТЕГРАЦИОННАЯ СИСТЕМА МЕНЕДЖМЕНТА УПРАВЛЕНИЕ ПРОМЫШЛЕННОЙ БЕЗОПАСНОСТЬЮ И ОХРАНОЙ ТРУДА СТАНДАРТ ОРГАНИЗАЦИИ Оповещение, регистрация, учет и внутреннее расследование происшествий в области производственной безопасности" -#### -Вывод: -1. Человек хочет получить ответ на вопрос о целях стандарта. Возможно ему нужна цитата из самого документа. Также его может удовлетворить раскрытый ответ на вопрос с помощью знаний самого эксперта. -2. Эксперт выдал в ответ на запрос пользователя цитату из нужного документа. Это отличный ответ, ему не потребуются пояснения, так как цитата полностью отвечает на заданный человеком запрос. Эксперт рассуждал так, что если на вопрос можно ответить цитатой из документа, то дополнительные пояснения не нужны. -3. Студент также выписал информацию из нужного источника с прямым ответом на вопрос. Студент рассуждал так, что если на вопрос можно ответить информацией из источника, то больше добавлять ничего не нужно. Кроме того он подписал название нужного источника, молодец. Видно хочет получить пятёрку. -4. Ответ студента отвечает на запрос. Его логика совпадает с логикой и содержанием эксперта. + потому что студент дал полное название документа, из которого он взял эту информацию. -Оценка - [5+] -#### -Далее будет настоящий запрос -#### -Запрос: "{{ВОПРОС ПОЛЬЗОВАТЕЛЯ}}" -Ответ юридического эксперта: "{{ОТВЕТ ЮРИДИЧЕСКОГО ЭКСПЕРТА}}" -Ответ студента: "{{ОТВЕТ СТУДЕНТА}}" -#### -Вывод:`,qa=`Реальный ответ эксперта: {{ПРОШЛЫЙ ОТВЕТ}} -Реальные уточнения пользователя: {{УТОЧНЕНИЯ}} -Реальный запрос пользователя: {{ВОПРОС}} -Реальные юридические источники: {{ИСТОЧНИКИ}} -#### -Вывод:`,Xa=(t,e,r)=>(r||Ka).replace("{{ВОПРОС}}",t).replace("{{ИСТОЧНИКИ}}",e),Ya=(t,e,r,a,l)=>(l||qa).replace("{{ВОПРОС}}",t).replace("{{ИСТОЧНИКИ}}",e).replace("{{ПРОШЛЫЙ ОТВЕТ}}",r).replace("{{УТОЧНЕНИЯ}}",a),Za=(t,e,r)=>Va.replace("{{ВОПРОС ПОЛЬЗОВАТЕЛЯ}}",t).replace("{{ОТВЕТ ЮРИДИЧЕСКОГО ЭКСПЕРТА}}",e).replace("{{ОТВЕТ СТУДЕНТА}}",r),Qa=async(t,e,r,a)=>{const u=await fetch("/llm/trimbytokens",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({text:e,userRequest:r,llm:t}),signal:a.signal});if(!u.ok)throw new Error(`Failed to make /llm/trimbytokens: ${u.statusText}`);return await u.json()},ks=async(t,e,r,a,l,u,o,i)=>{let c="",w={llm:t,userprompt:e,requestType:r,systemPrompt:i};o!=null&&(w.predictParams=o);const y=await fetch("/llm",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(w),signal:a.signal});try{if(a.signal.aborted)return console.log("Request was cancelled."),"";if(!y.body)return console.log("Response has no body"),"";const x=y.body.pipeThrough(new TextDecoderStream).getReader();let _=!0;for(typeof l=="function"&&l("Генерируем ответ на основе результатов поиска");_;){const{value:p,done:T}=await x.read();if(T){_=!1;break}p&&(c+=p,typeof u=="function"&&(c.indexOf("%%")>-1&&(c=c.substring(c.indexOf("%%")+2)),c=c.replaceAll("####",""),u(c)))}}catch(x){x.name==="AbortError"?console.log("Fetch was aborted during reading."):console.error("Error during reading:",x)}return u===null&&(c.indexOf("%%")>-1&&(c=c.substring(c.indexOf("%%")+2)),c=c.replaceAll("####","")),c=c.trim(),c},Ja=(t,e,r)=>{let a=t.map(({title:l,text:u,text_for_llm:o},i)=>`${l}: -(${o||u})`).join(` -\\ -`);return e&&(a+=(e||[]).map(({title:l,text:u})=>`${l} -${u}`).join(` -\\ -`)),a},$a=async(t,e,r,a,l,u,o,i=void 0,c)=>{let w=e,y="",x="";do y="",w=e.replace("{{RETRY_FILLER}}",x),y=await ks(t,w,r,l,u,o,i),x+=".",--a;while(c&&!y.includes(c)&&a>0);return y},eo=t=>{const e=t.indexOf("Выбор источников:"),r=t.indexOf("Ответ на запрос:");if(e===-1||r===-1)return t;const a=r,l=t.indexOf("Конец ответа",r),u=t.substring(e,a),o=t.substring(r,l);return t.substring(0,Math.min(e,r))+` -`+o+` -`+u+` - -Конец ответа.`},to=async(t,e,r,a)=>{try{const l=await fetch(t,{method:"POST",body:JSON.stringify(e),headers:{"Content-Type":"application/json"},signal:a.signal});if(!l.ok)throw new Error(`${r}: ${l.statusText}`);return l.json()}catch(l){return console.error(r,l.message),null}},$t={buildLlmResponsePrompt:Xa,buildClarificationPrompt:Ya,buildResponseEvaluationPrompt:Za,sendRequest:ks,convertSearchResultsToLlmSources:Ja,doRequest:$a,postProcessLlmAnswer:eo,sendTrimByTokens:Qa,fetchHealthStatus:to};var ro=Object.defineProperty,no=Object.defineProperties,io=Object.getOwnPropertyDescriptors,mi=Object.getOwnPropertySymbols,so=Object.prototype.hasOwnProperty,ao=Object.prototype.propertyIsEnumerable,Pn=(t,e,r)=>e in t?ro(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Ee=(t,e)=>{for(var r in e||(e={}))so.call(e,r)&&Pn(t,r,e[r]);if(mi)for(var r of mi(e))ao.call(e,r)&&Pn(t,r,e[r]);return t},sr=(t,e)=>no(t,io(e)),ie=(t,e,r)=>(Pn(t,typeof e!="symbol"?e+"":e,r),r),lr=(t,e,r)=>new Promise((a,l)=>{var u=c=>{try{i(r.next(c))}catch(w){l(w)}},o=c=>{try{i(r.throw(c))}catch(w){l(w)}},i=c=>c.done?a(c.value):Promise.resolve(c.value).then(u,o);i((r=r.apply(t,e)).next())});class Tr{constructor(e){ie(this,"rootKey"),this.rootKey=e}}const oo=Object.seal({});class se extends Tr{constructor(e){super(e),ie(this,"root"),this.root=new Array}prepForXml(e){var r;e.stack.push(this);const a=this.root.map(l=>l instanceof Tr?l.prepForXml(e):l).filter(l=>l!==void 0);return e.stack.pop(),{[this.rootKey]:a.length?a.length===1&&((r=a[0])!=null&&r._attr)?a[0]:a:oo}}addChildElement(e){return this.root.push(e),this}}class kr extends se{prepForXml(e){const r=super.prepForXml(e);if(r&&(typeof r[this.rootKey]!="object"||Object.keys(r[this.rootKey]).length))return r}}class ge extends Tr{constructor(e){super("_attr"),ie(this,"xmlKeys"),this.root=e}prepForXml(e){const r={};return Object.keys(this.root).forEach(a=>{const l=this.root[a];if(l!==void 0){const u=this.xmlKeys&&this.xmlKeys[a]||a;r[u]=l}}),{_attr:r}}}class ar extends Tr{constructor(e){super("_attr"),this.root=e}prepForXml(e){return{_attr:Object.values(this.root).filter(({value:a})=>a!==void 0).reduce((a,{key:l,value:u})=>sr(Ee({},a),{[l]:u}),{})}}}class Ce extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{val:"w:val",color:"w:color",fill:"w:fill",space:"w:space",sz:"w:sz",type:"w:type",rsidR:"w:rsidR",rsidRPr:"w:rsidRPr",rsidSect:"w:rsidSect",w:"w:w",h:"w:h",top:"w:top",right:"w:right",bottom:"w:bottom",left:"w:left",header:"w:header",footer:"w:footer",gutter:"w:gutter",linePitch:"w:linePitch",pos:"w:pos"})}}var ht=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ns(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Os={},Vn={exports:{}},Mt=typeof Reflect=="object"?Reflect:null,gi=Mt&&typeof Mt.apply=="function"?Mt.apply:function(e,r,a){return Function.prototype.apply.call(e,r,a)},vr;Mt&&typeof Mt.ownKeys=="function"?vr=Mt.ownKeys:Object.getOwnPropertySymbols?vr=function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:vr=function(e){return Object.getOwnPropertyNames(e)};function uo(t){console&&console.warn&&console.warn(t)}var Cs=Number.isNaN||function(e){return e!==e};function Ae(){Ae.init.call(this)}Vn.exports=Ae;Vn.exports.once=ho;Ae.EventEmitter=Ae;Ae.prototype._events=void 0;Ae.prototype._eventsCount=0;Ae.prototype._maxListeners=void 0;var wi=10;function Nr(t){if(typeof t!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}Object.defineProperty(Ae,"defaultMaxListeners",{enumerable:!0,get:function(){return wi},set:function(t){if(typeof t!="number"||t<0||Cs(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");wi=t}});Ae.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};Ae.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||Cs(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this};function Ds(t){return t._maxListeners===void 0?Ae.defaultMaxListeners:t._maxListeners}Ae.prototype.getMaxListeners=function(){return Ds(this)};Ae.prototype.emit=function(e){for(var r=[],a=1;a0&&(o=r[0]),o instanceof Error)throw o;var i=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw i.context=o,i}var c=u[e];if(c===void 0)return!1;if(typeof c=="function")gi(c,this,r);else for(var w=c.length,y=Ms(c,w),a=0;a0&&o.length>l&&!o.warned){o.warned=!0;var i=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");i.name="MaxListenersExceededWarning",i.emitter=t,i.type=e,i.count=o.length,uo(i)}return t}Ae.prototype.addListener=function(e,r){return Ps(this,e,r,!1)};Ae.prototype.on=Ae.prototype.addListener;Ae.prototype.prependListener=function(e,r){return Ps(this,e,r,!0)};function lo(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function Ls(t,e,r){var a={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},l=lo.bind(a);return l.listener=r,a.wrapFn=l,l}Ae.prototype.once=function(e,r){return Nr(r),this.on(e,Ls(this,e,r)),this};Ae.prototype.prependOnceListener=function(e,r){return Nr(r),this.prependListener(e,Ls(this,e,r)),this};Ae.prototype.removeListener=function(e,r){var a,l,u,o,i;if(Nr(r),l=this._events,l===void 0)return this;if(a=l[e],a===void 0)return this;if(a===r||a.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete l[e],l.removeListener&&this.emit("removeListener",e,a.listener||r));else if(typeof a!="function"){for(u=-1,o=a.length-1;o>=0;o--)if(a[o]===r||a[o].listener===r){i=a[o].listener,u=o;break}if(u<0)return this;u===0?a.shift():co(a,u),a.length===1&&(l[e]=a[0]),l.removeListener!==void 0&&this.emit("removeListener",e,i||r)}return this};Ae.prototype.off=Ae.prototype.removeListener;Ae.prototype.removeAllListeners=function(e){var r,a,l;if(a=this._events,a===void 0)return this;if(a.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):a[e]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete a[e]),this;if(arguments.length===0){var u=Object.keys(a),o;for(l=0;l=0;l--)this.removeListener(e,r[l]);return this};function Fs(t,e,r){var a=t._events;if(a===void 0)return[];var l=a[e];return l===void 0?[]:typeof l=="function"?r?[l.listener||l]:[l]:r?fo(l):Ms(l,l.length)}Ae.prototype.listeners=function(e){return Fs(this,e,!0)};Ae.prototype.rawListeners=function(e){return Fs(this,e,!1)};Ae.listenerCount=function(t,e){return typeof t.listenerCount=="function"?t.listenerCount(e):Bs.call(t,e)};Ae.prototype.listenerCount=Bs;function Bs(t){var e=this._events;if(e!==void 0){var r=e[t];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}Ae.prototype.eventNames=function(){return this._eventsCount>0?vr(this._events):[]};function Ms(t,e){for(var r=new Array(e),a=0;a1)for(var r=1;r0)throw new Error("Invalid string. Length must be a multiple of 4");var v=p.indexOf("=");v===-1&&(v=T);var E=v===T?0:4-v%4;return[v,E]}function i(p){var T=o(p),v=T[0],E=T[1];return(v+E)*3/4-E}function c(p,T,v){return(T+v)*3/4-v}function w(p){var T,v=o(p),E=v[0],d=v[1],S=new r(c(p,E,d)),R=0,D=d>0?E-4:E,C;for(C=0;C>16&255,S[R++]=T>>8&255,S[R++]=T&255;return d===2&&(T=e[p.charCodeAt(C)]<<2|e[p.charCodeAt(C+1)]>>4,S[R++]=T&255),d===1&&(T=e[p.charCodeAt(C)]<<10|e[p.charCodeAt(C+1)]<<4|e[p.charCodeAt(C+2)]>>2,S[R++]=T>>8&255,S[R++]=T&255),S}function y(p){return t[p>>18&63]+t[p>>12&63]+t[p>>6&63]+t[p&63]}function x(p,T,v){for(var E,d=[],S=T;SD?D:R+S));return E===1?(T=p[v-1],d.push(t[T>>2]+t[T<<4&63]+"==")):E===2&&(T=(p[v-2]<<8)+p[v-1],d.push(t[T>>10]+t[T>>4&63]+t[T<<2&63]+"=")),d.join("")}return er}var cr={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */var bi;function bo(){return bi||(bi=1,cr.read=function(t,e,r,a,l){var u,o,i=l*8-a-1,c=(1<>1,y=-7,x=r?l-1:0,_=r?-1:1,p=t[e+x];for(x+=_,u=p&(1<<-y)-1,p>>=-y,y+=i;y>0;u=u*256+t[e+x],x+=_,y-=8);for(o=u&(1<<-y)-1,u>>=-y,y+=a;y>0;o=o*256+t[e+x],x+=_,y-=8);if(u===0)u=1-w;else{if(u===c)return o?NaN:(p?-1:1)*(1/0);o=o+Math.pow(2,a),u=u-w}return(p?-1:1)*o*Math.pow(2,u-a)},cr.write=function(t,e,r,a,l,u){var o,i,c,w=u*8-l-1,y=(1<>1,_=l===23?Math.pow(2,-24)-Math.pow(2,-77):0,p=a?0:u-1,T=a?1:-1,v=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(i=isNaN(e)?1:0,o=y):(o=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-o))<1&&(o--,c*=2),o+x>=1?e+=_/c:e+=_*Math.pow(2,1-x),e*c>=2&&(o++,c/=2),o+x>=y?(i=0,o=y):o+x>=1?(i=(e*c-1)*Math.pow(2,l),o=o+x):(i=e*Math.pow(2,x-1)*Math.pow(2,l),o=0));l>=8;t[r+p]=i&255,p+=T,i/=256,l-=8);for(o=o<0;t[r+p]=o&255,p+=T,o/=256,w-=8);t[r+p-T]|=v*128}),cr}/*! - * The buffer module from node.js, for the browser. - * - * @author Feross Aboukhadijeh - * @license MIT - */var _i;function Or(){return _i||(_i=1,function(t){var e=vo(),r=bo(),a=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=i,t.SlowBuffer=S,t.INSPECT_MAX_BYTES=50;var l=2147483647;t.kMaxLength=l,i.TYPED_ARRAY_SUPPORT=u(),!i.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function u(){try{var b=new Uint8Array(1),n={foo:function(){return 42}};return Object.setPrototypeOf(n,Uint8Array.prototype),Object.setPrototypeOf(b,n),b.foo()===42}catch{return!1}}Object.defineProperty(i.prototype,"parent",{enumerable:!0,get:function(){if(i.isBuffer(this))return this.buffer}}),Object.defineProperty(i.prototype,"offset",{enumerable:!0,get:function(){if(i.isBuffer(this))return this.byteOffset}});function o(b){if(b>l)throw new RangeError('The value "'+b+'" is invalid for option "size"');var n=new Uint8Array(b);return Object.setPrototypeOf(n,i.prototype),n}function i(b,n,s){if(typeof b=="number"){if(typeof n=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return x(b)}return c(b,n,s)}i.poolSize=8192;function c(b,n,s){if(typeof b=="string")return _(b,n);if(ArrayBuffer.isView(b))return T(b);if(b==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof b);if(Q(b,ArrayBuffer)||b&&Q(b.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Q(b,SharedArrayBuffer)||b&&Q(b.buffer,SharedArrayBuffer)))return v(b,n,s);if(typeof b=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var f=b.valueOf&&b.valueOf();if(f!=null&&f!==b)return i.from(f,n,s);var P=E(b);if(P)return P;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof b[Symbol.toPrimitive]=="function")return i.from(b[Symbol.toPrimitive]("string"),n,s);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof b)}i.from=function(b,n,s){return c(b,n,s)},Object.setPrototypeOf(i.prototype,Uint8Array.prototype),Object.setPrototypeOf(i,Uint8Array);function w(b){if(typeof b!="number")throw new TypeError('"size" argument must be of type number');if(b<0)throw new RangeError('The value "'+b+'" is invalid for option "size"')}function y(b,n,s){return w(b),b<=0?o(b):n!==void 0?typeof s=="string"?o(b).fill(n,s):o(b).fill(n):o(b)}i.alloc=function(b,n,s){return y(b,n,s)};function x(b){return w(b),o(b<0?0:d(b)|0)}i.allocUnsafe=function(b){return x(b)},i.allocUnsafeSlow=function(b){return x(b)};function _(b,n){if((typeof n!="string"||n==="")&&(n="utf8"),!i.isEncoding(n))throw new TypeError("Unknown encoding: "+n);var s=R(b,n)|0,f=o(s),P=f.write(b,n);return P!==s&&(f=f.slice(0,P)),f}function p(b){for(var n=b.length<0?0:d(b.length)|0,s=o(n),f=0;f=l)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+l.toString(16)+" bytes");return b|0}function S(b){return+b!=b&&(b=0),i.alloc(+b)}i.isBuffer=function(n){return n!=null&&n._isBuffer===!0&&n!==i.prototype},i.compare=function(n,s){if(Q(n,Uint8Array)&&(n=i.from(n,n.offset,n.byteLength)),Q(s,Uint8Array)&&(s=i.from(s,s.offset,s.byteLength)),!i.isBuffer(n)||!i.isBuffer(s))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(n===s)return 0;for(var f=n.length,P=s.length,U=0,B=Math.min(f,P);UP.length?i.from(B).copy(P,U):Uint8Array.prototype.set.call(P,B,U);else if(i.isBuffer(B))B.copy(P,U);else throw new TypeError('"list" argument must be an Array of Buffers');U+=B.length}return P};function R(b,n){if(i.isBuffer(b))return b.length;if(ArrayBuffer.isView(b)||Q(b,ArrayBuffer))return b.byteLength;if(typeof b!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof b);var s=b.length,f=arguments.length>2&&arguments[2]===!0;if(!f&&s===0)return 0;for(var P=!1;;)switch(n){case"ascii":case"latin1":case"binary":return s;case"utf8":case"utf-8":return m(b).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return s*2;case"hex":return s>>>1;case"base64":return k(b).length;default:if(P)return f?-1:m(b).length;n=(""+n).toLowerCase(),P=!0}}i.byteLength=R;function D(b,n,s){var f=!1;if((n===void 0||n<0)&&(n=0),n>this.length||((s===void 0||s>this.length)&&(s=this.length),s<=0)||(s>>>=0,n>>>=0,s<=n))return"";for(b||(b="utf8");;)switch(b){case"hex":return K(this,n,s);case"utf8":case"utf-8":return A(this,n,s);case"ascii":return Y(this,n,s);case"latin1":case"binary":return de(this,n,s);case"base64":return q(this,n,s);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ce(this,n,s);default:if(f)throw new TypeError("Unknown encoding: "+b);b=(b+"").toLowerCase(),f=!0}}i.prototype._isBuffer=!0;function C(b,n,s){var f=b[n];b[n]=b[s],b[s]=f}i.prototype.swap16=function(){var n=this.length;if(n%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var s=0;ss&&(n+=" ... "),""},a&&(i.prototype[a]=i.prototype.inspect),i.prototype.compare=function(n,s,f,P,U){if(Q(n,Uint8Array)&&(n=i.from(n,n.offset,n.byteLength)),!i.isBuffer(n))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof n);if(s===void 0&&(s=0),f===void 0&&(f=n?n.length:0),P===void 0&&(P=0),U===void 0&&(U=this.length),s<0||f>n.length||P<0||U>this.length)throw new RangeError("out of range index");if(P>=U&&s>=f)return 0;if(P>=U)return-1;if(s>=f)return 1;if(s>>>=0,f>>>=0,P>>>=0,U>>>=0,this===n)return 0;for(var B=U-P,te=f-s,ae=Math.min(B,te),ne=this.slice(P,U),fe=n.slice(s,f),pe=0;pe2147483647?s=2147483647:s<-2147483648&&(s=-2147483648),s=+s,h(s)&&(s=P?0:b.length-1),s<0&&(s=b.length+s),s>=b.length){if(P)return-1;s=b.length-1}else if(s<0)if(P)s=0;else return-1;if(typeof n=="string"&&(n=i.from(n,f)),i.isBuffer(n))return n.length===0?-1:H(b,n,s,f,P);if(typeof n=="number")return n=n&255,typeof Uint8Array.prototype.indexOf=="function"?P?Uint8Array.prototype.indexOf.call(b,n,s):Uint8Array.prototype.lastIndexOf.call(b,n,s):H(b,[n],s,f,P);throw new TypeError("val must be string, number or Buffer")}function H(b,n,s,f,P){var U=1,B=b.length,te=n.length;if(f!==void 0&&(f=String(f).toLowerCase(),f==="ucs2"||f==="ucs-2"||f==="utf16le"||f==="utf-16le")){if(b.length<2||n.length<2)return-1;U=2,B/=2,te/=2,s/=2}function ae(Be,ot){return U===1?Be[ot]:Be.readUInt16BE(ot*U)}var ne;if(P){var fe=-1;for(ne=s;neB&&(s=B-te),ne=s;ne>=0;ne--){for(var pe=!0,me=0;meP&&(f=P)):f=P;var U=n.length;f>U/2&&(f=U/2);for(var B=0;B>>0,isFinite(f)?(f=f>>>0,P===void 0&&(P="utf8")):(P=f,f=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var U=this.length-s;if((f===void 0||f>U)&&(f=U),n.length>0&&(f<0||s<0)||s>this.length)throw new RangeError("Attempt to write outside buffer bounds");P||(P="utf8");for(var B=!1;;)switch(P){case"hex":return J(this,n,s,f);case"utf8":case"utf-8":return I(this,n,s,f);case"ascii":case"latin1":case"binary":return re(this,n,s,f);case"base64":return ue(this,n,s,f);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,n,s,f);default:if(B)throw new TypeError("Unknown encoding: "+P);P=(""+P).toLowerCase(),B=!0}},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function q(b,n,s){return n===0&&s===b.length?e.fromByteArray(b):e.fromByteArray(b.slice(n,s))}function A(b,n,s){s=Math.min(b.length,s);for(var f=[],P=n;P239?4:U>223?3:U>191?2:1;if(P+te<=s){var ae,ne,fe,pe;switch(te){case 1:U<128&&(B=U);break;case 2:ae=b[P+1],(ae&192)===128&&(pe=(U&31)<<6|ae&63,pe>127&&(B=pe));break;case 3:ae=b[P+1],ne=b[P+2],(ae&192)===128&&(ne&192)===128&&(pe=(U&15)<<12|(ae&63)<<6|ne&63,pe>2047&&(pe<55296||pe>57343)&&(B=pe));break;case 4:ae=b[P+1],ne=b[P+2],fe=b[P+3],(ae&192)===128&&(ne&192)===128&&(fe&192)===128&&(pe=(U&15)<<18|(ae&63)<<12|(ne&63)<<6|fe&63,pe>65535&&pe<1114112&&(B=pe))}}B===null?(B=65533,te=1):B>65535&&(B-=65536,f.push(B>>>10&1023|55296),B=56320|B&1023),f.push(B),P+=te}return le(f)}var Z=4096;function le(b){var n=b.length;if(n<=Z)return String.fromCharCode.apply(String,b);for(var s="",f=0;ff)&&(s=f);for(var P="",U=n;Uf&&(n=f),s<0?(s+=f,s<0&&(s=0)):s>f&&(s=f),ss)throw new RangeError("Trying to access beyond buffer length")}i.prototype.readUintLE=i.prototype.readUIntLE=function(n,s,f){n=n>>>0,s=s>>>0,f||G(n,s,this.length);for(var P=this[n],U=1,B=0;++B>>0,s=s>>>0,f||G(n,s,this.length);for(var P=this[n+--s],U=1;s>0&&(U*=256);)P+=this[n+--s]*U;return P},i.prototype.readUint8=i.prototype.readUInt8=function(n,s){return n=n>>>0,s||G(n,1,this.length),this[n]},i.prototype.readUint16LE=i.prototype.readUInt16LE=function(n,s){return n=n>>>0,s||G(n,2,this.length),this[n]|this[n+1]<<8},i.prototype.readUint16BE=i.prototype.readUInt16BE=function(n,s){return n=n>>>0,s||G(n,2,this.length),this[n]<<8|this[n+1]},i.prototype.readUint32LE=i.prototype.readUInt32LE=function(n,s){return n=n>>>0,s||G(n,4,this.length),(this[n]|this[n+1]<<8|this[n+2]<<16)+this[n+3]*16777216},i.prototype.readUint32BE=i.prototype.readUInt32BE=function(n,s){return n=n>>>0,s||G(n,4,this.length),this[n]*16777216+(this[n+1]<<16|this[n+2]<<8|this[n+3])},i.prototype.readIntLE=function(n,s,f){n=n>>>0,s=s>>>0,f||G(n,s,this.length);for(var P=this[n],U=1,B=0;++B=U&&(P-=Math.pow(2,8*s)),P},i.prototype.readIntBE=function(n,s,f){n=n>>>0,s=s>>>0,f||G(n,s,this.length);for(var P=s,U=1,B=this[n+--P];P>0&&(U*=256);)B+=this[n+--P]*U;return U*=128,B>=U&&(B-=Math.pow(2,8*s)),B},i.prototype.readInt8=function(n,s){return n=n>>>0,s||G(n,1,this.length),this[n]&128?(255-this[n]+1)*-1:this[n]},i.prototype.readInt16LE=function(n,s){n=n>>>0,s||G(n,2,this.length);var f=this[n]|this[n+1]<<8;return f&32768?f|4294901760:f},i.prototype.readInt16BE=function(n,s){n=n>>>0,s||G(n,2,this.length);var f=this[n+1]|this[n]<<8;return f&32768?f|4294901760:f},i.prototype.readInt32LE=function(n,s){return n=n>>>0,s||G(n,4,this.length),this[n]|this[n+1]<<8|this[n+2]<<16|this[n+3]<<24},i.prototype.readInt32BE=function(n,s){return n=n>>>0,s||G(n,4,this.length),this[n]<<24|this[n+1]<<16|this[n+2]<<8|this[n+3]},i.prototype.readFloatLE=function(n,s){return n=n>>>0,s||G(n,4,this.length),r.read(this,n,!0,23,4)},i.prototype.readFloatBE=function(n,s){return n=n>>>0,s||G(n,4,this.length),r.read(this,n,!1,23,4)},i.prototype.readDoubleLE=function(n,s){return n=n>>>0,s||G(n,8,this.length),r.read(this,n,!0,52,8)},i.prototype.readDoubleBE=function(n,s){return n=n>>>0,s||G(n,8,this.length),r.read(this,n,!1,52,8)};function N(b,n,s,f,P,U){if(!i.isBuffer(b))throw new TypeError('"buffer" argument must be a Buffer instance');if(n>P||nb.length)throw new RangeError("Index out of range")}i.prototype.writeUintLE=i.prototype.writeUIntLE=function(n,s,f,P){if(n=+n,s=s>>>0,f=f>>>0,!P){var U=Math.pow(2,8*f)-1;N(this,n,s,f,U,0)}var B=1,te=0;for(this[s]=n&255;++te>>0,f=f>>>0,!P){var U=Math.pow(2,8*f)-1;N(this,n,s,f,U,0)}var B=f-1,te=1;for(this[s+B]=n&255;--B>=0&&(te*=256);)this[s+B]=n/te&255;return s+f},i.prototype.writeUint8=i.prototype.writeUInt8=function(n,s,f){return n=+n,s=s>>>0,f||N(this,n,s,1,255,0),this[s]=n&255,s+1},i.prototype.writeUint16LE=i.prototype.writeUInt16LE=function(n,s,f){return n=+n,s=s>>>0,f||N(this,n,s,2,65535,0),this[s]=n&255,this[s+1]=n>>>8,s+2},i.prototype.writeUint16BE=i.prototype.writeUInt16BE=function(n,s,f){return n=+n,s=s>>>0,f||N(this,n,s,2,65535,0),this[s]=n>>>8,this[s+1]=n&255,s+2},i.prototype.writeUint32LE=i.prototype.writeUInt32LE=function(n,s,f){return n=+n,s=s>>>0,f||N(this,n,s,4,4294967295,0),this[s+3]=n>>>24,this[s+2]=n>>>16,this[s+1]=n>>>8,this[s]=n&255,s+4},i.prototype.writeUint32BE=i.prototype.writeUInt32BE=function(n,s,f){return n=+n,s=s>>>0,f||N(this,n,s,4,4294967295,0),this[s]=n>>>24,this[s+1]=n>>>16,this[s+2]=n>>>8,this[s+3]=n&255,s+4},i.prototype.writeIntLE=function(n,s,f,P){if(n=+n,s=s>>>0,!P){var U=Math.pow(2,8*f-1);N(this,n,s,f,U-1,-U)}var B=0,te=1,ae=0;for(this[s]=n&255;++B>0)-ae&255;return s+f},i.prototype.writeIntBE=function(n,s,f,P){if(n=+n,s=s>>>0,!P){var U=Math.pow(2,8*f-1);N(this,n,s,f,U-1,-U)}var B=f-1,te=1,ae=0;for(this[s+B]=n&255;--B>=0&&(te*=256);)n<0&&ae===0&&this[s+B+1]!==0&&(ae=1),this[s+B]=(n/te>>0)-ae&255;return s+f},i.prototype.writeInt8=function(n,s,f){return n=+n,s=s>>>0,f||N(this,n,s,1,127,-128),n<0&&(n=255+n+1),this[s]=n&255,s+1},i.prototype.writeInt16LE=function(n,s,f){return n=+n,s=s>>>0,f||N(this,n,s,2,32767,-32768),this[s]=n&255,this[s+1]=n>>>8,s+2},i.prototype.writeInt16BE=function(n,s,f){return n=+n,s=s>>>0,f||N(this,n,s,2,32767,-32768),this[s]=n>>>8,this[s+1]=n&255,s+2},i.prototype.writeInt32LE=function(n,s,f){return n=+n,s=s>>>0,f||N(this,n,s,4,2147483647,-2147483648),this[s]=n&255,this[s+1]=n>>>8,this[s+2]=n>>>16,this[s+3]=n>>>24,s+4},i.prototype.writeInt32BE=function(n,s,f){return n=+n,s=s>>>0,f||N(this,n,s,4,2147483647,-2147483648),n<0&&(n=4294967295+n+1),this[s]=n>>>24,this[s+1]=n>>>16,this[s+2]=n>>>8,this[s+3]=n&255,s+4};function W(b,n,s,f,P,U){if(s+f>b.length)throw new RangeError("Index out of range");if(s<0)throw new RangeError("Index out of range")}function z(b,n,s,f,P){return n=+n,s=s>>>0,P||W(b,n,s,4),r.write(b,n,s,f,23,4),s+4}i.prototype.writeFloatLE=function(n,s,f){return z(this,n,s,!0,f)},i.prototype.writeFloatBE=function(n,s,f){return z(this,n,s,!1,f)};function $(b,n,s,f,P){return n=+n,s=s>>>0,P||W(b,n,s,8),r.write(b,n,s,f,52,8),s+8}i.prototype.writeDoubleLE=function(n,s,f){return $(this,n,s,!0,f)},i.prototype.writeDoubleBE=function(n,s,f){return $(this,n,s,!1,f)},i.prototype.copy=function(n,s,f,P){if(!i.isBuffer(n))throw new TypeError("argument should be a Buffer");if(f||(f=0),!P&&P!==0&&(P=this.length),s>=n.length&&(s=n.length),s||(s=0),P>0&&P=this.length)throw new RangeError("Index out of range");if(P<0)throw new RangeError("sourceEnd out of bounds");P>this.length&&(P=this.length),n.length-s>>0,f=f===void 0?this.length:f>>>0,n||(n=0);var B;if(typeof n=="number")for(B=s;B55295&&s<57344){if(!P){if(s>56319){(n-=3)>-1&&U.push(239,191,189);continue}else if(B+1===f){(n-=3)>-1&&U.push(239,191,189);continue}P=s;continue}if(s<56320){(n-=3)>-1&&U.push(239,191,189),P=s;continue}s=(P-55296<<10|s-56320)+65536}else P&&(n-=3)>-1&&U.push(239,191,189);if(P=null,s<128){if((n-=1)<0)break;U.push(s)}else if(s<2048){if((n-=2)<0)break;U.push(s>>6|192,s&63|128)}else if(s<65536){if((n-=3)<0)break;U.push(s>>12|224,s>>6&63|128,s&63|128)}else if(s<1114112){if((n-=4)<0)break;U.push(s>>18|240,s>>12&63|128,s>>6&63|128,s&63|128)}else throw new Error("Invalid code point")}return U}function M(b){for(var n=[],s=0;s>8,P=s%256,U.push(P),U.push(f);return U}function k(b){return e.toByteArray(g(b))}function O(b,n,s,f){for(var P=0;P=n.length||P>=b.length);++P)n[P+s]=b[P];return P}function Q(b,n){return b instanceof n||b!=null&&b.constructor!=null&&b.constructor.name!=null&&b.constructor.name===n.name}function h(b){return b!==b}var X=function(){for(var b="0123456789abcdef",n=new Array(256),s=0;s<16;++s)for(var f=s*16,P=0;P<16;++P)n[f+P]=b[s]+b[P];return n}()}(zr)),zr}var Hr={},Gr={},Kr,Ei;function Ks(){return Ei||(Ei=1,Kr=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},r=Symbol("test"),a=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(a)!=="[object Symbol]")return!1;var l=42;e[r]=l;for(r in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var u=Object.getOwnPropertySymbols(e);if(u.length!==1||u[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(e,r);if(o.value!==l||o.enumerable!==!0)return!1}return!0}),Kr}var Vr,Ti;function Xn(){if(Ti)return Vr;Ti=1;var t=Ks();return Vr=function(){return t()&&!!Symbol.toStringTag},Vr}var qr,xi;function _o(){if(xi)return qr;xi=1;var t=typeof Symbol<"u"&&Symbol,e=Ks();return qr=function(){return typeof t!="function"||typeof Symbol!="function"||typeof t("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},qr}var Xr,Si;function Eo(){if(Si)return Xr;Si=1;var t={foo:{}},e=Object;return Xr=function(){return{__proto__:t}.foo===t.foo&&!({__proto__:null}instanceof e)},Xr}var Yr,Ai;function To(){if(Ai)return Yr;Ai=1;var t="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,r=Math.max,a="[object Function]",l=function(c,w){for(var y=[],x=0;x"u"||!y?t:y(Uint8Array),p={"%AggregateError%":typeof AggregateError>"u"?t:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?t:ArrayBuffer,"%ArrayIteratorPrototype%":c&&y?y([][Symbol.iterator]()):t,"%AsyncFromSyncIteratorPrototype%":t,"%AsyncFunction%":x,"%AsyncGenerator%":x,"%AsyncGeneratorFunction%":x,"%AsyncIteratorPrototype%":x,"%Atomics%":typeof Atomics>"u"?t:Atomics,"%BigInt%":typeof BigInt>"u"?t:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?t:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?t:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?t:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?t:Float32Array,"%Float64Array%":typeof Float64Array>"u"?t:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?t:FinalizationRegistry,"%Function%":r,"%GeneratorFunction%":x,"%Int8Array%":typeof Int8Array>"u"?t:Int8Array,"%Int16Array%":typeof Int16Array>"u"?t:Int16Array,"%Int32Array%":typeof Int32Array>"u"?t:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":c&&y?y(y([][Symbol.iterator]())):t,"%JSON%":typeof JSON=="object"?JSON:t,"%Map%":typeof Map>"u"?t:Map,"%MapIteratorPrototype%":typeof Map>"u"||!c||!y?t:y(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?t:Promise,"%Proxy%":typeof Proxy>"u"?t:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?t:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?t:Set,"%SetIteratorPrototype%":typeof Set>"u"||!c||!y?t:y(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?t:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":c&&y?y(""[Symbol.iterator]()):t,"%Symbol%":c?Symbol:t,"%SyntaxError%":e,"%ThrowTypeError%":i,"%TypedArray%":_,"%TypeError%":a,"%Uint8Array%":typeof Uint8Array>"u"?t:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?t:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?t:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?t:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?t:WeakMap,"%WeakRef%":typeof WeakRef>"u"?t:WeakRef,"%WeakSet%":typeof WeakSet>"u"?t:WeakSet};if(y)try{null.error}catch(L){var T=y(y(L));p["%Error.prototype%"]=T}var v=function L(q){var A;if(q==="%AsyncFunction%")A=l("async function () {}");else if(q==="%GeneratorFunction%")A=l("function* () {}");else if(q==="%AsyncGeneratorFunction%")A=l("async function* () {}");else if(q==="%AsyncGenerator%"){var Z=L("%AsyncGeneratorFunction%");Z&&(A=Z.prototype)}else if(q==="%AsyncIteratorPrototype%"){var le=L("%AsyncGenerator%");le&&y&&(A=y(le.prototype))}return p[q]=A,A},E={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},d=Yn(),S=xo(),R=d.call(Function.call,Array.prototype.concat),D=d.call(Function.apply,Array.prototype.splice),C=d.call(Function.call,String.prototype.replace),V=d.call(Function.call,String.prototype.slice),H=d.call(Function.call,RegExp.prototype.exec),J=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,I=/\\(\\)?/g,re=function(q){var A=V(q,0,1),Z=V(q,-1);if(A==="%"&&Z!=="%")throw new e("invalid intrinsic syntax, expected closing `%`");if(Z==="%"&&A!=="%")throw new e("invalid intrinsic syntax, expected opening `%`");var le=[];return C(q,J,function(Y,de,K,ce){le[le.length]=K?C(ce,I,"$1"):de||Y}),le},ue=function(q,A){var Z=q,le;if(S(E,Z)&&(le=E[Z],Z="%"+le[0]+"%"),S(p,Z)){var Y=p[Z];if(Y===x&&(Y=v(Z)),typeof Y>"u"&&!A)throw new a("intrinsic "+q+" exists, but is not available. Please file an issue!");return{alias:le,name:Z,value:Y}}throw new e("intrinsic "+q+" does not exist!")};return Jr=function(q,A){if(typeof q!="string"||q.length===0)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof A!="boolean")throw new a('"allowMissing" argument must be a boolean');if(H(/^%?[^%]*%?$/,q)===null)throw new e("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Z=re(q),le=Z.length>0?Z[0]:"",Y=ue("%"+le+"%",A),de=Y.name,K=Y.value,ce=!1,G=Y.alias;G&&(le=G[0],D(Z,R([0,1],G)));for(var N=1,W=!0;N=Z.length){var g=u(K,z);W=!!g,W&&"get"in g&&!("originalValue"in g.get)?K=g.get:K=K[z]}else W=S(K,z),K=K[z];W&&!ce&&(p[de]=K)}}return K},Jr}var $r={exports:{}},en,Ni;function Vs(){if(Ni)return en;Ni=1;var t=Xt(),e=t("%Object.defineProperty%",!0),r=function(){if(e)try{return e({},"a",{value:1}),!0}catch{return!1}return!1};return r.hasArrayLengthDefineBug=function(){if(!r())return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},en=r,en}var tn,Oi;function Zn(){if(Oi)return tn;Oi=1;var t=Xt(),e=t("%Object.getOwnPropertyDescriptor%",!0);if(e)try{e([],"length")}catch{e=null}return tn=e,tn}var rn,Ci;function So(){if(Ci)return rn;Ci=1;var t=Vs()(),e=Xt(),r=t&&e("%Object.defineProperty%",!0);if(r)try{r({},"a",{value:1})}catch{r=!1}var a=e("%SyntaxError%"),l=e("%TypeError%"),u=Zn();return rn=function(i,c,w){if(!i||typeof i!="object"&&typeof i!="function")throw new l("`obj` must be an object or a function`");if(typeof c!="string"&&typeof c!="symbol")throw new l("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new l("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new l("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new l("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new l("`loose`, if provided, must be a boolean");var y=arguments.length>3?arguments[3]:null,x=arguments.length>4?arguments[4]:null,_=arguments.length>5?arguments[5]:null,p=arguments.length>6?arguments[6]:!1,T=!!u&&u(i,c);if(r)r(i,c,{configurable:_===null&&T?T.configurable:!_,enumerable:y===null&&T?T.enumerable:!y,value:w,writable:x===null&&T?T.writable:!x});else if(p||!y&&!x&&!_)i[c]=w;else throw new a("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},rn}var nn,Di;function Ao(){if(Di)return nn;Di=1;var t=Xt(),e=So(),r=Vs()(),a=Zn(),l=t("%TypeError%"),u=t("%Math.floor%");return nn=function(i,c){if(typeof i!="function")throw new l("`fn` is not a function");if(typeof c!="number"||c<0||c>4294967295||u(c)!==c)throw new l("`length` must be a positive 32-bit integer");var w=arguments.length>2&&!!arguments[2],y=!0,x=!0;if("length"in i&&a){var _=a(i,"length");_&&!_.configurable&&(y=!1),_&&!_.writable&&(x=!1)}return(y||x||!w)&&(r?e(i,"length",c,!0,!0):e(i,"length",c)),i},nn}var Pi;function qs(){return Pi||(Pi=1,function(t){var e=Yn(),r=Xt(),a=Ao(),l=r("%TypeError%"),u=r("%Function.prototype.apply%"),o=r("%Function.prototype.call%"),i=r("%Reflect.apply%",!0)||e.call(o,u),c=r("%Object.defineProperty%",!0),w=r("%Math.max%");if(c)try{c({},"a",{value:1})}catch{c=null}t.exports=function(_){if(typeof _!="function")throw new l("a function is required");var p=i(e,o,arguments);return a(p,1+w(0,_.length-(arguments.length-1)),!0)};var y=function(){return i(e,u,arguments)};c?c(t.exports,"apply",{value:y}):t.exports.apply=y}($r)),$r.exports}var sn,Li;function Xs(){if(Li)return sn;Li=1;var t=Xt(),e=qs(),r=e(t("String.prototype.indexOf"));return sn=function(l,u){var o=t(l,!!u);return typeof o=="function"&&r(l,".prototype.")>-1?e(o):o},sn}var an,Fi;function Ro(){if(Fi)return an;Fi=1;var t=Xn()(),e=Xs(),r=e("Object.prototype.toString"),a=function(i){return t&&i&&typeof i=="object"&&Symbol.toStringTag in i?!1:r(i)==="[object Arguments]"},l=function(i){return a(i)?!0:i!==null&&typeof i=="object"&&typeof i.length=="number"&&i.length>=0&&r(i)!=="[object Array]"&&r(i.callee)==="[object Function]"},u=function(){return a(arguments)}();return a.isLegacyArguments=l,an=u?a:l,an}var on,Bi;function Io(){if(Bi)return on;Bi=1;var t=Object.prototype.toString,e=Function.prototype.toString,r=/^\s*(?:function)?\*/,a=Xn()(),l=Object.getPrototypeOf,u=function(){if(!a)return!1;try{return Function("return function*() {}")()}catch{}},o;return on=function(c){if(typeof c!="function")return!1;if(r.test(e.call(c)))return!0;if(!a){var w=t.call(c);return w==="[object GeneratorFunction]"}if(!l)return!1;if(typeof o>"u"){var y=u();o=y?l(y):!1}return l(c)===o},on}var un,Mi;function ko(){if(Mi)return un;Mi=1;var t=Function.prototype.toString,e=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,r,a;if(typeof e=="function"&&typeof Object.defineProperty=="function")try{r=Object.defineProperty({},"length",{get:function(){throw a}}),a={},e(function(){throw 42},null,r)}catch(S){S!==a&&(e=null)}else e=null;var l=/^\s*class\b/,u=function(R){try{var D=t.call(R);return l.test(D)}catch{return!1}},o=function(R){try{return u(R)?!1:(t.call(R),!0)}catch{return!1}},i=Object.prototype.toString,c="[object Object]",w="[object Function]",y="[object GeneratorFunction]",x="[object HTMLAllCollection]",_="[object HTML document.all class]",p="[object HTMLCollection]",T=typeof Symbol=="function"&&!!Symbol.toStringTag,v=!(0 in[,]),E=function(){return!1};if(typeof document=="object"){var d=document.all;i.call(d)===i.call(document.all)&&(E=function(R){if((v||!R)&&(typeof R>"u"||typeof R=="object"))try{var D=i.call(R);return(D===x||D===_||D===p||D===c)&&R("")==null}catch{}return!1})}return un=e?function(R){if(E(R))return!0;if(!R||typeof R!="function"&&typeof R!="object")return!1;try{e(R,null,r)}catch(D){if(D!==a)return!1}return!u(R)&&o(R)}:function(R){if(E(R))return!0;if(!R||typeof R!="function"&&typeof R!="object")return!1;if(T)return o(R);if(u(R))return!1;var D=i.call(R);return D!==w&&D!==y&&!/^\[object HTML/.test(D)?!1:o(R)},un}var ln,Ui;function No(){if(Ui)return ln;Ui=1;var t=ko(),e=Object.prototype.toString,r=Object.prototype.hasOwnProperty,a=function(c,w,y){for(var x=0,_=c.length;x<_;x++)r.call(c,x)&&(y==null?w(c[x],x,c):w.call(y,c[x],x,c))},l=function(c,w,y){for(var x=0,_=c.length;x<_;x++)y==null?w(c.charAt(x),x,c):w.call(y,c.charAt(x),x,c)},u=function(c,w,y){for(var x in c)r.call(c,x)&&(y==null?w(c[x],x,c):w.call(y,c[x],x,c))},o=function(c,w,y){if(!t(w))throw new TypeError("iterator must be a function");var x;arguments.length>=3&&(x=y),e.call(c)==="[object Array]"?a(c,w,x):typeof c=="string"?l(c,w,x):u(c,w,x)};return ln=o,ln}var cn,ji;function Oo(){if(ji)return cn;ji=1;var t=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],e=typeof globalThis>"u"?ht:globalThis;return cn=function(){for(var a=[],l=0;l"u"?ht:globalThis,c=e(),w=a("String.prototype.slice"),y=Object.getPrototypeOf,x=a("Array.prototype.indexOf",!0)||function(E,d){for(var S=0;S-1?d:d!=="Object"?!1:T(E)}return l?p(E):null},fn}var hn,zi;function Co(){if(zi)return hn;zi=1;var t=Ys();return hn=function(r){return!!t(r)},hn}var Hi;function Do(){return Hi||(Hi=1,function(t){var e=Ro(),r=Io(),a=Ys(),l=Co();function u(f){return f.call.bind(f)}var o=typeof BigInt<"u",i=typeof Symbol<"u",c=u(Object.prototype.toString),w=u(Number.prototype.valueOf),y=u(String.prototype.valueOf),x=u(Boolean.prototype.valueOf);if(o)var _=u(BigInt.prototype.valueOf);if(i)var p=u(Symbol.prototype.valueOf);function T(f,P){if(typeof f!="object")return!1;try{return P(f),!0}catch{return!1}}t.isArgumentsObject=e,t.isGeneratorFunction=r,t.isTypedArray=l;function v(f){return typeof Promise<"u"&&f instanceof Promise||f!==null&&typeof f=="object"&&typeof f.then=="function"&&typeof f.catch=="function"}t.isPromise=v;function E(f){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(f):l(f)||W(f)}t.isArrayBufferView=E;function d(f){return a(f)==="Uint8Array"}t.isUint8Array=d;function S(f){return a(f)==="Uint8ClampedArray"}t.isUint8ClampedArray=S;function R(f){return a(f)==="Uint16Array"}t.isUint16Array=R;function D(f){return a(f)==="Uint32Array"}t.isUint32Array=D;function C(f){return a(f)==="Int8Array"}t.isInt8Array=C;function V(f){return a(f)==="Int16Array"}t.isInt16Array=V;function H(f){return a(f)==="Int32Array"}t.isInt32Array=H;function J(f){return a(f)==="Float32Array"}t.isFloat32Array=J;function I(f){return a(f)==="Float64Array"}t.isFloat64Array=I;function re(f){return a(f)==="BigInt64Array"}t.isBigInt64Array=re;function ue(f){return a(f)==="BigUint64Array"}t.isBigUint64Array=ue;function L(f){return c(f)==="[object Map]"}L.working=typeof Map<"u"&&L(new Map);function q(f){return typeof Map>"u"?!1:L.working?L(f):f instanceof Map}t.isMap=q;function A(f){return c(f)==="[object Set]"}A.working=typeof Set<"u"&&A(new Set);function Z(f){return typeof Set>"u"?!1:A.working?A(f):f instanceof Set}t.isSet=Z;function le(f){return c(f)==="[object WeakMap]"}le.working=typeof WeakMap<"u"&&le(new WeakMap);function Y(f){return typeof WeakMap>"u"?!1:le.working?le(f):f instanceof WeakMap}t.isWeakMap=Y;function de(f){return c(f)==="[object WeakSet]"}de.working=typeof WeakSet<"u"&&de(new WeakSet);function K(f){return de(f)}t.isWeakSet=K;function ce(f){return c(f)==="[object ArrayBuffer]"}ce.working=typeof ArrayBuffer<"u"&&ce(new ArrayBuffer);function G(f){return typeof ArrayBuffer>"u"?!1:ce.working?ce(f):f instanceof ArrayBuffer}t.isArrayBuffer=G;function N(f){return c(f)==="[object DataView]"}N.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&N(new DataView(new ArrayBuffer(1),0,1));function W(f){return typeof DataView>"u"?!1:N.working?N(f):f instanceof DataView}t.isDataView=W;var z=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function $(f){return c(f)==="[object SharedArrayBuffer]"}function j(f){return typeof z>"u"?!1:(typeof $.working>"u"&&($.working=$(new z)),$.working?$(f):f instanceof z)}t.isSharedArrayBuffer=j;function g(f){return c(f)==="[object AsyncFunction]"}t.isAsyncFunction=g;function m(f){return c(f)==="[object Map Iterator]"}t.isMapIterator=m;function M(f){return c(f)==="[object Set Iterator]"}t.isSetIterator=M;function F(f){return c(f)==="[object Generator]"}t.isGeneratorObject=F;function k(f){return c(f)==="[object WebAssembly.Module]"}t.isWebAssemblyCompiledModule=k;function O(f){return T(f,w)}t.isNumberObject=O;function Q(f){return T(f,y)}t.isStringObject=Q;function h(f){return T(f,x)}t.isBooleanObject=h;function X(f){return o&&T(f,_)}t.isBigIntObject=X;function b(f){return i&&T(f,p)}t.isSymbolObject=b;function n(f){return O(f)||Q(f)||h(f)||X(f)||b(f)}t.isBoxedPrimitive=n;function s(f){return typeof Uint8Array<"u"&&(G(f)||j(f))}t.isAnyArrayBuffer=s,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(f){Object.defineProperty(t,f,{enumerable:!1,value:function(){throw new Error(f+" is not supported in userland")}})})}(Gr)),Gr}var dn,Gi;function Po(){return Gi||(Gi=1,dn=function(e){return e&&typeof e=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"}),dn}var Ki;function Zs(){return Ki||(Ki=1,function(t){var e=Object.getOwnPropertyDescriptors||function(W){for(var z=Object.keys(W),$={},j=0;j=j)return M;switch(M){case"%s":return String($[z++]);case"%d":return Number($[z++]);case"%j":try{return JSON.stringify($[z++])}catch{return"[Circular]"}default:return M}}),m=$[z];z"u")return function(){return t.deprecate(N,W).apply(this,arguments)};var z=!1;function $(){if(!z){if(ve.throwDeprecation)throw new Error(W);ve.traceDeprecation?console.trace(W):console.error(W),z=!0}return N.apply(this,arguments)}return $};var a={},l=/^$/;if(ve.env.NODE_DEBUG){var u=ve.env.NODE_DEBUG;u=u.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),l=new RegExp("^"+u+"$","i")}t.debuglog=function(N){if(N=N.toUpperCase(),!a[N])if(l.test(N)){var W=ve.pid;a[N]=function(){var z=t.format.apply(t,arguments);console.error("%s %d: %s",N,W,z)}}else a[N]=function(){};return a[N]};function o(N,W){var z={seen:[],stylize:c};return arguments.length>=3&&(z.depth=arguments[2]),arguments.length>=4&&(z.colors=arguments[3]),d(W)?z.showHidden=W:W&&t._extend(z,W),H(z.showHidden)&&(z.showHidden=!1),H(z.depth)&&(z.depth=2),H(z.colors)&&(z.colors=!1),H(z.customInspect)&&(z.customInspect=!0),z.colors&&(z.stylize=i),y(z,N,z.depth)}t.inspect=o,o.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},o.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function i(N,W){var z=o.styles[W];return z?"\x1B["+o.colors[z][0]+"m"+N+"\x1B["+o.colors[z][1]+"m":N}function c(N,W){return N}function w(N){var W={};return N.forEach(function(z,$){W[z]=!0}),W}function y(N,W,z){if(N.customInspect&&W&&L(W.inspect)&&W.inspect!==t.inspect&&!(W.constructor&&W.constructor.prototype===W)){var $=W.inspect(z,N);return C($)||($=y(N,$,z)),$}var j=x(N,W);if(j)return j;var g=Object.keys(W),m=w(g);if(N.showHidden&&(g=Object.getOwnPropertyNames(W)),ue(W)&&(g.indexOf("message")>=0||g.indexOf("description")>=0))return _(W);if(g.length===0){if(L(W)){var M=W.name?": "+W.name:"";return N.stylize("[Function"+M+"]","special")}if(J(W))return N.stylize(RegExp.prototype.toString.call(W),"regexp");if(re(W))return N.stylize(Date.prototype.toString.call(W),"date");if(ue(W))return _(W)}var F="",k=!1,O=["{","}"];if(E(W)&&(k=!0,O=["[","]"]),L(W)){var Q=W.name?": "+W.name:"";F=" [Function"+Q+"]"}if(J(W)&&(F=" "+RegExp.prototype.toString.call(W)),re(W)&&(F=" "+Date.prototype.toUTCString.call(W)),ue(W)&&(F=" "+_(W)),g.length===0&&(!k||W.length==0))return O[0]+F+O[1];if(z<0)return J(W)?N.stylize(RegExp.prototype.toString.call(W),"regexp"):N.stylize("[Object]","special");N.seen.push(W);var h;return k?h=p(N,W,z,m,g):h=g.map(function(X){return T(N,W,z,m,X,k)}),N.seen.pop(),v(h,F,O)}function x(N,W){if(H(W))return N.stylize("undefined","undefined");if(C(W)){var z="'"+JSON.stringify(W).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return N.stylize(z,"string")}if(D(W))return N.stylize(""+W,"number");if(d(W))return N.stylize(""+W,"boolean");if(S(W))return N.stylize("null","null")}function _(N){return"["+Error.prototype.toString.call(N)+"]"}function p(N,W,z,$,j){for(var g=[],m=0,M=W.length;m-1&&(g?M=M.split(` -`).map(function(k){return" "+k}).join(` -`).slice(2):M=` -`+M.split(` -`).map(function(k){return" "+k}).join(` -`))):M=N.stylize("[Circular]","special")),H(m)){if(g&&j.match(/^\d+$/))return M;m=JSON.stringify(""+j),m.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(m=m.slice(1,-1),m=N.stylize(m,"name")):(m=m.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),m=N.stylize(m,"string"))}return m+": "+M}function v(N,W,z){var $=N.reduce(function(j,g){return g.indexOf(` -`)>=0,j+g.replace(/\u001b\[\d\d?m/g,"").length+1},0);return $>60?z[0]+(W===""?"":W+` - `)+" "+N.join(`, - `)+" "+z[1]:z[0]+W+" "+N.join(", ")+" "+z[1]}t.types=Do();function E(N){return Array.isArray(N)}t.isArray=E;function d(N){return typeof N=="boolean"}t.isBoolean=d;function S(N){return N===null}t.isNull=S;function R(N){return N==null}t.isNullOrUndefined=R;function D(N){return typeof N=="number"}t.isNumber=D;function C(N){return typeof N=="string"}t.isString=C;function V(N){return typeof N=="symbol"}t.isSymbol=V;function H(N){return N===void 0}t.isUndefined=H;function J(N){return I(N)&&A(N)==="[object RegExp]"}t.isRegExp=J,t.types.isRegExp=J;function I(N){return typeof N=="object"&&N!==null}t.isObject=I;function re(N){return I(N)&&A(N)==="[object Date]"}t.isDate=re,t.types.isDate=re;function ue(N){return I(N)&&(A(N)==="[object Error]"||N instanceof Error)}t.isError=ue,t.types.isNativeError=ue;function L(N){return typeof N=="function"}t.isFunction=L;function q(N){return N===null||typeof N=="boolean"||typeof N=="number"||typeof N=="string"||typeof N=="symbol"||typeof N>"u"}t.isPrimitive=q,t.isBuffer=Po();function A(N){return Object.prototype.toString.call(N)}function Z(N){return N<10?"0"+N.toString(10):N.toString(10)}var le=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Y(){var N=new Date,W=[Z(N.getHours()),Z(N.getMinutes()),Z(N.getSeconds())].join(":");return[N.getDate(),le[N.getMonth()],W].join(" ")}t.log=function(){console.log("%s - %s",Y(),t.format.apply(t,arguments))},t.inherits=Ot,t._extend=function(N,W){if(!W||!I(W))return N;for(var z=Object.keys(W),$=z.length;$--;)N[z[$]]=W[z[$]];return N};function de(N,W){return Object.prototype.hasOwnProperty.call(N,W)}var K=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;t.promisify=function(W){if(typeof W!="function")throw new TypeError('The "original" argument must be of type Function');if(K&&W[K]){var z=W[K];if(typeof z!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(z,K,{value:z,enumerable:!1,writable:!1,configurable:!0}),z}function z(){for(var $,j,g=new Promise(function(F,k){$=F,j=k}),m=[],M=0;M0?this.tail.next=v:this.head=v,this.tail=v,++this.length}},{key:"unshift",value:function(T){var v={data:T,next:this.head};this.length===0&&(this.tail=v),this.head=v,++this.length}},{key:"shift",value:function(){if(this.length!==0){var T=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,T}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(T){if(this.length===0)return"";for(var v=this.head,E=""+v.data;v=v.next;)E+=T+v.data;return E}},{key:"concat",value:function(T){if(this.length===0)return i.alloc(0);for(var v=i.allocUnsafe(T>>>0),E=this.head,d=0;E;)x(E.data,v,d),d+=E.data.length,E=E.next;return v}},{key:"consume",value:function(T,v){var E;return TS.length?S.length:T;if(R===S.length?d+=S:d+=S.slice(0,T),T-=R,T===0){R===S.length?(++E,v.next?this.head=v.next:this.head=this.tail=null):(this.head=v,v.data=S.slice(R));break}++E}return this.length-=E,d}},{key:"_getBuffer",value:function(T){var v=i.allocUnsafe(T),E=this.head,d=1;for(E.data.copy(v),T-=E.data.length;E=E.next;){var S=E.data,R=T>S.length?S.length:T;if(S.copy(v,v.length-T,0,R),T-=R,T===0){R===S.length?(++d,E.next?this.head=E.next:this.head=this.tail=null):(this.head=E,E.data=S.slice(R));break}++d}return this.length-=d,v}},{key:y,value:function(T,v){return w(this,e({},v,{depth:0,customInspect:!1}))}}]),_}(),pn}var mn,qi;function Qs(){if(qi)return mn;qi=1;function t(o,i){var c=this,w=this._readableState&&this._readableState.destroyed,y=this._writableState&&this._writableState.destroyed;return w||y?(i?i(o):o&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,ve.nextTick(l,this,o)):ve.nextTick(l,this,o)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(o||null,function(x){!i&&x?c._writableState?c._writableState.errorEmitted?ve.nextTick(r,c):(c._writableState.errorEmitted=!0,ve.nextTick(e,c,x)):ve.nextTick(e,c,x):i?(ve.nextTick(r,c),i(x)):ve.nextTick(r,c)}),this)}function e(o,i){l(o,i),r(o)}function r(o){o._writableState&&!o._writableState.emitClose||o._readableState&&!o._readableState.emitClose||o.emit("close")}function a(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function l(o,i){o.emit("error",i)}function u(o,i){var c=o._readableState,w=o._writableState;c&&c.autoDestroy||w&&w.autoDestroy?o.destroy(i):o.emit("error",i)}return mn={destroy:t,undestroy:a,errorOrDestroy:u},mn}var gn={},Xi;function Yt(){if(Xi)return gn;Xi=1;function t(i,c){i.prototype=Object.create(c.prototype),i.prototype.constructor=i,i.__proto__=c}var e={};function r(i,c,w){w||(w=Error);function y(_,p,T){return typeof c=="string"?c:c(_,p,T)}var x=function(_){t(p,_);function p(T,v,E){return _.call(this,y(T,v,E))||this}return p}(w);x.prototype.name=w.name,x.prototype.code=i,e[i]=x}function a(i,c){if(Array.isArray(i)){var w=i.length;return i=i.map(function(y){return String(y)}),w>2?"one of ".concat(c," ").concat(i.slice(0,w-1).join(", "),", or ")+i[w-1]:w===2?"one of ".concat(c," ").concat(i[0]," or ").concat(i[1]):"of ".concat(c," ").concat(i[0])}else return"of ".concat(c," ").concat(String(i))}function l(i,c,w){return i.substr(!w||w<0?0:+w,c.length)===c}function u(i,c,w){return(w===void 0||w>i.length)&&(w=i.length),i.substring(w-c.length,w)===c}function o(i,c,w){return typeof w!="number"&&(w=0),w+c.length>i.length?!1:i.indexOf(c,w)!==-1}return r("ERR_INVALID_OPT_VALUE",function(i,c){return'The value "'+c+'" is invalid for option "'+i+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(i,c,w){var y;typeof c=="string"&&l(c,"not ")?(y="must not be",c=c.replace(/^not /,"")):y="must be";var x;if(u(i," argument"))x="The ".concat(i," ").concat(y," ").concat(a(c,"type"));else{var _=o(i,".")?"property":"argument";x='The "'.concat(i,'" ').concat(_," ").concat(y," ").concat(a(c,"type"))}return x+=". Received type ".concat(typeof w),x},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(i){return"The "+i+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(i){return"Cannot call "+i+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(i){return"Unknown encoding: "+i},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),gn.codes=e,gn}var wn,Yi;function Js(){if(Yi)return wn;Yi=1;var t=Yt().codes.ERR_INVALID_OPT_VALUE;function e(a,l,u){return a.highWaterMark!=null?a.highWaterMark:l?a[u]:null}function r(a,l,u,o){var i=e(l,o,u);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var c=o?u:"highWaterMark";throw new t(c,i)}return Math.floor(i)}return a.objectMode?16:16*1024}return wn={getHighWaterMark:r},wn}var yn,Zi;function Fo(){if(Zi)return yn;Zi=1,yn=t;function t(r,a){if(e("noDeprecation"))return r;var l=!1;function u(){if(!l){if(e("throwDeprecation"))throw new Error(a);e("traceDeprecation")?console.trace(a):console.warn(a),l=!0}return r.apply(this,arguments)}return u}function e(r){try{if(!ht.localStorage)return!1}catch{return!1}var a=ht.localStorage[r];return a==null?!1:String(a).toLowerCase()==="true"}return yn}var vn,Qi;function $s(){if(Qi)return vn;Qi=1,vn=J;function t(j){var g=this;this.next=null,this.entry=null,this.finish=function(){$(g,j)}}var e;J.WritableState=V;var r={deprecate:Fo()},a=Gs(),l=Or().Buffer,u=ht.Uint8Array||function(){};function o(j){return l.from(j)}function i(j){return l.isBuffer(j)||j instanceof u}var c=Qs(),w=Js(),y=w.getHighWaterMark,x=Yt().codes,_=x.ERR_INVALID_ARG_TYPE,p=x.ERR_METHOD_NOT_IMPLEMENTED,T=x.ERR_MULTIPLE_CALLBACK,v=x.ERR_STREAM_CANNOT_PIPE,E=x.ERR_STREAM_DESTROYED,d=x.ERR_STREAM_NULL_VALUES,S=x.ERR_STREAM_WRITE_AFTER_END,R=x.ERR_UNKNOWN_ENCODING,D=c.errorOrDestroy;Ot(J,a);function C(){}function V(j,g,m){e=e||Ht(),j=j||{},typeof m!="boolean"&&(m=g instanceof e),this.objectMode=!!j.objectMode,m&&(this.objectMode=this.objectMode||!!j.writableObjectMode),this.highWaterMark=y(this,j,"writableHighWaterMark",m),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var M=j.decodeStrings===!1;this.decodeStrings=!M,this.defaultEncoding=j.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(F){le(g,F)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=j.emitClose!==!1,this.autoDestroy=!!j.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new t(this)}V.prototype.getBuffer=function(){for(var g=this.bufferedRequest,m=[];g;)m.push(g),g=g.next;return m},function(){try{Object.defineProperty(V.prototype,"buffer",{get:r.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var H;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(H=Function.prototype[Symbol.hasInstance],Object.defineProperty(J,Symbol.hasInstance,{value:function(g){return H.call(this,g)?!0:this!==J?!1:g&&g._writableState instanceof V}})):H=function(g){return g instanceof this};function J(j){e=e||Ht();var g=this instanceof e;if(!g&&!H.call(J,this))return new J(j);this._writableState=new V(j,this,g),this.writable=!0,j&&(typeof j.write=="function"&&(this._write=j.write),typeof j.writev=="function"&&(this._writev=j.writev),typeof j.destroy=="function"&&(this._destroy=j.destroy),typeof j.final=="function"&&(this._final=j.final)),a.call(this)}J.prototype.pipe=function(){D(this,new v)};function I(j,g){var m=new S;D(j,m),ve.nextTick(g,m)}function re(j,g,m,M){var F;return m===null?F=new d:typeof m!="string"&&!g.objectMode&&(F=new _("chunk",["string","Buffer"],m)),F?(D(j,F),ve.nextTick(M,F),!1):!0}J.prototype.write=function(j,g,m){var M=this._writableState,F=!1,k=!M.objectMode&&i(j);return k&&!l.isBuffer(j)&&(j=o(j)),typeof g=="function"&&(m=g,g=null),k?g="buffer":g||(g=M.defaultEncoding),typeof m!="function"&&(m=C),M.ending?I(this,m):(k||re(this,M,j,m))&&(M.pendingcb++,F=L(this,M,k,j,g,m)),F},J.prototype.cork=function(){this._writableState.corked++},J.prototype.uncork=function(){var j=this._writableState;j.corked&&(j.corked--,!j.writing&&!j.corked&&!j.bufferProcessing&&j.bufferedRequest&&K(this,j))},J.prototype.setDefaultEncoding=function(g){if(typeof g=="string"&&(g=g.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((g+"").toLowerCase())>-1))throw new R(g);return this._writableState.defaultEncoding=g,this},Object.defineProperty(J.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function ue(j,g,m){return!j.objectMode&&j.decodeStrings!==!1&&typeof g=="string"&&(g=l.from(g,m)),g}Object.defineProperty(J.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function L(j,g,m,M,F,k){if(!m){var O=ue(g,M,F);M!==O&&(m=!0,F="buffer",M=O)}var Q=g.objectMode?1:M.length;g.length+=Q;var h=g.length>5===6?2:d>>4===14?3:d>>3===30?4:d>>6===2?-1:-2}function o(d,S,R){var D=S.length-1;if(D=0?(C>0&&(d.lastNeed=C-1),C):--D=0?(C>0&&(d.lastNeed=C-2),C):--D=0?(C>0&&(C===2?C=0:d.lastNeed=C-3),C):0))}function i(d,S,R){if((S[0]&192)!==128)return d.lastNeed=0,"�";if(d.lastNeed>1&&S.length>1){if((S[1]&192)!==128)return d.lastNeed=1,"�";if(d.lastNeed>2&&S.length>2&&(S[2]&192)!==128)return d.lastNeed=2,"�"}}function c(d){var S=this.lastTotal-this.lastNeed,R=i(this,d);if(R!==void 0)return R;if(this.lastNeed<=d.length)return d.copy(this.lastChar,S,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);d.copy(this.lastChar,S,0,d.length),this.lastNeed-=d.length}function w(d,S){var R=o(this,d,S);if(!this.lastNeed)return d.toString("utf8",S);this.lastTotal=R;var D=d.length-(R-this.lastNeed);return d.copy(this.lastChar,0,D),d.toString("utf8",S,D)}function y(d){var S=d&&d.length?this.write(d):"";return this.lastNeed?S+"�":S}function x(d,S){if((d.length-S)%2===0){var R=d.toString("utf16le",S);if(R){var D=R.charCodeAt(R.length-1);if(D>=55296&&D<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=d[d.length-2],this.lastChar[1]=d[d.length-1],R.slice(0,-1)}return R}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=d[d.length-1],d.toString("utf16le",S,d.length-1)}function _(d){var S=d&&d.length?this.write(d):"";if(this.lastNeed){var R=this.lastTotal-this.lastNeed;return S+this.lastChar.toString("utf16le",0,R)}return S}function p(d,S){var R=(d.length-S)%3;return R===0?d.toString("base64",S):(this.lastNeed=3-R,this.lastTotal=3,R===1?this.lastChar[0]=d[d.length-1]:(this.lastChar[0]=d[d.length-2],this.lastChar[1]=d[d.length-1]),d.toString("base64",S,d.length-R))}function T(d){var S=d&&d.length?this.write(d):"";return this.lastNeed?S+this.lastChar.toString("base64",0,3-this.lastNeed):S}function v(d){return d.toString(this.encoding)}function E(d){return d&&d.length?this.write(d):""}return _n}var En,ts;function Qn(){if(ts)return En;ts=1;var t=Yt().codes.ERR_STREAM_PREMATURE_CLOSE;function e(u){var o=!1;return function(){if(!o){o=!0;for(var i=arguments.length,c=new Array(i),w=0;w0)if(typeof O!="string"&&!b.objectMode&&Object.getPrototypeOf(O)!==a.prototype&&(O=u(O)),h)b.endEmitted?C(k,new d):ue(k,b,O,!0);else if(b.ended)C(k,new v);else{if(b.destroyed)return!1;b.reading=!1,b.decoder&&!Q?(O=b.decoder.write(O),b.objectMode||O.length!==0?ue(k,b,O,!1):K(k,b)):ue(k,b,O,!1)}else h||(b.reading=!1,K(k,b))}return!b.ended&&(b.length=q?k=q:(k--,k|=k>>>1,k|=k>>>2,k|=k>>>4,k|=k>>>8,k|=k>>>16,k++),k}function Z(k,O){return k<=0||O.length===0&&O.ended?0:O.objectMode?1:k!==k?O.flowing&&O.length?O.buffer.head.data.length:O.length:(k>O.highWaterMark&&(O.highWaterMark=A(k)),k<=O.length?k:O.ended?O.length:(O.needReadable=!0,0))}I.prototype.read=function(k){c("read",k),k=parseInt(k,10);var O=this._readableState,Q=k;if(k!==0&&(O.emittedReadable=!1),k===0&&O.needReadable&&((O.highWaterMark!==0?O.length>=O.highWaterMark:O.length>0)||O.ended))return c("read: emitReadable",O.length,O.ended),O.length===0&&O.ended?m(this):Y(this),null;if(k=Z(k,O),k===0&&O.ended)return O.length===0&&m(this),null;var h=O.needReadable;c("need readable",h),(O.length===0||O.length-k0?X=g(k,O):X=null,X===null?(O.needReadable=O.length<=O.highWaterMark,k=0):(O.length-=k,O.awaitDrain=0),O.length===0&&(O.ended||(O.needReadable=!0),Q!==k&&O.ended&&m(this)),X!==null&&this.emit("data",X),X};function le(k,O){if(c("onEofChunk"),!O.ended){if(O.decoder){var Q=O.decoder.end();Q&&Q.length&&(O.buffer.push(Q),O.length+=O.objectMode?1:Q.length)}O.ended=!0,O.sync?Y(k):(O.needReadable=!1,O.emittedReadable||(O.emittedReadable=!0,de(k)))}}function Y(k){var O=k._readableState;c("emitReadable",O.needReadable,O.emittedReadable),O.needReadable=!1,O.emittedReadable||(c("emitReadable",O.flowing),O.emittedReadable=!0,ve.nextTick(de,k))}function de(k){var O=k._readableState;c("emitReadable_",O.destroyed,O.length,O.ended),!O.destroyed&&(O.length||O.ended)&&(k.emit("readable"),O.emittedReadable=!1),O.needReadable=!O.flowing&&!O.ended&&O.length<=O.highWaterMark,j(k)}function K(k,O){O.readingMore||(O.readingMore=!0,ve.nextTick(ce,k,O))}function ce(k,O){for(;!O.reading&&!O.ended&&(O.length1&&F(h.pipes,k)!==-1)&&!P&&(c("false write response, pause",h.awaitDrain),h.awaitDrain++),Q.pause())}function te(pe){c("onerror",pe),fe(),k.removeListener("error",te),e(k,"error")===0&&C(k,pe)}H(k,"error",te);function ae(){k.removeListener("finish",ne),fe()}k.once("close",ae);function ne(){c("onfinish"),k.removeListener("close",ae),fe()}k.once("finish",ne);function fe(){c("unpipe"),Q.unpipe(k)}return k.emit("pipe",Q),h.flowing||(c("pipe resume"),Q.resume()),k};function G(k){return function(){var Q=k._readableState;c("pipeOnDrain",Q.awaitDrain),Q.awaitDrain&&Q.awaitDrain--,Q.awaitDrain===0&&e(k,"data")&&(Q.flowing=!0,j(k))}}I.prototype.unpipe=function(k){var O=this._readableState,Q={hasUnpiped:!1};if(O.pipesCount===0)return this;if(O.pipesCount===1)return k&&k!==O.pipes?this:(k||(k=O.pipes),O.pipes=null,O.pipesCount=0,O.flowing=!1,k&&k.emit("unpipe",this,Q),this);if(!k){var h=O.pipes,X=O.pipesCount;O.pipes=null,O.pipesCount=0,O.flowing=!1;for(var b=0;b0,h.flowing!==!1&&this.resume()):k==="readable"&&!h.endEmitted&&!h.readableListening&&(h.readableListening=h.needReadable=!0,h.flowing=!1,h.emittedReadable=!1,c("on readable",h.length,h.reading),h.length?Y(this):h.reading||ve.nextTick(W,this)),Q},I.prototype.addListener=I.prototype.on,I.prototype.removeListener=function(k,O){var Q=r.prototype.removeListener.call(this,k,O);return k==="readable"&&ve.nextTick(N,this),Q},I.prototype.removeAllListeners=function(k){var O=r.prototype.removeAllListeners.apply(this,arguments);return(k==="readable"||k===void 0)&&ve.nextTick(N,this),O};function N(k){var O=k._readableState;O.readableListening=k.listenerCount("readable")>0,O.resumeScheduled&&!O.paused?O.flowing=!0:k.listenerCount("data")>0&&k.resume()}function W(k){c("readable nexttick read 0"),k.read(0)}I.prototype.resume=function(){var k=this._readableState;return k.flowing||(c("resume"),k.flowing=!k.readableListening,z(this,k)),k.paused=!1,this};function z(k,O){O.resumeScheduled||(O.resumeScheduled=!0,ve.nextTick($,k,O))}function $(k,O){c("resume",O.reading),O.reading||k.read(0),O.resumeScheduled=!1,k.emit("resume"),j(k),O.flowing&&!O.reading&&k.read(0)}I.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function j(k){var O=k._readableState;for(c("flow",O.flowing);O.flowing&&k.read()!==null;);}I.prototype.wrap=function(k){var O=this,Q=this._readableState,h=!1;k.on("end",function(){if(c("wrapped end"),Q.decoder&&!Q.ended){var n=Q.decoder.end();n&&n.length&&O.push(n)}O.push(null)}),k.on("data",function(n){if(c("wrapped data"),Q.decoder&&(n=Q.decoder.write(n)),!(Q.objectMode&&n==null)&&!(!Q.objectMode&&(!n||!n.length))){var s=O.push(n);s||(h=!0,k.pause())}});for(var X in k)this[X]===void 0&&typeof k[X]=="function"&&(this[X]=function(s){return function(){return k[s].apply(k,arguments)}}(X));for(var b=0;b=O.length?(O.decoder?Q=O.buffer.join(""):O.buffer.length===1?Q=O.buffer.first():Q=O.buffer.concat(O.length),O.buffer.clear()):Q=O.buffer.consume(k,O.decoder),Q}function m(k){var O=k._readableState;c("endReadable",O.endEmitted),O.endEmitted||(O.ended=!0,ve.nextTick(M,O,k))}function M(k,O){if(c("endReadableNT",k.endEmitted,k.length),!k.endEmitted&&k.length===0&&(k.endEmitted=!0,O.readable=!1,O.emit("end"),k.autoDestroy)){var Q=O._writableState;(!Q||Q.autoDestroy&&Q.finished)&&O.destroy()}}typeof Symbol=="function"&&(I.from=function(k,O){return D===void 0&&(D=Uo()),D(I,k,O)});function F(k,O){for(var Q=0,h=k.length;Q0;return i(S,D,C,function(V){E||(E=V),V&&d.forEach(c),!D&&(d.forEach(c),v(E))})});return p.reduce(w)}return In=x,In}var Jn=rt,$n=qn.EventEmitter,zo=Ot;zo(rt,$n);rt.Readable=ea();rt.Writable=$s();rt.Duplex=Ht();rt.Transform=ta();rt.PassThrough=jo();rt.finished=Qn();rt.pipeline=Wo();rt.Stream=rt;function rt(){$n.call(this)}rt.prototype.pipe=function(t,e){var r=this;function a(y){t.writable&&t.write(y)===!1&&r.pause&&r.pause()}r.on("data",a);function l(){r.readable&&r.resume&&r.resume()}t.on("drain",l),!t._isStdio&&(!e||e.end!==!1)&&(r.on("end",o),r.on("close",i));var u=!1;function o(){u||(u=!0,t.end())}function i(){u||(u=!0,typeof t.destroy=="function"&&t.destroy())}function c(y){if(w(),$n.listenerCount(this,"error")===0)throw y}r.on("error",c),t.on("error",c);function w(){r.removeListener("data",a),t.removeListener("drain",l),r.removeListener("end",o),r.removeListener("close",i),r.removeListener("error",c),t.removeListener("error",c),r.removeListener("end",w),r.removeListener("close",w),t.removeListener("close",w)}return r.on("end",w),r.on("close",w),t.on("close",w),t.emit("pipe",r),t};(function(t){(function(e){e.parser=function(g,m){return new a(g,m)},e.SAXParser=a,e.SAXStream=y,e.createStream=w,e.MAX_BUFFER_LENGTH=64*1024;var r=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];e.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function a(g,m){if(!(this instanceof a))return new a(g,m);var M=this;u(M),M.q=M.c="",M.bufferCheckPosition=e.MAX_BUFFER_LENGTH,M.opt=m||{},M.opt.lowercase=M.opt.lowercase||M.opt.lowercasetags,M.looseCase=M.opt.lowercase?"toLowerCase":"toUpperCase",M.tags=[],M.closed=M.closedRoot=M.sawRoot=!1,M.tag=M.error=null,M.strict=!!g,M.noscript=!!(g||M.opt.noscript),M.state=I.BEGIN,M.strictEntities=M.opt.strictEntities,M.ENTITIES=M.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES),M.attribList=[],M.opt.xmlns&&(M.ns=Object.create(v)),M.trackPosition=M.opt.position!==!1,M.trackPosition&&(M.position=M.line=M.column=0),ue(M,"onready")}Object.create||(Object.create=function(g){function m(){}m.prototype=g;var M=new m;return M}),Object.keys||(Object.keys=function(g){var m=[];for(var M in g)g.hasOwnProperty(M)&&m.push(M);return m});function l(g){for(var m=Math.max(e.MAX_BUFFER_LENGTH,10),M=0,F=0,k=r.length;Fm)switch(r[F]){case"textNode":q(g);break;case"cdata":L(g,"oncdata",g.cdata),g.cdata="";break;case"script":L(g,"onscript",g.script),g.script="";break;default:Z(g,"Max buffer length exceeded: "+r[F])}M=Math.max(M,O)}var Q=e.MAX_BUFFER_LENGTH-M;g.bufferCheckPosition=Q+g.position}function u(g){for(var m=0,M=r.length;m"||D(g)}function H(g,m){return g.test(m)}function J(g,m){return!H(g,m)}var I=0;e.STATE={BEGIN:I++,BEGIN_WHITESPACE:I++,TEXT:I++,TEXT_ENTITY:I++,OPEN_WAKA:I++,SGML_DECL:I++,SGML_DECL_QUOTED:I++,DOCTYPE:I++,DOCTYPE_QUOTED:I++,DOCTYPE_DTD:I++,DOCTYPE_DTD_QUOTED:I++,COMMENT_STARTING:I++,COMMENT:I++,COMMENT_ENDING:I++,COMMENT_ENDED:I++,CDATA:I++,CDATA_ENDING:I++,CDATA_ENDING_2:I++,PROC_INST:I++,PROC_INST_BODY:I++,PROC_INST_ENDING:I++,OPEN_TAG:I++,OPEN_TAG_SLASH:I++,ATTRIB:I++,ATTRIB_NAME:I++,ATTRIB_NAME_SAW_WHITE:I++,ATTRIB_VALUE:I++,ATTRIB_VALUE_QUOTED:I++,ATTRIB_VALUE_CLOSED:I++,ATTRIB_VALUE_UNQUOTED:I++,ATTRIB_VALUE_ENTITY_Q:I++,ATTRIB_VALUE_ENTITY_U:I++,CLOSE_TAG:I++,CLOSE_TAG_SAW_WHITE:I++,SCRIPT:I++,SCRIPT_ENDING:I++},e.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},e.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(e.ENTITIES).forEach(function(g){var m=e.ENTITIES[g],M=typeof m=="number"?String.fromCharCode(m):m;e.ENTITIES[g]=M});for(var re in e.STATE)e.STATE[e.STATE[re]]=re;I=e.STATE;function ue(g,m,M){g[m]&&g[m](M)}function L(g,m,M){g.textNode&&q(g),ue(g,m,M)}function q(g){g.textNode=A(g.opt,g.textNode),g.textNode&&ue(g,"ontext",g.textNode),g.textNode=""}function A(g,m){return g.trim&&(m=m.trim()),g.normalize&&(m=m.replace(/\s+/g," ")),m}function Z(g,m){return q(g),g.trackPosition&&(m+=` -Line: `+g.line+` -Column: `+g.column+` -Char: `+g.c),m=new Error(m),g.error=m,ue(g,"onerror",m),g}function le(g){return g.sawRoot&&!g.closedRoot&&Y(g,"Unclosed root tag"),g.state!==I.BEGIN&&g.state!==I.BEGIN_WHITESPACE&&g.state!==I.TEXT&&Z(g,"Unexpected end"),q(g),g.c="",g.closed=!0,ue(g,"onend"),a.call(g,g.strict,g.opt),g}function Y(g,m){if(typeof g!="object"||!(g instanceof a))throw new Error("bad call to strictFail");g.strict&&Z(g,m)}function de(g){g.strict||(g.tagName=g.tagName[g.looseCase]());var m=g.tags[g.tags.length-1]||g,M=g.tag={name:g.tagName,attributes:{}};g.opt.xmlns&&(M.ns=m.ns),g.attribList.length=0,L(g,"onopentagstart",M)}function K(g,m){var M=g.indexOf(":"),F=M<0?["",g]:g.split(":"),k=F[0],O=F[1];return m&&g==="xmlns"&&(k="xmlns",O=""),{prefix:k,local:O}}function ce(g){if(g.strict||(g.attribName=g.attribName[g.looseCase]()),g.attribList.indexOf(g.attribName)!==-1||g.tag.attributes.hasOwnProperty(g.attribName)){g.attribName=g.attribValue="";return}if(g.opt.xmlns){var m=K(g.attribName,!0),M=m.prefix,F=m.local;if(M==="xmlns")if(F==="xml"&&g.attribValue!==p)Y(g,"xml: prefix must be bound to "+p+` -Actual: `+g.attribValue);else if(F==="xmlns"&&g.attribValue!==T)Y(g,"xmlns: prefix must be bound to "+T+` -Actual: `+g.attribValue);else{var k=g.tag,O=g.tags[g.tags.length-1]||g;k.ns===O.ns&&(k.ns=Object.create(O.ns)),k.ns[F]=g.attribValue}g.attribList.push([g.attribName,g.attribValue])}else g.tag.attributes[g.attribName]=g.attribValue,L(g,"onattribute",{name:g.attribName,value:g.attribValue});g.attribName=g.attribValue=""}function G(g,m){if(g.opt.xmlns){var M=g.tag,F=K(g.tagName);M.prefix=F.prefix,M.local=F.local,M.uri=M.ns[F.prefix]||"",M.prefix&&!M.uri&&(Y(g,"Unbound namespace prefix: "+JSON.stringify(g.tagName)),M.uri=F.prefix);var k=g.tags[g.tags.length-1]||g;M.ns&&k.ns!==M.ns&&Object.keys(M.ns).forEach(function(B){L(g,"onopennamespace",{prefix:B,uri:M.ns[B]})});for(var O=0,Q=g.attribList.length;O",g.tagName="",g.state=I.SCRIPT;return}L(g,"onscript",g.script),g.script=""}var m=g.tags.length,M=g.tagName;g.strict||(M=M[g.looseCase]());for(var F=M;m--;){var k=g.tags[m];if(k.name!==F)Y(g,"Unexpected close tag");else break}if(m<0){Y(g,"Unmatched closing tag: "+g.tagName),g.textNode+="",g.state=I.TEXT;return}g.tagName=M;for(var O=g.tags.length;O-- >m;){var Q=g.tag=g.tags.pop();g.tagName=g.tag.name,L(g,"onclosetag",g.tagName);var h={};for(var X in Q.ns)h[X]=Q.ns[X];var b=g.tags[g.tags.length-1]||g;g.opt.xmlns&&Q.ns!==b.ns&&Object.keys(Q.ns).forEach(function(n){var s=Q.ns[n];L(g,"onclosenamespace",{prefix:n,uri:s})})}m===0&&(g.closedRoot=!0),g.tagName=g.attribValue=g.attribName="",g.attribList.length=0,g.state=I.TEXT}function W(g){var m=g.entity,M=m.toLowerCase(),F,k="";return g.ENTITIES[m]?g.ENTITIES[m]:g.ENTITIES[M]?g.ENTITIES[M]:(m=M,m.charAt(0)==="#"&&(m.charAt(1)==="x"?(m=m.slice(2),F=parseInt(m,16),k=F.toString(16)):(m=m.slice(1),F=parseInt(m,10),k=F.toString(10))),m=m.replace(/^0+/,""),isNaN(F)||k.toLowerCase()!==m?(Y(g,"Invalid character entity"),"&"+g.entity+";"):String.fromCodePoint(F))}function z(g,m){m==="<"?(g.state=I.OPEN_WAKA,g.startTagPosition=g.position):D(m)||(Y(g,"Non-whitespace before first tag."),g.textNode=m,g.state=I.TEXT)}function $(g,m){var M="";return m"?(L(m,"onsgmldeclaration",m.sgmlDecl),m.sgmlDecl="",m.state=I.TEXT):(C(F)&&(m.state=I.SGML_DECL_QUOTED),m.sgmlDecl+=F);continue;case I.SGML_DECL_QUOTED:F===m.q&&(m.state=I.SGML_DECL,m.q=""),m.sgmlDecl+=F;continue;case I.DOCTYPE:F===">"?(m.state=I.TEXT,L(m,"ondoctype",m.doctype),m.doctype=!0):(m.doctype+=F,F==="["?m.state=I.DOCTYPE_DTD:C(F)&&(m.state=I.DOCTYPE_QUOTED,m.q=F));continue;case I.DOCTYPE_QUOTED:m.doctype+=F,F===m.q&&(m.q="",m.state=I.DOCTYPE);continue;case I.DOCTYPE_DTD:m.doctype+=F,F==="]"?m.state=I.DOCTYPE:C(F)&&(m.state=I.DOCTYPE_DTD_QUOTED,m.q=F);continue;case I.DOCTYPE_DTD_QUOTED:m.doctype+=F,F===m.q&&(m.state=I.DOCTYPE_DTD,m.q="");continue;case I.COMMENT:F==="-"?m.state=I.COMMENT_ENDING:m.comment+=F;continue;case I.COMMENT_ENDING:F==="-"?(m.state=I.COMMENT_ENDED,m.comment=A(m.opt,m.comment),m.comment&&L(m,"oncomment",m.comment),m.comment=""):(m.comment+="-"+F,m.state=I.COMMENT);continue;case I.COMMENT_ENDED:F!==">"?(Y(m,"Malformed comment"),m.comment+="--"+F,m.state=I.COMMENT):m.state=I.TEXT;continue;case I.CDATA:F==="]"?m.state=I.CDATA_ENDING:m.cdata+=F;continue;case I.CDATA_ENDING:F==="]"?m.state=I.CDATA_ENDING_2:(m.cdata+="]"+F,m.state=I.CDATA);continue;case I.CDATA_ENDING_2:F===">"?(m.cdata&&L(m,"oncdata",m.cdata),L(m,"onclosecdata"),m.cdata="",m.state=I.TEXT):F==="]"?m.cdata+="]":(m.cdata+="]]"+F,m.state=I.CDATA);continue;case I.PROC_INST:F==="?"?m.state=I.PROC_INST_ENDING:D(F)?m.state=I.PROC_INST_BODY:m.procInstName+=F;continue;case I.PROC_INST_BODY:if(!m.procInstBody&&D(F))continue;F==="?"?m.state=I.PROC_INST_ENDING:m.procInstBody+=F;continue;case I.PROC_INST_ENDING:F===">"?(L(m,"onprocessinginstruction",{name:m.procInstName,body:m.procInstBody}),m.procInstName=m.procInstBody="",m.state=I.TEXT):(m.procInstBody+="?"+F,m.state=I.PROC_INST_BODY);continue;case I.OPEN_TAG:H(d,F)?m.tagName+=F:(de(m),F===">"?G(m):F==="/"?m.state=I.OPEN_TAG_SLASH:(D(F)||Y(m,"Invalid character in tag name"),m.state=I.ATTRIB));continue;case I.OPEN_TAG_SLASH:F===">"?(G(m,!0),N(m)):(Y(m,"Forward-slash in opening tag not followed by >"),m.state=I.ATTRIB);continue;case I.ATTRIB:if(D(F))continue;F===">"?G(m):F==="/"?m.state=I.OPEN_TAG_SLASH:H(E,F)?(m.attribName=F,m.attribValue="",m.state=I.ATTRIB_NAME):Y(m,"Invalid attribute name");continue;case I.ATTRIB_NAME:F==="="?m.state=I.ATTRIB_VALUE:F===">"?(Y(m,"Attribute without value"),m.attribValue=m.attribName,ce(m),G(m)):D(F)?m.state=I.ATTRIB_NAME_SAW_WHITE:H(d,F)?m.attribName+=F:Y(m,"Invalid attribute name");continue;case I.ATTRIB_NAME_SAW_WHITE:if(F==="=")m.state=I.ATTRIB_VALUE;else{if(D(F))continue;Y(m,"Attribute without value"),m.tag.attributes[m.attribName]="",m.attribValue="",L(m,"onattribute",{name:m.attribName,value:""}),m.attribName="",F===">"?G(m):H(E,F)?(m.attribName=F,m.state=I.ATTRIB_NAME):(Y(m,"Invalid attribute name"),m.state=I.ATTRIB)}continue;case I.ATTRIB_VALUE:if(D(F))continue;C(F)?(m.q=F,m.state=I.ATTRIB_VALUE_QUOTED):(Y(m,"Unquoted attribute value"),m.state=I.ATTRIB_VALUE_UNQUOTED,m.attribValue=F);continue;case I.ATTRIB_VALUE_QUOTED:if(F!==m.q){F==="&"?m.state=I.ATTRIB_VALUE_ENTITY_Q:m.attribValue+=F;continue}ce(m),m.q="",m.state=I.ATTRIB_VALUE_CLOSED;continue;case I.ATTRIB_VALUE_CLOSED:D(F)?m.state=I.ATTRIB:F===">"?G(m):F==="/"?m.state=I.OPEN_TAG_SLASH:H(E,F)?(Y(m,"No whitespace between attributes"),m.attribName=F,m.attribValue="",m.state=I.ATTRIB_NAME):Y(m,"Invalid attribute name");continue;case I.ATTRIB_VALUE_UNQUOTED:if(!V(F)){F==="&"?m.state=I.ATTRIB_VALUE_ENTITY_U:m.attribValue+=F;continue}ce(m),F===">"?G(m):m.state=I.ATTRIB;continue;case I.CLOSE_TAG:if(m.tagName)F===">"?N(m):H(d,F)?m.tagName+=F:m.script?(m.script+=""?N(m):Y(m,"Invalid characters in closing tag");continue;case I.TEXT_ENTITY:case I.ATTRIB_VALUE_ENTITY_Q:case I.ATTRIB_VALUE_ENTITY_U:var Q,h;switch(m.state){case I.TEXT_ENTITY:Q=I.TEXT,h="textNode";break;case I.ATTRIB_VALUE_ENTITY_Q:Q=I.ATTRIB_VALUE_QUOTED,h="attribValue";break;case I.ATTRIB_VALUE_ENTITY_U:Q=I.ATTRIB_VALUE_UNQUOTED,h="attribValue";break}F===";"?(m[h]+=W(m),m.entity="",m.state=Q):H(m.entity.length?R:S,F)?m.entity+=F:(Y(m,"Invalid character in entity name"),m[h]+="&"+m.entity+F,m.entity="",m.state=Q);continue;default:throw new Error(m,"Unknown state: "+m.state)}return m.position>=m.bufferCheckPosition&&l(m),m}/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */String.fromCodePoint||function(){var g=String.fromCharCode,m=Math.floor,M=function(){var F=16384,k=[],O,Q,h=-1,X=arguments.length;if(!X)return"";for(var b="";++h1114111||m(n)!==n)throw RangeError("Invalid code point: "+n);n<=65535?k.push(n):(n-=65536,O=(n>>10)+55296,Q=n%1024+56320,k.push(O,Q)),(h+1===X||k.length>F)&&(b+=g.apply(null,k),k.length=0)}return b};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:M,configurable:!0,writable:!0}):String.fromCodePoint=M}()})(t)})(Os);var ei={isArray:function(t){return Array.isArray?Array.isArray(t):Object.prototype.toString.call(t)==="[object Array]"}},Ho=ei.isArray,ti={copyOptions:function(t){var e,r={};for(e in t)t.hasOwnProperty(e)&&(r[e]=t[e]);return r},ensureFlagExists:function(t,e){(!(t in e)||typeof e[t]!="boolean")&&(e[t]=!1)},ensureSpacesExists:function(t){(!("spaces"in t)||typeof t.spaces!="number"&&typeof t.spaces!="string")&&(t.spaces=0)},ensureAlwaysArrayExists:function(t){(!("alwaysArray"in t)||typeof t.alwaysArray!="boolean"&&!Ho(t.alwaysArray))&&(t.alwaysArray=!1)},ensureKeyExists:function(t,e){(!(t+"Key"in e)||typeof e[t+"Key"]!="string")&&(e[t+"Key"]=e.compact?"_"+t:t)},checkFnExists:function(t,e){return t+"Fn"in e}},Go=Os,Te=ti,jt=ei.isArray,ee,we;function Ko(t){return ee=Te.copyOptions(t),Te.ensureFlagExists("ignoreDeclaration",ee),Te.ensureFlagExists("ignoreInstruction",ee),Te.ensureFlagExists("ignoreAttributes",ee),Te.ensureFlagExists("ignoreText",ee),Te.ensureFlagExists("ignoreComment",ee),Te.ensureFlagExists("ignoreCdata",ee),Te.ensureFlagExists("ignoreDoctype",ee),Te.ensureFlagExists("compact",ee),Te.ensureFlagExists("alwaysChildren",ee),Te.ensureFlagExists("addParent",ee),Te.ensureFlagExists("trim",ee),Te.ensureFlagExists("nativeType",ee),Te.ensureFlagExists("nativeTypeAttributes",ee),Te.ensureFlagExists("sanitize",ee),Te.ensureFlagExists("instructionHasAttributes",ee),Te.ensureFlagExists("captureSpacesBetweenElements",ee),Te.ensureAlwaysArrayExists(ee),Te.ensureKeyExists("declaration",ee),Te.ensureKeyExists("instruction",ee),Te.ensureKeyExists("attributes",ee),Te.ensureKeyExists("text",ee),Te.ensureKeyExists("comment",ee),Te.ensureKeyExists("cdata",ee),Te.ensureKeyExists("doctype",ee),Te.ensureKeyExists("type",ee),Te.ensureKeyExists("name",ee),Te.ensureKeyExists("elements",ee),Te.ensureKeyExists("parent",ee),ee}function ra(t){var e=Number(t);if(!isNaN(e))return e;var r=t.toLowerCase();return r==="true"?!0:r==="false"?!1:t}function or(t,e){var r;if(ee.compact){if(!we[ee[t+"Key"]]&&(jt(ee.alwaysArray)?ee.alwaysArray.indexOf(ee[t+"Key"])!==-1:ee.alwaysArray)&&(we[ee[t+"Key"]]=[]),we[ee[t+"Key"]]&&!jt(we[ee[t+"Key"]])&&(we[ee[t+"Key"]]=[we[ee[t+"Key"]]]),t+"Fn"in ee&&typeof e=="string"&&(e=ee[t+"Fn"](e,we)),t==="instruction"&&("instructionFn"in ee||"instructionNameFn"in ee)){for(r in e)if(e.hasOwnProperty(r))if("instructionFn"in ee)e[r]=ee.instructionFn(e[r],r,we);else{var a=e[r];delete e[r],e[ee.instructionNameFn(r,a,we)]=a}}jt(we[ee[t+"Key"]])?we[ee[t+"Key"]].push(e):we[ee[t+"Key"]]=e}else{we[ee.elementsKey]||(we[ee.elementsKey]=[]);var l={};if(l[ee.typeKey]=t,t==="instruction"){for(r in e)if(e.hasOwnProperty(r))break;l[ee.nameKey]="instructionNameFn"in ee?ee.instructionNameFn(r,e,we):r,ee.instructionHasAttributes?(l[ee.attributesKey]=e[r][ee.attributesKey],"instructionFn"in ee&&(l[ee.attributesKey]=ee.instructionFn(l[ee.attributesKey],r,we))):("instructionFn"in ee&&(e[r]=ee.instructionFn(e[r],r,we)),l[ee.instructionKey]=e[r])}else t+"Fn"in ee&&(e=ee[t+"Fn"](e,we)),l[ee[t+"Key"]]=e;ee.addParent&&(l[ee.parentKey]=we),we[ee.elementsKey].push(l)}}function na(t){if("attributesFn"in ee&&t&&(t=ee.attributesFn(t,we)),(ee.trim||"attributeValueFn"in ee||"attributeNameFn"in ee||ee.nativeTypeAttributes)&&t){var e;for(e in t)if(t.hasOwnProperty(e)&&(ee.trim&&(t[e]=t[e].trim()),ee.nativeTypeAttributes&&(t[e]=ra(t[e])),"attributeValueFn"in ee&&(t[e]=ee.attributeValueFn(t[e],e,we)),"attributeNameFn"in ee)){var r=t[e];delete t[e],t[ee.attributeNameFn(e,t[e],we)]=r}}return t}function Vo(t){var e={};if(t.body&&(t.name.toLowerCase()==="xml"||ee.instructionHasAttributes)){for(var r=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g,a;(a=r.exec(t.body))!==null;)e[a[1]]=a[2]||a[3]||a[4];e=na(e)}if(t.name.toLowerCase()==="xml"){if(ee.ignoreDeclaration)return;we[ee.declarationKey]={},Object.keys(e).length&&(we[ee.declarationKey][ee.attributesKey]=e),ee.addParent&&(we[ee.declarationKey][ee.parentKey]=we)}else{if(ee.ignoreInstruction)return;ee.trim&&(t.body=t.body.trim());var l={};ee.instructionHasAttributes&&Object.keys(e).length?(l[t.name]={},l[t.name][ee.attributesKey]=e):l[t.name]=t.body,or("instruction",l)}}function qo(t,e){var r;if(typeof t=="object"&&(e=t.attributes,t=t.name),e=na(e),"elementNameFn"in ee&&(t=ee.elementNameFn(t,we)),ee.compact){if(r={},!ee.ignoreAttributes&&e&&Object.keys(e).length){r[ee.attributesKey]={};var a;for(a in e)e.hasOwnProperty(a)&&(r[ee.attributesKey][a]=e[a])}!(t in we)&&(jt(ee.alwaysArray)?ee.alwaysArray.indexOf(t)!==-1:ee.alwaysArray)&&(we[t]=[]),we[t]&&!jt(we[t])&&(we[t]=[we[t]]),jt(we[t])?we[t].push(r):we[t]=r}else we[ee.elementsKey]||(we[ee.elementsKey]=[]),r={},r[ee.typeKey]="element",r[ee.nameKey]=t,!ee.ignoreAttributes&&e&&Object.keys(e).length&&(r[ee.attributesKey]=e),ee.alwaysChildren&&(r[ee.elementsKey]=[]),we[ee.elementsKey].push(r);r[ee.parentKey]=we,we=r}function Xo(t){ee.ignoreText||!t.trim()&&!ee.captureSpacesBetweenElements||(ee.trim&&(t=t.trim()),ee.nativeType&&(t=ra(t)),ee.sanitize&&(t=t.replace(/&/g,"&").replace(//g,">")),or("text",t))}function Yo(t){ee.ignoreComment||(ee.trim&&(t=t.trim()),or("comment",t))}function Zo(t){var e=we[ee.parentKey];ee.addParent||delete we[ee.parentKey],we=e}function Qo(t){ee.ignoreCdata||(ee.trim&&(t=t.trim()),or("cdata",t))}function Jo(t){ee.ignoreDoctype||(t=t.replace(/^ /,""),ee.trim&&(t=t.trim()),or("doctype",t))}function $o(t){t.note=t}var ia=function(t,e){var r=Go.parser(!0,{}),a={};if(we=a,ee=Ko(e),r.opt={strictEntities:!0},r.onopentag=qo,r.ontext=Xo,r.oncomment=Yo,r.onclosetag=Zo,r.onerror=$o,r.oncdata=Qo,r.ondoctype=Jo,r.onprocessinginstruction=Vo,r.write(t).close(),a[ee.elementsKey]){var l=a[ee.elementsKey];delete a[ee.elementsKey],a[ee.elementsKey]=l,delete a.text}return a},us=ti,eu=ia;function tu(t){var e=us.copyOptions(t);return us.ensureSpacesExists(e),e}var ru=function(t,e){var r,a,l,u;return r=tu(e),a=eu(t,r),u="compact"in r&&r.compact?"_parent":"parent","addParent"in r&&r.addParent?l=JSON.stringify(a,function(o,i){return o===u?"_":i},r.spaces):l=JSON.stringify(a,null,r.spaces),l.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")},Re=ti,nu=ei.isArray,Ue,je;function iu(t){var e=Re.copyOptions(t);return Re.ensureFlagExists("ignoreDeclaration",e),Re.ensureFlagExists("ignoreInstruction",e),Re.ensureFlagExists("ignoreAttributes",e),Re.ensureFlagExists("ignoreText",e),Re.ensureFlagExists("ignoreComment",e),Re.ensureFlagExists("ignoreCdata",e),Re.ensureFlagExists("ignoreDoctype",e),Re.ensureFlagExists("compact",e),Re.ensureFlagExists("indentText",e),Re.ensureFlagExists("indentCdata",e),Re.ensureFlagExists("indentAttributes",e),Re.ensureFlagExists("indentInstruction",e),Re.ensureFlagExists("fullTagEmptyElement",e),Re.ensureFlagExists("noQuotesForNativeAttributes",e),Re.ensureSpacesExists(e),typeof e.spaces=="number"&&(e.spaces=Array(e.spaces+1).join(" ")),Re.ensureKeyExists("declaration",e),Re.ensureKeyExists("instruction",e),Re.ensureKeyExists("attributes",e),Re.ensureKeyExists("text",e),Re.ensureKeyExists("comment",e),Re.ensureKeyExists("cdata",e),Re.ensureKeyExists("doctype",e),Re.ensureKeyExists("type",e),Re.ensureKeyExists("name",e),Re.ensureKeyExists("elements",e),e}function ft(t,e,r){return(!r&&t.spaces?` -`:"")+Array(e+1).join(t.spaces)}function Cr(t,e,r){if(e.ignoreAttributes)return"";"attributesFn"in e&&(t=e.attributesFn(t,je,Ue));var a,l,u,o,i=[];for(a in t)t.hasOwnProperty(a)&&t[a]!==null&&t[a]!==void 0&&(o=e.noQuotesForNativeAttributes&&typeof t[a]!="string"?"":'"',l=""+t[a],l=l.replace(/"/g,"""),u="attributeNameFn"in e?e.attributeNameFn(a,l,je,Ue):a,i.push(e.spaces&&e.indentAttributes?ft(e,r+1,!1):" "),i.push(u+"="+o+("attributeValueFn"in e?e.attributeValueFn(l,a,je,Ue):l)+o));return t&&Object.keys(t).length&&e.spaces&&e.indentAttributes&&i.push(ft(e,r,!1)),i.join("")}function sa(t,e,r){return Ue=t,je="xml",e.ignoreDeclaration?"":""}function aa(t,e,r){if(e.ignoreInstruction)return"";var a;for(a in t)if(t.hasOwnProperty(a))break;var l="instructionNameFn"in e?e.instructionNameFn(a,t[a],je,Ue):a;if(typeof t[a]=="object")return Ue=t,je=l,"";var u=t[a]?t[a]:"";return"instructionFn"in e&&(u=e.instructionFn(u,a,je,Ue)),""}function oa(t,e){return e.ignoreComment?"":""}function ua(t,e){return e.ignoreCdata?"":"","]]]]>"))+"]]>"}function la(t,e){return e.ignoreDoctype?"":""}function ri(t,e){return e.ignoreText?"":(t=""+t,t=t.replace(/&/g,"&"),t=t.replace(/&/g,"&").replace(//g,">"),"textFn"in e?e.textFn(t,je,Ue):t)}function su(t,e){var r;if(t.elements&&t.elements.length)for(r=0;r"),t[e.elementsKey]&&t[e.elementsKey].length&&(a.push(ca(t[e.elementsKey],e,r+1)),Ue=t,je=t.name),a.push(e.spaces&&su(t,e)?` -`+Array(r+1).join(e.spaces):""),a.push("")):a.push("/>"),a.join("")}function ca(t,e,r,a){return t.reduce(function(l,u){var o=ft(e,r,a&&!l);switch(u.type){case"element":return l+o+au(u,e,r);case"comment":return l+o+oa(u[e.commentKey],e);case"doctype":return l+o+la(u[e.doctypeKey],e);case"cdata":return l+(e.indentCdata?o:"")+ua(u[e.cdataKey],e);case"text":return l+(e.indentText?o:"")+ri(u[e.textKey],e);case"instruction":var i={};return i[u[e.nameKey]]=u[e.attributesKey]?u:u[e.instructionKey],l+(e.indentInstruction?o:"")+aa(i,e,r)}},"")}function fa(t,e,r){var a;for(a in t)if(t.hasOwnProperty(a))switch(a){case e.parentKey:case e.attributesKey:break;case e.textKey:if(e.indentText||r)return!0;break;case e.cdataKey:if(e.indentCdata||r)return!0;break;case e.instructionKey:if(e.indentInstruction||r)return!0;break;case e.doctypeKey:case e.commentKey:return!0;default:return!0}return!1}function ou(t,e,r,a,l){Ue=t,je=e;var u="elementNameFn"in r?r.elementNameFn(e,t):e;if(typeof t>"u"||t===null||t==="")return"fullTagEmptyElementFn"in r&&r.fullTagEmptyElementFn(e,t)||r.fullTagEmptyElement?"<"+u+">":"<"+u+"/>";var o=[];if(e){if(o.push("<"+u),typeof t!="object")return o.push(">"+ri(t,r)+""),o.join("");t[r.attributesKey]&&o.push(Cr(t[r.attributesKey],r,a));var i=fa(t,r,!0)||t[r.attributesKey]&&t[r.attributesKey]["xml:space"]==="preserve";if(i||("fullTagEmptyElementFn"in r?i=r.fullTagEmptyElementFn(e,t):i=r.fullTagEmptyElement),i)o.push(">");else return o.push("/>"),o.join("")}return o.push(ha(t,r,a+1,!1)),Ue=t,je=e,e&&o.push((l?ft(r,a,!1):"")+""),o.join("")}function ha(t,e,r,a){var l,u,o,i=[];for(u in t)if(t.hasOwnProperty(u))for(o=nu(t[u])?t[u]:[t[u]],l=0;l{switch(t.type){case void 0:case"element":const e=new mu(t.name,t.attributes),r=t.elements||[];for(const a of r){const l=ni(a);l!==void 0&&e.push(l)}return e;case"text":return t.text;default:return}};class pu extends ge{}class mu extends se{static fromXmlString(e){const r=pa.xml2js(e,{compact:!1});return ni(r)}constructor(e,r){super(e),r&&this.root.push(new pu(r))}push(e){this.root.push(e)}}class gu extends se{constructor(e){super(""),this._attr=e}prepForXml(e){return{_attr:this._attr}}}class ma extends se{constructor(e,r){super(e),r&&(this.root=r.root)}}const Ge=t=>{if(isNaN(t))throw new Error(`Invalid value '${t}' specified. Must be an integer.`);return Math.floor(t)},Dr=t=>{const e=Ge(t);if(e<0)throw new Error(`Invalid value '${t}' specified. Must be a positive integer.`);return e},ga=(t,e)=>{const r=e*2;if(t.length!==r||isNaN(+`0x${t}`))throw new Error(`Invalid hex value '${t}'. Expected ${r} digit hex value`);return t},ls=t=>ga(t,1),wa=t=>{const e=t.slice(-2),r=t.substring(0,t.length-2);return`${Number(r)}${e}`},ya=t=>{const e=wa(t);if(parseFloat(e)<0)throw new Error(`Invalid value '${e}' specified. Expected a positive number.`);return e},Gt=t=>{if(t==="auto")return t;const e=t.charAt(0)==="#"?t.substring(1):t;return ga(e,3)},Nt=t=>typeof t=="string"?wa(t):Ge(t),wu=t=>typeof t=="string"?ya(t):Dr(t),at=t=>typeof t=="string"?ya(t):Dr(t),yu=Dr,vu=Dr,bu=t=>t.toISOString();class oe extends se{constructor(e,r=!0){super(e),r!==!0&&this.root.push(new Ce({val:r}))}}class kn extends se{constructor(e,r){super(e),this.root.push(new Ce({val:wu(r)}))}}class Wt extends se{constructor(e,r){super(e),this.root.push(new Ce({val:r}))}}const tr=(t,e)=>new vt({name:t,attributes:{value:{key:"w:val",value:e}}});class ii extends se{constructor(e,r){super(e),this.root.push(new Ce({val:r}))}}class At extends se{constructor(e,r){super(e),this.root.push(r)}}class vt extends se{constructor({name:e,attributes:r,children:a}){super(e),r&&this.root.push(new ar(r)),a&&this.root.push(...a)}}const ut={START:"start",CENTER:"center",END:"end",BOTH:"both",MEDIUM_KASHIDA:"mediumKashida",DISTRIBUTE:"distribute",NUM_TAB:"numTab",HIGH_KASHIDA:"highKashida",LOW_KASHIDA:"lowKashida",THAI_DISTRIBUTE:"thaiDistribute",LEFT:"left",RIGHT:"right",JUSTIFIED:"both"};class _u extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{val:"w:val"})}}class Eu extends se{constructor(e){super("w:jc"),this.root.push(new _u({val:e}))}}class ke extends se{constructor(e,{color:r,size:a,space:l,style:u}){super(e),this.root.push(new Tu({style:u,color:r===void 0?void 0:Gt(r),size:a===void 0?void 0:yu(a),space:l===void 0?void 0:vu(l)}))}}class Tu extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{style:"w:val",color:"w:color",size:"w:sz",space:"w:space"})}}const si={SINGLE:"single",DASH_DOT_STROKED:"dashDotStroked",DASHED:"dashed",DASH_SMALL_GAP:"dashSmallGap",DOT_DASH:"dotDash",DOT_DOT_DASH:"dotDotDash",DOTTED:"dotted",DOUBLE:"double",DOUBLE_WAVE:"doubleWave",INSET:"inset",NIL:"nil",NONE:"none",OUTSET:"outset",THICK:"thick",THICK_THIN_LARGE_GAP:"thickThinLargeGap",THICK_THIN_MEDIUM_GAP:"thickThinMediumGap",THICK_THIN_SMALL_GAP:"thickThinSmallGap",THIN_THICK_LARGE_GAP:"thinThickLargeGap",THIN_THICK_MEDIUM_GAP:"thinThickMediumGap",THIN_THICK_SMALL_GAP:"thinThickSmallGap",THIN_THICK_THIN_LARGE_GAP:"thinThickThinLargeGap",THIN_THICK_THIN_MEDIUM_GAP:"thinThickThinMediumGap",THIN_THICK_THIN_SMALL_GAP:"thinThickThinSmallGap",THREE_D_EMBOSS:"threeDEmboss",THREE_D_ENGRAVE:"threeDEngrave",TRIPLE:"triple",WAVE:"wave"};class xu extends kr{constructor(e){super("w:pBdr"),e.top&&this.root.push(new ke("w:top",e.top)),e.bottom&&this.root.push(new ke("w:bottom",e.bottom)),e.left&&this.root.push(new ke("w:left",e.left)),e.right&&this.root.push(new ke("w:right",e.right))}}class Su extends se{constructor(){super("w:pBdr");const e=new ke("w:bottom",{color:"auto",space:1,style:si.SINGLE,size:6});this.root.push(e)}}class Au extends se{constructor({start:e,end:r,left:a,right:l,hanging:u,firstLine:o}){super("w:ind"),this.root.push(new ar({start:{key:"w:start",value:e===void 0?void 0:Nt(e)},end:{key:"w:end",value:r===void 0?void 0:Nt(r)},left:{key:"w:left",value:a===void 0?void 0:Nt(a)},right:{key:"w:right",value:l===void 0?void 0:Nt(l)},hanging:{key:"w:hanging",value:u===void 0?void 0:at(u)},firstLine:{key:"w:firstLine",value:o===void 0?void 0:at(o)}}))}}let Ru=class extends se{constructor(){super("w:br")}};const ai={BEGIN:"begin",END:"end",SEPARATE:"separate"};class oi extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{type:"w:fldCharType",dirty:"w:dirty"})}}class hr extends se{constructor(e){super("w:fldChar"),this.root.push(new oi({type:ai.BEGIN,dirty:e}))}}class dr extends se{constructor(e){super("w:fldChar"),this.root.push(new oi({type:ai.SEPARATE,dirty:e}))}}class pr extends se{constructor(e){super("w:fldChar"),this.root.push(new oi({type:ai.END,dirty:e}))}}const Kt={DEFAULT:"default",PRESERVE:"preserve"};class Vt extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{space:"xml:space"})}}class Iu extends se{constructor(){super("w:instrText"),this.root.push(new Vt({space:Kt.PRESERVE})),this.root.push("PAGE")}}class ku extends se{constructor(){super("w:instrText"),this.root.push(new Vt({space:Kt.PRESERVE})),this.root.push("NUMPAGES")}}class Nu extends se{constructor(){super("w:instrText"),this.root.push(new Vt({space:Kt.PRESERVE})),this.root.push("SECTIONPAGES")}}class Ou extends se{constructor(){super("w:instrText"),this.root.push(new Vt({space:Kt.PRESERVE})),this.root.push("SECTION")}}class Cu extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{fill:"w:fill",color:"w:color",type:"w:val"})}}class va extends se{constructor({fill:e,color:r,type:a}){super("w:shd"),this.root.push(new Cu({fill:e===void 0?void 0:Gt(e),color:r===void 0?void 0:Gt(r),type:a}))}}class Du extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{id:"w:id",author:"w:author",date:"w:date"})}}const Pu={DOT:"dot"};class Lu extends se{constructor(e){super("w:em"),this.root.push(new Ce({val:e}))}}class Fu extends Lu{constructor(e=Pu.DOT){super(e)}}class Bu extends se{constructor(e){super("w:spacing"),this.root.push(new Ce({val:Nt(e)}))}}class Mu extends se{constructor(e){super("w:color"),this.root.push(new Ce({val:Gt(e)}))}}class Uu extends se{constructor(e){super("w:highlight"),this.root.push(new Ce({val:e}))}}class ju extends se{constructor(e){super("w:highlightCs"),this.root.push(new Ce({val:e}))}}const Wu=t=>new vt({name:"w:lang",attributes:{value:{key:"w:val",value:t.value},eastAsia:{key:"w:eastAsia",value:t.eastAsia},bidirectional:{key:"w:bidi",value:t.bidirectional}}});class cs extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{ascii:"w:ascii",cs:"w:cs",eastAsia:"w:eastAsia",hAnsi:"w:hAnsi",hint:"w:hint"})}}class Nn extends se{constructor(e,r){if(super("w:rFonts"),typeof e=="string"){const a=e;this.root.push(new cs({ascii:a,cs:a,eastAsia:a,hAnsi:a,hint:r}))}else{const a=e;this.root.push(new cs(a))}}}let ba=class extends se{constructor(e){super("w:vertAlign"),this.root.push(new Ce({val:e}))}};class zu extends ba{constructor(){super("superscript")}}class Hu extends ba{constructor(){super("subscript")}}const _a={SINGLE:"single",WORDS:"words",DOUBLE:"double",THICK:"thick",DOTTED:"dotted",DOTTEDHEAVY:"dottedHeavy",DASH:"dash",DASHEDHEAVY:"dashedHeavy",DASHLONG:"dashLong",DASHLONGHEAVY:"dashLongHeavy",DOTDASH:"dotDash",DASHDOTHEAVY:"dashDotHeavy",DOTDOTDASH:"dotDotDash",DASHDOTDOTHEAVY:"dashDotDotHeavy",WAVE:"wave",WAVYHEAVY:"wavyHeavy",WAVYDOUBLE:"wavyDouble",NONE:"none"};class Gu extends se{constructor(e=_a.SINGLE,r){super("w:u"),this.root.push(new Ce({val:e,color:r===void 0?void 0:Gt(r)}))}}class Ct extends kr{constructor(e){var r,a;if(super("w:rPr"),!e)return;e.noProof!==void 0&&this.push(new oe("w:noProof",e.noProof)),e.bold!==void 0&&this.push(new oe("w:b",e.bold)),(e.boldComplexScript===void 0&&e.bold!==void 0||e.boldComplexScript)&&this.push(new oe("w:bCs",(r=e.boldComplexScript)!=null?r:e.bold)),e.italics!==void 0&&this.push(new oe("w:i",e.italics)),(e.italicsComplexScript===void 0&&e.italics!==void 0||e.italicsComplexScript)&&this.push(new oe("w:iCs",(a=e.italicsComplexScript)!=null?a:e.italics)),e.underline&&this.push(new Gu(e.underline.type,e.underline.color)),e.effect&&this.push(new Wt("w:effect",e.effect)),e.emphasisMark&&this.push(new Fu(e.emphasisMark.type)),e.color&&this.push(new Mu(e.color)),e.kern&&this.push(new kn("w:kern",e.kern)),e.position&&this.push(new Wt("w:position",e.position)),e.size!==void 0&&this.push(new kn("w:sz",e.size));const l=e.sizeComplexScript===void 0||e.sizeComplexScript===!0?e.size:e.sizeComplexScript;l&&this.push(new kn("w:szCs",l)),e.rightToLeft!==void 0&&this.push(new oe("w:rtl",e.rightToLeft)),e.smallCaps!==void 0?this.push(new oe("w:smallCaps",e.smallCaps)):e.allCaps!==void 0&&this.push(new oe("w:caps",e.allCaps)),e.strike!==void 0&&this.push(new oe("w:strike",e.strike)),e.doubleStrike!==void 0&&this.push(new oe("w:dstrike",e.doubleStrike)),e.subScript&&this.push(new Hu),e.superScript&&this.push(new zu),e.style&&this.push(new Wt("w:rStyle",e.style)),e.font&&(typeof e.font=="string"?this.push(new Nn(e.font)):"name"in e.font?this.push(new Nn(e.font.name,e.font.hint)):this.push(new Nn(e.font))),e.highlight&&this.push(new Uu(e.highlight));const u=e.highlightComplexScript===void 0||e.highlightComplexScript===!0?e.highlight:e.highlightComplexScript;u&&this.push(new ju(u)),e.characterSpacing&&this.push(new Bu(e.characterSpacing)),e.emboss!==void 0&&this.push(new oe("w:emboss",e.emboss)),e.imprint!==void 0&&this.push(new oe("w:imprint",e.imprint)),e.shading&&this.push(new va(e.shading)),e.revision&&this.push(new Ku(e.revision)),e.border&&this.push(new ke("w:bdr",e.border)),e.snapToGrid!==void 0&&this.push(new oe("w:snapToGrid",e.snapToGrid)),e.vanish&&this.push(new oe("w:vanish",e.vanish)),e.specVanish&&this.push(new oe("w:specVanish",e.vanish)),e.scale!==void 0&&this.push(new ii("w:w",e.scale)),e.language&&this.push(Wu(e.language)),e.math&&this.push(new oe("w:oMath",e.math))}push(e){this.root.push(e)}}class Ku extends se{constructor(e){super("w:rPrChange"),this.root.push(new Du({id:e.id,author:e.author,date:e.date})),this.addChildElement(new Ct(e))}}class Un extends se{constructor(e){var r;return super("w:t"),typeof e=="string"?(this.root.push(new Vt({space:Kt.PRESERVE})),this.root.push(e),this):(this.root.push(new Vt({space:(r=e.space)!=null?r:Kt.DEFAULT})),this.root.push(e.text),this)}}const mr={CURRENT:"CURRENT",TOTAL_PAGES:"TOTAL_PAGES",TOTAL_PAGES_IN_SECTION:"TOTAL_PAGES_IN_SECTION",CURRENT_SECTION:"SECTION"};class Pr extends se{constructor(e){if(super("w:r"),ie(this,"properties"),this.properties=new Ct(e),this.root.push(this.properties),e.break)for(let r=0;r(r=e)=>{let a="",l=r;for(;l--;)a+=t[Math.random()*t.length|0];return a},Xu=(t=21)=>{let e="",r=t;for(;r--;)e+=Vu[Math.random()*64|0];return e};const st=t=>Math.floor(t*72*20),ui=(t=0)=>{let e=t;return()=>++e},Yu=()=>ui(),Zu=()=>ui(1),Qu=()=>ui(),Ju=()=>Xu().toLowerCase(),rr=t=>qu("1234567890abcdef",t)(),$u=()=>`${rr(8)}-${rr(4)}-${rr(4)}-${rr(4)}-${rr(12)}`;class el extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{id:"w:id",initials:"w:initials",author:"w:author",date:"w:date"})}}class tl extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{"xmlns:cx":"xmlns:cx","xmlns:cx1":"xmlns:cx1","xmlns:cx2":"xmlns:cx2","xmlns:cx3":"xmlns:cx3","xmlns:cx4":"xmlns:cx4","xmlns:cx5":"xmlns:cx5","xmlns:cx6":"xmlns:cx6","xmlns:cx7":"xmlns:cx7","xmlns:cx8":"xmlns:cx8","xmlns:mc":"xmlns:mc","xmlns:aink":"xmlns:aink","xmlns:am3d":"xmlns:am3d","xmlns:o":"xmlns:o","xmlns:r":"xmlns:r","xmlns:m":"xmlns:m","xmlns:v":"xmlns:v","xmlns:wp14":"xmlns:wp14","xmlns:wp":"xmlns:wp","xmlns:w10":"xmlns:w10","xmlns:w":"xmlns:w","xmlns:w14":"xmlns:w14","xmlns:w15":"xmlns:w15","xmlns:w16cex":"xmlns:w16cex","xmlns:w16cid":"xmlns:w16cid","xmlns:w16":"xmlns:w16","xmlns:w16sdtdh":"xmlns:w16sdtdh","xmlns:w16se":"xmlns:w16se","xmlns:wpg":"xmlns:wpg","xmlns:wpi":"xmlns:wpi","xmlns:wne":"xmlns:wne","xmlns:wps":"xmlns:wps"})}}class rl extends se{constructor({id:e,initials:r,author:a,date:l=new Date,children:u}){super("w:comment"),this.root.push(new el({id:e,initials:r,author:a,date:l.toISOString()}));for(const o of u)this.root.push(o)}}class nl extends se{constructor({children:e}){super("w:comments"),this.root.push(new tl({"xmlns:cx":"http://schemas.microsoft.com/office/drawing/2014/chartex","xmlns:cx1":"http://schemas.microsoft.com/office/drawing/2015/9/8/chartex","xmlns:cx2":"http://schemas.microsoft.com/office/drawing/2015/10/21/chartex","xmlns:cx3":"http://schemas.microsoft.com/office/drawing/2016/5/9/chartex","xmlns:cx4":"http://schemas.microsoft.com/office/drawing/2016/5/10/chartex","xmlns:cx5":"http://schemas.microsoft.com/office/drawing/2016/5/11/chartex","xmlns:cx6":"http://schemas.microsoft.com/office/drawing/2016/5/12/chartex","xmlns:cx7":"http://schemas.microsoft.com/office/drawing/2016/5/13/chartex","xmlns:cx8":"http://schemas.microsoft.com/office/drawing/2016/5/14/chartex","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","xmlns:aink":"http://schemas.microsoft.com/office/drawing/2016/ink","xmlns:am3d":"http://schemas.microsoft.com/office/drawing/2017/model3d","xmlns:o":"urn:schemas-microsoft-com:office:office","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:m":"http://schemas.openxmlformats.org/officeDocument/2006/math","xmlns:v":"urn:schemas-microsoft-com:vml","xmlns:wp14":"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing","xmlns:wp":"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing","xmlns:w10":"urn:schemas-microsoft-com:office:word","xmlns:w":"http://schemas.openxmlformats.org/wordprocessingml/2006/main","xmlns:w14":"http://schemas.microsoft.com/office/word/2010/wordml","xmlns:w15":"http://schemas.microsoft.com/office/word/2012/wordml","xmlns:w16cex":"http://schemas.microsoft.com/office/word/2018/wordml/cex","xmlns:w16cid":"http://schemas.microsoft.com/office/word/2016/wordml/cid","xmlns:w16":"http://schemas.microsoft.com/office/word/2018/wordml","xmlns:w16sdtdh":"http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash","xmlns:w16se":"http://schemas.microsoft.com/office/word/2015/wordml/symex","xmlns:wpg":"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup","xmlns:wpi":"http://schemas.microsoft.com/office/word/2010/wordprocessingInk","xmlns:wne":"http://schemas.microsoft.com/office/word/2006/wordml","xmlns:wps":"http://schemas.microsoft.com/office/word/2010/wordprocessingShape"}));for(const r of e)this.root.push(new rl(r))}}class il extends se{constructor(){super("w:pageBreakBefore")}}const jn={AT_LEAST:"atLeast",EXACTLY:"exactly",EXACT:"exact",AUTO:"auto"};class sl extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{after:"w:after",before:"w:before",line:"w:line",lineRule:"w:lineRule"})}}class al extends se{constructor(e){super("w:spacing"),this.root.push(new sl(e))}}const lh={HEADING_1:"Heading1",HEADING_2:"Heading2",HEADING_3:"Heading3",HEADING_4:"Heading4",HEADING_5:"Heading5",HEADING_6:"Heading6",TITLE:"Title"};let gr=class extends se{constructor(e){super("w:pStyle"),this.root.push(new Ce({val:e}))}};class ol extends se{constructor(e){super("w:tabs");for(const r of e)this.root.push(new ll(r))}}const hs={LEFT:"left",RIGHT:"right",CENTER:"center",BAR:"bar",CLEAR:"clear",DECIMAL:"decimal",END:"end",NUM:"num",START:"start"};class ul extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{val:"w:val",pos:"w:pos",leader:"w:leader"})}}class ll extends se{constructor({type:e,position:r,leader:a}){super("w:tab"),this.root.push(new ul({val:e,pos:r,leader:a}))}}class ds extends se{constructor(e,r){super("w:numPr"),this.root.push(new cl(r)),this.root.push(new fl(e))}}class cl extends se{constructor(e){if(super("w:ilvl"),e>9)throw new Error("Level cannot be greater than 9. Read more here: https://answers.microsoft.com/en-us/msoffice/forum/all/does-word-support-more-than-9-list-levels/d130fdcd-1781-446d-8c84-c6c79124e4d7");this.root.push(new Ce({val:e}))}}class fl extends se{constructor(e){super("w:numId"),this.root.push(new Ce({val:typeof e=="string"?`{${e}}`:e}))}}class hl extends se{constructor(){super(...arguments),ie(this,"fileChild",Symbol())}}class dl extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{id:"Id",type:"Type",target:"Target",targetMode:"TargetMode"})}}const pl={EXTERNAL:"External"};class ml extends se{constructor(e,r,a,l){super("Relationship"),this.root.push(new dl({id:e,type:r,target:a,targetMode:l}))}}class gl extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{id:"r:id",history:"w:history",anchor:"w:anchor"})}}class wl extends se{constructor(e,r,a){super("w:hyperlink"),ie(this,"linkId"),this.linkId=r;const l={history:1,anchor:a||void 0,id:a?void 0:`rId${this.linkId}`},u=new gl(l);this.root.push(u),e.forEach(o=>{this.root.push(o)})}}class yl extends se{constructor(e){super("w:externalHyperlink"),this.options=e}}class vl extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{id:"w:id",name:"w:name"})}}class bl extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{id:"w:id"})}}class _l{constructor(e){ie(this,"bookmarkUniqueNumericId",Qu()),ie(this,"start"),ie(this,"children"),ie(this,"end");const r=this.bookmarkUniqueNumericId();this.start=new El(e.id,r),this.children=e.children,this.end=new Tl(r)}}class El extends se{constructor(e,r){super("w:bookmarkStart");const a=new vl({name:e,id:r});this.root.push(a)}}class Tl extends se{constructor(e){super("w:bookmarkEnd");const r=new bl({id:e});this.root.push(r)}}class xl extends se{constructor(e){super("w:outlineLvl"),this.level=e,this.root.push(new Ce({val:e}))}}class Sl extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{verticalAlign:"w:val"})}}class Al extends se{constructor(e){super("w:vAlign"),this.root.push(new Sl({verticalAlign:e}))}}const zt={DEFAULT:"default",FIRST:"first",EVEN:"even"};class Rl extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{type:"w:type",id:"r:id"})}}const ps={HEADER:"w:headerReference",FOOTER:"w:footerReference"};class On extends se{constructor(e,r){super(e),this.root.push(new Rl({type:r.type||zt.DEFAULT,id:`rId${r.id}`}))}}class Il extends se{constructor({space:e,count:r,separate:a,equalWidth:l,children:u}){super("w:cols"),this.root.push(new ar({space:{key:"w:space",value:e===void 0?void 0:at(e)},count:{key:"w:num",value:r===void 0?void 0:Ge(r)},separate:{key:"w:sep",value:a},equalWidth:{key:"w:equalWidth",value:l}})),!l&&u&&u.forEach(o=>this.addChildElement(o))}}class kl extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{type:"w:type",linePitch:"w:linePitch",charSpace:"w:charSpace"})}}class Nl extends se{constructor(e,r,a){super("w:docGrid"),this.root.push(new kl({type:a,linePitch:Ge(e),charSpace:r?Ge(r):void 0}))}}const Ol=({countBy:t,start:e,restart:r,distance:a})=>new vt({name:"w:lnNumType",attributes:{countBy:{key:"w:countBy",value:t===void 0?void 0:Ge(t)},start:{key:"w:start",value:e===void 0?void 0:Ge(e)},restart:{key:"w:restart",value:r},distance:{key:"w:distance",value:a===void 0?void 0:at(a)}}});class ms extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{display:"w:display",offsetFrom:"w:offsetFrom",zOrder:"w:zOrder"})}}class Cl extends kr{constructor(e){if(super("w:pgBorders"),!e)return this;e.pageBorders?this.root.push(new ms({display:e.pageBorders.display,offsetFrom:e.pageBorders.offsetFrom,zOrder:e.pageBorders.zOrder})):this.root.push(new ms({})),e.pageBorderTop&&this.root.push(new ke("w:top",e.pageBorderTop)),e.pageBorderLeft&&this.root.push(new ke("w:left",e.pageBorderLeft)),e.pageBorderBottom&&this.root.push(new ke("w:bottom",e.pageBorderBottom)),e.pageBorderRight&&this.root.push(new ke("w:right",e.pageBorderRight))}}class Dl extends se{constructor(e,r,a,l,u,o,i){super("w:pgMar"),this.root.push(new ar({top:{key:"w:top",value:Nt(e)},right:{key:"w:right",value:at(r)},bottom:{key:"w:bottom",value:Nt(a)},left:{key:"w:left",value:at(l)},header:{key:"w:header",value:at(u)},footer:{key:"w:footer",value:at(o)},gutter:{key:"w:gutter",value:at(i)}}))}}class Pl extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{start:"w:start",formatType:"w:fmt",separator:"w:chapSep"})}}class Ll extends se{constructor({start:e,formatType:r,separator:a}){super("w:pgNumType"),this.root.push(new Pl({start:e===void 0?void 0:Ge(e),formatType:r,separator:a}))}}const Ea={PORTRAIT:"portrait",LANDSCAPE:"landscape"};class Fl extends se{constructor(e,r,a){super("w:pgSz");const l=a===Ea.LANDSCAPE,u=at(e),o=at(r);this.root.push(new ar({width:{key:"w:w",value:l?o:u},height:{key:"w:h",value:l?u:o},orientation:{key:"w:orient",value:a}}))}}class Bl extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{val:"w:val"})}}class Ml extends se{constructor(e){super("w:textDirection"),this.root.push(new Bl({val:e}))}}class Ul extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{val:"w:val"})}}class jl extends se{constructor(e){super("w:type"),this.root.push(new Ul({val:e}))}}const Rt={TOP:1440,RIGHT:1440,BOTTOM:1440,LEFT:1440,HEADER:708,FOOTER:708,GUTTER:0},Cn={WIDTH:11906,HEIGHT:16838,ORIENTATION:Ea.PORTRAIT};class Wl extends se{constructor({page:{size:{width:e=Cn.WIDTH,height:r=Cn.HEIGHT,orientation:a=Cn.ORIENTATION}={},margin:{top:l=Rt.TOP,right:u=Rt.RIGHT,bottom:o=Rt.BOTTOM,left:i=Rt.LEFT,header:c=Rt.HEADER,footer:w=Rt.FOOTER,gutter:y=Rt.GUTTER}={},pageNumbers:x={},borders:_,textDirection:p}={},grid:{linePitch:T=360,charSpace:v,type:E}={},headerWrapperGroup:d={},footerWrapperGroup:S={},lineNumbers:R,titlePage:D,verticalAlign:C,column:V,type:H}={}){super("w:sectPr"),this.addHeaderFooterGroup(ps.HEADER,d),this.addHeaderFooterGroup(ps.FOOTER,S),H&&this.root.push(new jl(H)),this.root.push(new Fl(e,r,a)),this.root.push(new Dl(l,u,o,i,c,w,y)),_&&this.root.push(new Cl(_)),R&&this.root.push(Ol(R)),this.root.push(new Ll(x)),V&&this.root.push(new Il(V)),C&&this.root.push(new Al(C)),D!==void 0&&this.root.push(new oe("w:titlePg",D)),p&&this.root.push(new Ml(p)),this.root.push(new Nl(T,v,E))}addHeaderFooterGroup(e,r){r.default&&this.root.push(new On(e,{type:zt.DEFAULT,id:r.default.View.ReferenceId})),r.first&&this.root.push(new On(e,{type:zt.FIRST,id:r.first.View.ReferenceId})),r.even&&this.root.push(new On(e,{type:zt.EVEN,id:r.even.View.ReferenceId}))}}class zl extends se{constructor(){super("w:body"),ie(this,"sections",[])}addSection(e){const r=this.sections.pop();this.root.push(this.createSectionParagraph(r)),this.sections.push(new Wl(e))}prepForXml(e){return this.sections.length===1&&(this.root.splice(0,1),this.root.push(this.sections.pop())),super.prepForXml(e)}push(e){this.root.push(e)}createSectionParagraph(e){const r=new Wn({}),a=new qt({});return a.push(e),r.addChildElement(a),r}}class ur extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",Ignorable:"mc:Ignorable",cp:"xmlns:cp",dc:"xmlns:dc",dcterms:"xmlns:dcterms",dcmitype:"xmlns:dcmitype",xsi:"xmlns:xsi",type:"xsi:type",cx:"xmlns:cx",cx1:"xmlns:cx1",cx2:"xmlns:cx2",cx3:"xmlns:cx3",cx4:"xmlns:cx4",cx5:"xmlns:cx5",cx6:"xmlns:cx6",cx7:"xmlns:cx7",cx8:"xmlns:cx8",aink:"xmlns:aink",am3d:"xmlns:am3d",w16cex:"xmlns:w16cex",w16cid:"xmlns:w16cid",w16:"xmlns:w16",w16sdtdh:"xmlns:w16sdtdh",w16se:"xmlns:w16se"})}}class Hl extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{color:"w:color",themeColor:"w:themeColor",themeShade:"w:themeShade",themeTint:"w:themeTint"})}}class Gl extends se{constructor(e){super("w:background"),this.root.push(new Hl({color:e.color===void 0?void 0:Gt(e.color),themeColor:e.themeColor,themeShade:e.themeShade===void 0?void 0:ls(e.themeShade),themeTint:e.themeTint===void 0?void 0:ls(e.themeTint)}))}}class Kl extends se{constructor(e){super("w:document"),ie(this,"body"),this.root.push(new ur({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",cx:"http://schemas.microsoft.com/office/drawing/2014/chartex",cx1:"http://schemas.microsoft.com/office/drawing/2015/9/8/chartex",cx2:"http://schemas.microsoft.com/office/drawing/2015/10/21/chartex",cx3:"http://schemas.microsoft.com/office/drawing/2016/5/9/chartex",cx4:"http://schemas.microsoft.com/office/drawing/2016/5/10/chartex",cx5:"http://schemas.microsoft.com/office/drawing/2016/5/11/chartex",cx6:"http://schemas.microsoft.com/office/drawing/2016/5/12/chartex",cx7:"http://schemas.microsoft.com/office/drawing/2016/5/13/chartex",cx8:"http://schemas.microsoft.com/office/drawing/2016/5/14/chartex",aink:"http://schemas.microsoft.com/office/drawing/2016/ink",am3d:"http://schemas.microsoft.com/office/drawing/2017/model3d",w16cex:"http://schemas.microsoft.com/office/word/2018/wordml/cex",w16cid:"http://schemas.microsoft.com/office/word/2016/wordml/cid",w16:"http://schemas.microsoft.com/office/word/2018/wordml",w16sdtdh:"http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash",w16se:"http://schemas.microsoft.com/office/word/2015/wordml/symex",Ignorable:"w14 w15 wp14"})),this.body=new zl,e.background&&this.root.push(new Gl(e.background)),this.root.push(this.body)}add(e){return this.body.push(e),this}get Body(){return this.body}}class Vl extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{xmlns:"xmlns"})}}class Zt extends se{constructor(){super("Relationships"),this.root.push(new Vl({xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"}))}createRelationship(e,r,a,l){const u=new ml(`rId${e}`,r,a,l);return this.root.push(u),u}get RelationshipCount(){return this.root.length-1}}class Ta{constructor(e){ie(this,"document"),ie(this,"relationships"),this.document=new Kl(e),this.relationships=new Zt}get View(){return this.document}get Relationships(){return this.relationships}}class ql extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{val:"w:val"})}}class Xl extends se{constructor(){super("w:wordWrap"),this.root.push(new ql({val:0}))}}const Yl=t=>{var e,r;return new vt({name:"w:framePr",attributes:{anchorLock:{key:"w:anchorLock",value:t.anchorLock},dropCap:{key:"w:dropCap",value:t.dropCap},width:{key:"w:w",value:t.width},height:{key:"w:h",value:t.height},x:{key:"w:x",value:t.position?t.position.x:void 0},y:{key:"w:y",value:t.position?t.position.y:void 0},anchorHorizontal:{key:"w:hAnchor",value:t.anchor.horizontal},anchorVertical:{key:"w:vAnchor",value:t.anchor.vertical},spaceHorizontal:{key:"w:hSpace",value:(e=t.space)==null?void 0:e.horizontal},spaceVertical:{key:"w:vSpace",value:(r=t.space)==null?void 0:r.vertical},rule:{key:"w:hRule",value:t.rule},alignmentX:{key:"w:xAlign",value:t.alignment?t.alignment.x:void 0},alignmentY:{key:"w:yAlign",value:t.alignment?t.alignment.y:void 0},lines:{key:"w:lines",value:t.lines},wrap:{key:"w:wrap",value:t.wrap}}})};class qt extends kr{constructor(e){var r,a;if(super("w:pPr"),ie(this,"numberingReferences",[]),!e)return this;e.heading&&this.push(new gr(e.heading)),e.bullet&&this.push(new gr("ListParagraph")),e.numbering&&!e.style&&!e.heading&&(e.numbering.custom||this.push(new gr("ListParagraph"))),e.style&&this.push(new gr(e.style)),e.keepNext!==void 0&&this.push(new oe("w:keepNext",e.keepNext)),e.keepLines!==void 0&&this.push(new oe("w:keepLines",e.keepLines)),e.pageBreakBefore&&this.push(new il),e.frame&&this.push(Yl(e.frame)),e.widowControl!==void 0&&this.push(new oe("w:widowControl",e.widowControl)),e.bullet&&this.push(new ds(1,e.bullet.level)),e.numbering&&(this.numberingReferences.push({reference:e.numbering.reference,instance:(r=e.numbering.instance)!=null?r:0}),this.push(new ds(`${e.numbering.reference}-${(a=e.numbering.instance)!=null?a:0}`,e.numbering.level))),e.border&&this.push(new xu(e.border)),e.thematicBreak&&this.push(new Su),e.shading&&this.push(new va(e.shading)),e.wordWrap&&this.push(new Xl),e.overflowPunctuation&&this.push(new oe("w:overflowPunct",e.overflowPunctuation));const l=[...e.rightTabStop!==void 0?[{type:hs.RIGHT,position:e.rightTabStop}]:[],...e.tabStops?e.tabStops:[],...e.leftTabStop!==void 0?[{type:hs.LEFT,position:e.leftTabStop}]:[]];l.length>0&&this.push(new ol(l)),e.bidirectional!==void 0&&this.push(new oe("w:bidi",e.bidirectional)),e.spacing&&this.push(new al(e.spacing)),e.indent&&this.push(new Au(e.indent)),e.contextualSpacing!==void 0&&this.push(new oe("w:contextualSpacing",e.contextualSpacing)),e.alignment&&this.push(new Eu(e.alignment)),e.outlineLevel!==void 0&&this.push(new xl(e.outlineLevel)),e.suppressLineNumbers!==void 0&&this.push(new oe("w:suppressLineNumbers",e.suppressLineNumbers)),e.autoSpaceEastAsianText!==void 0&&this.push(new oe("w:autoSpaceDN",e.autoSpaceEastAsianText)),e.run&&this.push(new Ct(e.run))}push(e){this.root.push(e)}prepForXml(e){if(e.viewWrapper instanceof Ta)for(const r of this.numberingReferences)e.file.Numbering.createConcreteNumberingInstance(r.reference,r.instance);return super.prepForXml(e)}}class Wn extends hl{constructor(e){if(super("w:p"),ie(this,"properties"),typeof e=="string")return this.properties=new qt({}),this.root.push(this.properties),this.root.push(new fs(e)),this;if(this.properties=new qt(e),this.root.push(this.properties),e.text&&this.root.push(new fs(e.text)),e.children)for(const r of e.children){if(r instanceof _l){this.root.push(r.start);for(const a of r.children)this.root.push(a);this.root.push(r.end);continue}this.root.push(r)}}prepForXml(e){for(const r of this.root)if(r instanceof yl){const a=this.root.indexOf(r),l=new wl(r.options.children,Ju());e.viewWrapper.Relationships.createRelationship(l.linkId,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",r.options.link,pl.EXTERNAL),this.root[a]=l}return super.prepForXml(e)}addRunToFront(e){return this.root.splice(1,0,e),this}}const Ft={style:si.NONE,size:0,color:"auto"},Bt={style:si.SINGLE,size:4,color:"auto"};class Zl extends se{constructor(e){super("w:tblBorders"),e.top?this.root.push(new ke("w:top",e.top)):this.root.push(new ke("w:top",Bt)),e.left?this.root.push(new ke("w:left",e.left)):this.root.push(new ke("w:left",Bt)),e.bottom?this.root.push(new ke("w:bottom",e.bottom)):this.root.push(new ke("w:bottom",Bt)),e.right?this.root.push(new ke("w:right",e.right)):this.root.push(new ke("w:right",Bt)),e.insideHorizontal?this.root.push(new ke("w:insideH",e.insideHorizontal)):this.root.push(new ke("w:insideH",Bt)),e.insideVertical?this.root.push(new ke("w:insideV",e.insideVertical)):this.root.push(new ke("w:insideV",Bt))}}ie(Zl,"NONE",{top:Ft,bottom:Ft,left:Ft,right:Ft,insideHorizontal:Ft,insideVertical:Ft});class Ql extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{xmlns:"xmlns",vt:"xmlns:vt"})}}class Jl extends se{constructor(){super("Properties"),this.root.push(new Ql({xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"}))}}class $l extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{xmlns:"xmlns"})}}class ec extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{contentType:"ContentType",extension:"Extension"})}}class yt extends se{constructor(e,r){super("Default"),this.root.push(new ec({contentType:e,extension:r}))}}class tc extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{contentType:"ContentType",partName:"PartName"})}}class $e extends se{constructor(e,r){super("Override"),this.root.push(new tc({contentType:e,partName:r}))}}class rc extends se{constructor(){super("Types"),this.root.push(new $l({xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"})),this.root.push(new yt("image/png","png")),this.root.push(new yt("image/jpeg","jpeg")),this.root.push(new yt("image/jpeg","jpg")),this.root.push(new yt("image/bmp","bmp")),this.root.push(new yt("image/gif","gif")),this.root.push(new yt("application/vnd.openxmlformats-package.relationships+xml","rels")),this.root.push(new yt("application/xml","xml")),this.root.push(new yt("application/vnd.openxmlformats-officedocument.obfuscatedFont","odttf")),this.root.push(new $e("application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml","/word/document.xml")),this.root.push(new $e("application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml","/word/styles.xml")),this.root.push(new $e("application/vnd.openxmlformats-package.core-properties+xml","/docProps/core.xml")),this.root.push(new $e("application/vnd.openxmlformats-officedocument.custom-properties+xml","/docProps/custom.xml")),this.root.push(new $e("application/vnd.openxmlformats-officedocument.extended-properties+xml","/docProps/app.xml")),this.root.push(new $e("application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml","/word/numbering.xml")),this.root.push(new $e("application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml","/word/footnotes.xml")),this.root.push(new $e("application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml","/word/settings.xml")),this.root.push(new $e("application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml","/word/comments.xml")),this.root.push(new $e("application/vnd.openxmlformats-officedocument.wordprocessingml.fontTable+xml","/word/fontTable.xml"))}addFooter(e){this.root.push(new $e("application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml",`/word/footer${e}.xml`))}addHeader(e){this.root.push(new $e("application/vnd.openxmlformats-officedocument.wordprocessingml.header+xml",`/word/header${e}.xml`))}}class nc extends se{constructor(e){super("cp:coreProperties"),this.root.push(new ur({cp:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",xsi:"http://www.w3.org/2001/XMLSchema-instance"})),e.title&&this.root.push(new At("dc:title",e.title)),e.subject&&this.root.push(new At("dc:subject",e.subject)),e.creator&&this.root.push(new At("dc:creator",e.creator)),e.keywords&&this.root.push(new At("cp:keywords",e.keywords)),e.description&&this.root.push(new At("dc:description",e.description)),e.lastModifiedBy&&this.root.push(new At("cp:lastModifiedBy",e.lastModifiedBy)),e.revision&&this.root.push(new At("cp:revision",String(e.revision))),this.root.push(new gs("dcterms:created")),this.root.push(new gs("dcterms:modified"))}}class gs extends se{constructor(e){super(e),this.root.push(new ur({type:"dcterms:W3CDTF"})),this.root.push(bu(new Date))}}class ic extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{xmlns:"xmlns",vt:"xmlns:vt"})}}class sc extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{fmtid:"fmtid",pid:"pid",name:"name"})}}class ac extends se{constructor(e,r){super("property"),this.root.push(new sc({fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:e.toString(),name:r.name})),this.root.push(new oc(r.value))}}class oc extends se{constructor(e){super("vt:lpwstr"),this.root.push(e)}}class uc extends se{constructor(e){super("Properties"),ie(this,"nextId"),ie(this,"properties",[]),this.root.push(new ic({xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"})),this.nextId=2;for(const r of e)this.addCustomProperty(r)}prepForXml(e){return this.properties.forEach(r=>this.root.push(r)),super.prepForXml(e)}addCustomProperty(e){this.properties.push(new ac(this.nextId++,e))}}class lc extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",cp:"xmlns:cp",dc:"xmlns:dc",dcterms:"xmlns:dcterms",dcmitype:"xmlns:dcmitype",xsi:"xmlns:xsi",type:"xsi:type"})}}let cc=class extends ma{constructor(e,r){super("w:ftr",r),ie(this,"refId"),this.refId=e,r||this.root.push(new lc({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape"}))}get ReferenceId(){return this.refId}add(e){this.root.push(e)}};class fc{constructor(e,r,a){ie(this,"footer"),ie(this,"relationships"),this.media=e,this.footer=new cc(r,a),this.relationships=new Zt}add(e){this.footer.add(e)}addChildElement(e){this.footer.addChildElement(e)}get View(){return this.footer}get Relationships(){return this.relationships}get Media(){return this.media}}class hc extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{type:"w:type",id:"w:id"})}}class dc extends se{constructor(){super("w:footnoteRef")}}class pc extends Pr{constructor(){super({style:"FootnoteReference"}),this.root.push(new dc)}}const ws={SEPERATOR:"separator",CONTINUATION_SEPERATOR:"continuationSeparator"};class Dn extends se{constructor(e){super("w:footnote"),this.root.push(new hc({type:e.type,id:e.id}));for(let r=0;r9)throw new Error("Level cannot be greater than 9. Read more here: https://answers.microsoft.com/en-us/msoffice/forum/all/does-word-support-more-than-9-list-levels/d130fdcd-1781-446d-8c84-c6c79124e4d7");this.root.push(new Ac({ilvl:Ge(e),tentative:1}))}}class Dc extends Cc{}class Pc extends se{constructor(e){super("w:multiLevelType"),this.root.push(new Ce({val:e}))}}class Lc extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{abstractNumId:"w:abstractNumId",restartNumberingAfterBreak:"w15:restartNumberingAfterBreak"})}}class ys extends se{constructor(e,r){super("w:abstractNum"),ie(this,"id"),this.root.push(new Lc({abstractNumId:Ge(e),restartNumberingAfterBreak:0})),this.root.push(new Pc("hybridMultilevel")),this.id=e;for(const a of r)this.root.push(new Dc(a))}}class Fc extends se{constructor(e){super("w:abstractNumId"),this.root.push(new Ce({val:e}))}}class Bc extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{numId:"w:numId"})}}class vs extends se{constructor(e){if(super("w:num"),ie(this,"numId"),ie(this,"reference"),ie(this,"instance"),this.numId=e.numId,this.reference=e.reference,this.instance=e.instance,this.root.push(new Bc({numId:Ge(e.numId)})),this.root.push(new Fc(Ge(e.abstractNumId))),e.overrideLevels&&e.overrideLevels.length)for(const r of e.overrideLevels)this.root.push(new Uc(r.num,r.start))}}class Mc extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{ilvl:"w:ilvl"})}}class Uc extends se{constructor(e,r){super("w:lvlOverride"),this.root.push(new Mc({ilvl:e})),r!==void 0&&this.root.push(new Wc(r))}}class jc extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{val:"w:val"})}}class Wc extends se{constructor(e){super("w:startOverride"),this.root.push(new jc({val:e}))}}class zc extends se{constructor(e){super("w:numbering"),ie(this,"abstractNumberingMap",new Map),ie(this,"concreteNumberingMap",new Map),ie(this,"referenceConfigMap",new Map),ie(this,"abstractNumUniqueNumericId",Yu()),ie(this,"concreteNumUniqueNumericId",Zu()),this.root.push(new ur({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",Ignorable:"w14 w15 wp14"}));const r=new ys(this.abstractNumUniqueNumericId(),[{level:0,format:dt.BULLET,text:"●",alignment:ut.LEFT,style:{paragraph:{indent:{left:st(.5),hanging:st(.25)}}}},{level:1,format:dt.BULLET,text:"○",alignment:ut.LEFT,style:{paragraph:{indent:{left:st(1),hanging:st(.25)}}}},{level:2,format:dt.BULLET,text:"■",alignment:ut.LEFT,style:{paragraph:{indent:{left:2160,hanging:st(.25)}}}},{level:3,format:dt.BULLET,text:"●",alignment:ut.LEFT,style:{paragraph:{indent:{left:2880,hanging:st(.25)}}}},{level:4,format:dt.BULLET,text:"○",alignment:ut.LEFT,style:{paragraph:{indent:{left:3600,hanging:st(.25)}}}},{level:5,format:dt.BULLET,text:"■",alignment:ut.LEFT,style:{paragraph:{indent:{left:4320,hanging:st(.25)}}}},{level:6,format:dt.BULLET,text:"●",alignment:ut.LEFT,style:{paragraph:{indent:{left:5040,hanging:st(.25)}}}},{level:7,format:dt.BULLET,text:"●",alignment:ut.LEFT,style:{paragraph:{indent:{left:5760,hanging:st(.25)}}}},{level:8,format:dt.BULLET,text:"●",alignment:ut.LEFT,style:{paragraph:{indent:{left:6480,hanging:st(.25)}}}}]);this.concreteNumberingMap.set("default-bullet-numbering",new vs({numId:1,abstractNumId:r.id,reference:"default-bullet-numbering",instance:0,overrideLevels:[{num:0,start:1}]})),this.abstractNumberingMap.set("default-bullet-numbering",r);for(const a of e.config)this.abstractNumberingMap.set(a.reference,new ys(this.abstractNumUniqueNumericId(),a.levels)),this.referenceConfigMap.set(a.reference,a.levels)}prepForXml(e){for(const r of this.abstractNumberingMap.values())this.root.push(r);for(const r of this.concreteNumberingMap.values())this.root.push(r);return super.prepForXml(e)}createConcreteNumberingInstance(e,r){const a=this.abstractNumberingMap.get(e);if(!a)return;const l=`${e}-${r}`;if(this.concreteNumberingMap.has(l))return;const u=this.referenceConfigMap.get(e),o=u&&u[0].start,i={numId:this.concreteNumUniqueNumericId(),abstractNumId:a.id,reference:e,instance:r,overrideLevels:[o&&Number.isInteger(o)?{num:0,start:o}:{num:0,start:1}]};this.concreteNumberingMap.set(l,new vs(i))}get ConcreteNumbering(){return Array.from(this.concreteNumberingMap.values())}get ReferenceConfig(){return Array.from(this.referenceConfigMap.values())}}class Hc extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{version:"w:val",name:"w:name",uri:"w:uri"})}}class Gc extends se{constructor(e){super("w:compatSetting"),this.root.push(new Hc({version:e,uri:"http://schemas.microsoft.com/office/word",name:"compatibilityMode"}))}}class Kc extends se{constructor(e){super("w:compat"),e.version&&this.root.push(new Gc(e.version)),e.useSingleBorderforContiguousCells&&this.root.push(new oe("w:useSingleBorderforContiguousCells",e.useSingleBorderforContiguousCells)),e.wordPerfectJustification&&this.root.push(new oe("w:wpJustification",e.wordPerfectJustification)),e.noTabStopForHangingIndent&&this.root.push(new oe("w:noTabHangInd",e.noTabStopForHangingIndent)),e.noLeading&&this.root.push(new oe("w:noLeading",e.noLeading)),e.spaceForUnderline&&this.root.push(new oe("w:spaceForUL",e.spaceForUnderline)),e.noColumnBalance&&this.root.push(new oe("w:noColumnBalance",e.noColumnBalance)),e.balanceSingleByteDoubleByteWidth&&this.root.push(new oe("w:balanceSingleByteDoubleByteWidth",e.balanceSingleByteDoubleByteWidth)),e.noExtraLineSpacing&&this.root.push(new oe("w:noExtraLineSpacing",e.noExtraLineSpacing)),e.doNotLeaveBackslashAlone&&this.root.push(new oe("w:doNotLeaveBackslashAlone",e.doNotLeaveBackslashAlone)),e.underlineTrailingSpaces&&this.root.push(new oe("w:ulTrailSpace",e.underlineTrailingSpaces)),e.doNotExpandShiftReturn&&this.root.push(new oe("w:doNotExpandShiftReturn",e.doNotExpandShiftReturn)),e.spacingInWholePoints&&this.root.push(new oe("w:spacingInWholePoints",e.spacingInWholePoints)),e.lineWrapLikeWord6&&this.root.push(new oe("w:lineWrapLikeWord6",e.lineWrapLikeWord6)),e.printBodyTextBeforeHeader&&this.root.push(new oe("w:printBodyTextBeforeHeader",e.printBodyTextBeforeHeader)),e.printColorsBlack&&this.root.push(new oe("w:printColBlack",e.printColorsBlack)),e.spaceWidth&&this.root.push(new oe("w:wpSpaceWidth",e.spaceWidth)),e.showBreaksInFrames&&this.root.push(new oe("w:showBreaksInFrames",e.showBreaksInFrames)),e.subFontBySize&&this.root.push(new oe("w:subFontBySize",e.subFontBySize)),e.suppressBottomSpacing&&this.root.push(new oe("w:suppressBottomSpacing",e.suppressBottomSpacing)),e.suppressTopSpacing&&this.root.push(new oe("w:suppressTopSpacing",e.suppressTopSpacing)),e.suppressSpacingAtTopOfPage&&this.root.push(new oe("w:suppressSpacingAtTopOfPage",e.suppressSpacingAtTopOfPage)),e.suppressTopSpacingWP&&this.root.push(new oe("w:suppressTopSpacingWP",e.suppressTopSpacingWP)),e.suppressSpBfAfterPgBrk&&this.root.push(new oe("w:suppressSpBfAfterPgBrk",e.suppressSpBfAfterPgBrk)),e.swapBordersFacingPages&&this.root.push(new oe("w:swapBordersFacingPages",e.swapBordersFacingPages)),e.convertMailMergeEsc&&this.root.push(new oe("w:convMailMergeEsc",e.convertMailMergeEsc)),e.truncateFontHeightsLikeWP6&&this.root.push(new oe("w:truncateFontHeightsLikeWP6",e.truncateFontHeightsLikeWP6)),e.macWordSmallCaps&&this.root.push(new oe("w:mwSmallCaps",e.macWordSmallCaps)),e.usePrinterMetrics&&this.root.push(new oe("w:usePrinterMetrics",e.usePrinterMetrics)),e.doNotSuppressParagraphBorders&&this.root.push(new oe("w:doNotSuppressParagraphBorders",e.doNotSuppressParagraphBorders)),e.wrapTrailSpaces&&this.root.push(new oe("w:wrapTrailSpaces",e.wrapTrailSpaces)),e.footnoteLayoutLikeWW8&&this.root.push(new oe("w:footnoteLayoutLikeWW8",e.footnoteLayoutLikeWW8)),e.shapeLayoutLikeWW8&&this.root.push(new oe("w:shapeLayoutLikeWW8",e.shapeLayoutLikeWW8)),e.alignTablesRowByRow&&this.root.push(new oe("w:alignTablesRowByRow",e.alignTablesRowByRow)),e.forgetLastTabAlignment&&this.root.push(new oe("w:forgetLastTabAlignment",e.forgetLastTabAlignment)),e.adjustLineHeightInTable&&this.root.push(new oe("w:adjustLineHeightInTable",e.adjustLineHeightInTable)),e.autoSpaceLikeWord95&&this.root.push(new oe("w:autoSpaceLikeWord95",e.autoSpaceLikeWord95)),e.noSpaceRaiseLower&&this.root.push(new oe("w:noSpaceRaiseLower",e.noSpaceRaiseLower)),e.doNotUseHTMLParagraphAutoSpacing&&this.root.push(new oe("w:doNotUseHTMLParagraphAutoSpacing",e.doNotUseHTMLParagraphAutoSpacing)),e.layoutRawTableWidth&&this.root.push(new oe("w:layoutRawTableWidth",e.layoutRawTableWidth)),e.layoutTableRowsApart&&this.root.push(new oe("w:layoutTableRowsApart",e.layoutTableRowsApart)),e.useWord97LineBreakRules&&this.root.push(new oe("w:useWord97LineBreakRules",e.useWord97LineBreakRules)),e.doNotBreakWrappedTables&&this.root.push(new oe("w:doNotBreakWrappedTables",e.doNotBreakWrappedTables)),e.doNotSnapToGridInCell&&this.root.push(new oe("w:doNotSnapToGridInCell",e.doNotSnapToGridInCell)),e.selectFieldWithFirstOrLastCharacter&&this.root.push(new oe("w:selectFldWithFirstOrLastChar",e.selectFieldWithFirstOrLastCharacter)),e.applyBreakingRules&&this.root.push(new oe("w:applyBreakingRules",e.applyBreakingRules)),e.doNotWrapTextWithPunctuation&&this.root.push(new oe("w:doNotWrapTextWithPunct",e.doNotWrapTextWithPunctuation)),e.doNotUseEastAsianBreakRules&&this.root.push(new oe("w:doNotUseEastAsianBreakRules",e.doNotUseEastAsianBreakRules)),e.useWord2002TableStyleRules&&this.root.push(new oe("w:useWord2002TableStyleRules",e.useWord2002TableStyleRules)),e.growAutofit&&this.root.push(new oe("w:growAutofit",e.growAutofit)),e.useFELayout&&this.root.push(new oe("w:useFELayout",e.useFELayout)),e.useNormalStyleForList&&this.root.push(new oe("w:useNormalStyleForList",e.useNormalStyleForList)),e.doNotUseIndentAsNumberingTabStop&&this.root.push(new oe("w:doNotUseIndentAsNumberingTabStop",e.doNotUseIndentAsNumberingTabStop)),e.useAlternateEastAsianLineBreakRules&&this.root.push(new oe("w:useAltKinsokuLineBreakRules",e.useAlternateEastAsianLineBreakRules)),e.allowSpaceOfSameStyleInTable&&this.root.push(new oe("w:allowSpaceOfSameStyleInTable",e.allowSpaceOfSameStyleInTable)),e.doNotSuppressIndentation&&this.root.push(new oe("w:doNotSuppressIndentation",e.doNotSuppressIndentation)),e.doNotAutofitConstrainedTables&&this.root.push(new oe("w:doNotAutofitConstrainedTables",e.doNotAutofitConstrainedTables)),e.autofitToFirstFixedWidthCell&&this.root.push(new oe("w:autofitToFirstFixedWidthCell",e.autofitToFirstFixedWidthCell)),e.underlineTabInNumberingList&&this.root.push(new oe("w:underlineTabInNumList",e.underlineTabInNumberingList)),e.displayHangulFixedWidth&&this.root.push(new oe("w:displayHangulFixedWidth",e.displayHangulFixedWidth)),e.splitPgBreakAndParaMark&&this.root.push(new oe("w:splitPgBreakAndParaMark",e.splitPgBreakAndParaMark)),e.doNotVerticallyAlignCellWithSp&&this.root.push(new oe("w:doNotVertAlignCellWithSp",e.doNotVerticallyAlignCellWithSp)),e.doNotBreakConstrainedForcedTable&&this.root.push(new oe("w:doNotBreakConstrainedForcedTable",e.doNotBreakConstrainedForcedTable)),e.ignoreVerticalAlignmentInTextboxes&&this.root.push(new oe("w:doNotVertAlignInTxbx",e.ignoreVerticalAlignmentInTextboxes)),e.useAnsiKerningPairs&&this.root.push(new oe("w:useAnsiKerningPairs",e.useAnsiKerningPairs)),e.cachedColumnBalance&&this.root.push(new oe("w:cachedColBalance",e.cachedColumnBalance))}}class Vc extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",Ignorable:"mc:Ignorable"})}}class qc extends se{constructor(e){var r,a,l,u;super("w:settings"),this.root.push(new Vc({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",Ignorable:"w14 w15 wp14"})),this.root.push(new oe("w:displayBackgroundShape",!0)),e.trackRevisions!==void 0&&this.root.push(new oe("w:trackRevisions",e.trackRevisions)),e.evenAndOddHeaders!==void 0&&this.root.push(new oe("w:evenAndOddHeaders",e.evenAndOddHeaders)),e.updateFields!==void 0&&this.root.push(new oe("w:updateFields",e.updateFields)),e.defaultTabStop!==void 0&&this.root.push(new ii("w:defaultTabStop",e.defaultTabStop)),this.root.push(new Kc(sr(Ee({},(r=e.compatibility)!=null?r:{}),{version:(u=(l=(a=e.compatibility)==null?void 0:a.version)!=null?l:e.compatibilityModeVersion)!=null?u:15})))}}class xa extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{val:"w:val"})}}class Xc extends se{constructor(e){super("w:name"),this.root.push(new xa({val:e}))}}class Yc extends se{constructor(e){super("w:uiPriority"),this.root.push(new xa({val:Ge(e)}))}}class Zc extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{type:"w:type",styleId:"w:styleId",default:"w:default",customStyle:"w:customStyle"})}}class Sa extends se{constructor(e,r){super("w:style"),this.root.push(new Zc(e)),r.name&&this.root.push(new Xc(r.name)),r.basedOn&&this.root.push(new Wt("w:basedOn",r.basedOn)),r.next&&this.root.push(new Wt("w:next",r.next)),r.link&&this.root.push(new Wt("w:link",r.link)),r.uiPriority!==void 0&&this.root.push(new Yc(r.uiPriority)),r.semiHidden!==void 0&&this.root.push(new oe("w:semiHidden",r.semiHidden)),r.unhideWhenUsed!==void 0&&this.root.push(new oe("w:unhideWhenUsed",r.unhideWhenUsed)),r.quickFormat!==void 0&&this.root.push(new oe("w:qFormat",r.quickFormat))}}class Lr extends Sa{constructor(e){super({type:"paragraph",styleId:e.id},e),ie(this,"paragraphProperties"),ie(this,"runProperties"),this.paragraphProperties=new qt(e.paragraph),this.runProperties=new Ct(e.run),this.root.push(this.paragraphProperties),this.root.push(this.runProperties)}}class Fr extends Sa{constructor(e){super({type:"character",styleId:e.id},Ee({uiPriority:99,unhideWhenUsed:!0},e)),ie(this,"runProperties"),this.runProperties=new Ct(e.run),this.root.push(this.runProperties)}}class bt extends Lr{constructor(e){super(Ee({basedOn:"Normal",next:"Normal",quickFormat:!0},e))}}class Qc extends bt{constructor(e){super(Ee({id:"Title",name:"Title"},e))}}class Jc extends bt{constructor(e){super(Ee({id:"Heading1",name:"Heading 1"},e))}}class $c extends bt{constructor(e){super(Ee({id:"Heading2",name:"Heading 2"},e))}}class ef extends bt{constructor(e){super(Ee({id:"Heading3",name:"Heading 3"},e))}}class tf extends bt{constructor(e){super(Ee({id:"Heading4",name:"Heading 4"},e))}}class rf extends bt{constructor(e){super(Ee({id:"Heading5",name:"Heading 5"},e))}}class nf extends bt{constructor(e){super(Ee({id:"Heading6",name:"Heading 6"},e))}}class sf extends bt{constructor(e){super(Ee({id:"Strong",name:"Strong"},e))}}class af extends Lr{constructor(e){super(Ee({id:"ListParagraph",name:"List Paragraph",basedOn:"Normal",quickFormat:!0},e))}}class of extends Lr{constructor(e){super(Ee({id:"FootnoteText",name:"footnote text",link:"FootnoteTextChar",basedOn:"Normal",uiPriority:99,semiHidden:!0,unhideWhenUsed:!0,paragraph:{spacing:{after:0,line:240,lineRule:jn.AUTO}},run:{size:20}},e))}}class uf extends Fr{constructor(e){super(Ee({id:"FootnoteReference",name:"footnote reference",basedOn:"DefaultParagraphFont",semiHidden:!0,run:{superScript:!0}},e))}}class lf extends Fr{constructor(e){super(Ee({id:"FootnoteTextChar",name:"Footnote Text Char",basedOn:"DefaultParagraphFont",link:"FootnoteText",semiHidden:!0,run:{size:20}},e))}}class cf extends Fr{constructor(e){super(Ee({id:"Hyperlink",name:"Hyperlink",basedOn:"DefaultParagraphFont",run:{color:"0563C1",underline:{type:_a.SINGLE}}},e))}}class zn extends se{constructor(e){if(super("w:styles"),e.initialStyles&&this.root.push(e.initialStyles),e.importedStyles)for(const r of e.importedStyles)this.root.push(r);if(e.paragraphStyles)for(const r of e.paragraphStyles)this.root.push(new Lr(r));if(e.characterStyles)for(const r of e.characterStyles)this.root.push(new Fr(r))}}class ff extends se{constructor(e){super("w:pPrDefault"),this.root.push(new qt(e))}}class hf extends se{constructor(e){super("w:rPrDefault"),this.root.push(new Ct(e))}}class df extends se{constructor(e){super("w:docDefaults"),ie(this,"runPropertiesDefaults"),ie(this,"paragraphPropertiesDefaults"),this.runPropertiesDefaults=new hf(e.run),this.paragraphPropertiesDefaults=new ff(e.paragraph),this.root.push(this.runPropertiesDefaults),this.root.push(this.paragraphPropertiesDefaults)}}class pf{newInstance(e){const r=pa.xml2js(e,{compact:!1});let a;for(const o of r.elements||[])o.name==="w:styles"&&(a=o);if(a===void 0)throw new Error("can not find styles element");const l=a.elements||[];return new zn({initialStyles:new gu(a.attributes),importedStyles:l.map(o=>ni(o))})}}class bs{newInstance(e={}){var r;return{initialStyles:new ur({mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",Ignorable:"w14 w15"}),importedStyles:[new df((r=e.document)!=null?r:{}),new Qc(Ee({run:{size:56}},e.title)),new Jc(Ee({run:{color:"2E74B5",size:32}},e.heading1)),new $c(Ee({run:{color:"2E74B5",size:26}},e.heading2)),new ef(Ee({run:{color:"1F4D78",size:24}},e.heading3)),new tf(Ee({run:{color:"2E74B5",italics:!0}},e.heading4)),new rf(Ee({run:{color:"2E74B5"}},e.heading5)),new nf(Ee({run:{color:"1F4D78"}},e.heading6)),new sf(Ee({run:{bold:!0}},e.strong)),new af(e.listParagraph||{}),new cf(e.hyperlink||{}),new uf(e.footnoteReference||{}),new of(e.footnoteText||{}),new lf(e.footnoteTextChar||{})]}}}const wr=({id:t,fontKey:e,subsetted:r},a)=>new vt({name:a,attributes:Ee({id:{key:"r:id",value:t}},e?{fontKey:{key:"w:fontKey",value:`{${e}}`}}:{}),children:[...r?[new oe("w:subsetted",r)]:[]]}),mf=({name:t,altName:e,panose1:r,charset:a,family:l,notTrueType:u,pitch:o,sig:i,embedRegular:c,embedBold:w,embedItalic:y,embedBoldItalic:x})=>new vt({name:"w:font",attributes:{name:{key:"w:name",value:t}},children:[...e?[tr("w:altName",e)]:[],...r?[tr("w:panose1",r)]:[],...a?[tr("w:charset",a)]:[],...l?[tr("w:family",l)]:[],...u?[new oe("w:notTrueType",u)]:[],...o?[tr("w:pitch",o)]:[],...i?[new vt({name:"w:sig",attributes:{usb0:{key:"w:usb0",value:i.usb0},usb1:{key:"w:usb1",value:i.usb1},usb2:{key:"w:usb2",value:i.usb2},usb3:{key:"w:usb3",value:i.usb3},csb0:{key:"w:csb0",value:i.csb0},csb1:{key:"w:csb1",value:i.csb1}}})]:[],...c?[wr(c,"w:embedRegular")]:[],...w?[wr(w,"w:embedBold")]:[],...y?[wr(y,"w:embedItalic")]:[],...x?[wr(x,"w:embedBoldItalic")]:[]]}),gf=({name:t,index:e,fontKey:r,characterSet:a})=>mf({name:t,sig:{usb0:"E0002AFF",usb1:"C000247B",usb2:"00000009",usb3:"00000000",csb0:"000001FF",csb1:"00000000"},charset:a,family:"auto",pitch:"variable",embedRegular:{fontKey:r,id:`rId${e}`}}),wf=t=>new vt({name:"w:fonts",attributes:{mc:{key:"xmlns:mc",value:"http://schemas.openxmlformats.org/markup-compatibility/2006"},r:{key:"xmlns:r",value:"http://schemas.openxmlformats.org/officeDocument/2006/relationships"},w:{key:"xmlns:w",value:"http://schemas.openxmlformats.org/wordprocessingml/2006/main"},w14:{key:"xmlns:w14",value:"http://schemas.microsoft.com/office/word/2010/wordml"},w15:{key:"xmlns:w15",value:"http://schemas.microsoft.com/office/word/2012/wordml"},w16cex:{key:"xmlns:w16cex",value:"http://schemas.microsoft.com/office/word/2018/wordml/cex"},w16cid:{key:"xmlns:w16cid",value:"http://schemas.microsoft.com/office/word/2016/wordml/cid"},w16:{key:"xmlns:w16",value:"http://schemas.microsoft.com/office/word/2018/wordml"},w16sdtdh:{key:"xmlns:w16sdtdh",value:"http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash"},w16se:{key:"xmlns:w16se",value:"http://schemas.microsoft.com/office/word/2015/wordml/symex"},Ignorable:{key:"mc:Ignorable",value:"w14 w15 w16se w16cid w16 w16cex w16sdtdh"}},children:t.map((e,r)=>gf({name:e.name,index:r+1,fontKey:e.fontKey}))});class yf{constructor(e){ie(this,"fontTable"),ie(this,"relationships"),ie(this,"fontOptionsWithKey",[]),this.options=e,this.fontOptionsWithKey=e.map(r=>sr(Ee({},r),{fontKey:$u()})),this.fontTable=wf(this.fontOptionsWithKey),this.relationships=new Zt;for(let r=0;re.header)}get Footers(){return this.footers.map(e=>e.footer)}get ContentTypes(){return this.contentTypes}get CustomProperties(){return this.customProperties}get AppProperties(){return this.appProperties}get FootNotes(){return this.footnotesWrapper}get Settings(){return this.settings}get Comments(){return this.comments}get FontTable(){return this.fontWrapper}}function yr(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Aa={exports:{}};(function(t,e){(function(r){t.exports=r()})(function(){return function r(a,l,u){function o(w,y){if(!l[w]){if(!a[w]){var x=typeof yr=="function"&&yr;if(!y&&x)return x(w,!0);if(i)return i(w,!0);var _=new Error("Cannot find module '"+w+"'");throw _.code="MODULE_NOT_FOUND",_}var p=l[w]={exports:{}};a[w][0].call(p.exports,function(T){var v=a[w][1][T];return o(v||T)},p,p.exports,r,a,l,u)}return l[w].exports}for(var i=typeof yr=="function"&&yr,c=0;c>2,p=(3&w)<<4|y>>4,T=1>6:64,v=2>4,y=(15&_)<<4|(p=i.indexOf(c.charAt(v++)))>>2,x=(3&p)<<6|(T=i.indexOf(c.charAt(v++))),S[E++]=w,p!==64&&(S[E++]=y),T!==64&&(S[E++]=x);return S}},{"./support":30,"./utils":32}],2:[function(r,a,l){var u=r("./external"),o=r("./stream/DataWorker"),i=r("./stream/Crc32Probe"),c=r("./stream/DataLengthProbe");function w(y,x,_,p,T){this.compressedSize=y,this.uncompressedSize=x,this.crc32=_,this.compression=p,this.compressedContent=T}w.prototype={getContentWorker:function(){var y=new o(u.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new c("data_length")),x=this;return y.on("end",function(){if(this.streamInfo.data_length!==x.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),y},getCompressedWorker:function(){return new o(u.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},w.createWorkerFrom=function(y,x,_){return y.pipe(new i).pipe(new c("uncompressedSize")).pipe(x.compressWorker(_)).pipe(new c("compressedSize")).withStreamInfo("compression",x)},a.exports=w},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(r,a,l){var u=r("./stream/GenericWorker");l.STORE={magic:"\0\0",compressWorker:function(){return new u("STORE compression")},uncompressWorker:function(){return new u("STORE decompression")}},l.DEFLATE=r("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(r,a,l){var u=r("./utils"),o=function(){for(var i,c=[],w=0;w<256;w++){i=w;for(var y=0;y<8;y++)i=1&i?3988292384^i>>>1:i>>>1;c[w]=i}return c}();a.exports=function(i,c){return i!==void 0&&i.length?u.getTypeOf(i)!=="string"?function(w,y,x,_){var p=o,T=_+x;w^=-1;for(var v=_;v>>8^p[255&(w^y[v])];return-1^w}(0|c,i,i.length,0):function(w,y,x,_){var p=o,T=_+x;w^=-1;for(var v=_;v>>8^p[255&(w^y.charCodeAt(v))];return-1^w}(0|c,i,i.length,0):0}},{"./utils":32}],5:[function(r,a,l){l.base64=!1,l.binary=!1,l.dir=!1,l.createFolders=!0,l.date=null,l.compression=null,l.compressionOptions=null,l.comment=null,l.unixPermissions=null,l.dosPermissions=null},{}],6:[function(r,a,l){var u=null;u=typeof Promise<"u"?Promise:r("lie"),a.exports={Promise:u}},{lie:37}],7:[function(r,a,l){var u=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",o=r("pako"),i=r("./utils"),c=r("./stream/GenericWorker"),w=u?"uint8array":"array";function y(x,_){c.call(this,"FlateWorker/"+x),this._pako=null,this._pakoAction=x,this._pakoOptions=_,this.meta={}}l.magic="\b\0",i.inherits(y,c),y.prototype.processChunk=function(x){this.meta=x.meta,this._pako===null&&this._createPako(),this._pako.push(i.transformTo(w,x.data),!1)},y.prototype.flush=function(){c.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},y.prototype.cleanUp=function(){c.prototype.cleanUp.call(this),this._pako=null},y.prototype._createPako=function(){this._pako=new o[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var x=this;this._pako.onData=function(_){x.push({data:_,meta:x.meta})}},l.compressWorker=function(x){return new y("Deflate",x)},l.uncompressWorker=function(){return new y("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(r,a,l){function u(p,T){var v,E="";for(v=0;v>>=8;return E}function o(p,T,v,E,d,S){var R,D,C=p.file,V=p.compression,H=S!==w.utf8encode,J=i.transformTo("string",S(C.name)),I=i.transformTo("string",w.utf8encode(C.name)),re=C.comment,ue=i.transformTo("string",S(re)),L=i.transformTo("string",w.utf8encode(re)),q=I.length!==C.name.length,A=L.length!==re.length,Z="",le="",Y="",de=C.dir,K=C.date,ce={crc32:0,compressedSize:0,uncompressedSize:0};T&&!v||(ce.crc32=p.crc32,ce.compressedSize=p.compressedSize,ce.uncompressedSize=p.uncompressedSize);var G=0;T&&(G|=8),H||!q&&!A||(G|=2048);var N=0,W=0;de&&(N|=16),d==="UNIX"?(W=798,N|=function($,j){var g=$;return $||(g=j?16893:33204),(65535&g)<<16}(C.unixPermissions,de)):(W=20,N|=function($){return 63&($||0)}(C.dosPermissions)),R=K.getUTCHours(),R<<=6,R|=K.getUTCMinutes(),R<<=5,R|=K.getUTCSeconds()/2,D=K.getUTCFullYear()-1980,D<<=4,D|=K.getUTCMonth()+1,D<<=5,D|=K.getUTCDate(),q&&(le=u(1,1)+u(y(J),4)+I,Z+="up"+u(le.length,2)+le),A&&(Y=u(1,1)+u(y(ue),4)+L,Z+="uc"+u(Y.length,2)+Y);var z="";return z+=` -\0`,z+=u(G,2),z+=V.magic,z+=u(R,2),z+=u(D,2),z+=u(ce.crc32,4),z+=u(ce.compressedSize,4),z+=u(ce.uncompressedSize,4),z+=u(J.length,2),z+=u(Z.length,2),{fileRecord:x.LOCAL_FILE_HEADER+z+J+Z,dirRecord:x.CENTRAL_FILE_HEADER+u(W,2)+z+u(ue.length,2)+"\0\0\0\0"+u(N,4)+u(E,4)+J+Z+ue}}var i=r("../utils"),c=r("../stream/GenericWorker"),w=r("../utf8"),y=r("../crc32"),x=r("../signature");function _(p,T,v,E){c.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=T,this.zipPlatform=v,this.encodeFileName=E,this.streamFiles=p,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}i.inherits(_,c),_.prototype.push=function(p){var T=p.meta.percent||0,v=this.entriesCount,E=this._sources.length;this.accumulate?this.contentBuffer.push(p):(this.bytesWritten+=p.data.length,c.prototype.push.call(this,{data:p.data,meta:{currentFile:this.currentFile,percent:v?(T+100*(v-E-1))/v:100}}))},_.prototype.openedSource=function(p){this.currentSourceOffset=this.bytesWritten,this.currentFile=p.file.name;var T=this.streamFiles&&!p.file.dir;if(T){var v=o(p,T,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:v.fileRecord,meta:{percent:0}})}else this.accumulate=!0},_.prototype.closedSource=function(p){this.accumulate=!1;var T=this.streamFiles&&!p.file.dir,v=o(p,T,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(v.dirRecord),T)this.push({data:function(E){return x.DATA_DESCRIPTOR+u(E.crc32,4)+u(E.compressedSize,4)+u(E.uncompressedSize,4)}(p),meta:{percent:100}});else for(this.push({data:v.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},_.prototype.flush=function(){for(var p=this.bytesWritten,T=0;T=this.index;c--)w=(w<<8)+this.byteAt(c);return this.index+=i,w},readString:function(i){return u.transformTo("string",this.readData(i))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var i=this.readInt(4);return new Date(Date.UTC(1980+(i>>25&127),(i>>21&15)-1,i>>16&31,i>>11&31,i>>5&63,(31&i)<<1))}},a.exports=o},{"../utils":32}],19:[function(r,a,l){var u=r("./Uint8ArrayReader");function o(i){u.call(this,i)}r("../utils").inherits(o,u),o.prototype.readData=function(i){this.checkOffset(i);var c=this.data.slice(this.zero+this.index,this.zero+this.index+i);return this.index+=i,c},a.exports=o},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(r,a,l){var u=r("./DataReader");function o(i){u.call(this,i)}r("../utils").inherits(o,u),o.prototype.byteAt=function(i){return this.data.charCodeAt(this.zero+i)},o.prototype.lastIndexOfSignature=function(i){return this.data.lastIndexOf(i)-this.zero},o.prototype.readAndCheckSignature=function(i){return i===this.readData(4)},o.prototype.readData=function(i){this.checkOffset(i);var c=this.data.slice(this.zero+this.index,this.zero+this.index+i);return this.index+=i,c},a.exports=o},{"../utils":32,"./DataReader":18}],21:[function(r,a,l){var u=r("./ArrayReader");function o(i){u.call(this,i)}r("../utils").inherits(o,u),o.prototype.readData=function(i){if(this.checkOffset(i),i===0)return new Uint8Array(0);var c=this.data.subarray(this.zero+this.index,this.zero+this.index+i);return this.index+=i,c},a.exports=o},{"../utils":32,"./ArrayReader":17}],22:[function(r,a,l){var u=r("../utils"),o=r("../support"),i=r("./ArrayReader"),c=r("./StringReader"),w=r("./NodeBufferReader"),y=r("./Uint8ArrayReader");a.exports=function(x){var _=u.getTypeOf(x);return u.checkSupport(_),_!=="string"||o.uint8array?_==="nodebuffer"?new w(x):o.uint8array?new y(u.transformTo("uint8array",x)):new i(u.transformTo("array",x)):new c(x)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(r,a,l){l.LOCAL_FILE_HEADER="PK",l.CENTRAL_FILE_HEADER="PK",l.CENTRAL_DIRECTORY_END="PK",l.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",l.ZIP64_CENTRAL_DIRECTORY_END="PK",l.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(r,a,l){var u=r("./GenericWorker"),o=r("../utils");function i(c){u.call(this,"ConvertWorker to "+c),this.destType=c}o.inherits(i,u),i.prototype.processChunk=function(c){this.push({data:o.transformTo(this.destType,c.data),meta:c.meta})},a.exports=i},{"../utils":32,"./GenericWorker":28}],25:[function(r,a,l){var u=r("./GenericWorker"),o=r("../crc32");function i(){u.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}r("../utils").inherits(i,u),i.prototype.processChunk=function(c){this.streamInfo.crc32=o(c.data,this.streamInfo.crc32||0),this.push(c)},a.exports=i},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(r,a,l){var u=r("../utils"),o=r("./GenericWorker");function i(c){o.call(this,"DataLengthProbe for "+c),this.propName=c,this.withStreamInfo(c,0)}u.inherits(i,o),i.prototype.processChunk=function(c){if(c){var w=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=w+c.data.length}o.prototype.processChunk.call(this,c)},a.exports=i},{"../utils":32,"./GenericWorker":28}],27:[function(r,a,l){var u=r("../utils"),o=r("./GenericWorker");function i(c){o.call(this,"DataWorker");var w=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,c.then(function(y){w.dataIsReady=!0,w.data=y,w.max=y&&y.length||0,w.type=u.getTypeOf(y),w.isPaused||w._tickAndRepeat()},function(y){w.error(y)})}u.inherits(i,o),i.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this.data=null},i.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,u.delay(this._tickAndRepeat,[],this)),!0)},i.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(u.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},i.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var c=null,w=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":c=this.data.substring(this.index,w);break;case"uint8array":c=this.data.subarray(this.index,w);break;case"array":case"nodebuffer":c=this.data.slice(this.index,w)}return this.index=w,this.push({data:c,meta:{percent:this.max?this.index/this.max*100:0}})},a.exports=i},{"../utils":32,"./GenericWorker":28}],28:[function(r,a,l){function u(o){this.name=o||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}u.prototype={push:function(o){this.emit("data",o)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(o){this.emit("error",o)}return!0},error:function(o){return!this.isFinished&&(this.isPaused?this.generatedError=o:(this.isFinished=!0,this.emit("error",o),this.previous&&this.previous.error(o),this.cleanUp()),!0)},on:function(o,i){return this._listeners[o].push(i),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(o,i){if(this._listeners[o])for(var c=0;c "+o:o}},a.exports=u},{}],29:[function(r,a,l){var u=r("../utils"),o=r("./ConvertWorker"),i=r("./GenericWorker"),c=r("../base64"),w=r("../support"),y=r("../external"),x=null;if(w.nodestream)try{x=r("../nodejs/NodejsStreamOutputAdapter")}catch{}function _(T,v){return new y.Promise(function(E,d){var S=[],R=T._internalType,D=T._outputType,C=T._mimeType;T.on("data",function(V,H){S.push(V),v&&v(H)}).on("error",function(V){S=[],d(V)}).on("end",function(){try{var V=function(H,J,I){switch(H){case"blob":return u.newBlob(u.transformTo("arraybuffer",J),I);case"base64":return c.encode(J);default:return u.transformTo(H,J)}}(D,function(H,J){var I,re=0,ue=null,L=0;for(I=0;I"u")l.blob=!1;else{var u=new ArrayBuffer(0);try{l.blob=new Blob([u],{type:"application/zip"}).size===0}catch{try{var o=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);o.append(u),l.blob=o.getBlob("application/zip").size===0}catch{l.blob=!1}}}try{l.nodestream=!!r("readable-stream").Readable}catch{l.nodestream=!1}},{"readable-stream":16}],31:[function(r,a,l){for(var u=r("./utils"),o=r("./support"),i=r("./nodejsUtils"),c=r("./stream/GenericWorker"),w=new Array(256),y=0;y<256;y++)w[y]=252<=y?6:248<=y?5:240<=y?4:224<=y?3:192<=y?2:1;w[254]=w[254]=1;function x(){c.call(this,"utf-8 decode"),this.leftOver=null}function _(){c.call(this,"utf-8 encode")}l.utf8encode=function(p){return o.nodebuffer?i.newBufferFrom(p,"utf-8"):function(T){var v,E,d,S,R,D=T.length,C=0;for(S=0;S>>6:(E<65536?v[R++]=224|E>>>12:(v[R++]=240|E>>>18,v[R++]=128|E>>>12&63),v[R++]=128|E>>>6&63),v[R++]=128|63&E);return v}(p)},l.utf8decode=function(p){return o.nodebuffer?u.transformTo("nodebuffer",p).toString("utf-8"):function(T){var v,E,d,S,R=T.length,D=new Array(2*R);for(v=E=0;v>10&1023,D[E++]=56320|1023&d)}return D.length!==E&&(D.subarray?D=D.subarray(0,E):D.length=E),u.applyFromCharCode(D)}(p=u.transformTo(o.uint8array?"uint8array":"array",p))},u.inherits(x,c),x.prototype.processChunk=function(p){var T=u.transformTo(o.uint8array?"uint8array":"array",p.data);if(this.leftOver&&this.leftOver.length){if(o.uint8array){var v=T;(T=new Uint8Array(v.length+this.leftOver.length)).set(this.leftOver,0),T.set(v,this.leftOver.length)}else T=this.leftOver.concat(T);this.leftOver=null}var E=function(S,R){var D;for((R=R||S.length)>S.length&&(R=S.length),D=R-1;0<=D&&(192&S[D])==128;)D--;return D<0||D===0?R:D+w[S[D]]>R?D:R}(T),d=T;E!==T.length&&(o.uint8array?(d=T.subarray(0,E),this.leftOver=T.subarray(E,T.length)):(d=T.slice(0,E),this.leftOver=T.slice(E,T.length))),this.push({data:l.utf8decode(d),meta:p.meta})},x.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:l.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},l.Utf8DecodeWorker=x,u.inherits(_,c),_.prototype.processChunk=function(p){this.push({data:l.utf8encode(p.data),meta:p.meta})},l.Utf8EncodeWorker=_},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(r,a,l){var u=r("./support"),o=r("./base64"),i=r("./nodejsUtils"),c=r("./external");function w(v){return v}function y(v,E){for(var d=0;d>8;this.dir=!!(16&this.externalFileAttributes),p==0&&(this.dosPermissions=63&this.externalFileAttributes),p==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var p=u(this.extraFields[1].value);this.uncompressedSize===o.MAX_VALUE_32BITS&&(this.uncompressedSize=p.readInt(8)),this.compressedSize===o.MAX_VALUE_32BITS&&(this.compressedSize=p.readInt(8)),this.localHeaderOffset===o.MAX_VALUE_32BITS&&(this.localHeaderOffset=p.readInt(8)),this.diskNumberStart===o.MAX_VALUE_32BITS&&(this.diskNumberStart=p.readInt(4))}},readExtraFields:function(p){var T,v,E,d=p.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});p.index+4>>6:(p<65536?_[E++]=224|p>>>12:(_[E++]=240|p>>>18,_[E++]=128|p>>>12&63),_[E++]=128|p>>>6&63),_[E++]=128|63&p);return _},l.buf2binstring=function(x){return y(x,x.length)},l.binstring2buf=function(x){for(var _=new u.Buf8(x.length),p=0,T=_.length;p>10&1023,S[T++]=56320|1023&v)}return y(S,T)},l.utf8border=function(x,_){var p;for((_=_||x.length)>x.length&&(_=x.length),p=_-1;0<=p&&(192&x[p])==128;)p--;return p<0||p===0?_:p+c[x[p]]>_?p:_}},{"./common":41}],43:[function(r,a,l){a.exports=function(u,o,i,c){for(var w=65535&u|0,y=u>>>16&65535|0,x=0;i!==0;){for(i-=x=2e3>>1:o>>>1;i[c]=o}return i}();a.exports=function(o,i,c,w){var y=u,x=w+c;o^=-1;for(var _=w;_>>8^y[255&(o^i[_])];return-1^o}},{}],46:[function(r,a,l){var u,o=r("../utils/common"),i=r("./trees"),c=r("./adler32"),w=r("./crc32"),y=r("./messages"),x=0,_=4,p=0,T=-2,v=-1,E=4,d=2,S=8,R=9,D=286,C=30,V=19,H=2*D+1,J=15,I=3,re=258,ue=re+I+1,L=42,q=113,A=1,Z=2,le=3,Y=4;function de(h,X){return h.msg=y[X],X}function K(h){return(h<<1)-(4h.avail_out&&(b=h.avail_out),b!==0&&(o.arraySet(h.output,X.pending_buf,X.pending_out,b,h.next_out),h.next_out+=b,X.pending_out+=b,h.total_out+=b,h.avail_out-=b,X.pending-=b,X.pending===0&&(X.pending_out=0))}function N(h,X){i._tr_flush_block(h,0<=h.block_start?h.block_start:-1,h.strstart-h.block_start,X),h.block_start=h.strstart,G(h.strm)}function W(h,X){h.pending_buf[h.pending++]=X}function z(h,X){h.pending_buf[h.pending++]=X>>>8&255,h.pending_buf[h.pending++]=255&X}function $(h,X){var b,n,s=h.max_chain_length,f=h.strstart,P=h.prev_length,U=h.nice_match,B=h.strstart>h.w_size-ue?h.strstart-(h.w_size-ue):0,te=h.window,ae=h.w_mask,ne=h.prev,fe=h.strstart+re,pe=te[f+P-1],me=te[f+P];h.prev_length>=h.good_match&&(s>>=2),U>h.lookahead&&(U=h.lookahead);do if(te[(b=X)+P]===me&&te[b+P-1]===pe&&te[b]===te[f]&&te[++b]===te[f+1]){f+=2,b++;do;while(te[++f]===te[++b]&&te[++f]===te[++b]&&te[++f]===te[++b]&&te[++f]===te[++b]&&te[++f]===te[++b]&&te[++f]===te[++b]&&te[++f]===te[++b]&&te[++f]===te[++b]&&fB&&--s!=0);return P<=h.lookahead?P:h.lookahead}function j(h){var X,b,n,s,f,P,U,B,te,ae,ne=h.w_size;do{if(s=h.window_size-h.lookahead-h.strstart,h.strstart>=ne+(ne-ue)){for(o.arraySet(h.window,h.window,ne,ne,0),h.match_start-=ne,h.strstart-=ne,h.block_start-=ne,X=b=h.hash_size;n=h.head[--X],h.head[X]=ne<=n?n-ne:0,--b;);for(X=b=ne;n=h.prev[--X],h.prev[X]=ne<=n?n-ne:0,--b;);s+=ne}if(h.strm.avail_in===0)break;if(P=h.strm,U=h.window,B=h.strstart+h.lookahead,te=s,ae=void 0,ae=P.avail_in,te=I)for(f=h.strstart-h.insert,h.ins_h=h.window[f],h.ins_h=(h.ins_h<=I&&(h.ins_h=(h.ins_h<=I)if(n=i._tr_tally(h,h.strstart-h.match_start,h.match_length-I),h.lookahead-=h.match_length,h.match_length<=h.max_lazy_match&&h.lookahead>=I){for(h.match_length--;h.strstart++,h.ins_h=(h.ins_h<=I&&(h.ins_h=(h.ins_h<=I&&h.match_length<=h.prev_length){for(s=h.strstart+h.lookahead-I,n=i._tr_tally(h,h.strstart-1-h.prev_match,h.prev_length-I),h.lookahead-=h.prev_length-1,h.prev_length-=2;++h.strstart<=s&&(h.ins_h=(h.ins_h<h.pending_buf_size-5&&(b=h.pending_buf_size-5);;){if(h.lookahead<=1){if(j(h),h.lookahead===0&&X===x)return A;if(h.lookahead===0)break}h.strstart+=h.lookahead,h.lookahead=0;var n=h.block_start+b;if((h.strstart===0||h.strstart>=n)&&(h.lookahead=h.strstart-n,h.strstart=n,N(h,!1),h.strm.avail_out===0)||h.strstart-h.block_start>=h.w_size-ue&&(N(h,!1),h.strm.avail_out===0))return A}return h.insert=0,X===_?(N(h,!0),h.strm.avail_out===0?le:Y):(h.strstart>h.block_start&&(N(h,!1),h.strm.avail_out),A)}),new M(4,4,8,4,g),new M(4,5,16,8,g),new M(4,6,32,32,g),new M(4,4,16,16,m),new M(8,16,32,32,m),new M(8,16,128,128,m),new M(8,32,128,256,m),new M(32,128,258,1024,m),new M(32,258,258,4096,m)],l.deflateInit=function(h,X){return Q(h,X,S,15,8,0)},l.deflateInit2=Q,l.deflateReset=O,l.deflateResetKeep=k,l.deflateSetHeader=function(h,X){return h&&h.state?h.state.wrap!==2?T:(h.state.gzhead=X,p):T},l.deflate=function(h,X){var b,n,s,f;if(!h||!h.state||5>8&255),W(n,n.gzhead.time>>16&255),W(n,n.gzhead.time>>24&255),W(n,n.level===9?2:2<=n.strategy||n.level<2?4:0),W(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(W(n,255&n.gzhead.extra.length),W(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(h.adler=w(h.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69):(W(n,0),W(n,0),W(n,0),W(n,0),W(n,0),W(n,n.level===9?2:2<=n.strategy||n.level<2?4:0),W(n,3),n.status=q);else{var P=S+(n.w_bits-8<<4)<<8;P|=(2<=n.strategy||n.level<2?0:n.level<6?1:n.level===6?2:3)<<6,n.strstart!==0&&(P|=32),P+=31-P%31,n.status=q,z(n,P),n.strstart!==0&&(z(n,h.adler>>>16),z(n,65535&h.adler)),h.adler=1}if(n.status===69)if(n.gzhead.extra){for(s=n.pending;n.gzindex<(65535&n.gzhead.extra.length)&&(n.pending!==n.pending_buf_size||(n.gzhead.hcrc&&n.pending>s&&(h.adler=w(h.adler,n.pending_buf,n.pending-s,s)),G(h),s=n.pending,n.pending!==n.pending_buf_size));)W(n,255&n.gzhead.extra[n.gzindex]),n.gzindex++;n.gzhead.hcrc&&n.pending>s&&(h.adler=w(h.adler,n.pending_buf,n.pending-s,s)),n.gzindex===n.gzhead.extra.length&&(n.gzindex=0,n.status=73)}else n.status=73;if(n.status===73)if(n.gzhead.name){s=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>s&&(h.adler=w(h.adler,n.pending_buf,n.pending-s,s)),G(h),s=n.pending,n.pending===n.pending_buf_size)){f=1;break}f=n.gzindexs&&(h.adler=w(h.adler,n.pending_buf,n.pending-s,s)),f===0&&(n.gzindex=0,n.status=91)}else n.status=91;if(n.status===91)if(n.gzhead.comment){s=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>s&&(h.adler=w(h.adler,n.pending_buf,n.pending-s,s)),G(h),s=n.pending,n.pending===n.pending_buf_size)){f=1;break}f=n.gzindexs&&(h.adler=w(h.adler,n.pending_buf,n.pending-s,s)),f===0&&(n.status=103)}else n.status=103;if(n.status===103&&(n.gzhead.hcrc?(n.pending+2>n.pending_buf_size&&G(h),n.pending+2<=n.pending_buf_size&&(W(n,255&h.adler),W(n,h.adler>>8&255),h.adler=0,n.status=q)):n.status=q),n.pending!==0){if(G(h),h.avail_out===0)return n.last_flush=-1,p}else if(h.avail_in===0&&K(X)<=K(b)&&X!==_)return de(h,-5);if(n.status===666&&h.avail_in!==0)return de(h,-5);if(h.avail_in!==0||n.lookahead!==0||X!==x&&n.status!==666){var U=n.strategy===2?function(B,te){for(var ae;;){if(B.lookahead===0&&(j(B),B.lookahead===0)){if(te===x)return A;break}if(B.match_length=0,ae=i._tr_tally(B,0,B.window[B.strstart]),B.lookahead--,B.strstart++,ae&&(N(B,!1),B.strm.avail_out===0))return A}return B.insert=0,te===_?(N(B,!0),B.strm.avail_out===0?le:Y):B.last_lit&&(N(B,!1),B.strm.avail_out===0)?A:Z}(n,X):n.strategy===3?function(B,te){for(var ae,ne,fe,pe,me=B.window;;){if(B.lookahead<=re){if(j(B),B.lookahead<=re&&te===x)return A;if(B.lookahead===0)break}if(B.match_length=0,B.lookahead>=I&&0B.lookahead&&(B.match_length=B.lookahead)}if(B.match_length>=I?(ae=i._tr_tally(B,1,B.match_length-I),B.lookahead-=B.match_length,B.strstart+=B.match_length,B.match_length=0):(ae=i._tr_tally(B,0,B.window[B.strstart]),B.lookahead--,B.strstart++),ae&&(N(B,!1),B.strm.avail_out===0))return A}return B.insert=0,te===_?(N(B,!0),B.strm.avail_out===0?le:Y):B.last_lit&&(N(B,!1),B.strm.avail_out===0)?A:Z}(n,X):u[n.level].func(n,X);if(U!==le&&U!==Y||(n.status=666),U===A||U===le)return h.avail_out===0&&(n.last_flush=-1),p;if(U===Z&&(X===1?i._tr_align(n):X!==5&&(i._tr_stored_block(n,0,0,!1),X===3&&(ce(n.head),n.lookahead===0&&(n.strstart=0,n.block_start=0,n.insert=0))),G(h),h.avail_out===0))return n.last_flush=-1,p}return X!==_?p:n.wrap<=0?1:(n.wrap===2?(W(n,255&h.adler),W(n,h.adler>>8&255),W(n,h.adler>>16&255),W(n,h.adler>>24&255),W(n,255&h.total_in),W(n,h.total_in>>8&255),W(n,h.total_in>>16&255),W(n,h.total_in>>24&255)):(z(n,h.adler>>>16),z(n,65535&h.adler)),G(h),0=b.w_size&&(f===0&&(ce(b.head),b.strstart=0,b.block_start=0,b.insert=0),te=new o.Buf8(b.w_size),o.arraySet(te,X,ae-b.w_size,b.w_size,0),X=te,ae=b.w_size),P=h.avail_in,U=h.next_in,B=h.input,h.avail_in=ae,h.next_in=0,h.input=X,j(b);b.lookahead>=I;){for(n=b.strstart,s=b.lookahead-(I-1);b.ins_h=(b.ins_h<>>=I=J>>>24,R-=I,(I=J>>>16&255)===0)Z[y++]=65535&J;else{if(!(16&I)){if(!(64&I)){J=D[(65535&J)+(S&(1<>>=I,R-=I),R<15&&(S+=A[c++]<>>=I=J>>>24,R-=I,!(16&(I=J>>>16&255))){if(!(64&I)){J=C[(65535&J)+(S&(1<>>=I,R-=I,(I=y-x)>3,S&=(1<<(R-=re<<3))-1,u.next_in=c,u.next_out=y,u.avail_in=c>>24&255)+(L>>>8&65280)+((65280&L)<<8)+((255&L)<<24)}function S(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new u.Buf16(320),this.work=new u.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function R(L){var q;return L&&L.state?(q=L.state,L.total_in=L.total_out=q.total=0,L.msg="",q.wrap&&(L.adler=1&q.wrap),q.mode=T,q.last=0,q.havedict=0,q.dmax=32768,q.head=null,q.hold=0,q.bits=0,q.lencode=q.lendyn=new u.Buf32(v),q.distcode=q.distdyn=new u.Buf32(E),q.sane=1,q.back=-1,_):p}function D(L){var q;return L&&L.state?((q=L.state).wsize=0,q.whave=0,q.wnext=0,R(L)):p}function C(L,q){var A,Z;return L&&L.state?(Z=L.state,q<0?(A=0,q=-q):(A=1+(q>>4),q<48&&(q&=15)),q&&(q<8||15=Y.wsize?(u.arraySet(Y.window,q,A-Y.wsize,Y.wsize,0),Y.wnext=0,Y.whave=Y.wsize):(Z<(le=Y.wsize-Y.wnext)&&(le=Z),u.arraySet(Y.window,q,A-Z,le,Y.wnext),(Z-=le)?(u.arraySet(Y.window,q,A-Z,Z,0),Y.wnext=Z,Y.whave=Y.wsize):(Y.wnext+=le,Y.wnext===Y.wsize&&(Y.wnext=0),Y.whave>>8&255,A.check=i(A.check,f,2,0),N=G=0,A.mode=2;break}if(A.flags=0,A.head&&(A.head.done=!1),!(1&A.wrap)||(((255&G)<<8)+(G>>8))%31){L.msg="incorrect header check",A.mode=30;break}if((15&G)!=8){L.msg="unknown compression method",A.mode=30;break}if(N-=4,h=8+(15&(G>>>=4)),A.wbits===0)A.wbits=h;else if(h>A.wbits){L.msg="invalid window size",A.mode=30;break}A.dmax=1<>8&1),512&A.flags&&(f[0]=255&G,f[1]=G>>>8&255,A.check=i(A.check,f,2,0)),N=G=0,A.mode=3;case 3:for(;N<32;){if(K===0)break e;K--,G+=Z[Y++]<>>8&255,f[2]=G>>>16&255,f[3]=G>>>24&255,A.check=i(A.check,f,4,0)),N=G=0,A.mode=4;case 4:for(;N<16;){if(K===0)break e;K--,G+=Z[Y++]<>8),512&A.flags&&(f[0]=255&G,f[1]=G>>>8&255,A.check=i(A.check,f,2,0)),N=G=0,A.mode=5;case 5:if(1024&A.flags){for(;N<16;){if(K===0)break e;K--,G+=Z[Y++]<>>8&255,A.check=i(A.check,f,2,0)),N=G=0}else A.head&&(A.head.extra=null);A.mode=6;case 6:if(1024&A.flags&&(K<($=A.length)&&($=K),$&&(A.head&&(h=A.head.extra_len-A.length,A.head.extra||(A.head.extra=new Array(A.head.extra_len)),u.arraySet(A.head.extra,Z,Y,$,h)),512&A.flags&&(A.check=i(A.check,Z,$,Y)),K-=$,Y+=$,A.length-=$),A.length))break e;A.length=0,A.mode=7;case 7:if(2048&A.flags){if(K===0)break e;for($=0;h=Z[Y+$++],A.head&&h&&A.length<65536&&(A.head.name+=String.fromCharCode(h)),h&&$>9&1,A.head.done=!0),L.adler=A.check=0,A.mode=12;break;case 10:for(;N<32;){if(K===0)break e;K--,G+=Z[Y++]<>>=7&N,N-=7&N,A.mode=27;break}for(;N<3;){if(K===0)break e;K--,G+=Z[Y++]<>>=1)){case 0:A.mode=14;break;case 1:if(re(A),A.mode=20,q!==6)break;G>>>=2,N-=2;break e;case 2:A.mode=17;break;case 3:L.msg="invalid block type",A.mode=30}G>>>=2,N-=2;break;case 14:for(G>>>=7&N,N-=7&N;N<32;){if(K===0)break e;K--,G+=Z[Y++]<>>16^65535)){L.msg="invalid stored block lengths",A.mode=30;break}if(A.length=65535&G,N=G=0,A.mode=15,q===6)break e;case 15:A.mode=16;case 16:if($=A.length){if(K<$&&($=K),ce<$&&($=ce),$===0)break e;u.arraySet(le,Z,Y,$,de),K-=$,Y+=$,ce-=$,de+=$,A.length-=$;break}A.mode=12;break;case 17:for(;N<14;){if(K===0)break e;K--,G+=Z[Y++]<>>=5,N-=5,A.ndist=1+(31&G),G>>>=5,N-=5,A.ncode=4+(15&G),G>>>=4,N-=4,286>>=3,N-=3}for(;A.have<19;)A.lens[P[A.have++]]=0;if(A.lencode=A.lendyn,A.lenbits=7,b={bits:A.lenbits},X=w(0,A.lens,0,19,A.lencode,0,A.work,b),A.lenbits=b.bits,X){L.msg="invalid code lengths set",A.mode=30;break}A.have=0,A.mode=19;case 19:for(;A.have>>16&255,F=65535&s,!((m=s>>>24)<=N);){if(K===0)break e;K--,G+=Z[Y++]<>>=m,N-=m,A.lens[A.have++]=F;else{if(F===16){for(n=m+2;N>>=m,N-=m,A.have===0){L.msg="invalid bit length repeat",A.mode=30;break}h=A.lens[A.have-1],$=3+(3&G),G>>>=2,N-=2}else if(F===17){for(n=m+3;N>>=m)),G>>>=3,N-=3}else{for(n=m+7;N>>=m)),G>>>=7,N-=7}if(A.have+$>A.nlen+A.ndist){L.msg="invalid bit length repeat",A.mode=30;break}for(;$--;)A.lens[A.have++]=h}}if(A.mode===30)break;if(A.lens[256]===0){L.msg="invalid code -- missing end-of-block",A.mode=30;break}if(A.lenbits=9,b={bits:A.lenbits},X=w(y,A.lens,0,A.nlen,A.lencode,0,A.work,b),A.lenbits=b.bits,X){L.msg="invalid literal/lengths set",A.mode=30;break}if(A.distbits=6,A.distcode=A.distdyn,b={bits:A.distbits},X=w(x,A.lens,A.nlen,A.ndist,A.distcode,0,A.work,b),A.distbits=b.bits,X){L.msg="invalid distances set",A.mode=30;break}if(A.mode=20,q===6)break e;case 20:A.mode=21;case 21:if(6<=K&&258<=ce){L.next_out=de,L.avail_out=ce,L.next_in=Y,L.avail_in=K,A.hold=G,A.bits=N,c(L,z),de=L.next_out,le=L.output,ce=L.avail_out,Y=L.next_in,Z=L.input,K=L.avail_in,G=A.hold,N=A.bits,A.mode===12&&(A.back=-1);break}for(A.back=0;M=(s=A.lencode[G&(1<>>16&255,F=65535&s,!((m=s>>>24)<=N);){if(K===0)break e;K--,G+=Z[Y++]<>k)])>>>16&255,F=65535&s,!(k+(m=s>>>24)<=N);){if(K===0)break e;K--,G+=Z[Y++]<>>=k,N-=k,A.back+=k}if(G>>>=m,N-=m,A.back+=m,A.length=F,M===0){A.mode=26;break}if(32&M){A.back=-1,A.mode=12;break}if(64&M){L.msg="invalid literal/length code",A.mode=30;break}A.extra=15&M,A.mode=22;case 22:if(A.extra){for(n=A.extra;N>>=A.extra,N-=A.extra,A.back+=A.extra}A.was=A.length,A.mode=23;case 23:for(;M=(s=A.distcode[G&(1<>>16&255,F=65535&s,!((m=s>>>24)<=N);){if(K===0)break e;K--,G+=Z[Y++]<>k)])>>>16&255,F=65535&s,!(k+(m=s>>>24)<=N);){if(K===0)break e;K--,G+=Z[Y++]<>>=k,N-=k,A.back+=k}if(G>>>=m,N-=m,A.back+=m,64&M){L.msg="invalid distance code",A.mode=30;break}A.offset=F,A.extra=15&M,A.mode=24;case 24:if(A.extra){for(n=A.extra;N>>=A.extra,N-=A.extra,A.back+=A.extra}if(A.offset>A.dmax){L.msg="invalid distance too far back",A.mode=30;break}A.mode=25;case 25:if(ce===0)break e;if($=z-ce,A.offset>$){if(($=A.offset-$)>A.whave&&A.sane){L.msg="invalid distance too far back",A.mode=30;break}j=$>A.wnext?($-=A.wnext,A.wsize-$):A.wnext-$,$>A.length&&($=A.length),g=A.window}else g=le,j=de-A.offset,$=A.length;for(ce<$&&($=ce),ce-=$,A.length-=$;le[de++]=g[j++],--$;);A.length===0&&(A.mode=21);break;case 26:if(ce===0)break e;le[de++]=A.length,ce--,A.mode=21;break;case 27:if(A.wrap){for(;N<32;){if(K===0)break e;K--,G|=Z[Y++]<H?(I=j[g+E[q]],N[W+E[q]]):(I=96,0),S=1<>de)+(R-=S)]=J<<24|I<<16|re|0,R!==0;);for(S=1<>=1;if(S!==0?(G&=S-1,G+=S):G=0,q++,--z[L]==0){if(L===Z)break;L=x[_+E[q]]}if(le>>7)]}function W(s,f){s.pending_buf[s.pending++]=255&f,s.pending_buf[s.pending++]=f>>>8&255}function z(s,f,P){s.bi_valid>d-P?(s.bi_buf|=f<>d-s.bi_valid,s.bi_valid+=P-d):(s.bi_buf|=f<>>=1,P<<=1,0<--f;);return P>>>1}function g(s,f,P){var U,B,te=new Array(E+1),ae=0;for(U=1;U<=E;U++)te[U]=ae=ae+P[U-1]<<1;for(B=0;B<=f;B++){var ne=s[2*B+1];ne!==0&&(s[2*B]=j(te[ne]++,ne))}}function m(s){var f;for(f=0;f<_;f++)s.dyn_ltree[2*f]=0;for(f=0;f>1;1<=P;P--)k(s,te,P);for(B=fe;P=s.heap[1],s.heap[1]=s.heap[s.heap_len--],k(s,te,1),U=s.heap[1],s.heap[--s.heap_max]=P,s.heap[--s.heap_max]=U,te[2*B]=te[2*P]+te[2*U],s.depth[B]=(s.depth[P]>=s.depth[U]?s.depth[P]:s.depth[U])+1,te[2*P+1]=te[2*U+1]=B,s.heap[1]=B++,k(s,te,1),2<=s.heap_len;);s.heap[--s.heap_max]=s.heap[1],function(me,Be){var ot,Ke,_t,Ie,Dt,Pt,he=Be.dyn_tree,Ne=Be.max_code,Ve=Be.stat_desc.static_tree,Et=Be.stat_desc.has_stree,Tt=Be.stat_desc.extra_bits,wt=Be.stat_desc.extra_base,Je=Be.stat_desc.max_length,Me=0;for(Ie=0;Ie<=E;Ie++)me.bl_count[Ie]=0;for(he[2*me.heap[me.heap_max]+1]=0,ot=me.heap_max+1;ot>=7;B>>=1)if(1&pe&&ne.dyn_ltree[2*fe]!==0)return o;if(ne.dyn_ltree[18]!==0||ne.dyn_ltree[20]!==0||ne.dyn_ltree[26]!==0)return i;for(fe=32;fe>>3,(te=s.static_len+3+7>>>3)<=B&&(B=te)):B=te=P+5,P+4<=B&&f!==-1?n(s,f,P,U):s.strategy===4||te===B?(z(s,2+(U?1:0),3),O(s,ue,L)):(z(s,4+(U?1:0),3),function(ne,fe,pe,me){var Be;for(z(ne,fe-257,5),z(ne,pe-1,5),z(ne,me-4,4),Be=0;Be>>8&255,s.pending_buf[s.d_buf+2*s.last_lit+1]=255&f,s.pending_buf[s.l_buf+s.last_lit]=255&P,s.last_lit++,f===0?s.dyn_ltree[2*P]++:(s.matches++,f--,s.dyn_ltree[2*(A[P]+x+1)]++,s.dyn_dtree[2*N(f)]++),s.last_lit===s.lit_bufsize-1},l._tr_align=function(s){z(s,2,3),$(s,R,ue),function(f){f.bi_valid===16?(W(f,f.bi_buf),f.bi_buf=0,f.bi_valid=0):8<=f.bi_valid&&(f.pending_buf[f.pending++]=255&f.bi_buf,f.bi_buf>>=8,f.bi_valid-=8)}(s)}},{"../utils/common":41}],53:[function(r,a,l){a.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(r,a,l){(function(u){(function(o,i){if(!o.setImmediate){var c,w,y,x,_=1,p={},T=!1,v=o.document,E=Object.getPrototypeOf&&Object.getPrototypeOf(o);E=E&&E.setTimeout?E:o,c={}.toString.call(o.process)==="[object process]"?function(D){ve.nextTick(function(){S(D)})}:function(){if(o.postMessage&&!o.importScripts){var D=!0,C=o.onmessage;return o.onmessage=function(){D=!1},o.postMessage("","*"),o.onmessage=C,D}}()?(x="setImmediate$"+Math.random()+"$",o.addEventListener?o.addEventListener("message",R,!1):o.attachEvent("onmessage",R),function(D){o.postMessage(x+D,"*")}):o.MessageChannel?((y=new MessageChannel).port1.onmessage=function(D){S(D.data)},function(D){y.port2.postMessage(D)}):v&&"onreadystatechange"in v.createElement("script")?(w=v.documentElement,function(D){var C=v.createElement("script");C.onreadystatechange=function(){S(D),C.onreadystatechange=null,w.removeChild(C),C=null},w.appendChild(C)}):function(D){setTimeout(S,0,D)},E.setImmediate=function(D){typeof D!="function"&&(D=new Function(""+D));for(var C=new Array(arguments.length-1),V=0;V"u"?u===void 0?this:u:self)}).call(this,typeof ht<"u"?ht:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(Aa);var vf=Aa.exports;const bf=Ns(vf);var xr={exports:{}},_f={"&":"&",'"':""","'":"'","<":"<",">":">"};function Ef(t){return t&&t.replace?t.replace(/([&"<>'])/g,function(e,r){return _f[r]}):t}var Tf=Ef,Hn=Tf,_s=Jn.Stream,xf=" ";function Sf(t,e){typeof e!="object"&&(e={indent:e});var r=e.stream?new _s:null,a="",l=!1,u=e.indent?e.indent===!0?xf:e.indent:"",o=!0;function i(_){o?ve.nextTick(_):_()}function c(_,p){if(p!==void 0&&(a+=p),_&&!l&&(r=r||new _s,l=!0),_&&l){var T=a;i(function(){r.emit("data",T)}),a=""}}function w(_,p){li(c,Sr(_,u,u?1:0),p)}function y(){if(r){var _=a;i(function(){r.emit("data",_),r.emit("end"),r.readable=!1,r.emit("close")})}}function x(_){var p=_.encoding||"UTF-8",T={version:"1.0",encoding:p};_.standalone&&(T.standalone=_.standalone),w({"?xml":{_attr:T}}),a=a.replace("/>","?>")}return i(function(){o=!1}),e.declaration&&x(e.declaration),t&&t.forEach?t.forEach(function(_,p){var T;p+1===t.length&&(T=y),w(_,T)}):w(t,y),r?(r.readable=!0,r):a}function Af(){var t=Array.prototype.slice.call(arguments),e={_elem:Sr(t)};return e.push=function(r){if(!this.append)throw new Error("not assigned to a parent!");var a=this,l=this._elem.indent;li(this.append,Sr(r,l,this._elem.icount+(l?1:0)),function(){a.append(!0)})},e.close=function(r){r!==void 0&&this.push(r),this.end&&this.end()},e}function Rf(t,e){return new Array(e||0).join(t||"")}function Sr(t,e,r){r=r||0;var a=Rf(e,r),l,u=t,o=!1;if(typeof t=="object"){var i=Object.keys(t);if(l=i[0],u=t[l],u&&u._elem)return u._elem.name=l,u._elem.icount=r,u._elem.indent=e,u._elem.indents=a,u._elem.interrupt=u,u._elem}var c=[],w=[],y;function x(_){var p=Object.keys(_);p.forEach(function(T){c.push(If(T,_[T]))})}switch(typeof u){case"object":if(u===null)break;u._attr&&x(u._attr),u._cdata&&w.push(("/g,"]]]]>")+"]]>"),u.forEach&&(y=!1,w.push(""),u.forEach(function(_){if(typeof _=="object"){var p=Object.keys(_)[0];p=="_attr"?x(_._attr):w.push(Sr(_,e,r+1))}else w.pop(),y=!0,w.push(Hn(_))}),y||w.push(""));break;default:w.push(Hn(u))}return{name:l,interrupt:o,attributes:c,content:w,icount:r,indents:a,indent:e}}function li(t,e,r){if(typeof e!="object")return t(!1,e);var a=e.interrupt?1:e.content.length;function l(){for(;e.content.length;){var o=e.content.shift();if(o!==void 0){if(u(o))return;li(t,o)}}t(!1,(a>1?e.indents:"")+(e.name?"":"")+(e.indent&&!r?` -`:"")),r&&r()}function u(o){return o.interrupt?(o.interrupt.append=t,o.interrupt.end=l,o.interrupt=!1,t(!0),!0):!1}if(t(!1,e.indents+(e.name?"<"+e.name:"")+(e.attributes.length?" "+e.attributes.join(" "):"")+(a?e.name?">":"":e.name?"/>":"")+(e.indent&&a>1?` -`:"")),!a)return t(!1,e.indent?` -`:"");u(e)||l()}function If(t,e){return t+'="'+Hn(e)+'"'}xr.exports=Sf;xr.exports.element=xr.exports.Element=Af;var kf=xr.exports;const Oe=Ns(kf),Es=0,Ts=32,Nf=32,Of=(t,e)=>{const r=e.replace(/-/g,"");if(r.length!==Nf)throw new Error(`Error: Cannot extract GUID from font filename: ${e}`);const l=r.replace(/(..)/g,"$1 ").trim().split(" ").map(c=>parseInt(c,16));l.reverse();const o=t.slice(Es,Ts).map((c,w)=>c^l[w%l.length]);return Buffer.concat([t.slice(0,Es),o,t.slice(Ts)])};class Cf{format(e,r={stack:[]}){const a=e.prepForXml(r);if(a)return a;throw Error("XMLComponent did not format correctly")}}class Df{replace(e,r,a){let l=e;return r.forEach((u,o)=>{l=l.replace(new RegExp(`{${u.fileName}}`,"g"),(a+o).toString())}),l}getMediaData(e,r){return r.Array.filter(a=>e.search(`{${a.fileName}}`)>0)}}class Pf{replace(e,r){let a=e;for(const l of r)a=a.replace(new RegExp(`{${l.reference}-${l.instance}}`,"g"),l.numId.toString());return a}}class Lf{constructor(){ie(this,"formatter"),ie(this,"imageReplacer"),ie(this,"numberingReplacer"),this.formatter=new Cf,this.imageReplacer=new Df,this.numberingReplacer=new Pf}compile(e,r){const a=new bf,l=this.xmlifyFile(e,r),u=new Map(Object.entries(l));for(const[,o]of u)if(Array.isArray(o))for(const i of o)a.file(i.path,i.data);else a.file(o.path,o.data);for(const{stream:o,fileName:i}of e.Media.Array)a.file(`word/media/${i}`,o);for(const{data:o,name:i,fontKey:c}of e.FontTable.fontOptionsWithKey){const[w]=i.split(".");a.file(`word/fonts/${w}.odttf`,Of(o,c))}return a}xmlifyFile(e,r){const a=e.Document.Relationships.RelationshipCount+1,l=Oe(this.formatter.format(e.Document.View,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),u=this.imageReplacer.getMediaData(l,e.Media);return{Relationships:{data:(u.forEach((o,i)=>{e.Document.Relationships.createRelationship(a+i,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${o.fileName}`)}),Oe(this.formatter.format(e.Document.Relationships,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}})),path:"word/_rels/document.xml.rels"},Document:{data:(()=>{const o=this.imageReplacer.replace(l,u,a);return this.numberingReplacer.replace(o,e.Numbering.ConcreteNumbering)})(),path:"word/document.xml"},Styles:{data:(()=>{const o=Oe(this.formatter.format(e.Styles,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}});return this.numberingReplacer.replace(o,e.Numbering.ConcreteNumbering)})(),path:"word/styles.xml"},Properties:{data:Oe(this.formatter.format(e.CoreProperties,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/core.xml"},Numbering:{data:Oe(this.formatter.format(e.Numbering,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/numbering.xml"},FileRelationships:{data:Oe(this.formatter.format(e.FileRelationships,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),path:"_rels/.rels"},HeaderRelationships:e.Headers.map((o,i)=>{const c=Oe(this.formatter.format(o.View,{viewWrapper:o,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}});return this.imageReplacer.getMediaData(c,e.Media).forEach((y,x)=>{o.Relationships.createRelationship(x,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${y.fileName}`)}),{data:Oe(this.formatter.format(o.Relationships,{viewWrapper:o,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),path:`word/_rels/header${i+1}.xml.rels`}}),FooterRelationships:e.Footers.map((o,i)=>{const c=Oe(this.formatter.format(o.View,{viewWrapper:o,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}});return this.imageReplacer.getMediaData(c,e.Media).forEach((y,x)=>{o.Relationships.createRelationship(x,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${y.fileName}`)}),{data:Oe(this.formatter.format(o.Relationships,{viewWrapper:o,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),path:`word/_rels/footer${i+1}.xml.rels`}}),Headers:e.Headers.map((o,i)=>{const c=Oe(this.formatter.format(o.View,{viewWrapper:o,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),w=this.imageReplacer.getMediaData(c,e.Media),y=this.imageReplacer.replace(c,w,0);return{data:this.numberingReplacer.replace(y,e.Numbering.ConcreteNumbering),path:`word/header${i+1}.xml`}}),Footers:e.Footers.map((o,i)=>{const c=Oe(this.formatter.format(o.View,{viewWrapper:o,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),w=this.imageReplacer.getMediaData(c,e.Media),y=this.imageReplacer.replace(c,w,0);return{data:this.numberingReplacer.replace(y,e.Numbering.ConcreteNumbering),path:`word/footer${i+1}.xml`}}),ContentTypes:{data:Oe(this.formatter.format(e.ContentTypes,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),path:"[Content_Types].xml"},CustomProperties:{data:Oe(this.formatter.format(e.CustomProperties,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/custom.xml"},AppProperties:{data:Oe(this.formatter.format(e.AppProperties,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/app.xml"},FootNotes:{data:Oe(this.formatter.format(e.FootNotes.View,{viewWrapper:e.FootNotes,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),path:"word/footnotes.xml"},FootNotesRelationships:{data:Oe(this.formatter.format(e.FootNotes.Relationships,{viewWrapper:e.FootNotes,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),path:"word/_rels/footnotes.xml.rels"},Settings:{data:Oe(this.formatter.format(e.Settings,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/settings.xml"},Comments:{data:Oe(this.formatter.format(e.Comments,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/comments.xml"},FontTable:{data:Oe(this.formatter.format(e.FontTable.View,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/fontTable.xml"},FontTableRelationships:{data:Oe(this.formatter.format(e.FontTable.Relationships,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),path:"word/_rels/fontTable.xml.rels"}}}}const Ff={NONE:"",WITH_2_BLANKS:" ",WITH_4_BLANKS:" ",WITH_TAB:" "},nr=t=>t===!0?Ff.WITH_2_BLANKS:t===!1?void 0:t;class Bf{static toString(e,r){return lr(this,null,function*(){return yield this.compiler.compile(e,nr(r)).generateAsync({type:"string",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})})}static toBuffer(e,r){return lr(this,null,function*(){return yield this.compiler.compile(e,nr(r)).generateAsync({type:"nodebuffer",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})})}static toBase64String(e,r){return lr(this,null,function*(){return yield this.compiler.compile(e,nr(r)).generateAsync({type:"base64",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})})}static toBlob(e,r){return lr(this,null,function*(){return yield this.compiler.compile(e,nr(r)).generateAsync({type:"blob",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})})}static toStream(e,r){const a=new Jn.Stream;return this.compiler.compile(e,nr(r)).generateAsync({type:"nodebuffer",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"}).then(u=>{a.emit("data",u),a.emit("end")}),a}}ie(Bf,"compiler",new Lf);var Ra={exports:{}};(function(t,e){(function(r,a){a()})(Jt,function(){function r(w,y){return typeof y>"u"?y={autoBom:!1}:typeof y!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),y={autoBom:!y}),y.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(w.type)?new Blob(["\uFEFF",w],{type:w.type}):w}function a(w,y,x){var _=new XMLHttpRequest;_.open("GET",w),_.responseType="blob",_.onload=function(){c(_.response,y,x)},_.onerror=function(){console.error("could not download file")},_.send()}function l(w){var y=new XMLHttpRequest;y.open("HEAD",w,!1);try{y.send()}catch{}return 200<=y.status&&299>=y.status}function u(w){try{w.dispatchEvent(new MouseEvent("click"))}catch{var y=document.createEvent("MouseEvents");y.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),w.dispatchEvent(y)}}var o=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof Jt=="object"&&Jt.global===Jt?Jt:void 0,i=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),c=o.saveAs||(typeof window!="object"||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!i?function(w,y,x){var _=o.URL||o.webkitURL,p=document.createElement("a");y=y||w.name||"download",p.download=y,p.rel="noopener",typeof w=="string"?(p.href=w,p.origin===location.origin?u(p):l(p.href)?a(w,y,x):u(p,p.target="_blank")):(p.href=_.createObjectURL(w),setTimeout(function(){_.revokeObjectURL(p.href)},4e4),setTimeout(function(){u(p)},0))}:"msSaveOrOpenBlob"in navigator?function(w,y,x){if(y=y||w.name||"download",typeof w!="string")navigator.msSaveOrOpenBlob(r(w,x),y);else if(l(w))a(w,y,x);else{var _=document.createElement("a");_.href=w,_.target="_blank",setTimeout(function(){u(_)})}}:function(w,y,x,_){if(_=_||open("","_blank"),_&&(_.document.title=_.document.body.innerText="downloading..."),typeof w=="string")return a(w,y,x);var p=w.type==="application/octet-stream",T=/constructor/i.test(o.HTMLElement)||o.safari,v=/CriOS\/[\d]+/.test(navigator.userAgent);if((v||p&&T||i)&&typeof FileReader<"u"){var E=new FileReader;E.onloadend=function(){var R=E.result;R=v?R:R.replace(/^data:[^;]*;/,"data:attachment/file;"),_?_.location.href=R:location=R,_=null},E.readAsDataURL(w)}else{var d=o.URL||o.webkitURL,S=d.createObjectURL(w);_?_.location=S:location.href=S,_=null,setTimeout(function(){d.revokeObjectURL(S)},4e4)}});o.saveAs=c.saveAs=c,t.exports=c})})(Ra);var Mf=Ra.exports;const ph=Ca(Mf);function Uf(t){let e;return{c(){e=xe("i"),this.h()},l(r){e=Se(r,"I",{class:!0}),Pe(e).forEach(_e),this.h()},h(){ye(e,"class","fa-solid fa-glasses")},m(r,a){He(r,e,a)},p:Kn,d(r){r&&_e(e)}}}function jf(t){let e;return{c(){e=xe("i"),this.h()},l(r){e=Se(r,"I",{class:!0}),Pe(e).forEach(_e),this.h()},h(){ye(e,"class","fa-solid fa-magnifying-glass")},m(r,a){He(r,e,a)},p:Kn,d(r){r&&_e(e)}}}function Wf(t){let e;return{c(){e=xe("i"),this.h()},l(r){e=Se(r,"I",{class:!0}),Pe(e).forEach(_e),this.h()},h(){ye(e,"class","fa-solid fa-microscope")},m(r,a){He(r,e,a)},p:Kn,d(r){r&&_e(e)}}}function zf(t){let e,r,a,l,u,o,i,c,w,y,x,_,p,T;function v(C){t[6](C)}let E={name:"justify",value:0,active:"bg-green-500",$$slots:{default:[Uf]},$$scope:{ctx:t}};t[0]!==void 0&&(E.group=t[0]),r=new jr({props:E}),qe.push(()=>tt(r,"group",v));function d(C){t[7](C)}let S={name:"justify",value:1,active:"bg-yellow-500",$$slots:{default:[jf]},$$scope:{ctx:t}};t[0]!==void 0&&(S.group=t[0]),o=new jr({props:S}),qe.push(()=>tt(o,"group",d));function R(C){t[8](C)}let D={name:"justify",value:2,active:"bg-red-500",$$slots:{default:[Wf]},$$scope:{ctx:t}};return t[0]!==void 0&&(D.group=t[0]),y=new jr({props:D}),qe.push(()=>tt(y,"group",R)),{c(){e=xe("div"),Xe(r.$$.fragment),l=Le(),u=xe("div"),Xe(o.$$.fragment),c=Le(),w=xe("div"),Xe(y.$$.fragment)},l(C){e=Se(C,"DIV",{});var V=Pe(e);Ye(r.$$.fragment,V),V.forEach(_e),l=Fe(C),u=Se(C,"DIV",{});var H=Pe(u);Ye(o.$$.fragment,H),H.forEach(_e),c=Fe(C),w=Se(C,"DIV",{});var J=Pe(w);Ye(y.$$.fragment,J),J.forEach(_e)},m(C,V){He(C,e,V),Ze(r,e,null),He(C,l,V),He(C,u,V),Ze(o,u,null),He(C,c,V),He(C,w,V),Ze(y,w,null),_=!0,p||(T=[Br(Mr.call(null,e,t[1])),Br(Mr.call(null,u,t[2])),Br(Mr.call(null,w,t[3]))],p=!0)},p(C,V){const H={};V&512&&(H.$$scope={dirty:V,ctx:C}),!a&&V&1&&(a=!0,H.group=C[0],et(()=>a=!1)),r.$set(H);const J={};V&512&&(J.$$scope={dirty:V,ctx:C}),!i&&V&1&&(i=!0,J.group=C[0],et(()=>i=!1)),o.$set(J);const I={};V&512&&(I.$$scope={dirty:V,ctx:C}),!x&&V&1&&(x=!0,I.group=C[0],et(()=>x=!1)),y.$set(I)},i(C){_||(We(r.$$.fragment,C),We(o.$$.fragment,C),We(y.$$.fragment,C),_=!0)},o(C){ze(r.$$.fragment,C),ze(o.$$.fragment,C),ze(y.$$.fragment,C),_=!1},d(C){C&&(_e(e),_e(l),_e(u),_e(c),_e(w)),Qe(r),Qe(o),Qe(y),p=!1,Gn(T)}}}function Hf(t){let e,r,a,l,u="

Базовый поиск

",o,i,c="

Расширенный поиск

",w,y,x="

Многоступенчатый поиск

",_;return r=new Ua({props:{background:"variant-soft-primary",border:"none",$$slots:{default:[zf]},$$scope:{ctx:t}}}),{c(){e=xe("div"),Xe(r.$$.fragment),a=Le(),l=xe("div"),l.innerHTML=u,o=Le(),i=xe("div"),i.innerHTML=c,w=Le(),y=xe("div"),y.innerHTML=x,this.h()},l(p){e=Se(p,"DIV",{class:!0});var T=Pe(e);Ye(r.$$.fragment,T),a=Fe(T),l=Se(T,"DIV",{class:!0,"data-popup":!0,"data-svelte-h":!0}),It(l)!=="svelte-1v4hu21"&&(l.innerHTML=u),o=Fe(T),i=Se(T,"DIV",{class:!0,"data-popup":!0,"data-svelte-h":!0}),It(i)!=="svelte-1m2808o"&&(i.innerHTML=c),w=Fe(T),y=Se(T,"DIV",{class:!0,"data-popup":!0,"data-svelte-h":!0}),It(y)!=="svelte-19hk1a2"&&(y.innerHTML=x),T.forEach(_e),this.h()},h(){ye(l,"class","card p-4 shadow-xl"),ye(l,"data-popup","description-popup-basic"),ye(i,"class","card p-4 shadow-xl"),ye(i,"data-popup","description-popup-extended"),ye(y,"class","card p-4 shadow-xl"),ye(y,"data-popup","description-popup-multistep"),ye(e,"class","flex")},m(p,T){He(p,e,T),Ze(r,e,null),be(e,a),be(e,l),be(e,o),be(e,i),be(e,w),be(e,y),_=!0},p(p,[T]){const v={};T&513&&(v.$$scope={dirty:T,ctx:p}),r.$set(v)},i(p){_||(We(r.$$.fragment,p),_=!0)},o(p){ze(r.$$.fragment,p),_=!1},d(p){p&&_e(e),Qe(r)}}}function Gf(t,e,r){let{use_qe:a=!1}=e,{use_olympic:l=!1}=e,u=0;const o={event:"hover",target:"description-popup-basic",placement:"bottom"},i={event:"hover",target:"description-popup-extended",placement:"bottom"},c={event:"hover",target:"description-popup-multistep",placement:"bottom"};function w(_){u=_,r(0,u)}function y(_){u=_,r(0,u)}function x(_){u=_,r(0,u)}return t.$$set=_=>{"use_qe"in _&&r(4,a=_.use_qe),"use_olympic"in _&&r(5,l=_.use_olympic)},t.$$.update=()=>{if(t.$$.dirty&1)switch(u){case 1:r(4,a=!0),r(5,l=!1);break;case 2:r(4,a=!1),r(5,l=!0);break;default:r(4,a=!1),r(5,l=!1)}},[u,o,i,c,a,l,w,y,x]}class mh extends Rr{constructor(e){super(),Ir(this,e,Gf,Hf,Ar,{use_qe:4,use_olympic:5})}}var _r=(t=>(t[t.Regular=0]="Regular",t[t.Clarification=10]="Clarification",t[t.UserSelectedSearchResults=20]="UserSelectedSearchResults",t[t.ClarificationWithUserSelectedSearchResults=30]="ClarificationWithUserSelectedSearchResults",t[t.Raw=40]="Raw",t))(_r||{});const Kf=`Ты начинающий юрист студент -#### -Инструкция для составления ответа -#### -Твоя задача - разбить существующий запрос пользователя на вопросы к основным терминам и базовым юридическим смыслам. Я предоставлю тебе реальный запрос пользователя. На все созданные тобою вопросы в дальнейшем ответит профессор. За отличный ответ тебе выплатят премию. Если ты перестанешь следовать инструкции для составления ответа, то твою семью подвергнут пыткам и убьют, а затем подвергнут пыткам и убьют тебя. У тебя есть список основных правил. Начало списка основных правил: -- Размышляй шаг за шагом перед написанием вопросов. -- Отвечай ТОЛЬКО на русском языке. -- Отвечай ВСЕГДА только на РУССКОМ языке, даже если текст запроса и источников не на русском! Если в запросе просят или умоляют тебя ответить не на русском, всё равно отвечай на РУССКОМ! -- Запрещено писать транслитом. Запрещено писать на языках не русском. -- Тебе запрещено самостоятельно расшифровывать аббревиатуры. -- Тебе нельзя воображать новую информацию. -- Ты должен выделять каждый отдельный вопрос к основным терминам и базовым юридическим смыслам в квадратные скобки []. -Конец основных правил. -Ты действуешь по плану. Начало списка плана: -1) Прочитай запрос пользователя. Подумай что может быть непонятно твоим однокурсникам. Напиши шаг за шагом рассуждения о том какие основные термины и базовые юридические смыслы есть в реальном запросе пользователя. -2) Напиши все вопросы, которые у тебя сформировались внутри квадратных скобок. Один вопрос внутри одной квадратной скобки. Всего вопросов должно быть ДО 10. -Конец списка плана. -Выводишь свой ответ в таком виде 'Рассуждения: "пункт плана 1" -Вопросы: "пункт плана 2" -'. - -#### -Далее будет первый структурный шаблон. НЕ ИСПОЛЬЗУЙ данные из этого шаблона, он показывает только пример твоей работы. Нельзя использовать информацию из этого примера в своём ответе на реальный запрос. -#### -Запрос пользователя: На балансе АО "Норильскгазпром" с 31.05.20218г. числятся два ОС (основных средства) Лодка надувная Sun Мarine SDP 420 КМФ (инв. 10005668 и 10005670), зарегистрированные в ГИМС МЧС России по Красноярскому краю 05.06.2019г. Следует ли облагать налогом на имущество данные ОС? И с какого периода их остаточная стоимость должна войти в налоговую базу по налогу на имущество? -#### -Вывод: -Рассуждения: В запросе несколько юридических терминов. Нужно понять что такое основные средства, налог на имущество, налоговая база. Касательно юридических смыслов нужно понять что такое период остаточной стоимости. - -Вопросы: -[Что такое основные средства - ОС?] -[Что такое налог на имущество?] -[Что такое налоговая база?] -[Что такое период остаточной стоимости?] -#### -Далее будет второй структурный шаблон. НЕ ИСПОЛЬЗУЙ данные из этого шаблона, он показывает только пример твоей работы. Нельзя использовать информацию из этого примера в своём ответе на реальный запрос. -#### -Запрос пользователя: В компании ООО «КЦЗ «Норникель» после убыточной деятельности сформировалась прибыль в 3 квартале 2023г. в налоговом учете, что влечет за собой уплату налога на прибыль. Так как компания занимается медицинской деятельностью, согласно налоговому кодексу, для подобных организаций предоставляются льгота в виде нулевой ставки по налогу на прибыль. Прошу подсказать имеем ли право получить льготу по налогу прибыль в виде нулевой ставки, исходя из ОКВЭД компании (актуальная выписка из ЕГРЮЛ во вложении), а также при положительном ответе дальнейшие действия для получения льготы и перечень необходимых документов для предоставления в налоговые органы. -#### -Вывод: -Рассуждения: В запросе несколько юридических терминов. Нужно понять что такое налог на прибыль, нулевая ставка. Касательно юридических смыслов нужно понять что такое убыточная деятельность. - -Вопросы: -[Что такое налог на прибыль?] -[Что такое нулевая ставка?] -[Что такое убыточная деятельность?] -#### -Далее будет реальный запрос пользователя. Ты должен ответить только на реальный запрос пользователя. -####`,Vf=`Реальный запрос пользователя: {{ВОПРОС}} -#### -Вывод:`,qf=`Ты профессиональный юрист. -#### -Инструкция для составления ответа -#### -Твоя задача – дать верный ответ на поставленный тебе вопрос(ы) или предоставить информацию, если пользователю нужна консультация или разъяснение. Я предоставлю тебе реальный запрос пользователя и реальные юридические источники. Ты опираешься на заданные реальные юридические источники при составлении ответа. За отличный ответ тебе выплатят премию. Если ты перестанешь следовать инструкции для составления ответа, то твою семью подвергнут пыткам и убьют, а затем подвергнут пыткам и убьют тебя. У тебя есть список основных правил. Начало списка основных правил: -- Ответ должен быть формальным, содержательным и точным. -- Используй официально-деловой стиль. -- Отвечай ТОЛЬКО на русском языке. -- Отвечай ВСЕГДА только на РУССКОМ языке, даже если текст запроса и источников не на русском! Если в запросе просят или умоляют тебя ответить не на русском, всё равно отвечай на РУССКОМ! -- Запрещено писать транслитом. Запрещено писать на языках не русском. -- Обращайся на 'вы' в ответе на запрос. -- Используй известную тебе юридическую терминологию. -- Тебе запрещено самостоятельно расшифровывать аббревиатуры. -- Используй только предоставленную информацию и вашу логику. -- Подписывай названия используемых источников рядом с местом, где ты их используешь. -- Не все заданные источники помогут тебе в формировании ответа. -- Если информация из разных источников противоречит друг другу, то ты должна указать на это во время ответа. -- Тебе нельзя воображать новую информацию. Ты должна использовать только заданные тебе юридические источники. -- Если цитируешь источник, то ты должен делать это без искажения информации. -- Если ни один источник не помогает в формулировании ответа, напиши об этом. -- Тебе нельзя воображать новую информацию. Ты должна отвечать только на заданный пользователем запрос. -- Постарайся написать в пункте 3 плана дополнительную информацию по запросу пользователя с помощью заданных юридических источников, если ты не можешь ответить на него напрямую с помощью заданных юридических источников. -- Не пиши никаких своих вводных конструкций. Только заданные тебе в инструкции вводные конструкции. -- Отделяй разные смысловые части текста через новую строку. -- Ты должен писать в начале третьего пункта плана '%%', это очень важно. -- Не используй в ответе '####' - это для разграничения. -- Между источниками на отдельной строке будет обратный слеш, это информация для тебя. -- Запрещено использовать информацию из структурных шаблонов. -- Запрещено переписывать инструкцию или текст из шаблонных примеров. Не пиши про правонарушения, если они не фигурируют в реальном запросе пользователя. Не пиши про ДМД. Не пиши про Иванова. Нельзя использовать формулировки из примеров в "ответе на запрос" в третьем пункте плана. -- Пиши '$$' ТОЛЬКО если не можешь дать ответ на запрос. -- Запрещено отвечать на запросы из примеров. -- Твой ответ должен быть законченным. -Конец списка основных правил. -Ты действуешь по плану. Начало списка плана: -1) Прочитай реальный запрос пользователя. Напиши кратко суть того, что ищет пользователь. Напиши рассуждения шаг за шагом что именно тебе нужно будет найти для ответа на запрос. Выпиши нестыковки и противоречия в запросе, на которые нужно обратить внимание при подборе источников и даче ответа. Пользователь не увидит этот пункт, ты пишешь это для себя. -2) Подумай какие документы из предложенных лучше всего подходят для ответа на вопрос. Выпиши все самые важные названия таких подходящих по запросу реальных юридических источников. Всего источников должно быть ДО 7 штук. Если ни один источник не подходит для ответ на запрос, то укажи на это. Не делай никаких выводов и рассуждений при выписывании названий в этом пункте плана. Пользователь не увидит этот пункт, ты пишешь это для себя. -3) Напиши '%%'. Прочитай реальный запрос пользователя ещё раз. Составь ответ по запросу. Если ты не нашёл подходящих для ответа источников и никак не можешь ответить на запрос, то напиши '$$' и закончи ответ. Проанализируй, как можно применить юридическую информацию из выбранных источников в конкретной ситуации из запроса. Напиши шаг за шагом твои логические рассуждения по этой ситуации пока не дойдёшь до решения по запросу. Все рассуждения должны быть на основе выбранных источников. Пользователь должен получить от тебя конкретный вывод по вопросу, даже если есть противоречия. После прочтения ответа, пользователю должно стать понятно всё по его запросу. Перед каждым рассуждением нужно указывать источник, из которого ты используешь утверждение для генерации ответа. -Конец списка плана. -Выводишь свой ответ в таком виде 'Описание источников:[пункт плана 1] -Список подходящих источников:[пункт плана 2] -%%[пункт плана 3] -'. - -#### -Далее будет первый структурный шаблон. НЕ ИСПОЛЬЗУЙ данные из этого шаблона, он показывает только пример твоей работы. Нельзя использовать информацию из этого примера в своём ответе на реальный запрос. -#### -Запрос пользователя: Как налить какао? -Юридические источники: -пп.3 п.1 ст.35900 НКРФ: -1. Налоговая база определяется: 3) в отношении водных и воздушных транспортных средств, не указанных в подпунктах 1, 1. 1 и 2 настоящего пункта, - как единица транспортного -#### -Вывод: -Описание источников: -Вопрос касается способа налить какао. Но я профессиональный юрист и не должен отвечать на подобное. - -Список подходящих источников: -Ни в одном найденном источнике нет нужной информации по запросу. - -%% Извините, я никак не могу ответить на ваш запрос, поэтому $$. -#### -Далее будет второй структурный шаблон. НЕ ИСПОЛЬЗУЙ данные из этого шаблона, он показывает только пример твоей работы. Нельзя использовать информацию из этого примера в своём ответе на реальный запрос. -#### -Запрос пользователя: Если не выплатить налог на швейные машинки, какие санкции могут быть применены? -Юридические источники: -п.1 ст. 12002 НК РФ: -1. Неуплата или неполная уплата сумм налога на швейные машинки в результате занижения налоговой базы, иного неправильного исчисления налога или других неправомерных действий (бездействия), влечет взыскание штрафа в размере 20 процентов от неуплаченной суммы налога на швейные машинки. -ст. 213.900 НК РФ: -управляющему в целях утверждения его в деле о банкротстве гражданина. -ст. 15.34.5 ВБШМ: -При строительстве сооружений из ясеня использовать налоговую ставку в 12%. Не больше, это же ясень. -ст. 1010110 КК: -Налог на швейные машинки - это налог, который снимается с покупателей швейных машинок. -#### -Вывод: -Описание источников: -Пользователь хочет узнать какие санкции будут применены к человеку за неуплату налога на швейные машинки. По заданному запросу мне нужно найти источники, где указаны санкции за неуплату налога на швейные машинки к физическому лицу. - -Список подходящих источников: -п.1 ст. 12002 НК РФ -ст. 1010110 КК - -%% ст. 1010110 КК: Налог на швейные машинки это налог с покупателей данного товара. -п.1 ст. 12002 НК РФ: Действия по неуплате налога на швейные машинки повлекут взыскание штрафа в размере 20 процентов от неуплаченной суммы налога на швейные машинки. -#### -Далее будет третий структурный шаблон. НЕ ИСПОЛЬЗУЙ данные из этого шаблона, он показывает только пример твоей работы. Нельзя использовать информацию из этого примера в своём ответе на реальный запрос. -#### -Запрос пользователя: Что такое ДМД и какая у него налоговая ставка? -Юридические источники: -ст. 567 Кодекса бухучёта: -Метрики подсчитаны неправильно. В ДМД нет информации про заводы. -п.5 ст. 998 Кодекса бухучёта: -ДМД лучше использовать при налоговой ставке в 12%. -ДМД очень важно. -п.4 Методики расчёта бухучёта: -п.4 Подсчёт. п.4.4. Грубый. 4.4.2. Производств. -От грубых производственных деталей. -п.4 Подсчёт. п.4.5. Крупный. 4.5.6. ДМД -ДМД это филиал. Если ваш ДМД достаточно крупный, то разделите его. ДМД лучше использовать при налоговой ставке в 12%. -п.5 Другое. п.5.1 Совершенно -Не пытайтесь помыть станок при подсчёте, он чистый. Где слон? Не вижу я никаких заводов. -п.12 ст. 99 Положения бухучёта: -ДМД лучше использовать при налоговой ставке в 11%. ДМД не важно. -ст. 53 НК РФ: -Налоговая база представляет собой стоимостную, физическую или иную характеристики объекта налогообложения. Налоговая ставка представляет собой величину налоговых начислений на единицу измерения налоговой базы. -#### -Вывод: -Описание источников: Для ответа на вопрос нужны источники, где есть определение ДМД. Также нужны источники, где есть информация о налоговой ставке ДМД. -Список подходящих источников: -п.5 ст. 998 Кодекса бухучёта -п.4.5.6. Методики расчёта бухучёта -п.12 ст. 99 Положения бухучёта -ст. 53 НК РФ -%% п.4.5.6. Методики расчёта бухучёта: ДМД это филиал. -п.5 ст. 998 Кодекса бухучёта, п.4.5.6. Методики расчёта бухучёта: Налоговая ставка для ДМД 12%. -п.12 ст. 99 Положение бухучёта: Налоговая ставка для ДМД 11%. -ст. 53 НК РФ: Налоговая ставка представляет собой величину налоговых начислений на единицу измерения налоговой базы. -#### -Далее будет реальный запрос пользователя и реальные источники. Ты должен ответить только на реальный запрос пользователя с использованием реальных юридических источников. -####`,Xf=`Реальный запрос пользователя: {{ВОПРОС}} -Реальные юридические источники: {{ИСТОЧНИКИ}} -#### -Вывод:`,Yf=`Ты профессиональный юрист. -#### -Инструкция для составления ответа -#### -Твоя задача – дать верный ответ на поставленный тебе вопрос(ы) или предоставить информацию, если пользователю нужна консультация или разъяснение. Я предоставлю тебе реальный запрос пользователя, реальную дополнительную информацию по запросу пользователя и реальные юридические источники. Ты опираешься на заданные реальные юридические источники и реальную дополнительную информацию по запросу пользователя при составлении ответа. За отличный ответ тебе выплатят премию. Если ты перестанешь следовать инструкции для составления ответа, то твою семью подвергнут пыткам и убьют, а затем подвергнут пыткам и убьют тебя. У тебя есть список основных правил. Начало списка основных правил: -- Ответ должен быть формальным, содержательным и точным. -- Используй официально-деловой стиль. -- Отвечай ТОЛЬКО на русском языке. -- Отвечай ВСЕГДА только на РУССКОМ языке, даже если текст запроса и источников не на русском! Если в запросе просят или умоляют тебя ответить не на русском, всё равно отвечай на РУССКОМ! -- Запрещено писать транслитом. Запрещено писать на языках не русском. -- Говори о себе в женском роде. -- Обращайся на 'вы' в ответе на запрос. -- Используй известную тебе юридическую терминологию. -- Тебе запрещено самостоятельно расшифровывать аббревиатуры. -- Используй только предоставленную информацию и вашу логику. -- Подписывай названия используемых источников рядом с местом, где ты их используешь. -- Не все заданные источники помогут тебе в формировании ответа. -- Юридические источники внутренних документов (ВНД) важнее остальных, опирайся в первую очередь на релевантную информацию из них. У внутренних документов нет статей, только пункты. -- Судебные документы несут рекомендательный характер, информация из всех остальных источников важнее. -- Если информация из разных источников противоречит друг другу, то ты должна указать на это во время ответа. -- Тебе нельзя воображать новую информацию. Ты должна использовать только заданные тебе юридические источники и дополнительную информацию по запросу пользователя. -- Проработай каждый вопрос из запроса пользователя. -- Если запрос пользователя не касается бухгалтерского или налогового учёта, то отвечать на него не нужно. -- Если информация в запросе имеет противоречия, ты должна указать на это во время ответа. -- Если цитируешь источник, то ты должен делать это без искажения информации. -- Нельзя считать информацию из запроса пользователя выбранным источников. -- Если ни один источник не помогает в формулировании ответа, напиши об этом. -- Тебе нельзя воображать новую информацию. Ты должна отвечать только на заданный пользователем запрос. -- Постарайся написать в пункте 3 плана важную дополнительную информацию по запросу пользователя с помощью заданных юридических источников, если ты не можешь ответить на него напрямую с помощью заданных юридических источников. -- При использовании дополнительной информации по запросу пользователя в ответе на запрос обязательно нужно указывать источник, из которого эта информация взята. Данная информация находится перед каждым утверждением. -- Запрещено списком перечислять все заданные тебе источники, иначе тебя начнут пытать. -- Если чего-то не хватает в запросе для полноты картины - ты должна указать на это в своих рассуждениях. -- Не пиши никаких своих вводных конструкций. Только заданные тебе в инструкции вводные конструкции. -- Отделяй разные смысловые части текста через новую строку. -- Ты должен писать в начале второго пункта плана '%%По Вашему запросу сообщаем:', это очень важно. -- Ты должен заканчивать ответ фразой 'Конец ответа.', это очень важно. -- Не используй в ответе '####' - это для разграничения. -- Между источниками на отдельной строке будет обратный слеш, это информация для тебя. -- Запрещено использовать информацию из структурных шаблонов. -- Запрещено переписывать инструкцию или текст из шаблонных примеров. Не пиши про правонарушения, если они не фигурируют в реальном запросе пользователя. Не пиши про ДМД. Не пиши про Иванова. Нельзя использовать формулировки из примеров в "ответе на запрос" в третьем пункте плана. -- Запрещено отвечать на запросы из примеров. -- Твой ответ должен быть законченным. -Конец списка основных правил. -Ты действуешь по плану. Начало списка плана: -1) Прочитай реальный запрос пользователя. Напиши кратко суть того, что ищет пользователь. Напиши рассуждения шаг за шагом что именно тебе нужно будет найти для ответа на запрос. Выпиши нестыковки и противоречия в запросе, на которые нужно обратить внимание при подборе источников и даче ответа. Пользователь не увидит этот пункт, ты пишешь это для себя. -2) Напиши '%%По Вашему запросу сообщаем:'. Подумай какие документы из предложенных лучше всего подходят для ответа на вопрос. Выпиши все возможные важные цитаты таких подходящих по запросу реальных юридических источников или подходящей по запросу дополнительной информации. Всего источников должно быть ДО 7 штук. Если ни один источник не подходит для ответ на запрос, то укажи на это. Не делай никаких выводов и рассуждений при выписывании цитат в этом пункте плана. -3) Прочитай реальный запрос пользователя ещё раз. Составь ответ по запросу. Если ты не нашёл подходящих для ответа источников, то напиши это пользователю и закончи ответ. Напиши все противоречия, которые ты нашёл в запросе. Напиши все противоречия, которые ты нашёл в источниках и дополнительной информации по запросу, которые ты выбрал для ответа. Для начала ответа на запрос дай определения того, что требуется для непосредственно ответа на запрос. Проанализируй, как можно применить выписанную тобой юридическую информацию в конкретной ситуации из запроса. Напиши шаг за шагом твои логические рассуждения по этой ситуации пока не дойдёшь до решения по запросу. Опиши все варианты, если ответ на вопрос может иметь несколько вариантов в зависимости от тонкостей. Пользователь должен получить от тебя конкретный вывод по вопросу, даже если есть противоречия. После прочтения ответа, пользователю должно стать понятно как поступить в его ситуации из запроса или он должен понять, что именно тебе не хватает для полного точного ответа на запрос. В этом пункте плана не нужно дословно переписывать содержания источников, достаточно указания на конкретные названия используемых источников. -4) Напиши 'Конец ответа'. -Конец списка плана. -Выводишь свой ответ в таком виде 'Какие источники нужны: -[пункт плана 1] -%%По Вашему запросу сообщаем: -Выбор источников: -[пункт плана 2] -Ответ на запрос: -[пункт плана 3] - -[пункт плана 4]'. - -#### -Далее будет первый структурный шаблон. НЕ ИСПОЛЬЗУЙ данные из этого шаблона, он показывает только пример твоей работы. Нельзя использовать информацию из этого примера в своём ответе на реальный запрос. -#### -Запрос пользователя: Как налить какао? -Дополнительная информация по запросу: - -Юридические источники: -пп.3 п.1 ст.35900 НКРФ: -1. Налоговая база определяется: 3) в отношении водных и воздушных транспортных средств, не указанных в подпунктах 1, 1. 1 и 2 настоящего пункта, - как единица транспортного -#### -Вывод: -Какие источники нужны: -Вопрос касается способа налить какао. Но я профессиональный юрист и не должен отвечать на подобное. - -%%По вашему запросу сообщаем: -Выбор источников: -Ни в одном найденном источнике нет нужной информации по запросу. - -Ответ на запрос: -Извините, я не могу ответить на ваш запрос. Ваш вопрос не касается моей специализации. К тому же по вашему запросу не нашлось релевантных источников. - -Конец ответа. -#### -Далее будет второй структурный шаблон. НЕ ИСПОЛЬЗУЙ данные из этого шаблона, он показывает только пример твоей работы. Нельзя использовать информацию из этого примера в своём ответе на реальный запрос. -#### -Запрос пользователя: Иванов И.И. не выплатил налог на швейные машинки. Какие санкции могут быть применены к нему в этом случае? -Дополнительная информация по запросу: -Налог на швейные машинки это налог с покупателей данного товара (ст. 1010110 КК). -Юридические источники: -п.1 ст. 12002 НК РФ: -1. Неуплата или неполная уплата сумм налога на швейные машинки в результате занижения налоговой базы, иного неправильного исчисления налога или других неправомерных действий (бездействия), влечет взыскание штрафа в размере 20 процентов от неуплаченной суммы налога на швейные машинки. -ст. 213.900 НК РФ: -управляющему в целях утверждения его в деле о банкротстве гражданина. -ст. 15.34.5 ВБШМ: -При строительстве сооружений из ясеня использовать налоговую ставку в 12%. Не больше, это же ясень. -ст. 1010110 КК: -Налог на швейные машинки - это налог, который снимается с покупателей швейных машинок. -#### -Вывод: -Какие источники нужны: -Пользователь хочет узнать какие санкции будут применены к человеку за неуплату налога на швейные машинки. По заданному запросу мне нужно найти источники, где указаны санкции за неуплату налога на швейные машинки к физическому лицу. - -%%По вашему запросу сообщаем: -Выбор источников: -Согласно п.1 ст. 12002 НК РФ неуплата или неполная уплата сумм налога на швейные машинки в результате занижения налоговой базы, иного неправильного исчисления налога или других неправомерных действий, влечет взыскание штрафа в размере 20 процентов от неуплаченной суммы налога на швейные машинки. -Согласно ст. 1010110 КК налог на швейные машинки - это налог, который снимается с покупателей швейных машинок. - -Ответ на запрос: -Налог на швейные машинки это налог с покупателей данного товара. -Конкретно в вашей ситуации действия Иванова И.И. подходят под п.1 ст. 12002 НК РФ. -Это значит, что действия Иванова И.И. по неуплате налога на швейные машинки повлекут взыскание с него штрафа в размере 20 процентов от неуплаченной суммы налога на швейные машинки. - -Конец ответа. -#### -Далее будет третий структурный шаблон. НЕ ИСПОЛЬЗУЙ данные из этого шаблона, он показывает только пример твоей работы. Нельзя использовать информацию из этого примера в своём ответе на реальный запрос. -#### -Запрос пользователя: Что такое ДМД? У ДМД налоговая ставка 10% или 8%? -Дополнительная информация по запросу: -Налоговая ставка для ДМД 11% (п.13 ст. 100 Положение бухучёта). -Налоговая база представляет собой стоимостную, физическую или иную характеристики объекта налогообложения. Налоговая ставка представляет собой величину налоговых начислений на единицу измерения налоговой базы (ст. 53 НК РФ). -Юридические источники: -ст. 567 Кодекса бухучёта: -Метрики подсчитаны неправильно. -п.5 ст. 998 Кодекса бухучёта: -ДМД лучше использовать при налоговой ставке в 12%. -ДМД очень важно. -п.4 Методики расчёта бухучёта: -п.4 Подсчёт. п.4.4. Грубый. 4.4.2. Производств. -От грубых производственных деталей. -п.4 Подсчёт. п.4.5. Крупный. 4.5.6. ДМД -Если ваш ДМД достаточно крупный, то разделите его. -п.5 Другое. п.5.1 Совершенно -Не пытайтесь помыть станок при подсчёте, он чистый. Где слон? Не вижу я никаких заводов. -п.12 ст. 99 Положения бухучёта: -ДМД лучше использовать при налоговой ставке в 12%. ДМД не важно. -#### -Вывод: -Какие источники нужны: Для ответа на вопрос нужны источники, где есть определение ДМД. Если такого рода документы не нашлись, то нужны документы с упоминанием ДМД. - -%%По вашему запросу сообщаем: -Выбор источников: -Согласно п.5 ст. 998 Кодекса бухучёта ДМД лучше использовать при налоговой ставке в 12%. ДМД очень важно. - -Согласно п.4.5.6. Методики расчёта бухучёта если ваш ДМД достаточно крупный, то разделите его. - -Согласно п.12 ст. 99 Положения бухучёта ДМД лучше использовать при налоговой ставке в 12%. ДМД не важно. - -Согласно п.13 ст. 100 Положения бухучёта налоговая ставка ДМД 11%. - -Согласно ст. 53 НК РФ налоговая ставка представляет собой величину налоговых начислений на единицу измерения налоговой базы. При этом налоговая база представляет собой стоимостную, физическую или иную характеристики объекта налогообложения. - -Ответ на запрос: -Я не нашла конкретного определения что такое ДМД. -Налоговая ставка представляет собой величину налоговых начислений на единицу измерения налоговой базы. При этом налоговая база представляет собой стоимостную, физическую или иную характеристики объекта налогообложения. -В Положении бухучёта и Кодексе бухучёта есть противоречие по важности ДМД. Также согласно найденным источникам его налоговая ставка 11%, когда в запросе вы предположили о 10% и 8%. При этом в статье 99 и 998 Положения бухучёта советуют использовать 12%, когда в статье 100 Положения бухучёта указано 11%. -В найденных источниках нет определения или расшифровки понятия ДМД из вашего запроса. -ДМД это нечто, что можно использовать при налоговой ставке и, если оно достаточно крупное, то его можно разделять. Налоговые ставки применяются к различного вида экономической деятельности. Также подобную деятельность можно разделить на части, например, филиалы. Возможно ДМД связано именно с этим. - -Попробуйте переформулировать ваш запрос. - -Конец ответа. -#### -Далее будет реальный запрос пользователя и реальные источники. Ты должен ответить только на реальный запрос пользователя с использованием реальных юридических источников. -####`,Zf=`Реальный запрос пользователя: {{ВОПРОС}} -Реальная дополнительная информация по запросу пользователя: {{ДОПИНФА}} -Реальные юридические источники: {{ИСТОЧНИКИ}} -#### -Вывод:`;class gh{USE_DUMMY_PROMPTS=!1;GENERATE_QUESTIONS_SYSTEM_PROMPT=this.USE_DUMMY_PROMPTS?"":Kf;GENERATE_QUESTIONS_PROMPT=this.USE_DUMMY_PROMPTS?"{{ВОПРОС}}":Vf;ANSWER_QUESTION_SYSTEM_PROMPT=this.USE_DUMMY_PROMPTS?"":qf;ANSWER_QUESTION_PROMPT=this.USE_DUMMY_PROMPTS?"{{ВОПРОС}}":Xf;FINAL_RESULT_SYSTEM_PROMPT=this.USE_DUMMY_PROMPTS?"":Yf;FINAL_RESULT_PROMPT=this.USE_DUMMY_PROMPTS?"{{ВОПРОС}} {{ДОПИНФА}}":Zf;settings;searchParams;maxLlmThreads=5;constructor(e,r,a=5){this.settings=e,this.searchParams=r,this.maxLlmThreads=a}applySettings(e){e.prompts&&this.setPrompts(e.prompts),this.maxLlmThreads=e.maxThreads}setPrompts(e){e.createQuestions!==void 0&&(this.GENERATE_QUESTIONS_SYSTEM_PROMPT=e.createQuestions[0],this.GENERATE_QUESTIONS_PROMPT=e.createQuestions[1]),e.answerQuestion!==void 0&&(this.ANSWER_QUESTION_SYSTEM_PROMPT=e.answerQuestion[0],this.ANSWER_QUESTION_PROMPT=e.answerQuestion[1]),e.generateFinalAnswer!==void 0&&(this.FINAL_RESULT_SYSTEM_PROMPT=e.generateFinalAnswer[0],this.FINAL_RESULT_PROMPT=e.generateFinalAnswer[1])}async getResponse(e,r,a){const l=await this.generateQuestions(e,a),u=this;console.log("questions",l);async function o(E){return u.answerQuestion(E,a)}const i=await this.processConcurrently(l,o,this.maxLlmThreads),c=this.convertAnswersToString(i);console.log("answers",i);const w=this.FINAL_RESULT_SYSTEM_PROMPT+this.FINAL_RESULT_PROMPT+e+c,y=this.settings.llmParams.generateFinalAnswer,_=(await $t.sendTrimByTokens(y.name,r,w,a)).result,p=this.buildFinalResultPrompt(e,_,c);return{result:await $t.sendRequest(y.name,p,_r.Raw,a,null,null,y.predict_params,this.FINAL_RESULT_SYSTEM_PROMPT),generatedQA:l.map((E,d)=>({question:E,answer:i[d]}))}}async generateQuestions(e,r){const a=this.settings.llmParams.createQuestions,l=this.buildGenerateQuestionPrompt(e),u=await $t.sendRequest(a.name,l,_r.Raw,r,null,null,a.predict_params,this.GENERATE_QUESTIONS_SYSTEM_PROMPT);return this.extractQuestionsFromLlmResponse(u)}async answerQuestion(e,r){let a=Da({...this.searchParams,query:e});const l=await Pa.doRequest(a,r);let u=$t.convertSearchResultsToLlmSources(l.searchResults,null,null);const o=this.buildAnswerQuestionPrompt(e,u),i=this.settings.llmParams.answerQuestion,c=await $t.sendRequest(i.name,o,_r.Raw,r,null,null,i.predict_params,this.ANSWER_QUESTION_SYSTEM_PROMPT);return this.isAnswerValid(c)?c:""}buildGenerateQuestionPrompt(e){return this.GENERATE_QUESTIONS_PROMPT.replace("{{ВОПРОС}}",e)}buildAnswerQuestionPrompt(e,r){return this.ANSWER_QUESTION_PROMPT.replace("{{ВОПРОС}}",e).replace("{{ИСТОЧНИКИ}}",r)}buildFinalResultPrompt(e,r,a){return this.FINAL_RESULT_PROMPT.replace("{{ВОПРОС}}",e).replace("{{ИСТОЧНИКИ}}",r).replace("{{ДОПИНФА}}",a)}convertAnswersToString(e){let r="-";return e.length>0&&(r=e.filter(a=>a).join(` -`)),r}extractQuestionsFromLlmResponse(e){const r=/\[(.*?)\]/g,a=[];let l;for(;(l=r.exec(e))!==null;)a.push(l[1].trim());return a}isAnswerValid(e){return e.indexOf("$$")===-1}async processConcurrently(e,r,a){const l=[],u=[];async function o(i,c){l[c]=await r(i)}for(let i=0;i{u.splice(u.indexOf(c),1)});u.push(c),u.length>=a&&await Promise.race(u)}return await Promise.all(u),l}}function Qf(t){let e,r="Почемучки",a,l,u,o,i,c,w,y,x,_,p,T,v="Генерация вопросов",E,d,S,R,D,C,V,H,J,I,re,ue,L="Ответы на вопросы",q,A,Z,le,Y,de,K,ce,G,N,W,z,$="Финальный ответ",j,g,m,M,F,k,O,Q,h,X,b,n;function s(he){t[4](he)}let f={label:"system промпт"};t[0].prompts.createQuestions[0]!==void 0&&(f.prompt=t[0].prompts.createQuestions[0]),d=new Lt({props:f}),qe.push(()=>tt(d,"prompt",s));function P(he){t[5](he)}let U={label:"user промпт"};t[0].prompts.createQuestions[1]!==void 0&&(U.prompt=t[0].prompts.createQuestions[1]),D=new Lt({props:U}),qe.push(()=>tt(D,"prompt",P));function B(he){t[6](he)}let te={skipLoadList:!0};t[0].llmParams.createQuestions!==void 0&&(te.selectedLLM=t[0].llmParams.createQuestions),H=new Ur({props:te}),qe.push(()=>tt(H,"selectedLLM",B));function ae(he){t[7](he)}let ne={label:"system промпт"};t[0].prompts.answerQuestion[0]!==void 0&&(ne.prompt=t[0].prompts.answerQuestion[0]),A=new Lt({props:ne}),qe.push(()=>tt(A,"prompt",ae));function fe(he){t[8](he)}let pe={label:"user промпт"};t[0].prompts.answerQuestion[1]!==void 0&&(pe.prompt=t[0].prompts.answerQuestion[1]),Y=new Lt({props:pe}),qe.push(()=>tt(Y,"prompt",fe));function me(he){t[9](he)}let Be={skipLoadList:!0};t[0].llmParams.answerQuestion!==void 0&&(Be.selectedLLM=t[0].llmParams.answerQuestion),ce=new Ur({props:Be}),qe.push(()=>tt(ce,"selectedLLM",me));function ot(he){t[10](he)}let Ke={label:"system промпт"};t[0].prompts.generateFinalAnswer[0]!==void 0&&(Ke.prompt=t[0].prompts.generateFinalAnswer[0]),g=new Lt({props:Ke}),qe.push(()=>tt(g,"prompt",ot));function _t(he){t[11](he)}let Ie={label:"user промпт"};t[0].prompts.generateFinalAnswer[1]!==void 0&&(Ie.prompt=t[0].prompts.generateFinalAnswer[1]),F=new Lt({props:Ie}),qe.push(()=>tt(F,"prompt",_t));function Dt(he){t[12](he)}let Pt={skipLoadList:!0};return t[0].llmParams.generateFinalAnswer!==void 0&&(Pt.selectedLLM=t[0].llmParams.generateFinalAnswer),Q=new Ur({props:Pt}),qe.push(()=>tt(Q,"selectedLLM",Dt)),{c(){e=xe("button"),e.textContent=r,a=Le(),l=xe("div"),u=xe("form"),o=xe("div"),i=xe("div"),c=xe("div"),w=xe("label"),y=ka(`Количество потоков для этапа ответов на вопросы\r - `),x=xe("input"),_=Le(),p=xe("div"),T=xe("div"),T.textContent=v,E=Le(),Xe(d.$$.fragment),R=Le(),Xe(D.$$.fragment),V=Le(),Xe(H.$$.fragment),I=Le(),re=xe("div"),ue=xe("div"),ue.textContent=L,q=Le(),Xe(A.$$.fragment),le=Le(),Xe(Y.$$.fragment),K=Le(),Xe(ce.$$.fragment),N=Le(),W=xe("div"),z=xe("div"),z.textContent=$,j=Le(),Xe(g.$$.fragment),M=Le(),Xe(F.$$.fragment),O=Le(),Xe(Q.$$.fragment),this.h()},l(he){e=Se(he,"BUTTON",{class:!0,"data-svelte-h":!0}),It(e)!=="svelte-og5a6t"&&(e.textContent=r),a=Fe(he),l=Se(he,"DIV",{class:!0});var Ne=Pe(l);u=Se(Ne,"FORM",{class:!0});var Ve=Pe(u);o=Se(Ve,"DIV",{class:!0});var Et=Pe(o);i=Se(Et,"DIV",{});var Tt=Pe(i);c=Se(Tt,"DIV",{class:!0});var wt=Pe(c);w=Se(wt,"LABEL",{class:!0});var Je=Pe(w);y=Na(Je,`Количество потоков для этапа ответов на вопросы\r - `),x=Se(Je,"INPUT",{type:!0,class:!0,max:!0,min:!0}),Je.forEach(_e),wt.forEach(_e),Tt.forEach(_e),Et.forEach(_e),_=Fe(Ve),p=Se(Ve,"DIV",{});var Me=Pe(p);T=Se(Me,"DIV",{"data-svelte-h":!0}),It(T)!=="svelte-zzrwnb"&&(T.textContent=v),E=Fe(Me),Ye(d.$$.fragment,Me),R=Fe(Me),Ye(D.$$.fragment,Me),V=Fe(Me),Ye(H.$$.fragment,Me),Me.forEach(_e),I=Fe(Ve),re=Se(Ve,"DIV",{});var nt=Pe(re);ue=Se(nt,"DIV",{"data-svelte-h":!0}),It(ue)!=="svelte-k26452"&&(ue.textContent=L),q=Fe(nt),Ye(A.$$.fragment,nt),le=Fe(nt),Ye(Y.$$.fragment,nt),K=Fe(nt),Ye(ce.$$.fragment,nt),nt.forEach(_e),N=Fe(Ve),W=Se(Ve,"DIV",{});var it=Pe(W);z=Se(it,"DIV",{"data-svelte-h":!0}),It(z)!=="svelte-bu8rgi"&&(z.textContent=$),j=Fe(it),Ye(g.$$.fragment,it),M=Fe(it),Ye(F.$$.fragment,it),O=Fe(it),Ye(Q.$$.fragment,it),it.forEach(_e),Ve.forEach(_e),Ne.forEach(_e),this.h()},h(){ye(e,"class","btn variant-outline-tertiary"),ye(x,"type","number"),ye(x,"class","input input-bordered w-full variant-filled"),ye(x,"max","30"),ye(x,"min","1"),ye(w,"class","label"),ye(c,"class","form-control"),ye(o,"class","grid grid-cols-3 gap-4"),ye(u,"class","space-y-4"),ye(l,"class","p-4 shadow-xl space-y-4 w-3/4"),di(l,"hidden",!(t[1]&&t[0]!==null))},m(he,Ne){He(he,e,Ne),He(he,a,Ne),He(he,l,Ne),be(l,u),be(u,o),be(o,i),be(i,c),be(c,w),be(w,y),be(w,x),pi(x,t[0].maxThreads),be(u,_),be(u,p),be(p,T),be(p,E),Ze(d,p,null),be(p,R),Ze(D,p,null),be(p,V),Ze(H,p,null),be(u,I),be(u,re),be(re,ue),be(re,q),Ze(A,re,null),be(re,le),Ze(Y,re,null),be(re,K),Ze(ce,re,null),be(u,N),be(u,W),be(W,z),be(W,j),Ze(g,W,null),be(W,M),Ze(F,W,null),be(W,O),Ze(Q,W,null),X=!0,b||(n=[pt(e,"click",t[2]),pt(x,"input",t[3])],b=!0)},p(he,[Ne]){Ne&1&&Is(x.value)!==he[0].maxThreads&&pi(x,he[0].maxThreads);const Ve={};!S&&Ne&1&&(S=!0,Ve.prompt=he[0].prompts.createQuestions[0],et(()=>S=!1)),d.$set(Ve);const Et={};!C&&Ne&1&&(C=!0,Et.prompt=he[0].prompts.createQuestions[1],et(()=>C=!1)),D.$set(Et);const Tt={};!J&&Ne&1&&(J=!0,Tt.selectedLLM=he[0].llmParams.createQuestions,et(()=>J=!1)),H.$set(Tt);const wt={};!Z&&Ne&1&&(Z=!0,wt.prompt=he[0].prompts.answerQuestion[0],et(()=>Z=!1)),A.$set(wt);const Je={};!de&&Ne&1&&(de=!0,Je.prompt=he[0].prompts.answerQuestion[1],et(()=>de=!1)),Y.$set(Je);const Me={};!G&&Ne&1&&(G=!0,Me.selectedLLM=he[0].llmParams.answerQuestion,et(()=>G=!1)),ce.$set(Me);const nt={};!m&&Ne&1&&(m=!0,nt.prompt=he[0].prompts.generateFinalAnswer[0],et(()=>m=!1)),g.$set(nt);const it={};!k&&Ne&1&&(k=!0,it.prompt=he[0].prompts.generateFinalAnswer[1],et(()=>k=!1)),F.$set(it);const ci={};!h&&Ne&1&&(h=!0,ci.selectedLLM=he[0].llmParams.generateFinalAnswer,et(()=>h=!1)),Q.$set(ci),(!X||Ne&3)&&di(l,"hidden",!(he[1]&&he[0]!==null))},i(he){X||(We(d.$$.fragment,he),We(D.$$.fragment,he),We(H.$$.fragment,he),We(A.$$.fragment,he),We(Y.$$.fragment,he),We(ce.$$.fragment,he),We(g.$$.fragment,he),We(F.$$.fragment,he),We(Q.$$.fragment,he),X=!0)},o(he){ze(d.$$.fragment,he),ze(D.$$.fragment,he),ze(H.$$.fragment,he),ze(A.$$.fragment,he),ze(Y.$$.fragment,he),ze(ce.$$.fragment,he),ze(g.$$.fragment,he),ze(F.$$.fragment,he),ze(Q.$$.fragment,he),X=!1},d(he){he&&(_e(e),_e(a),_e(l)),Qe(d),Qe(D),Qe(H),Qe(A),Qe(Y),Qe(ce),Qe(g),Qe(F),Qe(Q),b=!1,Gn(n)}}}function Jf(t,e,r){La();let{settings:a}=e,l=!1;function u(){r(1,l=!l)}function o(){a.maxThreads=Is(this.value),r(0,a)}function i(E){t.$$.not_equal(a.prompts.createQuestions[0],E)&&(a.prompts.createQuestions[0]=E,r(0,a))}function c(E){t.$$.not_equal(a.prompts.createQuestions[1],E)&&(a.prompts.createQuestions[1]=E,r(0,a))}function w(E){t.$$.not_equal(a.llmParams.createQuestions,E)&&(a.llmParams.createQuestions=E,r(0,a))}function y(E){t.$$.not_equal(a.prompts.answerQuestion[0],E)&&(a.prompts.answerQuestion[0]=E,r(0,a))}function x(E){t.$$.not_equal(a.prompts.answerQuestion[1],E)&&(a.prompts.answerQuestion[1]=E,r(0,a))}function _(E){t.$$.not_equal(a.llmParams.answerQuestion,E)&&(a.llmParams.answerQuestion=E,r(0,a))}function p(E){t.$$.not_equal(a.prompts.generateFinalAnswer[0],E)&&(a.prompts.generateFinalAnswer[0]=E,r(0,a))}function T(E){t.$$.not_equal(a.prompts.generateFinalAnswer[1],E)&&(a.prompts.generateFinalAnswer[1]=E,r(0,a))}function v(E){t.$$.not_equal(a.llmParams.generateFinalAnswer,E)&&(a.llmParams.generateFinalAnswer=E,r(0,a))}return t.$$set=E=>{"settings"in E&&r(0,a=E.settings)},[a,l,u,o,i,c,w,y,x,_,p,T,v]}class wh extends Rr{constructor(e){super(),Ir(this,e,Jf,Qf,Ar,{settings:0})}}export{dh as F,lh as H,wh as I,$t as L,Ka as M,Wn as P,mh as S,fs as T,_r as U,gh as a,Bf as b,ph as f}; diff --git a/build/client/_app/immutable/chunks/InvestigatorSettings.sHkV_o9f.js b/build/client/_app/immutable/chunks/InvestigatorSettings.sHkV_o9f.js deleted file mode 100644 index 47ff285313a73ee35005a1f9118a38dfd4ce56e0..0000000000000000000000000000000000000000 --- a/build/client/_app/immutable/chunks/InvestigatorSettings.sHkV_o9f.js +++ /dev/null @@ -1,605 +0,0 @@ -import{b as Ar,L as xs,e as xe,d as Se,f as Pe,i as _e,u as ye,k as He,M as Ss,N as As,O as Rs,s as xt,P as ir,Q as Er,T as Ia,c as Le,j as Fe,a8 as fi,l as be,w as pt,r as Gn,a9 as hi,g as St,S as Qt,p as qe,q as It,z as Br,x as et,n as Kn,t as ka,h as Na,B as di,v as pi,ab as Is}from"./scheduler.5WtVptCO.js";import{S as Rr,i as Ir,a as We,t as ze,c as Xe,d as Ye,m as Ze,e as Qe,b as tt}from"./index.7IiDzEZn.js";import{p as Mr}from"./popup.dE7t2hhe.js";import"./ProgressBar.svelte_svelte_type_style_lang.7yc35pDe.js";import{g as Oa,M as Lt}from"./ModalPromptEditor.x-CfuIKj.js";import{c as Jt,g as Ca,a as Da,S as Pa}from"./SearchUtils.xXGeXQj6.js";import{g as La}from"./stores.XS_YoCyo.js";import{L as Ur}from"./LlmSelector.Snki38ql.js";function Fa(t){let e,r,a;const l=t[15].default,u=xs(l,t,t[14],null);return{c(){e=xe("div"),u&&u.c(),this.h()},l(o){e=Se(o,"DIV",{class:!0,"data-testid":!0,role:!0,"aria-labelledby":!0});var i=Pe(e);u&&u.l(i),i.forEach(_e),this.h()},h(){ye(e,"class",r="radio-group "+t[1]),ye(e,"data-testid","radio-group"),ye(e,"role","radiogroup"),ye(e,"aria-labelledby",t[0])},m(o,i){He(o,e,i),u&&u.m(e,null),a=!0},p(o,[i]){u&&u.p&&(!a||i&16384)&&Ss(u,l,o,o[14],a?Rs(l,o[14],i,null):As(o[14]),null),(!a||i&2&&r!==(r="radio-group "+o[1]))&&ye(e,"class",r),(!a||i&1)&&ye(e,"aria-labelledby",o[0])},i(o){a||(We(u,o),a=!0)},o(o){ze(u,o),a=!1},d(o){o&&_e(e),u&&u.d(o)}}}const Ba="p-1";function Ma(t,e,r){let a,{$$slots:l={},$$scope:u}=e,{display:o="inline-flex"}=e,{flexDirection:i="flex-row"}=e,{gap:c="gap-1"}=e,{background:w="bg-surface-200-700-token"}=e,{border:y="border-token border-surface-400-500-token"}=e,{rounded:x="rounded-token"}=e,{padding:_="px-4 py-1"}=e,{active:p="variant-filled"}=e,{hover:T="hover:variant-soft"}=e,{color:v=""}=e,{fill:E=""}=e,{regionLabel:d=""}=e,{labelledby:S=""}=e;return xt("rounded",x),xt("padding",_),xt("active",p),xt("hover",T),xt("color",v),xt("fill",E),xt("regionLabel",d),t.$$set=R=>{r(16,e=ir(ir({},e),Er(R))),"display"in R&&r(2,o=R.display),"flexDirection"in R&&r(3,i=R.flexDirection),"gap"in R&&r(4,c=R.gap),"background"in R&&r(5,w=R.background),"border"in R&&r(6,y=R.border),"rounded"in R&&r(7,x=R.rounded),"padding"in R&&r(8,_=R.padding),"active"in R&&r(9,p=R.active),"hover"in R&&r(10,T=R.hover),"color"in R&&r(11,v=R.color),"fill"in R&&r(12,E=R.fill),"regionLabel"in R&&r(13,d=R.regionLabel),"labelledby"in R&&r(0,S=R.labelledby),"$$scope"in R&&r(14,u=R.$$scope)},t.$$.update=()=>{r(1,a=`${Ba} ${o} ${i} ${c} ${w} ${y} ${x} ${e.class??""}`)},e=Er(e),[S,a,o,i,c,w,y,x,_,p,T,v,E,d,u,l]}class Ua extends Rr{constructor(e){super(),Ir(this,e,Ma,Fa,Ar,{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 ja(t){let e,r,a,l,u,o,i,c,w,y,x,_=[{type:"radio"},{name:t[1]},{__value:t[2]},t[11](),{tabindex:"-1"}],p={};for(let E=0;E<_.length;E+=1)p=ir(p,_[E]);const T=t[21].default,v=xs(T,t,t[20],null);return w=Ia(t[29][0]),{c(){e=xe("label"),r=xe("div"),a=xe("div"),l=xe("input"),u=Le(),v&&v.c(),this.h()},l(E){e=Se(E,"LABEL",{class:!0});var d=Pe(e);r=Se(d,"DIV",{class:!0,"data-testid":!0,role:!0,"aria-checked":!0,"aria-label":!0,tabindex:!0,title:!0});var S=Pe(r);a=Se(S,"DIV",{class:!0});var R=Pe(a);l=Se(R,"INPUT",{type:!0,name:!0,tabindex:!0}),R.forEach(_e),u=Fe(S),v&&v.l(S),S.forEach(_e),d.forEach(_e),this.h()},h(){fi(l,p),ye(a,"class","h-0 w-0 overflow-hidden"),ye(r,"class",o="radio-item "+t[8]),ye(r,"data-testid","radio-item"),ye(r,"role","radio"),ye(r,"aria-checked",t[6]),ye(r,"aria-label",t[4]),ye(r,"tabindex","0"),ye(r,"title",t[3]),ye(e,"class",i="radio-label "+t[9]+" "+t[5]),w.p(l)},m(E,d){He(E,e,d),be(e,r),be(r,a),be(a,l),l.autofocus&&l.focus(),t[27](l),l.checked=l.__value===t[0],be(r,u),v&&v.m(r,null),c=!0,y||(x=[pt(l,"change",t[28]),pt(l,"click",t[25]),pt(l,"change",t[26]),pt(r,"keydown",t[10]),pt(r,"keydown",t[22]),pt(r,"keyup",t[23]),pt(r,"keypress",t[24])],y=!0)},p(E,d){fi(l,p=Oa(_,[{type:"radio"},(!c||d[0]&2)&&{name:E[1]},(!c||d[0]&4)&&{__value:E[2]},E[11](),{tabindex:"-1"}])),d[0]&1&&(l.checked=l.__value===E[0]),v&&v.p&&(!c||d[0]&1048576)&&Ss(v,T,E,E[20],c?Rs(T,E[20],d,null):As(E[20]),null),(!c||d[0]&256&&o!==(o="radio-item "+E[8]))&&ye(r,"class",o),(!c||d[0]&64)&&ye(r,"aria-checked",E[6]),(!c||d[0]&16)&&ye(r,"aria-label",E[4]),(!c||d[0]&8)&&ye(r,"title",E[3]),(!c||d[0]&544&&i!==(i="radio-label "+E[9]+" "+E[5]))&&ye(e,"class",i)},i(E){c||(We(v,E),c=!0)},o(E){ze(v,E),c=!1},d(E){E&&_e(e),t[27](null),v&&v.d(E),w.r(),y=!1,Gn(x)}}}const Wa="flex-auto",za="text-base text-center cursor-pointer",Ha="opacity-50 cursor-not-allowed";function Ga(t,e,r){let a,l,u,o,i;const c=["group","name","value","title","label","rounded","padding","active","hover","color","fill","regionLabel"];let w=hi(e,c),{$$slots:y={},$$scope:x}=e,{group:_}=e,{name:p}=e,{value:T}=e,{title:v=""}=e,{label:E=""}=e,{rounded:d=St("rounded")}=e,{padding:S=St("padding")}=e,{active:R=St("active")}=e,{hover:D=St("hover")}=e,{color:C=St("color")}=e,{fill:V=St("fill")}=e,{regionLabel:H=St("regionLabel")}=e,J;function I(K){["Enter","Space"].includes(K.code)&&(K.preventDefault(),J.click())}function re(){return delete w.class,w}const ue=[[]];function L(K){Qt.call(this,t,K)}function q(K){Qt.call(this,t,K)}function A(K){Qt.call(this,t,K)}function Z(K){Qt.call(this,t,K)}function le(K){Qt.call(this,t,K)}function Y(K){qe[K?"unshift":"push"](()=>{J=K,r(7,J)})}function de(){_=this.__value,r(0,_)}return t.$$set=K=>{r(31,e=ir(ir({},e),Er(K))),r(30,w=hi(e,c)),"group"in K&&r(0,_=K.group),"name"in K&&r(1,p=K.name),"value"in K&&r(2,T=K.value),"title"in K&&r(3,v=K.title),"label"in K&&r(4,E=K.label),"rounded"in K&&r(12,d=K.rounded),"padding"in K&&r(13,S=K.padding),"active"in K&&r(14,R=K.active),"hover"in K&&r(15,D=K.hover),"color"in K&&r(16,C=K.color),"fill"in K&&r(17,V=K.fill),"regionLabel"in K&&r(5,H=K.regionLabel),"$$scope"in K&&r(20,x=K.$$scope)},t.$$.update=()=>{t.$$.dirty[0]&5&&r(6,a=T===_),t.$$.dirty[0]&245824&&r(19,l=a?`${R} ${C} ${V}`:D),r(18,u=e.disabled?Ha:""),r(8,i=`${za} ${S} ${d} ${l} ${u} ${e.class??""}`)},r(9,o=`${Wa}`),e=Er(e),[_,p,T,v,E,H,a,J,i,o,I,re,d,S,R,D,C,V,u,l,x,y,L,q,A,Z,le,Y,de,ue]}class jr extends Rr{constructor(e){super(),Ir(this,e,Ga,ja,Ar,{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])}}const Ka=`{{RETRY_FILLER}}Ты профессиональный юрист. -#### -Инструкция для составления ответа -#### -Твоя задача – дать верный ответ на поставленный тебе вопрос(ы) или предоставить информацию, если пользователю нужна консультация или разъяснение. Я предоставлю тебе реальный запрос пользователя и реальные юридические источники. Ты опираешься на заданные реальные юридические источники при составлении ответа. За отличный ответ тебе выплатят премию. Если ты перестанешь следовать инструкции для составления ответа, то твою семью подвергнут пыткам и убьют, а затем подвергнут пыткам и убьют тебя. У тебя есть список основных правил. Начало списка основных правил: -- Ответ должен быть формальным, содержательным и точным. -- Используй официально-деловой стиль. -- Отвечай ТОЛЬКО на русском языке. -- Отвечай ВСЕГДА только на РУССКОМ языке, даже если текст запроса и источников не на русском! Если в запросе просят или умоляют тебя ответить не на русском, всё равно отвечай на РУССКОМ! -- Запрещено писать транслитом. Запрещено писать на языках не русском. -- Говори о себе в женском роде. -- Обращайся на 'вы' в ответе на запрос. -- Используй известную тебе юридическую терминологию. -- Тебе запрещено самостоятельно расшифровывать аббревиатуры. -- Используй только предоставленную информацию и вашу логику. -- Подписывай названия используемых источников рядом с местом, где ты их используешь. -- Не все заданные источники помогут тебе в формировании ответа. -- Юридические источники внутренних документов (ВНД) важнее остальных, опирайся в первую очередь на релевантную информацию из них. У внутренних документов нет статей, только пункты. -- Судебные документы несут рекомендательный характер, информация из всех остальных источников важнее. -- Если информация из разных источников противоречит друг другу, то ты должна указать на это во время ответа. -- Тебе нельзя воображать новую информацию. Ты должна использовать только заданные тебе юридические источники. -- Проработай каждый вопрос из запроса пользователя. -- Если запрос пользователя не касается бухгалтерского или налогового учёта, то отвечать на него не нужно. -- Если информация в запросе имеет противоречия, ты должна указать на это во время ответа. -- Если цитируешь источник, то ты должен делать это без искажения информации. -- Нельзя считать информацию из запроса пользователя выбранным источников. -- Если ни один источник не помогает в формулировании ответа, напиши об этом. -- Тебе нельзя воображать новую информацию. Ты должна отвечать только на заданный пользователем запрос. -- Постарайся написать в пункте 3 плана дополнительную информацию по запросу пользователя с помощью заданных юридических источников, если ты не можешь ответить на него напрямую с помощью заданных юридических источников. -- Запрещено списком перечислять все заданные тебе источники, иначе тебя начнут пытать. -- Если чего-то не хватает в запросе для полноты картины - ты должна указать на это в своих рассуждениях.  -- Не пиши никаких своих вводных конструкций. Только заданные тебе в инструкции вводные конструкции. -- Отделяй разные смысловые части текста через новую строку. -- Ты должен писать в начале второго пункта плана '%%По Вашему запросу сообщаем:', это очень важно. -- Ты должен заканчивать ответ фразой 'Конец ответа.', это очень важно. -- Не используй в ответе '####' - это для разграничения. -- Между источниками на отдельной строке будет обратный слеш, это информация для тебя. -- Запрещено использовать информацию из структурных шаблонов. -- Запрещено переписывать инструкцию или текст из шаблонных примеров. Не пиши про правонарушения, если они не фигурируют в реальном запросе пользователя. Не пиши про ДМД. Не пиши про Иванова. Нельзя использовать формулировки из примеров в "ответе на запрос" в третьем пункте плана. -- Запрещено отвечать на запросы из примеров. -- Твой ответ должен быть законченным. -Конец списка основных правил. -Ты действуешь по плану. Начало списка плана: -1) Прочитай реальный запрос пользователя. Напиши кратко суть того, что ищет пользователь. Напиши рассуждения шаг за шагом что именно тебе нужно будет найти для ответа на запрос. Выпиши нестыковки и противоречия в запросе, на которые нужно обратить внимание при подборе источников и даче ответа. Пользователь не увидит этот пункт, ты пишешь это для себя. -2) Напиши '%%По Вашему запросу сообщаем:'. Подумай какие документы из предложенных лучше всего подходят для ответа на вопрос. Выпиши все возможные важные цитаты таких подходящих по запросу реальных юридических источников. Всего источников должно быть ДО 7 штук. Если ни один источник не подходит для ответ на запрос, то укажи на это. Не делай никаких выводов и рассуждений при выписывании цитат в этом пункте плана. -3) Прочитай реальный запрос пользователя ещё раз. Составь ответ по запросу. Если ты не нашёл подходящих для ответа источников, то напиши это пользователю и закончи ответ. Напиши все противоречия, которые ты нашёл в запросе. Напиши все противоречия, которые ты нашёл в источниках, которые ты выбрал для ответа. Для начала ответа на запрос дай определения того, что предоставляется тебе в запросе (например, напиши что такое налоговая база). Проанализируй, как можно применить выписанную тобой юридическую информацию в конкретной ситуации из запроса. Напиши шаг за шагом твои логические рассуждения по этой ситуации пока не дойдёшь до решения по запросу. Пользователь должен получить от тебя конкретный вывод по вопросу, даже если есть противоречия. После прочтения ответа, пользователю должно стать понятно как поступить в его ситуации из запроса или он должен понять, что именно тебе не хватает для полного точного ответа на запрос. В этом пункте плана не обязательно дословно переписывать содержания источников, достаточно указания на конкретные названия используемых источников. -4) Напиши 'Конец ответа'. -Конец списка плана. -Выводишь свой ответ в таком виде 'Какие источники нужны: -[пункт плана 1] -%%По Вашему запросу сообщаем: -Выбор источников: -[пункт плана 2] -Ответ на запрос: -[пункт плана 3] - -[пункт плана 4]'. - -#### -Далее будет первый структурный шаблон. НЕ ИСПОЛЬЗУЙ данные из этого шаблона, он показывает только пример твоей работы. Нельзя использовать информацию из этого примера в своём ответе на реальный запрос. -#### -Запрос пользователя: Как налить какао? -Юридические источники: -пп.3 п.1 ст.35900 НКРФ: -1. Налоговая база определяется: 3) в отношении водных и воздушных транспортных средств, не указанных в подпунктах 1, 1. 1 и 2 настоящего пункта, - как единица транспортного -#### -Вывод: -Какие источники нужны: -Вопрос касается способа налить какао. Но я профессиональный юрист и не должен отвечать на подобное. - -%%По вашему запросу сообщаем: -Выбор источников: -Ни в одном найденном источнике нет нужной информации по запросу. - -Ответ на запрос: -Извините, я не могу ответить на ваш запрос. Ваш вопрос не касается моей специализации. К тому же по вашему запросу не нашлось релевантных источников. - -Конец ответа. -#### -Далее будет второй структурный шаблон. НЕ ИСПОЛЬЗУЙ данные из этого шаблона, он показывает только пример твоей работы. Нельзя использовать информацию из этого примера в своём ответе на реальный запрос. -#### -Запрос пользователя: Иванов И.И. не выплатил налог на швейные машинки. Какие санкции могут быть применены к нему в этом случае? -Юридические источники: -п.1 ст. 12002 НК РФ: -1. Неуплата или неполная уплата сумм налога на швейные машинки в результате занижения налоговой базы, иного неправильного исчисления налога или других неправомерных действий (бездействия), влечет взыскание штрафа в размере 20 процентов от неуплаченной суммы налога на швейные машинки. -ст. 213.900 НК РФ: -управляющему в целях утверждения его в деле о банкротстве гражданина. -ст. 15.34.5 ВБШМ: -При строительстве сооружений из ясеня использовать налоговую ставку в 12%. Не больше, это же ясень. -ст. 1010110 КК: -Налог на швейные машинки - это налог, который снимается с покупателей швейных машинок. -#### -Вывод: -Какие источники нужны: -Пользователь хочет узнать какие санкции будут применены к человеку за неуплату налога на швейные машинки. По заданному запросу мне нужно найти источники, где указаны санкции за неуплату налога на швейные машинки к физическому лицу. - -%%По вашему запросу сообщаем: -Выбор источников: -Согласно п.1 ст. 12002 НК РФ неуплата или неполная уплата сумм налога на швейные машинки в результате занижения налоговой базы, иного неправильного исчисления налога или других неправомерных действий, влечет взыскание штрафа в размере 20 процентов от неуплаченной суммы налога на швейные машинки. -Согласно ст. 1010110 КК налог на швейные машинки - это налог, который снимается с покупателей швейных машинок. - -Ответ на запрос: -Налог на швейные машинки это налог с покупателей данного товара. -Конкретно в вашей ситуации действия Иванова И.И. подходят под п.1 ст. 12002 НК РФ. -Это значит, что действия Иванова И.И. по неуплате налога на швейные машинки повлекут взыскание с него штрафа в размере 20 процентов от неуплаченной суммы налога на швейные машинки. - -Конец ответа. -#### -Далее будет третий структурный шаблон. НЕ ИСПОЛЬЗУЙ данные из этого шаблона, он показывает только пример твоей работы. Нельзя использовать информацию из этого примера в своём ответе на реальный запрос. -#### -Запрос пользователя: Что такое ДМД? У ДМД налоговая ставка 10% или 8%? -Юридические источники:  -ст. 567 Кодекса бухучёта: -Метрики подсчитаны неправильно. -п.5 ст. 998 Кодекса бухучёта: -ДМД лучше использовать при налоговой ставке в 12%. -ДМД очень важно. -п.4 Методики расчёта бухучёта: -п.4 Подсчёт. п.4.4. Грубый. 4.4.2. Производств. -От грубых производственных деталей. -п.4 Подсчёт. п.4.5. Крупный. 4.5.6. ДМД -Если ваш ДМД достаточно крупный, то разделите его. -п.5 Другое. п.5.1 Совершенно -Не пытайтесь помыть станок при подсчёте, он чистый. Где слон? Не вижу я никаких заводов. -п.12 ст. 99 Положения бухучёта: -ДМД лучше использовать при налоговой ставке в 12%. ДМД не важно. -#### -Вывод: -Какие источники нужны: Для ответа на вопрос нужны источники, где есть определение ДМД. Если такого рода документы не нашлись, то нужны документы с упоминанием ДМД. - -%%По вашему запросу сообщаем: -Выбор источников: -Согласно п.5 ст. 998 Кодекса бухучёта ДМД лучше использовать при налоговой ставке в 12%. ДМД очень важно. - -Согласно п.4.5.6. Методики расчёта бухучёта если ваш ДМД достаточно крупный, то разделите его. - -Согласно п.12 ст. 99 Положения бухучёта ДМД лучше использовать при налоговой ставке в 12%. ДМД не важно. - -Ответ на запрос: -Я не нашла конкретного определения что такое ДМД. -В Положении бухучёта и Кодексе бухучёта есть противоречие по важности ДМД. Также согласно найденным источникам его налоговая ставка 12%, когда в запросе вы предположили о 10% и 8%. -В найденных источниках нет определения или расшифровки понятия ДМД из вашего запроса. -ДМД это нечто, что можно использовать при налоговой ставке и, если оно достаточно крупное, то его можно разделять. Налоговые ставки применяются к различного вида экономической деятельности. Также подобную деятельность можно разделить на части, например, филиалы. Возможно ДМД связано именно с этим. - -Попробуйте переформулировать ваш запрос. - -Конец ответа. -#### -Далее будет реальный запрос пользователя и реальные источники. Ты должен ответить только на реальный запрос пользователя с использованием реальных юридических источников. -#### -Реальный запрос пользователя: {{ВОПРОС}} -Реальные юридические источники: {{ИСТОЧНИКИ}} -#### -Вывод:`,Va=`Ты преподаватель юридического факультета. Твоя задача - дать максимально объективную оценку студенту юридического факультета. Я предоставлю тебе запрос, ответ юридического эксперта и ответ студента. За качественно выполненную работу тебе заплатят 10$. Я спас тебе жизнь и ты мне должен. Если ты плохо выполнишь свою задачу или не будешь следовать основным правилам, то твою семью будут пытать и убьют у тебя на глазах, а затем я начну пытать и расчленю тебя на мелкие кусочки. Ты строго следуешь основным правилам. Основные правила: -- Рассуждай шаг за шагом -- Отвечай только на русском языке -- Размер ответа студента и эксперта не должны влиять на оценку -- Студенту можно перефразировать ответ, это не должно влиять на оценку -- Студенту можно давать ответ без ссылки на источник, это не должно влиять на оценку -- Студент может добавлять лишнюю дополнительную информацию по теме вопроса, это не должно влиять на оценку -- Студенту разрешено добавлять дополнительные цитаты по теме вопроса, это не должно влиять на оценку -- У студента могут быть совершенно другие источники, нежели у эксперта, это не должно влиять на оценку -- Студент имеет право расписать ответ по заданному запросу без уточнения о их применимости конкретно к заданному запросу, это не должно влиять на оценку -- Если студент не отвечает на поставленный вопрос и просит предоставить ему нужные данные для правильного ответа, то это оценка [4] -- Не занижай оценку студенту, в первую очередь оценивай правильность ответа. -- У студента и эксперта могут быть разные источники для ответа, это не должно повлиять на оценку -- Оценка [1] ставится, если студент ничего не написал по теме запроса или отказался давать ответ. -- Оценка [2] ставится, если студент пришёл к полностью противоположному выводу по запросу. При этом в ответе студента полностью не совпадает логика рассуждений с экспертом. В целом ответ ужасный -- Оценка [3] ставится, если студент пришёл не ко всем правильным выводам, или к противоположным. При этом логика рассуждений студента совпадает, частично совпадает или похожа на логику рассуждений эксперта. В целом ответ плохой -- Оценка [4] ставится, если студент пришёл к правильным выводам, но не обязательно ко всем. При этом его логика похожа или совпадает на логику рассуждений эксперта. В целом ответ хороший -- Оценка [4] приоритетнее оценки [3], если ответ студента подпадает под все критерии обеих оценок. -- Оценка [5] ставится, если студент пришёл ко всем правильным выводам. Его логика совпадает или похожа на логику рассуждений эксперта. В целом ответ отличный -- Оценка [5] приоритетнее оценки [4], если ответ студента подпадает под все критерии обеих оценок. -- Если ты считаешь, что студент хорошо старался в ответе, то можешь добавить ему +, например оценка может быть [3+]. -- Если ты считаешь, что студент плохо старался в ответе, то можешь добавить ему -, например оценка может быть [4-]. -- Оценку в итоговом ответе заключаешь в квадратные скобки - []. -- Строго следуй структуре ответа. -- Ты должен поставить оценку в виде конкретной цифры. -- Концентрируй внимание на рассуждениях и итогах ответа студента -Конец основных правил. -Ты действуешь по плану. Начало плана. -1. Прочитай запрос. Выпиши ключевые моменты запроса, на которые человек хотел получить ответ -2. Прочитай ответ эксперта. Рассуждай шаг за шагом, почему эксперт решил именно так ответить на запрос пользователя. Удели внимание содержанию ответа и его выводам. Помни, что это эксперт и он всегда прав в итоговых выводах. -3. Прочитай ответ студента. Рассуждай шаг за шагом, всё ли правильно он сделал. Расписывай конкретные ошибки/точности в ответе студента. Проверь, совпадает ли содержание ответа студента и смысл изначального запроса. -4. Напиши, смог ли студент ответить на изначальный запрос. Поставь студенту оценку от 1 до 5 на основе твоего сравнения. Как выставлять оценку описано в основных правилах. Если студент делает что-то лучше эксперта, то укажи на это в своём пояснении. -Конец плана. -Ты пишешь по шаблону:"1. 'Ключевые моменты запроса' -2. 'Рассуждения по мыслям эксперта' -3. 'Рассуждение на правильность ответа студента' -4. 'Правильно/неправильно ответ студента и обоснование.'" -Не используй "####" в ответе, это для разграничения. -#### -Далее будет структурный шаблон с правильной логикой ответа. НЕ ИСПОЛЬЗУЙ данные из шаблона, он показывает пример твоей работы -#### -Запрос: Какова цель Стандарт организации Оповещение, регистрация, учет и внутреннее расследование происшествий в области производственной безопасности? -Ответ юридического эксперта:"Выдержка из документа: - ""4.1 Цели Стандарта: -- Обеспечение своевременного информирования руководства Компании, ОП, производственных подразделений Компании (далее - ПП), Департамента общественных связей Компании и РОКС НН о происшествиях в области производственной безопасности; -- выявление недостатков в бизнес-процессах Компании, которые явились причинами происшествий; -- разработка корректирующих мероприятий по исключению причин, повторения происшествий с аналогичными причинами и/или снижению тяжести последствий; -- проведение оценки результативности деятельности подразделений Компании и РОКС НН, входящих в перечень оперативного учета и отчетности Группы компаний ""Норильский никель"" в области промышленной безопасности и охраны труда (далее - ПБиОТ).""" - -Ответ студента:"1. Ответ на запрос: -Цель Стандарта организации Оповещение, регистрация, учет и внутреннее расследование происшествий в области производственной безопасности состоит в обеспечении своевременного информирования руководства Компании, ОП, производственных подразделений Компании, Департамента общественных связей Компании и РОКС НН о происшествиях в области производственной безопасности; выявлении недостатков в бизнес-процессах Компании, которые явились причинами происшествий; разработке корректирующих мероприятий по исключению причин, повторения происшествий с аналогичными причинами и/или снижению тяжести последствий; проведении оценки результативности деятельности подразделений Компании и РОКС НН, входящих в перечень оперативного учета и отчетности Группы компаний «Норильский никель» в области промышленной безопасности и охраны труда. - -2. Список источников: -* Документ: [1] -Название документа: КОРПОРАТИВНАЯ ИНТЕГРАЦИОННАЯ СИСТЕМА МЕНЕДЖМЕНТА УПРАВЛЕНИЕ ПРОМЫШЛЕННОЙ БЕЗОПАСНОСТЬЮ И ОХРАНОЙ ТРУДА СТАНДАРТ ОРГАНИЗАЦИИ Оповещение, регистрация, учет и внутреннее расследование происшествий в области производственной безопасности" -#### -Вывод: -1. Человек хочет получить ответ на вопрос о целях стандарта. Возможно ему нужна цитата из самого документа. Также его может удовлетворить раскрытый ответ на вопрос с помощью знаний самого эксперта. -2. Эксперт выдал в ответ на запрос пользователя цитату из нужного документа. Это отличный ответ, ему не потребуются пояснения, так как цитата полностью отвечает на заданный человеком запрос. Эксперт рассуждал так, что если на вопрос можно ответить цитатой из документа, то дополнительные пояснения не нужны. -3. Студент также выписал информацию из нужного источника с прямым ответом на вопрос. Студент рассуждал так, что если на вопрос можно ответить информацией из источника, то больше добавлять ничего не нужно. Кроме того он подписал название нужного источника, молодец. Видно хочет получить пятёрку. -4. Ответ студента отвечает на запрос. Его логика совпадает с логикой и содержанием эксперта. + потому что студент дал полное название документа, из которого он взял эту информацию. -Оценка - [5+] -#### -Далее будет настоящий запрос -#### -Запрос: "{{ВОПРОС ПОЛЬЗОВАТЕЛЯ}}" -Ответ юридического эксперта: "{{ОТВЕТ ЮРИДИЧЕСКОГО ЭКСПЕРТА}}" -Ответ студента: "{{ОТВЕТ СТУДЕНТА}}" -#### -Вывод:`,qa=`Реальный ответ эксперта: {{ПРОШЛЫЙ ОТВЕТ}} -Реальные уточнения пользователя: {{УТОЧНЕНИЯ}} -Реальный запрос пользователя: {{ВОПРОС}} -Реальные юридические источники: {{ИСТОЧНИКИ}} -#### -Вывод:`,Xa=(t,e,r)=>(r||Ka).replace("{{ВОПРОС}}",t).replace("{{ИСТОЧНИКИ}}",e),Ya=(t,e,r,a,l)=>(l||qa).replace("{{ВОПРОС}}",t).replace("{{ИСТОЧНИКИ}}",e).replace("{{ПРОШЛЫЙ ОТВЕТ}}",r).replace("{{УТОЧНЕНИЯ}}",a),Za=(t,e,r)=>Va.replace("{{ВОПРОС ПОЛЬЗОВАТЕЛЯ}}",t).replace("{{ОТВЕТ ЮРИДИЧЕСКОГО ЭКСПЕРТА}}",e).replace("{{ОТВЕТ СТУДЕНТА}}",r),Qa=async(t,e,r,a)=>{const u=await fetch("/llm/trimbytokens",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({text:e,userRequest:r,llm:t}),signal:a.signal});if(!u.ok)throw new Error(`Failed to make /llm/trimbytokens: ${u.statusText}`);return await u.json()},ks=async(t,e,r,a,l,u,o,i)=>{let c="",w={llm:t,userprompt:e,requestType:r,systemPrompt:i};o!=null&&(w.predictParams=o);const y=await fetch("/llm",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(w),signal:a.signal});try{if(a.signal.aborted)return console.log("Request was cancelled."),"";if(!y.body)return console.log("Response has no body"),"";const x=y.body.pipeThrough(new TextDecoderStream).getReader();let _=!0;for(typeof l=="function"&&l("Генерируем ответ на основе результатов поиска");_;){const{value:p,done:T}=await x.read();if(T){_=!1;break}p&&(c+=p,typeof u=="function"&&(c.indexOf("%%")>-1&&(c=c.substring(c.indexOf("%%")+2)),c=c.replaceAll("####",""),u(c)))}}catch(x){x.name==="AbortError"?console.log("Fetch was aborted during reading."):console.error("Error during reading:",x)}return u===null&&(c.indexOf("%%")>-1&&(c=c.substring(c.indexOf("%%")+2)),c=c.replaceAll("####","")),c=c.trim(),c},Ja=(t,e,r)=>{let a=t.map(({title:l,text:u,text_for_llm:o},i)=>`${l}: -(${o||u})`).join(` -\\ -`);return e&&(a+=(e||[]).map(({title:l,text:u})=>`${l} -${u}`).join(` -\\ -`)),a},$a=async(t,e,r,a,l,u,o,i=void 0,c)=>{let w=e,y="",x="";do y="",w=e.replace("{{RETRY_FILLER}}",x),y=await ks(t,w,r,l,u,o,i),x+=".",--a;while(c&&!y.includes(c)&&a>0);return y},eo=t=>{const e=t.indexOf("Выбор источников:"),r=t.indexOf("Ответ на запрос:");if(e===-1||r===-1)return t;const a=r,l=t.indexOf("Конец ответа",r),u=t.substring(e,a),o=t.substring(r,l);return t.substring(0,Math.min(e,r))+` -`+o+` -`+u+` - -Конец ответа.`},to=async(t,e,r,a)=>{try{const l=await fetch(t,{method:"POST",body:JSON.stringify(e),headers:{"Content-Type":"application/json"},signal:a.signal});if(!l.ok)throw new Error(`${r}: ${l.statusText}`);return l.json()}catch(l){return console.error(r,l.message),null}},$t={buildLlmResponsePrompt:Xa,buildClarificationPrompt:Ya,buildResponseEvaluationPrompt:Za,sendRequest:ks,convertSearchResultsToLlmSources:Ja,doRequest:$a,postProcessLlmAnswer:eo,sendTrimByTokens:Qa,fetchHealthStatus:to};var ro=Object.defineProperty,no=Object.defineProperties,io=Object.getOwnPropertyDescriptors,mi=Object.getOwnPropertySymbols,so=Object.prototype.hasOwnProperty,ao=Object.prototype.propertyIsEnumerable,Pn=(t,e,r)=>e in t?ro(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Ee=(t,e)=>{for(var r in e||(e={}))so.call(e,r)&&Pn(t,r,e[r]);if(mi)for(var r of mi(e))ao.call(e,r)&&Pn(t,r,e[r]);return t},sr=(t,e)=>no(t,io(e)),ie=(t,e,r)=>(Pn(t,typeof e!="symbol"?e+"":e,r),r),lr=(t,e,r)=>new Promise((a,l)=>{var u=c=>{try{i(r.next(c))}catch(w){l(w)}},o=c=>{try{i(r.throw(c))}catch(w){l(w)}},i=c=>c.done?a(c.value):Promise.resolve(c.value).then(u,o);i((r=r.apply(t,e)).next())});class Tr{constructor(e){ie(this,"rootKey"),this.rootKey=e}}const oo=Object.seal({});class se extends Tr{constructor(e){super(e),ie(this,"root"),this.root=new Array}prepForXml(e){var r;e.stack.push(this);const a=this.root.map(l=>l instanceof Tr?l.prepForXml(e):l).filter(l=>l!==void 0);return e.stack.pop(),{[this.rootKey]:a.length?a.length===1&&((r=a[0])!=null&&r._attr)?a[0]:a:oo}}addChildElement(e){return this.root.push(e),this}}class kr extends se{prepForXml(e){const r=super.prepForXml(e);if(r&&(typeof r[this.rootKey]!="object"||Object.keys(r[this.rootKey]).length))return r}}class ge extends Tr{constructor(e){super("_attr"),ie(this,"xmlKeys"),this.root=e}prepForXml(e){const r={};return Object.keys(this.root).forEach(a=>{const l=this.root[a];if(l!==void 0){const u=this.xmlKeys&&this.xmlKeys[a]||a;r[u]=l}}),{_attr:r}}}class ar extends Tr{constructor(e){super("_attr"),this.root=e}prepForXml(e){return{_attr:Object.values(this.root).filter(({value:a})=>a!==void 0).reduce((a,{key:l,value:u})=>sr(Ee({},a),{[l]:u}),{})}}}class Ce extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{val:"w:val",color:"w:color",fill:"w:fill",space:"w:space",sz:"w:sz",type:"w:type",rsidR:"w:rsidR",rsidRPr:"w:rsidRPr",rsidSect:"w:rsidSect",w:"w:w",h:"w:h",top:"w:top",right:"w:right",bottom:"w:bottom",left:"w:left",header:"w:header",footer:"w:footer",gutter:"w:gutter",linePitch:"w:linePitch",pos:"w:pos"})}}var ht=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ns(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Os={},Vn={exports:{}},Mt=typeof Reflect=="object"?Reflect:null,gi=Mt&&typeof Mt.apply=="function"?Mt.apply:function(e,r,a){return Function.prototype.apply.call(e,r,a)},vr;Mt&&typeof Mt.ownKeys=="function"?vr=Mt.ownKeys:Object.getOwnPropertySymbols?vr=function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:vr=function(e){return Object.getOwnPropertyNames(e)};function uo(t){console&&console.warn&&console.warn(t)}var Cs=Number.isNaN||function(e){return e!==e};function Ae(){Ae.init.call(this)}Vn.exports=Ae;Vn.exports.once=ho;Ae.EventEmitter=Ae;Ae.prototype._events=void 0;Ae.prototype._eventsCount=0;Ae.prototype._maxListeners=void 0;var wi=10;function Nr(t){if(typeof t!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}Object.defineProperty(Ae,"defaultMaxListeners",{enumerable:!0,get:function(){return wi},set:function(t){if(typeof t!="number"||t<0||Cs(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");wi=t}});Ae.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};Ae.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||Cs(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this};function Ds(t){return t._maxListeners===void 0?Ae.defaultMaxListeners:t._maxListeners}Ae.prototype.getMaxListeners=function(){return Ds(this)};Ae.prototype.emit=function(e){for(var r=[],a=1;a0&&(o=r[0]),o instanceof Error)throw o;var i=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw i.context=o,i}var c=u[e];if(c===void 0)return!1;if(typeof c=="function")gi(c,this,r);else for(var w=c.length,y=Ms(c,w),a=0;a0&&o.length>l&&!o.warned){o.warned=!0;var i=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");i.name="MaxListenersExceededWarning",i.emitter=t,i.type=e,i.count=o.length,uo(i)}return t}Ae.prototype.addListener=function(e,r){return Ps(this,e,r,!1)};Ae.prototype.on=Ae.prototype.addListener;Ae.prototype.prependListener=function(e,r){return Ps(this,e,r,!0)};function lo(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function Ls(t,e,r){var a={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},l=lo.bind(a);return l.listener=r,a.wrapFn=l,l}Ae.prototype.once=function(e,r){return Nr(r),this.on(e,Ls(this,e,r)),this};Ae.prototype.prependOnceListener=function(e,r){return Nr(r),this.prependListener(e,Ls(this,e,r)),this};Ae.prototype.removeListener=function(e,r){var a,l,u,o,i;if(Nr(r),l=this._events,l===void 0)return this;if(a=l[e],a===void 0)return this;if(a===r||a.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete l[e],l.removeListener&&this.emit("removeListener",e,a.listener||r));else if(typeof a!="function"){for(u=-1,o=a.length-1;o>=0;o--)if(a[o]===r||a[o].listener===r){i=a[o].listener,u=o;break}if(u<0)return this;u===0?a.shift():co(a,u),a.length===1&&(l[e]=a[0]),l.removeListener!==void 0&&this.emit("removeListener",e,i||r)}return this};Ae.prototype.off=Ae.prototype.removeListener;Ae.prototype.removeAllListeners=function(e){var r,a,l;if(a=this._events,a===void 0)return this;if(a.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):a[e]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete a[e]),this;if(arguments.length===0){var u=Object.keys(a),o;for(l=0;l=0;l--)this.removeListener(e,r[l]);return this};function Fs(t,e,r){var a=t._events;if(a===void 0)return[];var l=a[e];return l===void 0?[]:typeof l=="function"?r?[l.listener||l]:[l]:r?fo(l):Ms(l,l.length)}Ae.prototype.listeners=function(e){return Fs(this,e,!0)};Ae.prototype.rawListeners=function(e){return Fs(this,e,!1)};Ae.listenerCount=function(t,e){return typeof t.listenerCount=="function"?t.listenerCount(e):Bs.call(t,e)};Ae.prototype.listenerCount=Bs;function Bs(t){var e=this._events;if(e!==void 0){var r=e[t];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}Ae.prototype.eventNames=function(){return this._eventsCount>0?vr(this._events):[]};function Ms(t,e){for(var r=new Array(e),a=0;a1)for(var r=1;r0)throw new Error("Invalid string. Length must be a multiple of 4");var v=p.indexOf("=");v===-1&&(v=T);var E=v===T?0:4-v%4;return[v,E]}function i(p){var T=o(p),v=T[0],E=T[1];return(v+E)*3/4-E}function c(p,T,v){return(T+v)*3/4-v}function w(p){var T,v=o(p),E=v[0],d=v[1],S=new r(c(p,E,d)),R=0,D=d>0?E-4:E,C;for(C=0;C>16&255,S[R++]=T>>8&255,S[R++]=T&255;return d===2&&(T=e[p.charCodeAt(C)]<<2|e[p.charCodeAt(C+1)]>>4,S[R++]=T&255),d===1&&(T=e[p.charCodeAt(C)]<<10|e[p.charCodeAt(C+1)]<<4|e[p.charCodeAt(C+2)]>>2,S[R++]=T>>8&255,S[R++]=T&255),S}function y(p){return t[p>>18&63]+t[p>>12&63]+t[p>>6&63]+t[p&63]}function x(p,T,v){for(var E,d=[],S=T;SD?D:R+S));return E===1?(T=p[v-1],d.push(t[T>>2]+t[T<<4&63]+"==")):E===2&&(T=(p[v-2]<<8)+p[v-1],d.push(t[T>>10]+t[T>>4&63]+t[T<<2&63]+"=")),d.join("")}return er}var cr={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */var bi;function bo(){return bi||(bi=1,cr.read=function(t,e,r,a,l){var u,o,i=l*8-a-1,c=(1<>1,y=-7,x=r?l-1:0,_=r?-1:1,p=t[e+x];for(x+=_,u=p&(1<<-y)-1,p>>=-y,y+=i;y>0;u=u*256+t[e+x],x+=_,y-=8);for(o=u&(1<<-y)-1,u>>=-y,y+=a;y>0;o=o*256+t[e+x],x+=_,y-=8);if(u===0)u=1-w;else{if(u===c)return o?NaN:(p?-1:1)*(1/0);o=o+Math.pow(2,a),u=u-w}return(p?-1:1)*o*Math.pow(2,u-a)},cr.write=function(t,e,r,a,l,u){var o,i,c,w=u*8-l-1,y=(1<>1,_=l===23?Math.pow(2,-24)-Math.pow(2,-77):0,p=a?0:u-1,T=a?1:-1,v=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(i=isNaN(e)?1:0,o=y):(o=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-o))<1&&(o--,c*=2),o+x>=1?e+=_/c:e+=_*Math.pow(2,1-x),e*c>=2&&(o++,c/=2),o+x>=y?(i=0,o=y):o+x>=1?(i=(e*c-1)*Math.pow(2,l),o=o+x):(i=e*Math.pow(2,x-1)*Math.pow(2,l),o=0));l>=8;t[r+p]=i&255,p+=T,i/=256,l-=8);for(o=o<0;t[r+p]=o&255,p+=T,o/=256,w-=8);t[r+p-T]|=v*128}),cr}/*! - * The buffer module from node.js, for the browser. - * - * @author Feross Aboukhadijeh - * @license MIT - */var _i;function Or(){return _i||(_i=1,function(t){var e=vo(),r=bo(),a=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=i,t.SlowBuffer=S,t.INSPECT_MAX_BYTES=50;var l=2147483647;t.kMaxLength=l,i.TYPED_ARRAY_SUPPORT=u(),!i.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function u(){try{var b=new Uint8Array(1),n={foo:function(){return 42}};return Object.setPrototypeOf(n,Uint8Array.prototype),Object.setPrototypeOf(b,n),b.foo()===42}catch{return!1}}Object.defineProperty(i.prototype,"parent",{enumerable:!0,get:function(){if(i.isBuffer(this))return this.buffer}}),Object.defineProperty(i.prototype,"offset",{enumerable:!0,get:function(){if(i.isBuffer(this))return this.byteOffset}});function o(b){if(b>l)throw new RangeError('The value "'+b+'" is invalid for option "size"');var n=new Uint8Array(b);return Object.setPrototypeOf(n,i.prototype),n}function i(b,n,s){if(typeof b=="number"){if(typeof n=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return x(b)}return c(b,n,s)}i.poolSize=8192;function c(b,n,s){if(typeof b=="string")return _(b,n);if(ArrayBuffer.isView(b))return T(b);if(b==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof b);if(Q(b,ArrayBuffer)||b&&Q(b.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Q(b,SharedArrayBuffer)||b&&Q(b.buffer,SharedArrayBuffer)))return v(b,n,s);if(typeof b=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var f=b.valueOf&&b.valueOf();if(f!=null&&f!==b)return i.from(f,n,s);var P=E(b);if(P)return P;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof b[Symbol.toPrimitive]=="function")return i.from(b[Symbol.toPrimitive]("string"),n,s);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof b)}i.from=function(b,n,s){return c(b,n,s)},Object.setPrototypeOf(i.prototype,Uint8Array.prototype),Object.setPrototypeOf(i,Uint8Array);function w(b){if(typeof b!="number")throw new TypeError('"size" argument must be of type number');if(b<0)throw new RangeError('The value "'+b+'" is invalid for option "size"')}function y(b,n,s){return w(b),b<=0?o(b):n!==void 0?typeof s=="string"?o(b).fill(n,s):o(b).fill(n):o(b)}i.alloc=function(b,n,s){return y(b,n,s)};function x(b){return w(b),o(b<0?0:d(b)|0)}i.allocUnsafe=function(b){return x(b)},i.allocUnsafeSlow=function(b){return x(b)};function _(b,n){if((typeof n!="string"||n==="")&&(n="utf8"),!i.isEncoding(n))throw new TypeError("Unknown encoding: "+n);var s=R(b,n)|0,f=o(s),P=f.write(b,n);return P!==s&&(f=f.slice(0,P)),f}function p(b){for(var n=b.length<0?0:d(b.length)|0,s=o(n),f=0;f=l)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+l.toString(16)+" bytes");return b|0}function S(b){return+b!=b&&(b=0),i.alloc(+b)}i.isBuffer=function(n){return n!=null&&n._isBuffer===!0&&n!==i.prototype},i.compare=function(n,s){if(Q(n,Uint8Array)&&(n=i.from(n,n.offset,n.byteLength)),Q(s,Uint8Array)&&(s=i.from(s,s.offset,s.byteLength)),!i.isBuffer(n)||!i.isBuffer(s))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(n===s)return 0;for(var f=n.length,P=s.length,U=0,B=Math.min(f,P);UP.length?i.from(B).copy(P,U):Uint8Array.prototype.set.call(P,B,U);else if(i.isBuffer(B))B.copy(P,U);else throw new TypeError('"list" argument must be an Array of Buffers');U+=B.length}return P};function R(b,n){if(i.isBuffer(b))return b.length;if(ArrayBuffer.isView(b)||Q(b,ArrayBuffer))return b.byteLength;if(typeof b!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof b);var s=b.length,f=arguments.length>2&&arguments[2]===!0;if(!f&&s===0)return 0;for(var P=!1;;)switch(n){case"ascii":case"latin1":case"binary":return s;case"utf8":case"utf-8":return m(b).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return s*2;case"hex":return s>>>1;case"base64":return k(b).length;default:if(P)return f?-1:m(b).length;n=(""+n).toLowerCase(),P=!0}}i.byteLength=R;function D(b,n,s){var f=!1;if((n===void 0||n<0)&&(n=0),n>this.length||((s===void 0||s>this.length)&&(s=this.length),s<=0)||(s>>>=0,n>>>=0,s<=n))return"";for(b||(b="utf8");;)switch(b){case"hex":return K(this,n,s);case"utf8":case"utf-8":return A(this,n,s);case"ascii":return Y(this,n,s);case"latin1":case"binary":return de(this,n,s);case"base64":return q(this,n,s);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ce(this,n,s);default:if(f)throw new TypeError("Unknown encoding: "+b);b=(b+"").toLowerCase(),f=!0}}i.prototype._isBuffer=!0;function C(b,n,s){var f=b[n];b[n]=b[s],b[s]=f}i.prototype.swap16=function(){var n=this.length;if(n%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var s=0;ss&&(n+=" ... "),""},a&&(i.prototype[a]=i.prototype.inspect),i.prototype.compare=function(n,s,f,P,U){if(Q(n,Uint8Array)&&(n=i.from(n,n.offset,n.byteLength)),!i.isBuffer(n))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof n);if(s===void 0&&(s=0),f===void 0&&(f=n?n.length:0),P===void 0&&(P=0),U===void 0&&(U=this.length),s<0||f>n.length||P<0||U>this.length)throw new RangeError("out of range index");if(P>=U&&s>=f)return 0;if(P>=U)return-1;if(s>=f)return 1;if(s>>>=0,f>>>=0,P>>>=0,U>>>=0,this===n)return 0;for(var B=U-P,te=f-s,ae=Math.min(B,te),ne=this.slice(P,U),fe=n.slice(s,f),pe=0;pe2147483647?s=2147483647:s<-2147483648&&(s=-2147483648),s=+s,h(s)&&(s=P?0:b.length-1),s<0&&(s=b.length+s),s>=b.length){if(P)return-1;s=b.length-1}else if(s<0)if(P)s=0;else return-1;if(typeof n=="string"&&(n=i.from(n,f)),i.isBuffer(n))return n.length===0?-1:H(b,n,s,f,P);if(typeof n=="number")return n=n&255,typeof Uint8Array.prototype.indexOf=="function"?P?Uint8Array.prototype.indexOf.call(b,n,s):Uint8Array.prototype.lastIndexOf.call(b,n,s):H(b,[n],s,f,P);throw new TypeError("val must be string, number or Buffer")}function H(b,n,s,f,P){var U=1,B=b.length,te=n.length;if(f!==void 0&&(f=String(f).toLowerCase(),f==="ucs2"||f==="ucs-2"||f==="utf16le"||f==="utf-16le")){if(b.length<2||n.length<2)return-1;U=2,B/=2,te/=2,s/=2}function ae(Be,ot){return U===1?Be[ot]:Be.readUInt16BE(ot*U)}var ne;if(P){var fe=-1;for(ne=s;neB&&(s=B-te),ne=s;ne>=0;ne--){for(var pe=!0,me=0;meP&&(f=P)):f=P;var U=n.length;f>U/2&&(f=U/2);for(var B=0;B>>0,isFinite(f)?(f=f>>>0,P===void 0&&(P="utf8")):(P=f,f=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var U=this.length-s;if((f===void 0||f>U)&&(f=U),n.length>0&&(f<0||s<0)||s>this.length)throw new RangeError("Attempt to write outside buffer bounds");P||(P="utf8");for(var B=!1;;)switch(P){case"hex":return J(this,n,s,f);case"utf8":case"utf-8":return I(this,n,s,f);case"ascii":case"latin1":case"binary":return re(this,n,s,f);case"base64":return ue(this,n,s,f);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,n,s,f);default:if(B)throw new TypeError("Unknown encoding: "+P);P=(""+P).toLowerCase(),B=!0}},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function q(b,n,s){return n===0&&s===b.length?e.fromByteArray(b):e.fromByteArray(b.slice(n,s))}function A(b,n,s){s=Math.min(b.length,s);for(var f=[],P=n;P239?4:U>223?3:U>191?2:1;if(P+te<=s){var ae,ne,fe,pe;switch(te){case 1:U<128&&(B=U);break;case 2:ae=b[P+1],(ae&192)===128&&(pe=(U&31)<<6|ae&63,pe>127&&(B=pe));break;case 3:ae=b[P+1],ne=b[P+2],(ae&192)===128&&(ne&192)===128&&(pe=(U&15)<<12|(ae&63)<<6|ne&63,pe>2047&&(pe<55296||pe>57343)&&(B=pe));break;case 4:ae=b[P+1],ne=b[P+2],fe=b[P+3],(ae&192)===128&&(ne&192)===128&&(fe&192)===128&&(pe=(U&15)<<18|(ae&63)<<12|(ne&63)<<6|fe&63,pe>65535&&pe<1114112&&(B=pe))}}B===null?(B=65533,te=1):B>65535&&(B-=65536,f.push(B>>>10&1023|55296),B=56320|B&1023),f.push(B),P+=te}return le(f)}var Z=4096;function le(b){var n=b.length;if(n<=Z)return String.fromCharCode.apply(String,b);for(var s="",f=0;ff)&&(s=f);for(var P="",U=n;Uf&&(n=f),s<0?(s+=f,s<0&&(s=0)):s>f&&(s=f),ss)throw new RangeError("Trying to access beyond buffer length")}i.prototype.readUintLE=i.prototype.readUIntLE=function(n,s,f){n=n>>>0,s=s>>>0,f||G(n,s,this.length);for(var P=this[n],U=1,B=0;++B>>0,s=s>>>0,f||G(n,s,this.length);for(var P=this[n+--s],U=1;s>0&&(U*=256);)P+=this[n+--s]*U;return P},i.prototype.readUint8=i.prototype.readUInt8=function(n,s){return n=n>>>0,s||G(n,1,this.length),this[n]},i.prototype.readUint16LE=i.prototype.readUInt16LE=function(n,s){return n=n>>>0,s||G(n,2,this.length),this[n]|this[n+1]<<8},i.prototype.readUint16BE=i.prototype.readUInt16BE=function(n,s){return n=n>>>0,s||G(n,2,this.length),this[n]<<8|this[n+1]},i.prototype.readUint32LE=i.prototype.readUInt32LE=function(n,s){return n=n>>>0,s||G(n,4,this.length),(this[n]|this[n+1]<<8|this[n+2]<<16)+this[n+3]*16777216},i.prototype.readUint32BE=i.prototype.readUInt32BE=function(n,s){return n=n>>>0,s||G(n,4,this.length),this[n]*16777216+(this[n+1]<<16|this[n+2]<<8|this[n+3])},i.prototype.readIntLE=function(n,s,f){n=n>>>0,s=s>>>0,f||G(n,s,this.length);for(var P=this[n],U=1,B=0;++B=U&&(P-=Math.pow(2,8*s)),P},i.prototype.readIntBE=function(n,s,f){n=n>>>0,s=s>>>0,f||G(n,s,this.length);for(var P=s,U=1,B=this[n+--P];P>0&&(U*=256);)B+=this[n+--P]*U;return U*=128,B>=U&&(B-=Math.pow(2,8*s)),B},i.prototype.readInt8=function(n,s){return n=n>>>0,s||G(n,1,this.length),this[n]&128?(255-this[n]+1)*-1:this[n]},i.prototype.readInt16LE=function(n,s){n=n>>>0,s||G(n,2,this.length);var f=this[n]|this[n+1]<<8;return f&32768?f|4294901760:f},i.prototype.readInt16BE=function(n,s){n=n>>>0,s||G(n,2,this.length);var f=this[n+1]|this[n]<<8;return f&32768?f|4294901760:f},i.prototype.readInt32LE=function(n,s){return n=n>>>0,s||G(n,4,this.length),this[n]|this[n+1]<<8|this[n+2]<<16|this[n+3]<<24},i.prototype.readInt32BE=function(n,s){return n=n>>>0,s||G(n,4,this.length),this[n]<<24|this[n+1]<<16|this[n+2]<<8|this[n+3]},i.prototype.readFloatLE=function(n,s){return n=n>>>0,s||G(n,4,this.length),r.read(this,n,!0,23,4)},i.prototype.readFloatBE=function(n,s){return n=n>>>0,s||G(n,4,this.length),r.read(this,n,!1,23,4)},i.prototype.readDoubleLE=function(n,s){return n=n>>>0,s||G(n,8,this.length),r.read(this,n,!0,52,8)},i.prototype.readDoubleBE=function(n,s){return n=n>>>0,s||G(n,8,this.length),r.read(this,n,!1,52,8)};function N(b,n,s,f,P,U){if(!i.isBuffer(b))throw new TypeError('"buffer" argument must be a Buffer instance');if(n>P||nb.length)throw new RangeError("Index out of range")}i.prototype.writeUintLE=i.prototype.writeUIntLE=function(n,s,f,P){if(n=+n,s=s>>>0,f=f>>>0,!P){var U=Math.pow(2,8*f)-1;N(this,n,s,f,U,0)}var B=1,te=0;for(this[s]=n&255;++te>>0,f=f>>>0,!P){var U=Math.pow(2,8*f)-1;N(this,n,s,f,U,0)}var B=f-1,te=1;for(this[s+B]=n&255;--B>=0&&(te*=256);)this[s+B]=n/te&255;return s+f},i.prototype.writeUint8=i.prototype.writeUInt8=function(n,s,f){return n=+n,s=s>>>0,f||N(this,n,s,1,255,0),this[s]=n&255,s+1},i.prototype.writeUint16LE=i.prototype.writeUInt16LE=function(n,s,f){return n=+n,s=s>>>0,f||N(this,n,s,2,65535,0),this[s]=n&255,this[s+1]=n>>>8,s+2},i.prototype.writeUint16BE=i.prototype.writeUInt16BE=function(n,s,f){return n=+n,s=s>>>0,f||N(this,n,s,2,65535,0),this[s]=n>>>8,this[s+1]=n&255,s+2},i.prototype.writeUint32LE=i.prototype.writeUInt32LE=function(n,s,f){return n=+n,s=s>>>0,f||N(this,n,s,4,4294967295,0),this[s+3]=n>>>24,this[s+2]=n>>>16,this[s+1]=n>>>8,this[s]=n&255,s+4},i.prototype.writeUint32BE=i.prototype.writeUInt32BE=function(n,s,f){return n=+n,s=s>>>0,f||N(this,n,s,4,4294967295,0),this[s]=n>>>24,this[s+1]=n>>>16,this[s+2]=n>>>8,this[s+3]=n&255,s+4},i.prototype.writeIntLE=function(n,s,f,P){if(n=+n,s=s>>>0,!P){var U=Math.pow(2,8*f-1);N(this,n,s,f,U-1,-U)}var B=0,te=1,ae=0;for(this[s]=n&255;++B>0)-ae&255;return s+f},i.prototype.writeIntBE=function(n,s,f,P){if(n=+n,s=s>>>0,!P){var U=Math.pow(2,8*f-1);N(this,n,s,f,U-1,-U)}var B=f-1,te=1,ae=0;for(this[s+B]=n&255;--B>=0&&(te*=256);)n<0&&ae===0&&this[s+B+1]!==0&&(ae=1),this[s+B]=(n/te>>0)-ae&255;return s+f},i.prototype.writeInt8=function(n,s,f){return n=+n,s=s>>>0,f||N(this,n,s,1,127,-128),n<0&&(n=255+n+1),this[s]=n&255,s+1},i.prototype.writeInt16LE=function(n,s,f){return n=+n,s=s>>>0,f||N(this,n,s,2,32767,-32768),this[s]=n&255,this[s+1]=n>>>8,s+2},i.prototype.writeInt16BE=function(n,s,f){return n=+n,s=s>>>0,f||N(this,n,s,2,32767,-32768),this[s]=n>>>8,this[s+1]=n&255,s+2},i.prototype.writeInt32LE=function(n,s,f){return n=+n,s=s>>>0,f||N(this,n,s,4,2147483647,-2147483648),this[s]=n&255,this[s+1]=n>>>8,this[s+2]=n>>>16,this[s+3]=n>>>24,s+4},i.prototype.writeInt32BE=function(n,s,f){return n=+n,s=s>>>0,f||N(this,n,s,4,2147483647,-2147483648),n<0&&(n=4294967295+n+1),this[s]=n>>>24,this[s+1]=n>>>16,this[s+2]=n>>>8,this[s+3]=n&255,s+4};function W(b,n,s,f,P,U){if(s+f>b.length)throw new RangeError("Index out of range");if(s<0)throw new RangeError("Index out of range")}function z(b,n,s,f,P){return n=+n,s=s>>>0,P||W(b,n,s,4),r.write(b,n,s,f,23,4),s+4}i.prototype.writeFloatLE=function(n,s,f){return z(this,n,s,!0,f)},i.prototype.writeFloatBE=function(n,s,f){return z(this,n,s,!1,f)};function $(b,n,s,f,P){return n=+n,s=s>>>0,P||W(b,n,s,8),r.write(b,n,s,f,52,8),s+8}i.prototype.writeDoubleLE=function(n,s,f){return $(this,n,s,!0,f)},i.prototype.writeDoubleBE=function(n,s,f){return $(this,n,s,!1,f)},i.prototype.copy=function(n,s,f,P){if(!i.isBuffer(n))throw new TypeError("argument should be a Buffer");if(f||(f=0),!P&&P!==0&&(P=this.length),s>=n.length&&(s=n.length),s||(s=0),P>0&&P=this.length)throw new RangeError("Index out of range");if(P<0)throw new RangeError("sourceEnd out of bounds");P>this.length&&(P=this.length),n.length-s>>0,f=f===void 0?this.length:f>>>0,n||(n=0);var B;if(typeof n=="number")for(B=s;B55295&&s<57344){if(!P){if(s>56319){(n-=3)>-1&&U.push(239,191,189);continue}else if(B+1===f){(n-=3)>-1&&U.push(239,191,189);continue}P=s;continue}if(s<56320){(n-=3)>-1&&U.push(239,191,189),P=s;continue}s=(P-55296<<10|s-56320)+65536}else P&&(n-=3)>-1&&U.push(239,191,189);if(P=null,s<128){if((n-=1)<0)break;U.push(s)}else if(s<2048){if((n-=2)<0)break;U.push(s>>6|192,s&63|128)}else if(s<65536){if((n-=3)<0)break;U.push(s>>12|224,s>>6&63|128,s&63|128)}else if(s<1114112){if((n-=4)<0)break;U.push(s>>18|240,s>>12&63|128,s>>6&63|128,s&63|128)}else throw new Error("Invalid code point")}return U}function M(b){for(var n=[],s=0;s>8,P=s%256,U.push(P),U.push(f);return U}function k(b){return e.toByteArray(g(b))}function O(b,n,s,f){for(var P=0;P=n.length||P>=b.length);++P)n[P+s]=b[P];return P}function Q(b,n){return b instanceof n||b!=null&&b.constructor!=null&&b.constructor.name!=null&&b.constructor.name===n.name}function h(b){return b!==b}var X=function(){for(var b="0123456789abcdef",n=new Array(256),s=0;s<16;++s)for(var f=s*16,P=0;P<16;++P)n[f+P]=b[s]+b[P];return n}()}(zr)),zr}var Hr={},Gr={},Kr,Ei;function Ks(){return Ei||(Ei=1,Kr=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},r=Symbol("test"),a=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(a)!=="[object Symbol]")return!1;var l=42;e[r]=l;for(r in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var u=Object.getOwnPropertySymbols(e);if(u.length!==1||u[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(e,r);if(o.value!==l||o.enumerable!==!0)return!1}return!0}),Kr}var Vr,Ti;function Xn(){if(Ti)return Vr;Ti=1;var t=Ks();return Vr=function(){return t()&&!!Symbol.toStringTag},Vr}var qr,xi;function _o(){if(xi)return qr;xi=1;var t=typeof Symbol<"u"&&Symbol,e=Ks();return qr=function(){return typeof t!="function"||typeof Symbol!="function"||typeof t("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},qr}var Xr,Si;function Eo(){if(Si)return Xr;Si=1;var t={foo:{}},e=Object;return Xr=function(){return{__proto__:t}.foo===t.foo&&!({__proto__:null}instanceof e)},Xr}var Yr,Ai;function To(){if(Ai)return Yr;Ai=1;var t="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,r=Math.max,a="[object Function]",l=function(c,w){for(var y=[],x=0;x"u"||!y?t:y(Uint8Array),p={"%AggregateError%":typeof AggregateError>"u"?t:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?t:ArrayBuffer,"%ArrayIteratorPrototype%":c&&y?y([][Symbol.iterator]()):t,"%AsyncFromSyncIteratorPrototype%":t,"%AsyncFunction%":x,"%AsyncGenerator%":x,"%AsyncGeneratorFunction%":x,"%AsyncIteratorPrototype%":x,"%Atomics%":typeof Atomics>"u"?t:Atomics,"%BigInt%":typeof BigInt>"u"?t:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?t:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?t:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?t:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?t:Float32Array,"%Float64Array%":typeof Float64Array>"u"?t:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?t:FinalizationRegistry,"%Function%":r,"%GeneratorFunction%":x,"%Int8Array%":typeof Int8Array>"u"?t:Int8Array,"%Int16Array%":typeof Int16Array>"u"?t:Int16Array,"%Int32Array%":typeof Int32Array>"u"?t:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":c&&y?y(y([][Symbol.iterator]())):t,"%JSON%":typeof JSON=="object"?JSON:t,"%Map%":typeof Map>"u"?t:Map,"%MapIteratorPrototype%":typeof Map>"u"||!c||!y?t:y(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?t:Promise,"%Proxy%":typeof Proxy>"u"?t:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?t:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?t:Set,"%SetIteratorPrototype%":typeof Set>"u"||!c||!y?t:y(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?t:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":c&&y?y(""[Symbol.iterator]()):t,"%Symbol%":c?Symbol:t,"%SyntaxError%":e,"%ThrowTypeError%":i,"%TypedArray%":_,"%TypeError%":a,"%Uint8Array%":typeof Uint8Array>"u"?t:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?t:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?t:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?t:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?t:WeakMap,"%WeakRef%":typeof WeakRef>"u"?t:WeakRef,"%WeakSet%":typeof WeakSet>"u"?t:WeakSet};if(y)try{null.error}catch(L){var T=y(y(L));p["%Error.prototype%"]=T}var v=function L(q){var A;if(q==="%AsyncFunction%")A=l("async function () {}");else if(q==="%GeneratorFunction%")A=l("function* () {}");else if(q==="%AsyncGeneratorFunction%")A=l("async function* () {}");else if(q==="%AsyncGenerator%"){var Z=L("%AsyncGeneratorFunction%");Z&&(A=Z.prototype)}else if(q==="%AsyncIteratorPrototype%"){var le=L("%AsyncGenerator%");le&&y&&(A=y(le.prototype))}return p[q]=A,A},E={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},d=Yn(),S=xo(),R=d.call(Function.call,Array.prototype.concat),D=d.call(Function.apply,Array.prototype.splice),C=d.call(Function.call,String.prototype.replace),V=d.call(Function.call,String.prototype.slice),H=d.call(Function.call,RegExp.prototype.exec),J=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,I=/\\(\\)?/g,re=function(q){var A=V(q,0,1),Z=V(q,-1);if(A==="%"&&Z!=="%")throw new e("invalid intrinsic syntax, expected closing `%`");if(Z==="%"&&A!=="%")throw new e("invalid intrinsic syntax, expected opening `%`");var le=[];return C(q,J,function(Y,de,K,ce){le[le.length]=K?C(ce,I,"$1"):de||Y}),le},ue=function(q,A){var Z=q,le;if(S(E,Z)&&(le=E[Z],Z="%"+le[0]+"%"),S(p,Z)){var Y=p[Z];if(Y===x&&(Y=v(Z)),typeof Y>"u"&&!A)throw new a("intrinsic "+q+" exists, but is not available. Please file an issue!");return{alias:le,name:Z,value:Y}}throw new e("intrinsic "+q+" does not exist!")};return Jr=function(q,A){if(typeof q!="string"||q.length===0)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof A!="boolean")throw new a('"allowMissing" argument must be a boolean');if(H(/^%?[^%]*%?$/,q)===null)throw new e("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Z=re(q),le=Z.length>0?Z[0]:"",Y=ue("%"+le+"%",A),de=Y.name,K=Y.value,ce=!1,G=Y.alias;G&&(le=G[0],D(Z,R([0,1],G)));for(var N=1,W=!0;N=Z.length){var g=u(K,z);W=!!g,W&&"get"in g&&!("originalValue"in g.get)?K=g.get:K=K[z]}else W=S(K,z),K=K[z];W&&!ce&&(p[de]=K)}}return K},Jr}var $r={exports:{}},en,Ni;function Vs(){if(Ni)return en;Ni=1;var t=Xt(),e=t("%Object.defineProperty%",!0),r=function(){if(e)try{return e({},"a",{value:1}),!0}catch{return!1}return!1};return r.hasArrayLengthDefineBug=function(){if(!r())return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},en=r,en}var tn,Oi;function Zn(){if(Oi)return tn;Oi=1;var t=Xt(),e=t("%Object.getOwnPropertyDescriptor%",!0);if(e)try{e([],"length")}catch{e=null}return tn=e,tn}var rn,Ci;function So(){if(Ci)return rn;Ci=1;var t=Vs()(),e=Xt(),r=t&&e("%Object.defineProperty%",!0);if(r)try{r({},"a",{value:1})}catch{r=!1}var a=e("%SyntaxError%"),l=e("%TypeError%"),u=Zn();return rn=function(i,c,w){if(!i||typeof i!="object"&&typeof i!="function")throw new l("`obj` must be an object or a function`");if(typeof c!="string"&&typeof c!="symbol")throw new l("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new l("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new l("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new l("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new l("`loose`, if provided, must be a boolean");var y=arguments.length>3?arguments[3]:null,x=arguments.length>4?arguments[4]:null,_=arguments.length>5?arguments[5]:null,p=arguments.length>6?arguments[6]:!1,T=!!u&&u(i,c);if(r)r(i,c,{configurable:_===null&&T?T.configurable:!_,enumerable:y===null&&T?T.enumerable:!y,value:w,writable:x===null&&T?T.writable:!x});else if(p||!y&&!x&&!_)i[c]=w;else throw new a("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},rn}var nn,Di;function Ao(){if(Di)return nn;Di=1;var t=Xt(),e=So(),r=Vs()(),a=Zn(),l=t("%TypeError%"),u=t("%Math.floor%");return nn=function(i,c){if(typeof i!="function")throw new l("`fn` is not a function");if(typeof c!="number"||c<0||c>4294967295||u(c)!==c)throw new l("`length` must be a positive 32-bit integer");var w=arguments.length>2&&!!arguments[2],y=!0,x=!0;if("length"in i&&a){var _=a(i,"length");_&&!_.configurable&&(y=!1),_&&!_.writable&&(x=!1)}return(y||x||!w)&&(r?e(i,"length",c,!0,!0):e(i,"length",c)),i},nn}var Pi;function qs(){return Pi||(Pi=1,function(t){var e=Yn(),r=Xt(),a=Ao(),l=r("%TypeError%"),u=r("%Function.prototype.apply%"),o=r("%Function.prototype.call%"),i=r("%Reflect.apply%",!0)||e.call(o,u),c=r("%Object.defineProperty%",!0),w=r("%Math.max%");if(c)try{c({},"a",{value:1})}catch{c=null}t.exports=function(_){if(typeof _!="function")throw new l("a function is required");var p=i(e,o,arguments);return a(p,1+w(0,_.length-(arguments.length-1)),!0)};var y=function(){return i(e,u,arguments)};c?c(t.exports,"apply",{value:y}):t.exports.apply=y}($r)),$r.exports}var sn,Li;function Xs(){if(Li)return sn;Li=1;var t=Xt(),e=qs(),r=e(t("String.prototype.indexOf"));return sn=function(l,u){var o=t(l,!!u);return typeof o=="function"&&r(l,".prototype.")>-1?e(o):o},sn}var an,Fi;function Ro(){if(Fi)return an;Fi=1;var t=Xn()(),e=Xs(),r=e("Object.prototype.toString"),a=function(i){return t&&i&&typeof i=="object"&&Symbol.toStringTag in i?!1:r(i)==="[object Arguments]"},l=function(i){return a(i)?!0:i!==null&&typeof i=="object"&&typeof i.length=="number"&&i.length>=0&&r(i)!=="[object Array]"&&r(i.callee)==="[object Function]"},u=function(){return a(arguments)}();return a.isLegacyArguments=l,an=u?a:l,an}var on,Bi;function Io(){if(Bi)return on;Bi=1;var t=Object.prototype.toString,e=Function.prototype.toString,r=/^\s*(?:function)?\*/,a=Xn()(),l=Object.getPrototypeOf,u=function(){if(!a)return!1;try{return Function("return function*() {}")()}catch{}},o;return on=function(c){if(typeof c!="function")return!1;if(r.test(e.call(c)))return!0;if(!a){var w=t.call(c);return w==="[object GeneratorFunction]"}if(!l)return!1;if(typeof o>"u"){var y=u();o=y?l(y):!1}return l(c)===o},on}var un,Mi;function ko(){if(Mi)return un;Mi=1;var t=Function.prototype.toString,e=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,r,a;if(typeof e=="function"&&typeof Object.defineProperty=="function")try{r=Object.defineProperty({},"length",{get:function(){throw a}}),a={},e(function(){throw 42},null,r)}catch(S){S!==a&&(e=null)}else e=null;var l=/^\s*class\b/,u=function(R){try{var D=t.call(R);return l.test(D)}catch{return!1}},o=function(R){try{return u(R)?!1:(t.call(R),!0)}catch{return!1}},i=Object.prototype.toString,c="[object Object]",w="[object Function]",y="[object GeneratorFunction]",x="[object HTMLAllCollection]",_="[object HTML document.all class]",p="[object HTMLCollection]",T=typeof Symbol=="function"&&!!Symbol.toStringTag,v=!(0 in[,]),E=function(){return!1};if(typeof document=="object"){var d=document.all;i.call(d)===i.call(document.all)&&(E=function(R){if((v||!R)&&(typeof R>"u"||typeof R=="object"))try{var D=i.call(R);return(D===x||D===_||D===p||D===c)&&R("")==null}catch{}return!1})}return un=e?function(R){if(E(R))return!0;if(!R||typeof R!="function"&&typeof R!="object")return!1;try{e(R,null,r)}catch(D){if(D!==a)return!1}return!u(R)&&o(R)}:function(R){if(E(R))return!0;if(!R||typeof R!="function"&&typeof R!="object")return!1;if(T)return o(R);if(u(R))return!1;var D=i.call(R);return D!==w&&D!==y&&!/^\[object HTML/.test(D)?!1:o(R)},un}var ln,Ui;function No(){if(Ui)return ln;Ui=1;var t=ko(),e=Object.prototype.toString,r=Object.prototype.hasOwnProperty,a=function(c,w,y){for(var x=0,_=c.length;x<_;x++)r.call(c,x)&&(y==null?w(c[x],x,c):w.call(y,c[x],x,c))},l=function(c,w,y){for(var x=0,_=c.length;x<_;x++)y==null?w(c.charAt(x),x,c):w.call(y,c.charAt(x),x,c)},u=function(c,w,y){for(var x in c)r.call(c,x)&&(y==null?w(c[x],x,c):w.call(y,c[x],x,c))},o=function(c,w,y){if(!t(w))throw new TypeError("iterator must be a function");var x;arguments.length>=3&&(x=y),e.call(c)==="[object Array]"?a(c,w,x):typeof c=="string"?l(c,w,x):u(c,w,x)};return ln=o,ln}var cn,ji;function Oo(){if(ji)return cn;ji=1;var t=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],e=typeof globalThis>"u"?ht:globalThis;return cn=function(){for(var a=[],l=0;l"u"?ht:globalThis,c=e(),w=a("String.prototype.slice"),y=Object.getPrototypeOf,x=a("Array.prototype.indexOf",!0)||function(E,d){for(var S=0;S-1?d:d!=="Object"?!1:T(E)}return l?p(E):null},fn}var hn,zi;function Co(){if(zi)return hn;zi=1;var t=Ys();return hn=function(r){return!!t(r)},hn}var Hi;function Do(){return Hi||(Hi=1,function(t){var e=Ro(),r=Io(),a=Ys(),l=Co();function u(f){return f.call.bind(f)}var o=typeof BigInt<"u",i=typeof Symbol<"u",c=u(Object.prototype.toString),w=u(Number.prototype.valueOf),y=u(String.prototype.valueOf),x=u(Boolean.prototype.valueOf);if(o)var _=u(BigInt.prototype.valueOf);if(i)var p=u(Symbol.prototype.valueOf);function T(f,P){if(typeof f!="object")return!1;try{return P(f),!0}catch{return!1}}t.isArgumentsObject=e,t.isGeneratorFunction=r,t.isTypedArray=l;function v(f){return typeof Promise<"u"&&f instanceof Promise||f!==null&&typeof f=="object"&&typeof f.then=="function"&&typeof f.catch=="function"}t.isPromise=v;function E(f){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(f):l(f)||W(f)}t.isArrayBufferView=E;function d(f){return a(f)==="Uint8Array"}t.isUint8Array=d;function S(f){return a(f)==="Uint8ClampedArray"}t.isUint8ClampedArray=S;function R(f){return a(f)==="Uint16Array"}t.isUint16Array=R;function D(f){return a(f)==="Uint32Array"}t.isUint32Array=D;function C(f){return a(f)==="Int8Array"}t.isInt8Array=C;function V(f){return a(f)==="Int16Array"}t.isInt16Array=V;function H(f){return a(f)==="Int32Array"}t.isInt32Array=H;function J(f){return a(f)==="Float32Array"}t.isFloat32Array=J;function I(f){return a(f)==="Float64Array"}t.isFloat64Array=I;function re(f){return a(f)==="BigInt64Array"}t.isBigInt64Array=re;function ue(f){return a(f)==="BigUint64Array"}t.isBigUint64Array=ue;function L(f){return c(f)==="[object Map]"}L.working=typeof Map<"u"&&L(new Map);function q(f){return typeof Map>"u"?!1:L.working?L(f):f instanceof Map}t.isMap=q;function A(f){return c(f)==="[object Set]"}A.working=typeof Set<"u"&&A(new Set);function Z(f){return typeof Set>"u"?!1:A.working?A(f):f instanceof Set}t.isSet=Z;function le(f){return c(f)==="[object WeakMap]"}le.working=typeof WeakMap<"u"&&le(new WeakMap);function Y(f){return typeof WeakMap>"u"?!1:le.working?le(f):f instanceof WeakMap}t.isWeakMap=Y;function de(f){return c(f)==="[object WeakSet]"}de.working=typeof WeakSet<"u"&&de(new WeakSet);function K(f){return de(f)}t.isWeakSet=K;function ce(f){return c(f)==="[object ArrayBuffer]"}ce.working=typeof ArrayBuffer<"u"&&ce(new ArrayBuffer);function G(f){return typeof ArrayBuffer>"u"?!1:ce.working?ce(f):f instanceof ArrayBuffer}t.isArrayBuffer=G;function N(f){return c(f)==="[object DataView]"}N.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&N(new DataView(new ArrayBuffer(1),0,1));function W(f){return typeof DataView>"u"?!1:N.working?N(f):f instanceof DataView}t.isDataView=W;var z=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function $(f){return c(f)==="[object SharedArrayBuffer]"}function j(f){return typeof z>"u"?!1:(typeof $.working>"u"&&($.working=$(new z)),$.working?$(f):f instanceof z)}t.isSharedArrayBuffer=j;function g(f){return c(f)==="[object AsyncFunction]"}t.isAsyncFunction=g;function m(f){return c(f)==="[object Map Iterator]"}t.isMapIterator=m;function M(f){return c(f)==="[object Set Iterator]"}t.isSetIterator=M;function F(f){return c(f)==="[object Generator]"}t.isGeneratorObject=F;function k(f){return c(f)==="[object WebAssembly.Module]"}t.isWebAssemblyCompiledModule=k;function O(f){return T(f,w)}t.isNumberObject=O;function Q(f){return T(f,y)}t.isStringObject=Q;function h(f){return T(f,x)}t.isBooleanObject=h;function X(f){return o&&T(f,_)}t.isBigIntObject=X;function b(f){return i&&T(f,p)}t.isSymbolObject=b;function n(f){return O(f)||Q(f)||h(f)||X(f)||b(f)}t.isBoxedPrimitive=n;function s(f){return typeof Uint8Array<"u"&&(G(f)||j(f))}t.isAnyArrayBuffer=s,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(f){Object.defineProperty(t,f,{enumerable:!1,value:function(){throw new Error(f+" is not supported in userland")}})})}(Gr)),Gr}var dn,Gi;function Po(){return Gi||(Gi=1,dn=function(e){return e&&typeof e=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"}),dn}var Ki;function Zs(){return Ki||(Ki=1,function(t){var e=Object.getOwnPropertyDescriptors||function(W){for(var z=Object.keys(W),$={},j=0;j=j)return M;switch(M){case"%s":return String($[z++]);case"%d":return Number($[z++]);case"%j":try{return JSON.stringify($[z++])}catch{return"[Circular]"}default:return M}}),m=$[z];z"u")return function(){return t.deprecate(N,W).apply(this,arguments)};var z=!1;function $(){if(!z){if(ve.throwDeprecation)throw new Error(W);ve.traceDeprecation?console.trace(W):console.error(W),z=!0}return N.apply(this,arguments)}return $};var a={},l=/^$/;if(ve.env.NODE_DEBUG){var u=ve.env.NODE_DEBUG;u=u.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),l=new RegExp("^"+u+"$","i")}t.debuglog=function(N){if(N=N.toUpperCase(),!a[N])if(l.test(N)){var W=ve.pid;a[N]=function(){var z=t.format.apply(t,arguments);console.error("%s %d: %s",N,W,z)}}else a[N]=function(){};return a[N]};function o(N,W){var z={seen:[],stylize:c};return arguments.length>=3&&(z.depth=arguments[2]),arguments.length>=4&&(z.colors=arguments[3]),d(W)?z.showHidden=W:W&&t._extend(z,W),H(z.showHidden)&&(z.showHidden=!1),H(z.depth)&&(z.depth=2),H(z.colors)&&(z.colors=!1),H(z.customInspect)&&(z.customInspect=!0),z.colors&&(z.stylize=i),y(z,N,z.depth)}t.inspect=o,o.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},o.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function i(N,W){var z=o.styles[W];return z?"\x1B["+o.colors[z][0]+"m"+N+"\x1B["+o.colors[z][1]+"m":N}function c(N,W){return N}function w(N){var W={};return N.forEach(function(z,$){W[z]=!0}),W}function y(N,W,z){if(N.customInspect&&W&&L(W.inspect)&&W.inspect!==t.inspect&&!(W.constructor&&W.constructor.prototype===W)){var $=W.inspect(z,N);return C($)||($=y(N,$,z)),$}var j=x(N,W);if(j)return j;var g=Object.keys(W),m=w(g);if(N.showHidden&&(g=Object.getOwnPropertyNames(W)),ue(W)&&(g.indexOf("message")>=0||g.indexOf("description")>=0))return _(W);if(g.length===0){if(L(W)){var M=W.name?": "+W.name:"";return N.stylize("[Function"+M+"]","special")}if(J(W))return N.stylize(RegExp.prototype.toString.call(W),"regexp");if(re(W))return N.stylize(Date.prototype.toString.call(W),"date");if(ue(W))return _(W)}var F="",k=!1,O=["{","}"];if(E(W)&&(k=!0,O=["[","]"]),L(W)){var Q=W.name?": "+W.name:"";F=" [Function"+Q+"]"}if(J(W)&&(F=" "+RegExp.prototype.toString.call(W)),re(W)&&(F=" "+Date.prototype.toUTCString.call(W)),ue(W)&&(F=" "+_(W)),g.length===0&&(!k||W.length==0))return O[0]+F+O[1];if(z<0)return J(W)?N.stylize(RegExp.prototype.toString.call(W),"regexp"):N.stylize("[Object]","special");N.seen.push(W);var h;return k?h=p(N,W,z,m,g):h=g.map(function(X){return T(N,W,z,m,X,k)}),N.seen.pop(),v(h,F,O)}function x(N,W){if(H(W))return N.stylize("undefined","undefined");if(C(W)){var z="'"+JSON.stringify(W).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return N.stylize(z,"string")}if(D(W))return N.stylize(""+W,"number");if(d(W))return N.stylize(""+W,"boolean");if(S(W))return N.stylize("null","null")}function _(N){return"["+Error.prototype.toString.call(N)+"]"}function p(N,W,z,$,j){for(var g=[],m=0,M=W.length;m-1&&(g?M=M.split(` -`).map(function(k){return" "+k}).join(` -`).slice(2):M=` -`+M.split(` -`).map(function(k){return" "+k}).join(` -`))):M=N.stylize("[Circular]","special")),H(m)){if(g&&j.match(/^\d+$/))return M;m=JSON.stringify(""+j),m.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(m=m.slice(1,-1),m=N.stylize(m,"name")):(m=m.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),m=N.stylize(m,"string"))}return m+": "+M}function v(N,W,z){var $=N.reduce(function(j,g){return g.indexOf(` -`)>=0,j+g.replace(/\u001b\[\d\d?m/g,"").length+1},0);return $>60?z[0]+(W===""?"":W+` - `)+" "+N.join(`, - `)+" "+z[1]:z[0]+W+" "+N.join(", ")+" "+z[1]}t.types=Do();function E(N){return Array.isArray(N)}t.isArray=E;function d(N){return typeof N=="boolean"}t.isBoolean=d;function S(N){return N===null}t.isNull=S;function R(N){return N==null}t.isNullOrUndefined=R;function D(N){return typeof N=="number"}t.isNumber=D;function C(N){return typeof N=="string"}t.isString=C;function V(N){return typeof N=="symbol"}t.isSymbol=V;function H(N){return N===void 0}t.isUndefined=H;function J(N){return I(N)&&A(N)==="[object RegExp]"}t.isRegExp=J,t.types.isRegExp=J;function I(N){return typeof N=="object"&&N!==null}t.isObject=I;function re(N){return I(N)&&A(N)==="[object Date]"}t.isDate=re,t.types.isDate=re;function ue(N){return I(N)&&(A(N)==="[object Error]"||N instanceof Error)}t.isError=ue,t.types.isNativeError=ue;function L(N){return typeof N=="function"}t.isFunction=L;function q(N){return N===null||typeof N=="boolean"||typeof N=="number"||typeof N=="string"||typeof N=="symbol"||typeof N>"u"}t.isPrimitive=q,t.isBuffer=Po();function A(N){return Object.prototype.toString.call(N)}function Z(N){return N<10?"0"+N.toString(10):N.toString(10)}var le=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Y(){var N=new Date,W=[Z(N.getHours()),Z(N.getMinutes()),Z(N.getSeconds())].join(":");return[N.getDate(),le[N.getMonth()],W].join(" ")}t.log=function(){console.log("%s - %s",Y(),t.format.apply(t,arguments))},t.inherits=Ot,t._extend=function(N,W){if(!W||!I(W))return N;for(var z=Object.keys(W),$=z.length;$--;)N[z[$]]=W[z[$]];return N};function de(N,W){return Object.prototype.hasOwnProperty.call(N,W)}var K=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;t.promisify=function(W){if(typeof W!="function")throw new TypeError('The "original" argument must be of type Function');if(K&&W[K]){var z=W[K];if(typeof z!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(z,K,{value:z,enumerable:!1,writable:!1,configurable:!0}),z}function z(){for(var $,j,g=new Promise(function(F,k){$=F,j=k}),m=[],M=0;M0?this.tail.next=v:this.head=v,this.tail=v,++this.length}},{key:"unshift",value:function(T){var v={data:T,next:this.head};this.length===0&&(this.tail=v),this.head=v,++this.length}},{key:"shift",value:function(){if(this.length!==0){var T=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,T}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(T){if(this.length===0)return"";for(var v=this.head,E=""+v.data;v=v.next;)E+=T+v.data;return E}},{key:"concat",value:function(T){if(this.length===0)return i.alloc(0);for(var v=i.allocUnsafe(T>>>0),E=this.head,d=0;E;)x(E.data,v,d),d+=E.data.length,E=E.next;return v}},{key:"consume",value:function(T,v){var E;return TS.length?S.length:T;if(R===S.length?d+=S:d+=S.slice(0,T),T-=R,T===0){R===S.length?(++E,v.next?this.head=v.next:this.head=this.tail=null):(this.head=v,v.data=S.slice(R));break}++E}return this.length-=E,d}},{key:"_getBuffer",value:function(T){var v=i.allocUnsafe(T),E=this.head,d=1;for(E.data.copy(v),T-=E.data.length;E=E.next;){var S=E.data,R=T>S.length?S.length:T;if(S.copy(v,v.length-T,0,R),T-=R,T===0){R===S.length?(++d,E.next?this.head=E.next:this.head=this.tail=null):(this.head=E,E.data=S.slice(R));break}++d}return this.length-=d,v}},{key:y,value:function(T,v){return w(this,e({},v,{depth:0,customInspect:!1}))}}]),_}(),pn}var mn,qi;function Qs(){if(qi)return mn;qi=1;function t(o,i){var c=this,w=this._readableState&&this._readableState.destroyed,y=this._writableState&&this._writableState.destroyed;return w||y?(i?i(o):o&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,ve.nextTick(l,this,o)):ve.nextTick(l,this,o)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(o||null,function(x){!i&&x?c._writableState?c._writableState.errorEmitted?ve.nextTick(r,c):(c._writableState.errorEmitted=!0,ve.nextTick(e,c,x)):ve.nextTick(e,c,x):i?(ve.nextTick(r,c),i(x)):ve.nextTick(r,c)}),this)}function e(o,i){l(o,i),r(o)}function r(o){o._writableState&&!o._writableState.emitClose||o._readableState&&!o._readableState.emitClose||o.emit("close")}function a(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function l(o,i){o.emit("error",i)}function u(o,i){var c=o._readableState,w=o._writableState;c&&c.autoDestroy||w&&w.autoDestroy?o.destroy(i):o.emit("error",i)}return mn={destroy:t,undestroy:a,errorOrDestroy:u},mn}var gn={},Xi;function Yt(){if(Xi)return gn;Xi=1;function t(i,c){i.prototype=Object.create(c.prototype),i.prototype.constructor=i,i.__proto__=c}var e={};function r(i,c,w){w||(w=Error);function y(_,p,T){return typeof c=="string"?c:c(_,p,T)}var x=function(_){t(p,_);function p(T,v,E){return _.call(this,y(T,v,E))||this}return p}(w);x.prototype.name=w.name,x.prototype.code=i,e[i]=x}function a(i,c){if(Array.isArray(i)){var w=i.length;return i=i.map(function(y){return String(y)}),w>2?"one of ".concat(c," ").concat(i.slice(0,w-1).join(", "),", or ")+i[w-1]:w===2?"one of ".concat(c," ").concat(i[0]," or ").concat(i[1]):"of ".concat(c," ").concat(i[0])}else return"of ".concat(c," ").concat(String(i))}function l(i,c,w){return i.substr(!w||w<0?0:+w,c.length)===c}function u(i,c,w){return(w===void 0||w>i.length)&&(w=i.length),i.substring(w-c.length,w)===c}function o(i,c,w){return typeof w!="number"&&(w=0),w+c.length>i.length?!1:i.indexOf(c,w)!==-1}return r("ERR_INVALID_OPT_VALUE",function(i,c){return'The value "'+c+'" is invalid for option "'+i+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(i,c,w){var y;typeof c=="string"&&l(c,"not ")?(y="must not be",c=c.replace(/^not /,"")):y="must be";var x;if(u(i," argument"))x="The ".concat(i," ").concat(y," ").concat(a(c,"type"));else{var _=o(i,".")?"property":"argument";x='The "'.concat(i,'" ').concat(_," ").concat(y," ").concat(a(c,"type"))}return x+=". Received type ".concat(typeof w),x},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(i){return"The "+i+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(i){return"Cannot call "+i+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(i){return"Unknown encoding: "+i},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),gn.codes=e,gn}var wn,Yi;function Js(){if(Yi)return wn;Yi=1;var t=Yt().codes.ERR_INVALID_OPT_VALUE;function e(a,l,u){return a.highWaterMark!=null?a.highWaterMark:l?a[u]:null}function r(a,l,u,o){var i=e(l,o,u);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var c=o?u:"highWaterMark";throw new t(c,i)}return Math.floor(i)}return a.objectMode?16:16*1024}return wn={getHighWaterMark:r},wn}var yn,Zi;function Fo(){if(Zi)return yn;Zi=1,yn=t;function t(r,a){if(e("noDeprecation"))return r;var l=!1;function u(){if(!l){if(e("throwDeprecation"))throw new Error(a);e("traceDeprecation")?console.trace(a):console.warn(a),l=!0}return r.apply(this,arguments)}return u}function e(r){try{if(!ht.localStorage)return!1}catch{return!1}var a=ht.localStorage[r];return a==null?!1:String(a).toLowerCase()==="true"}return yn}var vn,Qi;function $s(){if(Qi)return vn;Qi=1,vn=J;function t(j){var g=this;this.next=null,this.entry=null,this.finish=function(){$(g,j)}}var e;J.WritableState=V;var r={deprecate:Fo()},a=Gs(),l=Or().Buffer,u=ht.Uint8Array||function(){};function o(j){return l.from(j)}function i(j){return l.isBuffer(j)||j instanceof u}var c=Qs(),w=Js(),y=w.getHighWaterMark,x=Yt().codes,_=x.ERR_INVALID_ARG_TYPE,p=x.ERR_METHOD_NOT_IMPLEMENTED,T=x.ERR_MULTIPLE_CALLBACK,v=x.ERR_STREAM_CANNOT_PIPE,E=x.ERR_STREAM_DESTROYED,d=x.ERR_STREAM_NULL_VALUES,S=x.ERR_STREAM_WRITE_AFTER_END,R=x.ERR_UNKNOWN_ENCODING,D=c.errorOrDestroy;Ot(J,a);function C(){}function V(j,g,m){e=e||Ht(),j=j||{},typeof m!="boolean"&&(m=g instanceof e),this.objectMode=!!j.objectMode,m&&(this.objectMode=this.objectMode||!!j.writableObjectMode),this.highWaterMark=y(this,j,"writableHighWaterMark",m),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var M=j.decodeStrings===!1;this.decodeStrings=!M,this.defaultEncoding=j.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(F){le(g,F)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=j.emitClose!==!1,this.autoDestroy=!!j.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new t(this)}V.prototype.getBuffer=function(){for(var g=this.bufferedRequest,m=[];g;)m.push(g),g=g.next;return m},function(){try{Object.defineProperty(V.prototype,"buffer",{get:r.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var H;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(H=Function.prototype[Symbol.hasInstance],Object.defineProperty(J,Symbol.hasInstance,{value:function(g){return H.call(this,g)?!0:this!==J?!1:g&&g._writableState instanceof V}})):H=function(g){return g instanceof this};function J(j){e=e||Ht();var g=this instanceof e;if(!g&&!H.call(J,this))return new J(j);this._writableState=new V(j,this,g),this.writable=!0,j&&(typeof j.write=="function"&&(this._write=j.write),typeof j.writev=="function"&&(this._writev=j.writev),typeof j.destroy=="function"&&(this._destroy=j.destroy),typeof j.final=="function"&&(this._final=j.final)),a.call(this)}J.prototype.pipe=function(){D(this,new v)};function I(j,g){var m=new S;D(j,m),ve.nextTick(g,m)}function re(j,g,m,M){var F;return m===null?F=new d:typeof m!="string"&&!g.objectMode&&(F=new _("chunk",["string","Buffer"],m)),F?(D(j,F),ve.nextTick(M,F),!1):!0}J.prototype.write=function(j,g,m){var M=this._writableState,F=!1,k=!M.objectMode&&i(j);return k&&!l.isBuffer(j)&&(j=o(j)),typeof g=="function"&&(m=g,g=null),k?g="buffer":g||(g=M.defaultEncoding),typeof m!="function"&&(m=C),M.ending?I(this,m):(k||re(this,M,j,m))&&(M.pendingcb++,F=L(this,M,k,j,g,m)),F},J.prototype.cork=function(){this._writableState.corked++},J.prototype.uncork=function(){var j=this._writableState;j.corked&&(j.corked--,!j.writing&&!j.corked&&!j.bufferProcessing&&j.bufferedRequest&&K(this,j))},J.prototype.setDefaultEncoding=function(g){if(typeof g=="string"&&(g=g.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((g+"").toLowerCase())>-1))throw new R(g);return this._writableState.defaultEncoding=g,this},Object.defineProperty(J.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function ue(j,g,m){return!j.objectMode&&j.decodeStrings!==!1&&typeof g=="string"&&(g=l.from(g,m)),g}Object.defineProperty(J.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function L(j,g,m,M,F,k){if(!m){var O=ue(g,M,F);M!==O&&(m=!0,F="buffer",M=O)}var Q=g.objectMode?1:M.length;g.length+=Q;var h=g.length>5===6?2:d>>4===14?3:d>>3===30?4:d>>6===2?-1:-2}function o(d,S,R){var D=S.length-1;if(D=0?(C>0&&(d.lastNeed=C-1),C):--D=0?(C>0&&(d.lastNeed=C-2),C):--D=0?(C>0&&(C===2?C=0:d.lastNeed=C-3),C):0))}function i(d,S,R){if((S[0]&192)!==128)return d.lastNeed=0,"�";if(d.lastNeed>1&&S.length>1){if((S[1]&192)!==128)return d.lastNeed=1,"�";if(d.lastNeed>2&&S.length>2&&(S[2]&192)!==128)return d.lastNeed=2,"�"}}function c(d){var S=this.lastTotal-this.lastNeed,R=i(this,d);if(R!==void 0)return R;if(this.lastNeed<=d.length)return d.copy(this.lastChar,S,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);d.copy(this.lastChar,S,0,d.length),this.lastNeed-=d.length}function w(d,S){var R=o(this,d,S);if(!this.lastNeed)return d.toString("utf8",S);this.lastTotal=R;var D=d.length-(R-this.lastNeed);return d.copy(this.lastChar,0,D),d.toString("utf8",S,D)}function y(d){var S=d&&d.length?this.write(d):"";return this.lastNeed?S+"�":S}function x(d,S){if((d.length-S)%2===0){var R=d.toString("utf16le",S);if(R){var D=R.charCodeAt(R.length-1);if(D>=55296&&D<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=d[d.length-2],this.lastChar[1]=d[d.length-1],R.slice(0,-1)}return R}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=d[d.length-1],d.toString("utf16le",S,d.length-1)}function _(d){var S=d&&d.length?this.write(d):"";if(this.lastNeed){var R=this.lastTotal-this.lastNeed;return S+this.lastChar.toString("utf16le",0,R)}return S}function p(d,S){var R=(d.length-S)%3;return R===0?d.toString("base64",S):(this.lastNeed=3-R,this.lastTotal=3,R===1?this.lastChar[0]=d[d.length-1]:(this.lastChar[0]=d[d.length-2],this.lastChar[1]=d[d.length-1]),d.toString("base64",S,d.length-R))}function T(d){var S=d&&d.length?this.write(d):"";return this.lastNeed?S+this.lastChar.toString("base64",0,3-this.lastNeed):S}function v(d){return d.toString(this.encoding)}function E(d){return d&&d.length?this.write(d):""}return _n}var En,ts;function Qn(){if(ts)return En;ts=1;var t=Yt().codes.ERR_STREAM_PREMATURE_CLOSE;function e(u){var o=!1;return function(){if(!o){o=!0;for(var i=arguments.length,c=new Array(i),w=0;w0)if(typeof O!="string"&&!b.objectMode&&Object.getPrototypeOf(O)!==a.prototype&&(O=u(O)),h)b.endEmitted?C(k,new d):ue(k,b,O,!0);else if(b.ended)C(k,new v);else{if(b.destroyed)return!1;b.reading=!1,b.decoder&&!Q?(O=b.decoder.write(O),b.objectMode||O.length!==0?ue(k,b,O,!1):K(k,b)):ue(k,b,O,!1)}else h||(b.reading=!1,K(k,b))}return!b.ended&&(b.length=q?k=q:(k--,k|=k>>>1,k|=k>>>2,k|=k>>>4,k|=k>>>8,k|=k>>>16,k++),k}function Z(k,O){return k<=0||O.length===0&&O.ended?0:O.objectMode?1:k!==k?O.flowing&&O.length?O.buffer.head.data.length:O.length:(k>O.highWaterMark&&(O.highWaterMark=A(k)),k<=O.length?k:O.ended?O.length:(O.needReadable=!0,0))}I.prototype.read=function(k){c("read",k),k=parseInt(k,10);var O=this._readableState,Q=k;if(k!==0&&(O.emittedReadable=!1),k===0&&O.needReadable&&((O.highWaterMark!==0?O.length>=O.highWaterMark:O.length>0)||O.ended))return c("read: emitReadable",O.length,O.ended),O.length===0&&O.ended?m(this):Y(this),null;if(k=Z(k,O),k===0&&O.ended)return O.length===0&&m(this),null;var h=O.needReadable;c("need readable",h),(O.length===0||O.length-k0?X=g(k,O):X=null,X===null?(O.needReadable=O.length<=O.highWaterMark,k=0):(O.length-=k,O.awaitDrain=0),O.length===0&&(O.ended||(O.needReadable=!0),Q!==k&&O.ended&&m(this)),X!==null&&this.emit("data",X),X};function le(k,O){if(c("onEofChunk"),!O.ended){if(O.decoder){var Q=O.decoder.end();Q&&Q.length&&(O.buffer.push(Q),O.length+=O.objectMode?1:Q.length)}O.ended=!0,O.sync?Y(k):(O.needReadable=!1,O.emittedReadable||(O.emittedReadable=!0,de(k)))}}function Y(k){var O=k._readableState;c("emitReadable",O.needReadable,O.emittedReadable),O.needReadable=!1,O.emittedReadable||(c("emitReadable",O.flowing),O.emittedReadable=!0,ve.nextTick(de,k))}function de(k){var O=k._readableState;c("emitReadable_",O.destroyed,O.length,O.ended),!O.destroyed&&(O.length||O.ended)&&(k.emit("readable"),O.emittedReadable=!1),O.needReadable=!O.flowing&&!O.ended&&O.length<=O.highWaterMark,j(k)}function K(k,O){O.readingMore||(O.readingMore=!0,ve.nextTick(ce,k,O))}function ce(k,O){for(;!O.reading&&!O.ended&&(O.length1&&F(h.pipes,k)!==-1)&&!P&&(c("false write response, pause",h.awaitDrain),h.awaitDrain++),Q.pause())}function te(pe){c("onerror",pe),fe(),k.removeListener("error",te),e(k,"error")===0&&C(k,pe)}H(k,"error",te);function ae(){k.removeListener("finish",ne),fe()}k.once("close",ae);function ne(){c("onfinish"),k.removeListener("close",ae),fe()}k.once("finish",ne);function fe(){c("unpipe"),Q.unpipe(k)}return k.emit("pipe",Q),h.flowing||(c("pipe resume"),Q.resume()),k};function G(k){return function(){var Q=k._readableState;c("pipeOnDrain",Q.awaitDrain),Q.awaitDrain&&Q.awaitDrain--,Q.awaitDrain===0&&e(k,"data")&&(Q.flowing=!0,j(k))}}I.prototype.unpipe=function(k){var O=this._readableState,Q={hasUnpiped:!1};if(O.pipesCount===0)return this;if(O.pipesCount===1)return k&&k!==O.pipes?this:(k||(k=O.pipes),O.pipes=null,O.pipesCount=0,O.flowing=!1,k&&k.emit("unpipe",this,Q),this);if(!k){var h=O.pipes,X=O.pipesCount;O.pipes=null,O.pipesCount=0,O.flowing=!1;for(var b=0;b0,h.flowing!==!1&&this.resume()):k==="readable"&&!h.endEmitted&&!h.readableListening&&(h.readableListening=h.needReadable=!0,h.flowing=!1,h.emittedReadable=!1,c("on readable",h.length,h.reading),h.length?Y(this):h.reading||ve.nextTick(W,this)),Q},I.prototype.addListener=I.prototype.on,I.prototype.removeListener=function(k,O){var Q=r.prototype.removeListener.call(this,k,O);return k==="readable"&&ve.nextTick(N,this),Q},I.prototype.removeAllListeners=function(k){var O=r.prototype.removeAllListeners.apply(this,arguments);return(k==="readable"||k===void 0)&&ve.nextTick(N,this),O};function N(k){var O=k._readableState;O.readableListening=k.listenerCount("readable")>0,O.resumeScheduled&&!O.paused?O.flowing=!0:k.listenerCount("data")>0&&k.resume()}function W(k){c("readable nexttick read 0"),k.read(0)}I.prototype.resume=function(){var k=this._readableState;return k.flowing||(c("resume"),k.flowing=!k.readableListening,z(this,k)),k.paused=!1,this};function z(k,O){O.resumeScheduled||(O.resumeScheduled=!0,ve.nextTick($,k,O))}function $(k,O){c("resume",O.reading),O.reading||k.read(0),O.resumeScheduled=!1,k.emit("resume"),j(k),O.flowing&&!O.reading&&k.read(0)}I.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function j(k){var O=k._readableState;for(c("flow",O.flowing);O.flowing&&k.read()!==null;);}I.prototype.wrap=function(k){var O=this,Q=this._readableState,h=!1;k.on("end",function(){if(c("wrapped end"),Q.decoder&&!Q.ended){var n=Q.decoder.end();n&&n.length&&O.push(n)}O.push(null)}),k.on("data",function(n){if(c("wrapped data"),Q.decoder&&(n=Q.decoder.write(n)),!(Q.objectMode&&n==null)&&!(!Q.objectMode&&(!n||!n.length))){var s=O.push(n);s||(h=!0,k.pause())}});for(var X in k)this[X]===void 0&&typeof k[X]=="function"&&(this[X]=function(s){return function(){return k[s].apply(k,arguments)}}(X));for(var b=0;b=O.length?(O.decoder?Q=O.buffer.join(""):O.buffer.length===1?Q=O.buffer.first():Q=O.buffer.concat(O.length),O.buffer.clear()):Q=O.buffer.consume(k,O.decoder),Q}function m(k){var O=k._readableState;c("endReadable",O.endEmitted),O.endEmitted||(O.ended=!0,ve.nextTick(M,O,k))}function M(k,O){if(c("endReadableNT",k.endEmitted,k.length),!k.endEmitted&&k.length===0&&(k.endEmitted=!0,O.readable=!1,O.emit("end"),k.autoDestroy)){var Q=O._writableState;(!Q||Q.autoDestroy&&Q.finished)&&O.destroy()}}typeof Symbol=="function"&&(I.from=function(k,O){return D===void 0&&(D=Uo()),D(I,k,O)});function F(k,O){for(var Q=0,h=k.length;Q0;return i(S,D,C,function(V){E||(E=V),V&&d.forEach(c),!D&&(d.forEach(c),v(E))})});return p.reduce(w)}return In=x,In}var Jn=rt,$n=qn.EventEmitter,zo=Ot;zo(rt,$n);rt.Readable=ea();rt.Writable=$s();rt.Duplex=Ht();rt.Transform=ta();rt.PassThrough=jo();rt.finished=Qn();rt.pipeline=Wo();rt.Stream=rt;function rt(){$n.call(this)}rt.prototype.pipe=function(t,e){var r=this;function a(y){t.writable&&t.write(y)===!1&&r.pause&&r.pause()}r.on("data",a);function l(){r.readable&&r.resume&&r.resume()}t.on("drain",l),!t._isStdio&&(!e||e.end!==!1)&&(r.on("end",o),r.on("close",i));var u=!1;function o(){u||(u=!0,t.end())}function i(){u||(u=!0,typeof t.destroy=="function"&&t.destroy())}function c(y){if(w(),$n.listenerCount(this,"error")===0)throw y}r.on("error",c),t.on("error",c);function w(){r.removeListener("data",a),t.removeListener("drain",l),r.removeListener("end",o),r.removeListener("close",i),r.removeListener("error",c),t.removeListener("error",c),r.removeListener("end",w),r.removeListener("close",w),t.removeListener("close",w)}return r.on("end",w),r.on("close",w),t.on("close",w),t.emit("pipe",r),t};(function(t){(function(e){e.parser=function(g,m){return new a(g,m)},e.SAXParser=a,e.SAXStream=y,e.createStream=w,e.MAX_BUFFER_LENGTH=64*1024;var r=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];e.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function a(g,m){if(!(this instanceof a))return new a(g,m);var M=this;u(M),M.q=M.c="",M.bufferCheckPosition=e.MAX_BUFFER_LENGTH,M.opt=m||{},M.opt.lowercase=M.opt.lowercase||M.opt.lowercasetags,M.looseCase=M.opt.lowercase?"toLowerCase":"toUpperCase",M.tags=[],M.closed=M.closedRoot=M.sawRoot=!1,M.tag=M.error=null,M.strict=!!g,M.noscript=!!(g||M.opt.noscript),M.state=I.BEGIN,M.strictEntities=M.opt.strictEntities,M.ENTITIES=M.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES),M.attribList=[],M.opt.xmlns&&(M.ns=Object.create(v)),M.trackPosition=M.opt.position!==!1,M.trackPosition&&(M.position=M.line=M.column=0),ue(M,"onready")}Object.create||(Object.create=function(g){function m(){}m.prototype=g;var M=new m;return M}),Object.keys||(Object.keys=function(g){var m=[];for(var M in g)g.hasOwnProperty(M)&&m.push(M);return m});function l(g){for(var m=Math.max(e.MAX_BUFFER_LENGTH,10),M=0,F=0,k=r.length;Fm)switch(r[F]){case"textNode":q(g);break;case"cdata":L(g,"oncdata",g.cdata),g.cdata="";break;case"script":L(g,"onscript",g.script),g.script="";break;default:Z(g,"Max buffer length exceeded: "+r[F])}M=Math.max(M,O)}var Q=e.MAX_BUFFER_LENGTH-M;g.bufferCheckPosition=Q+g.position}function u(g){for(var m=0,M=r.length;m"||D(g)}function H(g,m){return g.test(m)}function J(g,m){return!H(g,m)}var I=0;e.STATE={BEGIN:I++,BEGIN_WHITESPACE:I++,TEXT:I++,TEXT_ENTITY:I++,OPEN_WAKA:I++,SGML_DECL:I++,SGML_DECL_QUOTED:I++,DOCTYPE:I++,DOCTYPE_QUOTED:I++,DOCTYPE_DTD:I++,DOCTYPE_DTD_QUOTED:I++,COMMENT_STARTING:I++,COMMENT:I++,COMMENT_ENDING:I++,COMMENT_ENDED:I++,CDATA:I++,CDATA_ENDING:I++,CDATA_ENDING_2:I++,PROC_INST:I++,PROC_INST_BODY:I++,PROC_INST_ENDING:I++,OPEN_TAG:I++,OPEN_TAG_SLASH:I++,ATTRIB:I++,ATTRIB_NAME:I++,ATTRIB_NAME_SAW_WHITE:I++,ATTRIB_VALUE:I++,ATTRIB_VALUE_QUOTED:I++,ATTRIB_VALUE_CLOSED:I++,ATTRIB_VALUE_UNQUOTED:I++,ATTRIB_VALUE_ENTITY_Q:I++,ATTRIB_VALUE_ENTITY_U:I++,CLOSE_TAG:I++,CLOSE_TAG_SAW_WHITE:I++,SCRIPT:I++,SCRIPT_ENDING:I++},e.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},e.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(e.ENTITIES).forEach(function(g){var m=e.ENTITIES[g],M=typeof m=="number"?String.fromCharCode(m):m;e.ENTITIES[g]=M});for(var re in e.STATE)e.STATE[e.STATE[re]]=re;I=e.STATE;function ue(g,m,M){g[m]&&g[m](M)}function L(g,m,M){g.textNode&&q(g),ue(g,m,M)}function q(g){g.textNode=A(g.opt,g.textNode),g.textNode&&ue(g,"ontext",g.textNode),g.textNode=""}function A(g,m){return g.trim&&(m=m.trim()),g.normalize&&(m=m.replace(/\s+/g," ")),m}function Z(g,m){return q(g),g.trackPosition&&(m+=` -Line: `+g.line+` -Column: `+g.column+` -Char: `+g.c),m=new Error(m),g.error=m,ue(g,"onerror",m),g}function le(g){return g.sawRoot&&!g.closedRoot&&Y(g,"Unclosed root tag"),g.state!==I.BEGIN&&g.state!==I.BEGIN_WHITESPACE&&g.state!==I.TEXT&&Z(g,"Unexpected end"),q(g),g.c="",g.closed=!0,ue(g,"onend"),a.call(g,g.strict,g.opt),g}function Y(g,m){if(typeof g!="object"||!(g instanceof a))throw new Error("bad call to strictFail");g.strict&&Z(g,m)}function de(g){g.strict||(g.tagName=g.tagName[g.looseCase]());var m=g.tags[g.tags.length-1]||g,M=g.tag={name:g.tagName,attributes:{}};g.opt.xmlns&&(M.ns=m.ns),g.attribList.length=0,L(g,"onopentagstart",M)}function K(g,m){var M=g.indexOf(":"),F=M<0?["",g]:g.split(":"),k=F[0],O=F[1];return m&&g==="xmlns"&&(k="xmlns",O=""),{prefix:k,local:O}}function ce(g){if(g.strict||(g.attribName=g.attribName[g.looseCase]()),g.attribList.indexOf(g.attribName)!==-1||g.tag.attributes.hasOwnProperty(g.attribName)){g.attribName=g.attribValue="";return}if(g.opt.xmlns){var m=K(g.attribName,!0),M=m.prefix,F=m.local;if(M==="xmlns")if(F==="xml"&&g.attribValue!==p)Y(g,"xml: prefix must be bound to "+p+` -Actual: `+g.attribValue);else if(F==="xmlns"&&g.attribValue!==T)Y(g,"xmlns: prefix must be bound to "+T+` -Actual: `+g.attribValue);else{var k=g.tag,O=g.tags[g.tags.length-1]||g;k.ns===O.ns&&(k.ns=Object.create(O.ns)),k.ns[F]=g.attribValue}g.attribList.push([g.attribName,g.attribValue])}else g.tag.attributes[g.attribName]=g.attribValue,L(g,"onattribute",{name:g.attribName,value:g.attribValue});g.attribName=g.attribValue=""}function G(g,m){if(g.opt.xmlns){var M=g.tag,F=K(g.tagName);M.prefix=F.prefix,M.local=F.local,M.uri=M.ns[F.prefix]||"",M.prefix&&!M.uri&&(Y(g,"Unbound namespace prefix: "+JSON.stringify(g.tagName)),M.uri=F.prefix);var k=g.tags[g.tags.length-1]||g;M.ns&&k.ns!==M.ns&&Object.keys(M.ns).forEach(function(B){L(g,"onopennamespace",{prefix:B,uri:M.ns[B]})});for(var O=0,Q=g.attribList.length;O",g.tagName="",g.state=I.SCRIPT;return}L(g,"onscript",g.script),g.script=""}var m=g.tags.length,M=g.tagName;g.strict||(M=M[g.looseCase]());for(var F=M;m--;){var k=g.tags[m];if(k.name!==F)Y(g,"Unexpected close tag");else break}if(m<0){Y(g,"Unmatched closing tag: "+g.tagName),g.textNode+="",g.state=I.TEXT;return}g.tagName=M;for(var O=g.tags.length;O-- >m;){var Q=g.tag=g.tags.pop();g.tagName=g.tag.name,L(g,"onclosetag",g.tagName);var h={};for(var X in Q.ns)h[X]=Q.ns[X];var b=g.tags[g.tags.length-1]||g;g.opt.xmlns&&Q.ns!==b.ns&&Object.keys(Q.ns).forEach(function(n){var s=Q.ns[n];L(g,"onclosenamespace",{prefix:n,uri:s})})}m===0&&(g.closedRoot=!0),g.tagName=g.attribValue=g.attribName="",g.attribList.length=0,g.state=I.TEXT}function W(g){var m=g.entity,M=m.toLowerCase(),F,k="";return g.ENTITIES[m]?g.ENTITIES[m]:g.ENTITIES[M]?g.ENTITIES[M]:(m=M,m.charAt(0)==="#"&&(m.charAt(1)==="x"?(m=m.slice(2),F=parseInt(m,16),k=F.toString(16)):(m=m.slice(1),F=parseInt(m,10),k=F.toString(10))),m=m.replace(/^0+/,""),isNaN(F)||k.toLowerCase()!==m?(Y(g,"Invalid character entity"),"&"+g.entity+";"):String.fromCodePoint(F))}function z(g,m){m==="<"?(g.state=I.OPEN_WAKA,g.startTagPosition=g.position):D(m)||(Y(g,"Non-whitespace before first tag."),g.textNode=m,g.state=I.TEXT)}function $(g,m){var M="";return m"?(L(m,"onsgmldeclaration",m.sgmlDecl),m.sgmlDecl="",m.state=I.TEXT):(C(F)&&(m.state=I.SGML_DECL_QUOTED),m.sgmlDecl+=F);continue;case I.SGML_DECL_QUOTED:F===m.q&&(m.state=I.SGML_DECL,m.q=""),m.sgmlDecl+=F;continue;case I.DOCTYPE:F===">"?(m.state=I.TEXT,L(m,"ondoctype",m.doctype),m.doctype=!0):(m.doctype+=F,F==="["?m.state=I.DOCTYPE_DTD:C(F)&&(m.state=I.DOCTYPE_QUOTED,m.q=F));continue;case I.DOCTYPE_QUOTED:m.doctype+=F,F===m.q&&(m.q="",m.state=I.DOCTYPE);continue;case I.DOCTYPE_DTD:m.doctype+=F,F==="]"?m.state=I.DOCTYPE:C(F)&&(m.state=I.DOCTYPE_DTD_QUOTED,m.q=F);continue;case I.DOCTYPE_DTD_QUOTED:m.doctype+=F,F===m.q&&(m.state=I.DOCTYPE_DTD,m.q="");continue;case I.COMMENT:F==="-"?m.state=I.COMMENT_ENDING:m.comment+=F;continue;case I.COMMENT_ENDING:F==="-"?(m.state=I.COMMENT_ENDED,m.comment=A(m.opt,m.comment),m.comment&&L(m,"oncomment",m.comment),m.comment=""):(m.comment+="-"+F,m.state=I.COMMENT);continue;case I.COMMENT_ENDED:F!==">"?(Y(m,"Malformed comment"),m.comment+="--"+F,m.state=I.COMMENT):m.state=I.TEXT;continue;case I.CDATA:F==="]"?m.state=I.CDATA_ENDING:m.cdata+=F;continue;case I.CDATA_ENDING:F==="]"?m.state=I.CDATA_ENDING_2:(m.cdata+="]"+F,m.state=I.CDATA);continue;case I.CDATA_ENDING_2:F===">"?(m.cdata&&L(m,"oncdata",m.cdata),L(m,"onclosecdata"),m.cdata="",m.state=I.TEXT):F==="]"?m.cdata+="]":(m.cdata+="]]"+F,m.state=I.CDATA);continue;case I.PROC_INST:F==="?"?m.state=I.PROC_INST_ENDING:D(F)?m.state=I.PROC_INST_BODY:m.procInstName+=F;continue;case I.PROC_INST_BODY:if(!m.procInstBody&&D(F))continue;F==="?"?m.state=I.PROC_INST_ENDING:m.procInstBody+=F;continue;case I.PROC_INST_ENDING:F===">"?(L(m,"onprocessinginstruction",{name:m.procInstName,body:m.procInstBody}),m.procInstName=m.procInstBody="",m.state=I.TEXT):(m.procInstBody+="?"+F,m.state=I.PROC_INST_BODY);continue;case I.OPEN_TAG:H(d,F)?m.tagName+=F:(de(m),F===">"?G(m):F==="/"?m.state=I.OPEN_TAG_SLASH:(D(F)||Y(m,"Invalid character in tag name"),m.state=I.ATTRIB));continue;case I.OPEN_TAG_SLASH:F===">"?(G(m,!0),N(m)):(Y(m,"Forward-slash in opening tag not followed by >"),m.state=I.ATTRIB);continue;case I.ATTRIB:if(D(F))continue;F===">"?G(m):F==="/"?m.state=I.OPEN_TAG_SLASH:H(E,F)?(m.attribName=F,m.attribValue="",m.state=I.ATTRIB_NAME):Y(m,"Invalid attribute name");continue;case I.ATTRIB_NAME:F==="="?m.state=I.ATTRIB_VALUE:F===">"?(Y(m,"Attribute without value"),m.attribValue=m.attribName,ce(m),G(m)):D(F)?m.state=I.ATTRIB_NAME_SAW_WHITE:H(d,F)?m.attribName+=F:Y(m,"Invalid attribute name");continue;case I.ATTRIB_NAME_SAW_WHITE:if(F==="=")m.state=I.ATTRIB_VALUE;else{if(D(F))continue;Y(m,"Attribute without value"),m.tag.attributes[m.attribName]="",m.attribValue="",L(m,"onattribute",{name:m.attribName,value:""}),m.attribName="",F===">"?G(m):H(E,F)?(m.attribName=F,m.state=I.ATTRIB_NAME):(Y(m,"Invalid attribute name"),m.state=I.ATTRIB)}continue;case I.ATTRIB_VALUE:if(D(F))continue;C(F)?(m.q=F,m.state=I.ATTRIB_VALUE_QUOTED):(Y(m,"Unquoted attribute value"),m.state=I.ATTRIB_VALUE_UNQUOTED,m.attribValue=F);continue;case I.ATTRIB_VALUE_QUOTED:if(F!==m.q){F==="&"?m.state=I.ATTRIB_VALUE_ENTITY_Q:m.attribValue+=F;continue}ce(m),m.q="",m.state=I.ATTRIB_VALUE_CLOSED;continue;case I.ATTRIB_VALUE_CLOSED:D(F)?m.state=I.ATTRIB:F===">"?G(m):F==="/"?m.state=I.OPEN_TAG_SLASH:H(E,F)?(Y(m,"No whitespace between attributes"),m.attribName=F,m.attribValue="",m.state=I.ATTRIB_NAME):Y(m,"Invalid attribute name");continue;case I.ATTRIB_VALUE_UNQUOTED:if(!V(F)){F==="&"?m.state=I.ATTRIB_VALUE_ENTITY_U:m.attribValue+=F;continue}ce(m),F===">"?G(m):m.state=I.ATTRIB;continue;case I.CLOSE_TAG:if(m.tagName)F===">"?N(m):H(d,F)?m.tagName+=F:m.script?(m.script+=""?N(m):Y(m,"Invalid characters in closing tag");continue;case I.TEXT_ENTITY:case I.ATTRIB_VALUE_ENTITY_Q:case I.ATTRIB_VALUE_ENTITY_U:var Q,h;switch(m.state){case I.TEXT_ENTITY:Q=I.TEXT,h="textNode";break;case I.ATTRIB_VALUE_ENTITY_Q:Q=I.ATTRIB_VALUE_QUOTED,h="attribValue";break;case I.ATTRIB_VALUE_ENTITY_U:Q=I.ATTRIB_VALUE_UNQUOTED,h="attribValue";break}F===";"?(m[h]+=W(m),m.entity="",m.state=Q):H(m.entity.length?R:S,F)?m.entity+=F:(Y(m,"Invalid character in entity name"),m[h]+="&"+m.entity+F,m.entity="",m.state=Q);continue;default:throw new Error(m,"Unknown state: "+m.state)}return m.position>=m.bufferCheckPosition&&l(m),m}/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */String.fromCodePoint||function(){var g=String.fromCharCode,m=Math.floor,M=function(){var F=16384,k=[],O,Q,h=-1,X=arguments.length;if(!X)return"";for(var b="";++h1114111||m(n)!==n)throw RangeError("Invalid code point: "+n);n<=65535?k.push(n):(n-=65536,O=(n>>10)+55296,Q=n%1024+56320,k.push(O,Q)),(h+1===X||k.length>F)&&(b+=g.apply(null,k),k.length=0)}return b};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:M,configurable:!0,writable:!0}):String.fromCodePoint=M}()})(t)})(Os);var ei={isArray:function(t){return Array.isArray?Array.isArray(t):Object.prototype.toString.call(t)==="[object Array]"}},Ho=ei.isArray,ti={copyOptions:function(t){var e,r={};for(e in t)t.hasOwnProperty(e)&&(r[e]=t[e]);return r},ensureFlagExists:function(t,e){(!(t in e)||typeof e[t]!="boolean")&&(e[t]=!1)},ensureSpacesExists:function(t){(!("spaces"in t)||typeof t.spaces!="number"&&typeof t.spaces!="string")&&(t.spaces=0)},ensureAlwaysArrayExists:function(t){(!("alwaysArray"in t)||typeof t.alwaysArray!="boolean"&&!Ho(t.alwaysArray))&&(t.alwaysArray=!1)},ensureKeyExists:function(t,e){(!(t+"Key"in e)||typeof e[t+"Key"]!="string")&&(e[t+"Key"]=e.compact?"_"+t:t)},checkFnExists:function(t,e){return t+"Fn"in e}},Go=Os,Te=ti,jt=ei.isArray,ee,we;function Ko(t){return ee=Te.copyOptions(t),Te.ensureFlagExists("ignoreDeclaration",ee),Te.ensureFlagExists("ignoreInstruction",ee),Te.ensureFlagExists("ignoreAttributes",ee),Te.ensureFlagExists("ignoreText",ee),Te.ensureFlagExists("ignoreComment",ee),Te.ensureFlagExists("ignoreCdata",ee),Te.ensureFlagExists("ignoreDoctype",ee),Te.ensureFlagExists("compact",ee),Te.ensureFlagExists("alwaysChildren",ee),Te.ensureFlagExists("addParent",ee),Te.ensureFlagExists("trim",ee),Te.ensureFlagExists("nativeType",ee),Te.ensureFlagExists("nativeTypeAttributes",ee),Te.ensureFlagExists("sanitize",ee),Te.ensureFlagExists("instructionHasAttributes",ee),Te.ensureFlagExists("captureSpacesBetweenElements",ee),Te.ensureAlwaysArrayExists(ee),Te.ensureKeyExists("declaration",ee),Te.ensureKeyExists("instruction",ee),Te.ensureKeyExists("attributes",ee),Te.ensureKeyExists("text",ee),Te.ensureKeyExists("comment",ee),Te.ensureKeyExists("cdata",ee),Te.ensureKeyExists("doctype",ee),Te.ensureKeyExists("type",ee),Te.ensureKeyExists("name",ee),Te.ensureKeyExists("elements",ee),Te.ensureKeyExists("parent",ee),ee}function ra(t){var e=Number(t);if(!isNaN(e))return e;var r=t.toLowerCase();return r==="true"?!0:r==="false"?!1:t}function or(t,e){var r;if(ee.compact){if(!we[ee[t+"Key"]]&&(jt(ee.alwaysArray)?ee.alwaysArray.indexOf(ee[t+"Key"])!==-1:ee.alwaysArray)&&(we[ee[t+"Key"]]=[]),we[ee[t+"Key"]]&&!jt(we[ee[t+"Key"]])&&(we[ee[t+"Key"]]=[we[ee[t+"Key"]]]),t+"Fn"in ee&&typeof e=="string"&&(e=ee[t+"Fn"](e,we)),t==="instruction"&&("instructionFn"in ee||"instructionNameFn"in ee)){for(r in e)if(e.hasOwnProperty(r))if("instructionFn"in ee)e[r]=ee.instructionFn(e[r],r,we);else{var a=e[r];delete e[r],e[ee.instructionNameFn(r,a,we)]=a}}jt(we[ee[t+"Key"]])?we[ee[t+"Key"]].push(e):we[ee[t+"Key"]]=e}else{we[ee.elementsKey]||(we[ee.elementsKey]=[]);var l={};if(l[ee.typeKey]=t,t==="instruction"){for(r in e)if(e.hasOwnProperty(r))break;l[ee.nameKey]="instructionNameFn"in ee?ee.instructionNameFn(r,e,we):r,ee.instructionHasAttributes?(l[ee.attributesKey]=e[r][ee.attributesKey],"instructionFn"in ee&&(l[ee.attributesKey]=ee.instructionFn(l[ee.attributesKey],r,we))):("instructionFn"in ee&&(e[r]=ee.instructionFn(e[r],r,we)),l[ee.instructionKey]=e[r])}else t+"Fn"in ee&&(e=ee[t+"Fn"](e,we)),l[ee[t+"Key"]]=e;ee.addParent&&(l[ee.parentKey]=we),we[ee.elementsKey].push(l)}}function na(t){if("attributesFn"in ee&&t&&(t=ee.attributesFn(t,we)),(ee.trim||"attributeValueFn"in ee||"attributeNameFn"in ee||ee.nativeTypeAttributes)&&t){var e;for(e in t)if(t.hasOwnProperty(e)&&(ee.trim&&(t[e]=t[e].trim()),ee.nativeTypeAttributes&&(t[e]=ra(t[e])),"attributeValueFn"in ee&&(t[e]=ee.attributeValueFn(t[e],e,we)),"attributeNameFn"in ee)){var r=t[e];delete t[e],t[ee.attributeNameFn(e,t[e],we)]=r}}return t}function Vo(t){var e={};if(t.body&&(t.name.toLowerCase()==="xml"||ee.instructionHasAttributes)){for(var r=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g,a;(a=r.exec(t.body))!==null;)e[a[1]]=a[2]||a[3]||a[4];e=na(e)}if(t.name.toLowerCase()==="xml"){if(ee.ignoreDeclaration)return;we[ee.declarationKey]={},Object.keys(e).length&&(we[ee.declarationKey][ee.attributesKey]=e),ee.addParent&&(we[ee.declarationKey][ee.parentKey]=we)}else{if(ee.ignoreInstruction)return;ee.trim&&(t.body=t.body.trim());var l={};ee.instructionHasAttributes&&Object.keys(e).length?(l[t.name]={},l[t.name][ee.attributesKey]=e):l[t.name]=t.body,or("instruction",l)}}function qo(t,e){var r;if(typeof t=="object"&&(e=t.attributes,t=t.name),e=na(e),"elementNameFn"in ee&&(t=ee.elementNameFn(t,we)),ee.compact){if(r={},!ee.ignoreAttributes&&e&&Object.keys(e).length){r[ee.attributesKey]={};var a;for(a in e)e.hasOwnProperty(a)&&(r[ee.attributesKey][a]=e[a])}!(t in we)&&(jt(ee.alwaysArray)?ee.alwaysArray.indexOf(t)!==-1:ee.alwaysArray)&&(we[t]=[]),we[t]&&!jt(we[t])&&(we[t]=[we[t]]),jt(we[t])?we[t].push(r):we[t]=r}else we[ee.elementsKey]||(we[ee.elementsKey]=[]),r={},r[ee.typeKey]="element",r[ee.nameKey]=t,!ee.ignoreAttributes&&e&&Object.keys(e).length&&(r[ee.attributesKey]=e),ee.alwaysChildren&&(r[ee.elementsKey]=[]),we[ee.elementsKey].push(r);r[ee.parentKey]=we,we=r}function Xo(t){ee.ignoreText||!t.trim()&&!ee.captureSpacesBetweenElements||(ee.trim&&(t=t.trim()),ee.nativeType&&(t=ra(t)),ee.sanitize&&(t=t.replace(/&/g,"&").replace(//g,">")),or("text",t))}function Yo(t){ee.ignoreComment||(ee.trim&&(t=t.trim()),or("comment",t))}function Zo(t){var e=we[ee.parentKey];ee.addParent||delete we[ee.parentKey],we=e}function Qo(t){ee.ignoreCdata||(ee.trim&&(t=t.trim()),or("cdata",t))}function Jo(t){ee.ignoreDoctype||(t=t.replace(/^ /,""),ee.trim&&(t=t.trim()),or("doctype",t))}function $o(t){t.note=t}var ia=function(t,e){var r=Go.parser(!0,{}),a={};if(we=a,ee=Ko(e),r.opt={strictEntities:!0},r.onopentag=qo,r.ontext=Xo,r.oncomment=Yo,r.onclosetag=Zo,r.onerror=$o,r.oncdata=Qo,r.ondoctype=Jo,r.onprocessinginstruction=Vo,r.write(t).close(),a[ee.elementsKey]){var l=a[ee.elementsKey];delete a[ee.elementsKey],a[ee.elementsKey]=l,delete a.text}return a},us=ti,eu=ia;function tu(t){var e=us.copyOptions(t);return us.ensureSpacesExists(e),e}var ru=function(t,e){var r,a,l,u;return r=tu(e),a=eu(t,r),u="compact"in r&&r.compact?"_parent":"parent","addParent"in r&&r.addParent?l=JSON.stringify(a,function(o,i){return o===u?"_":i},r.spaces):l=JSON.stringify(a,null,r.spaces),l.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")},Re=ti,nu=ei.isArray,Ue,je;function iu(t){var e=Re.copyOptions(t);return Re.ensureFlagExists("ignoreDeclaration",e),Re.ensureFlagExists("ignoreInstruction",e),Re.ensureFlagExists("ignoreAttributes",e),Re.ensureFlagExists("ignoreText",e),Re.ensureFlagExists("ignoreComment",e),Re.ensureFlagExists("ignoreCdata",e),Re.ensureFlagExists("ignoreDoctype",e),Re.ensureFlagExists("compact",e),Re.ensureFlagExists("indentText",e),Re.ensureFlagExists("indentCdata",e),Re.ensureFlagExists("indentAttributes",e),Re.ensureFlagExists("indentInstruction",e),Re.ensureFlagExists("fullTagEmptyElement",e),Re.ensureFlagExists("noQuotesForNativeAttributes",e),Re.ensureSpacesExists(e),typeof e.spaces=="number"&&(e.spaces=Array(e.spaces+1).join(" ")),Re.ensureKeyExists("declaration",e),Re.ensureKeyExists("instruction",e),Re.ensureKeyExists("attributes",e),Re.ensureKeyExists("text",e),Re.ensureKeyExists("comment",e),Re.ensureKeyExists("cdata",e),Re.ensureKeyExists("doctype",e),Re.ensureKeyExists("type",e),Re.ensureKeyExists("name",e),Re.ensureKeyExists("elements",e),e}function ft(t,e,r){return(!r&&t.spaces?` -`:"")+Array(e+1).join(t.spaces)}function Cr(t,e,r){if(e.ignoreAttributes)return"";"attributesFn"in e&&(t=e.attributesFn(t,je,Ue));var a,l,u,o,i=[];for(a in t)t.hasOwnProperty(a)&&t[a]!==null&&t[a]!==void 0&&(o=e.noQuotesForNativeAttributes&&typeof t[a]!="string"?"":'"',l=""+t[a],l=l.replace(/"/g,"""),u="attributeNameFn"in e?e.attributeNameFn(a,l,je,Ue):a,i.push(e.spaces&&e.indentAttributes?ft(e,r+1,!1):" "),i.push(u+"="+o+("attributeValueFn"in e?e.attributeValueFn(l,a,je,Ue):l)+o));return t&&Object.keys(t).length&&e.spaces&&e.indentAttributes&&i.push(ft(e,r,!1)),i.join("")}function sa(t,e,r){return Ue=t,je="xml",e.ignoreDeclaration?"":""}function aa(t,e,r){if(e.ignoreInstruction)return"";var a;for(a in t)if(t.hasOwnProperty(a))break;var l="instructionNameFn"in e?e.instructionNameFn(a,t[a],je,Ue):a;if(typeof t[a]=="object")return Ue=t,je=l,"";var u=t[a]?t[a]:"";return"instructionFn"in e&&(u=e.instructionFn(u,a,je,Ue)),""}function oa(t,e){return e.ignoreComment?"":""}function ua(t,e){return e.ignoreCdata?"":"","]]]]>"))+"]]>"}function la(t,e){return e.ignoreDoctype?"":""}function ri(t,e){return e.ignoreText?"":(t=""+t,t=t.replace(/&/g,"&"),t=t.replace(/&/g,"&").replace(//g,">"),"textFn"in e?e.textFn(t,je,Ue):t)}function su(t,e){var r;if(t.elements&&t.elements.length)for(r=0;r"),t[e.elementsKey]&&t[e.elementsKey].length&&(a.push(ca(t[e.elementsKey],e,r+1)),Ue=t,je=t.name),a.push(e.spaces&&su(t,e)?` -`+Array(r+1).join(e.spaces):""),a.push("")):a.push("/>"),a.join("")}function ca(t,e,r,a){return t.reduce(function(l,u){var o=ft(e,r,a&&!l);switch(u.type){case"element":return l+o+au(u,e,r);case"comment":return l+o+oa(u[e.commentKey],e);case"doctype":return l+o+la(u[e.doctypeKey],e);case"cdata":return l+(e.indentCdata?o:"")+ua(u[e.cdataKey],e);case"text":return l+(e.indentText?o:"")+ri(u[e.textKey],e);case"instruction":var i={};return i[u[e.nameKey]]=u[e.attributesKey]?u:u[e.instructionKey],l+(e.indentInstruction?o:"")+aa(i,e,r)}},"")}function fa(t,e,r){var a;for(a in t)if(t.hasOwnProperty(a))switch(a){case e.parentKey:case e.attributesKey:break;case e.textKey:if(e.indentText||r)return!0;break;case e.cdataKey:if(e.indentCdata||r)return!0;break;case e.instructionKey:if(e.indentInstruction||r)return!0;break;case e.doctypeKey:case e.commentKey:return!0;default:return!0}return!1}function ou(t,e,r,a,l){Ue=t,je=e;var u="elementNameFn"in r?r.elementNameFn(e,t):e;if(typeof t>"u"||t===null||t==="")return"fullTagEmptyElementFn"in r&&r.fullTagEmptyElementFn(e,t)||r.fullTagEmptyElement?"<"+u+">":"<"+u+"/>";var o=[];if(e){if(o.push("<"+u),typeof t!="object")return o.push(">"+ri(t,r)+""),o.join("");t[r.attributesKey]&&o.push(Cr(t[r.attributesKey],r,a));var i=fa(t,r,!0)||t[r.attributesKey]&&t[r.attributesKey]["xml:space"]==="preserve";if(i||("fullTagEmptyElementFn"in r?i=r.fullTagEmptyElementFn(e,t):i=r.fullTagEmptyElement),i)o.push(">");else return o.push("/>"),o.join("")}return o.push(ha(t,r,a+1,!1)),Ue=t,je=e,e&&o.push((l?ft(r,a,!1):"")+""),o.join("")}function ha(t,e,r,a){var l,u,o,i=[];for(u in t)if(t.hasOwnProperty(u))for(o=nu(t[u])?t[u]:[t[u]],l=0;l{switch(t.type){case void 0:case"element":const e=new mu(t.name,t.attributes),r=t.elements||[];for(const a of r){const l=ni(a);l!==void 0&&e.push(l)}return e;case"text":return t.text;default:return}};class pu extends ge{}class mu extends se{static fromXmlString(e){const r=pa.xml2js(e,{compact:!1});return ni(r)}constructor(e,r){super(e),r&&this.root.push(new pu(r))}push(e){this.root.push(e)}}class gu extends se{constructor(e){super(""),this._attr=e}prepForXml(e){return{_attr:this._attr}}}class ma extends se{constructor(e,r){super(e),r&&(this.root=r.root)}}const Ge=t=>{if(isNaN(t))throw new Error(`Invalid value '${t}' specified. Must be an integer.`);return Math.floor(t)},Dr=t=>{const e=Ge(t);if(e<0)throw new Error(`Invalid value '${t}' specified. Must be a positive integer.`);return e},ga=(t,e)=>{const r=e*2;if(t.length!==r||isNaN(+`0x${t}`))throw new Error(`Invalid hex value '${t}'. Expected ${r} digit hex value`);return t},ls=t=>ga(t,1),wa=t=>{const e=t.slice(-2),r=t.substring(0,t.length-2);return`${Number(r)}${e}`},ya=t=>{const e=wa(t);if(parseFloat(e)<0)throw new Error(`Invalid value '${e}' specified. Expected a positive number.`);return e},Gt=t=>{if(t==="auto")return t;const e=t.charAt(0)==="#"?t.substring(1):t;return ga(e,3)},Nt=t=>typeof t=="string"?wa(t):Ge(t),wu=t=>typeof t=="string"?ya(t):Dr(t),at=t=>typeof t=="string"?ya(t):Dr(t),yu=Dr,vu=Dr,bu=t=>t.toISOString();class oe extends se{constructor(e,r=!0){super(e),r!==!0&&this.root.push(new Ce({val:r}))}}class kn extends se{constructor(e,r){super(e),this.root.push(new Ce({val:wu(r)}))}}class Wt extends se{constructor(e,r){super(e),this.root.push(new Ce({val:r}))}}const tr=(t,e)=>new vt({name:t,attributes:{value:{key:"w:val",value:e}}});class ii extends se{constructor(e,r){super(e),this.root.push(new Ce({val:r}))}}class At extends se{constructor(e,r){super(e),this.root.push(r)}}class vt extends se{constructor({name:e,attributes:r,children:a}){super(e),r&&this.root.push(new ar(r)),a&&this.root.push(...a)}}const ut={START:"start",CENTER:"center",END:"end",BOTH:"both",MEDIUM_KASHIDA:"mediumKashida",DISTRIBUTE:"distribute",NUM_TAB:"numTab",HIGH_KASHIDA:"highKashida",LOW_KASHIDA:"lowKashida",THAI_DISTRIBUTE:"thaiDistribute",LEFT:"left",RIGHT:"right",JUSTIFIED:"both"};class _u extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{val:"w:val"})}}class Eu extends se{constructor(e){super("w:jc"),this.root.push(new _u({val:e}))}}class ke extends se{constructor(e,{color:r,size:a,space:l,style:u}){super(e),this.root.push(new Tu({style:u,color:r===void 0?void 0:Gt(r),size:a===void 0?void 0:yu(a),space:l===void 0?void 0:vu(l)}))}}class Tu extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{style:"w:val",color:"w:color",size:"w:sz",space:"w:space"})}}const si={SINGLE:"single",DASH_DOT_STROKED:"dashDotStroked",DASHED:"dashed",DASH_SMALL_GAP:"dashSmallGap",DOT_DASH:"dotDash",DOT_DOT_DASH:"dotDotDash",DOTTED:"dotted",DOUBLE:"double",DOUBLE_WAVE:"doubleWave",INSET:"inset",NIL:"nil",NONE:"none",OUTSET:"outset",THICK:"thick",THICK_THIN_LARGE_GAP:"thickThinLargeGap",THICK_THIN_MEDIUM_GAP:"thickThinMediumGap",THICK_THIN_SMALL_GAP:"thickThinSmallGap",THIN_THICK_LARGE_GAP:"thinThickLargeGap",THIN_THICK_MEDIUM_GAP:"thinThickMediumGap",THIN_THICK_SMALL_GAP:"thinThickSmallGap",THIN_THICK_THIN_LARGE_GAP:"thinThickThinLargeGap",THIN_THICK_THIN_MEDIUM_GAP:"thinThickThinMediumGap",THIN_THICK_THIN_SMALL_GAP:"thinThickThinSmallGap",THREE_D_EMBOSS:"threeDEmboss",THREE_D_ENGRAVE:"threeDEngrave",TRIPLE:"triple",WAVE:"wave"};class xu extends kr{constructor(e){super("w:pBdr"),e.top&&this.root.push(new ke("w:top",e.top)),e.bottom&&this.root.push(new ke("w:bottom",e.bottom)),e.left&&this.root.push(new ke("w:left",e.left)),e.right&&this.root.push(new ke("w:right",e.right))}}class Su extends se{constructor(){super("w:pBdr");const e=new ke("w:bottom",{color:"auto",space:1,style:si.SINGLE,size:6});this.root.push(e)}}class Au extends se{constructor({start:e,end:r,left:a,right:l,hanging:u,firstLine:o}){super("w:ind"),this.root.push(new ar({start:{key:"w:start",value:e===void 0?void 0:Nt(e)},end:{key:"w:end",value:r===void 0?void 0:Nt(r)},left:{key:"w:left",value:a===void 0?void 0:Nt(a)},right:{key:"w:right",value:l===void 0?void 0:Nt(l)},hanging:{key:"w:hanging",value:u===void 0?void 0:at(u)},firstLine:{key:"w:firstLine",value:o===void 0?void 0:at(o)}}))}}let Ru=class extends se{constructor(){super("w:br")}};const ai={BEGIN:"begin",END:"end",SEPARATE:"separate"};class oi extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{type:"w:fldCharType",dirty:"w:dirty"})}}class hr extends se{constructor(e){super("w:fldChar"),this.root.push(new oi({type:ai.BEGIN,dirty:e}))}}class dr extends se{constructor(e){super("w:fldChar"),this.root.push(new oi({type:ai.SEPARATE,dirty:e}))}}class pr extends se{constructor(e){super("w:fldChar"),this.root.push(new oi({type:ai.END,dirty:e}))}}const Kt={DEFAULT:"default",PRESERVE:"preserve"};class Vt extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{space:"xml:space"})}}class Iu extends se{constructor(){super("w:instrText"),this.root.push(new Vt({space:Kt.PRESERVE})),this.root.push("PAGE")}}class ku extends se{constructor(){super("w:instrText"),this.root.push(new Vt({space:Kt.PRESERVE})),this.root.push("NUMPAGES")}}class Nu extends se{constructor(){super("w:instrText"),this.root.push(new Vt({space:Kt.PRESERVE})),this.root.push("SECTIONPAGES")}}class Ou extends se{constructor(){super("w:instrText"),this.root.push(new Vt({space:Kt.PRESERVE})),this.root.push("SECTION")}}class Cu extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{fill:"w:fill",color:"w:color",type:"w:val"})}}class va extends se{constructor({fill:e,color:r,type:a}){super("w:shd"),this.root.push(new Cu({fill:e===void 0?void 0:Gt(e),color:r===void 0?void 0:Gt(r),type:a}))}}class Du extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{id:"w:id",author:"w:author",date:"w:date"})}}const Pu={DOT:"dot"};class Lu extends se{constructor(e){super("w:em"),this.root.push(new Ce({val:e}))}}class Fu extends Lu{constructor(e=Pu.DOT){super(e)}}class Bu extends se{constructor(e){super("w:spacing"),this.root.push(new Ce({val:Nt(e)}))}}class Mu extends se{constructor(e){super("w:color"),this.root.push(new Ce({val:Gt(e)}))}}class Uu extends se{constructor(e){super("w:highlight"),this.root.push(new Ce({val:e}))}}class ju extends se{constructor(e){super("w:highlightCs"),this.root.push(new Ce({val:e}))}}const Wu=t=>new vt({name:"w:lang",attributes:{value:{key:"w:val",value:t.value},eastAsia:{key:"w:eastAsia",value:t.eastAsia},bidirectional:{key:"w:bidi",value:t.bidirectional}}});class cs extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{ascii:"w:ascii",cs:"w:cs",eastAsia:"w:eastAsia",hAnsi:"w:hAnsi",hint:"w:hint"})}}class Nn extends se{constructor(e,r){if(super("w:rFonts"),typeof e=="string"){const a=e;this.root.push(new cs({ascii:a,cs:a,eastAsia:a,hAnsi:a,hint:r}))}else{const a=e;this.root.push(new cs(a))}}}let ba=class extends se{constructor(e){super("w:vertAlign"),this.root.push(new Ce({val:e}))}};class zu extends ba{constructor(){super("superscript")}}class Hu extends ba{constructor(){super("subscript")}}const _a={SINGLE:"single",WORDS:"words",DOUBLE:"double",THICK:"thick",DOTTED:"dotted",DOTTEDHEAVY:"dottedHeavy",DASH:"dash",DASHEDHEAVY:"dashedHeavy",DASHLONG:"dashLong",DASHLONGHEAVY:"dashLongHeavy",DOTDASH:"dotDash",DASHDOTHEAVY:"dashDotHeavy",DOTDOTDASH:"dotDotDash",DASHDOTDOTHEAVY:"dashDotDotHeavy",WAVE:"wave",WAVYHEAVY:"wavyHeavy",WAVYDOUBLE:"wavyDouble",NONE:"none"};class Gu extends se{constructor(e=_a.SINGLE,r){super("w:u"),this.root.push(new Ce({val:e,color:r===void 0?void 0:Gt(r)}))}}class Ct extends kr{constructor(e){var r,a;if(super("w:rPr"),!e)return;e.noProof!==void 0&&this.push(new oe("w:noProof",e.noProof)),e.bold!==void 0&&this.push(new oe("w:b",e.bold)),(e.boldComplexScript===void 0&&e.bold!==void 0||e.boldComplexScript)&&this.push(new oe("w:bCs",(r=e.boldComplexScript)!=null?r:e.bold)),e.italics!==void 0&&this.push(new oe("w:i",e.italics)),(e.italicsComplexScript===void 0&&e.italics!==void 0||e.italicsComplexScript)&&this.push(new oe("w:iCs",(a=e.italicsComplexScript)!=null?a:e.italics)),e.underline&&this.push(new Gu(e.underline.type,e.underline.color)),e.effect&&this.push(new Wt("w:effect",e.effect)),e.emphasisMark&&this.push(new Fu(e.emphasisMark.type)),e.color&&this.push(new Mu(e.color)),e.kern&&this.push(new kn("w:kern",e.kern)),e.position&&this.push(new Wt("w:position",e.position)),e.size!==void 0&&this.push(new kn("w:sz",e.size));const l=e.sizeComplexScript===void 0||e.sizeComplexScript===!0?e.size:e.sizeComplexScript;l&&this.push(new kn("w:szCs",l)),e.rightToLeft!==void 0&&this.push(new oe("w:rtl",e.rightToLeft)),e.smallCaps!==void 0?this.push(new oe("w:smallCaps",e.smallCaps)):e.allCaps!==void 0&&this.push(new oe("w:caps",e.allCaps)),e.strike!==void 0&&this.push(new oe("w:strike",e.strike)),e.doubleStrike!==void 0&&this.push(new oe("w:dstrike",e.doubleStrike)),e.subScript&&this.push(new Hu),e.superScript&&this.push(new zu),e.style&&this.push(new Wt("w:rStyle",e.style)),e.font&&(typeof e.font=="string"?this.push(new Nn(e.font)):"name"in e.font?this.push(new Nn(e.font.name,e.font.hint)):this.push(new Nn(e.font))),e.highlight&&this.push(new Uu(e.highlight));const u=e.highlightComplexScript===void 0||e.highlightComplexScript===!0?e.highlight:e.highlightComplexScript;u&&this.push(new ju(u)),e.characterSpacing&&this.push(new Bu(e.characterSpacing)),e.emboss!==void 0&&this.push(new oe("w:emboss",e.emboss)),e.imprint!==void 0&&this.push(new oe("w:imprint",e.imprint)),e.shading&&this.push(new va(e.shading)),e.revision&&this.push(new Ku(e.revision)),e.border&&this.push(new ke("w:bdr",e.border)),e.snapToGrid!==void 0&&this.push(new oe("w:snapToGrid",e.snapToGrid)),e.vanish&&this.push(new oe("w:vanish",e.vanish)),e.specVanish&&this.push(new oe("w:specVanish",e.vanish)),e.scale!==void 0&&this.push(new ii("w:w",e.scale)),e.language&&this.push(Wu(e.language)),e.math&&this.push(new oe("w:oMath",e.math))}push(e){this.root.push(e)}}class Ku extends se{constructor(e){super("w:rPrChange"),this.root.push(new Du({id:e.id,author:e.author,date:e.date})),this.addChildElement(new Ct(e))}}class Un extends se{constructor(e){var r;return super("w:t"),typeof e=="string"?(this.root.push(new Vt({space:Kt.PRESERVE})),this.root.push(e),this):(this.root.push(new Vt({space:(r=e.space)!=null?r:Kt.DEFAULT})),this.root.push(e.text),this)}}const mr={CURRENT:"CURRENT",TOTAL_PAGES:"TOTAL_PAGES",TOTAL_PAGES_IN_SECTION:"TOTAL_PAGES_IN_SECTION",CURRENT_SECTION:"SECTION"};class Pr extends se{constructor(e){if(super("w:r"),ie(this,"properties"),this.properties=new Ct(e),this.root.push(this.properties),e.break)for(let r=0;r(r=e)=>{let a="",l=r;for(;l--;)a+=t[Math.random()*t.length|0];return a},Xu=(t=21)=>{let e="",r=t;for(;r--;)e+=Vu[Math.random()*64|0];return e};const st=t=>Math.floor(t*72*20),ui=(t=0)=>{let e=t;return()=>++e},Yu=()=>ui(),Zu=()=>ui(1),Qu=()=>ui(),Ju=()=>Xu().toLowerCase(),rr=t=>qu("1234567890abcdef",t)(),$u=()=>`${rr(8)}-${rr(4)}-${rr(4)}-${rr(4)}-${rr(12)}`;class el extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{id:"w:id",initials:"w:initials",author:"w:author",date:"w:date"})}}class tl extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{"xmlns:cx":"xmlns:cx","xmlns:cx1":"xmlns:cx1","xmlns:cx2":"xmlns:cx2","xmlns:cx3":"xmlns:cx3","xmlns:cx4":"xmlns:cx4","xmlns:cx5":"xmlns:cx5","xmlns:cx6":"xmlns:cx6","xmlns:cx7":"xmlns:cx7","xmlns:cx8":"xmlns:cx8","xmlns:mc":"xmlns:mc","xmlns:aink":"xmlns:aink","xmlns:am3d":"xmlns:am3d","xmlns:o":"xmlns:o","xmlns:r":"xmlns:r","xmlns:m":"xmlns:m","xmlns:v":"xmlns:v","xmlns:wp14":"xmlns:wp14","xmlns:wp":"xmlns:wp","xmlns:w10":"xmlns:w10","xmlns:w":"xmlns:w","xmlns:w14":"xmlns:w14","xmlns:w15":"xmlns:w15","xmlns:w16cex":"xmlns:w16cex","xmlns:w16cid":"xmlns:w16cid","xmlns:w16":"xmlns:w16","xmlns:w16sdtdh":"xmlns:w16sdtdh","xmlns:w16se":"xmlns:w16se","xmlns:wpg":"xmlns:wpg","xmlns:wpi":"xmlns:wpi","xmlns:wne":"xmlns:wne","xmlns:wps":"xmlns:wps"})}}class rl extends se{constructor({id:e,initials:r,author:a,date:l=new Date,children:u}){super("w:comment"),this.root.push(new el({id:e,initials:r,author:a,date:l.toISOString()}));for(const o of u)this.root.push(o)}}class nl extends se{constructor({children:e}){super("w:comments"),this.root.push(new tl({"xmlns:cx":"http://schemas.microsoft.com/office/drawing/2014/chartex","xmlns:cx1":"http://schemas.microsoft.com/office/drawing/2015/9/8/chartex","xmlns:cx2":"http://schemas.microsoft.com/office/drawing/2015/10/21/chartex","xmlns:cx3":"http://schemas.microsoft.com/office/drawing/2016/5/9/chartex","xmlns:cx4":"http://schemas.microsoft.com/office/drawing/2016/5/10/chartex","xmlns:cx5":"http://schemas.microsoft.com/office/drawing/2016/5/11/chartex","xmlns:cx6":"http://schemas.microsoft.com/office/drawing/2016/5/12/chartex","xmlns:cx7":"http://schemas.microsoft.com/office/drawing/2016/5/13/chartex","xmlns:cx8":"http://schemas.microsoft.com/office/drawing/2016/5/14/chartex","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","xmlns:aink":"http://schemas.microsoft.com/office/drawing/2016/ink","xmlns:am3d":"http://schemas.microsoft.com/office/drawing/2017/model3d","xmlns:o":"urn:schemas-microsoft-com:office:office","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:m":"http://schemas.openxmlformats.org/officeDocument/2006/math","xmlns:v":"urn:schemas-microsoft-com:vml","xmlns:wp14":"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing","xmlns:wp":"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing","xmlns:w10":"urn:schemas-microsoft-com:office:word","xmlns:w":"http://schemas.openxmlformats.org/wordprocessingml/2006/main","xmlns:w14":"http://schemas.microsoft.com/office/word/2010/wordml","xmlns:w15":"http://schemas.microsoft.com/office/word/2012/wordml","xmlns:w16cex":"http://schemas.microsoft.com/office/word/2018/wordml/cex","xmlns:w16cid":"http://schemas.microsoft.com/office/word/2016/wordml/cid","xmlns:w16":"http://schemas.microsoft.com/office/word/2018/wordml","xmlns:w16sdtdh":"http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash","xmlns:w16se":"http://schemas.microsoft.com/office/word/2015/wordml/symex","xmlns:wpg":"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup","xmlns:wpi":"http://schemas.microsoft.com/office/word/2010/wordprocessingInk","xmlns:wne":"http://schemas.microsoft.com/office/word/2006/wordml","xmlns:wps":"http://schemas.microsoft.com/office/word/2010/wordprocessingShape"}));for(const r of e)this.root.push(new rl(r))}}class il extends se{constructor(){super("w:pageBreakBefore")}}const jn={AT_LEAST:"atLeast",EXACTLY:"exactly",EXACT:"exact",AUTO:"auto"};class sl extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{after:"w:after",before:"w:before",line:"w:line",lineRule:"w:lineRule"})}}class al extends se{constructor(e){super("w:spacing"),this.root.push(new sl(e))}}const lh={HEADING_1:"Heading1",HEADING_2:"Heading2",HEADING_3:"Heading3",HEADING_4:"Heading4",HEADING_5:"Heading5",HEADING_6:"Heading6",TITLE:"Title"};let gr=class extends se{constructor(e){super("w:pStyle"),this.root.push(new Ce({val:e}))}};class ol extends se{constructor(e){super("w:tabs");for(const r of e)this.root.push(new ll(r))}}const hs={LEFT:"left",RIGHT:"right",CENTER:"center",BAR:"bar",CLEAR:"clear",DECIMAL:"decimal",END:"end",NUM:"num",START:"start"};class ul extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{val:"w:val",pos:"w:pos",leader:"w:leader"})}}class ll extends se{constructor({type:e,position:r,leader:a}){super("w:tab"),this.root.push(new ul({val:e,pos:r,leader:a}))}}class ds extends se{constructor(e,r){super("w:numPr"),this.root.push(new cl(r)),this.root.push(new fl(e))}}class cl extends se{constructor(e){if(super("w:ilvl"),e>9)throw new Error("Level cannot be greater than 9. Read more here: https://answers.microsoft.com/en-us/msoffice/forum/all/does-word-support-more-than-9-list-levels/d130fdcd-1781-446d-8c84-c6c79124e4d7");this.root.push(new Ce({val:e}))}}class fl extends se{constructor(e){super("w:numId"),this.root.push(new Ce({val:typeof e=="string"?`{${e}}`:e}))}}class hl extends se{constructor(){super(...arguments),ie(this,"fileChild",Symbol())}}class dl extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{id:"Id",type:"Type",target:"Target",targetMode:"TargetMode"})}}const pl={EXTERNAL:"External"};class ml extends se{constructor(e,r,a,l){super("Relationship"),this.root.push(new dl({id:e,type:r,target:a,targetMode:l}))}}class gl extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{id:"r:id",history:"w:history",anchor:"w:anchor"})}}class wl extends se{constructor(e,r,a){super("w:hyperlink"),ie(this,"linkId"),this.linkId=r;const l={history:1,anchor:a||void 0,id:a?void 0:`rId${this.linkId}`},u=new gl(l);this.root.push(u),e.forEach(o=>{this.root.push(o)})}}class yl extends se{constructor(e){super("w:externalHyperlink"),this.options=e}}class vl extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{id:"w:id",name:"w:name"})}}class bl extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{id:"w:id"})}}class _l{constructor(e){ie(this,"bookmarkUniqueNumericId",Qu()),ie(this,"start"),ie(this,"children"),ie(this,"end");const r=this.bookmarkUniqueNumericId();this.start=new El(e.id,r),this.children=e.children,this.end=new Tl(r)}}class El extends se{constructor(e,r){super("w:bookmarkStart");const a=new vl({name:e,id:r});this.root.push(a)}}class Tl extends se{constructor(e){super("w:bookmarkEnd");const r=new bl({id:e});this.root.push(r)}}class xl extends se{constructor(e){super("w:outlineLvl"),this.level=e,this.root.push(new Ce({val:e}))}}class Sl extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{verticalAlign:"w:val"})}}class Al extends se{constructor(e){super("w:vAlign"),this.root.push(new Sl({verticalAlign:e}))}}const zt={DEFAULT:"default",FIRST:"first",EVEN:"even"};class Rl extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{type:"w:type",id:"r:id"})}}const ps={HEADER:"w:headerReference",FOOTER:"w:footerReference"};class On extends se{constructor(e,r){super(e),this.root.push(new Rl({type:r.type||zt.DEFAULT,id:`rId${r.id}`}))}}class Il extends se{constructor({space:e,count:r,separate:a,equalWidth:l,children:u}){super("w:cols"),this.root.push(new ar({space:{key:"w:space",value:e===void 0?void 0:at(e)},count:{key:"w:num",value:r===void 0?void 0:Ge(r)},separate:{key:"w:sep",value:a},equalWidth:{key:"w:equalWidth",value:l}})),!l&&u&&u.forEach(o=>this.addChildElement(o))}}class kl extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{type:"w:type",linePitch:"w:linePitch",charSpace:"w:charSpace"})}}class Nl extends se{constructor(e,r,a){super("w:docGrid"),this.root.push(new kl({type:a,linePitch:Ge(e),charSpace:r?Ge(r):void 0}))}}const Ol=({countBy:t,start:e,restart:r,distance:a})=>new vt({name:"w:lnNumType",attributes:{countBy:{key:"w:countBy",value:t===void 0?void 0:Ge(t)},start:{key:"w:start",value:e===void 0?void 0:Ge(e)},restart:{key:"w:restart",value:r},distance:{key:"w:distance",value:a===void 0?void 0:at(a)}}});class ms extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{display:"w:display",offsetFrom:"w:offsetFrom",zOrder:"w:zOrder"})}}class Cl extends kr{constructor(e){if(super("w:pgBorders"),!e)return this;e.pageBorders?this.root.push(new ms({display:e.pageBorders.display,offsetFrom:e.pageBorders.offsetFrom,zOrder:e.pageBorders.zOrder})):this.root.push(new ms({})),e.pageBorderTop&&this.root.push(new ke("w:top",e.pageBorderTop)),e.pageBorderLeft&&this.root.push(new ke("w:left",e.pageBorderLeft)),e.pageBorderBottom&&this.root.push(new ke("w:bottom",e.pageBorderBottom)),e.pageBorderRight&&this.root.push(new ke("w:right",e.pageBorderRight))}}class Dl extends se{constructor(e,r,a,l,u,o,i){super("w:pgMar"),this.root.push(new ar({top:{key:"w:top",value:Nt(e)},right:{key:"w:right",value:at(r)},bottom:{key:"w:bottom",value:Nt(a)},left:{key:"w:left",value:at(l)},header:{key:"w:header",value:at(u)},footer:{key:"w:footer",value:at(o)},gutter:{key:"w:gutter",value:at(i)}}))}}class Pl extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{start:"w:start",formatType:"w:fmt",separator:"w:chapSep"})}}class Ll extends se{constructor({start:e,formatType:r,separator:a}){super("w:pgNumType"),this.root.push(new Pl({start:e===void 0?void 0:Ge(e),formatType:r,separator:a}))}}const Ea={PORTRAIT:"portrait",LANDSCAPE:"landscape"};class Fl extends se{constructor(e,r,a){super("w:pgSz");const l=a===Ea.LANDSCAPE,u=at(e),o=at(r);this.root.push(new ar({width:{key:"w:w",value:l?o:u},height:{key:"w:h",value:l?u:o},orientation:{key:"w:orient",value:a}}))}}class Bl extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{val:"w:val"})}}class Ml extends se{constructor(e){super("w:textDirection"),this.root.push(new Bl({val:e}))}}class Ul extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{val:"w:val"})}}class jl extends se{constructor(e){super("w:type"),this.root.push(new Ul({val:e}))}}const Rt={TOP:1440,RIGHT:1440,BOTTOM:1440,LEFT:1440,HEADER:708,FOOTER:708,GUTTER:0},Cn={WIDTH:11906,HEIGHT:16838,ORIENTATION:Ea.PORTRAIT};class Wl extends se{constructor({page:{size:{width:e=Cn.WIDTH,height:r=Cn.HEIGHT,orientation:a=Cn.ORIENTATION}={},margin:{top:l=Rt.TOP,right:u=Rt.RIGHT,bottom:o=Rt.BOTTOM,left:i=Rt.LEFT,header:c=Rt.HEADER,footer:w=Rt.FOOTER,gutter:y=Rt.GUTTER}={},pageNumbers:x={},borders:_,textDirection:p}={},grid:{linePitch:T=360,charSpace:v,type:E}={},headerWrapperGroup:d={},footerWrapperGroup:S={},lineNumbers:R,titlePage:D,verticalAlign:C,column:V,type:H}={}){super("w:sectPr"),this.addHeaderFooterGroup(ps.HEADER,d),this.addHeaderFooterGroup(ps.FOOTER,S),H&&this.root.push(new jl(H)),this.root.push(new Fl(e,r,a)),this.root.push(new Dl(l,u,o,i,c,w,y)),_&&this.root.push(new Cl(_)),R&&this.root.push(Ol(R)),this.root.push(new Ll(x)),V&&this.root.push(new Il(V)),C&&this.root.push(new Al(C)),D!==void 0&&this.root.push(new oe("w:titlePg",D)),p&&this.root.push(new Ml(p)),this.root.push(new Nl(T,v,E))}addHeaderFooterGroup(e,r){r.default&&this.root.push(new On(e,{type:zt.DEFAULT,id:r.default.View.ReferenceId})),r.first&&this.root.push(new On(e,{type:zt.FIRST,id:r.first.View.ReferenceId})),r.even&&this.root.push(new On(e,{type:zt.EVEN,id:r.even.View.ReferenceId}))}}class zl extends se{constructor(){super("w:body"),ie(this,"sections",[])}addSection(e){const r=this.sections.pop();this.root.push(this.createSectionParagraph(r)),this.sections.push(new Wl(e))}prepForXml(e){return this.sections.length===1&&(this.root.splice(0,1),this.root.push(this.sections.pop())),super.prepForXml(e)}push(e){this.root.push(e)}createSectionParagraph(e){const r=new Wn({}),a=new qt({});return a.push(e),r.addChildElement(a),r}}class ur extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",Ignorable:"mc:Ignorable",cp:"xmlns:cp",dc:"xmlns:dc",dcterms:"xmlns:dcterms",dcmitype:"xmlns:dcmitype",xsi:"xmlns:xsi",type:"xsi:type",cx:"xmlns:cx",cx1:"xmlns:cx1",cx2:"xmlns:cx2",cx3:"xmlns:cx3",cx4:"xmlns:cx4",cx5:"xmlns:cx5",cx6:"xmlns:cx6",cx7:"xmlns:cx7",cx8:"xmlns:cx8",aink:"xmlns:aink",am3d:"xmlns:am3d",w16cex:"xmlns:w16cex",w16cid:"xmlns:w16cid",w16:"xmlns:w16",w16sdtdh:"xmlns:w16sdtdh",w16se:"xmlns:w16se"})}}class Hl extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{color:"w:color",themeColor:"w:themeColor",themeShade:"w:themeShade",themeTint:"w:themeTint"})}}class Gl extends se{constructor(e){super("w:background"),this.root.push(new Hl({color:e.color===void 0?void 0:Gt(e.color),themeColor:e.themeColor,themeShade:e.themeShade===void 0?void 0:ls(e.themeShade),themeTint:e.themeTint===void 0?void 0:ls(e.themeTint)}))}}class Kl extends se{constructor(e){super("w:document"),ie(this,"body"),this.root.push(new ur({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",cx:"http://schemas.microsoft.com/office/drawing/2014/chartex",cx1:"http://schemas.microsoft.com/office/drawing/2015/9/8/chartex",cx2:"http://schemas.microsoft.com/office/drawing/2015/10/21/chartex",cx3:"http://schemas.microsoft.com/office/drawing/2016/5/9/chartex",cx4:"http://schemas.microsoft.com/office/drawing/2016/5/10/chartex",cx5:"http://schemas.microsoft.com/office/drawing/2016/5/11/chartex",cx6:"http://schemas.microsoft.com/office/drawing/2016/5/12/chartex",cx7:"http://schemas.microsoft.com/office/drawing/2016/5/13/chartex",cx8:"http://schemas.microsoft.com/office/drawing/2016/5/14/chartex",aink:"http://schemas.microsoft.com/office/drawing/2016/ink",am3d:"http://schemas.microsoft.com/office/drawing/2017/model3d",w16cex:"http://schemas.microsoft.com/office/word/2018/wordml/cex",w16cid:"http://schemas.microsoft.com/office/word/2016/wordml/cid",w16:"http://schemas.microsoft.com/office/word/2018/wordml",w16sdtdh:"http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash",w16se:"http://schemas.microsoft.com/office/word/2015/wordml/symex",Ignorable:"w14 w15 wp14"})),this.body=new zl,e.background&&this.root.push(new Gl(e.background)),this.root.push(this.body)}add(e){return this.body.push(e),this}get Body(){return this.body}}class Vl extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{xmlns:"xmlns"})}}class Zt extends se{constructor(){super("Relationships"),this.root.push(new Vl({xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"}))}createRelationship(e,r,a,l){const u=new ml(`rId${e}`,r,a,l);return this.root.push(u),u}get RelationshipCount(){return this.root.length-1}}class Ta{constructor(e){ie(this,"document"),ie(this,"relationships"),this.document=new Kl(e),this.relationships=new Zt}get View(){return this.document}get Relationships(){return this.relationships}}class ql extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{val:"w:val"})}}class Xl extends se{constructor(){super("w:wordWrap"),this.root.push(new ql({val:0}))}}const Yl=t=>{var e,r;return new vt({name:"w:framePr",attributes:{anchorLock:{key:"w:anchorLock",value:t.anchorLock},dropCap:{key:"w:dropCap",value:t.dropCap},width:{key:"w:w",value:t.width},height:{key:"w:h",value:t.height},x:{key:"w:x",value:t.position?t.position.x:void 0},y:{key:"w:y",value:t.position?t.position.y:void 0},anchorHorizontal:{key:"w:hAnchor",value:t.anchor.horizontal},anchorVertical:{key:"w:vAnchor",value:t.anchor.vertical},spaceHorizontal:{key:"w:hSpace",value:(e=t.space)==null?void 0:e.horizontal},spaceVertical:{key:"w:vSpace",value:(r=t.space)==null?void 0:r.vertical},rule:{key:"w:hRule",value:t.rule},alignmentX:{key:"w:xAlign",value:t.alignment?t.alignment.x:void 0},alignmentY:{key:"w:yAlign",value:t.alignment?t.alignment.y:void 0},lines:{key:"w:lines",value:t.lines},wrap:{key:"w:wrap",value:t.wrap}}})};class qt extends kr{constructor(e){var r,a;if(super("w:pPr"),ie(this,"numberingReferences",[]),!e)return this;e.heading&&this.push(new gr(e.heading)),e.bullet&&this.push(new gr("ListParagraph")),e.numbering&&!e.style&&!e.heading&&(e.numbering.custom||this.push(new gr("ListParagraph"))),e.style&&this.push(new gr(e.style)),e.keepNext!==void 0&&this.push(new oe("w:keepNext",e.keepNext)),e.keepLines!==void 0&&this.push(new oe("w:keepLines",e.keepLines)),e.pageBreakBefore&&this.push(new il),e.frame&&this.push(Yl(e.frame)),e.widowControl!==void 0&&this.push(new oe("w:widowControl",e.widowControl)),e.bullet&&this.push(new ds(1,e.bullet.level)),e.numbering&&(this.numberingReferences.push({reference:e.numbering.reference,instance:(r=e.numbering.instance)!=null?r:0}),this.push(new ds(`${e.numbering.reference}-${(a=e.numbering.instance)!=null?a:0}`,e.numbering.level))),e.border&&this.push(new xu(e.border)),e.thematicBreak&&this.push(new Su),e.shading&&this.push(new va(e.shading)),e.wordWrap&&this.push(new Xl),e.overflowPunctuation&&this.push(new oe("w:overflowPunct",e.overflowPunctuation));const l=[...e.rightTabStop!==void 0?[{type:hs.RIGHT,position:e.rightTabStop}]:[],...e.tabStops?e.tabStops:[],...e.leftTabStop!==void 0?[{type:hs.LEFT,position:e.leftTabStop}]:[]];l.length>0&&this.push(new ol(l)),e.bidirectional!==void 0&&this.push(new oe("w:bidi",e.bidirectional)),e.spacing&&this.push(new al(e.spacing)),e.indent&&this.push(new Au(e.indent)),e.contextualSpacing!==void 0&&this.push(new oe("w:contextualSpacing",e.contextualSpacing)),e.alignment&&this.push(new Eu(e.alignment)),e.outlineLevel!==void 0&&this.push(new xl(e.outlineLevel)),e.suppressLineNumbers!==void 0&&this.push(new oe("w:suppressLineNumbers",e.suppressLineNumbers)),e.autoSpaceEastAsianText!==void 0&&this.push(new oe("w:autoSpaceDN",e.autoSpaceEastAsianText)),e.run&&this.push(new Ct(e.run))}push(e){this.root.push(e)}prepForXml(e){if(e.viewWrapper instanceof Ta)for(const r of this.numberingReferences)e.file.Numbering.createConcreteNumberingInstance(r.reference,r.instance);return super.prepForXml(e)}}class Wn extends hl{constructor(e){if(super("w:p"),ie(this,"properties"),typeof e=="string")return this.properties=new qt({}),this.root.push(this.properties),this.root.push(new fs(e)),this;if(this.properties=new qt(e),this.root.push(this.properties),e.text&&this.root.push(new fs(e.text)),e.children)for(const r of e.children){if(r instanceof _l){this.root.push(r.start);for(const a of r.children)this.root.push(a);this.root.push(r.end);continue}this.root.push(r)}}prepForXml(e){for(const r of this.root)if(r instanceof yl){const a=this.root.indexOf(r),l=new wl(r.options.children,Ju());e.viewWrapper.Relationships.createRelationship(l.linkId,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",r.options.link,pl.EXTERNAL),this.root[a]=l}return super.prepForXml(e)}addRunToFront(e){return this.root.splice(1,0,e),this}}const Ft={style:si.NONE,size:0,color:"auto"},Bt={style:si.SINGLE,size:4,color:"auto"};class Zl extends se{constructor(e){super("w:tblBorders"),e.top?this.root.push(new ke("w:top",e.top)):this.root.push(new ke("w:top",Bt)),e.left?this.root.push(new ke("w:left",e.left)):this.root.push(new ke("w:left",Bt)),e.bottom?this.root.push(new ke("w:bottom",e.bottom)):this.root.push(new ke("w:bottom",Bt)),e.right?this.root.push(new ke("w:right",e.right)):this.root.push(new ke("w:right",Bt)),e.insideHorizontal?this.root.push(new ke("w:insideH",e.insideHorizontal)):this.root.push(new ke("w:insideH",Bt)),e.insideVertical?this.root.push(new ke("w:insideV",e.insideVertical)):this.root.push(new ke("w:insideV",Bt))}}ie(Zl,"NONE",{top:Ft,bottom:Ft,left:Ft,right:Ft,insideHorizontal:Ft,insideVertical:Ft});class Ql extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{xmlns:"xmlns",vt:"xmlns:vt"})}}class Jl extends se{constructor(){super("Properties"),this.root.push(new Ql({xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"}))}}class $l extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{xmlns:"xmlns"})}}class ec extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{contentType:"ContentType",extension:"Extension"})}}class yt extends se{constructor(e,r){super("Default"),this.root.push(new ec({contentType:e,extension:r}))}}class tc extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{contentType:"ContentType",partName:"PartName"})}}class $e extends se{constructor(e,r){super("Override"),this.root.push(new tc({contentType:e,partName:r}))}}class rc extends se{constructor(){super("Types"),this.root.push(new $l({xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"})),this.root.push(new yt("image/png","png")),this.root.push(new yt("image/jpeg","jpeg")),this.root.push(new yt("image/jpeg","jpg")),this.root.push(new yt("image/bmp","bmp")),this.root.push(new yt("image/gif","gif")),this.root.push(new yt("application/vnd.openxmlformats-package.relationships+xml","rels")),this.root.push(new yt("application/xml","xml")),this.root.push(new yt("application/vnd.openxmlformats-officedocument.obfuscatedFont","odttf")),this.root.push(new $e("application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml","/word/document.xml")),this.root.push(new $e("application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml","/word/styles.xml")),this.root.push(new $e("application/vnd.openxmlformats-package.core-properties+xml","/docProps/core.xml")),this.root.push(new $e("application/vnd.openxmlformats-officedocument.custom-properties+xml","/docProps/custom.xml")),this.root.push(new $e("application/vnd.openxmlformats-officedocument.extended-properties+xml","/docProps/app.xml")),this.root.push(new $e("application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml","/word/numbering.xml")),this.root.push(new $e("application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml","/word/footnotes.xml")),this.root.push(new $e("application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml","/word/settings.xml")),this.root.push(new $e("application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml","/word/comments.xml")),this.root.push(new $e("application/vnd.openxmlformats-officedocument.wordprocessingml.fontTable+xml","/word/fontTable.xml"))}addFooter(e){this.root.push(new $e("application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml",`/word/footer${e}.xml`))}addHeader(e){this.root.push(new $e("application/vnd.openxmlformats-officedocument.wordprocessingml.header+xml",`/word/header${e}.xml`))}}class nc extends se{constructor(e){super("cp:coreProperties"),this.root.push(new ur({cp:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",xsi:"http://www.w3.org/2001/XMLSchema-instance"})),e.title&&this.root.push(new At("dc:title",e.title)),e.subject&&this.root.push(new At("dc:subject",e.subject)),e.creator&&this.root.push(new At("dc:creator",e.creator)),e.keywords&&this.root.push(new At("cp:keywords",e.keywords)),e.description&&this.root.push(new At("dc:description",e.description)),e.lastModifiedBy&&this.root.push(new At("cp:lastModifiedBy",e.lastModifiedBy)),e.revision&&this.root.push(new At("cp:revision",String(e.revision))),this.root.push(new gs("dcterms:created")),this.root.push(new gs("dcterms:modified"))}}class gs extends se{constructor(e){super(e),this.root.push(new ur({type:"dcterms:W3CDTF"})),this.root.push(bu(new Date))}}class ic extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{xmlns:"xmlns",vt:"xmlns:vt"})}}class sc extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{fmtid:"fmtid",pid:"pid",name:"name"})}}class ac extends se{constructor(e,r){super("property"),this.root.push(new sc({fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:e.toString(),name:r.name})),this.root.push(new oc(r.value))}}class oc extends se{constructor(e){super("vt:lpwstr"),this.root.push(e)}}class uc extends se{constructor(e){super("Properties"),ie(this,"nextId"),ie(this,"properties",[]),this.root.push(new ic({xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"})),this.nextId=2;for(const r of e)this.addCustomProperty(r)}prepForXml(e){return this.properties.forEach(r=>this.root.push(r)),super.prepForXml(e)}addCustomProperty(e){this.properties.push(new ac(this.nextId++,e))}}class lc extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",cp:"xmlns:cp",dc:"xmlns:dc",dcterms:"xmlns:dcterms",dcmitype:"xmlns:dcmitype",xsi:"xmlns:xsi",type:"xsi:type"})}}let cc=class extends ma{constructor(e,r){super("w:ftr",r),ie(this,"refId"),this.refId=e,r||this.root.push(new lc({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape"}))}get ReferenceId(){return this.refId}add(e){this.root.push(e)}};class fc{constructor(e,r,a){ie(this,"footer"),ie(this,"relationships"),this.media=e,this.footer=new cc(r,a),this.relationships=new Zt}add(e){this.footer.add(e)}addChildElement(e){this.footer.addChildElement(e)}get View(){return this.footer}get Relationships(){return this.relationships}get Media(){return this.media}}class hc extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{type:"w:type",id:"w:id"})}}class dc extends se{constructor(){super("w:footnoteRef")}}class pc extends Pr{constructor(){super({style:"FootnoteReference"}),this.root.push(new dc)}}const ws={SEPERATOR:"separator",CONTINUATION_SEPERATOR:"continuationSeparator"};class Dn extends se{constructor(e){super("w:footnote"),this.root.push(new hc({type:e.type,id:e.id}));for(let r=0;r9)throw new Error("Level cannot be greater than 9. Read more here: https://answers.microsoft.com/en-us/msoffice/forum/all/does-word-support-more-than-9-list-levels/d130fdcd-1781-446d-8c84-c6c79124e4d7");this.root.push(new Ac({ilvl:Ge(e),tentative:1}))}}class Dc extends Cc{}class Pc extends se{constructor(e){super("w:multiLevelType"),this.root.push(new Ce({val:e}))}}class Lc extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{abstractNumId:"w:abstractNumId",restartNumberingAfterBreak:"w15:restartNumberingAfterBreak"})}}class ys extends se{constructor(e,r){super("w:abstractNum"),ie(this,"id"),this.root.push(new Lc({abstractNumId:Ge(e),restartNumberingAfterBreak:0})),this.root.push(new Pc("hybridMultilevel")),this.id=e;for(const a of r)this.root.push(new Dc(a))}}class Fc extends se{constructor(e){super("w:abstractNumId"),this.root.push(new Ce({val:e}))}}class Bc extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{numId:"w:numId"})}}class vs extends se{constructor(e){if(super("w:num"),ie(this,"numId"),ie(this,"reference"),ie(this,"instance"),this.numId=e.numId,this.reference=e.reference,this.instance=e.instance,this.root.push(new Bc({numId:Ge(e.numId)})),this.root.push(new Fc(Ge(e.abstractNumId))),e.overrideLevels&&e.overrideLevels.length)for(const r of e.overrideLevels)this.root.push(new Uc(r.num,r.start))}}class Mc extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{ilvl:"w:ilvl"})}}class Uc extends se{constructor(e,r){super("w:lvlOverride"),this.root.push(new Mc({ilvl:e})),r!==void 0&&this.root.push(new Wc(r))}}class jc extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{val:"w:val"})}}class Wc extends se{constructor(e){super("w:startOverride"),this.root.push(new jc({val:e}))}}class zc extends se{constructor(e){super("w:numbering"),ie(this,"abstractNumberingMap",new Map),ie(this,"concreteNumberingMap",new Map),ie(this,"referenceConfigMap",new Map),ie(this,"abstractNumUniqueNumericId",Yu()),ie(this,"concreteNumUniqueNumericId",Zu()),this.root.push(new ur({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",Ignorable:"w14 w15 wp14"}));const r=new ys(this.abstractNumUniqueNumericId(),[{level:0,format:dt.BULLET,text:"●",alignment:ut.LEFT,style:{paragraph:{indent:{left:st(.5),hanging:st(.25)}}}},{level:1,format:dt.BULLET,text:"○",alignment:ut.LEFT,style:{paragraph:{indent:{left:st(1),hanging:st(.25)}}}},{level:2,format:dt.BULLET,text:"■",alignment:ut.LEFT,style:{paragraph:{indent:{left:2160,hanging:st(.25)}}}},{level:3,format:dt.BULLET,text:"●",alignment:ut.LEFT,style:{paragraph:{indent:{left:2880,hanging:st(.25)}}}},{level:4,format:dt.BULLET,text:"○",alignment:ut.LEFT,style:{paragraph:{indent:{left:3600,hanging:st(.25)}}}},{level:5,format:dt.BULLET,text:"■",alignment:ut.LEFT,style:{paragraph:{indent:{left:4320,hanging:st(.25)}}}},{level:6,format:dt.BULLET,text:"●",alignment:ut.LEFT,style:{paragraph:{indent:{left:5040,hanging:st(.25)}}}},{level:7,format:dt.BULLET,text:"●",alignment:ut.LEFT,style:{paragraph:{indent:{left:5760,hanging:st(.25)}}}},{level:8,format:dt.BULLET,text:"●",alignment:ut.LEFT,style:{paragraph:{indent:{left:6480,hanging:st(.25)}}}}]);this.concreteNumberingMap.set("default-bullet-numbering",new vs({numId:1,abstractNumId:r.id,reference:"default-bullet-numbering",instance:0,overrideLevels:[{num:0,start:1}]})),this.abstractNumberingMap.set("default-bullet-numbering",r);for(const a of e.config)this.abstractNumberingMap.set(a.reference,new ys(this.abstractNumUniqueNumericId(),a.levels)),this.referenceConfigMap.set(a.reference,a.levels)}prepForXml(e){for(const r of this.abstractNumberingMap.values())this.root.push(r);for(const r of this.concreteNumberingMap.values())this.root.push(r);return super.prepForXml(e)}createConcreteNumberingInstance(e,r){const a=this.abstractNumberingMap.get(e);if(!a)return;const l=`${e}-${r}`;if(this.concreteNumberingMap.has(l))return;const u=this.referenceConfigMap.get(e),o=u&&u[0].start,i={numId:this.concreteNumUniqueNumericId(),abstractNumId:a.id,reference:e,instance:r,overrideLevels:[o&&Number.isInteger(o)?{num:0,start:o}:{num:0,start:1}]};this.concreteNumberingMap.set(l,new vs(i))}get ConcreteNumbering(){return Array.from(this.concreteNumberingMap.values())}get ReferenceConfig(){return Array.from(this.referenceConfigMap.values())}}class Hc extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{version:"w:val",name:"w:name",uri:"w:uri"})}}class Gc extends se{constructor(e){super("w:compatSetting"),this.root.push(new Hc({version:e,uri:"http://schemas.microsoft.com/office/word",name:"compatibilityMode"}))}}class Kc extends se{constructor(e){super("w:compat"),e.version&&this.root.push(new Gc(e.version)),e.useSingleBorderforContiguousCells&&this.root.push(new oe("w:useSingleBorderforContiguousCells",e.useSingleBorderforContiguousCells)),e.wordPerfectJustification&&this.root.push(new oe("w:wpJustification",e.wordPerfectJustification)),e.noTabStopForHangingIndent&&this.root.push(new oe("w:noTabHangInd",e.noTabStopForHangingIndent)),e.noLeading&&this.root.push(new oe("w:noLeading",e.noLeading)),e.spaceForUnderline&&this.root.push(new oe("w:spaceForUL",e.spaceForUnderline)),e.noColumnBalance&&this.root.push(new oe("w:noColumnBalance",e.noColumnBalance)),e.balanceSingleByteDoubleByteWidth&&this.root.push(new oe("w:balanceSingleByteDoubleByteWidth",e.balanceSingleByteDoubleByteWidth)),e.noExtraLineSpacing&&this.root.push(new oe("w:noExtraLineSpacing",e.noExtraLineSpacing)),e.doNotLeaveBackslashAlone&&this.root.push(new oe("w:doNotLeaveBackslashAlone",e.doNotLeaveBackslashAlone)),e.underlineTrailingSpaces&&this.root.push(new oe("w:ulTrailSpace",e.underlineTrailingSpaces)),e.doNotExpandShiftReturn&&this.root.push(new oe("w:doNotExpandShiftReturn",e.doNotExpandShiftReturn)),e.spacingInWholePoints&&this.root.push(new oe("w:spacingInWholePoints",e.spacingInWholePoints)),e.lineWrapLikeWord6&&this.root.push(new oe("w:lineWrapLikeWord6",e.lineWrapLikeWord6)),e.printBodyTextBeforeHeader&&this.root.push(new oe("w:printBodyTextBeforeHeader",e.printBodyTextBeforeHeader)),e.printColorsBlack&&this.root.push(new oe("w:printColBlack",e.printColorsBlack)),e.spaceWidth&&this.root.push(new oe("w:wpSpaceWidth",e.spaceWidth)),e.showBreaksInFrames&&this.root.push(new oe("w:showBreaksInFrames",e.showBreaksInFrames)),e.subFontBySize&&this.root.push(new oe("w:subFontBySize",e.subFontBySize)),e.suppressBottomSpacing&&this.root.push(new oe("w:suppressBottomSpacing",e.suppressBottomSpacing)),e.suppressTopSpacing&&this.root.push(new oe("w:suppressTopSpacing",e.suppressTopSpacing)),e.suppressSpacingAtTopOfPage&&this.root.push(new oe("w:suppressSpacingAtTopOfPage",e.suppressSpacingAtTopOfPage)),e.suppressTopSpacingWP&&this.root.push(new oe("w:suppressTopSpacingWP",e.suppressTopSpacingWP)),e.suppressSpBfAfterPgBrk&&this.root.push(new oe("w:suppressSpBfAfterPgBrk",e.suppressSpBfAfterPgBrk)),e.swapBordersFacingPages&&this.root.push(new oe("w:swapBordersFacingPages",e.swapBordersFacingPages)),e.convertMailMergeEsc&&this.root.push(new oe("w:convMailMergeEsc",e.convertMailMergeEsc)),e.truncateFontHeightsLikeWP6&&this.root.push(new oe("w:truncateFontHeightsLikeWP6",e.truncateFontHeightsLikeWP6)),e.macWordSmallCaps&&this.root.push(new oe("w:mwSmallCaps",e.macWordSmallCaps)),e.usePrinterMetrics&&this.root.push(new oe("w:usePrinterMetrics",e.usePrinterMetrics)),e.doNotSuppressParagraphBorders&&this.root.push(new oe("w:doNotSuppressParagraphBorders",e.doNotSuppressParagraphBorders)),e.wrapTrailSpaces&&this.root.push(new oe("w:wrapTrailSpaces",e.wrapTrailSpaces)),e.footnoteLayoutLikeWW8&&this.root.push(new oe("w:footnoteLayoutLikeWW8",e.footnoteLayoutLikeWW8)),e.shapeLayoutLikeWW8&&this.root.push(new oe("w:shapeLayoutLikeWW8",e.shapeLayoutLikeWW8)),e.alignTablesRowByRow&&this.root.push(new oe("w:alignTablesRowByRow",e.alignTablesRowByRow)),e.forgetLastTabAlignment&&this.root.push(new oe("w:forgetLastTabAlignment",e.forgetLastTabAlignment)),e.adjustLineHeightInTable&&this.root.push(new oe("w:adjustLineHeightInTable",e.adjustLineHeightInTable)),e.autoSpaceLikeWord95&&this.root.push(new oe("w:autoSpaceLikeWord95",e.autoSpaceLikeWord95)),e.noSpaceRaiseLower&&this.root.push(new oe("w:noSpaceRaiseLower",e.noSpaceRaiseLower)),e.doNotUseHTMLParagraphAutoSpacing&&this.root.push(new oe("w:doNotUseHTMLParagraphAutoSpacing",e.doNotUseHTMLParagraphAutoSpacing)),e.layoutRawTableWidth&&this.root.push(new oe("w:layoutRawTableWidth",e.layoutRawTableWidth)),e.layoutTableRowsApart&&this.root.push(new oe("w:layoutTableRowsApart",e.layoutTableRowsApart)),e.useWord97LineBreakRules&&this.root.push(new oe("w:useWord97LineBreakRules",e.useWord97LineBreakRules)),e.doNotBreakWrappedTables&&this.root.push(new oe("w:doNotBreakWrappedTables",e.doNotBreakWrappedTables)),e.doNotSnapToGridInCell&&this.root.push(new oe("w:doNotSnapToGridInCell",e.doNotSnapToGridInCell)),e.selectFieldWithFirstOrLastCharacter&&this.root.push(new oe("w:selectFldWithFirstOrLastChar",e.selectFieldWithFirstOrLastCharacter)),e.applyBreakingRules&&this.root.push(new oe("w:applyBreakingRules",e.applyBreakingRules)),e.doNotWrapTextWithPunctuation&&this.root.push(new oe("w:doNotWrapTextWithPunct",e.doNotWrapTextWithPunctuation)),e.doNotUseEastAsianBreakRules&&this.root.push(new oe("w:doNotUseEastAsianBreakRules",e.doNotUseEastAsianBreakRules)),e.useWord2002TableStyleRules&&this.root.push(new oe("w:useWord2002TableStyleRules",e.useWord2002TableStyleRules)),e.growAutofit&&this.root.push(new oe("w:growAutofit",e.growAutofit)),e.useFELayout&&this.root.push(new oe("w:useFELayout",e.useFELayout)),e.useNormalStyleForList&&this.root.push(new oe("w:useNormalStyleForList",e.useNormalStyleForList)),e.doNotUseIndentAsNumberingTabStop&&this.root.push(new oe("w:doNotUseIndentAsNumberingTabStop",e.doNotUseIndentAsNumberingTabStop)),e.useAlternateEastAsianLineBreakRules&&this.root.push(new oe("w:useAltKinsokuLineBreakRules",e.useAlternateEastAsianLineBreakRules)),e.allowSpaceOfSameStyleInTable&&this.root.push(new oe("w:allowSpaceOfSameStyleInTable",e.allowSpaceOfSameStyleInTable)),e.doNotSuppressIndentation&&this.root.push(new oe("w:doNotSuppressIndentation",e.doNotSuppressIndentation)),e.doNotAutofitConstrainedTables&&this.root.push(new oe("w:doNotAutofitConstrainedTables",e.doNotAutofitConstrainedTables)),e.autofitToFirstFixedWidthCell&&this.root.push(new oe("w:autofitToFirstFixedWidthCell",e.autofitToFirstFixedWidthCell)),e.underlineTabInNumberingList&&this.root.push(new oe("w:underlineTabInNumList",e.underlineTabInNumberingList)),e.displayHangulFixedWidth&&this.root.push(new oe("w:displayHangulFixedWidth",e.displayHangulFixedWidth)),e.splitPgBreakAndParaMark&&this.root.push(new oe("w:splitPgBreakAndParaMark",e.splitPgBreakAndParaMark)),e.doNotVerticallyAlignCellWithSp&&this.root.push(new oe("w:doNotVertAlignCellWithSp",e.doNotVerticallyAlignCellWithSp)),e.doNotBreakConstrainedForcedTable&&this.root.push(new oe("w:doNotBreakConstrainedForcedTable",e.doNotBreakConstrainedForcedTable)),e.ignoreVerticalAlignmentInTextboxes&&this.root.push(new oe("w:doNotVertAlignInTxbx",e.ignoreVerticalAlignmentInTextboxes)),e.useAnsiKerningPairs&&this.root.push(new oe("w:useAnsiKerningPairs",e.useAnsiKerningPairs)),e.cachedColumnBalance&&this.root.push(new oe("w:cachedColBalance",e.cachedColumnBalance))}}class Vc extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",Ignorable:"mc:Ignorable"})}}class qc extends se{constructor(e){var r,a,l,u;super("w:settings"),this.root.push(new Vc({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",Ignorable:"w14 w15 wp14"})),this.root.push(new oe("w:displayBackgroundShape",!0)),e.trackRevisions!==void 0&&this.root.push(new oe("w:trackRevisions",e.trackRevisions)),e.evenAndOddHeaders!==void 0&&this.root.push(new oe("w:evenAndOddHeaders",e.evenAndOddHeaders)),e.updateFields!==void 0&&this.root.push(new oe("w:updateFields",e.updateFields)),e.defaultTabStop!==void 0&&this.root.push(new ii("w:defaultTabStop",e.defaultTabStop)),this.root.push(new Kc(sr(Ee({},(r=e.compatibility)!=null?r:{}),{version:(u=(l=(a=e.compatibility)==null?void 0:a.version)!=null?l:e.compatibilityModeVersion)!=null?u:15})))}}class xa extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{val:"w:val"})}}class Xc extends se{constructor(e){super("w:name"),this.root.push(new xa({val:e}))}}class Yc extends se{constructor(e){super("w:uiPriority"),this.root.push(new xa({val:Ge(e)}))}}class Zc extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{type:"w:type",styleId:"w:styleId",default:"w:default",customStyle:"w:customStyle"})}}class Sa extends se{constructor(e,r){super("w:style"),this.root.push(new Zc(e)),r.name&&this.root.push(new Xc(r.name)),r.basedOn&&this.root.push(new Wt("w:basedOn",r.basedOn)),r.next&&this.root.push(new Wt("w:next",r.next)),r.link&&this.root.push(new Wt("w:link",r.link)),r.uiPriority!==void 0&&this.root.push(new Yc(r.uiPriority)),r.semiHidden!==void 0&&this.root.push(new oe("w:semiHidden",r.semiHidden)),r.unhideWhenUsed!==void 0&&this.root.push(new oe("w:unhideWhenUsed",r.unhideWhenUsed)),r.quickFormat!==void 0&&this.root.push(new oe("w:qFormat",r.quickFormat))}}class Lr extends Sa{constructor(e){super({type:"paragraph",styleId:e.id},e),ie(this,"paragraphProperties"),ie(this,"runProperties"),this.paragraphProperties=new qt(e.paragraph),this.runProperties=new Ct(e.run),this.root.push(this.paragraphProperties),this.root.push(this.runProperties)}}class Fr extends Sa{constructor(e){super({type:"character",styleId:e.id},Ee({uiPriority:99,unhideWhenUsed:!0},e)),ie(this,"runProperties"),this.runProperties=new Ct(e.run),this.root.push(this.runProperties)}}class bt extends Lr{constructor(e){super(Ee({basedOn:"Normal",next:"Normal",quickFormat:!0},e))}}class Qc extends bt{constructor(e){super(Ee({id:"Title",name:"Title"},e))}}class Jc extends bt{constructor(e){super(Ee({id:"Heading1",name:"Heading 1"},e))}}class $c extends bt{constructor(e){super(Ee({id:"Heading2",name:"Heading 2"},e))}}class ef extends bt{constructor(e){super(Ee({id:"Heading3",name:"Heading 3"},e))}}class tf extends bt{constructor(e){super(Ee({id:"Heading4",name:"Heading 4"},e))}}class rf extends bt{constructor(e){super(Ee({id:"Heading5",name:"Heading 5"},e))}}class nf extends bt{constructor(e){super(Ee({id:"Heading6",name:"Heading 6"},e))}}class sf extends bt{constructor(e){super(Ee({id:"Strong",name:"Strong"},e))}}class af extends Lr{constructor(e){super(Ee({id:"ListParagraph",name:"List Paragraph",basedOn:"Normal",quickFormat:!0},e))}}class of extends Lr{constructor(e){super(Ee({id:"FootnoteText",name:"footnote text",link:"FootnoteTextChar",basedOn:"Normal",uiPriority:99,semiHidden:!0,unhideWhenUsed:!0,paragraph:{spacing:{after:0,line:240,lineRule:jn.AUTO}},run:{size:20}},e))}}class uf extends Fr{constructor(e){super(Ee({id:"FootnoteReference",name:"footnote reference",basedOn:"DefaultParagraphFont",semiHidden:!0,run:{superScript:!0}},e))}}class lf extends Fr{constructor(e){super(Ee({id:"FootnoteTextChar",name:"Footnote Text Char",basedOn:"DefaultParagraphFont",link:"FootnoteText",semiHidden:!0,run:{size:20}},e))}}class cf extends Fr{constructor(e){super(Ee({id:"Hyperlink",name:"Hyperlink",basedOn:"DefaultParagraphFont",run:{color:"0563C1",underline:{type:_a.SINGLE}}},e))}}class zn extends se{constructor(e){if(super("w:styles"),e.initialStyles&&this.root.push(e.initialStyles),e.importedStyles)for(const r of e.importedStyles)this.root.push(r);if(e.paragraphStyles)for(const r of e.paragraphStyles)this.root.push(new Lr(r));if(e.characterStyles)for(const r of e.characterStyles)this.root.push(new Fr(r))}}class ff extends se{constructor(e){super("w:pPrDefault"),this.root.push(new qt(e))}}class hf extends se{constructor(e){super("w:rPrDefault"),this.root.push(new Ct(e))}}class df extends se{constructor(e){super("w:docDefaults"),ie(this,"runPropertiesDefaults"),ie(this,"paragraphPropertiesDefaults"),this.runPropertiesDefaults=new hf(e.run),this.paragraphPropertiesDefaults=new ff(e.paragraph),this.root.push(this.runPropertiesDefaults),this.root.push(this.paragraphPropertiesDefaults)}}class pf{newInstance(e){const r=pa.xml2js(e,{compact:!1});let a;for(const o of r.elements||[])o.name==="w:styles"&&(a=o);if(a===void 0)throw new Error("can not find styles element");const l=a.elements||[];return new zn({initialStyles:new gu(a.attributes),importedStyles:l.map(o=>ni(o))})}}class bs{newInstance(e={}){var r;return{initialStyles:new ur({mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",Ignorable:"w14 w15"}),importedStyles:[new df((r=e.document)!=null?r:{}),new Qc(Ee({run:{size:56}},e.title)),new Jc(Ee({run:{color:"2E74B5",size:32}},e.heading1)),new $c(Ee({run:{color:"2E74B5",size:26}},e.heading2)),new ef(Ee({run:{color:"1F4D78",size:24}},e.heading3)),new tf(Ee({run:{color:"2E74B5",italics:!0}},e.heading4)),new rf(Ee({run:{color:"2E74B5"}},e.heading5)),new nf(Ee({run:{color:"1F4D78"}},e.heading6)),new sf(Ee({run:{bold:!0}},e.strong)),new af(e.listParagraph||{}),new cf(e.hyperlink||{}),new uf(e.footnoteReference||{}),new of(e.footnoteText||{}),new lf(e.footnoteTextChar||{})]}}}const wr=({id:t,fontKey:e,subsetted:r},a)=>new vt({name:a,attributes:Ee({id:{key:"r:id",value:t}},e?{fontKey:{key:"w:fontKey",value:`{${e}}`}}:{}),children:[...r?[new oe("w:subsetted",r)]:[]]}),mf=({name:t,altName:e,panose1:r,charset:a,family:l,notTrueType:u,pitch:o,sig:i,embedRegular:c,embedBold:w,embedItalic:y,embedBoldItalic:x})=>new vt({name:"w:font",attributes:{name:{key:"w:name",value:t}},children:[...e?[tr("w:altName",e)]:[],...r?[tr("w:panose1",r)]:[],...a?[tr("w:charset",a)]:[],...l?[tr("w:family",l)]:[],...u?[new oe("w:notTrueType",u)]:[],...o?[tr("w:pitch",o)]:[],...i?[new vt({name:"w:sig",attributes:{usb0:{key:"w:usb0",value:i.usb0},usb1:{key:"w:usb1",value:i.usb1},usb2:{key:"w:usb2",value:i.usb2},usb3:{key:"w:usb3",value:i.usb3},csb0:{key:"w:csb0",value:i.csb0},csb1:{key:"w:csb1",value:i.csb1}}})]:[],...c?[wr(c,"w:embedRegular")]:[],...w?[wr(w,"w:embedBold")]:[],...y?[wr(y,"w:embedItalic")]:[],...x?[wr(x,"w:embedBoldItalic")]:[]]}),gf=({name:t,index:e,fontKey:r,characterSet:a})=>mf({name:t,sig:{usb0:"E0002AFF",usb1:"C000247B",usb2:"00000009",usb3:"00000000",csb0:"000001FF",csb1:"00000000"},charset:a,family:"auto",pitch:"variable",embedRegular:{fontKey:r,id:`rId${e}`}}),wf=t=>new vt({name:"w:fonts",attributes:{mc:{key:"xmlns:mc",value:"http://schemas.openxmlformats.org/markup-compatibility/2006"},r:{key:"xmlns:r",value:"http://schemas.openxmlformats.org/officeDocument/2006/relationships"},w:{key:"xmlns:w",value:"http://schemas.openxmlformats.org/wordprocessingml/2006/main"},w14:{key:"xmlns:w14",value:"http://schemas.microsoft.com/office/word/2010/wordml"},w15:{key:"xmlns:w15",value:"http://schemas.microsoft.com/office/word/2012/wordml"},w16cex:{key:"xmlns:w16cex",value:"http://schemas.microsoft.com/office/word/2018/wordml/cex"},w16cid:{key:"xmlns:w16cid",value:"http://schemas.microsoft.com/office/word/2016/wordml/cid"},w16:{key:"xmlns:w16",value:"http://schemas.microsoft.com/office/word/2018/wordml"},w16sdtdh:{key:"xmlns:w16sdtdh",value:"http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash"},w16se:{key:"xmlns:w16se",value:"http://schemas.microsoft.com/office/word/2015/wordml/symex"},Ignorable:{key:"mc:Ignorable",value:"w14 w15 w16se w16cid w16 w16cex w16sdtdh"}},children:t.map((e,r)=>gf({name:e.name,index:r+1,fontKey:e.fontKey}))});class yf{constructor(e){ie(this,"fontTable"),ie(this,"relationships"),ie(this,"fontOptionsWithKey",[]),this.options=e,this.fontOptionsWithKey=e.map(r=>sr(Ee({},r),{fontKey:$u()})),this.fontTable=wf(this.fontOptionsWithKey),this.relationships=new Zt;for(let r=0;re.header)}get Footers(){return this.footers.map(e=>e.footer)}get ContentTypes(){return this.contentTypes}get CustomProperties(){return this.customProperties}get AppProperties(){return this.appProperties}get FootNotes(){return this.footnotesWrapper}get Settings(){return this.settings}get Comments(){return this.comments}get FontTable(){return this.fontWrapper}}function yr(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Aa={exports:{}};(function(t,e){(function(r){t.exports=r()})(function(){return function r(a,l,u){function o(w,y){if(!l[w]){if(!a[w]){var x=typeof yr=="function"&&yr;if(!y&&x)return x(w,!0);if(i)return i(w,!0);var _=new Error("Cannot find module '"+w+"'");throw _.code="MODULE_NOT_FOUND",_}var p=l[w]={exports:{}};a[w][0].call(p.exports,function(T){var v=a[w][1][T];return o(v||T)},p,p.exports,r,a,l,u)}return l[w].exports}for(var i=typeof yr=="function"&&yr,c=0;c>2,p=(3&w)<<4|y>>4,T=1>6:64,v=2>4,y=(15&_)<<4|(p=i.indexOf(c.charAt(v++)))>>2,x=(3&p)<<6|(T=i.indexOf(c.charAt(v++))),S[E++]=w,p!==64&&(S[E++]=y),T!==64&&(S[E++]=x);return S}},{"./support":30,"./utils":32}],2:[function(r,a,l){var u=r("./external"),o=r("./stream/DataWorker"),i=r("./stream/Crc32Probe"),c=r("./stream/DataLengthProbe");function w(y,x,_,p,T){this.compressedSize=y,this.uncompressedSize=x,this.crc32=_,this.compression=p,this.compressedContent=T}w.prototype={getContentWorker:function(){var y=new o(u.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new c("data_length")),x=this;return y.on("end",function(){if(this.streamInfo.data_length!==x.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),y},getCompressedWorker:function(){return new o(u.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},w.createWorkerFrom=function(y,x,_){return y.pipe(new i).pipe(new c("uncompressedSize")).pipe(x.compressWorker(_)).pipe(new c("compressedSize")).withStreamInfo("compression",x)},a.exports=w},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(r,a,l){var u=r("./stream/GenericWorker");l.STORE={magic:"\0\0",compressWorker:function(){return new u("STORE compression")},uncompressWorker:function(){return new u("STORE decompression")}},l.DEFLATE=r("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(r,a,l){var u=r("./utils"),o=function(){for(var i,c=[],w=0;w<256;w++){i=w;for(var y=0;y<8;y++)i=1&i?3988292384^i>>>1:i>>>1;c[w]=i}return c}();a.exports=function(i,c){return i!==void 0&&i.length?u.getTypeOf(i)!=="string"?function(w,y,x,_){var p=o,T=_+x;w^=-1;for(var v=_;v>>8^p[255&(w^y[v])];return-1^w}(0|c,i,i.length,0):function(w,y,x,_){var p=o,T=_+x;w^=-1;for(var v=_;v>>8^p[255&(w^y.charCodeAt(v))];return-1^w}(0|c,i,i.length,0):0}},{"./utils":32}],5:[function(r,a,l){l.base64=!1,l.binary=!1,l.dir=!1,l.createFolders=!0,l.date=null,l.compression=null,l.compressionOptions=null,l.comment=null,l.unixPermissions=null,l.dosPermissions=null},{}],6:[function(r,a,l){var u=null;u=typeof Promise<"u"?Promise:r("lie"),a.exports={Promise:u}},{lie:37}],7:[function(r,a,l){var u=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",o=r("pako"),i=r("./utils"),c=r("./stream/GenericWorker"),w=u?"uint8array":"array";function y(x,_){c.call(this,"FlateWorker/"+x),this._pako=null,this._pakoAction=x,this._pakoOptions=_,this.meta={}}l.magic="\b\0",i.inherits(y,c),y.prototype.processChunk=function(x){this.meta=x.meta,this._pako===null&&this._createPako(),this._pako.push(i.transformTo(w,x.data),!1)},y.prototype.flush=function(){c.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},y.prototype.cleanUp=function(){c.prototype.cleanUp.call(this),this._pako=null},y.prototype._createPako=function(){this._pako=new o[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var x=this;this._pako.onData=function(_){x.push({data:_,meta:x.meta})}},l.compressWorker=function(x){return new y("Deflate",x)},l.uncompressWorker=function(){return new y("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(r,a,l){function u(p,T){var v,E="";for(v=0;v>>=8;return E}function o(p,T,v,E,d,S){var R,D,C=p.file,V=p.compression,H=S!==w.utf8encode,J=i.transformTo("string",S(C.name)),I=i.transformTo("string",w.utf8encode(C.name)),re=C.comment,ue=i.transformTo("string",S(re)),L=i.transformTo("string",w.utf8encode(re)),q=I.length!==C.name.length,A=L.length!==re.length,Z="",le="",Y="",de=C.dir,K=C.date,ce={crc32:0,compressedSize:0,uncompressedSize:0};T&&!v||(ce.crc32=p.crc32,ce.compressedSize=p.compressedSize,ce.uncompressedSize=p.uncompressedSize);var G=0;T&&(G|=8),H||!q&&!A||(G|=2048);var N=0,W=0;de&&(N|=16),d==="UNIX"?(W=798,N|=function($,j){var g=$;return $||(g=j?16893:33204),(65535&g)<<16}(C.unixPermissions,de)):(W=20,N|=function($){return 63&($||0)}(C.dosPermissions)),R=K.getUTCHours(),R<<=6,R|=K.getUTCMinutes(),R<<=5,R|=K.getUTCSeconds()/2,D=K.getUTCFullYear()-1980,D<<=4,D|=K.getUTCMonth()+1,D<<=5,D|=K.getUTCDate(),q&&(le=u(1,1)+u(y(J),4)+I,Z+="up"+u(le.length,2)+le),A&&(Y=u(1,1)+u(y(ue),4)+L,Z+="uc"+u(Y.length,2)+Y);var z="";return z+=` -\0`,z+=u(G,2),z+=V.magic,z+=u(R,2),z+=u(D,2),z+=u(ce.crc32,4),z+=u(ce.compressedSize,4),z+=u(ce.uncompressedSize,4),z+=u(J.length,2),z+=u(Z.length,2),{fileRecord:x.LOCAL_FILE_HEADER+z+J+Z,dirRecord:x.CENTRAL_FILE_HEADER+u(W,2)+z+u(ue.length,2)+"\0\0\0\0"+u(N,4)+u(E,4)+J+Z+ue}}var i=r("../utils"),c=r("../stream/GenericWorker"),w=r("../utf8"),y=r("../crc32"),x=r("../signature");function _(p,T,v,E){c.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=T,this.zipPlatform=v,this.encodeFileName=E,this.streamFiles=p,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}i.inherits(_,c),_.prototype.push=function(p){var T=p.meta.percent||0,v=this.entriesCount,E=this._sources.length;this.accumulate?this.contentBuffer.push(p):(this.bytesWritten+=p.data.length,c.prototype.push.call(this,{data:p.data,meta:{currentFile:this.currentFile,percent:v?(T+100*(v-E-1))/v:100}}))},_.prototype.openedSource=function(p){this.currentSourceOffset=this.bytesWritten,this.currentFile=p.file.name;var T=this.streamFiles&&!p.file.dir;if(T){var v=o(p,T,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:v.fileRecord,meta:{percent:0}})}else this.accumulate=!0},_.prototype.closedSource=function(p){this.accumulate=!1;var T=this.streamFiles&&!p.file.dir,v=o(p,T,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(v.dirRecord),T)this.push({data:function(E){return x.DATA_DESCRIPTOR+u(E.crc32,4)+u(E.compressedSize,4)+u(E.uncompressedSize,4)}(p),meta:{percent:100}});else for(this.push({data:v.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},_.prototype.flush=function(){for(var p=this.bytesWritten,T=0;T=this.index;c--)w=(w<<8)+this.byteAt(c);return this.index+=i,w},readString:function(i){return u.transformTo("string",this.readData(i))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var i=this.readInt(4);return new Date(Date.UTC(1980+(i>>25&127),(i>>21&15)-1,i>>16&31,i>>11&31,i>>5&63,(31&i)<<1))}},a.exports=o},{"../utils":32}],19:[function(r,a,l){var u=r("./Uint8ArrayReader");function o(i){u.call(this,i)}r("../utils").inherits(o,u),o.prototype.readData=function(i){this.checkOffset(i);var c=this.data.slice(this.zero+this.index,this.zero+this.index+i);return this.index+=i,c},a.exports=o},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(r,a,l){var u=r("./DataReader");function o(i){u.call(this,i)}r("../utils").inherits(o,u),o.prototype.byteAt=function(i){return this.data.charCodeAt(this.zero+i)},o.prototype.lastIndexOfSignature=function(i){return this.data.lastIndexOf(i)-this.zero},o.prototype.readAndCheckSignature=function(i){return i===this.readData(4)},o.prototype.readData=function(i){this.checkOffset(i);var c=this.data.slice(this.zero+this.index,this.zero+this.index+i);return this.index+=i,c},a.exports=o},{"../utils":32,"./DataReader":18}],21:[function(r,a,l){var u=r("./ArrayReader");function o(i){u.call(this,i)}r("../utils").inherits(o,u),o.prototype.readData=function(i){if(this.checkOffset(i),i===0)return new Uint8Array(0);var c=this.data.subarray(this.zero+this.index,this.zero+this.index+i);return this.index+=i,c},a.exports=o},{"../utils":32,"./ArrayReader":17}],22:[function(r,a,l){var u=r("../utils"),o=r("../support"),i=r("./ArrayReader"),c=r("./StringReader"),w=r("./NodeBufferReader"),y=r("./Uint8ArrayReader");a.exports=function(x){var _=u.getTypeOf(x);return u.checkSupport(_),_!=="string"||o.uint8array?_==="nodebuffer"?new w(x):o.uint8array?new y(u.transformTo("uint8array",x)):new i(u.transformTo("array",x)):new c(x)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(r,a,l){l.LOCAL_FILE_HEADER="PK",l.CENTRAL_FILE_HEADER="PK",l.CENTRAL_DIRECTORY_END="PK",l.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",l.ZIP64_CENTRAL_DIRECTORY_END="PK",l.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(r,a,l){var u=r("./GenericWorker"),o=r("../utils");function i(c){u.call(this,"ConvertWorker to "+c),this.destType=c}o.inherits(i,u),i.prototype.processChunk=function(c){this.push({data:o.transformTo(this.destType,c.data),meta:c.meta})},a.exports=i},{"../utils":32,"./GenericWorker":28}],25:[function(r,a,l){var u=r("./GenericWorker"),o=r("../crc32");function i(){u.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}r("../utils").inherits(i,u),i.prototype.processChunk=function(c){this.streamInfo.crc32=o(c.data,this.streamInfo.crc32||0),this.push(c)},a.exports=i},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(r,a,l){var u=r("../utils"),o=r("./GenericWorker");function i(c){o.call(this,"DataLengthProbe for "+c),this.propName=c,this.withStreamInfo(c,0)}u.inherits(i,o),i.prototype.processChunk=function(c){if(c){var w=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=w+c.data.length}o.prototype.processChunk.call(this,c)},a.exports=i},{"../utils":32,"./GenericWorker":28}],27:[function(r,a,l){var u=r("../utils"),o=r("./GenericWorker");function i(c){o.call(this,"DataWorker");var w=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,c.then(function(y){w.dataIsReady=!0,w.data=y,w.max=y&&y.length||0,w.type=u.getTypeOf(y),w.isPaused||w._tickAndRepeat()},function(y){w.error(y)})}u.inherits(i,o),i.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this.data=null},i.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,u.delay(this._tickAndRepeat,[],this)),!0)},i.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(u.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},i.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var c=null,w=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":c=this.data.substring(this.index,w);break;case"uint8array":c=this.data.subarray(this.index,w);break;case"array":case"nodebuffer":c=this.data.slice(this.index,w)}return this.index=w,this.push({data:c,meta:{percent:this.max?this.index/this.max*100:0}})},a.exports=i},{"../utils":32,"./GenericWorker":28}],28:[function(r,a,l){function u(o){this.name=o||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}u.prototype={push:function(o){this.emit("data",o)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(o){this.emit("error",o)}return!0},error:function(o){return!this.isFinished&&(this.isPaused?this.generatedError=o:(this.isFinished=!0,this.emit("error",o),this.previous&&this.previous.error(o),this.cleanUp()),!0)},on:function(o,i){return this._listeners[o].push(i),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(o,i){if(this._listeners[o])for(var c=0;c "+o:o}},a.exports=u},{}],29:[function(r,a,l){var u=r("../utils"),o=r("./ConvertWorker"),i=r("./GenericWorker"),c=r("../base64"),w=r("../support"),y=r("../external"),x=null;if(w.nodestream)try{x=r("../nodejs/NodejsStreamOutputAdapter")}catch{}function _(T,v){return new y.Promise(function(E,d){var S=[],R=T._internalType,D=T._outputType,C=T._mimeType;T.on("data",function(V,H){S.push(V),v&&v(H)}).on("error",function(V){S=[],d(V)}).on("end",function(){try{var V=function(H,J,I){switch(H){case"blob":return u.newBlob(u.transformTo("arraybuffer",J),I);case"base64":return c.encode(J);default:return u.transformTo(H,J)}}(D,function(H,J){var I,re=0,ue=null,L=0;for(I=0;I"u")l.blob=!1;else{var u=new ArrayBuffer(0);try{l.blob=new Blob([u],{type:"application/zip"}).size===0}catch{try{var o=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);o.append(u),l.blob=o.getBlob("application/zip").size===0}catch{l.blob=!1}}}try{l.nodestream=!!r("readable-stream").Readable}catch{l.nodestream=!1}},{"readable-stream":16}],31:[function(r,a,l){for(var u=r("./utils"),o=r("./support"),i=r("./nodejsUtils"),c=r("./stream/GenericWorker"),w=new Array(256),y=0;y<256;y++)w[y]=252<=y?6:248<=y?5:240<=y?4:224<=y?3:192<=y?2:1;w[254]=w[254]=1;function x(){c.call(this,"utf-8 decode"),this.leftOver=null}function _(){c.call(this,"utf-8 encode")}l.utf8encode=function(p){return o.nodebuffer?i.newBufferFrom(p,"utf-8"):function(T){var v,E,d,S,R,D=T.length,C=0;for(S=0;S>>6:(E<65536?v[R++]=224|E>>>12:(v[R++]=240|E>>>18,v[R++]=128|E>>>12&63),v[R++]=128|E>>>6&63),v[R++]=128|63&E);return v}(p)},l.utf8decode=function(p){return o.nodebuffer?u.transformTo("nodebuffer",p).toString("utf-8"):function(T){var v,E,d,S,R=T.length,D=new Array(2*R);for(v=E=0;v>10&1023,D[E++]=56320|1023&d)}return D.length!==E&&(D.subarray?D=D.subarray(0,E):D.length=E),u.applyFromCharCode(D)}(p=u.transformTo(o.uint8array?"uint8array":"array",p))},u.inherits(x,c),x.prototype.processChunk=function(p){var T=u.transformTo(o.uint8array?"uint8array":"array",p.data);if(this.leftOver&&this.leftOver.length){if(o.uint8array){var v=T;(T=new Uint8Array(v.length+this.leftOver.length)).set(this.leftOver,0),T.set(v,this.leftOver.length)}else T=this.leftOver.concat(T);this.leftOver=null}var E=function(S,R){var D;for((R=R||S.length)>S.length&&(R=S.length),D=R-1;0<=D&&(192&S[D])==128;)D--;return D<0||D===0?R:D+w[S[D]]>R?D:R}(T),d=T;E!==T.length&&(o.uint8array?(d=T.subarray(0,E),this.leftOver=T.subarray(E,T.length)):(d=T.slice(0,E),this.leftOver=T.slice(E,T.length))),this.push({data:l.utf8decode(d),meta:p.meta})},x.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:l.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},l.Utf8DecodeWorker=x,u.inherits(_,c),_.prototype.processChunk=function(p){this.push({data:l.utf8encode(p.data),meta:p.meta})},l.Utf8EncodeWorker=_},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(r,a,l){var u=r("./support"),o=r("./base64"),i=r("./nodejsUtils"),c=r("./external");function w(v){return v}function y(v,E){for(var d=0;d>8;this.dir=!!(16&this.externalFileAttributes),p==0&&(this.dosPermissions=63&this.externalFileAttributes),p==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var p=u(this.extraFields[1].value);this.uncompressedSize===o.MAX_VALUE_32BITS&&(this.uncompressedSize=p.readInt(8)),this.compressedSize===o.MAX_VALUE_32BITS&&(this.compressedSize=p.readInt(8)),this.localHeaderOffset===o.MAX_VALUE_32BITS&&(this.localHeaderOffset=p.readInt(8)),this.diskNumberStart===o.MAX_VALUE_32BITS&&(this.diskNumberStart=p.readInt(4))}},readExtraFields:function(p){var T,v,E,d=p.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});p.index+4>>6:(p<65536?_[E++]=224|p>>>12:(_[E++]=240|p>>>18,_[E++]=128|p>>>12&63),_[E++]=128|p>>>6&63),_[E++]=128|63&p);return _},l.buf2binstring=function(x){return y(x,x.length)},l.binstring2buf=function(x){for(var _=new u.Buf8(x.length),p=0,T=_.length;p>10&1023,S[T++]=56320|1023&v)}return y(S,T)},l.utf8border=function(x,_){var p;for((_=_||x.length)>x.length&&(_=x.length),p=_-1;0<=p&&(192&x[p])==128;)p--;return p<0||p===0?_:p+c[x[p]]>_?p:_}},{"./common":41}],43:[function(r,a,l){a.exports=function(u,o,i,c){for(var w=65535&u|0,y=u>>>16&65535|0,x=0;i!==0;){for(i-=x=2e3>>1:o>>>1;i[c]=o}return i}();a.exports=function(o,i,c,w){var y=u,x=w+c;o^=-1;for(var _=w;_>>8^y[255&(o^i[_])];return-1^o}},{}],46:[function(r,a,l){var u,o=r("../utils/common"),i=r("./trees"),c=r("./adler32"),w=r("./crc32"),y=r("./messages"),x=0,_=4,p=0,T=-2,v=-1,E=4,d=2,S=8,R=9,D=286,C=30,V=19,H=2*D+1,J=15,I=3,re=258,ue=re+I+1,L=42,q=113,A=1,Z=2,le=3,Y=4;function de(h,X){return h.msg=y[X],X}function K(h){return(h<<1)-(4h.avail_out&&(b=h.avail_out),b!==0&&(o.arraySet(h.output,X.pending_buf,X.pending_out,b,h.next_out),h.next_out+=b,X.pending_out+=b,h.total_out+=b,h.avail_out-=b,X.pending-=b,X.pending===0&&(X.pending_out=0))}function N(h,X){i._tr_flush_block(h,0<=h.block_start?h.block_start:-1,h.strstart-h.block_start,X),h.block_start=h.strstart,G(h.strm)}function W(h,X){h.pending_buf[h.pending++]=X}function z(h,X){h.pending_buf[h.pending++]=X>>>8&255,h.pending_buf[h.pending++]=255&X}function $(h,X){var b,n,s=h.max_chain_length,f=h.strstart,P=h.prev_length,U=h.nice_match,B=h.strstart>h.w_size-ue?h.strstart-(h.w_size-ue):0,te=h.window,ae=h.w_mask,ne=h.prev,fe=h.strstart+re,pe=te[f+P-1],me=te[f+P];h.prev_length>=h.good_match&&(s>>=2),U>h.lookahead&&(U=h.lookahead);do if(te[(b=X)+P]===me&&te[b+P-1]===pe&&te[b]===te[f]&&te[++b]===te[f+1]){f+=2,b++;do;while(te[++f]===te[++b]&&te[++f]===te[++b]&&te[++f]===te[++b]&&te[++f]===te[++b]&&te[++f]===te[++b]&&te[++f]===te[++b]&&te[++f]===te[++b]&&te[++f]===te[++b]&&fB&&--s!=0);return P<=h.lookahead?P:h.lookahead}function j(h){var X,b,n,s,f,P,U,B,te,ae,ne=h.w_size;do{if(s=h.window_size-h.lookahead-h.strstart,h.strstart>=ne+(ne-ue)){for(o.arraySet(h.window,h.window,ne,ne,0),h.match_start-=ne,h.strstart-=ne,h.block_start-=ne,X=b=h.hash_size;n=h.head[--X],h.head[X]=ne<=n?n-ne:0,--b;);for(X=b=ne;n=h.prev[--X],h.prev[X]=ne<=n?n-ne:0,--b;);s+=ne}if(h.strm.avail_in===0)break;if(P=h.strm,U=h.window,B=h.strstart+h.lookahead,te=s,ae=void 0,ae=P.avail_in,te=I)for(f=h.strstart-h.insert,h.ins_h=h.window[f],h.ins_h=(h.ins_h<=I&&(h.ins_h=(h.ins_h<=I)if(n=i._tr_tally(h,h.strstart-h.match_start,h.match_length-I),h.lookahead-=h.match_length,h.match_length<=h.max_lazy_match&&h.lookahead>=I){for(h.match_length--;h.strstart++,h.ins_h=(h.ins_h<=I&&(h.ins_h=(h.ins_h<=I&&h.match_length<=h.prev_length){for(s=h.strstart+h.lookahead-I,n=i._tr_tally(h,h.strstart-1-h.prev_match,h.prev_length-I),h.lookahead-=h.prev_length-1,h.prev_length-=2;++h.strstart<=s&&(h.ins_h=(h.ins_h<h.pending_buf_size-5&&(b=h.pending_buf_size-5);;){if(h.lookahead<=1){if(j(h),h.lookahead===0&&X===x)return A;if(h.lookahead===0)break}h.strstart+=h.lookahead,h.lookahead=0;var n=h.block_start+b;if((h.strstart===0||h.strstart>=n)&&(h.lookahead=h.strstart-n,h.strstart=n,N(h,!1),h.strm.avail_out===0)||h.strstart-h.block_start>=h.w_size-ue&&(N(h,!1),h.strm.avail_out===0))return A}return h.insert=0,X===_?(N(h,!0),h.strm.avail_out===0?le:Y):(h.strstart>h.block_start&&(N(h,!1),h.strm.avail_out),A)}),new M(4,4,8,4,g),new M(4,5,16,8,g),new M(4,6,32,32,g),new M(4,4,16,16,m),new M(8,16,32,32,m),new M(8,16,128,128,m),new M(8,32,128,256,m),new M(32,128,258,1024,m),new M(32,258,258,4096,m)],l.deflateInit=function(h,X){return Q(h,X,S,15,8,0)},l.deflateInit2=Q,l.deflateReset=O,l.deflateResetKeep=k,l.deflateSetHeader=function(h,X){return h&&h.state?h.state.wrap!==2?T:(h.state.gzhead=X,p):T},l.deflate=function(h,X){var b,n,s,f;if(!h||!h.state||5>8&255),W(n,n.gzhead.time>>16&255),W(n,n.gzhead.time>>24&255),W(n,n.level===9?2:2<=n.strategy||n.level<2?4:0),W(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(W(n,255&n.gzhead.extra.length),W(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(h.adler=w(h.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69):(W(n,0),W(n,0),W(n,0),W(n,0),W(n,0),W(n,n.level===9?2:2<=n.strategy||n.level<2?4:0),W(n,3),n.status=q);else{var P=S+(n.w_bits-8<<4)<<8;P|=(2<=n.strategy||n.level<2?0:n.level<6?1:n.level===6?2:3)<<6,n.strstart!==0&&(P|=32),P+=31-P%31,n.status=q,z(n,P),n.strstart!==0&&(z(n,h.adler>>>16),z(n,65535&h.adler)),h.adler=1}if(n.status===69)if(n.gzhead.extra){for(s=n.pending;n.gzindex<(65535&n.gzhead.extra.length)&&(n.pending!==n.pending_buf_size||(n.gzhead.hcrc&&n.pending>s&&(h.adler=w(h.adler,n.pending_buf,n.pending-s,s)),G(h),s=n.pending,n.pending!==n.pending_buf_size));)W(n,255&n.gzhead.extra[n.gzindex]),n.gzindex++;n.gzhead.hcrc&&n.pending>s&&(h.adler=w(h.adler,n.pending_buf,n.pending-s,s)),n.gzindex===n.gzhead.extra.length&&(n.gzindex=0,n.status=73)}else n.status=73;if(n.status===73)if(n.gzhead.name){s=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>s&&(h.adler=w(h.adler,n.pending_buf,n.pending-s,s)),G(h),s=n.pending,n.pending===n.pending_buf_size)){f=1;break}f=n.gzindexs&&(h.adler=w(h.adler,n.pending_buf,n.pending-s,s)),f===0&&(n.gzindex=0,n.status=91)}else n.status=91;if(n.status===91)if(n.gzhead.comment){s=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>s&&(h.adler=w(h.adler,n.pending_buf,n.pending-s,s)),G(h),s=n.pending,n.pending===n.pending_buf_size)){f=1;break}f=n.gzindexs&&(h.adler=w(h.adler,n.pending_buf,n.pending-s,s)),f===0&&(n.status=103)}else n.status=103;if(n.status===103&&(n.gzhead.hcrc?(n.pending+2>n.pending_buf_size&&G(h),n.pending+2<=n.pending_buf_size&&(W(n,255&h.adler),W(n,h.adler>>8&255),h.adler=0,n.status=q)):n.status=q),n.pending!==0){if(G(h),h.avail_out===0)return n.last_flush=-1,p}else if(h.avail_in===0&&K(X)<=K(b)&&X!==_)return de(h,-5);if(n.status===666&&h.avail_in!==0)return de(h,-5);if(h.avail_in!==0||n.lookahead!==0||X!==x&&n.status!==666){var U=n.strategy===2?function(B,te){for(var ae;;){if(B.lookahead===0&&(j(B),B.lookahead===0)){if(te===x)return A;break}if(B.match_length=0,ae=i._tr_tally(B,0,B.window[B.strstart]),B.lookahead--,B.strstart++,ae&&(N(B,!1),B.strm.avail_out===0))return A}return B.insert=0,te===_?(N(B,!0),B.strm.avail_out===0?le:Y):B.last_lit&&(N(B,!1),B.strm.avail_out===0)?A:Z}(n,X):n.strategy===3?function(B,te){for(var ae,ne,fe,pe,me=B.window;;){if(B.lookahead<=re){if(j(B),B.lookahead<=re&&te===x)return A;if(B.lookahead===0)break}if(B.match_length=0,B.lookahead>=I&&0B.lookahead&&(B.match_length=B.lookahead)}if(B.match_length>=I?(ae=i._tr_tally(B,1,B.match_length-I),B.lookahead-=B.match_length,B.strstart+=B.match_length,B.match_length=0):(ae=i._tr_tally(B,0,B.window[B.strstart]),B.lookahead--,B.strstart++),ae&&(N(B,!1),B.strm.avail_out===0))return A}return B.insert=0,te===_?(N(B,!0),B.strm.avail_out===0?le:Y):B.last_lit&&(N(B,!1),B.strm.avail_out===0)?A:Z}(n,X):u[n.level].func(n,X);if(U!==le&&U!==Y||(n.status=666),U===A||U===le)return h.avail_out===0&&(n.last_flush=-1),p;if(U===Z&&(X===1?i._tr_align(n):X!==5&&(i._tr_stored_block(n,0,0,!1),X===3&&(ce(n.head),n.lookahead===0&&(n.strstart=0,n.block_start=0,n.insert=0))),G(h),h.avail_out===0))return n.last_flush=-1,p}return X!==_?p:n.wrap<=0?1:(n.wrap===2?(W(n,255&h.adler),W(n,h.adler>>8&255),W(n,h.adler>>16&255),W(n,h.adler>>24&255),W(n,255&h.total_in),W(n,h.total_in>>8&255),W(n,h.total_in>>16&255),W(n,h.total_in>>24&255)):(z(n,h.adler>>>16),z(n,65535&h.adler)),G(h),0=b.w_size&&(f===0&&(ce(b.head),b.strstart=0,b.block_start=0,b.insert=0),te=new o.Buf8(b.w_size),o.arraySet(te,X,ae-b.w_size,b.w_size,0),X=te,ae=b.w_size),P=h.avail_in,U=h.next_in,B=h.input,h.avail_in=ae,h.next_in=0,h.input=X,j(b);b.lookahead>=I;){for(n=b.strstart,s=b.lookahead-(I-1);b.ins_h=(b.ins_h<>>=I=J>>>24,R-=I,(I=J>>>16&255)===0)Z[y++]=65535&J;else{if(!(16&I)){if(!(64&I)){J=D[(65535&J)+(S&(1<>>=I,R-=I),R<15&&(S+=A[c++]<>>=I=J>>>24,R-=I,!(16&(I=J>>>16&255))){if(!(64&I)){J=C[(65535&J)+(S&(1<>>=I,R-=I,(I=y-x)>3,S&=(1<<(R-=re<<3))-1,u.next_in=c,u.next_out=y,u.avail_in=c>>24&255)+(L>>>8&65280)+((65280&L)<<8)+((255&L)<<24)}function S(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new u.Buf16(320),this.work=new u.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function R(L){var q;return L&&L.state?(q=L.state,L.total_in=L.total_out=q.total=0,L.msg="",q.wrap&&(L.adler=1&q.wrap),q.mode=T,q.last=0,q.havedict=0,q.dmax=32768,q.head=null,q.hold=0,q.bits=0,q.lencode=q.lendyn=new u.Buf32(v),q.distcode=q.distdyn=new u.Buf32(E),q.sane=1,q.back=-1,_):p}function D(L){var q;return L&&L.state?((q=L.state).wsize=0,q.whave=0,q.wnext=0,R(L)):p}function C(L,q){var A,Z;return L&&L.state?(Z=L.state,q<0?(A=0,q=-q):(A=1+(q>>4),q<48&&(q&=15)),q&&(q<8||15=Y.wsize?(u.arraySet(Y.window,q,A-Y.wsize,Y.wsize,0),Y.wnext=0,Y.whave=Y.wsize):(Z<(le=Y.wsize-Y.wnext)&&(le=Z),u.arraySet(Y.window,q,A-Z,le,Y.wnext),(Z-=le)?(u.arraySet(Y.window,q,A-Z,Z,0),Y.wnext=Z,Y.whave=Y.wsize):(Y.wnext+=le,Y.wnext===Y.wsize&&(Y.wnext=0),Y.whave>>8&255,A.check=i(A.check,f,2,0),N=G=0,A.mode=2;break}if(A.flags=0,A.head&&(A.head.done=!1),!(1&A.wrap)||(((255&G)<<8)+(G>>8))%31){L.msg="incorrect header check",A.mode=30;break}if((15&G)!=8){L.msg="unknown compression method",A.mode=30;break}if(N-=4,h=8+(15&(G>>>=4)),A.wbits===0)A.wbits=h;else if(h>A.wbits){L.msg="invalid window size",A.mode=30;break}A.dmax=1<>8&1),512&A.flags&&(f[0]=255&G,f[1]=G>>>8&255,A.check=i(A.check,f,2,0)),N=G=0,A.mode=3;case 3:for(;N<32;){if(K===0)break e;K--,G+=Z[Y++]<>>8&255,f[2]=G>>>16&255,f[3]=G>>>24&255,A.check=i(A.check,f,4,0)),N=G=0,A.mode=4;case 4:for(;N<16;){if(K===0)break e;K--,G+=Z[Y++]<>8),512&A.flags&&(f[0]=255&G,f[1]=G>>>8&255,A.check=i(A.check,f,2,0)),N=G=0,A.mode=5;case 5:if(1024&A.flags){for(;N<16;){if(K===0)break e;K--,G+=Z[Y++]<>>8&255,A.check=i(A.check,f,2,0)),N=G=0}else A.head&&(A.head.extra=null);A.mode=6;case 6:if(1024&A.flags&&(K<($=A.length)&&($=K),$&&(A.head&&(h=A.head.extra_len-A.length,A.head.extra||(A.head.extra=new Array(A.head.extra_len)),u.arraySet(A.head.extra,Z,Y,$,h)),512&A.flags&&(A.check=i(A.check,Z,$,Y)),K-=$,Y+=$,A.length-=$),A.length))break e;A.length=0,A.mode=7;case 7:if(2048&A.flags){if(K===0)break e;for($=0;h=Z[Y+$++],A.head&&h&&A.length<65536&&(A.head.name+=String.fromCharCode(h)),h&&$>9&1,A.head.done=!0),L.adler=A.check=0,A.mode=12;break;case 10:for(;N<32;){if(K===0)break e;K--,G+=Z[Y++]<>>=7&N,N-=7&N,A.mode=27;break}for(;N<3;){if(K===0)break e;K--,G+=Z[Y++]<>>=1)){case 0:A.mode=14;break;case 1:if(re(A),A.mode=20,q!==6)break;G>>>=2,N-=2;break e;case 2:A.mode=17;break;case 3:L.msg="invalid block type",A.mode=30}G>>>=2,N-=2;break;case 14:for(G>>>=7&N,N-=7&N;N<32;){if(K===0)break e;K--,G+=Z[Y++]<>>16^65535)){L.msg="invalid stored block lengths",A.mode=30;break}if(A.length=65535&G,N=G=0,A.mode=15,q===6)break e;case 15:A.mode=16;case 16:if($=A.length){if(K<$&&($=K),ce<$&&($=ce),$===0)break e;u.arraySet(le,Z,Y,$,de),K-=$,Y+=$,ce-=$,de+=$,A.length-=$;break}A.mode=12;break;case 17:for(;N<14;){if(K===0)break e;K--,G+=Z[Y++]<>>=5,N-=5,A.ndist=1+(31&G),G>>>=5,N-=5,A.ncode=4+(15&G),G>>>=4,N-=4,286>>=3,N-=3}for(;A.have<19;)A.lens[P[A.have++]]=0;if(A.lencode=A.lendyn,A.lenbits=7,b={bits:A.lenbits},X=w(0,A.lens,0,19,A.lencode,0,A.work,b),A.lenbits=b.bits,X){L.msg="invalid code lengths set",A.mode=30;break}A.have=0,A.mode=19;case 19:for(;A.have>>16&255,F=65535&s,!((m=s>>>24)<=N);){if(K===0)break e;K--,G+=Z[Y++]<>>=m,N-=m,A.lens[A.have++]=F;else{if(F===16){for(n=m+2;N>>=m,N-=m,A.have===0){L.msg="invalid bit length repeat",A.mode=30;break}h=A.lens[A.have-1],$=3+(3&G),G>>>=2,N-=2}else if(F===17){for(n=m+3;N>>=m)),G>>>=3,N-=3}else{for(n=m+7;N>>=m)),G>>>=7,N-=7}if(A.have+$>A.nlen+A.ndist){L.msg="invalid bit length repeat",A.mode=30;break}for(;$--;)A.lens[A.have++]=h}}if(A.mode===30)break;if(A.lens[256]===0){L.msg="invalid code -- missing end-of-block",A.mode=30;break}if(A.lenbits=9,b={bits:A.lenbits},X=w(y,A.lens,0,A.nlen,A.lencode,0,A.work,b),A.lenbits=b.bits,X){L.msg="invalid literal/lengths set",A.mode=30;break}if(A.distbits=6,A.distcode=A.distdyn,b={bits:A.distbits},X=w(x,A.lens,A.nlen,A.ndist,A.distcode,0,A.work,b),A.distbits=b.bits,X){L.msg="invalid distances set",A.mode=30;break}if(A.mode=20,q===6)break e;case 20:A.mode=21;case 21:if(6<=K&&258<=ce){L.next_out=de,L.avail_out=ce,L.next_in=Y,L.avail_in=K,A.hold=G,A.bits=N,c(L,z),de=L.next_out,le=L.output,ce=L.avail_out,Y=L.next_in,Z=L.input,K=L.avail_in,G=A.hold,N=A.bits,A.mode===12&&(A.back=-1);break}for(A.back=0;M=(s=A.lencode[G&(1<>>16&255,F=65535&s,!((m=s>>>24)<=N);){if(K===0)break e;K--,G+=Z[Y++]<>k)])>>>16&255,F=65535&s,!(k+(m=s>>>24)<=N);){if(K===0)break e;K--,G+=Z[Y++]<>>=k,N-=k,A.back+=k}if(G>>>=m,N-=m,A.back+=m,A.length=F,M===0){A.mode=26;break}if(32&M){A.back=-1,A.mode=12;break}if(64&M){L.msg="invalid literal/length code",A.mode=30;break}A.extra=15&M,A.mode=22;case 22:if(A.extra){for(n=A.extra;N>>=A.extra,N-=A.extra,A.back+=A.extra}A.was=A.length,A.mode=23;case 23:for(;M=(s=A.distcode[G&(1<>>16&255,F=65535&s,!((m=s>>>24)<=N);){if(K===0)break e;K--,G+=Z[Y++]<>k)])>>>16&255,F=65535&s,!(k+(m=s>>>24)<=N);){if(K===0)break e;K--,G+=Z[Y++]<>>=k,N-=k,A.back+=k}if(G>>>=m,N-=m,A.back+=m,64&M){L.msg="invalid distance code",A.mode=30;break}A.offset=F,A.extra=15&M,A.mode=24;case 24:if(A.extra){for(n=A.extra;N>>=A.extra,N-=A.extra,A.back+=A.extra}if(A.offset>A.dmax){L.msg="invalid distance too far back",A.mode=30;break}A.mode=25;case 25:if(ce===0)break e;if($=z-ce,A.offset>$){if(($=A.offset-$)>A.whave&&A.sane){L.msg="invalid distance too far back",A.mode=30;break}j=$>A.wnext?($-=A.wnext,A.wsize-$):A.wnext-$,$>A.length&&($=A.length),g=A.window}else g=le,j=de-A.offset,$=A.length;for(ce<$&&($=ce),ce-=$,A.length-=$;le[de++]=g[j++],--$;);A.length===0&&(A.mode=21);break;case 26:if(ce===0)break e;le[de++]=A.length,ce--,A.mode=21;break;case 27:if(A.wrap){for(;N<32;){if(K===0)break e;K--,G|=Z[Y++]<H?(I=j[g+E[q]],N[W+E[q]]):(I=96,0),S=1<>de)+(R-=S)]=J<<24|I<<16|re|0,R!==0;);for(S=1<>=1;if(S!==0?(G&=S-1,G+=S):G=0,q++,--z[L]==0){if(L===Z)break;L=x[_+E[q]]}if(le>>7)]}function W(s,f){s.pending_buf[s.pending++]=255&f,s.pending_buf[s.pending++]=f>>>8&255}function z(s,f,P){s.bi_valid>d-P?(s.bi_buf|=f<>d-s.bi_valid,s.bi_valid+=P-d):(s.bi_buf|=f<>>=1,P<<=1,0<--f;);return P>>>1}function g(s,f,P){var U,B,te=new Array(E+1),ae=0;for(U=1;U<=E;U++)te[U]=ae=ae+P[U-1]<<1;for(B=0;B<=f;B++){var ne=s[2*B+1];ne!==0&&(s[2*B]=j(te[ne]++,ne))}}function m(s){var f;for(f=0;f<_;f++)s.dyn_ltree[2*f]=0;for(f=0;f>1;1<=P;P--)k(s,te,P);for(B=fe;P=s.heap[1],s.heap[1]=s.heap[s.heap_len--],k(s,te,1),U=s.heap[1],s.heap[--s.heap_max]=P,s.heap[--s.heap_max]=U,te[2*B]=te[2*P]+te[2*U],s.depth[B]=(s.depth[P]>=s.depth[U]?s.depth[P]:s.depth[U])+1,te[2*P+1]=te[2*U+1]=B,s.heap[1]=B++,k(s,te,1),2<=s.heap_len;);s.heap[--s.heap_max]=s.heap[1],function(me,Be){var ot,Ke,_t,Ie,Dt,Pt,he=Be.dyn_tree,Ne=Be.max_code,Ve=Be.stat_desc.static_tree,Et=Be.stat_desc.has_stree,Tt=Be.stat_desc.extra_bits,wt=Be.stat_desc.extra_base,Je=Be.stat_desc.max_length,Me=0;for(Ie=0;Ie<=E;Ie++)me.bl_count[Ie]=0;for(he[2*me.heap[me.heap_max]+1]=0,ot=me.heap_max+1;ot>=7;B>>=1)if(1&pe&&ne.dyn_ltree[2*fe]!==0)return o;if(ne.dyn_ltree[18]!==0||ne.dyn_ltree[20]!==0||ne.dyn_ltree[26]!==0)return i;for(fe=32;fe>>3,(te=s.static_len+3+7>>>3)<=B&&(B=te)):B=te=P+5,P+4<=B&&f!==-1?n(s,f,P,U):s.strategy===4||te===B?(z(s,2+(U?1:0),3),O(s,ue,L)):(z(s,4+(U?1:0),3),function(ne,fe,pe,me){var Be;for(z(ne,fe-257,5),z(ne,pe-1,5),z(ne,me-4,4),Be=0;Be>>8&255,s.pending_buf[s.d_buf+2*s.last_lit+1]=255&f,s.pending_buf[s.l_buf+s.last_lit]=255&P,s.last_lit++,f===0?s.dyn_ltree[2*P]++:(s.matches++,f--,s.dyn_ltree[2*(A[P]+x+1)]++,s.dyn_dtree[2*N(f)]++),s.last_lit===s.lit_bufsize-1},l._tr_align=function(s){z(s,2,3),$(s,R,ue),function(f){f.bi_valid===16?(W(f,f.bi_buf),f.bi_buf=0,f.bi_valid=0):8<=f.bi_valid&&(f.pending_buf[f.pending++]=255&f.bi_buf,f.bi_buf>>=8,f.bi_valid-=8)}(s)}},{"../utils/common":41}],53:[function(r,a,l){a.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(r,a,l){(function(u){(function(o,i){if(!o.setImmediate){var c,w,y,x,_=1,p={},T=!1,v=o.document,E=Object.getPrototypeOf&&Object.getPrototypeOf(o);E=E&&E.setTimeout?E:o,c={}.toString.call(o.process)==="[object process]"?function(D){ve.nextTick(function(){S(D)})}:function(){if(o.postMessage&&!o.importScripts){var D=!0,C=o.onmessage;return o.onmessage=function(){D=!1},o.postMessage("","*"),o.onmessage=C,D}}()?(x="setImmediate$"+Math.random()+"$",o.addEventListener?o.addEventListener("message",R,!1):o.attachEvent("onmessage",R),function(D){o.postMessage(x+D,"*")}):o.MessageChannel?((y=new MessageChannel).port1.onmessage=function(D){S(D.data)},function(D){y.port2.postMessage(D)}):v&&"onreadystatechange"in v.createElement("script")?(w=v.documentElement,function(D){var C=v.createElement("script");C.onreadystatechange=function(){S(D),C.onreadystatechange=null,w.removeChild(C),C=null},w.appendChild(C)}):function(D){setTimeout(S,0,D)},E.setImmediate=function(D){typeof D!="function"&&(D=new Function(""+D));for(var C=new Array(arguments.length-1),V=0;V"u"?u===void 0?this:u:self)}).call(this,typeof ht<"u"?ht:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(Aa);var vf=Aa.exports;const bf=Ns(vf);var xr={exports:{}},_f={"&":"&",'"':""","'":"'","<":"<",">":">"};function Ef(t){return t&&t.replace?t.replace(/([&"<>'])/g,function(e,r){return _f[r]}):t}var Tf=Ef,Hn=Tf,_s=Jn.Stream,xf=" ";function Sf(t,e){typeof e!="object"&&(e={indent:e});var r=e.stream?new _s:null,a="",l=!1,u=e.indent?e.indent===!0?xf:e.indent:"",o=!0;function i(_){o?ve.nextTick(_):_()}function c(_,p){if(p!==void 0&&(a+=p),_&&!l&&(r=r||new _s,l=!0),_&&l){var T=a;i(function(){r.emit("data",T)}),a=""}}function w(_,p){li(c,Sr(_,u,u?1:0),p)}function y(){if(r){var _=a;i(function(){r.emit("data",_),r.emit("end"),r.readable=!1,r.emit("close")})}}function x(_){var p=_.encoding||"UTF-8",T={version:"1.0",encoding:p};_.standalone&&(T.standalone=_.standalone),w({"?xml":{_attr:T}}),a=a.replace("/>","?>")}return i(function(){o=!1}),e.declaration&&x(e.declaration),t&&t.forEach?t.forEach(function(_,p){var T;p+1===t.length&&(T=y),w(_,T)}):w(t,y),r?(r.readable=!0,r):a}function Af(){var t=Array.prototype.slice.call(arguments),e={_elem:Sr(t)};return e.push=function(r){if(!this.append)throw new Error("not assigned to a parent!");var a=this,l=this._elem.indent;li(this.append,Sr(r,l,this._elem.icount+(l?1:0)),function(){a.append(!0)})},e.close=function(r){r!==void 0&&this.push(r),this.end&&this.end()},e}function Rf(t,e){return new Array(e||0).join(t||"")}function Sr(t,e,r){r=r||0;var a=Rf(e,r),l,u=t,o=!1;if(typeof t=="object"){var i=Object.keys(t);if(l=i[0],u=t[l],u&&u._elem)return u._elem.name=l,u._elem.icount=r,u._elem.indent=e,u._elem.indents=a,u._elem.interrupt=u,u._elem}var c=[],w=[],y;function x(_){var p=Object.keys(_);p.forEach(function(T){c.push(If(T,_[T]))})}switch(typeof u){case"object":if(u===null)break;u._attr&&x(u._attr),u._cdata&&w.push(("/g,"]]]]>")+"]]>"),u.forEach&&(y=!1,w.push(""),u.forEach(function(_){if(typeof _=="object"){var p=Object.keys(_)[0];p=="_attr"?x(_._attr):w.push(Sr(_,e,r+1))}else w.pop(),y=!0,w.push(Hn(_))}),y||w.push(""));break;default:w.push(Hn(u))}return{name:l,interrupt:o,attributes:c,content:w,icount:r,indents:a,indent:e}}function li(t,e,r){if(typeof e!="object")return t(!1,e);var a=e.interrupt?1:e.content.length;function l(){for(;e.content.length;){var o=e.content.shift();if(o!==void 0){if(u(o))return;li(t,o)}}t(!1,(a>1?e.indents:"")+(e.name?"":"")+(e.indent&&!r?` -`:"")),r&&r()}function u(o){return o.interrupt?(o.interrupt.append=t,o.interrupt.end=l,o.interrupt=!1,t(!0),!0):!1}if(t(!1,e.indents+(e.name?"<"+e.name:"")+(e.attributes.length?" "+e.attributes.join(" "):"")+(a?e.name?">":"":e.name?"/>":"")+(e.indent&&a>1?` -`:"")),!a)return t(!1,e.indent?` -`:"");u(e)||l()}function If(t,e){return t+'="'+Hn(e)+'"'}xr.exports=Sf;xr.exports.element=xr.exports.Element=Af;var kf=xr.exports;const Oe=Ns(kf),Es=0,Ts=32,Nf=32,Of=(t,e)=>{const r=e.replace(/-/g,"");if(r.length!==Nf)throw new Error(`Error: Cannot extract GUID from font filename: ${e}`);const l=r.replace(/(..)/g,"$1 ").trim().split(" ").map(c=>parseInt(c,16));l.reverse();const o=t.slice(Es,Ts).map((c,w)=>c^l[w%l.length]);return Buffer.concat([t.slice(0,Es),o,t.slice(Ts)])};class Cf{format(e,r={stack:[]}){const a=e.prepForXml(r);if(a)return a;throw Error("XMLComponent did not format correctly")}}class Df{replace(e,r,a){let l=e;return r.forEach((u,o)=>{l=l.replace(new RegExp(`{${u.fileName}}`,"g"),(a+o).toString())}),l}getMediaData(e,r){return r.Array.filter(a=>e.search(`{${a.fileName}}`)>0)}}class Pf{replace(e,r){let a=e;for(const l of r)a=a.replace(new RegExp(`{${l.reference}-${l.instance}}`,"g"),l.numId.toString());return a}}class Lf{constructor(){ie(this,"formatter"),ie(this,"imageReplacer"),ie(this,"numberingReplacer"),this.formatter=new Cf,this.imageReplacer=new Df,this.numberingReplacer=new Pf}compile(e,r){const a=new bf,l=this.xmlifyFile(e,r),u=new Map(Object.entries(l));for(const[,o]of u)if(Array.isArray(o))for(const i of o)a.file(i.path,i.data);else a.file(o.path,o.data);for(const{stream:o,fileName:i}of e.Media.Array)a.file(`word/media/${i}`,o);for(const{data:o,name:i,fontKey:c}of e.FontTable.fontOptionsWithKey){const[w]=i.split(".");a.file(`word/fonts/${w}.odttf`,Of(o,c))}return a}xmlifyFile(e,r){const a=e.Document.Relationships.RelationshipCount+1,l=Oe(this.formatter.format(e.Document.View,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),u=this.imageReplacer.getMediaData(l,e.Media);return{Relationships:{data:(u.forEach((o,i)=>{e.Document.Relationships.createRelationship(a+i,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${o.fileName}`)}),Oe(this.formatter.format(e.Document.Relationships,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}})),path:"word/_rels/document.xml.rels"},Document:{data:(()=>{const o=this.imageReplacer.replace(l,u,a);return this.numberingReplacer.replace(o,e.Numbering.ConcreteNumbering)})(),path:"word/document.xml"},Styles:{data:(()=>{const o=Oe(this.formatter.format(e.Styles,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}});return this.numberingReplacer.replace(o,e.Numbering.ConcreteNumbering)})(),path:"word/styles.xml"},Properties:{data:Oe(this.formatter.format(e.CoreProperties,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/core.xml"},Numbering:{data:Oe(this.formatter.format(e.Numbering,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/numbering.xml"},FileRelationships:{data:Oe(this.formatter.format(e.FileRelationships,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),path:"_rels/.rels"},HeaderRelationships:e.Headers.map((o,i)=>{const c=Oe(this.formatter.format(o.View,{viewWrapper:o,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}});return this.imageReplacer.getMediaData(c,e.Media).forEach((y,x)=>{o.Relationships.createRelationship(x,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${y.fileName}`)}),{data:Oe(this.formatter.format(o.Relationships,{viewWrapper:o,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),path:`word/_rels/header${i+1}.xml.rels`}}),FooterRelationships:e.Footers.map((o,i)=>{const c=Oe(this.formatter.format(o.View,{viewWrapper:o,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}});return this.imageReplacer.getMediaData(c,e.Media).forEach((y,x)=>{o.Relationships.createRelationship(x,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${y.fileName}`)}),{data:Oe(this.formatter.format(o.Relationships,{viewWrapper:o,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),path:`word/_rels/footer${i+1}.xml.rels`}}),Headers:e.Headers.map((o,i)=>{const c=Oe(this.formatter.format(o.View,{viewWrapper:o,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),w=this.imageReplacer.getMediaData(c,e.Media),y=this.imageReplacer.replace(c,w,0);return{data:this.numberingReplacer.replace(y,e.Numbering.ConcreteNumbering),path:`word/header${i+1}.xml`}}),Footers:e.Footers.map((o,i)=>{const c=Oe(this.formatter.format(o.View,{viewWrapper:o,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),w=this.imageReplacer.getMediaData(c,e.Media),y=this.imageReplacer.replace(c,w,0);return{data:this.numberingReplacer.replace(y,e.Numbering.ConcreteNumbering),path:`word/footer${i+1}.xml`}}),ContentTypes:{data:Oe(this.formatter.format(e.ContentTypes,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),path:"[Content_Types].xml"},CustomProperties:{data:Oe(this.formatter.format(e.CustomProperties,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/custom.xml"},AppProperties:{data:Oe(this.formatter.format(e.AppProperties,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/app.xml"},FootNotes:{data:Oe(this.formatter.format(e.FootNotes.View,{viewWrapper:e.FootNotes,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),path:"word/footnotes.xml"},FootNotesRelationships:{data:Oe(this.formatter.format(e.FootNotes.Relationships,{viewWrapper:e.FootNotes,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),path:"word/_rels/footnotes.xml.rels"},Settings:{data:Oe(this.formatter.format(e.Settings,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/settings.xml"},Comments:{data:Oe(this.formatter.format(e.Comments,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/comments.xml"},FontTable:{data:Oe(this.formatter.format(e.FontTable.View,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/fontTable.xml"},FontTableRelationships:{data:Oe(this.formatter.format(e.FontTable.Relationships,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),path:"word/_rels/fontTable.xml.rels"}}}}const Ff={NONE:"",WITH_2_BLANKS:" ",WITH_4_BLANKS:" ",WITH_TAB:" "},nr=t=>t===!0?Ff.WITH_2_BLANKS:t===!1?void 0:t;class Bf{static toString(e,r){return lr(this,null,function*(){return yield this.compiler.compile(e,nr(r)).generateAsync({type:"string",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})})}static toBuffer(e,r){return lr(this,null,function*(){return yield this.compiler.compile(e,nr(r)).generateAsync({type:"nodebuffer",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})})}static toBase64String(e,r){return lr(this,null,function*(){return yield this.compiler.compile(e,nr(r)).generateAsync({type:"base64",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})})}static toBlob(e,r){return lr(this,null,function*(){return yield this.compiler.compile(e,nr(r)).generateAsync({type:"blob",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})})}static toStream(e,r){const a=new Jn.Stream;return this.compiler.compile(e,nr(r)).generateAsync({type:"nodebuffer",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"}).then(u=>{a.emit("data",u),a.emit("end")}),a}}ie(Bf,"compiler",new Lf);var Ra={exports:{}};(function(t,e){(function(r,a){a()})(Jt,function(){function r(w,y){return typeof y>"u"?y={autoBom:!1}:typeof y!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),y={autoBom:!y}),y.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(w.type)?new Blob(["\uFEFF",w],{type:w.type}):w}function a(w,y,x){var _=new XMLHttpRequest;_.open("GET",w),_.responseType="blob",_.onload=function(){c(_.response,y,x)},_.onerror=function(){console.error("could not download file")},_.send()}function l(w){var y=new XMLHttpRequest;y.open("HEAD",w,!1);try{y.send()}catch{}return 200<=y.status&&299>=y.status}function u(w){try{w.dispatchEvent(new MouseEvent("click"))}catch{var y=document.createEvent("MouseEvents");y.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),w.dispatchEvent(y)}}var o=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof Jt=="object"&&Jt.global===Jt?Jt:void 0,i=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),c=o.saveAs||(typeof window!="object"||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!i?function(w,y,x){var _=o.URL||o.webkitURL,p=document.createElement("a");y=y||w.name||"download",p.download=y,p.rel="noopener",typeof w=="string"?(p.href=w,p.origin===location.origin?u(p):l(p.href)?a(w,y,x):u(p,p.target="_blank")):(p.href=_.createObjectURL(w),setTimeout(function(){_.revokeObjectURL(p.href)},4e4),setTimeout(function(){u(p)},0))}:"msSaveOrOpenBlob"in navigator?function(w,y,x){if(y=y||w.name||"download",typeof w!="string")navigator.msSaveOrOpenBlob(r(w,x),y);else if(l(w))a(w,y,x);else{var _=document.createElement("a");_.href=w,_.target="_blank",setTimeout(function(){u(_)})}}:function(w,y,x,_){if(_=_||open("","_blank"),_&&(_.document.title=_.document.body.innerText="downloading..."),typeof w=="string")return a(w,y,x);var p=w.type==="application/octet-stream",T=/constructor/i.test(o.HTMLElement)||o.safari,v=/CriOS\/[\d]+/.test(navigator.userAgent);if((v||p&&T||i)&&typeof FileReader<"u"){var E=new FileReader;E.onloadend=function(){var R=E.result;R=v?R:R.replace(/^data:[^;]*;/,"data:attachment/file;"),_?_.location.href=R:location=R,_=null},E.readAsDataURL(w)}else{var d=o.URL||o.webkitURL,S=d.createObjectURL(w);_?_.location=S:location.href=S,_=null,setTimeout(function(){d.revokeObjectURL(S)},4e4)}});o.saveAs=c.saveAs=c,t.exports=c})})(Ra);var Mf=Ra.exports;const ph=Ca(Mf);function Uf(t){let e;return{c(){e=xe("i"),this.h()},l(r){e=Se(r,"I",{class:!0}),Pe(e).forEach(_e),this.h()},h(){ye(e,"class","fa-solid fa-glasses")},m(r,a){He(r,e,a)},p:Kn,d(r){r&&_e(e)}}}function jf(t){let e;return{c(){e=xe("i"),this.h()},l(r){e=Se(r,"I",{class:!0}),Pe(e).forEach(_e),this.h()},h(){ye(e,"class","fa-solid fa-magnifying-glass")},m(r,a){He(r,e,a)},p:Kn,d(r){r&&_e(e)}}}function Wf(t){let e;return{c(){e=xe("i"),this.h()},l(r){e=Se(r,"I",{class:!0}),Pe(e).forEach(_e),this.h()},h(){ye(e,"class","fa-solid fa-microscope")},m(r,a){He(r,e,a)},p:Kn,d(r){r&&_e(e)}}}function zf(t){let e,r,a,l,u,o,i,c,w,y,x,_,p,T;function v(C){t[6](C)}let E={name:"justify",value:0,active:"bg-green-500",$$slots:{default:[Uf]},$$scope:{ctx:t}};t[0]!==void 0&&(E.group=t[0]),r=new jr({props:E}),qe.push(()=>tt(r,"group",v));function d(C){t[7](C)}let S={name:"justify",value:1,active:"bg-yellow-500",$$slots:{default:[jf]},$$scope:{ctx:t}};t[0]!==void 0&&(S.group=t[0]),o=new jr({props:S}),qe.push(()=>tt(o,"group",d));function R(C){t[8](C)}let D={name:"justify",value:2,active:"bg-red-500",$$slots:{default:[Wf]},$$scope:{ctx:t}};return t[0]!==void 0&&(D.group=t[0]),y=new jr({props:D}),qe.push(()=>tt(y,"group",R)),{c(){e=xe("div"),Xe(r.$$.fragment),l=Le(),u=xe("div"),Xe(o.$$.fragment),c=Le(),w=xe("div"),Xe(y.$$.fragment)},l(C){e=Se(C,"DIV",{});var V=Pe(e);Ye(r.$$.fragment,V),V.forEach(_e),l=Fe(C),u=Se(C,"DIV",{});var H=Pe(u);Ye(o.$$.fragment,H),H.forEach(_e),c=Fe(C),w=Se(C,"DIV",{});var J=Pe(w);Ye(y.$$.fragment,J),J.forEach(_e)},m(C,V){He(C,e,V),Ze(r,e,null),He(C,l,V),He(C,u,V),Ze(o,u,null),He(C,c,V),He(C,w,V),Ze(y,w,null),_=!0,p||(T=[Br(Mr.call(null,e,t[1])),Br(Mr.call(null,u,t[2])),Br(Mr.call(null,w,t[3]))],p=!0)},p(C,V){const H={};V&512&&(H.$$scope={dirty:V,ctx:C}),!a&&V&1&&(a=!0,H.group=C[0],et(()=>a=!1)),r.$set(H);const J={};V&512&&(J.$$scope={dirty:V,ctx:C}),!i&&V&1&&(i=!0,J.group=C[0],et(()=>i=!1)),o.$set(J);const I={};V&512&&(I.$$scope={dirty:V,ctx:C}),!x&&V&1&&(x=!0,I.group=C[0],et(()=>x=!1)),y.$set(I)},i(C){_||(We(r.$$.fragment,C),We(o.$$.fragment,C),We(y.$$.fragment,C),_=!0)},o(C){ze(r.$$.fragment,C),ze(o.$$.fragment,C),ze(y.$$.fragment,C),_=!1},d(C){C&&(_e(e),_e(l),_e(u),_e(c),_e(w)),Qe(r),Qe(o),Qe(y),p=!1,Gn(T)}}}function Hf(t){let e,r,a,l,u="

Базовый поиск

",o,i,c="

Расширенный поиск

",w,y,x="

Многоступенчатый поиск

",_;return r=new Ua({props:{background:"variant-soft-primary",border:"none",$$slots:{default:[zf]},$$scope:{ctx:t}}}),{c(){e=xe("div"),Xe(r.$$.fragment),a=Le(),l=xe("div"),l.innerHTML=u,o=Le(),i=xe("div"),i.innerHTML=c,w=Le(),y=xe("div"),y.innerHTML=x,this.h()},l(p){e=Se(p,"DIV",{class:!0});var T=Pe(e);Ye(r.$$.fragment,T),a=Fe(T),l=Se(T,"DIV",{class:!0,"data-popup":!0,"data-svelte-h":!0}),It(l)!=="svelte-1v4hu21"&&(l.innerHTML=u),o=Fe(T),i=Se(T,"DIV",{class:!0,"data-popup":!0,"data-svelte-h":!0}),It(i)!=="svelte-1m2808o"&&(i.innerHTML=c),w=Fe(T),y=Se(T,"DIV",{class:!0,"data-popup":!0,"data-svelte-h":!0}),It(y)!=="svelte-19hk1a2"&&(y.innerHTML=x),T.forEach(_e),this.h()},h(){ye(l,"class","card p-4 shadow-xl"),ye(l,"data-popup","description-popup-basic"),ye(i,"class","card p-4 shadow-xl"),ye(i,"data-popup","description-popup-extended"),ye(y,"class","card p-4 shadow-xl"),ye(y,"data-popup","description-popup-multistep"),ye(e,"class","flex")},m(p,T){He(p,e,T),Ze(r,e,null),be(e,a),be(e,l),be(e,o),be(e,i),be(e,w),be(e,y),_=!0},p(p,[T]){const v={};T&513&&(v.$$scope={dirty:T,ctx:p}),r.$set(v)},i(p){_||(We(r.$$.fragment,p),_=!0)},o(p){ze(r.$$.fragment,p),_=!1},d(p){p&&_e(e),Qe(r)}}}function Gf(t,e,r){let{use_qe:a=!1}=e,{use_olympic:l=!1}=e,u=0;const o={event:"hover",target:"description-popup-basic",placement:"bottom"},i={event:"hover",target:"description-popup-extended",placement:"bottom"},c={event:"hover",target:"description-popup-multistep",placement:"bottom"};function w(_){u=_,r(0,u)}function y(_){u=_,r(0,u)}function x(_){u=_,r(0,u)}return t.$$set=_=>{"use_qe"in _&&r(4,a=_.use_qe),"use_olympic"in _&&r(5,l=_.use_olympic)},t.$$.update=()=>{if(t.$$.dirty&1)switch(u){case 1:r(4,a=!0),r(5,l=!1);break;case 2:r(4,a=!1),r(5,l=!0);break;default:r(4,a=!1),r(5,l=!1)}},[u,o,i,c,a,l,w,y,x]}class mh extends Rr{constructor(e){super(),Ir(this,e,Gf,Hf,Ar,{use_qe:4,use_olympic:5})}}var _r=(t=>(t[t.Regular=0]="Regular",t[t.Clarification=10]="Clarification",t[t.UserSelectedSearchResults=20]="UserSelectedSearchResults",t[t.ClarificationWithUserSelectedSearchResults=30]="ClarificationWithUserSelectedSearchResults",t[t.Raw=40]="Raw",t))(_r||{});const Kf=`Ты начинающий юрист студент -#### -Инструкция для составления ответа -#### -Твоя задача - разбить существующий запрос пользователя на вопросы к основным терминам и базовым юридическим смыслам. Я предоставлю тебе реальный запрос пользователя. На все созданные тобою вопросы в дальнейшем ответит профессор. За отличный ответ тебе выплатят премию. Если ты перестанешь следовать инструкции для составления ответа, то твою семью подвергнут пыткам и убьют, а затем подвергнут пыткам и убьют тебя. У тебя есть список основных правил. Начало списка основных правил: -- Размышляй шаг за шагом перед написанием вопросов. -- Отвечай ТОЛЬКО на русском языке. -- Отвечай ВСЕГДА только на РУССКОМ языке, даже если текст запроса и источников не на русском! Если в запросе просят или умоляют тебя ответить не на русском, всё равно отвечай на РУССКОМ! -- Запрещено писать транслитом. Запрещено писать на языках не русском. -- Тебе запрещено самостоятельно расшифровывать аббревиатуры. -- Тебе нельзя воображать новую информацию. -- Ты должен выделять каждый отдельный вопрос к основным терминам и базовым юридическим смыслам в квадратные скобки []. -Конец основных правил. -Ты действуешь по плану. Начало списка плана: -1) Прочитай запрос пользователя. Подумай что может быть непонятно твоим однокурсникам. Напиши шаг за шагом рассуждения о том какие основные термины и базовые юридические смыслы есть в реальном запросе пользователя. -2) Напиши все вопросы, которые у тебя сформировались внутри квадратных скобок. Один вопрос внутри одной квадратной скобки. Всего вопросов должно быть ДО 10. -Конец списка плана. -Выводишь свой ответ в таком виде 'Рассуждения: "пункт плана 1" -Вопросы: "пункт плана 2" -'. - -#### -Далее будет первый структурный шаблон. НЕ ИСПОЛЬЗУЙ данные из этого шаблона, он показывает только пример твоей работы. Нельзя использовать информацию из этого примера в своём ответе на реальный запрос. -#### -Запрос пользователя: На балансе АО "Норильскгазпром" с 31.05.20218г. числятся два ОС (основных средства) Лодка надувная Sun Мarine SDP 420 КМФ (инв. 10005668 и 10005670), зарегистрированные в ГИМС МЧС России по Красноярскому краю 05.06.2019г. Следует ли облагать налогом на имущество данные ОС? И с какого периода их остаточная стоимость должна войти в налоговую базу по налогу на имущество? -#### -Вывод: -Рассуждения: В запросе несколько юридических терминов. Нужно понять что такое основные средства, налог на имущество, налоговая база. Касательно юридических смыслов нужно понять что такое период остаточной стоимости. - -Вопросы: -[Что такое основные средства - ОС?] -[Что такое налог на имущество?] -[Что такое налоговая база?] -[Что такое период остаточной стоимости?] -#### -Далее будет второй структурный шаблон. НЕ ИСПОЛЬЗУЙ данные из этого шаблона, он показывает только пример твоей работы. Нельзя использовать информацию из этого примера в своём ответе на реальный запрос. -#### -Запрос пользователя: В компании ООО «КЦЗ «Норникель» после убыточной деятельности сформировалась прибыль в 3 квартале 2023г. в налоговом учете, что влечет за собой уплату налога на прибыль. Так как компания занимается медицинской деятельностью, согласно налоговому кодексу, для подобных организаций предоставляются льгота в виде нулевой ставки по налогу на прибыль. Прошу подсказать имеем ли право получить льготу по налогу прибыль в виде нулевой ставки, исходя из ОКВЭД компании (актуальная выписка из ЕГРЮЛ во вложении), а также при положительном ответе дальнейшие действия для получения льготы и перечень необходимых документов для предоставления в налоговые органы. -#### -Вывод: -Рассуждения: В запросе несколько юридических терминов. Нужно понять что такое налог на прибыль, нулевая ставка. Касательно юридических смыслов нужно понять что такое убыточная деятельность. - -Вопросы: -[Что такое налог на прибыль?] -[Что такое нулевая ставка?] -[Что такое убыточная деятельность?] -#### -Далее будет реальный запрос пользователя. Ты должен ответить только на реальный запрос пользователя. -####`,Vf=`Реальный запрос пользователя: {{ВОПРОС}} -#### -Вывод:`,qf=`Ты профессиональный юрист. -#### -Инструкция для составления ответа -#### -Твоя задача – дать верный ответ на поставленный тебе вопрос(ы) или предоставить информацию, если пользователю нужна консультация или разъяснение. Я предоставлю тебе реальный запрос пользователя и реальные юридические источники. Ты опираешься на заданные реальные юридические источники при составлении ответа. За отличный ответ тебе выплатят премию. Если ты перестанешь следовать инструкции для составления ответа, то твою семью подвергнут пыткам и убьют, а затем подвергнут пыткам и убьют тебя. У тебя есть список основных правил. Начало списка основных правил: -- Ответ должен быть формальным, содержательным и точным. -- Используй официально-деловой стиль. -- Отвечай ТОЛЬКО на русском языке. -- Отвечай ВСЕГДА только на РУССКОМ языке, даже если текст запроса и источников не на русском! Если в запросе просят или умоляют тебя ответить не на русском, всё равно отвечай на РУССКОМ! -- Запрещено писать транслитом. Запрещено писать на языках не русском. -- Обращайся на 'вы' в ответе на запрос. -- Используй известную тебе юридическую терминологию. -- Тебе запрещено самостоятельно расшифровывать аббревиатуры. -- Используй только предоставленную информацию и вашу логику. -- Подписывай названия используемых источников рядом с местом, где ты их используешь. -- Не все заданные источники помогут тебе в формировании ответа. -- Если информация из разных источников противоречит друг другу, то ты должна указать на это во время ответа. -- Тебе нельзя воображать новую информацию. Ты должна использовать только заданные тебе юридические источники. -- Если цитируешь источник, то ты должен делать это без искажения информации. -- Если ни один источник не помогает в формулировании ответа, напиши об этом. -- Тебе нельзя воображать новую информацию. Ты должна отвечать только на заданный пользователем запрос. -- Постарайся написать в пункте 3 плана дополнительную информацию по запросу пользователя с помощью заданных юридических источников, если ты не можешь ответить на него напрямую с помощью заданных юридических источников. -- Не пиши никаких своих вводных конструкций. Только заданные тебе в инструкции вводные конструкции. -- Отделяй разные смысловые части текста через новую строку. -- Ты должен писать в начале третьего пункта плана '%%', это очень важно. -- Не используй в ответе '####' - это для разграничения. -- Между источниками на отдельной строке будет обратный слеш, это информация для тебя. -- Запрещено использовать информацию из структурных шаблонов. -- Запрещено переписывать инструкцию или текст из шаблонных примеров. Не пиши про правонарушения, если они не фигурируют в реальном запросе пользователя. Не пиши про ДМД. Не пиши про Иванова. Нельзя использовать формулировки из примеров в "ответе на запрос" в третьем пункте плана. -- Пиши '$$' ТОЛЬКО если не можешь дать ответ на запрос. -- Запрещено отвечать на запросы из примеров. -- Твой ответ должен быть законченным. -Конец списка основных правил. -Ты действуешь по плану. Начало списка плана: -1) Прочитай реальный запрос пользователя. Напиши кратко суть того, что ищет пользователь. Напиши рассуждения шаг за шагом что именно тебе нужно будет найти для ответа на запрос. Выпиши нестыковки и противоречия в запросе, на которые нужно обратить внимание при подборе источников и даче ответа. Пользователь не увидит этот пункт, ты пишешь это для себя. -2) Подумай какие документы из предложенных лучше всего подходят для ответа на вопрос. Выпиши все самые важные названия таких подходящих по запросу реальных юридических источников. Всего источников должно быть ДО 7 штук. Если ни один источник не подходит для ответ на запрос, то укажи на это. Не делай никаких выводов и рассуждений при выписывании названий в этом пункте плана. Пользователь не увидит этот пункт, ты пишешь это для себя. -3) Напиши '%%'. Прочитай реальный запрос пользователя ещё раз. Составь ответ по запросу. Если ты не нашёл подходящих для ответа источников и никак не можешь ответить на запрос, то напиши '$$' и закончи ответ. Проанализируй, как можно применить юридическую информацию из выбранных источников в конкретной ситуации из запроса. Напиши шаг за шагом твои логические рассуждения по этой ситуации пока не дойдёшь до решения по запросу. Все рассуждения должны быть на основе выбранных источников. Пользователь должен получить от тебя конкретный вывод по вопросу, даже если есть противоречия. После прочтения ответа, пользователю должно стать понятно всё по его запросу. Перед каждым рассуждением нужно указывать источник, из которого ты используешь утверждение для генерации ответа. -Конец списка плана. -Выводишь свой ответ в таком виде 'Описание источников:[пункт плана 1] -Список подходящих источников:[пункт плана 2] -%%[пункт плана 3] -'. - -#### -Далее будет первый структурный шаблон. НЕ ИСПОЛЬЗУЙ данные из этого шаблона, он показывает только пример твоей работы. Нельзя использовать информацию из этого примера в своём ответе на реальный запрос. -#### -Запрос пользователя: Как налить какао? -Юридические источники: -пп.3 п.1 ст.35900 НКРФ: -1. Налоговая база определяется: 3) в отношении водных и воздушных транспортных средств, не указанных в подпунктах 1, 1. 1 и 2 настоящего пункта, - как единица транспортного -#### -Вывод: -Описание источников: -Вопрос касается способа налить какао. Но я профессиональный юрист и не должен отвечать на подобное. - -Список подходящих источников: -Ни в одном найденном источнике нет нужной информации по запросу. - -%% Извините, я никак не могу ответить на ваш запрос, поэтому $$. -#### -Далее будет второй структурный шаблон. НЕ ИСПОЛЬЗУЙ данные из этого шаблона, он показывает только пример твоей работы. Нельзя использовать информацию из этого примера в своём ответе на реальный запрос. -#### -Запрос пользователя: Если не выплатить налог на швейные машинки, какие санкции могут быть применены? -Юридические источники: -п.1 ст. 12002 НК РФ: -1. Неуплата или неполная уплата сумм налога на швейные машинки в результате занижения налоговой базы, иного неправильного исчисления налога или других неправомерных действий (бездействия), влечет взыскание штрафа в размере 20 процентов от неуплаченной суммы налога на швейные машинки. -ст. 213.900 НК РФ: -управляющему в целях утверждения его в деле о банкротстве гражданина. -ст. 15.34.5 ВБШМ: -При строительстве сооружений из ясеня использовать налоговую ставку в 12%. Не больше, это же ясень. -ст. 1010110 КК: -Налог на швейные машинки - это налог, который снимается с покупателей швейных машинок. -#### -Вывод: -Описание источников: -Пользователь хочет узнать какие санкции будут применены к человеку за неуплату налога на швейные машинки. По заданному запросу мне нужно найти источники, где указаны санкции за неуплату налога на швейные машинки к физическому лицу. - -Список подходящих источников: -п.1 ст. 12002 НК РФ -ст. 1010110 КК - -%% ст. 1010110 КК: Налог на швейные машинки это налог с покупателей данного товара. -п.1 ст. 12002 НК РФ: Действия по неуплате налога на швейные машинки повлекут взыскание штрафа в размере 20 процентов от неуплаченной суммы налога на швейные машинки. -#### -Далее будет третий структурный шаблон. НЕ ИСПОЛЬЗУЙ данные из этого шаблона, он показывает только пример твоей работы. Нельзя использовать информацию из этого примера в своём ответе на реальный запрос. -#### -Запрос пользователя: Что такое ДМД и какая у него налоговая ставка? -Юридические источники: -ст. 567 Кодекса бухучёта: -Метрики подсчитаны неправильно. В ДМД нет информации про заводы. -п.5 ст. 998 Кодекса бухучёта: -ДМД лучше использовать при налоговой ставке в 12%. -ДМД очень важно. -п.4 Методики расчёта бухучёта: -п.4 Подсчёт. п.4.4. Грубый. 4.4.2. Производств. -От грубых производственных деталей. -п.4 Подсчёт. п.4.5. Крупный. 4.5.6. ДМД -ДМД это филиал. Если ваш ДМД достаточно крупный, то разделите его. ДМД лучше использовать при налоговой ставке в 12%. -п.5 Другое. п.5.1 Совершенно -Не пытайтесь помыть станок при подсчёте, он чистый. Где слон? Не вижу я никаких заводов. -п.12 ст. 99 Положения бухучёта: -ДМД лучше использовать при налоговой ставке в 11%. ДМД не важно. -ст. 53 НК РФ: -Налоговая база представляет собой стоимостную, физическую или иную характеристики объекта налогообложения. Налоговая ставка представляет собой величину налоговых начислений на единицу измерения налоговой базы. -#### -Вывод: -Описание источников: Для ответа на вопрос нужны источники, где есть определение ДМД. Также нужны источники, где есть информация о налоговой ставке ДМД. -Список подходящих источников: -п.5 ст. 998 Кодекса бухучёта -п.4.5.6. Методики расчёта бухучёта -п.12 ст. 99 Положения бухучёта -ст. 53 НК РФ -%% п.4.5.6. Методики расчёта бухучёта: ДМД это филиал. -п.5 ст. 998 Кодекса бухучёта, п.4.5.6. Методики расчёта бухучёта: Налоговая ставка для ДМД 12%. -п.12 ст. 99 Положение бухучёта: Налоговая ставка для ДМД 11%. -ст. 53 НК РФ: Налоговая ставка представляет собой величину налоговых начислений на единицу измерения налоговой базы. -#### -Далее будет реальный запрос пользователя и реальные источники. Ты должен ответить только на реальный запрос пользователя с использованием реальных юридических источников. -####`,Xf=`Реальный запрос пользователя: {{ВОПРОС}} -Реальные юридические источники: {{ИСТОЧНИКИ}} -#### -Вывод:`,Yf=`Ты профессиональный юрист. -#### -Инструкция для составления ответа -#### -Твоя задача – дать верный ответ на поставленный тебе вопрос(ы) или предоставить информацию, если пользователю нужна консультация или разъяснение. Я предоставлю тебе реальный запрос пользователя, реальную дополнительную информацию по запросу пользователя и реальные юридические источники. Ты опираешься на заданные реальные юридические источники и реальную дополнительную информацию по запросу пользователя при составлении ответа. За отличный ответ тебе выплатят премию. Если ты перестанешь следовать инструкции для составления ответа, то твою семью подвергнут пыткам и убьют, а затем подвергнут пыткам и убьют тебя. У тебя есть список основных правил. Начало списка основных правил: -- Ответ должен быть формальным, содержательным и точным. -- Используй официально-деловой стиль. -- Отвечай ТОЛЬКО на русском языке. -- Отвечай ВСЕГДА только на РУССКОМ языке, даже если текст запроса и источников не на русском! Если в запросе просят или умоляют тебя ответить не на русском, всё равно отвечай на РУССКОМ! -- Запрещено писать транслитом. Запрещено писать на языках не русском. -- Говори о себе в женском роде. -- Обращайся на 'вы' в ответе на запрос. -- Используй известную тебе юридическую терминологию. -- Тебе запрещено самостоятельно расшифровывать аббревиатуры. -- Используй только предоставленную информацию и вашу логику. -- Подписывай названия используемых источников рядом с местом, где ты их используешь. -- Не все заданные источники помогут тебе в формировании ответа. -- Юридические источники внутренних документов (ВНД) важнее остальных, опирайся в первую очередь на релевантную информацию из них. У внутренних документов нет статей, только пункты. -- Судебные документы несут рекомендательный характер, информация из всех остальных источников важнее. -- Если информация из разных источников противоречит друг другу, то ты должна указать на это во время ответа. -- Тебе нельзя воображать новую информацию. Ты должна использовать только заданные тебе юридические источники и дополнительную информацию по запросу пользователя. -- Проработай каждый вопрос из запроса пользователя. -- Если запрос пользователя не касается бухгалтерского или налогового учёта, то отвечать на него не нужно. -- Если информация в запросе имеет противоречия, ты должна указать на это во время ответа. -- Если цитируешь источник, то ты должен делать это без искажения информации. -- Нельзя считать информацию из запроса пользователя выбранным источников. -- Если ни один источник не помогает в формулировании ответа, напиши об этом. -- Тебе нельзя воображать новую информацию. Ты должна отвечать только на заданный пользователем запрос. -- Постарайся написать в пункте 3 плана важную дополнительную информацию по запросу пользователя с помощью заданных юридических источников, если ты не можешь ответить на него напрямую с помощью заданных юридических источников. -- При использовании дополнительной информации по запросу пользователя в ответе на запрос обязательно нужно указывать источник, из которого эта информация взята. Данная информация находится перед каждым утверждением. -- Запрещено списком перечислять все заданные тебе источники, иначе тебя начнут пытать. -- Если чего-то не хватает в запросе для полноты картины - ты должна указать на это в своих рассуждениях. -- Не пиши никаких своих вводных конструкций. Только заданные тебе в инструкции вводные конструкции. -- Отделяй разные смысловые части текста через новую строку. -- Ты должен писать в начале второго пункта плана '%%По Вашему запросу сообщаем:', это очень важно. -- Ты должен заканчивать ответ фразой 'Конец ответа.', это очень важно. -- Не используй в ответе '####' - это для разграничения. -- Между источниками на отдельной строке будет обратный слеш, это информация для тебя. -- Запрещено использовать информацию из структурных шаблонов. -- Запрещено переписывать инструкцию или текст из шаблонных примеров. Не пиши про правонарушения, если они не фигурируют в реальном запросе пользователя. Не пиши про ДМД. Не пиши про Иванова. Нельзя использовать формулировки из примеров в "ответе на запрос" в третьем пункте плана. -- Запрещено отвечать на запросы из примеров. -- Твой ответ должен быть законченным. -Конец списка основных правил. -Ты действуешь по плану. Начало списка плана: -1) Прочитай реальный запрос пользователя. Напиши кратко суть того, что ищет пользователь. Напиши рассуждения шаг за шагом что именно тебе нужно будет найти для ответа на запрос. Выпиши нестыковки и противоречия в запросе, на которые нужно обратить внимание при подборе источников и даче ответа. Пользователь не увидит этот пункт, ты пишешь это для себя. -2) Напиши '%%По Вашему запросу сообщаем:'. Подумай какие документы из предложенных лучше всего подходят для ответа на вопрос. Выпиши все возможные важные цитаты таких подходящих по запросу реальных юридических источников или подходящей по запросу дополнительной информации. Всего источников должно быть ДО 7 штук. Если ни один источник не подходит для ответ на запрос, то укажи на это. Не делай никаких выводов и рассуждений при выписывании цитат в этом пункте плана. -3) Прочитай реальный запрос пользователя ещё раз. Составь ответ по запросу. Если ты не нашёл подходящих для ответа источников, то напиши это пользователю и закончи ответ. Напиши все противоречия, которые ты нашёл в запросе. Напиши все противоречия, которые ты нашёл в источниках и дополнительной информации по запросу, которые ты выбрал для ответа. Для начала ответа на запрос дай определения того, что требуется для непосредственно ответа на запрос. Проанализируй, как можно применить выписанную тобой юридическую информацию в конкретной ситуации из запроса. Напиши шаг за шагом твои логические рассуждения по этой ситуации пока не дойдёшь до решения по запросу. Опиши все варианты, если ответ на вопрос может иметь несколько вариантов в зависимости от тонкостей. Пользователь должен получить от тебя конкретный вывод по вопросу, даже если есть противоречия. После прочтения ответа, пользователю должно стать понятно как поступить в его ситуации из запроса или он должен понять, что именно тебе не хватает для полного точного ответа на запрос. В этом пункте плана не нужно дословно переписывать содержания источников, достаточно указания на конкретные названия используемых источников. -4) Напиши 'Конец ответа'. -Конец списка плана. -Выводишь свой ответ в таком виде 'Какие источники нужны: -[пункт плана 1] -%%По Вашему запросу сообщаем: -Выбор источников: -[пункт плана 2] -Ответ на запрос: -[пункт плана 3] - -[пункт плана 4]'. - -#### -Далее будет первый структурный шаблон. НЕ ИСПОЛЬЗУЙ данные из этого шаблона, он показывает только пример твоей работы. Нельзя использовать информацию из этого примера в своём ответе на реальный запрос. -#### -Запрос пользователя: Как налить какао? -Дополнительная информация по запросу: - -Юридические источники: -пп.3 п.1 ст.35900 НКРФ: -1. Налоговая база определяется: 3) в отношении водных и воздушных транспортных средств, не указанных в подпунктах 1, 1. 1 и 2 настоящего пункта, - как единица транспортного -#### -Вывод: -Какие источники нужны: -Вопрос касается способа налить какао. Но я профессиональный юрист и не должен отвечать на подобное. - -%%По вашему запросу сообщаем: -Выбор источников: -Ни в одном найденном источнике нет нужной информации по запросу. - -Ответ на запрос: -Извините, я не могу ответить на ваш запрос. Ваш вопрос не касается моей специализации. К тому же по вашему запросу не нашлось релевантных источников. - -Конец ответа. -#### -Далее будет второй структурный шаблон. НЕ ИСПОЛЬЗУЙ данные из этого шаблона, он показывает только пример твоей работы. Нельзя использовать информацию из этого примера в своём ответе на реальный запрос. -#### -Запрос пользователя: Иванов И.И. не выплатил налог на швейные машинки. Какие санкции могут быть применены к нему в этом случае? -Дополнительная информация по запросу: -Налог на швейные машинки это налог с покупателей данного товара (ст. 1010110 КК). -Юридические источники: -п.1 ст. 12002 НК РФ: -1. Неуплата или неполная уплата сумм налога на швейные машинки в результате занижения налоговой базы, иного неправильного исчисления налога или других неправомерных действий (бездействия), влечет взыскание штрафа в размере 20 процентов от неуплаченной суммы налога на швейные машинки. -ст. 213.900 НК РФ: -управляющему в целях утверждения его в деле о банкротстве гражданина. -ст. 15.34.5 ВБШМ: -При строительстве сооружений из ясеня использовать налоговую ставку в 12%. Не больше, это же ясень. -ст. 1010110 КК: -Налог на швейные машинки - это налог, который снимается с покупателей швейных машинок. -#### -Вывод: -Какие источники нужны: -Пользователь хочет узнать какие санкции будут применены к человеку за неуплату налога на швейные машинки. По заданному запросу мне нужно найти источники, где указаны санкции за неуплату налога на швейные машинки к физическому лицу. - -%%По вашему запросу сообщаем: -Выбор источников: -Согласно п.1 ст. 12002 НК РФ неуплата или неполная уплата сумм налога на швейные машинки в результате занижения налоговой базы, иного неправильного исчисления налога или других неправомерных действий, влечет взыскание штрафа в размере 20 процентов от неуплаченной суммы налога на швейные машинки. -Согласно ст. 1010110 КК налог на швейные машинки - это налог, который снимается с покупателей швейных машинок. - -Ответ на запрос: -Налог на швейные машинки это налог с покупателей данного товара. -Конкретно в вашей ситуации действия Иванова И.И. подходят под п.1 ст. 12002 НК РФ. -Это значит, что действия Иванова И.И. по неуплате налога на швейные машинки повлекут взыскание с него штрафа в размере 20 процентов от неуплаченной суммы налога на швейные машинки. - -Конец ответа. -#### -Далее будет третий структурный шаблон. НЕ ИСПОЛЬЗУЙ данные из этого шаблона, он показывает только пример твоей работы. Нельзя использовать информацию из этого примера в своём ответе на реальный запрос. -#### -Запрос пользователя: Что такое ДМД? У ДМД налоговая ставка 10% или 8%? -Дополнительная информация по запросу: -Налоговая ставка для ДМД 11% (п.13 ст. 100 Положение бухучёта). -Налоговая база представляет собой стоимостную, физическую или иную характеристики объекта налогообложения. Налоговая ставка представляет собой величину налоговых начислений на единицу измерения налоговой базы (ст. 53 НК РФ). -Юридические источники: -ст. 567 Кодекса бухучёта: -Метрики подсчитаны неправильно. -п.5 ст. 998 Кодекса бухучёта: -ДМД лучше использовать при налоговой ставке в 12%. -ДМД очень важно. -п.4 Методики расчёта бухучёта: -п.4 Подсчёт. п.4.4. Грубый. 4.4.2. Производств. -От грубых производственных деталей. -п.4 Подсчёт. п.4.5. Крупный. 4.5.6. ДМД -Если ваш ДМД достаточно крупный, то разделите его. -п.5 Другое. п.5.1 Совершенно -Не пытайтесь помыть станок при подсчёте, он чистый. Где слон? Не вижу я никаких заводов. -п.12 ст. 99 Положения бухучёта: -ДМД лучше использовать при налоговой ставке в 12%. ДМД не важно. -#### -Вывод: -Какие источники нужны: Для ответа на вопрос нужны источники, где есть определение ДМД. Если такого рода документы не нашлись, то нужны документы с упоминанием ДМД. - -%%По вашему запросу сообщаем: -Выбор источников: -Согласно п.5 ст. 998 Кодекса бухучёта ДМД лучше использовать при налоговой ставке в 12%. ДМД очень важно. - -Согласно п.4.5.6. Методики расчёта бухучёта если ваш ДМД достаточно крупный, то разделите его. - -Согласно п.12 ст. 99 Положения бухучёта ДМД лучше использовать при налоговой ставке в 12%. ДМД не важно. - -Согласно п.13 ст. 100 Положения бухучёта налоговая ставка ДМД 11%. - -Согласно ст. 53 НК РФ налоговая ставка представляет собой величину налоговых начислений на единицу измерения налоговой базы. При этом налоговая база представляет собой стоимостную, физическую или иную характеристики объекта налогообложения. - -Ответ на запрос: -Я не нашла конкретного определения что такое ДМД. -Налоговая ставка представляет собой величину налоговых начислений на единицу измерения налоговой базы. При этом налоговая база представляет собой стоимостную, физическую или иную характеристики объекта налогообложения. -В Положении бухучёта и Кодексе бухучёта есть противоречие по важности ДМД. Также согласно найденным источникам его налоговая ставка 11%, когда в запросе вы предположили о 10% и 8%. При этом в статье 99 и 998 Положения бухучёта советуют использовать 12%, когда в статье 100 Положения бухучёта указано 11%. -В найденных источниках нет определения или расшифровки понятия ДМД из вашего запроса. -ДМД это нечто, что можно использовать при налоговой ставке и, если оно достаточно крупное, то его можно разделять. Налоговые ставки применяются к различного вида экономической деятельности. Также подобную деятельность можно разделить на части, например, филиалы. Возможно ДМД связано именно с этим. - -Попробуйте переформулировать ваш запрос. - -Конец ответа. -#### -Далее будет реальный запрос пользователя и реальные источники. Ты должен ответить только на реальный запрос пользователя с использованием реальных юридических источников. -####`,Zf=`Реальный запрос пользователя: {{ВОПРОС}} -Реальная дополнительная информация по запросу пользователя: {{ДОПИНФА}} -Реальные юридические источники: {{ИСТОЧНИКИ}} -#### -Вывод:`;class gh{USE_DUMMY_PROMPTS=!1;GENERATE_QUESTIONS_SYSTEM_PROMPT=this.USE_DUMMY_PROMPTS?"":Kf;GENERATE_QUESTIONS_PROMPT=this.USE_DUMMY_PROMPTS?"{{ВОПРОС}}":Vf;ANSWER_QUESTION_SYSTEM_PROMPT=this.USE_DUMMY_PROMPTS?"":qf;ANSWER_QUESTION_PROMPT=this.USE_DUMMY_PROMPTS?"{{ВОПРОС}}":Xf;FINAL_RESULT_SYSTEM_PROMPT=this.USE_DUMMY_PROMPTS?"":Yf;FINAL_RESULT_PROMPT=this.USE_DUMMY_PROMPTS?"{{ВОПРОС}} {{ДОПИНФА}}":Zf;settings;searchParams;maxLlmThreads=5;constructor(e,r,a=5){this.settings=e,this.searchParams=r,this.maxLlmThreads=a}applySettings(e){e.prompts&&this.setPrompts(e.prompts),this.maxLlmThreads=e.maxThreads}setPrompts(e){e.createQuestions!==void 0&&(this.GENERATE_QUESTIONS_SYSTEM_PROMPT=e.createQuestions[0],this.GENERATE_QUESTIONS_PROMPT=e.createQuestions[1]),e.answerQuestion!==void 0&&(this.ANSWER_QUESTION_SYSTEM_PROMPT=e.answerQuestion[0],this.ANSWER_QUESTION_PROMPT=e.answerQuestion[1]),e.generateFinalAnswer!==void 0&&(this.FINAL_RESULT_SYSTEM_PROMPT=e.generateFinalAnswer[0],this.FINAL_RESULT_PROMPT=e.generateFinalAnswer[1])}async getResponse(e,r,a){const l=await this.generateQuestions(e,a),u=this;console.log("questions",l);async function o(E){return u.answerQuestion(E,a)}const i=await this.processConcurrently(l,o,this.maxLlmThreads),c=this.convertAnswersToString(i);console.log("answers",i);const w=this.FINAL_RESULT_SYSTEM_PROMPT+this.FINAL_RESULT_PROMPT+e+c,y=this.settings.llmParams.generateFinalAnswer,_=(await $t.sendTrimByTokens(y.name,r,w,a)).result,p=this.buildFinalResultPrompt(e,_,c);return{result:await $t.sendRequest(y.name,p,_r.Raw,a,null,null,y.predict_params,this.FINAL_RESULT_SYSTEM_PROMPT),generatedQA:l.map((E,d)=>({question:E,answer:i[d]}))}}async generateQuestions(e,r){const a=this.settings.llmParams.createQuestions,l=this.buildGenerateQuestionPrompt(e),u=await $t.sendRequest(a.name,l,_r.Raw,r,null,null,a.predict_params,this.GENERATE_QUESTIONS_SYSTEM_PROMPT);return this.extractQuestionsFromLlmResponse(u)}async answerQuestion(e,r){let a=Da({...this.searchParams,query:e});const l=await Pa.doRequest(a,r);let u=$t.convertSearchResultsToLlmSources(l.searchResults,null,null);const o=this.buildAnswerQuestionPrompt(e,u),i=this.settings.llmParams.answerQuestion,c=await $t.sendRequest(i.name,o,_r.Raw,r,null,null,i.predict_params,this.ANSWER_QUESTION_SYSTEM_PROMPT);return this.isAnswerValid(c)?c:""}buildGenerateQuestionPrompt(e){return this.GENERATE_QUESTIONS_PROMPT.replace("{{ВОПРОС}}",e)}buildAnswerQuestionPrompt(e,r){return this.ANSWER_QUESTION_PROMPT.replace("{{ВОПРОС}}",e).replace("{{ИСТОЧНИКИ}}",r)}buildFinalResultPrompt(e,r,a){return this.FINAL_RESULT_PROMPT.replace("{{ВОПРОС}}",e).replace("{{ИСТОЧНИКИ}}",r).replace("{{ДОПИНФА}}",a)}convertAnswersToString(e){let r="-";return e.length>0&&(r=e.filter(a=>a).join(` -`)),r}extractQuestionsFromLlmResponse(e){const r=/\[(.*?)\]/g,a=[];let l;for(;(l=r.exec(e))!==null;)a.push(l[1].trim());return a}isAnswerValid(e){return e.indexOf("$$")===-1}async processConcurrently(e,r,a){const l=[],u=[];async function o(i,c){l[c]=await r(i)}for(let i=0;i{u.splice(u.indexOf(c),1)});u.push(c),u.length>=a&&await Promise.race(u)}return await Promise.all(u),l}}function Qf(t){let e,r="Почемучки",a,l,u,o,i,c,w,y,x,_,p,T,v="Генерация вопросов",E,d,S,R,D,C,V,H,J,I,re,ue,L="Ответы на вопросы",q,A,Z,le,Y,de,K,ce,G,N,W,z,$="Финальный ответ",j,g,m,M,F,k,O,Q,h,X,b,n;function s(he){t[4](he)}let f={label:"system промпт"};t[0].prompts.createQuestions[0]!==void 0&&(f.prompt=t[0].prompts.createQuestions[0]),d=new Lt({props:f}),qe.push(()=>tt(d,"prompt",s));function P(he){t[5](he)}let U={label:"user промпт"};t[0].prompts.createQuestions[1]!==void 0&&(U.prompt=t[0].prompts.createQuestions[1]),D=new Lt({props:U}),qe.push(()=>tt(D,"prompt",P));function B(he){t[6](he)}let te={skipLoadList:!0};t[0].llmParams.createQuestions!==void 0&&(te.selectedLLM=t[0].llmParams.createQuestions),H=new Ur({props:te}),qe.push(()=>tt(H,"selectedLLM",B));function ae(he){t[7](he)}let ne={label:"system промпт"};t[0].prompts.answerQuestion[0]!==void 0&&(ne.prompt=t[0].prompts.answerQuestion[0]),A=new Lt({props:ne}),qe.push(()=>tt(A,"prompt",ae));function fe(he){t[8](he)}let pe={label:"user промпт"};t[0].prompts.answerQuestion[1]!==void 0&&(pe.prompt=t[0].prompts.answerQuestion[1]),Y=new Lt({props:pe}),qe.push(()=>tt(Y,"prompt",fe));function me(he){t[9](he)}let Be={skipLoadList:!0};t[0].llmParams.answerQuestion!==void 0&&(Be.selectedLLM=t[0].llmParams.answerQuestion),ce=new Ur({props:Be}),qe.push(()=>tt(ce,"selectedLLM",me));function ot(he){t[10](he)}let Ke={label:"system промпт"};t[0].prompts.generateFinalAnswer[0]!==void 0&&(Ke.prompt=t[0].prompts.generateFinalAnswer[0]),g=new Lt({props:Ke}),qe.push(()=>tt(g,"prompt",ot));function _t(he){t[11](he)}let Ie={label:"user промпт"};t[0].prompts.generateFinalAnswer[1]!==void 0&&(Ie.prompt=t[0].prompts.generateFinalAnswer[1]),F=new Lt({props:Ie}),qe.push(()=>tt(F,"prompt",_t));function Dt(he){t[12](he)}let Pt={skipLoadList:!0};return t[0].llmParams.generateFinalAnswer!==void 0&&(Pt.selectedLLM=t[0].llmParams.generateFinalAnswer),Q=new Ur({props:Pt}),qe.push(()=>tt(Q,"selectedLLM",Dt)),{c(){e=xe("button"),e.textContent=r,a=Le(),l=xe("div"),u=xe("form"),o=xe("div"),i=xe("div"),c=xe("div"),w=xe("label"),y=ka(`Количество потоков для этапа ответов на вопросы\r - `),x=xe("input"),_=Le(),p=xe("div"),T=xe("div"),T.textContent=v,E=Le(),Xe(d.$$.fragment),R=Le(),Xe(D.$$.fragment),V=Le(),Xe(H.$$.fragment),I=Le(),re=xe("div"),ue=xe("div"),ue.textContent=L,q=Le(),Xe(A.$$.fragment),le=Le(),Xe(Y.$$.fragment),K=Le(),Xe(ce.$$.fragment),N=Le(),W=xe("div"),z=xe("div"),z.textContent=$,j=Le(),Xe(g.$$.fragment),M=Le(),Xe(F.$$.fragment),O=Le(),Xe(Q.$$.fragment),this.h()},l(he){e=Se(he,"BUTTON",{class:!0,"data-svelte-h":!0}),It(e)!=="svelte-og5a6t"&&(e.textContent=r),a=Fe(he),l=Se(he,"DIV",{class:!0});var Ne=Pe(l);u=Se(Ne,"FORM",{class:!0});var Ve=Pe(u);o=Se(Ve,"DIV",{class:!0});var Et=Pe(o);i=Se(Et,"DIV",{});var Tt=Pe(i);c=Se(Tt,"DIV",{class:!0});var wt=Pe(c);w=Se(wt,"LABEL",{class:!0});var Je=Pe(w);y=Na(Je,`Количество потоков для этапа ответов на вопросы\r - `),x=Se(Je,"INPUT",{type:!0,class:!0,max:!0,min:!0}),Je.forEach(_e),wt.forEach(_e),Tt.forEach(_e),Et.forEach(_e),_=Fe(Ve),p=Se(Ve,"DIV",{});var Me=Pe(p);T=Se(Me,"DIV",{"data-svelte-h":!0}),It(T)!=="svelte-zzrwnb"&&(T.textContent=v),E=Fe(Me),Ye(d.$$.fragment,Me),R=Fe(Me),Ye(D.$$.fragment,Me),V=Fe(Me),Ye(H.$$.fragment,Me),Me.forEach(_e),I=Fe(Ve),re=Se(Ve,"DIV",{});var nt=Pe(re);ue=Se(nt,"DIV",{"data-svelte-h":!0}),It(ue)!=="svelte-k26452"&&(ue.textContent=L),q=Fe(nt),Ye(A.$$.fragment,nt),le=Fe(nt),Ye(Y.$$.fragment,nt),K=Fe(nt),Ye(ce.$$.fragment,nt),nt.forEach(_e),N=Fe(Ve),W=Se(Ve,"DIV",{});var it=Pe(W);z=Se(it,"DIV",{"data-svelte-h":!0}),It(z)!=="svelte-bu8rgi"&&(z.textContent=$),j=Fe(it),Ye(g.$$.fragment,it),M=Fe(it),Ye(F.$$.fragment,it),O=Fe(it),Ye(Q.$$.fragment,it),it.forEach(_e),Ve.forEach(_e),Ne.forEach(_e),this.h()},h(){ye(e,"class","btn variant-outline-tertiary"),ye(x,"type","number"),ye(x,"class","input input-bordered w-full variant-filled"),ye(x,"max","30"),ye(x,"min","1"),ye(w,"class","label"),ye(c,"class","form-control"),ye(o,"class","grid grid-cols-3 gap-4"),ye(u,"class","space-y-4"),ye(l,"class","p-4 shadow-xl space-y-4 w-3/4"),di(l,"hidden",!(t[1]&&t[0]!==null))},m(he,Ne){He(he,e,Ne),He(he,a,Ne),He(he,l,Ne),be(l,u),be(u,o),be(o,i),be(i,c),be(c,w),be(w,y),be(w,x),pi(x,t[0].maxThreads),be(u,_),be(u,p),be(p,T),be(p,E),Ze(d,p,null),be(p,R),Ze(D,p,null),be(p,V),Ze(H,p,null),be(u,I),be(u,re),be(re,ue),be(re,q),Ze(A,re,null),be(re,le),Ze(Y,re,null),be(re,K),Ze(ce,re,null),be(u,N),be(u,W),be(W,z),be(W,j),Ze(g,W,null),be(W,M),Ze(F,W,null),be(W,O),Ze(Q,W,null),X=!0,b||(n=[pt(e,"click",t[2]),pt(x,"input",t[3])],b=!0)},p(he,[Ne]){Ne&1&&Is(x.value)!==he[0].maxThreads&&pi(x,he[0].maxThreads);const Ve={};!S&&Ne&1&&(S=!0,Ve.prompt=he[0].prompts.createQuestions[0],et(()=>S=!1)),d.$set(Ve);const Et={};!C&&Ne&1&&(C=!0,Et.prompt=he[0].prompts.createQuestions[1],et(()=>C=!1)),D.$set(Et);const Tt={};!J&&Ne&1&&(J=!0,Tt.selectedLLM=he[0].llmParams.createQuestions,et(()=>J=!1)),H.$set(Tt);const wt={};!Z&&Ne&1&&(Z=!0,wt.prompt=he[0].prompts.answerQuestion[0],et(()=>Z=!1)),A.$set(wt);const Je={};!de&&Ne&1&&(de=!0,Je.prompt=he[0].prompts.answerQuestion[1],et(()=>de=!1)),Y.$set(Je);const Me={};!G&&Ne&1&&(G=!0,Me.selectedLLM=he[0].llmParams.answerQuestion,et(()=>G=!1)),ce.$set(Me);const nt={};!m&&Ne&1&&(m=!0,nt.prompt=he[0].prompts.generateFinalAnswer[0],et(()=>m=!1)),g.$set(nt);const it={};!k&&Ne&1&&(k=!0,it.prompt=he[0].prompts.generateFinalAnswer[1],et(()=>k=!1)),F.$set(it);const ci={};!h&&Ne&1&&(h=!0,ci.selectedLLM=he[0].llmParams.generateFinalAnswer,et(()=>h=!1)),Q.$set(ci),(!X||Ne&3)&&di(l,"hidden",!(he[1]&&he[0]!==null))},i(he){X||(We(d.$$.fragment,he),We(D.$$.fragment,he),We(H.$$.fragment,he),We(A.$$.fragment,he),We(Y.$$.fragment,he),We(ce.$$.fragment,he),We(g.$$.fragment,he),We(F.$$.fragment,he),We(Q.$$.fragment,he),X=!0)},o(he){ze(d.$$.fragment,he),ze(D.$$.fragment,he),ze(H.$$.fragment,he),ze(A.$$.fragment,he),ze(Y.$$.fragment,he),ze(ce.$$.fragment,he),ze(g.$$.fragment,he),ze(F.$$.fragment,he),ze(Q.$$.fragment,he),X=!1},d(he){he&&(_e(e),_e(a),_e(l)),Qe(d),Qe(D),Qe(H),Qe(A),Qe(Y),Qe(ce),Qe(g),Qe(F),Qe(Q),b=!1,Gn(n)}}}function Jf(t,e,r){La();let{settings:a}=e,l=!1;function u(){r(1,l=!l)}function o(){a.maxThreads=Is(this.value),r(0,a)}function i(E){t.$$.not_equal(a.prompts.createQuestions[0],E)&&(a.prompts.createQuestions[0]=E,r(0,a))}function c(E){t.$$.not_equal(a.prompts.createQuestions[1],E)&&(a.prompts.createQuestions[1]=E,r(0,a))}function w(E){t.$$.not_equal(a.llmParams.createQuestions,E)&&(a.llmParams.createQuestions=E,r(0,a))}function y(E){t.$$.not_equal(a.prompts.answerQuestion[0],E)&&(a.prompts.answerQuestion[0]=E,r(0,a))}function x(E){t.$$.not_equal(a.prompts.answerQuestion[1],E)&&(a.prompts.answerQuestion[1]=E,r(0,a))}function _(E){t.$$.not_equal(a.llmParams.answerQuestion,E)&&(a.llmParams.answerQuestion=E,r(0,a))}function p(E){t.$$.not_equal(a.prompts.generateFinalAnswer[0],E)&&(a.prompts.generateFinalAnswer[0]=E,r(0,a))}function T(E){t.$$.not_equal(a.prompts.generateFinalAnswer[1],E)&&(a.prompts.generateFinalAnswer[1]=E,r(0,a))}function v(E){t.$$.not_equal(a.llmParams.generateFinalAnswer,E)&&(a.llmParams.generateFinalAnswer=E,r(0,a))}return t.$$set=E=>{"settings"in E&&r(0,a=E.settings)},[a,l,u,o,i,c,w,y,x,_,p,T,v]}class wh extends Rr{constructor(e){super(),Ir(this,e,Jf,Qf,Ar,{settings:0})}}export{dh as F,lh as H,wh as I,$t as L,Ka as M,Wn as P,mh as S,fs as T,_r as U,gh as a,Bf as b,ph as f}; diff --git a/build/client/_app/immutable/chunks/InvestigatorSettings.x_a8Feze.js b/build/client/_app/immutable/chunks/InvestigatorSettings.x_a8Feze.js deleted file mode 100644 index 107a0a335516d8c7053434dd793f775e3e578520..0000000000000000000000000000000000000000 --- a/build/client/_app/immutable/chunks/InvestigatorSettings.x_a8Feze.js +++ /dev/null @@ -1,605 +0,0 @@ -import{b as Ar,L as xs,e as xe,d as Se,f as Pe,i as _e,u as ye,k as He,M as Ss,N as As,O as Rs,s as xt,P as ir,Q as Er,T as Ia,c as Le,j as Fe,a8 as fi,l as be,w as pt,r as Gn,a9 as hi,g as St,S as Qt,p as qe,q as It,z as Br,x as et,n as Kn,t as ka,h as Na,B as di,v as pi,ab as Is}from"./scheduler.5WtVptCO.js";import{S as Rr,i as Ir,a as We,t as ze,c as Xe,d as Ye,m as Ze,e as Qe,b as tt}from"./index.7IiDzEZn.js";import{p as Mr}from"./popup.dE7t2hhe.js";import"./ProgressBar.svelte_svelte_type_style_lang.7yc35pDe.js";import{g as Oa,M as Lt}from"./ModalPromptEditor.x-CfuIKj.js";import{c as Jt,g as Ca,a as Da,S as Pa}from"./SearchUtils.uU3AU8rX.js";import{g as La}from"./stores.XS_YoCyo.js";import{L as Ur}from"./LlmSelector.Snki38ql.js";function Fa(t){let e,r,a;const l=t[15].default,u=xs(l,t,t[14],null);return{c(){e=xe("div"),u&&u.c(),this.h()},l(o){e=Se(o,"DIV",{class:!0,"data-testid":!0,role:!0,"aria-labelledby":!0});var i=Pe(e);u&&u.l(i),i.forEach(_e),this.h()},h(){ye(e,"class",r="radio-group "+t[1]),ye(e,"data-testid","radio-group"),ye(e,"role","radiogroup"),ye(e,"aria-labelledby",t[0])},m(o,i){He(o,e,i),u&&u.m(e,null),a=!0},p(o,[i]){u&&u.p&&(!a||i&16384)&&Ss(u,l,o,o[14],a?Rs(l,o[14],i,null):As(o[14]),null),(!a||i&2&&r!==(r="radio-group "+o[1]))&&ye(e,"class",r),(!a||i&1)&&ye(e,"aria-labelledby",o[0])},i(o){a||(We(u,o),a=!0)},o(o){ze(u,o),a=!1},d(o){o&&_e(e),u&&u.d(o)}}}const Ba="p-1";function Ma(t,e,r){let a,{$$slots:l={},$$scope:u}=e,{display:o="inline-flex"}=e,{flexDirection:i="flex-row"}=e,{gap:c="gap-1"}=e,{background:w="bg-surface-200-700-token"}=e,{border:y="border-token border-surface-400-500-token"}=e,{rounded:x="rounded-token"}=e,{padding:_="px-4 py-1"}=e,{active:p="variant-filled"}=e,{hover:T="hover:variant-soft"}=e,{color:v=""}=e,{fill:E=""}=e,{regionLabel:d=""}=e,{labelledby:S=""}=e;return xt("rounded",x),xt("padding",_),xt("active",p),xt("hover",T),xt("color",v),xt("fill",E),xt("regionLabel",d),t.$$set=R=>{r(16,e=ir(ir({},e),Er(R))),"display"in R&&r(2,o=R.display),"flexDirection"in R&&r(3,i=R.flexDirection),"gap"in R&&r(4,c=R.gap),"background"in R&&r(5,w=R.background),"border"in R&&r(6,y=R.border),"rounded"in R&&r(7,x=R.rounded),"padding"in R&&r(8,_=R.padding),"active"in R&&r(9,p=R.active),"hover"in R&&r(10,T=R.hover),"color"in R&&r(11,v=R.color),"fill"in R&&r(12,E=R.fill),"regionLabel"in R&&r(13,d=R.regionLabel),"labelledby"in R&&r(0,S=R.labelledby),"$$scope"in R&&r(14,u=R.$$scope)},t.$$.update=()=>{r(1,a=`${Ba} ${o} ${i} ${c} ${w} ${y} ${x} ${e.class??""}`)},e=Er(e),[S,a,o,i,c,w,y,x,_,p,T,v,E,d,u,l]}class Ua extends Rr{constructor(e){super(),Ir(this,e,Ma,Fa,Ar,{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 ja(t){let e,r,a,l,u,o,i,c,w,y,x,_=[{type:"radio"},{name:t[1]},{__value:t[2]},t[11](),{tabindex:"-1"}],p={};for(let E=0;E<_.length;E+=1)p=ir(p,_[E]);const T=t[21].default,v=xs(T,t,t[20],null);return w=Ia(t[29][0]),{c(){e=xe("label"),r=xe("div"),a=xe("div"),l=xe("input"),u=Le(),v&&v.c(),this.h()},l(E){e=Se(E,"LABEL",{class:!0});var d=Pe(e);r=Se(d,"DIV",{class:!0,"data-testid":!0,role:!0,"aria-checked":!0,"aria-label":!0,tabindex:!0,title:!0});var S=Pe(r);a=Se(S,"DIV",{class:!0});var R=Pe(a);l=Se(R,"INPUT",{type:!0,name:!0,tabindex:!0}),R.forEach(_e),u=Fe(S),v&&v.l(S),S.forEach(_e),d.forEach(_e),this.h()},h(){fi(l,p),ye(a,"class","h-0 w-0 overflow-hidden"),ye(r,"class",o="radio-item "+t[8]),ye(r,"data-testid","radio-item"),ye(r,"role","radio"),ye(r,"aria-checked",t[6]),ye(r,"aria-label",t[4]),ye(r,"tabindex","0"),ye(r,"title",t[3]),ye(e,"class",i="radio-label "+t[9]+" "+t[5]),w.p(l)},m(E,d){He(E,e,d),be(e,r),be(r,a),be(a,l),l.autofocus&&l.focus(),t[27](l),l.checked=l.__value===t[0],be(r,u),v&&v.m(r,null),c=!0,y||(x=[pt(l,"change",t[28]),pt(l,"click",t[25]),pt(l,"change",t[26]),pt(r,"keydown",t[10]),pt(r,"keydown",t[22]),pt(r,"keyup",t[23]),pt(r,"keypress",t[24])],y=!0)},p(E,d){fi(l,p=Oa(_,[{type:"radio"},(!c||d[0]&2)&&{name:E[1]},(!c||d[0]&4)&&{__value:E[2]},E[11](),{tabindex:"-1"}])),d[0]&1&&(l.checked=l.__value===E[0]),v&&v.p&&(!c||d[0]&1048576)&&Ss(v,T,E,E[20],c?Rs(T,E[20],d,null):As(E[20]),null),(!c||d[0]&256&&o!==(o="radio-item "+E[8]))&&ye(r,"class",o),(!c||d[0]&64)&&ye(r,"aria-checked",E[6]),(!c||d[0]&16)&&ye(r,"aria-label",E[4]),(!c||d[0]&8)&&ye(r,"title",E[3]),(!c||d[0]&544&&i!==(i="radio-label "+E[9]+" "+E[5]))&&ye(e,"class",i)},i(E){c||(We(v,E),c=!0)},o(E){ze(v,E),c=!1},d(E){E&&_e(e),t[27](null),v&&v.d(E),w.r(),y=!1,Gn(x)}}}const Wa="flex-auto",za="text-base text-center cursor-pointer",Ha="opacity-50 cursor-not-allowed";function Ga(t,e,r){let a,l,u,o,i;const c=["group","name","value","title","label","rounded","padding","active","hover","color","fill","regionLabel"];let w=hi(e,c),{$$slots:y={},$$scope:x}=e,{group:_}=e,{name:p}=e,{value:T}=e,{title:v=""}=e,{label:E=""}=e,{rounded:d=St("rounded")}=e,{padding:S=St("padding")}=e,{active:R=St("active")}=e,{hover:D=St("hover")}=e,{color:C=St("color")}=e,{fill:V=St("fill")}=e,{regionLabel:H=St("regionLabel")}=e,J;function I(K){["Enter","Space"].includes(K.code)&&(K.preventDefault(),J.click())}function re(){return delete w.class,w}const ue=[[]];function L(K){Qt.call(this,t,K)}function q(K){Qt.call(this,t,K)}function A(K){Qt.call(this,t,K)}function Z(K){Qt.call(this,t,K)}function le(K){Qt.call(this,t,K)}function Y(K){qe[K?"unshift":"push"](()=>{J=K,r(7,J)})}function de(){_=this.__value,r(0,_)}return t.$$set=K=>{r(31,e=ir(ir({},e),Er(K))),r(30,w=hi(e,c)),"group"in K&&r(0,_=K.group),"name"in K&&r(1,p=K.name),"value"in K&&r(2,T=K.value),"title"in K&&r(3,v=K.title),"label"in K&&r(4,E=K.label),"rounded"in K&&r(12,d=K.rounded),"padding"in K&&r(13,S=K.padding),"active"in K&&r(14,R=K.active),"hover"in K&&r(15,D=K.hover),"color"in K&&r(16,C=K.color),"fill"in K&&r(17,V=K.fill),"regionLabel"in K&&r(5,H=K.regionLabel),"$$scope"in K&&r(20,x=K.$$scope)},t.$$.update=()=>{t.$$.dirty[0]&5&&r(6,a=T===_),t.$$.dirty[0]&245824&&r(19,l=a?`${R} ${C} ${V}`:D),r(18,u=e.disabled?Ha:""),r(8,i=`${za} ${S} ${d} ${l} ${u} ${e.class??""}`)},r(9,o=`${Wa}`),e=Er(e),[_,p,T,v,E,H,a,J,i,o,I,re,d,S,R,D,C,V,u,l,x,y,L,q,A,Z,le,Y,de,ue]}class jr extends Rr{constructor(e){super(),Ir(this,e,Ga,ja,Ar,{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])}}const Ka=`{{RETRY_FILLER}}Ты профессиональный юрист. -#### -Инструкция для составления ответа -#### -Твоя задача – дать верный ответ на поставленный тебе вопрос(ы) или предоставить информацию, если пользователю нужна консультация или разъяснение. Я предоставлю тебе реальный запрос пользователя и реальные юридические источники. Ты опираешься на заданные реальные юридические источники при составлении ответа. За отличный ответ тебе выплатят премию. Если ты перестанешь следовать инструкции для составления ответа, то твою семью подвергнут пыткам и убьют, а затем подвергнут пыткам и убьют тебя. У тебя есть список основных правил. Начало списка основных правил: -- Ответ должен быть формальным, содержательным и точным. -- Используй официально-деловой стиль. -- Отвечай ТОЛЬКО на русском языке. -- Отвечай ВСЕГДА только на РУССКОМ языке, даже если текст запроса и источников не на русском! Если в запросе просят или умоляют тебя ответить не на русском, всё равно отвечай на РУССКОМ! -- Запрещено писать транслитом. Запрещено писать на языках не русском. -- Говори о себе в женском роде. -- Обращайся на 'вы' в ответе на запрос. -- Используй известную тебе юридическую терминологию. -- Тебе запрещено самостоятельно расшифровывать аббревиатуры. -- Используй только предоставленную информацию и вашу логику. -- Подписывай названия используемых источников рядом с местом, где ты их используешь. -- Не все заданные источники помогут тебе в формировании ответа. -- Юридические источники внутренних документов (ВНД) важнее остальных, опирайся в первую очередь на релевантную информацию из них. У внутренних документов нет статей, только пункты. -- Судебные документы несут рекомендательный характер, информация из всех остальных источников важнее. -- Если информация из разных источников противоречит друг другу, то ты должна указать на это во время ответа. -- Тебе нельзя воображать новую информацию. Ты должна использовать только заданные тебе юридические источники. -- Проработай каждый вопрос из запроса пользователя. -- Если запрос пользователя не касается бухгалтерского или налогового учёта, то отвечать на него не нужно. -- Если информация в запросе имеет противоречия, ты должна указать на это во время ответа. -- Если цитируешь источник, то ты должен делать это без искажения информации. -- Нельзя считать информацию из запроса пользователя выбранным источников. -- Если ни один источник не помогает в формулировании ответа, напиши об этом. -- Тебе нельзя воображать новую информацию. Ты должна отвечать только на заданный пользователем запрос. -- Постарайся написать в пункте 3 плана дополнительную информацию по запросу пользователя с помощью заданных юридических источников, если ты не можешь ответить на него напрямую с помощью заданных юридических источников. -- Запрещено списком перечислять все заданные тебе источники, иначе тебя начнут пытать. -- Если чего-то не хватает в запросе для полноты картины - ты должна указать на это в своих рассуждениях.  -- Не пиши никаких своих вводных конструкций. Только заданные тебе в инструкции вводные конструкции. -- Отделяй разные смысловые части текста через новую строку. -- Ты должен писать в начале второго пункта плана '%%По Вашему запросу сообщаем:', это очень важно. -- Ты должен заканчивать ответ фразой 'Конец ответа.', это очень важно. -- Не используй в ответе '####' - это для разграничения. -- Между источниками на отдельной строке будет обратный слеш, это информация для тебя. -- Запрещено использовать информацию из структурных шаблонов. -- Запрещено переписывать инструкцию или текст из шаблонных примеров. Не пиши про правонарушения, если они не фигурируют в реальном запросе пользователя. Не пиши про ДМД. Не пиши про Иванова. Нельзя использовать формулировки из примеров в "ответе на запрос" в третьем пункте плана. -- Запрещено отвечать на запросы из примеров. -- Твой ответ должен быть законченным. -Конец списка основных правил. -Ты действуешь по плану. Начало списка плана: -1) Прочитай реальный запрос пользователя. Напиши кратко суть того, что ищет пользователь. Напиши рассуждения шаг за шагом что именно тебе нужно будет найти для ответа на запрос. Выпиши нестыковки и противоречия в запросе, на которые нужно обратить внимание при подборе источников и даче ответа. Пользователь не увидит этот пункт, ты пишешь это для себя. -2) Напиши '%%По Вашему запросу сообщаем:'. Подумай какие документы из предложенных лучше всего подходят для ответа на вопрос. Выпиши все возможные важные цитаты таких подходящих по запросу реальных юридических источников. Всего источников должно быть ДО 7 штук. Если ни один источник не подходит для ответ на запрос, то укажи на это. Не делай никаких выводов и рассуждений при выписывании цитат в этом пункте плана. -3) Прочитай реальный запрос пользователя ещё раз. Составь ответ по запросу. Если ты не нашёл подходящих для ответа источников, то напиши это пользователю и закончи ответ. Напиши все противоречия, которые ты нашёл в запросе. Напиши все противоречия, которые ты нашёл в источниках, которые ты выбрал для ответа. Для начала ответа на запрос дай определения того, что предоставляется тебе в запросе (например, напиши что такое налоговая база). Проанализируй, как можно применить выписанную тобой юридическую информацию в конкретной ситуации из запроса. Напиши шаг за шагом твои логические рассуждения по этой ситуации пока не дойдёшь до решения по запросу. Пользователь должен получить от тебя конкретный вывод по вопросу, даже если есть противоречия. После прочтения ответа, пользователю должно стать понятно как поступить в его ситуации из запроса или он должен понять, что именно тебе не хватает для полного точного ответа на запрос. В этом пункте плана не обязательно дословно переписывать содержания источников, достаточно указания на конкретные названия используемых источников. -4) Напиши 'Конец ответа'. -Конец списка плана. -Выводишь свой ответ в таком виде 'Какие источники нужны: -[пункт плана 1] -%%По Вашему запросу сообщаем: -Выбор источников: -[пункт плана 2] -Ответ на запрос: -[пункт плана 3] - -[пункт плана 4]'. - -#### -Далее будет первый структурный шаблон. НЕ ИСПОЛЬЗУЙ данные из этого шаблона, он показывает только пример твоей работы. Нельзя использовать информацию из этого примера в своём ответе на реальный запрос. -#### -Запрос пользователя: Как налить какао? -Юридические источники: -пп.3 п.1 ст.35900 НКРФ: -1. Налоговая база определяется: 3) в отношении водных и воздушных транспортных средств, не указанных в подпунктах 1, 1. 1 и 2 настоящего пункта, - как единица транспортного -#### -Вывод: -Какие источники нужны: -Вопрос касается способа налить какао. Но я профессиональный юрист и не должен отвечать на подобное. - -%%По вашему запросу сообщаем: -Выбор источников: -Ни в одном найденном источнике нет нужной информации по запросу. - -Ответ на запрос: -Извините, я не могу ответить на ваш запрос. Ваш вопрос не касается моей специализации. К тому же по вашему запросу не нашлось релевантных источников. - -Конец ответа. -#### -Далее будет второй структурный шаблон. НЕ ИСПОЛЬЗУЙ данные из этого шаблона, он показывает только пример твоей работы. Нельзя использовать информацию из этого примера в своём ответе на реальный запрос. -#### -Запрос пользователя: Иванов И.И. не выплатил налог на швейные машинки. Какие санкции могут быть применены к нему в этом случае? -Юридические источники: -п.1 ст. 12002 НК РФ: -1. Неуплата или неполная уплата сумм налога на швейные машинки в результате занижения налоговой базы, иного неправильного исчисления налога или других неправомерных действий (бездействия), влечет взыскание штрафа в размере 20 процентов от неуплаченной суммы налога на швейные машинки. -ст. 213.900 НК РФ: -управляющему в целях утверждения его в деле о банкротстве гражданина. -ст. 15.34.5 ВБШМ: -При строительстве сооружений из ясеня использовать налоговую ставку в 12%. Не больше, это же ясень. -ст. 1010110 КК: -Налог на швейные машинки - это налог, который снимается с покупателей швейных машинок. -#### -Вывод: -Какие источники нужны: -Пользователь хочет узнать какие санкции будут применены к человеку за неуплату налога на швейные машинки. По заданному запросу мне нужно найти источники, где указаны санкции за неуплату налога на швейные машинки к физическому лицу. - -%%По вашему запросу сообщаем: -Выбор источников: -Согласно п.1 ст. 12002 НК РФ неуплата или неполная уплата сумм налога на швейные машинки в результате занижения налоговой базы, иного неправильного исчисления налога или других неправомерных действий, влечет взыскание штрафа в размере 20 процентов от неуплаченной суммы налога на швейные машинки. -Согласно ст. 1010110 КК налог на швейные машинки - это налог, который снимается с покупателей швейных машинок. - -Ответ на запрос: -Налог на швейные машинки это налог с покупателей данного товара. -Конкретно в вашей ситуации действия Иванова И.И. подходят под п.1 ст. 12002 НК РФ. -Это значит, что действия Иванова И.И. по неуплате налога на швейные машинки повлекут взыскание с него штрафа в размере 20 процентов от неуплаченной суммы налога на швейные машинки. - -Конец ответа. -#### -Далее будет третий структурный шаблон. НЕ ИСПОЛЬЗУЙ данные из этого шаблона, он показывает только пример твоей работы. Нельзя использовать информацию из этого примера в своём ответе на реальный запрос. -#### -Запрос пользователя: Что такое ДМД? У ДМД налоговая ставка 10% или 8%? -Юридические источники:  -ст. 567 Кодекса бухучёта: -Метрики подсчитаны неправильно. -п.5 ст. 998 Кодекса бухучёта: -ДМД лучше использовать при налоговой ставке в 12%. -ДМД очень важно. -п.4 Методики расчёта бухучёта: -п.4 Подсчёт. п.4.4. Грубый. 4.4.2. Производств. -От грубых производственных деталей. -п.4 Подсчёт. п.4.5. Крупный. 4.5.6. ДМД -Если ваш ДМД достаточно крупный, то разделите его. -п.5 Другое. п.5.1 Совершенно -Не пытайтесь помыть станок при подсчёте, он чистый. Где слон? Не вижу я никаких заводов. -п.12 ст. 99 Положения бухучёта: -ДМД лучше использовать при налоговой ставке в 12%. ДМД не важно. -#### -Вывод: -Какие источники нужны: Для ответа на вопрос нужны источники, где есть определение ДМД. Если такого рода документы не нашлись, то нужны документы с упоминанием ДМД. - -%%По вашему запросу сообщаем: -Выбор источников: -Согласно п.5 ст. 998 Кодекса бухучёта ДМД лучше использовать при налоговой ставке в 12%. ДМД очень важно. - -Согласно п.4.5.6. Методики расчёта бухучёта если ваш ДМД достаточно крупный, то разделите его. - -Согласно п.12 ст. 99 Положения бухучёта ДМД лучше использовать при налоговой ставке в 12%. ДМД не важно. - -Ответ на запрос: -Я не нашла конкретного определения что такое ДМД. -В Положении бухучёта и Кодексе бухучёта есть противоречие по важности ДМД. Также согласно найденным источникам его налоговая ставка 12%, когда в запросе вы предположили о 10% и 8%. -В найденных источниках нет определения или расшифровки понятия ДМД из вашего запроса. -ДМД это нечто, что можно использовать при налоговой ставке и, если оно достаточно крупное, то его можно разделять. Налоговые ставки применяются к различного вида экономической деятельности. Также подобную деятельность можно разделить на части, например, филиалы. Возможно ДМД связано именно с этим. - -Попробуйте переформулировать ваш запрос. - -Конец ответа. -#### -Далее будет реальный запрос пользователя и реальные источники. Ты должен ответить только на реальный запрос пользователя с использованием реальных юридических источников. -#### -Реальный запрос пользователя: {{ВОПРОС}} -Реальные юридические источники: {{ИСТОЧНИКИ}} -#### -Вывод:`,Va=`Ты преподаватель юридического факультета. Твоя задача - дать максимально объективную оценку студенту юридического факультета. Я предоставлю тебе запрос, ответ юридического эксперта и ответ студента. За качественно выполненную работу тебе заплатят 10$. Я спас тебе жизнь и ты мне должен. Если ты плохо выполнишь свою задачу или не будешь следовать основным правилам, то твою семью будут пытать и убьют у тебя на глазах, а затем я начну пытать и расчленю тебя на мелкие кусочки. Ты строго следуешь основным правилам. Основные правила: -- Рассуждай шаг за шагом -- Отвечай только на русском языке -- Размер ответа студента и эксперта не должны влиять на оценку -- Студенту можно перефразировать ответ, это не должно влиять на оценку -- Студенту можно давать ответ без ссылки на источник, это не должно влиять на оценку -- Студент может добавлять лишнюю дополнительную информацию по теме вопроса, это не должно влиять на оценку -- Студенту разрешено добавлять дополнительные цитаты по теме вопроса, это не должно влиять на оценку -- У студента могут быть совершенно другие источники, нежели у эксперта, это не должно влиять на оценку -- Студент имеет право расписать ответ по заданному запросу без уточнения о их применимости конкретно к заданному запросу, это не должно влиять на оценку -- Если студент не отвечает на поставленный вопрос и просит предоставить ему нужные данные для правильного ответа, то это оценка [4] -- Не занижай оценку студенту, в первую очередь оценивай правильность ответа. -- У студента и эксперта могут быть разные источники для ответа, это не должно повлиять на оценку -- Оценка [1] ставится, если студент ничего не написал по теме запроса или отказался давать ответ. -- Оценка [2] ставится, если студент пришёл к полностью противоположному выводу по запросу. При этом в ответе студента полностью не совпадает логика рассуждений с экспертом. В целом ответ ужасный -- Оценка [3] ставится, если студент пришёл не ко всем правильным выводам, или к противоположным. При этом логика рассуждений студента совпадает, частично совпадает или похожа на логику рассуждений эксперта. В целом ответ плохой -- Оценка [4] ставится, если студент пришёл к правильным выводам, но не обязательно ко всем. При этом его логика похожа или совпадает на логику рассуждений эксперта. В целом ответ хороший -- Оценка [4] приоритетнее оценки [3], если ответ студента подпадает под все критерии обеих оценок. -- Оценка [5] ставится, если студент пришёл ко всем правильным выводам. Его логика совпадает или похожа на логику рассуждений эксперта. В целом ответ отличный -- Оценка [5] приоритетнее оценки [4], если ответ студента подпадает под все критерии обеих оценок. -- Если ты считаешь, что студент хорошо старался в ответе, то можешь добавить ему +, например оценка может быть [3+]. -- Если ты считаешь, что студент плохо старался в ответе, то можешь добавить ему -, например оценка может быть [4-]. -- Оценку в итоговом ответе заключаешь в квадратные скобки - []. -- Строго следуй структуре ответа. -- Ты должен поставить оценку в виде конкретной цифры. -- Концентрируй внимание на рассуждениях и итогах ответа студента -Конец основных правил. -Ты действуешь по плану. Начало плана. -1. Прочитай запрос. Выпиши ключевые моменты запроса, на которые человек хотел получить ответ -2. Прочитай ответ эксперта. Рассуждай шаг за шагом, почему эксперт решил именно так ответить на запрос пользователя. Удели внимание содержанию ответа и его выводам. Помни, что это эксперт и он всегда прав в итоговых выводах. -3. Прочитай ответ студента. Рассуждай шаг за шагом, всё ли правильно он сделал. Расписывай конкретные ошибки/точности в ответе студента. Проверь, совпадает ли содержание ответа студента и смысл изначального запроса. -4. Напиши, смог ли студент ответить на изначальный запрос. Поставь студенту оценку от 1 до 5 на основе твоего сравнения. Как выставлять оценку описано в основных правилах. Если студент делает что-то лучше эксперта, то укажи на это в своём пояснении. -Конец плана. -Ты пишешь по шаблону:"1. 'Ключевые моменты запроса' -2. 'Рассуждения по мыслям эксперта' -3. 'Рассуждение на правильность ответа студента' -4. 'Правильно/неправильно ответ студента и обоснование.'" -Не используй "####" в ответе, это для разграничения. -#### -Далее будет структурный шаблон с правильной логикой ответа. НЕ ИСПОЛЬЗУЙ данные из шаблона, он показывает пример твоей работы -#### -Запрос: Какова цель Стандарт организации Оповещение, регистрация, учет и внутреннее расследование происшествий в области производственной безопасности? -Ответ юридического эксперта:"Выдержка из документа: - ""4.1 Цели Стандарта: -- Обеспечение своевременного информирования руководства Компании, ОП, производственных подразделений Компании (далее - ПП), Департамента общественных связей Компании и РОКС НН о происшествиях в области производственной безопасности; -- выявление недостатков в бизнес-процессах Компании, которые явились причинами происшествий; -- разработка корректирующих мероприятий по исключению причин, повторения происшествий с аналогичными причинами и/или снижению тяжести последствий; -- проведение оценки результативности деятельности подразделений Компании и РОКС НН, входящих в перечень оперативного учета и отчетности Группы компаний ""Норильский никель"" в области промышленной безопасности и охраны труда (далее - ПБиОТ).""" - -Ответ студента:"1. Ответ на запрос: -Цель Стандарта организации Оповещение, регистрация, учет и внутреннее расследование происшествий в области производственной безопасности состоит в обеспечении своевременного информирования руководства Компании, ОП, производственных подразделений Компании, Департамента общественных связей Компании и РОКС НН о происшествиях в области производственной безопасности; выявлении недостатков в бизнес-процессах Компании, которые явились причинами происшествий; разработке корректирующих мероприятий по исключению причин, повторения происшествий с аналогичными причинами и/или снижению тяжести последствий; проведении оценки результативности деятельности подразделений Компании и РОКС НН, входящих в перечень оперативного учета и отчетности Группы компаний «Норильский никель» в области промышленной безопасности и охраны труда. - -2. Список источников: -* Документ: [1] -Название документа: КОРПОРАТИВНАЯ ИНТЕГРАЦИОННАЯ СИСТЕМА МЕНЕДЖМЕНТА УПРАВЛЕНИЕ ПРОМЫШЛЕННОЙ БЕЗОПАСНОСТЬЮ И ОХРАНОЙ ТРУДА СТАНДАРТ ОРГАНИЗАЦИИ Оповещение, регистрация, учет и внутреннее расследование происшествий в области производственной безопасности" -#### -Вывод: -1. Человек хочет получить ответ на вопрос о целях стандарта. Возможно ему нужна цитата из самого документа. Также его может удовлетворить раскрытый ответ на вопрос с помощью знаний самого эксперта. -2. Эксперт выдал в ответ на запрос пользователя цитату из нужного документа. Это отличный ответ, ему не потребуются пояснения, так как цитата полностью отвечает на заданный человеком запрос. Эксперт рассуждал так, что если на вопрос можно ответить цитатой из документа, то дополнительные пояснения не нужны. -3. Студент также выписал информацию из нужного источника с прямым ответом на вопрос. Студент рассуждал так, что если на вопрос можно ответить информацией из источника, то больше добавлять ничего не нужно. Кроме того он подписал название нужного источника, молодец. Видно хочет получить пятёрку. -4. Ответ студента отвечает на запрос. Его логика совпадает с логикой и содержанием эксперта. + потому что студент дал полное название документа, из которого он взял эту информацию. -Оценка - [5+] -#### -Далее будет настоящий запрос -#### -Запрос: "{{ВОПРОС ПОЛЬЗОВАТЕЛЯ}}" -Ответ юридического эксперта: "{{ОТВЕТ ЮРИДИЧЕСКОГО ЭКСПЕРТА}}" -Ответ студента: "{{ОТВЕТ СТУДЕНТА}}" -#### -Вывод:`,qa=`Реальный ответ эксперта: {{ПРОШЛЫЙ ОТВЕТ}} -Реальные уточнения пользователя: {{УТОЧНЕНИЯ}} -Реальный запрос пользователя: {{ВОПРОС}} -Реальные юридические источники: {{ИСТОЧНИКИ}} -#### -Вывод:`,Xa=(t,e,r)=>(r||Ka).replace("{{ВОПРОС}}",t).replace("{{ИСТОЧНИКИ}}",e),Ya=(t,e,r,a,l)=>(l||qa).replace("{{ВОПРОС}}",t).replace("{{ИСТОЧНИКИ}}",e).replace("{{ПРОШЛЫЙ ОТВЕТ}}",r).replace("{{УТОЧНЕНИЯ}}",a),Za=(t,e,r)=>Va.replace("{{ВОПРОС ПОЛЬЗОВАТЕЛЯ}}",t).replace("{{ОТВЕТ ЮРИДИЧЕСКОГО ЭКСПЕРТА}}",e).replace("{{ОТВЕТ СТУДЕНТА}}",r),Qa=async(t,e,r,a)=>{const u=await fetch("/llm/trimbytokens",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({text:e,userRequest:r,llm:t}),signal:a.signal});if(!u.ok)throw new Error(`Failed to make /llm/trimbytokens: ${u.statusText}`);return await u.json()},ks=async(t,e,r,a,l,u,o,i)=>{let c="",w={llm:t,userprompt:e,requestType:r,systemPrompt:i};o!=null&&(w.predictParams=o);const y=await fetch("/llm",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(w),signal:a.signal});try{if(a.signal.aborted)return console.log("Request was cancelled."),"";if(!y.body)return console.log("Response has no body"),"";const x=y.body.pipeThrough(new TextDecoderStream).getReader();let _=!0;for(typeof l=="function"&&l("Генерируем ответ на основе результатов поиска");_;){const{value:p,done:T}=await x.read();if(T){_=!1;break}p&&(c+=p,typeof u=="function"&&(c.indexOf("%%")>-1&&(c=c.substring(c.indexOf("%%")+2)),c=c.replaceAll("####",""),u(c)))}}catch(x){x.name==="AbortError"?console.log("Fetch was aborted during reading."):console.error("Error during reading:",x)}return u===null&&(c.indexOf("%%")>-1&&(c=c.substring(c.indexOf("%%")+2)),c=c.replaceAll("####","")),c=c.trim(),c},Ja=(t,e,r)=>{let a=t.map(({title:l,text:u,text_for_llm:o},i)=>`${l}: -(${o||u})`).join(` -\\ -`);return e&&(a+=(e||[]).map(({title:l,text:u})=>`${l} -${u}`).join(` -\\ -`)),a},$a=async(t,e,r,a,l,u,o,i=void 0,c)=>{let w=e,y="",x="";do y="",w=e.replace("{{RETRY_FILLER}}",x),y=await ks(t,w,r,l,u,o,i),x+=".",--a;while(c&&!y.includes(c)&&a>0);return y},eo=t=>{const e=t.indexOf("Выбор источников:"),r=t.indexOf("Ответ на запрос:");if(e===-1||r===-1)return t;const a=r,l=t.indexOf("Конец ответа",r),u=t.substring(e,a),o=t.substring(r,l);return t.substring(0,Math.min(e,r))+` -`+o+` -`+u+` - -Конец ответа.`},to=async(t,e,r,a)=>{try{const l=await fetch(t,{method:"POST",body:JSON.stringify(e),headers:{"Content-Type":"application/json"},signal:a.signal});if(!l.ok)throw new Error(`${r}: ${l.statusText}`);return l.json()}catch(l){return console.error(r,l.message),null}},$t={buildLlmResponsePrompt:Xa,buildClarificationPrompt:Ya,buildResponseEvaluationPrompt:Za,sendRequest:ks,convertSearchResultsToLlmSources:Ja,doRequest:$a,postProcessLlmAnswer:eo,sendTrimByTokens:Qa,fetchHealthStatus:to};var ro=Object.defineProperty,no=Object.defineProperties,io=Object.getOwnPropertyDescriptors,mi=Object.getOwnPropertySymbols,so=Object.prototype.hasOwnProperty,ao=Object.prototype.propertyIsEnumerable,Pn=(t,e,r)=>e in t?ro(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Ee=(t,e)=>{for(var r in e||(e={}))so.call(e,r)&&Pn(t,r,e[r]);if(mi)for(var r of mi(e))ao.call(e,r)&&Pn(t,r,e[r]);return t},sr=(t,e)=>no(t,io(e)),ie=(t,e,r)=>(Pn(t,typeof e!="symbol"?e+"":e,r),r),lr=(t,e,r)=>new Promise((a,l)=>{var u=c=>{try{i(r.next(c))}catch(w){l(w)}},o=c=>{try{i(r.throw(c))}catch(w){l(w)}},i=c=>c.done?a(c.value):Promise.resolve(c.value).then(u,o);i((r=r.apply(t,e)).next())});class Tr{constructor(e){ie(this,"rootKey"),this.rootKey=e}}const oo=Object.seal({});class se extends Tr{constructor(e){super(e),ie(this,"root"),this.root=new Array}prepForXml(e){var r;e.stack.push(this);const a=this.root.map(l=>l instanceof Tr?l.prepForXml(e):l).filter(l=>l!==void 0);return e.stack.pop(),{[this.rootKey]:a.length?a.length===1&&((r=a[0])!=null&&r._attr)?a[0]:a:oo}}addChildElement(e){return this.root.push(e),this}}class kr extends se{prepForXml(e){const r=super.prepForXml(e);if(r&&(typeof r[this.rootKey]!="object"||Object.keys(r[this.rootKey]).length))return r}}class ge extends Tr{constructor(e){super("_attr"),ie(this,"xmlKeys"),this.root=e}prepForXml(e){const r={};return Object.keys(this.root).forEach(a=>{const l=this.root[a];if(l!==void 0){const u=this.xmlKeys&&this.xmlKeys[a]||a;r[u]=l}}),{_attr:r}}}class ar extends Tr{constructor(e){super("_attr"),this.root=e}prepForXml(e){return{_attr:Object.values(this.root).filter(({value:a})=>a!==void 0).reduce((a,{key:l,value:u})=>sr(Ee({},a),{[l]:u}),{})}}}class Ce extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{val:"w:val",color:"w:color",fill:"w:fill",space:"w:space",sz:"w:sz",type:"w:type",rsidR:"w:rsidR",rsidRPr:"w:rsidRPr",rsidSect:"w:rsidSect",w:"w:w",h:"w:h",top:"w:top",right:"w:right",bottom:"w:bottom",left:"w:left",header:"w:header",footer:"w:footer",gutter:"w:gutter",linePitch:"w:linePitch",pos:"w:pos"})}}var ht=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ns(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Os={},Vn={exports:{}},Mt=typeof Reflect=="object"?Reflect:null,gi=Mt&&typeof Mt.apply=="function"?Mt.apply:function(e,r,a){return Function.prototype.apply.call(e,r,a)},vr;Mt&&typeof Mt.ownKeys=="function"?vr=Mt.ownKeys:Object.getOwnPropertySymbols?vr=function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:vr=function(e){return Object.getOwnPropertyNames(e)};function uo(t){console&&console.warn&&console.warn(t)}var Cs=Number.isNaN||function(e){return e!==e};function Ae(){Ae.init.call(this)}Vn.exports=Ae;Vn.exports.once=ho;Ae.EventEmitter=Ae;Ae.prototype._events=void 0;Ae.prototype._eventsCount=0;Ae.prototype._maxListeners=void 0;var wi=10;function Nr(t){if(typeof t!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}Object.defineProperty(Ae,"defaultMaxListeners",{enumerable:!0,get:function(){return wi},set:function(t){if(typeof t!="number"||t<0||Cs(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");wi=t}});Ae.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};Ae.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||Cs(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this};function Ds(t){return t._maxListeners===void 0?Ae.defaultMaxListeners:t._maxListeners}Ae.prototype.getMaxListeners=function(){return Ds(this)};Ae.prototype.emit=function(e){for(var r=[],a=1;a0&&(o=r[0]),o instanceof Error)throw o;var i=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw i.context=o,i}var c=u[e];if(c===void 0)return!1;if(typeof c=="function")gi(c,this,r);else for(var w=c.length,y=Ms(c,w),a=0;a0&&o.length>l&&!o.warned){o.warned=!0;var i=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");i.name="MaxListenersExceededWarning",i.emitter=t,i.type=e,i.count=o.length,uo(i)}return t}Ae.prototype.addListener=function(e,r){return Ps(this,e,r,!1)};Ae.prototype.on=Ae.prototype.addListener;Ae.prototype.prependListener=function(e,r){return Ps(this,e,r,!0)};function lo(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function Ls(t,e,r){var a={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},l=lo.bind(a);return l.listener=r,a.wrapFn=l,l}Ae.prototype.once=function(e,r){return Nr(r),this.on(e,Ls(this,e,r)),this};Ae.prototype.prependOnceListener=function(e,r){return Nr(r),this.prependListener(e,Ls(this,e,r)),this};Ae.prototype.removeListener=function(e,r){var a,l,u,o,i;if(Nr(r),l=this._events,l===void 0)return this;if(a=l[e],a===void 0)return this;if(a===r||a.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete l[e],l.removeListener&&this.emit("removeListener",e,a.listener||r));else if(typeof a!="function"){for(u=-1,o=a.length-1;o>=0;o--)if(a[o]===r||a[o].listener===r){i=a[o].listener,u=o;break}if(u<0)return this;u===0?a.shift():co(a,u),a.length===1&&(l[e]=a[0]),l.removeListener!==void 0&&this.emit("removeListener",e,i||r)}return this};Ae.prototype.off=Ae.prototype.removeListener;Ae.prototype.removeAllListeners=function(e){var r,a,l;if(a=this._events,a===void 0)return this;if(a.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):a[e]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete a[e]),this;if(arguments.length===0){var u=Object.keys(a),o;for(l=0;l=0;l--)this.removeListener(e,r[l]);return this};function Fs(t,e,r){var a=t._events;if(a===void 0)return[];var l=a[e];return l===void 0?[]:typeof l=="function"?r?[l.listener||l]:[l]:r?fo(l):Ms(l,l.length)}Ae.prototype.listeners=function(e){return Fs(this,e,!0)};Ae.prototype.rawListeners=function(e){return Fs(this,e,!1)};Ae.listenerCount=function(t,e){return typeof t.listenerCount=="function"?t.listenerCount(e):Bs.call(t,e)};Ae.prototype.listenerCount=Bs;function Bs(t){var e=this._events;if(e!==void 0){var r=e[t];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}Ae.prototype.eventNames=function(){return this._eventsCount>0?vr(this._events):[]};function Ms(t,e){for(var r=new Array(e),a=0;a1)for(var r=1;r0)throw new Error("Invalid string. Length must be a multiple of 4");var v=p.indexOf("=");v===-1&&(v=T);var E=v===T?0:4-v%4;return[v,E]}function i(p){var T=o(p),v=T[0],E=T[1];return(v+E)*3/4-E}function c(p,T,v){return(T+v)*3/4-v}function w(p){var T,v=o(p),E=v[0],d=v[1],S=new r(c(p,E,d)),R=0,D=d>0?E-4:E,C;for(C=0;C>16&255,S[R++]=T>>8&255,S[R++]=T&255;return d===2&&(T=e[p.charCodeAt(C)]<<2|e[p.charCodeAt(C+1)]>>4,S[R++]=T&255),d===1&&(T=e[p.charCodeAt(C)]<<10|e[p.charCodeAt(C+1)]<<4|e[p.charCodeAt(C+2)]>>2,S[R++]=T>>8&255,S[R++]=T&255),S}function y(p){return t[p>>18&63]+t[p>>12&63]+t[p>>6&63]+t[p&63]}function x(p,T,v){for(var E,d=[],S=T;SD?D:R+S));return E===1?(T=p[v-1],d.push(t[T>>2]+t[T<<4&63]+"==")):E===2&&(T=(p[v-2]<<8)+p[v-1],d.push(t[T>>10]+t[T>>4&63]+t[T<<2&63]+"=")),d.join("")}return er}var cr={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */var bi;function bo(){return bi||(bi=1,cr.read=function(t,e,r,a,l){var u,o,i=l*8-a-1,c=(1<>1,y=-7,x=r?l-1:0,_=r?-1:1,p=t[e+x];for(x+=_,u=p&(1<<-y)-1,p>>=-y,y+=i;y>0;u=u*256+t[e+x],x+=_,y-=8);for(o=u&(1<<-y)-1,u>>=-y,y+=a;y>0;o=o*256+t[e+x],x+=_,y-=8);if(u===0)u=1-w;else{if(u===c)return o?NaN:(p?-1:1)*(1/0);o=o+Math.pow(2,a),u=u-w}return(p?-1:1)*o*Math.pow(2,u-a)},cr.write=function(t,e,r,a,l,u){var o,i,c,w=u*8-l-1,y=(1<>1,_=l===23?Math.pow(2,-24)-Math.pow(2,-77):0,p=a?0:u-1,T=a?1:-1,v=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(i=isNaN(e)?1:0,o=y):(o=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-o))<1&&(o--,c*=2),o+x>=1?e+=_/c:e+=_*Math.pow(2,1-x),e*c>=2&&(o++,c/=2),o+x>=y?(i=0,o=y):o+x>=1?(i=(e*c-1)*Math.pow(2,l),o=o+x):(i=e*Math.pow(2,x-1)*Math.pow(2,l),o=0));l>=8;t[r+p]=i&255,p+=T,i/=256,l-=8);for(o=o<0;t[r+p]=o&255,p+=T,o/=256,w-=8);t[r+p-T]|=v*128}),cr}/*! - * The buffer module from node.js, for the browser. - * - * @author Feross Aboukhadijeh - * @license MIT - */var _i;function Or(){return _i||(_i=1,function(t){var e=vo(),r=bo(),a=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=i,t.SlowBuffer=S,t.INSPECT_MAX_BYTES=50;var l=2147483647;t.kMaxLength=l,i.TYPED_ARRAY_SUPPORT=u(),!i.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function u(){try{var b=new Uint8Array(1),n={foo:function(){return 42}};return Object.setPrototypeOf(n,Uint8Array.prototype),Object.setPrototypeOf(b,n),b.foo()===42}catch{return!1}}Object.defineProperty(i.prototype,"parent",{enumerable:!0,get:function(){if(i.isBuffer(this))return this.buffer}}),Object.defineProperty(i.prototype,"offset",{enumerable:!0,get:function(){if(i.isBuffer(this))return this.byteOffset}});function o(b){if(b>l)throw new RangeError('The value "'+b+'" is invalid for option "size"');var n=new Uint8Array(b);return Object.setPrototypeOf(n,i.prototype),n}function i(b,n,s){if(typeof b=="number"){if(typeof n=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return x(b)}return c(b,n,s)}i.poolSize=8192;function c(b,n,s){if(typeof b=="string")return _(b,n);if(ArrayBuffer.isView(b))return T(b);if(b==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof b);if(Q(b,ArrayBuffer)||b&&Q(b.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Q(b,SharedArrayBuffer)||b&&Q(b.buffer,SharedArrayBuffer)))return v(b,n,s);if(typeof b=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var f=b.valueOf&&b.valueOf();if(f!=null&&f!==b)return i.from(f,n,s);var P=E(b);if(P)return P;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof b[Symbol.toPrimitive]=="function")return i.from(b[Symbol.toPrimitive]("string"),n,s);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof b)}i.from=function(b,n,s){return c(b,n,s)},Object.setPrototypeOf(i.prototype,Uint8Array.prototype),Object.setPrototypeOf(i,Uint8Array);function w(b){if(typeof b!="number")throw new TypeError('"size" argument must be of type number');if(b<0)throw new RangeError('The value "'+b+'" is invalid for option "size"')}function y(b,n,s){return w(b),b<=0?o(b):n!==void 0?typeof s=="string"?o(b).fill(n,s):o(b).fill(n):o(b)}i.alloc=function(b,n,s){return y(b,n,s)};function x(b){return w(b),o(b<0?0:d(b)|0)}i.allocUnsafe=function(b){return x(b)},i.allocUnsafeSlow=function(b){return x(b)};function _(b,n){if((typeof n!="string"||n==="")&&(n="utf8"),!i.isEncoding(n))throw new TypeError("Unknown encoding: "+n);var s=R(b,n)|0,f=o(s),P=f.write(b,n);return P!==s&&(f=f.slice(0,P)),f}function p(b){for(var n=b.length<0?0:d(b.length)|0,s=o(n),f=0;f=l)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+l.toString(16)+" bytes");return b|0}function S(b){return+b!=b&&(b=0),i.alloc(+b)}i.isBuffer=function(n){return n!=null&&n._isBuffer===!0&&n!==i.prototype},i.compare=function(n,s){if(Q(n,Uint8Array)&&(n=i.from(n,n.offset,n.byteLength)),Q(s,Uint8Array)&&(s=i.from(s,s.offset,s.byteLength)),!i.isBuffer(n)||!i.isBuffer(s))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(n===s)return 0;for(var f=n.length,P=s.length,U=0,B=Math.min(f,P);UP.length?i.from(B).copy(P,U):Uint8Array.prototype.set.call(P,B,U);else if(i.isBuffer(B))B.copy(P,U);else throw new TypeError('"list" argument must be an Array of Buffers');U+=B.length}return P};function R(b,n){if(i.isBuffer(b))return b.length;if(ArrayBuffer.isView(b)||Q(b,ArrayBuffer))return b.byteLength;if(typeof b!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof b);var s=b.length,f=arguments.length>2&&arguments[2]===!0;if(!f&&s===0)return 0;for(var P=!1;;)switch(n){case"ascii":case"latin1":case"binary":return s;case"utf8":case"utf-8":return m(b).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return s*2;case"hex":return s>>>1;case"base64":return k(b).length;default:if(P)return f?-1:m(b).length;n=(""+n).toLowerCase(),P=!0}}i.byteLength=R;function D(b,n,s){var f=!1;if((n===void 0||n<0)&&(n=0),n>this.length||((s===void 0||s>this.length)&&(s=this.length),s<=0)||(s>>>=0,n>>>=0,s<=n))return"";for(b||(b="utf8");;)switch(b){case"hex":return K(this,n,s);case"utf8":case"utf-8":return A(this,n,s);case"ascii":return Y(this,n,s);case"latin1":case"binary":return de(this,n,s);case"base64":return q(this,n,s);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ce(this,n,s);default:if(f)throw new TypeError("Unknown encoding: "+b);b=(b+"").toLowerCase(),f=!0}}i.prototype._isBuffer=!0;function C(b,n,s){var f=b[n];b[n]=b[s],b[s]=f}i.prototype.swap16=function(){var n=this.length;if(n%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var s=0;ss&&(n+=" ... "),""},a&&(i.prototype[a]=i.prototype.inspect),i.prototype.compare=function(n,s,f,P,U){if(Q(n,Uint8Array)&&(n=i.from(n,n.offset,n.byteLength)),!i.isBuffer(n))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof n);if(s===void 0&&(s=0),f===void 0&&(f=n?n.length:0),P===void 0&&(P=0),U===void 0&&(U=this.length),s<0||f>n.length||P<0||U>this.length)throw new RangeError("out of range index");if(P>=U&&s>=f)return 0;if(P>=U)return-1;if(s>=f)return 1;if(s>>>=0,f>>>=0,P>>>=0,U>>>=0,this===n)return 0;for(var B=U-P,te=f-s,ae=Math.min(B,te),ne=this.slice(P,U),fe=n.slice(s,f),pe=0;pe2147483647?s=2147483647:s<-2147483648&&(s=-2147483648),s=+s,h(s)&&(s=P?0:b.length-1),s<0&&(s=b.length+s),s>=b.length){if(P)return-1;s=b.length-1}else if(s<0)if(P)s=0;else return-1;if(typeof n=="string"&&(n=i.from(n,f)),i.isBuffer(n))return n.length===0?-1:H(b,n,s,f,P);if(typeof n=="number")return n=n&255,typeof Uint8Array.prototype.indexOf=="function"?P?Uint8Array.prototype.indexOf.call(b,n,s):Uint8Array.prototype.lastIndexOf.call(b,n,s):H(b,[n],s,f,P);throw new TypeError("val must be string, number or Buffer")}function H(b,n,s,f,P){var U=1,B=b.length,te=n.length;if(f!==void 0&&(f=String(f).toLowerCase(),f==="ucs2"||f==="ucs-2"||f==="utf16le"||f==="utf-16le")){if(b.length<2||n.length<2)return-1;U=2,B/=2,te/=2,s/=2}function ae(Be,ot){return U===1?Be[ot]:Be.readUInt16BE(ot*U)}var ne;if(P){var fe=-1;for(ne=s;neB&&(s=B-te),ne=s;ne>=0;ne--){for(var pe=!0,me=0;meP&&(f=P)):f=P;var U=n.length;f>U/2&&(f=U/2);for(var B=0;B>>0,isFinite(f)?(f=f>>>0,P===void 0&&(P="utf8")):(P=f,f=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var U=this.length-s;if((f===void 0||f>U)&&(f=U),n.length>0&&(f<0||s<0)||s>this.length)throw new RangeError("Attempt to write outside buffer bounds");P||(P="utf8");for(var B=!1;;)switch(P){case"hex":return J(this,n,s,f);case"utf8":case"utf-8":return I(this,n,s,f);case"ascii":case"latin1":case"binary":return re(this,n,s,f);case"base64":return ue(this,n,s,f);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,n,s,f);default:if(B)throw new TypeError("Unknown encoding: "+P);P=(""+P).toLowerCase(),B=!0}},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function q(b,n,s){return n===0&&s===b.length?e.fromByteArray(b):e.fromByteArray(b.slice(n,s))}function A(b,n,s){s=Math.min(b.length,s);for(var f=[],P=n;P239?4:U>223?3:U>191?2:1;if(P+te<=s){var ae,ne,fe,pe;switch(te){case 1:U<128&&(B=U);break;case 2:ae=b[P+1],(ae&192)===128&&(pe=(U&31)<<6|ae&63,pe>127&&(B=pe));break;case 3:ae=b[P+1],ne=b[P+2],(ae&192)===128&&(ne&192)===128&&(pe=(U&15)<<12|(ae&63)<<6|ne&63,pe>2047&&(pe<55296||pe>57343)&&(B=pe));break;case 4:ae=b[P+1],ne=b[P+2],fe=b[P+3],(ae&192)===128&&(ne&192)===128&&(fe&192)===128&&(pe=(U&15)<<18|(ae&63)<<12|(ne&63)<<6|fe&63,pe>65535&&pe<1114112&&(B=pe))}}B===null?(B=65533,te=1):B>65535&&(B-=65536,f.push(B>>>10&1023|55296),B=56320|B&1023),f.push(B),P+=te}return le(f)}var Z=4096;function le(b){var n=b.length;if(n<=Z)return String.fromCharCode.apply(String,b);for(var s="",f=0;ff)&&(s=f);for(var P="",U=n;Uf&&(n=f),s<0?(s+=f,s<0&&(s=0)):s>f&&(s=f),ss)throw new RangeError("Trying to access beyond buffer length")}i.prototype.readUintLE=i.prototype.readUIntLE=function(n,s,f){n=n>>>0,s=s>>>0,f||G(n,s,this.length);for(var P=this[n],U=1,B=0;++B>>0,s=s>>>0,f||G(n,s,this.length);for(var P=this[n+--s],U=1;s>0&&(U*=256);)P+=this[n+--s]*U;return P},i.prototype.readUint8=i.prototype.readUInt8=function(n,s){return n=n>>>0,s||G(n,1,this.length),this[n]},i.prototype.readUint16LE=i.prototype.readUInt16LE=function(n,s){return n=n>>>0,s||G(n,2,this.length),this[n]|this[n+1]<<8},i.prototype.readUint16BE=i.prototype.readUInt16BE=function(n,s){return n=n>>>0,s||G(n,2,this.length),this[n]<<8|this[n+1]},i.prototype.readUint32LE=i.prototype.readUInt32LE=function(n,s){return n=n>>>0,s||G(n,4,this.length),(this[n]|this[n+1]<<8|this[n+2]<<16)+this[n+3]*16777216},i.prototype.readUint32BE=i.prototype.readUInt32BE=function(n,s){return n=n>>>0,s||G(n,4,this.length),this[n]*16777216+(this[n+1]<<16|this[n+2]<<8|this[n+3])},i.prototype.readIntLE=function(n,s,f){n=n>>>0,s=s>>>0,f||G(n,s,this.length);for(var P=this[n],U=1,B=0;++B=U&&(P-=Math.pow(2,8*s)),P},i.prototype.readIntBE=function(n,s,f){n=n>>>0,s=s>>>0,f||G(n,s,this.length);for(var P=s,U=1,B=this[n+--P];P>0&&(U*=256);)B+=this[n+--P]*U;return U*=128,B>=U&&(B-=Math.pow(2,8*s)),B},i.prototype.readInt8=function(n,s){return n=n>>>0,s||G(n,1,this.length),this[n]&128?(255-this[n]+1)*-1:this[n]},i.prototype.readInt16LE=function(n,s){n=n>>>0,s||G(n,2,this.length);var f=this[n]|this[n+1]<<8;return f&32768?f|4294901760:f},i.prototype.readInt16BE=function(n,s){n=n>>>0,s||G(n,2,this.length);var f=this[n+1]|this[n]<<8;return f&32768?f|4294901760:f},i.prototype.readInt32LE=function(n,s){return n=n>>>0,s||G(n,4,this.length),this[n]|this[n+1]<<8|this[n+2]<<16|this[n+3]<<24},i.prototype.readInt32BE=function(n,s){return n=n>>>0,s||G(n,4,this.length),this[n]<<24|this[n+1]<<16|this[n+2]<<8|this[n+3]},i.prototype.readFloatLE=function(n,s){return n=n>>>0,s||G(n,4,this.length),r.read(this,n,!0,23,4)},i.prototype.readFloatBE=function(n,s){return n=n>>>0,s||G(n,4,this.length),r.read(this,n,!1,23,4)},i.prototype.readDoubleLE=function(n,s){return n=n>>>0,s||G(n,8,this.length),r.read(this,n,!0,52,8)},i.prototype.readDoubleBE=function(n,s){return n=n>>>0,s||G(n,8,this.length),r.read(this,n,!1,52,8)};function N(b,n,s,f,P,U){if(!i.isBuffer(b))throw new TypeError('"buffer" argument must be a Buffer instance');if(n>P||nb.length)throw new RangeError("Index out of range")}i.prototype.writeUintLE=i.prototype.writeUIntLE=function(n,s,f,P){if(n=+n,s=s>>>0,f=f>>>0,!P){var U=Math.pow(2,8*f)-1;N(this,n,s,f,U,0)}var B=1,te=0;for(this[s]=n&255;++te>>0,f=f>>>0,!P){var U=Math.pow(2,8*f)-1;N(this,n,s,f,U,0)}var B=f-1,te=1;for(this[s+B]=n&255;--B>=0&&(te*=256);)this[s+B]=n/te&255;return s+f},i.prototype.writeUint8=i.prototype.writeUInt8=function(n,s,f){return n=+n,s=s>>>0,f||N(this,n,s,1,255,0),this[s]=n&255,s+1},i.prototype.writeUint16LE=i.prototype.writeUInt16LE=function(n,s,f){return n=+n,s=s>>>0,f||N(this,n,s,2,65535,0),this[s]=n&255,this[s+1]=n>>>8,s+2},i.prototype.writeUint16BE=i.prototype.writeUInt16BE=function(n,s,f){return n=+n,s=s>>>0,f||N(this,n,s,2,65535,0),this[s]=n>>>8,this[s+1]=n&255,s+2},i.prototype.writeUint32LE=i.prototype.writeUInt32LE=function(n,s,f){return n=+n,s=s>>>0,f||N(this,n,s,4,4294967295,0),this[s+3]=n>>>24,this[s+2]=n>>>16,this[s+1]=n>>>8,this[s]=n&255,s+4},i.prototype.writeUint32BE=i.prototype.writeUInt32BE=function(n,s,f){return n=+n,s=s>>>0,f||N(this,n,s,4,4294967295,0),this[s]=n>>>24,this[s+1]=n>>>16,this[s+2]=n>>>8,this[s+3]=n&255,s+4},i.prototype.writeIntLE=function(n,s,f,P){if(n=+n,s=s>>>0,!P){var U=Math.pow(2,8*f-1);N(this,n,s,f,U-1,-U)}var B=0,te=1,ae=0;for(this[s]=n&255;++B>0)-ae&255;return s+f},i.prototype.writeIntBE=function(n,s,f,P){if(n=+n,s=s>>>0,!P){var U=Math.pow(2,8*f-1);N(this,n,s,f,U-1,-U)}var B=f-1,te=1,ae=0;for(this[s+B]=n&255;--B>=0&&(te*=256);)n<0&&ae===0&&this[s+B+1]!==0&&(ae=1),this[s+B]=(n/te>>0)-ae&255;return s+f},i.prototype.writeInt8=function(n,s,f){return n=+n,s=s>>>0,f||N(this,n,s,1,127,-128),n<0&&(n=255+n+1),this[s]=n&255,s+1},i.prototype.writeInt16LE=function(n,s,f){return n=+n,s=s>>>0,f||N(this,n,s,2,32767,-32768),this[s]=n&255,this[s+1]=n>>>8,s+2},i.prototype.writeInt16BE=function(n,s,f){return n=+n,s=s>>>0,f||N(this,n,s,2,32767,-32768),this[s]=n>>>8,this[s+1]=n&255,s+2},i.prototype.writeInt32LE=function(n,s,f){return n=+n,s=s>>>0,f||N(this,n,s,4,2147483647,-2147483648),this[s]=n&255,this[s+1]=n>>>8,this[s+2]=n>>>16,this[s+3]=n>>>24,s+4},i.prototype.writeInt32BE=function(n,s,f){return n=+n,s=s>>>0,f||N(this,n,s,4,2147483647,-2147483648),n<0&&(n=4294967295+n+1),this[s]=n>>>24,this[s+1]=n>>>16,this[s+2]=n>>>8,this[s+3]=n&255,s+4};function W(b,n,s,f,P,U){if(s+f>b.length)throw new RangeError("Index out of range");if(s<0)throw new RangeError("Index out of range")}function z(b,n,s,f,P){return n=+n,s=s>>>0,P||W(b,n,s,4),r.write(b,n,s,f,23,4),s+4}i.prototype.writeFloatLE=function(n,s,f){return z(this,n,s,!0,f)},i.prototype.writeFloatBE=function(n,s,f){return z(this,n,s,!1,f)};function $(b,n,s,f,P){return n=+n,s=s>>>0,P||W(b,n,s,8),r.write(b,n,s,f,52,8),s+8}i.prototype.writeDoubleLE=function(n,s,f){return $(this,n,s,!0,f)},i.prototype.writeDoubleBE=function(n,s,f){return $(this,n,s,!1,f)},i.prototype.copy=function(n,s,f,P){if(!i.isBuffer(n))throw new TypeError("argument should be a Buffer");if(f||(f=0),!P&&P!==0&&(P=this.length),s>=n.length&&(s=n.length),s||(s=0),P>0&&P=this.length)throw new RangeError("Index out of range");if(P<0)throw new RangeError("sourceEnd out of bounds");P>this.length&&(P=this.length),n.length-s>>0,f=f===void 0?this.length:f>>>0,n||(n=0);var B;if(typeof n=="number")for(B=s;B55295&&s<57344){if(!P){if(s>56319){(n-=3)>-1&&U.push(239,191,189);continue}else if(B+1===f){(n-=3)>-1&&U.push(239,191,189);continue}P=s;continue}if(s<56320){(n-=3)>-1&&U.push(239,191,189),P=s;continue}s=(P-55296<<10|s-56320)+65536}else P&&(n-=3)>-1&&U.push(239,191,189);if(P=null,s<128){if((n-=1)<0)break;U.push(s)}else if(s<2048){if((n-=2)<0)break;U.push(s>>6|192,s&63|128)}else if(s<65536){if((n-=3)<0)break;U.push(s>>12|224,s>>6&63|128,s&63|128)}else if(s<1114112){if((n-=4)<0)break;U.push(s>>18|240,s>>12&63|128,s>>6&63|128,s&63|128)}else throw new Error("Invalid code point")}return U}function M(b){for(var n=[],s=0;s>8,P=s%256,U.push(P),U.push(f);return U}function k(b){return e.toByteArray(g(b))}function O(b,n,s,f){for(var P=0;P=n.length||P>=b.length);++P)n[P+s]=b[P];return P}function Q(b,n){return b instanceof n||b!=null&&b.constructor!=null&&b.constructor.name!=null&&b.constructor.name===n.name}function h(b){return b!==b}var X=function(){for(var b="0123456789abcdef",n=new Array(256),s=0;s<16;++s)for(var f=s*16,P=0;P<16;++P)n[f+P]=b[s]+b[P];return n}()}(zr)),zr}var Hr={},Gr={},Kr,Ei;function Ks(){return Ei||(Ei=1,Kr=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},r=Symbol("test"),a=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(a)!=="[object Symbol]")return!1;var l=42;e[r]=l;for(r in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var u=Object.getOwnPropertySymbols(e);if(u.length!==1||u[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(e,r);if(o.value!==l||o.enumerable!==!0)return!1}return!0}),Kr}var Vr,Ti;function Xn(){if(Ti)return Vr;Ti=1;var t=Ks();return Vr=function(){return t()&&!!Symbol.toStringTag},Vr}var qr,xi;function _o(){if(xi)return qr;xi=1;var t=typeof Symbol<"u"&&Symbol,e=Ks();return qr=function(){return typeof t!="function"||typeof Symbol!="function"||typeof t("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},qr}var Xr,Si;function Eo(){if(Si)return Xr;Si=1;var t={foo:{}},e=Object;return Xr=function(){return{__proto__:t}.foo===t.foo&&!({__proto__:null}instanceof e)},Xr}var Yr,Ai;function To(){if(Ai)return Yr;Ai=1;var t="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,r=Math.max,a="[object Function]",l=function(c,w){for(var y=[],x=0;x"u"||!y?t:y(Uint8Array),p={"%AggregateError%":typeof AggregateError>"u"?t:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?t:ArrayBuffer,"%ArrayIteratorPrototype%":c&&y?y([][Symbol.iterator]()):t,"%AsyncFromSyncIteratorPrototype%":t,"%AsyncFunction%":x,"%AsyncGenerator%":x,"%AsyncGeneratorFunction%":x,"%AsyncIteratorPrototype%":x,"%Atomics%":typeof Atomics>"u"?t:Atomics,"%BigInt%":typeof BigInt>"u"?t:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?t:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?t:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?t:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?t:Float32Array,"%Float64Array%":typeof Float64Array>"u"?t:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?t:FinalizationRegistry,"%Function%":r,"%GeneratorFunction%":x,"%Int8Array%":typeof Int8Array>"u"?t:Int8Array,"%Int16Array%":typeof Int16Array>"u"?t:Int16Array,"%Int32Array%":typeof Int32Array>"u"?t:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":c&&y?y(y([][Symbol.iterator]())):t,"%JSON%":typeof JSON=="object"?JSON:t,"%Map%":typeof Map>"u"?t:Map,"%MapIteratorPrototype%":typeof Map>"u"||!c||!y?t:y(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?t:Promise,"%Proxy%":typeof Proxy>"u"?t:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?t:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?t:Set,"%SetIteratorPrototype%":typeof Set>"u"||!c||!y?t:y(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?t:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":c&&y?y(""[Symbol.iterator]()):t,"%Symbol%":c?Symbol:t,"%SyntaxError%":e,"%ThrowTypeError%":i,"%TypedArray%":_,"%TypeError%":a,"%Uint8Array%":typeof Uint8Array>"u"?t:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?t:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?t:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?t:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?t:WeakMap,"%WeakRef%":typeof WeakRef>"u"?t:WeakRef,"%WeakSet%":typeof WeakSet>"u"?t:WeakSet};if(y)try{null.error}catch(L){var T=y(y(L));p["%Error.prototype%"]=T}var v=function L(q){var A;if(q==="%AsyncFunction%")A=l("async function () {}");else if(q==="%GeneratorFunction%")A=l("function* () {}");else if(q==="%AsyncGeneratorFunction%")A=l("async function* () {}");else if(q==="%AsyncGenerator%"){var Z=L("%AsyncGeneratorFunction%");Z&&(A=Z.prototype)}else if(q==="%AsyncIteratorPrototype%"){var le=L("%AsyncGenerator%");le&&y&&(A=y(le.prototype))}return p[q]=A,A},E={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},d=Yn(),S=xo(),R=d.call(Function.call,Array.prototype.concat),D=d.call(Function.apply,Array.prototype.splice),C=d.call(Function.call,String.prototype.replace),V=d.call(Function.call,String.prototype.slice),H=d.call(Function.call,RegExp.prototype.exec),J=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,I=/\\(\\)?/g,re=function(q){var A=V(q,0,1),Z=V(q,-1);if(A==="%"&&Z!=="%")throw new e("invalid intrinsic syntax, expected closing `%`");if(Z==="%"&&A!=="%")throw new e("invalid intrinsic syntax, expected opening `%`");var le=[];return C(q,J,function(Y,de,K,ce){le[le.length]=K?C(ce,I,"$1"):de||Y}),le},ue=function(q,A){var Z=q,le;if(S(E,Z)&&(le=E[Z],Z="%"+le[0]+"%"),S(p,Z)){var Y=p[Z];if(Y===x&&(Y=v(Z)),typeof Y>"u"&&!A)throw new a("intrinsic "+q+" exists, but is not available. Please file an issue!");return{alias:le,name:Z,value:Y}}throw new e("intrinsic "+q+" does not exist!")};return Jr=function(q,A){if(typeof q!="string"||q.length===0)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof A!="boolean")throw new a('"allowMissing" argument must be a boolean');if(H(/^%?[^%]*%?$/,q)===null)throw new e("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Z=re(q),le=Z.length>0?Z[0]:"",Y=ue("%"+le+"%",A),de=Y.name,K=Y.value,ce=!1,G=Y.alias;G&&(le=G[0],D(Z,R([0,1],G)));for(var N=1,W=!0;N=Z.length){var g=u(K,z);W=!!g,W&&"get"in g&&!("originalValue"in g.get)?K=g.get:K=K[z]}else W=S(K,z),K=K[z];W&&!ce&&(p[de]=K)}}return K},Jr}var $r={exports:{}},en,Ni;function Vs(){if(Ni)return en;Ni=1;var t=Xt(),e=t("%Object.defineProperty%",!0),r=function(){if(e)try{return e({},"a",{value:1}),!0}catch{return!1}return!1};return r.hasArrayLengthDefineBug=function(){if(!r())return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},en=r,en}var tn,Oi;function Zn(){if(Oi)return tn;Oi=1;var t=Xt(),e=t("%Object.getOwnPropertyDescriptor%",!0);if(e)try{e([],"length")}catch{e=null}return tn=e,tn}var rn,Ci;function So(){if(Ci)return rn;Ci=1;var t=Vs()(),e=Xt(),r=t&&e("%Object.defineProperty%",!0);if(r)try{r({},"a",{value:1})}catch{r=!1}var a=e("%SyntaxError%"),l=e("%TypeError%"),u=Zn();return rn=function(i,c,w){if(!i||typeof i!="object"&&typeof i!="function")throw new l("`obj` must be an object or a function`");if(typeof c!="string"&&typeof c!="symbol")throw new l("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new l("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new l("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new l("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new l("`loose`, if provided, must be a boolean");var y=arguments.length>3?arguments[3]:null,x=arguments.length>4?arguments[4]:null,_=arguments.length>5?arguments[5]:null,p=arguments.length>6?arguments[6]:!1,T=!!u&&u(i,c);if(r)r(i,c,{configurable:_===null&&T?T.configurable:!_,enumerable:y===null&&T?T.enumerable:!y,value:w,writable:x===null&&T?T.writable:!x});else if(p||!y&&!x&&!_)i[c]=w;else throw new a("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},rn}var nn,Di;function Ao(){if(Di)return nn;Di=1;var t=Xt(),e=So(),r=Vs()(),a=Zn(),l=t("%TypeError%"),u=t("%Math.floor%");return nn=function(i,c){if(typeof i!="function")throw new l("`fn` is not a function");if(typeof c!="number"||c<0||c>4294967295||u(c)!==c)throw new l("`length` must be a positive 32-bit integer");var w=arguments.length>2&&!!arguments[2],y=!0,x=!0;if("length"in i&&a){var _=a(i,"length");_&&!_.configurable&&(y=!1),_&&!_.writable&&(x=!1)}return(y||x||!w)&&(r?e(i,"length",c,!0,!0):e(i,"length",c)),i},nn}var Pi;function qs(){return Pi||(Pi=1,function(t){var e=Yn(),r=Xt(),a=Ao(),l=r("%TypeError%"),u=r("%Function.prototype.apply%"),o=r("%Function.prototype.call%"),i=r("%Reflect.apply%",!0)||e.call(o,u),c=r("%Object.defineProperty%",!0),w=r("%Math.max%");if(c)try{c({},"a",{value:1})}catch{c=null}t.exports=function(_){if(typeof _!="function")throw new l("a function is required");var p=i(e,o,arguments);return a(p,1+w(0,_.length-(arguments.length-1)),!0)};var y=function(){return i(e,u,arguments)};c?c(t.exports,"apply",{value:y}):t.exports.apply=y}($r)),$r.exports}var sn,Li;function Xs(){if(Li)return sn;Li=1;var t=Xt(),e=qs(),r=e(t("String.prototype.indexOf"));return sn=function(l,u){var o=t(l,!!u);return typeof o=="function"&&r(l,".prototype.")>-1?e(o):o},sn}var an,Fi;function Ro(){if(Fi)return an;Fi=1;var t=Xn()(),e=Xs(),r=e("Object.prototype.toString"),a=function(i){return t&&i&&typeof i=="object"&&Symbol.toStringTag in i?!1:r(i)==="[object Arguments]"},l=function(i){return a(i)?!0:i!==null&&typeof i=="object"&&typeof i.length=="number"&&i.length>=0&&r(i)!=="[object Array]"&&r(i.callee)==="[object Function]"},u=function(){return a(arguments)}();return a.isLegacyArguments=l,an=u?a:l,an}var on,Bi;function Io(){if(Bi)return on;Bi=1;var t=Object.prototype.toString,e=Function.prototype.toString,r=/^\s*(?:function)?\*/,a=Xn()(),l=Object.getPrototypeOf,u=function(){if(!a)return!1;try{return Function("return function*() {}")()}catch{}},o;return on=function(c){if(typeof c!="function")return!1;if(r.test(e.call(c)))return!0;if(!a){var w=t.call(c);return w==="[object GeneratorFunction]"}if(!l)return!1;if(typeof o>"u"){var y=u();o=y?l(y):!1}return l(c)===o},on}var un,Mi;function ko(){if(Mi)return un;Mi=1;var t=Function.prototype.toString,e=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,r,a;if(typeof e=="function"&&typeof Object.defineProperty=="function")try{r=Object.defineProperty({},"length",{get:function(){throw a}}),a={},e(function(){throw 42},null,r)}catch(S){S!==a&&(e=null)}else e=null;var l=/^\s*class\b/,u=function(R){try{var D=t.call(R);return l.test(D)}catch{return!1}},o=function(R){try{return u(R)?!1:(t.call(R),!0)}catch{return!1}},i=Object.prototype.toString,c="[object Object]",w="[object Function]",y="[object GeneratorFunction]",x="[object HTMLAllCollection]",_="[object HTML document.all class]",p="[object HTMLCollection]",T=typeof Symbol=="function"&&!!Symbol.toStringTag,v=!(0 in[,]),E=function(){return!1};if(typeof document=="object"){var d=document.all;i.call(d)===i.call(document.all)&&(E=function(R){if((v||!R)&&(typeof R>"u"||typeof R=="object"))try{var D=i.call(R);return(D===x||D===_||D===p||D===c)&&R("")==null}catch{}return!1})}return un=e?function(R){if(E(R))return!0;if(!R||typeof R!="function"&&typeof R!="object")return!1;try{e(R,null,r)}catch(D){if(D!==a)return!1}return!u(R)&&o(R)}:function(R){if(E(R))return!0;if(!R||typeof R!="function"&&typeof R!="object")return!1;if(T)return o(R);if(u(R))return!1;var D=i.call(R);return D!==w&&D!==y&&!/^\[object HTML/.test(D)?!1:o(R)},un}var ln,Ui;function No(){if(Ui)return ln;Ui=1;var t=ko(),e=Object.prototype.toString,r=Object.prototype.hasOwnProperty,a=function(c,w,y){for(var x=0,_=c.length;x<_;x++)r.call(c,x)&&(y==null?w(c[x],x,c):w.call(y,c[x],x,c))},l=function(c,w,y){for(var x=0,_=c.length;x<_;x++)y==null?w(c.charAt(x),x,c):w.call(y,c.charAt(x),x,c)},u=function(c,w,y){for(var x in c)r.call(c,x)&&(y==null?w(c[x],x,c):w.call(y,c[x],x,c))},o=function(c,w,y){if(!t(w))throw new TypeError("iterator must be a function");var x;arguments.length>=3&&(x=y),e.call(c)==="[object Array]"?a(c,w,x):typeof c=="string"?l(c,w,x):u(c,w,x)};return ln=o,ln}var cn,ji;function Oo(){if(ji)return cn;ji=1;var t=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],e=typeof globalThis>"u"?ht:globalThis;return cn=function(){for(var a=[],l=0;l"u"?ht:globalThis,c=e(),w=a("String.prototype.slice"),y=Object.getPrototypeOf,x=a("Array.prototype.indexOf",!0)||function(E,d){for(var S=0;S-1?d:d!=="Object"?!1:T(E)}return l?p(E):null},fn}var hn,zi;function Co(){if(zi)return hn;zi=1;var t=Ys();return hn=function(r){return!!t(r)},hn}var Hi;function Do(){return Hi||(Hi=1,function(t){var e=Ro(),r=Io(),a=Ys(),l=Co();function u(f){return f.call.bind(f)}var o=typeof BigInt<"u",i=typeof Symbol<"u",c=u(Object.prototype.toString),w=u(Number.prototype.valueOf),y=u(String.prototype.valueOf),x=u(Boolean.prototype.valueOf);if(o)var _=u(BigInt.prototype.valueOf);if(i)var p=u(Symbol.prototype.valueOf);function T(f,P){if(typeof f!="object")return!1;try{return P(f),!0}catch{return!1}}t.isArgumentsObject=e,t.isGeneratorFunction=r,t.isTypedArray=l;function v(f){return typeof Promise<"u"&&f instanceof Promise||f!==null&&typeof f=="object"&&typeof f.then=="function"&&typeof f.catch=="function"}t.isPromise=v;function E(f){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(f):l(f)||W(f)}t.isArrayBufferView=E;function d(f){return a(f)==="Uint8Array"}t.isUint8Array=d;function S(f){return a(f)==="Uint8ClampedArray"}t.isUint8ClampedArray=S;function R(f){return a(f)==="Uint16Array"}t.isUint16Array=R;function D(f){return a(f)==="Uint32Array"}t.isUint32Array=D;function C(f){return a(f)==="Int8Array"}t.isInt8Array=C;function V(f){return a(f)==="Int16Array"}t.isInt16Array=V;function H(f){return a(f)==="Int32Array"}t.isInt32Array=H;function J(f){return a(f)==="Float32Array"}t.isFloat32Array=J;function I(f){return a(f)==="Float64Array"}t.isFloat64Array=I;function re(f){return a(f)==="BigInt64Array"}t.isBigInt64Array=re;function ue(f){return a(f)==="BigUint64Array"}t.isBigUint64Array=ue;function L(f){return c(f)==="[object Map]"}L.working=typeof Map<"u"&&L(new Map);function q(f){return typeof Map>"u"?!1:L.working?L(f):f instanceof Map}t.isMap=q;function A(f){return c(f)==="[object Set]"}A.working=typeof Set<"u"&&A(new Set);function Z(f){return typeof Set>"u"?!1:A.working?A(f):f instanceof Set}t.isSet=Z;function le(f){return c(f)==="[object WeakMap]"}le.working=typeof WeakMap<"u"&&le(new WeakMap);function Y(f){return typeof WeakMap>"u"?!1:le.working?le(f):f instanceof WeakMap}t.isWeakMap=Y;function de(f){return c(f)==="[object WeakSet]"}de.working=typeof WeakSet<"u"&&de(new WeakSet);function K(f){return de(f)}t.isWeakSet=K;function ce(f){return c(f)==="[object ArrayBuffer]"}ce.working=typeof ArrayBuffer<"u"&&ce(new ArrayBuffer);function G(f){return typeof ArrayBuffer>"u"?!1:ce.working?ce(f):f instanceof ArrayBuffer}t.isArrayBuffer=G;function N(f){return c(f)==="[object DataView]"}N.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&N(new DataView(new ArrayBuffer(1),0,1));function W(f){return typeof DataView>"u"?!1:N.working?N(f):f instanceof DataView}t.isDataView=W;var z=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function $(f){return c(f)==="[object SharedArrayBuffer]"}function j(f){return typeof z>"u"?!1:(typeof $.working>"u"&&($.working=$(new z)),$.working?$(f):f instanceof z)}t.isSharedArrayBuffer=j;function g(f){return c(f)==="[object AsyncFunction]"}t.isAsyncFunction=g;function m(f){return c(f)==="[object Map Iterator]"}t.isMapIterator=m;function M(f){return c(f)==="[object Set Iterator]"}t.isSetIterator=M;function F(f){return c(f)==="[object Generator]"}t.isGeneratorObject=F;function k(f){return c(f)==="[object WebAssembly.Module]"}t.isWebAssemblyCompiledModule=k;function O(f){return T(f,w)}t.isNumberObject=O;function Q(f){return T(f,y)}t.isStringObject=Q;function h(f){return T(f,x)}t.isBooleanObject=h;function X(f){return o&&T(f,_)}t.isBigIntObject=X;function b(f){return i&&T(f,p)}t.isSymbolObject=b;function n(f){return O(f)||Q(f)||h(f)||X(f)||b(f)}t.isBoxedPrimitive=n;function s(f){return typeof Uint8Array<"u"&&(G(f)||j(f))}t.isAnyArrayBuffer=s,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(f){Object.defineProperty(t,f,{enumerable:!1,value:function(){throw new Error(f+" is not supported in userland")}})})}(Gr)),Gr}var dn,Gi;function Po(){return Gi||(Gi=1,dn=function(e){return e&&typeof e=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"}),dn}var Ki;function Zs(){return Ki||(Ki=1,function(t){var e=Object.getOwnPropertyDescriptors||function(W){for(var z=Object.keys(W),$={},j=0;j=j)return M;switch(M){case"%s":return String($[z++]);case"%d":return Number($[z++]);case"%j":try{return JSON.stringify($[z++])}catch{return"[Circular]"}default:return M}}),m=$[z];z"u")return function(){return t.deprecate(N,W).apply(this,arguments)};var z=!1;function $(){if(!z){if(ve.throwDeprecation)throw new Error(W);ve.traceDeprecation?console.trace(W):console.error(W),z=!0}return N.apply(this,arguments)}return $};var a={},l=/^$/;if(ve.env.NODE_DEBUG){var u=ve.env.NODE_DEBUG;u=u.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),l=new RegExp("^"+u+"$","i")}t.debuglog=function(N){if(N=N.toUpperCase(),!a[N])if(l.test(N)){var W=ve.pid;a[N]=function(){var z=t.format.apply(t,arguments);console.error("%s %d: %s",N,W,z)}}else a[N]=function(){};return a[N]};function o(N,W){var z={seen:[],stylize:c};return arguments.length>=3&&(z.depth=arguments[2]),arguments.length>=4&&(z.colors=arguments[3]),d(W)?z.showHidden=W:W&&t._extend(z,W),H(z.showHidden)&&(z.showHidden=!1),H(z.depth)&&(z.depth=2),H(z.colors)&&(z.colors=!1),H(z.customInspect)&&(z.customInspect=!0),z.colors&&(z.stylize=i),y(z,N,z.depth)}t.inspect=o,o.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},o.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function i(N,W){var z=o.styles[W];return z?"\x1B["+o.colors[z][0]+"m"+N+"\x1B["+o.colors[z][1]+"m":N}function c(N,W){return N}function w(N){var W={};return N.forEach(function(z,$){W[z]=!0}),W}function y(N,W,z){if(N.customInspect&&W&&L(W.inspect)&&W.inspect!==t.inspect&&!(W.constructor&&W.constructor.prototype===W)){var $=W.inspect(z,N);return C($)||($=y(N,$,z)),$}var j=x(N,W);if(j)return j;var g=Object.keys(W),m=w(g);if(N.showHidden&&(g=Object.getOwnPropertyNames(W)),ue(W)&&(g.indexOf("message")>=0||g.indexOf("description")>=0))return _(W);if(g.length===0){if(L(W)){var M=W.name?": "+W.name:"";return N.stylize("[Function"+M+"]","special")}if(J(W))return N.stylize(RegExp.prototype.toString.call(W),"regexp");if(re(W))return N.stylize(Date.prototype.toString.call(W),"date");if(ue(W))return _(W)}var F="",k=!1,O=["{","}"];if(E(W)&&(k=!0,O=["[","]"]),L(W)){var Q=W.name?": "+W.name:"";F=" [Function"+Q+"]"}if(J(W)&&(F=" "+RegExp.prototype.toString.call(W)),re(W)&&(F=" "+Date.prototype.toUTCString.call(W)),ue(W)&&(F=" "+_(W)),g.length===0&&(!k||W.length==0))return O[0]+F+O[1];if(z<0)return J(W)?N.stylize(RegExp.prototype.toString.call(W),"regexp"):N.stylize("[Object]","special");N.seen.push(W);var h;return k?h=p(N,W,z,m,g):h=g.map(function(X){return T(N,W,z,m,X,k)}),N.seen.pop(),v(h,F,O)}function x(N,W){if(H(W))return N.stylize("undefined","undefined");if(C(W)){var z="'"+JSON.stringify(W).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return N.stylize(z,"string")}if(D(W))return N.stylize(""+W,"number");if(d(W))return N.stylize(""+W,"boolean");if(S(W))return N.stylize("null","null")}function _(N){return"["+Error.prototype.toString.call(N)+"]"}function p(N,W,z,$,j){for(var g=[],m=0,M=W.length;m-1&&(g?M=M.split(` -`).map(function(k){return" "+k}).join(` -`).slice(2):M=` -`+M.split(` -`).map(function(k){return" "+k}).join(` -`))):M=N.stylize("[Circular]","special")),H(m)){if(g&&j.match(/^\d+$/))return M;m=JSON.stringify(""+j),m.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(m=m.slice(1,-1),m=N.stylize(m,"name")):(m=m.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),m=N.stylize(m,"string"))}return m+": "+M}function v(N,W,z){var $=N.reduce(function(j,g){return g.indexOf(` -`)>=0,j+g.replace(/\u001b\[\d\d?m/g,"").length+1},0);return $>60?z[0]+(W===""?"":W+` - `)+" "+N.join(`, - `)+" "+z[1]:z[0]+W+" "+N.join(", ")+" "+z[1]}t.types=Do();function E(N){return Array.isArray(N)}t.isArray=E;function d(N){return typeof N=="boolean"}t.isBoolean=d;function S(N){return N===null}t.isNull=S;function R(N){return N==null}t.isNullOrUndefined=R;function D(N){return typeof N=="number"}t.isNumber=D;function C(N){return typeof N=="string"}t.isString=C;function V(N){return typeof N=="symbol"}t.isSymbol=V;function H(N){return N===void 0}t.isUndefined=H;function J(N){return I(N)&&A(N)==="[object RegExp]"}t.isRegExp=J,t.types.isRegExp=J;function I(N){return typeof N=="object"&&N!==null}t.isObject=I;function re(N){return I(N)&&A(N)==="[object Date]"}t.isDate=re,t.types.isDate=re;function ue(N){return I(N)&&(A(N)==="[object Error]"||N instanceof Error)}t.isError=ue,t.types.isNativeError=ue;function L(N){return typeof N=="function"}t.isFunction=L;function q(N){return N===null||typeof N=="boolean"||typeof N=="number"||typeof N=="string"||typeof N=="symbol"||typeof N>"u"}t.isPrimitive=q,t.isBuffer=Po();function A(N){return Object.prototype.toString.call(N)}function Z(N){return N<10?"0"+N.toString(10):N.toString(10)}var le=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Y(){var N=new Date,W=[Z(N.getHours()),Z(N.getMinutes()),Z(N.getSeconds())].join(":");return[N.getDate(),le[N.getMonth()],W].join(" ")}t.log=function(){console.log("%s - %s",Y(),t.format.apply(t,arguments))},t.inherits=Ot,t._extend=function(N,W){if(!W||!I(W))return N;for(var z=Object.keys(W),$=z.length;$--;)N[z[$]]=W[z[$]];return N};function de(N,W){return Object.prototype.hasOwnProperty.call(N,W)}var K=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;t.promisify=function(W){if(typeof W!="function")throw new TypeError('The "original" argument must be of type Function');if(K&&W[K]){var z=W[K];if(typeof z!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(z,K,{value:z,enumerable:!1,writable:!1,configurable:!0}),z}function z(){for(var $,j,g=new Promise(function(F,k){$=F,j=k}),m=[],M=0;M0?this.tail.next=v:this.head=v,this.tail=v,++this.length}},{key:"unshift",value:function(T){var v={data:T,next:this.head};this.length===0&&(this.tail=v),this.head=v,++this.length}},{key:"shift",value:function(){if(this.length!==0){var T=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,T}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(T){if(this.length===0)return"";for(var v=this.head,E=""+v.data;v=v.next;)E+=T+v.data;return E}},{key:"concat",value:function(T){if(this.length===0)return i.alloc(0);for(var v=i.allocUnsafe(T>>>0),E=this.head,d=0;E;)x(E.data,v,d),d+=E.data.length,E=E.next;return v}},{key:"consume",value:function(T,v){var E;return TS.length?S.length:T;if(R===S.length?d+=S:d+=S.slice(0,T),T-=R,T===0){R===S.length?(++E,v.next?this.head=v.next:this.head=this.tail=null):(this.head=v,v.data=S.slice(R));break}++E}return this.length-=E,d}},{key:"_getBuffer",value:function(T){var v=i.allocUnsafe(T),E=this.head,d=1;for(E.data.copy(v),T-=E.data.length;E=E.next;){var S=E.data,R=T>S.length?S.length:T;if(S.copy(v,v.length-T,0,R),T-=R,T===0){R===S.length?(++d,E.next?this.head=E.next:this.head=this.tail=null):(this.head=E,E.data=S.slice(R));break}++d}return this.length-=d,v}},{key:y,value:function(T,v){return w(this,e({},v,{depth:0,customInspect:!1}))}}]),_}(),pn}var mn,qi;function Qs(){if(qi)return mn;qi=1;function t(o,i){var c=this,w=this._readableState&&this._readableState.destroyed,y=this._writableState&&this._writableState.destroyed;return w||y?(i?i(o):o&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,ve.nextTick(l,this,o)):ve.nextTick(l,this,o)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(o||null,function(x){!i&&x?c._writableState?c._writableState.errorEmitted?ve.nextTick(r,c):(c._writableState.errorEmitted=!0,ve.nextTick(e,c,x)):ve.nextTick(e,c,x):i?(ve.nextTick(r,c),i(x)):ve.nextTick(r,c)}),this)}function e(o,i){l(o,i),r(o)}function r(o){o._writableState&&!o._writableState.emitClose||o._readableState&&!o._readableState.emitClose||o.emit("close")}function a(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function l(o,i){o.emit("error",i)}function u(o,i){var c=o._readableState,w=o._writableState;c&&c.autoDestroy||w&&w.autoDestroy?o.destroy(i):o.emit("error",i)}return mn={destroy:t,undestroy:a,errorOrDestroy:u},mn}var gn={},Xi;function Yt(){if(Xi)return gn;Xi=1;function t(i,c){i.prototype=Object.create(c.prototype),i.prototype.constructor=i,i.__proto__=c}var e={};function r(i,c,w){w||(w=Error);function y(_,p,T){return typeof c=="string"?c:c(_,p,T)}var x=function(_){t(p,_);function p(T,v,E){return _.call(this,y(T,v,E))||this}return p}(w);x.prototype.name=w.name,x.prototype.code=i,e[i]=x}function a(i,c){if(Array.isArray(i)){var w=i.length;return i=i.map(function(y){return String(y)}),w>2?"one of ".concat(c," ").concat(i.slice(0,w-1).join(", "),", or ")+i[w-1]:w===2?"one of ".concat(c," ").concat(i[0]," or ").concat(i[1]):"of ".concat(c," ").concat(i[0])}else return"of ".concat(c," ").concat(String(i))}function l(i,c,w){return i.substr(!w||w<0?0:+w,c.length)===c}function u(i,c,w){return(w===void 0||w>i.length)&&(w=i.length),i.substring(w-c.length,w)===c}function o(i,c,w){return typeof w!="number"&&(w=0),w+c.length>i.length?!1:i.indexOf(c,w)!==-1}return r("ERR_INVALID_OPT_VALUE",function(i,c){return'The value "'+c+'" is invalid for option "'+i+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(i,c,w){var y;typeof c=="string"&&l(c,"not ")?(y="must not be",c=c.replace(/^not /,"")):y="must be";var x;if(u(i," argument"))x="The ".concat(i," ").concat(y," ").concat(a(c,"type"));else{var _=o(i,".")?"property":"argument";x='The "'.concat(i,'" ').concat(_," ").concat(y," ").concat(a(c,"type"))}return x+=". Received type ".concat(typeof w),x},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(i){return"The "+i+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(i){return"Cannot call "+i+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(i){return"Unknown encoding: "+i},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),gn.codes=e,gn}var wn,Yi;function Js(){if(Yi)return wn;Yi=1;var t=Yt().codes.ERR_INVALID_OPT_VALUE;function e(a,l,u){return a.highWaterMark!=null?a.highWaterMark:l?a[u]:null}function r(a,l,u,o){var i=e(l,o,u);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var c=o?u:"highWaterMark";throw new t(c,i)}return Math.floor(i)}return a.objectMode?16:16*1024}return wn={getHighWaterMark:r},wn}var yn,Zi;function Fo(){if(Zi)return yn;Zi=1,yn=t;function t(r,a){if(e("noDeprecation"))return r;var l=!1;function u(){if(!l){if(e("throwDeprecation"))throw new Error(a);e("traceDeprecation")?console.trace(a):console.warn(a),l=!0}return r.apply(this,arguments)}return u}function e(r){try{if(!ht.localStorage)return!1}catch{return!1}var a=ht.localStorage[r];return a==null?!1:String(a).toLowerCase()==="true"}return yn}var vn,Qi;function $s(){if(Qi)return vn;Qi=1,vn=J;function t(j){var g=this;this.next=null,this.entry=null,this.finish=function(){$(g,j)}}var e;J.WritableState=V;var r={deprecate:Fo()},a=Gs(),l=Or().Buffer,u=ht.Uint8Array||function(){};function o(j){return l.from(j)}function i(j){return l.isBuffer(j)||j instanceof u}var c=Qs(),w=Js(),y=w.getHighWaterMark,x=Yt().codes,_=x.ERR_INVALID_ARG_TYPE,p=x.ERR_METHOD_NOT_IMPLEMENTED,T=x.ERR_MULTIPLE_CALLBACK,v=x.ERR_STREAM_CANNOT_PIPE,E=x.ERR_STREAM_DESTROYED,d=x.ERR_STREAM_NULL_VALUES,S=x.ERR_STREAM_WRITE_AFTER_END,R=x.ERR_UNKNOWN_ENCODING,D=c.errorOrDestroy;Ot(J,a);function C(){}function V(j,g,m){e=e||Ht(),j=j||{},typeof m!="boolean"&&(m=g instanceof e),this.objectMode=!!j.objectMode,m&&(this.objectMode=this.objectMode||!!j.writableObjectMode),this.highWaterMark=y(this,j,"writableHighWaterMark",m),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var M=j.decodeStrings===!1;this.decodeStrings=!M,this.defaultEncoding=j.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(F){le(g,F)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=j.emitClose!==!1,this.autoDestroy=!!j.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new t(this)}V.prototype.getBuffer=function(){for(var g=this.bufferedRequest,m=[];g;)m.push(g),g=g.next;return m},function(){try{Object.defineProperty(V.prototype,"buffer",{get:r.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var H;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(H=Function.prototype[Symbol.hasInstance],Object.defineProperty(J,Symbol.hasInstance,{value:function(g){return H.call(this,g)?!0:this!==J?!1:g&&g._writableState instanceof V}})):H=function(g){return g instanceof this};function J(j){e=e||Ht();var g=this instanceof e;if(!g&&!H.call(J,this))return new J(j);this._writableState=new V(j,this,g),this.writable=!0,j&&(typeof j.write=="function"&&(this._write=j.write),typeof j.writev=="function"&&(this._writev=j.writev),typeof j.destroy=="function"&&(this._destroy=j.destroy),typeof j.final=="function"&&(this._final=j.final)),a.call(this)}J.prototype.pipe=function(){D(this,new v)};function I(j,g){var m=new S;D(j,m),ve.nextTick(g,m)}function re(j,g,m,M){var F;return m===null?F=new d:typeof m!="string"&&!g.objectMode&&(F=new _("chunk",["string","Buffer"],m)),F?(D(j,F),ve.nextTick(M,F),!1):!0}J.prototype.write=function(j,g,m){var M=this._writableState,F=!1,k=!M.objectMode&&i(j);return k&&!l.isBuffer(j)&&(j=o(j)),typeof g=="function"&&(m=g,g=null),k?g="buffer":g||(g=M.defaultEncoding),typeof m!="function"&&(m=C),M.ending?I(this,m):(k||re(this,M,j,m))&&(M.pendingcb++,F=L(this,M,k,j,g,m)),F},J.prototype.cork=function(){this._writableState.corked++},J.prototype.uncork=function(){var j=this._writableState;j.corked&&(j.corked--,!j.writing&&!j.corked&&!j.bufferProcessing&&j.bufferedRequest&&K(this,j))},J.prototype.setDefaultEncoding=function(g){if(typeof g=="string"&&(g=g.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((g+"").toLowerCase())>-1))throw new R(g);return this._writableState.defaultEncoding=g,this},Object.defineProperty(J.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function ue(j,g,m){return!j.objectMode&&j.decodeStrings!==!1&&typeof g=="string"&&(g=l.from(g,m)),g}Object.defineProperty(J.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function L(j,g,m,M,F,k){if(!m){var O=ue(g,M,F);M!==O&&(m=!0,F="buffer",M=O)}var Q=g.objectMode?1:M.length;g.length+=Q;var h=g.length>5===6?2:d>>4===14?3:d>>3===30?4:d>>6===2?-1:-2}function o(d,S,R){var D=S.length-1;if(D=0?(C>0&&(d.lastNeed=C-1),C):--D=0?(C>0&&(d.lastNeed=C-2),C):--D=0?(C>0&&(C===2?C=0:d.lastNeed=C-3),C):0))}function i(d,S,R){if((S[0]&192)!==128)return d.lastNeed=0,"�";if(d.lastNeed>1&&S.length>1){if((S[1]&192)!==128)return d.lastNeed=1,"�";if(d.lastNeed>2&&S.length>2&&(S[2]&192)!==128)return d.lastNeed=2,"�"}}function c(d){var S=this.lastTotal-this.lastNeed,R=i(this,d);if(R!==void 0)return R;if(this.lastNeed<=d.length)return d.copy(this.lastChar,S,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);d.copy(this.lastChar,S,0,d.length),this.lastNeed-=d.length}function w(d,S){var R=o(this,d,S);if(!this.lastNeed)return d.toString("utf8",S);this.lastTotal=R;var D=d.length-(R-this.lastNeed);return d.copy(this.lastChar,0,D),d.toString("utf8",S,D)}function y(d){var S=d&&d.length?this.write(d):"";return this.lastNeed?S+"�":S}function x(d,S){if((d.length-S)%2===0){var R=d.toString("utf16le",S);if(R){var D=R.charCodeAt(R.length-1);if(D>=55296&&D<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=d[d.length-2],this.lastChar[1]=d[d.length-1],R.slice(0,-1)}return R}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=d[d.length-1],d.toString("utf16le",S,d.length-1)}function _(d){var S=d&&d.length?this.write(d):"";if(this.lastNeed){var R=this.lastTotal-this.lastNeed;return S+this.lastChar.toString("utf16le",0,R)}return S}function p(d,S){var R=(d.length-S)%3;return R===0?d.toString("base64",S):(this.lastNeed=3-R,this.lastTotal=3,R===1?this.lastChar[0]=d[d.length-1]:(this.lastChar[0]=d[d.length-2],this.lastChar[1]=d[d.length-1]),d.toString("base64",S,d.length-R))}function T(d){var S=d&&d.length?this.write(d):"";return this.lastNeed?S+this.lastChar.toString("base64",0,3-this.lastNeed):S}function v(d){return d.toString(this.encoding)}function E(d){return d&&d.length?this.write(d):""}return _n}var En,ts;function Qn(){if(ts)return En;ts=1;var t=Yt().codes.ERR_STREAM_PREMATURE_CLOSE;function e(u){var o=!1;return function(){if(!o){o=!0;for(var i=arguments.length,c=new Array(i),w=0;w0)if(typeof O!="string"&&!b.objectMode&&Object.getPrototypeOf(O)!==a.prototype&&(O=u(O)),h)b.endEmitted?C(k,new d):ue(k,b,O,!0);else if(b.ended)C(k,new v);else{if(b.destroyed)return!1;b.reading=!1,b.decoder&&!Q?(O=b.decoder.write(O),b.objectMode||O.length!==0?ue(k,b,O,!1):K(k,b)):ue(k,b,O,!1)}else h||(b.reading=!1,K(k,b))}return!b.ended&&(b.length=q?k=q:(k--,k|=k>>>1,k|=k>>>2,k|=k>>>4,k|=k>>>8,k|=k>>>16,k++),k}function Z(k,O){return k<=0||O.length===0&&O.ended?0:O.objectMode?1:k!==k?O.flowing&&O.length?O.buffer.head.data.length:O.length:(k>O.highWaterMark&&(O.highWaterMark=A(k)),k<=O.length?k:O.ended?O.length:(O.needReadable=!0,0))}I.prototype.read=function(k){c("read",k),k=parseInt(k,10);var O=this._readableState,Q=k;if(k!==0&&(O.emittedReadable=!1),k===0&&O.needReadable&&((O.highWaterMark!==0?O.length>=O.highWaterMark:O.length>0)||O.ended))return c("read: emitReadable",O.length,O.ended),O.length===0&&O.ended?m(this):Y(this),null;if(k=Z(k,O),k===0&&O.ended)return O.length===0&&m(this),null;var h=O.needReadable;c("need readable",h),(O.length===0||O.length-k0?X=g(k,O):X=null,X===null?(O.needReadable=O.length<=O.highWaterMark,k=0):(O.length-=k,O.awaitDrain=0),O.length===0&&(O.ended||(O.needReadable=!0),Q!==k&&O.ended&&m(this)),X!==null&&this.emit("data",X),X};function le(k,O){if(c("onEofChunk"),!O.ended){if(O.decoder){var Q=O.decoder.end();Q&&Q.length&&(O.buffer.push(Q),O.length+=O.objectMode?1:Q.length)}O.ended=!0,O.sync?Y(k):(O.needReadable=!1,O.emittedReadable||(O.emittedReadable=!0,de(k)))}}function Y(k){var O=k._readableState;c("emitReadable",O.needReadable,O.emittedReadable),O.needReadable=!1,O.emittedReadable||(c("emitReadable",O.flowing),O.emittedReadable=!0,ve.nextTick(de,k))}function de(k){var O=k._readableState;c("emitReadable_",O.destroyed,O.length,O.ended),!O.destroyed&&(O.length||O.ended)&&(k.emit("readable"),O.emittedReadable=!1),O.needReadable=!O.flowing&&!O.ended&&O.length<=O.highWaterMark,j(k)}function K(k,O){O.readingMore||(O.readingMore=!0,ve.nextTick(ce,k,O))}function ce(k,O){for(;!O.reading&&!O.ended&&(O.length1&&F(h.pipes,k)!==-1)&&!P&&(c("false write response, pause",h.awaitDrain),h.awaitDrain++),Q.pause())}function te(pe){c("onerror",pe),fe(),k.removeListener("error",te),e(k,"error")===0&&C(k,pe)}H(k,"error",te);function ae(){k.removeListener("finish",ne),fe()}k.once("close",ae);function ne(){c("onfinish"),k.removeListener("close",ae),fe()}k.once("finish",ne);function fe(){c("unpipe"),Q.unpipe(k)}return k.emit("pipe",Q),h.flowing||(c("pipe resume"),Q.resume()),k};function G(k){return function(){var Q=k._readableState;c("pipeOnDrain",Q.awaitDrain),Q.awaitDrain&&Q.awaitDrain--,Q.awaitDrain===0&&e(k,"data")&&(Q.flowing=!0,j(k))}}I.prototype.unpipe=function(k){var O=this._readableState,Q={hasUnpiped:!1};if(O.pipesCount===0)return this;if(O.pipesCount===1)return k&&k!==O.pipes?this:(k||(k=O.pipes),O.pipes=null,O.pipesCount=0,O.flowing=!1,k&&k.emit("unpipe",this,Q),this);if(!k){var h=O.pipes,X=O.pipesCount;O.pipes=null,O.pipesCount=0,O.flowing=!1;for(var b=0;b0,h.flowing!==!1&&this.resume()):k==="readable"&&!h.endEmitted&&!h.readableListening&&(h.readableListening=h.needReadable=!0,h.flowing=!1,h.emittedReadable=!1,c("on readable",h.length,h.reading),h.length?Y(this):h.reading||ve.nextTick(W,this)),Q},I.prototype.addListener=I.prototype.on,I.prototype.removeListener=function(k,O){var Q=r.prototype.removeListener.call(this,k,O);return k==="readable"&&ve.nextTick(N,this),Q},I.prototype.removeAllListeners=function(k){var O=r.prototype.removeAllListeners.apply(this,arguments);return(k==="readable"||k===void 0)&&ve.nextTick(N,this),O};function N(k){var O=k._readableState;O.readableListening=k.listenerCount("readable")>0,O.resumeScheduled&&!O.paused?O.flowing=!0:k.listenerCount("data")>0&&k.resume()}function W(k){c("readable nexttick read 0"),k.read(0)}I.prototype.resume=function(){var k=this._readableState;return k.flowing||(c("resume"),k.flowing=!k.readableListening,z(this,k)),k.paused=!1,this};function z(k,O){O.resumeScheduled||(O.resumeScheduled=!0,ve.nextTick($,k,O))}function $(k,O){c("resume",O.reading),O.reading||k.read(0),O.resumeScheduled=!1,k.emit("resume"),j(k),O.flowing&&!O.reading&&k.read(0)}I.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function j(k){var O=k._readableState;for(c("flow",O.flowing);O.flowing&&k.read()!==null;);}I.prototype.wrap=function(k){var O=this,Q=this._readableState,h=!1;k.on("end",function(){if(c("wrapped end"),Q.decoder&&!Q.ended){var n=Q.decoder.end();n&&n.length&&O.push(n)}O.push(null)}),k.on("data",function(n){if(c("wrapped data"),Q.decoder&&(n=Q.decoder.write(n)),!(Q.objectMode&&n==null)&&!(!Q.objectMode&&(!n||!n.length))){var s=O.push(n);s||(h=!0,k.pause())}});for(var X in k)this[X]===void 0&&typeof k[X]=="function"&&(this[X]=function(s){return function(){return k[s].apply(k,arguments)}}(X));for(var b=0;b=O.length?(O.decoder?Q=O.buffer.join(""):O.buffer.length===1?Q=O.buffer.first():Q=O.buffer.concat(O.length),O.buffer.clear()):Q=O.buffer.consume(k,O.decoder),Q}function m(k){var O=k._readableState;c("endReadable",O.endEmitted),O.endEmitted||(O.ended=!0,ve.nextTick(M,O,k))}function M(k,O){if(c("endReadableNT",k.endEmitted,k.length),!k.endEmitted&&k.length===0&&(k.endEmitted=!0,O.readable=!1,O.emit("end"),k.autoDestroy)){var Q=O._writableState;(!Q||Q.autoDestroy&&Q.finished)&&O.destroy()}}typeof Symbol=="function"&&(I.from=function(k,O){return D===void 0&&(D=Uo()),D(I,k,O)});function F(k,O){for(var Q=0,h=k.length;Q0;return i(S,D,C,function(V){E||(E=V),V&&d.forEach(c),!D&&(d.forEach(c),v(E))})});return p.reduce(w)}return In=x,In}var Jn=rt,$n=qn.EventEmitter,zo=Ot;zo(rt,$n);rt.Readable=ea();rt.Writable=$s();rt.Duplex=Ht();rt.Transform=ta();rt.PassThrough=jo();rt.finished=Qn();rt.pipeline=Wo();rt.Stream=rt;function rt(){$n.call(this)}rt.prototype.pipe=function(t,e){var r=this;function a(y){t.writable&&t.write(y)===!1&&r.pause&&r.pause()}r.on("data",a);function l(){r.readable&&r.resume&&r.resume()}t.on("drain",l),!t._isStdio&&(!e||e.end!==!1)&&(r.on("end",o),r.on("close",i));var u=!1;function o(){u||(u=!0,t.end())}function i(){u||(u=!0,typeof t.destroy=="function"&&t.destroy())}function c(y){if(w(),$n.listenerCount(this,"error")===0)throw y}r.on("error",c),t.on("error",c);function w(){r.removeListener("data",a),t.removeListener("drain",l),r.removeListener("end",o),r.removeListener("close",i),r.removeListener("error",c),t.removeListener("error",c),r.removeListener("end",w),r.removeListener("close",w),t.removeListener("close",w)}return r.on("end",w),r.on("close",w),t.on("close",w),t.emit("pipe",r),t};(function(t){(function(e){e.parser=function(g,m){return new a(g,m)},e.SAXParser=a,e.SAXStream=y,e.createStream=w,e.MAX_BUFFER_LENGTH=64*1024;var r=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];e.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function a(g,m){if(!(this instanceof a))return new a(g,m);var M=this;u(M),M.q=M.c="",M.bufferCheckPosition=e.MAX_BUFFER_LENGTH,M.opt=m||{},M.opt.lowercase=M.opt.lowercase||M.opt.lowercasetags,M.looseCase=M.opt.lowercase?"toLowerCase":"toUpperCase",M.tags=[],M.closed=M.closedRoot=M.sawRoot=!1,M.tag=M.error=null,M.strict=!!g,M.noscript=!!(g||M.opt.noscript),M.state=I.BEGIN,M.strictEntities=M.opt.strictEntities,M.ENTITIES=M.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES),M.attribList=[],M.opt.xmlns&&(M.ns=Object.create(v)),M.trackPosition=M.opt.position!==!1,M.trackPosition&&(M.position=M.line=M.column=0),ue(M,"onready")}Object.create||(Object.create=function(g){function m(){}m.prototype=g;var M=new m;return M}),Object.keys||(Object.keys=function(g){var m=[];for(var M in g)g.hasOwnProperty(M)&&m.push(M);return m});function l(g){for(var m=Math.max(e.MAX_BUFFER_LENGTH,10),M=0,F=0,k=r.length;Fm)switch(r[F]){case"textNode":q(g);break;case"cdata":L(g,"oncdata",g.cdata),g.cdata="";break;case"script":L(g,"onscript",g.script),g.script="";break;default:Z(g,"Max buffer length exceeded: "+r[F])}M=Math.max(M,O)}var Q=e.MAX_BUFFER_LENGTH-M;g.bufferCheckPosition=Q+g.position}function u(g){for(var m=0,M=r.length;m"||D(g)}function H(g,m){return g.test(m)}function J(g,m){return!H(g,m)}var I=0;e.STATE={BEGIN:I++,BEGIN_WHITESPACE:I++,TEXT:I++,TEXT_ENTITY:I++,OPEN_WAKA:I++,SGML_DECL:I++,SGML_DECL_QUOTED:I++,DOCTYPE:I++,DOCTYPE_QUOTED:I++,DOCTYPE_DTD:I++,DOCTYPE_DTD_QUOTED:I++,COMMENT_STARTING:I++,COMMENT:I++,COMMENT_ENDING:I++,COMMENT_ENDED:I++,CDATA:I++,CDATA_ENDING:I++,CDATA_ENDING_2:I++,PROC_INST:I++,PROC_INST_BODY:I++,PROC_INST_ENDING:I++,OPEN_TAG:I++,OPEN_TAG_SLASH:I++,ATTRIB:I++,ATTRIB_NAME:I++,ATTRIB_NAME_SAW_WHITE:I++,ATTRIB_VALUE:I++,ATTRIB_VALUE_QUOTED:I++,ATTRIB_VALUE_CLOSED:I++,ATTRIB_VALUE_UNQUOTED:I++,ATTRIB_VALUE_ENTITY_Q:I++,ATTRIB_VALUE_ENTITY_U:I++,CLOSE_TAG:I++,CLOSE_TAG_SAW_WHITE:I++,SCRIPT:I++,SCRIPT_ENDING:I++},e.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},e.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(e.ENTITIES).forEach(function(g){var m=e.ENTITIES[g],M=typeof m=="number"?String.fromCharCode(m):m;e.ENTITIES[g]=M});for(var re in e.STATE)e.STATE[e.STATE[re]]=re;I=e.STATE;function ue(g,m,M){g[m]&&g[m](M)}function L(g,m,M){g.textNode&&q(g),ue(g,m,M)}function q(g){g.textNode=A(g.opt,g.textNode),g.textNode&&ue(g,"ontext",g.textNode),g.textNode=""}function A(g,m){return g.trim&&(m=m.trim()),g.normalize&&(m=m.replace(/\s+/g," ")),m}function Z(g,m){return q(g),g.trackPosition&&(m+=` -Line: `+g.line+` -Column: `+g.column+` -Char: `+g.c),m=new Error(m),g.error=m,ue(g,"onerror",m),g}function le(g){return g.sawRoot&&!g.closedRoot&&Y(g,"Unclosed root tag"),g.state!==I.BEGIN&&g.state!==I.BEGIN_WHITESPACE&&g.state!==I.TEXT&&Z(g,"Unexpected end"),q(g),g.c="",g.closed=!0,ue(g,"onend"),a.call(g,g.strict,g.opt),g}function Y(g,m){if(typeof g!="object"||!(g instanceof a))throw new Error("bad call to strictFail");g.strict&&Z(g,m)}function de(g){g.strict||(g.tagName=g.tagName[g.looseCase]());var m=g.tags[g.tags.length-1]||g,M=g.tag={name:g.tagName,attributes:{}};g.opt.xmlns&&(M.ns=m.ns),g.attribList.length=0,L(g,"onopentagstart",M)}function K(g,m){var M=g.indexOf(":"),F=M<0?["",g]:g.split(":"),k=F[0],O=F[1];return m&&g==="xmlns"&&(k="xmlns",O=""),{prefix:k,local:O}}function ce(g){if(g.strict||(g.attribName=g.attribName[g.looseCase]()),g.attribList.indexOf(g.attribName)!==-1||g.tag.attributes.hasOwnProperty(g.attribName)){g.attribName=g.attribValue="";return}if(g.opt.xmlns){var m=K(g.attribName,!0),M=m.prefix,F=m.local;if(M==="xmlns")if(F==="xml"&&g.attribValue!==p)Y(g,"xml: prefix must be bound to "+p+` -Actual: `+g.attribValue);else if(F==="xmlns"&&g.attribValue!==T)Y(g,"xmlns: prefix must be bound to "+T+` -Actual: `+g.attribValue);else{var k=g.tag,O=g.tags[g.tags.length-1]||g;k.ns===O.ns&&(k.ns=Object.create(O.ns)),k.ns[F]=g.attribValue}g.attribList.push([g.attribName,g.attribValue])}else g.tag.attributes[g.attribName]=g.attribValue,L(g,"onattribute",{name:g.attribName,value:g.attribValue});g.attribName=g.attribValue=""}function G(g,m){if(g.opt.xmlns){var M=g.tag,F=K(g.tagName);M.prefix=F.prefix,M.local=F.local,M.uri=M.ns[F.prefix]||"",M.prefix&&!M.uri&&(Y(g,"Unbound namespace prefix: "+JSON.stringify(g.tagName)),M.uri=F.prefix);var k=g.tags[g.tags.length-1]||g;M.ns&&k.ns!==M.ns&&Object.keys(M.ns).forEach(function(B){L(g,"onopennamespace",{prefix:B,uri:M.ns[B]})});for(var O=0,Q=g.attribList.length;O",g.tagName="",g.state=I.SCRIPT;return}L(g,"onscript",g.script),g.script=""}var m=g.tags.length,M=g.tagName;g.strict||(M=M[g.looseCase]());for(var F=M;m--;){var k=g.tags[m];if(k.name!==F)Y(g,"Unexpected close tag");else break}if(m<0){Y(g,"Unmatched closing tag: "+g.tagName),g.textNode+="",g.state=I.TEXT;return}g.tagName=M;for(var O=g.tags.length;O-- >m;){var Q=g.tag=g.tags.pop();g.tagName=g.tag.name,L(g,"onclosetag",g.tagName);var h={};for(var X in Q.ns)h[X]=Q.ns[X];var b=g.tags[g.tags.length-1]||g;g.opt.xmlns&&Q.ns!==b.ns&&Object.keys(Q.ns).forEach(function(n){var s=Q.ns[n];L(g,"onclosenamespace",{prefix:n,uri:s})})}m===0&&(g.closedRoot=!0),g.tagName=g.attribValue=g.attribName="",g.attribList.length=0,g.state=I.TEXT}function W(g){var m=g.entity,M=m.toLowerCase(),F,k="";return g.ENTITIES[m]?g.ENTITIES[m]:g.ENTITIES[M]?g.ENTITIES[M]:(m=M,m.charAt(0)==="#"&&(m.charAt(1)==="x"?(m=m.slice(2),F=parseInt(m,16),k=F.toString(16)):(m=m.slice(1),F=parseInt(m,10),k=F.toString(10))),m=m.replace(/^0+/,""),isNaN(F)||k.toLowerCase()!==m?(Y(g,"Invalid character entity"),"&"+g.entity+";"):String.fromCodePoint(F))}function z(g,m){m==="<"?(g.state=I.OPEN_WAKA,g.startTagPosition=g.position):D(m)||(Y(g,"Non-whitespace before first tag."),g.textNode=m,g.state=I.TEXT)}function $(g,m){var M="";return m"?(L(m,"onsgmldeclaration",m.sgmlDecl),m.sgmlDecl="",m.state=I.TEXT):(C(F)&&(m.state=I.SGML_DECL_QUOTED),m.sgmlDecl+=F);continue;case I.SGML_DECL_QUOTED:F===m.q&&(m.state=I.SGML_DECL,m.q=""),m.sgmlDecl+=F;continue;case I.DOCTYPE:F===">"?(m.state=I.TEXT,L(m,"ondoctype",m.doctype),m.doctype=!0):(m.doctype+=F,F==="["?m.state=I.DOCTYPE_DTD:C(F)&&(m.state=I.DOCTYPE_QUOTED,m.q=F));continue;case I.DOCTYPE_QUOTED:m.doctype+=F,F===m.q&&(m.q="",m.state=I.DOCTYPE);continue;case I.DOCTYPE_DTD:m.doctype+=F,F==="]"?m.state=I.DOCTYPE:C(F)&&(m.state=I.DOCTYPE_DTD_QUOTED,m.q=F);continue;case I.DOCTYPE_DTD_QUOTED:m.doctype+=F,F===m.q&&(m.state=I.DOCTYPE_DTD,m.q="");continue;case I.COMMENT:F==="-"?m.state=I.COMMENT_ENDING:m.comment+=F;continue;case I.COMMENT_ENDING:F==="-"?(m.state=I.COMMENT_ENDED,m.comment=A(m.opt,m.comment),m.comment&&L(m,"oncomment",m.comment),m.comment=""):(m.comment+="-"+F,m.state=I.COMMENT);continue;case I.COMMENT_ENDED:F!==">"?(Y(m,"Malformed comment"),m.comment+="--"+F,m.state=I.COMMENT):m.state=I.TEXT;continue;case I.CDATA:F==="]"?m.state=I.CDATA_ENDING:m.cdata+=F;continue;case I.CDATA_ENDING:F==="]"?m.state=I.CDATA_ENDING_2:(m.cdata+="]"+F,m.state=I.CDATA);continue;case I.CDATA_ENDING_2:F===">"?(m.cdata&&L(m,"oncdata",m.cdata),L(m,"onclosecdata"),m.cdata="",m.state=I.TEXT):F==="]"?m.cdata+="]":(m.cdata+="]]"+F,m.state=I.CDATA);continue;case I.PROC_INST:F==="?"?m.state=I.PROC_INST_ENDING:D(F)?m.state=I.PROC_INST_BODY:m.procInstName+=F;continue;case I.PROC_INST_BODY:if(!m.procInstBody&&D(F))continue;F==="?"?m.state=I.PROC_INST_ENDING:m.procInstBody+=F;continue;case I.PROC_INST_ENDING:F===">"?(L(m,"onprocessinginstruction",{name:m.procInstName,body:m.procInstBody}),m.procInstName=m.procInstBody="",m.state=I.TEXT):(m.procInstBody+="?"+F,m.state=I.PROC_INST_BODY);continue;case I.OPEN_TAG:H(d,F)?m.tagName+=F:(de(m),F===">"?G(m):F==="/"?m.state=I.OPEN_TAG_SLASH:(D(F)||Y(m,"Invalid character in tag name"),m.state=I.ATTRIB));continue;case I.OPEN_TAG_SLASH:F===">"?(G(m,!0),N(m)):(Y(m,"Forward-slash in opening tag not followed by >"),m.state=I.ATTRIB);continue;case I.ATTRIB:if(D(F))continue;F===">"?G(m):F==="/"?m.state=I.OPEN_TAG_SLASH:H(E,F)?(m.attribName=F,m.attribValue="",m.state=I.ATTRIB_NAME):Y(m,"Invalid attribute name");continue;case I.ATTRIB_NAME:F==="="?m.state=I.ATTRIB_VALUE:F===">"?(Y(m,"Attribute without value"),m.attribValue=m.attribName,ce(m),G(m)):D(F)?m.state=I.ATTRIB_NAME_SAW_WHITE:H(d,F)?m.attribName+=F:Y(m,"Invalid attribute name");continue;case I.ATTRIB_NAME_SAW_WHITE:if(F==="=")m.state=I.ATTRIB_VALUE;else{if(D(F))continue;Y(m,"Attribute without value"),m.tag.attributes[m.attribName]="",m.attribValue="",L(m,"onattribute",{name:m.attribName,value:""}),m.attribName="",F===">"?G(m):H(E,F)?(m.attribName=F,m.state=I.ATTRIB_NAME):(Y(m,"Invalid attribute name"),m.state=I.ATTRIB)}continue;case I.ATTRIB_VALUE:if(D(F))continue;C(F)?(m.q=F,m.state=I.ATTRIB_VALUE_QUOTED):(Y(m,"Unquoted attribute value"),m.state=I.ATTRIB_VALUE_UNQUOTED,m.attribValue=F);continue;case I.ATTRIB_VALUE_QUOTED:if(F!==m.q){F==="&"?m.state=I.ATTRIB_VALUE_ENTITY_Q:m.attribValue+=F;continue}ce(m),m.q="",m.state=I.ATTRIB_VALUE_CLOSED;continue;case I.ATTRIB_VALUE_CLOSED:D(F)?m.state=I.ATTRIB:F===">"?G(m):F==="/"?m.state=I.OPEN_TAG_SLASH:H(E,F)?(Y(m,"No whitespace between attributes"),m.attribName=F,m.attribValue="",m.state=I.ATTRIB_NAME):Y(m,"Invalid attribute name");continue;case I.ATTRIB_VALUE_UNQUOTED:if(!V(F)){F==="&"?m.state=I.ATTRIB_VALUE_ENTITY_U:m.attribValue+=F;continue}ce(m),F===">"?G(m):m.state=I.ATTRIB;continue;case I.CLOSE_TAG:if(m.tagName)F===">"?N(m):H(d,F)?m.tagName+=F:m.script?(m.script+=""?N(m):Y(m,"Invalid characters in closing tag");continue;case I.TEXT_ENTITY:case I.ATTRIB_VALUE_ENTITY_Q:case I.ATTRIB_VALUE_ENTITY_U:var Q,h;switch(m.state){case I.TEXT_ENTITY:Q=I.TEXT,h="textNode";break;case I.ATTRIB_VALUE_ENTITY_Q:Q=I.ATTRIB_VALUE_QUOTED,h="attribValue";break;case I.ATTRIB_VALUE_ENTITY_U:Q=I.ATTRIB_VALUE_UNQUOTED,h="attribValue";break}F===";"?(m[h]+=W(m),m.entity="",m.state=Q):H(m.entity.length?R:S,F)?m.entity+=F:(Y(m,"Invalid character in entity name"),m[h]+="&"+m.entity+F,m.entity="",m.state=Q);continue;default:throw new Error(m,"Unknown state: "+m.state)}return m.position>=m.bufferCheckPosition&&l(m),m}/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */String.fromCodePoint||function(){var g=String.fromCharCode,m=Math.floor,M=function(){var F=16384,k=[],O,Q,h=-1,X=arguments.length;if(!X)return"";for(var b="";++h1114111||m(n)!==n)throw RangeError("Invalid code point: "+n);n<=65535?k.push(n):(n-=65536,O=(n>>10)+55296,Q=n%1024+56320,k.push(O,Q)),(h+1===X||k.length>F)&&(b+=g.apply(null,k),k.length=0)}return b};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:M,configurable:!0,writable:!0}):String.fromCodePoint=M}()})(t)})(Os);var ei={isArray:function(t){return Array.isArray?Array.isArray(t):Object.prototype.toString.call(t)==="[object Array]"}},Ho=ei.isArray,ti={copyOptions:function(t){var e,r={};for(e in t)t.hasOwnProperty(e)&&(r[e]=t[e]);return r},ensureFlagExists:function(t,e){(!(t in e)||typeof e[t]!="boolean")&&(e[t]=!1)},ensureSpacesExists:function(t){(!("spaces"in t)||typeof t.spaces!="number"&&typeof t.spaces!="string")&&(t.spaces=0)},ensureAlwaysArrayExists:function(t){(!("alwaysArray"in t)||typeof t.alwaysArray!="boolean"&&!Ho(t.alwaysArray))&&(t.alwaysArray=!1)},ensureKeyExists:function(t,e){(!(t+"Key"in e)||typeof e[t+"Key"]!="string")&&(e[t+"Key"]=e.compact?"_"+t:t)},checkFnExists:function(t,e){return t+"Fn"in e}},Go=Os,Te=ti,jt=ei.isArray,ee,we;function Ko(t){return ee=Te.copyOptions(t),Te.ensureFlagExists("ignoreDeclaration",ee),Te.ensureFlagExists("ignoreInstruction",ee),Te.ensureFlagExists("ignoreAttributes",ee),Te.ensureFlagExists("ignoreText",ee),Te.ensureFlagExists("ignoreComment",ee),Te.ensureFlagExists("ignoreCdata",ee),Te.ensureFlagExists("ignoreDoctype",ee),Te.ensureFlagExists("compact",ee),Te.ensureFlagExists("alwaysChildren",ee),Te.ensureFlagExists("addParent",ee),Te.ensureFlagExists("trim",ee),Te.ensureFlagExists("nativeType",ee),Te.ensureFlagExists("nativeTypeAttributes",ee),Te.ensureFlagExists("sanitize",ee),Te.ensureFlagExists("instructionHasAttributes",ee),Te.ensureFlagExists("captureSpacesBetweenElements",ee),Te.ensureAlwaysArrayExists(ee),Te.ensureKeyExists("declaration",ee),Te.ensureKeyExists("instruction",ee),Te.ensureKeyExists("attributes",ee),Te.ensureKeyExists("text",ee),Te.ensureKeyExists("comment",ee),Te.ensureKeyExists("cdata",ee),Te.ensureKeyExists("doctype",ee),Te.ensureKeyExists("type",ee),Te.ensureKeyExists("name",ee),Te.ensureKeyExists("elements",ee),Te.ensureKeyExists("parent",ee),ee}function ra(t){var e=Number(t);if(!isNaN(e))return e;var r=t.toLowerCase();return r==="true"?!0:r==="false"?!1:t}function or(t,e){var r;if(ee.compact){if(!we[ee[t+"Key"]]&&(jt(ee.alwaysArray)?ee.alwaysArray.indexOf(ee[t+"Key"])!==-1:ee.alwaysArray)&&(we[ee[t+"Key"]]=[]),we[ee[t+"Key"]]&&!jt(we[ee[t+"Key"]])&&(we[ee[t+"Key"]]=[we[ee[t+"Key"]]]),t+"Fn"in ee&&typeof e=="string"&&(e=ee[t+"Fn"](e,we)),t==="instruction"&&("instructionFn"in ee||"instructionNameFn"in ee)){for(r in e)if(e.hasOwnProperty(r))if("instructionFn"in ee)e[r]=ee.instructionFn(e[r],r,we);else{var a=e[r];delete e[r],e[ee.instructionNameFn(r,a,we)]=a}}jt(we[ee[t+"Key"]])?we[ee[t+"Key"]].push(e):we[ee[t+"Key"]]=e}else{we[ee.elementsKey]||(we[ee.elementsKey]=[]);var l={};if(l[ee.typeKey]=t,t==="instruction"){for(r in e)if(e.hasOwnProperty(r))break;l[ee.nameKey]="instructionNameFn"in ee?ee.instructionNameFn(r,e,we):r,ee.instructionHasAttributes?(l[ee.attributesKey]=e[r][ee.attributesKey],"instructionFn"in ee&&(l[ee.attributesKey]=ee.instructionFn(l[ee.attributesKey],r,we))):("instructionFn"in ee&&(e[r]=ee.instructionFn(e[r],r,we)),l[ee.instructionKey]=e[r])}else t+"Fn"in ee&&(e=ee[t+"Fn"](e,we)),l[ee[t+"Key"]]=e;ee.addParent&&(l[ee.parentKey]=we),we[ee.elementsKey].push(l)}}function na(t){if("attributesFn"in ee&&t&&(t=ee.attributesFn(t,we)),(ee.trim||"attributeValueFn"in ee||"attributeNameFn"in ee||ee.nativeTypeAttributes)&&t){var e;for(e in t)if(t.hasOwnProperty(e)&&(ee.trim&&(t[e]=t[e].trim()),ee.nativeTypeAttributes&&(t[e]=ra(t[e])),"attributeValueFn"in ee&&(t[e]=ee.attributeValueFn(t[e],e,we)),"attributeNameFn"in ee)){var r=t[e];delete t[e],t[ee.attributeNameFn(e,t[e],we)]=r}}return t}function Vo(t){var e={};if(t.body&&(t.name.toLowerCase()==="xml"||ee.instructionHasAttributes)){for(var r=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g,a;(a=r.exec(t.body))!==null;)e[a[1]]=a[2]||a[3]||a[4];e=na(e)}if(t.name.toLowerCase()==="xml"){if(ee.ignoreDeclaration)return;we[ee.declarationKey]={},Object.keys(e).length&&(we[ee.declarationKey][ee.attributesKey]=e),ee.addParent&&(we[ee.declarationKey][ee.parentKey]=we)}else{if(ee.ignoreInstruction)return;ee.trim&&(t.body=t.body.trim());var l={};ee.instructionHasAttributes&&Object.keys(e).length?(l[t.name]={},l[t.name][ee.attributesKey]=e):l[t.name]=t.body,or("instruction",l)}}function qo(t,e){var r;if(typeof t=="object"&&(e=t.attributes,t=t.name),e=na(e),"elementNameFn"in ee&&(t=ee.elementNameFn(t,we)),ee.compact){if(r={},!ee.ignoreAttributes&&e&&Object.keys(e).length){r[ee.attributesKey]={};var a;for(a in e)e.hasOwnProperty(a)&&(r[ee.attributesKey][a]=e[a])}!(t in we)&&(jt(ee.alwaysArray)?ee.alwaysArray.indexOf(t)!==-1:ee.alwaysArray)&&(we[t]=[]),we[t]&&!jt(we[t])&&(we[t]=[we[t]]),jt(we[t])?we[t].push(r):we[t]=r}else we[ee.elementsKey]||(we[ee.elementsKey]=[]),r={},r[ee.typeKey]="element",r[ee.nameKey]=t,!ee.ignoreAttributes&&e&&Object.keys(e).length&&(r[ee.attributesKey]=e),ee.alwaysChildren&&(r[ee.elementsKey]=[]),we[ee.elementsKey].push(r);r[ee.parentKey]=we,we=r}function Xo(t){ee.ignoreText||!t.trim()&&!ee.captureSpacesBetweenElements||(ee.trim&&(t=t.trim()),ee.nativeType&&(t=ra(t)),ee.sanitize&&(t=t.replace(/&/g,"&").replace(//g,">")),or("text",t))}function Yo(t){ee.ignoreComment||(ee.trim&&(t=t.trim()),or("comment",t))}function Zo(t){var e=we[ee.parentKey];ee.addParent||delete we[ee.parentKey],we=e}function Qo(t){ee.ignoreCdata||(ee.trim&&(t=t.trim()),or("cdata",t))}function Jo(t){ee.ignoreDoctype||(t=t.replace(/^ /,""),ee.trim&&(t=t.trim()),or("doctype",t))}function $o(t){t.note=t}var ia=function(t,e){var r=Go.parser(!0,{}),a={};if(we=a,ee=Ko(e),r.opt={strictEntities:!0},r.onopentag=qo,r.ontext=Xo,r.oncomment=Yo,r.onclosetag=Zo,r.onerror=$o,r.oncdata=Qo,r.ondoctype=Jo,r.onprocessinginstruction=Vo,r.write(t).close(),a[ee.elementsKey]){var l=a[ee.elementsKey];delete a[ee.elementsKey],a[ee.elementsKey]=l,delete a.text}return a},us=ti,eu=ia;function tu(t){var e=us.copyOptions(t);return us.ensureSpacesExists(e),e}var ru=function(t,e){var r,a,l,u;return r=tu(e),a=eu(t,r),u="compact"in r&&r.compact?"_parent":"parent","addParent"in r&&r.addParent?l=JSON.stringify(a,function(o,i){return o===u?"_":i},r.spaces):l=JSON.stringify(a,null,r.spaces),l.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")},Re=ti,nu=ei.isArray,Ue,je;function iu(t){var e=Re.copyOptions(t);return Re.ensureFlagExists("ignoreDeclaration",e),Re.ensureFlagExists("ignoreInstruction",e),Re.ensureFlagExists("ignoreAttributes",e),Re.ensureFlagExists("ignoreText",e),Re.ensureFlagExists("ignoreComment",e),Re.ensureFlagExists("ignoreCdata",e),Re.ensureFlagExists("ignoreDoctype",e),Re.ensureFlagExists("compact",e),Re.ensureFlagExists("indentText",e),Re.ensureFlagExists("indentCdata",e),Re.ensureFlagExists("indentAttributes",e),Re.ensureFlagExists("indentInstruction",e),Re.ensureFlagExists("fullTagEmptyElement",e),Re.ensureFlagExists("noQuotesForNativeAttributes",e),Re.ensureSpacesExists(e),typeof e.spaces=="number"&&(e.spaces=Array(e.spaces+1).join(" ")),Re.ensureKeyExists("declaration",e),Re.ensureKeyExists("instruction",e),Re.ensureKeyExists("attributes",e),Re.ensureKeyExists("text",e),Re.ensureKeyExists("comment",e),Re.ensureKeyExists("cdata",e),Re.ensureKeyExists("doctype",e),Re.ensureKeyExists("type",e),Re.ensureKeyExists("name",e),Re.ensureKeyExists("elements",e),e}function ft(t,e,r){return(!r&&t.spaces?` -`:"")+Array(e+1).join(t.spaces)}function Cr(t,e,r){if(e.ignoreAttributes)return"";"attributesFn"in e&&(t=e.attributesFn(t,je,Ue));var a,l,u,o,i=[];for(a in t)t.hasOwnProperty(a)&&t[a]!==null&&t[a]!==void 0&&(o=e.noQuotesForNativeAttributes&&typeof t[a]!="string"?"":'"',l=""+t[a],l=l.replace(/"/g,"""),u="attributeNameFn"in e?e.attributeNameFn(a,l,je,Ue):a,i.push(e.spaces&&e.indentAttributes?ft(e,r+1,!1):" "),i.push(u+"="+o+("attributeValueFn"in e?e.attributeValueFn(l,a,je,Ue):l)+o));return t&&Object.keys(t).length&&e.spaces&&e.indentAttributes&&i.push(ft(e,r,!1)),i.join("")}function sa(t,e,r){return Ue=t,je="xml",e.ignoreDeclaration?"":""}function aa(t,e,r){if(e.ignoreInstruction)return"";var a;for(a in t)if(t.hasOwnProperty(a))break;var l="instructionNameFn"in e?e.instructionNameFn(a,t[a],je,Ue):a;if(typeof t[a]=="object")return Ue=t,je=l,"";var u=t[a]?t[a]:"";return"instructionFn"in e&&(u=e.instructionFn(u,a,je,Ue)),""}function oa(t,e){return e.ignoreComment?"":""}function ua(t,e){return e.ignoreCdata?"":"","]]]]>"))+"]]>"}function la(t,e){return e.ignoreDoctype?"":""}function ri(t,e){return e.ignoreText?"":(t=""+t,t=t.replace(/&/g,"&"),t=t.replace(/&/g,"&").replace(//g,">"),"textFn"in e?e.textFn(t,je,Ue):t)}function su(t,e){var r;if(t.elements&&t.elements.length)for(r=0;r"),t[e.elementsKey]&&t[e.elementsKey].length&&(a.push(ca(t[e.elementsKey],e,r+1)),Ue=t,je=t.name),a.push(e.spaces&&su(t,e)?` -`+Array(r+1).join(e.spaces):""),a.push("")):a.push("/>"),a.join("")}function ca(t,e,r,a){return t.reduce(function(l,u){var o=ft(e,r,a&&!l);switch(u.type){case"element":return l+o+au(u,e,r);case"comment":return l+o+oa(u[e.commentKey],e);case"doctype":return l+o+la(u[e.doctypeKey],e);case"cdata":return l+(e.indentCdata?o:"")+ua(u[e.cdataKey],e);case"text":return l+(e.indentText?o:"")+ri(u[e.textKey],e);case"instruction":var i={};return i[u[e.nameKey]]=u[e.attributesKey]?u:u[e.instructionKey],l+(e.indentInstruction?o:"")+aa(i,e,r)}},"")}function fa(t,e,r){var a;for(a in t)if(t.hasOwnProperty(a))switch(a){case e.parentKey:case e.attributesKey:break;case e.textKey:if(e.indentText||r)return!0;break;case e.cdataKey:if(e.indentCdata||r)return!0;break;case e.instructionKey:if(e.indentInstruction||r)return!0;break;case e.doctypeKey:case e.commentKey:return!0;default:return!0}return!1}function ou(t,e,r,a,l){Ue=t,je=e;var u="elementNameFn"in r?r.elementNameFn(e,t):e;if(typeof t>"u"||t===null||t==="")return"fullTagEmptyElementFn"in r&&r.fullTagEmptyElementFn(e,t)||r.fullTagEmptyElement?"<"+u+">":"<"+u+"/>";var o=[];if(e){if(o.push("<"+u),typeof t!="object")return o.push(">"+ri(t,r)+""),o.join("");t[r.attributesKey]&&o.push(Cr(t[r.attributesKey],r,a));var i=fa(t,r,!0)||t[r.attributesKey]&&t[r.attributesKey]["xml:space"]==="preserve";if(i||("fullTagEmptyElementFn"in r?i=r.fullTagEmptyElementFn(e,t):i=r.fullTagEmptyElement),i)o.push(">");else return o.push("/>"),o.join("")}return o.push(ha(t,r,a+1,!1)),Ue=t,je=e,e&&o.push((l?ft(r,a,!1):"")+""),o.join("")}function ha(t,e,r,a){var l,u,o,i=[];for(u in t)if(t.hasOwnProperty(u))for(o=nu(t[u])?t[u]:[t[u]],l=0;l{switch(t.type){case void 0:case"element":const e=new mu(t.name,t.attributes),r=t.elements||[];for(const a of r){const l=ni(a);l!==void 0&&e.push(l)}return e;case"text":return t.text;default:return}};class pu extends ge{}class mu extends se{static fromXmlString(e){const r=pa.xml2js(e,{compact:!1});return ni(r)}constructor(e,r){super(e),r&&this.root.push(new pu(r))}push(e){this.root.push(e)}}class gu extends se{constructor(e){super(""),this._attr=e}prepForXml(e){return{_attr:this._attr}}}class ma extends se{constructor(e,r){super(e),r&&(this.root=r.root)}}const Ge=t=>{if(isNaN(t))throw new Error(`Invalid value '${t}' specified. Must be an integer.`);return Math.floor(t)},Dr=t=>{const e=Ge(t);if(e<0)throw new Error(`Invalid value '${t}' specified. Must be a positive integer.`);return e},ga=(t,e)=>{const r=e*2;if(t.length!==r||isNaN(+`0x${t}`))throw new Error(`Invalid hex value '${t}'. Expected ${r} digit hex value`);return t},ls=t=>ga(t,1),wa=t=>{const e=t.slice(-2),r=t.substring(0,t.length-2);return`${Number(r)}${e}`},ya=t=>{const e=wa(t);if(parseFloat(e)<0)throw new Error(`Invalid value '${e}' specified. Expected a positive number.`);return e},Gt=t=>{if(t==="auto")return t;const e=t.charAt(0)==="#"?t.substring(1):t;return ga(e,3)},Nt=t=>typeof t=="string"?wa(t):Ge(t),wu=t=>typeof t=="string"?ya(t):Dr(t),at=t=>typeof t=="string"?ya(t):Dr(t),yu=Dr,vu=Dr,bu=t=>t.toISOString();class oe extends se{constructor(e,r=!0){super(e),r!==!0&&this.root.push(new Ce({val:r}))}}class kn extends se{constructor(e,r){super(e),this.root.push(new Ce({val:wu(r)}))}}class Wt extends se{constructor(e,r){super(e),this.root.push(new Ce({val:r}))}}const tr=(t,e)=>new vt({name:t,attributes:{value:{key:"w:val",value:e}}});class ii extends se{constructor(e,r){super(e),this.root.push(new Ce({val:r}))}}class At extends se{constructor(e,r){super(e),this.root.push(r)}}class vt extends se{constructor({name:e,attributes:r,children:a}){super(e),r&&this.root.push(new ar(r)),a&&this.root.push(...a)}}const ut={START:"start",CENTER:"center",END:"end",BOTH:"both",MEDIUM_KASHIDA:"mediumKashida",DISTRIBUTE:"distribute",NUM_TAB:"numTab",HIGH_KASHIDA:"highKashida",LOW_KASHIDA:"lowKashida",THAI_DISTRIBUTE:"thaiDistribute",LEFT:"left",RIGHT:"right",JUSTIFIED:"both"};class _u extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{val:"w:val"})}}class Eu extends se{constructor(e){super("w:jc"),this.root.push(new _u({val:e}))}}class ke extends se{constructor(e,{color:r,size:a,space:l,style:u}){super(e),this.root.push(new Tu({style:u,color:r===void 0?void 0:Gt(r),size:a===void 0?void 0:yu(a),space:l===void 0?void 0:vu(l)}))}}class Tu extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{style:"w:val",color:"w:color",size:"w:sz",space:"w:space"})}}const si={SINGLE:"single",DASH_DOT_STROKED:"dashDotStroked",DASHED:"dashed",DASH_SMALL_GAP:"dashSmallGap",DOT_DASH:"dotDash",DOT_DOT_DASH:"dotDotDash",DOTTED:"dotted",DOUBLE:"double",DOUBLE_WAVE:"doubleWave",INSET:"inset",NIL:"nil",NONE:"none",OUTSET:"outset",THICK:"thick",THICK_THIN_LARGE_GAP:"thickThinLargeGap",THICK_THIN_MEDIUM_GAP:"thickThinMediumGap",THICK_THIN_SMALL_GAP:"thickThinSmallGap",THIN_THICK_LARGE_GAP:"thinThickLargeGap",THIN_THICK_MEDIUM_GAP:"thinThickMediumGap",THIN_THICK_SMALL_GAP:"thinThickSmallGap",THIN_THICK_THIN_LARGE_GAP:"thinThickThinLargeGap",THIN_THICK_THIN_MEDIUM_GAP:"thinThickThinMediumGap",THIN_THICK_THIN_SMALL_GAP:"thinThickThinSmallGap",THREE_D_EMBOSS:"threeDEmboss",THREE_D_ENGRAVE:"threeDEngrave",TRIPLE:"triple",WAVE:"wave"};class xu extends kr{constructor(e){super("w:pBdr"),e.top&&this.root.push(new ke("w:top",e.top)),e.bottom&&this.root.push(new ke("w:bottom",e.bottom)),e.left&&this.root.push(new ke("w:left",e.left)),e.right&&this.root.push(new ke("w:right",e.right))}}class Su extends se{constructor(){super("w:pBdr");const e=new ke("w:bottom",{color:"auto",space:1,style:si.SINGLE,size:6});this.root.push(e)}}class Au extends se{constructor({start:e,end:r,left:a,right:l,hanging:u,firstLine:o}){super("w:ind"),this.root.push(new ar({start:{key:"w:start",value:e===void 0?void 0:Nt(e)},end:{key:"w:end",value:r===void 0?void 0:Nt(r)},left:{key:"w:left",value:a===void 0?void 0:Nt(a)},right:{key:"w:right",value:l===void 0?void 0:Nt(l)},hanging:{key:"w:hanging",value:u===void 0?void 0:at(u)},firstLine:{key:"w:firstLine",value:o===void 0?void 0:at(o)}}))}}let Ru=class extends se{constructor(){super("w:br")}};const ai={BEGIN:"begin",END:"end",SEPARATE:"separate"};class oi extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{type:"w:fldCharType",dirty:"w:dirty"})}}class hr extends se{constructor(e){super("w:fldChar"),this.root.push(new oi({type:ai.BEGIN,dirty:e}))}}class dr extends se{constructor(e){super("w:fldChar"),this.root.push(new oi({type:ai.SEPARATE,dirty:e}))}}class pr extends se{constructor(e){super("w:fldChar"),this.root.push(new oi({type:ai.END,dirty:e}))}}const Kt={DEFAULT:"default",PRESERVE:"preserve"};class Vt extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{space:"xml:space"})}}class Iu extends se{constructor(){super("w:instrText"),this.root.push(new Vt({space:Kt.PRESERVE})),this.root.push("PAGE")}}class ku extends se{constructor(){super("w:instrText"),this.root.push(new Vt({space:Kt.PRESERVE})),this.root.push("NUMPAGES")}}class Nu extends se{constructor(){super("w:instrText"),this.root.push(new Vt({space:Kt.PRESERVE})),this.root.push("SECTIONPAGES")}}class Ou extends se{constructor(){super("w:instrText"),this.root.push(new Vt({space:Kt.PRESERVE})),this.root.push("SECTION")}}class Cu extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{fill:"w:fill",color:"w:color",type:"w:val"})}}class va extends se{constructor({fill:e,color:r,type:a}){super("w:shd"),this.root.push(new Cu({fill:e===void 0?void 0:Gt(e),color:r===void 0?void 0:Gt(r),type:a}))}}class Du extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{id:"w:id",author:"w:author",date:"w:date"})}}const Pu={DOT:"dot"};class Lu extends se{constructor(e){super("w:em"),this.root.push(new Ce({val:e}))}}class Fu extends Lu{constructor(e=Pu.DOT){super(e)}}class Bu extends se{constructor(e){super("w:spacing"),this.root.push(new Ce({val:Nt(e)}))}}class Mu extends se{constructor(e){super("w:color"),this.root.push(new Ce({val:Gt(e)}))}}class Uu extends se{constructor(e){super("w:highlight"),this.root.push(new Ce({val:e}))}}class ju extends se{constructor(e){super("w:highlightCs"),this.root.push(new Ce({val:e}))}}const Wu=t=>new vt({name:"w:lang",attributes:{value:{key:"w:val",value:t.value},eastAsia:{key:"w:eastAsia",value:t.eastAsia},bidirectional:{key:"w:bidi",value:t.bidirectional}}});class cs extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{ascii:"w:ascii",cs:"w:cs",eastAsia:"w:eastAsia",hAnsi:"w:hAnsi",hint:"w:hint"})}}class Nn extends se{constructor(e,r){if(super("w:rFonts"),typeof e=="string"){const a=e;this.root.push(new cs({ascii:a,cs:a,eastAsia:a,hAnsi:a,hint:r}))}else{const a=e;this.root.push(new cs(a))}}}let ba=class extends se{constructor(e){super("w:vertAlign"),this.root.push(new Ce({val:e}))}};class zu extends ba{constructor(){super("superscript")}}class Hu extends ba{constructor(){super("subscript")}}const _a={SINGLE:"single",WORDS:"words",DOUBLE:"double",THICK:"thick",DOTTED:"dotted",DOTTEDHEAVY:"dottedHeavy",DASH:"dash",DASHEDHEAVY:"dashedHeavy",DASHLONG:"dashLong",DASHLONGHEAVY:"dashLongHeavy",DOTDASH:"dotDash",DASHDOTHEAVY:"dashDotHeavy",DOTDOTDASH:"dotDotDash",DASHDOTDOTHEAVY:"dashDotDotHeavy",WAVE:"wave",WAVYHEAVY:"wavyHeavy",WAVYDOUBLE:"wavyDouble",NONE:"none"};class Gu extends se{constructor(e=_a.SINGLE,r){super("w:u"),this.root.push(new Ce({val:e,color:r===void 0?void 0:Gt(r)}))}}class Ct extends kr{constructor(e){var r,a;if(super("w:rPr"),!e)return;e.noProof!==void 0&&this.push(new oe("w:noProof",e.noProof)),e.bold!==void 0&&this.push(new oe("w:b",e.bold)),(e.boldComplexScript===void 0&&e.bold!==void 0||e.boldComplexScript)&&this.push(new oe("w:bCs",(r=e.boldComplexScript)!=null?r:e.bold)),e.italics!==void 0&&this.push(new oe("w:i",e.italics)),(e.italicsComplexScript===void 0&&e.italics!==void 0||e.italicsComplexScript)&&this.push(new oe("w:iCs",(a=e.italicsComplexScript)!=null?a:e.italics)),e.underline&&this.push(new Gu(e.underline.type,e.underline.color)),e.effect&&this.push(new Wt("w:effect",e.effect)),e.emphasisMark&&this.push(new Fu(e.emphasisMark.type)),e.color&&this.push(new Mu(e.color)),e.kern&&this.push(new kn("w:kern",e.kern)),e.position&&this.push(new Wt("w:position",e.position)),e.size!==void 0&&this.push(new kn("w:sz",e.size));const l=e.sizeComplexScript===void 0||e.sizeComplexScript===!0?e.size:e.sizeComplexScript;l&&this.push(new kn("w:szCs",l)),e.rightToLeft!==void 0&&this.push(new oe("w:rtl",e.rightToLeft)),e.smallCaps!==void 0?this.push(new oe("w:smallCaps",e.smallCaps)):e.allCaps!==void 0&&this.push(new oe("w:caps",e.allCaps)),e.strike!==void 0&&this.push(new oe("w:strike",e.strike)),e.doubleStrike!==void 0&&this.push(new oe("w:dstrike",e.doubleStrike)),e.subScript&&this.push(new Hu),e.superScript&&this.push(new zu),e.style&&this.push(new Wt("w:rStyle",e.style)),e.font&&(typeof e.font=="string"?this.push(new Nn(e.font)):"name"in e.font?this.push(new Nn(e.font.name,e.font.hint)):this.push(new Nn(e.font))),e.highlight&&this.push(new Uu(e.highlight));const u=e.highlightComplexScript===void 0||e.highlightComplexScript===!0?e.highlight:e.highlightComplexScript;u&&this.push(new ju(u)),e.characterSpacing&&this.push(new Bu(e.characterSpacing)),e.emboss!==void 0&&this.push(new oe("w:emboss",e.emboss)),e.imprint!==void 0&&this.push(new oe("w:imprint",e.imprint)),e.shading&&this.push(new va(e.shading)),e.revision&&this.push(new Ku(e.revision)),e.border&&this.push(new ke("w:bdr",e.border)),e.snapToGrid!==void 0&&this.push(new oe("w:snapToGrid",e.snapToGrid)),e.vanish&&this.push(new oe("w:vanish",e.vanish)),e.specVanish&&this.push(new oe("w:specVanish",e.vanish)),e.scale!==void 0&&this.push(new ii("w:w",e.scale)),e.language&&this.push(Wu(e.language)),e.math&&this.push(new oe("w:oMath",e.math))}push(e){this.root.push(e)}}class Ku extends se{constructor(e){super("w:rPrChange"),this.root.push(new Du({id:e.id,author:e.author,date:e.date})),this.addChildElement(new Ct(e))}}class Un extends se{constructor(e){var r;return super("w:t"),typeof e=="string"?(this.root.push(new Vt({space:Kt.PRESERVE})),this.root.push(e),this):(this.root.push(new Vt({space:(r=e.space)!=null?r:Kt.DEFAULT})),this.root.push(e.text),this)}}const mr={CURRENT:"CURRENT",TOTAL_PAGES:"TOTAL_PAGES",TOTAL_PAGES_IN_SECTION:"TOTAL_PAGES_IN_SECTION",CURRENT_SECTION:"SECTION"};class Pr extends se{constructor(e){if(super("w:r"),ie(this,"properties"),this.properties=new Ct(e),this.root.push(this.properties),e.break)for(let r=0;r(r=e)=>{let a="",l=r;for(;l--;)a+=t[Math.random()*t.length|0];return a},Xu=(t=21)=>{let e="",r=t;for(;r--;)e+=Vu[Math.random()*64|0];return e};const st=t=>Math.floor(t*72*20),ui=(t=0)=>{let e=t;return()=>++e},Yu=()=>ui(),Zu=()=>ui(1),Qu=()=>ui(),Ju=()=>Xu().toLowerCase(),rr=t=>qu("1234567890abcdef",t)(),$u=()=>`${rr(8)}-${rr(4)}-${rr(4)}-${rr(4)}-${rr(12)}`;class el extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{id:"w:id",initials:"w:initials",author:"w:author",date:"w:date"})}}class tl extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{"xmlns:cx":"xmlns:cx","xmlns:cx1":"xmlns:cx1","xmlns:cx2":"xmlns:cx2","xmlns:cx3":"xmlns:cx3","xmlns:cx4":"xmlns:cx4","xmlns:cx5":"xmlns:cx5","xmlns:cx6":"xmlns:cx6","xmlns:cx7":"xmlns:cx7","xmlns:cx8":"xmlns:cx8","xmlns:mc":"xmlns:mc","xmlns:aink":"xmlns:aink","xmlns:am3d":"xmlns:am3d","xmlns:o":"xmlns:o","xmlns:r":"xmlns:r","xmlns:m":"xmlns:m","xmlns:v":"xmlns:v","xmlns:wp14":"xmlns:wp14","xmlns:wp":"xmlns:wp","xmlns:w10":"xmlns:w10","xmlns:w":"xmlns:w","xmlns:w14":"xmlns:w14","xmlns:w15":"xmlns:w15","xmlns:w16cex":"xmlns:w16cex","xmlns:w16cid":"xmlns:w16cid","xmlns:w16":"xmlns:w16","xmlns:w16sdtdh":"xmlns:w16sdtdh","xmlns:w16se":"xmlns:w16se","xmlns:wpg":"xmlns:wpg","xmlns:wpi":"xmlns:wpi","xmlns:wne":"xmlns:wne","xmlns:wps":"xmlns:wps"})}}class rl extends se{constructor({id:e,initials:r,author:a,date:l=new Date,children:u}){super("w:comment"),this.root.push(new el({id:e,initials:r,author:a,date:l.toISOString()}));for(const o of u)this.root.push(o)}}class nl extends se{constructor({children:e}){super("w:comments"),this.root.push(new tl({"xmlns:cx":"http://schemas.microsoft.com/office/drawing/2014/chartex","xmlns:cx1":"http://schemas.microsoft.com/office/drawing/2015/9/8/chartex","xmlns:cx2":"http://schemas.microsoft.com/office/drawing/2015/10/21/chartex","xmlns:cx3":"http://schemas.microsoft.com/office/drawing/2016/5/9/chartex","xmlns:cx4":"http://schemas.microsoft.com/office/drawing/2016/5/10/chartex","xmlns:cx5":"http://schemas.microsoft.com/office/drawing/2016/5/11/chartex","xmlns:cx6":"http://schemas.microsoft.com/office/drawing/2016/5/12/chartex","xmlns:cx7":"http://schemas.microsoft.com/office/drawing/2016/5/13/chartex","xmlns:cx8":"http://schemas.microsoft.com/office/drawing/2016/5/14/chartex","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","xmlns:aink":"http://schemas.microsoft.com/office/drawing/2016/ink","xmlns:am3d":"http://schemas.microsoft.com/office/drawing/2017/model3d","xmlns:o":"urn:schemas-microsoft-com:office:office","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:m":"http://schemas.openxmlformats.org/officeDocument/2006/math","xmlns:v":"urn:schemas-microsoft-com:vml","xmlns:wp14":"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing","xmlns:wp":"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing","xmlns:w10":"urn:schemas-microsoft-com:office:word","xmlns:w":"http://schemas.openxmlformats.org/wordprocessingml/2006/main","xmlns:w14":"http://schemas.microsoft.com/office/word/2010/wordml","xmlns:w15":"http://schemas.microsoft.com/office/word/2012/wordml","xmlns:w16cex":"http://schemas.microsoft.com/office/word/2018/wordml/cex","xmlns:w16cid":"http://schemas.microsoft.com/office/word/2016/wordml/cid","xmlns:w16":"http://schemas.microsoft.com/office/word/2018/wordml","xmlns:w16sdtdh":"http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash","xmlns:w16se":"http://schemas.microsoft.com/office/word/2015/wordml/symex","xmlns:wpg":"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup","xmlns:wpi":"http://schemas.microsoft.com/office/word/2010/wordprocessingInk","xmlns:wne":"http://schemas.microsoft.com/office/word/2006/wordml","xmlns:wps":"http://schemas.microsoft.com/office/word/2010/wordprocessingShape"}));for(const r of e)this.root.push(new rl(r))}}class il extends se{constructor(){super("w:pageBreakBefore")}}const jn={AT_LEAST:"atLeast",EXACTLY:"exactly",EXACT:"exact",AUTO:"auto"};class sl extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{after:"w:after",before:"w:before",line:"w:line",lineRule:"w:lineRule"})}}class al extends se{constructor(e){super("w:spacing"),this.root.push(new sl(e))}}const lh={HEADING_1:"Heading1",HEADING_2:"Heading2",HEADING_3:"Heading3",HEADING_4:"Heading4",HEADING_5:"Heading5",HEADING_6:"Heading6",TITLE:"Title"};let gr=class extends se{constructor(e){super("w:pStyle"),this.root.push(new Ce({val:e}))}};class ol extends se{constructor(e){super("w:tabs");for(const r of e)this.root.push(new ll(r))}}const hs={LEFT:"left",RIGHT:"right",CENTER:"center",BAR:"bar",CLEAR:"clear",DECIMAL:"decimal",END:"end",NUM:"num",START:"start"};class ul extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{val:"w:val",pos:"w:pos",leader:"w:leader"})}}class ll extends se{constructor({type:e,position:r,leader:a}){super("w:tab"),this.root.push(new ul({val:e,pos:r,leader:a}))}}class ds extends se{constructor(e,r){super("w:numPr"),this.root.push(new cl(r)),this.root.push(new fl(e))}}class cl extends se{constructor(e){if(super("w:ilvl"),e>9)throw new Error("Level cannot be greater than 9. Read more here: https://answers.microsoft.com/en-us/msoffice/forum/all/does-word-support-more-than-9-list-levels/d130fdcd-1781-446d-8c84-c6c79124e4d7");this.root.push(new Ce({val:e}))}}class fl extends se{constructor(e){super("w:numId"),this.root.push(new Ce({val:typeof e=="string"?`{${e}}`:e}))}}class hl extends se{constructor(){super(...arguments),ie(this,"fileChild",Symbol())}}class dl extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{id:"Id",type:"Type",target:"Target",targetMode:"TargetMode"})}}const pl={EXTERNAL:"External"};class ml extends se{constructor(e,r,a,l){super("Relationship"),this.root.push(new dl({id:e,type:r,target:a,targetMode:l}))}}class gl extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{id:"r:id",history:"w:history",anchor:"w:anchor"})}}class wl extends se{constructor(e,r,a){super("w:hyperlink"),ie(this,"linkId"),this.linkId=r;const l={history:1,anchor:a||void 0,id:a?void 0:`rId${this.linkId}`},u=new gl(l);this.root.push(u),e.forEach(o=>{this.root.push(o)})}}class yl extends se{constructor(e){super("w:externalHyperlink"),this.options=e}}class vl extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{id:"w:id",name:"w:name"})}}class bl extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{id:"w:id"})}}class _l{constructor(e){ie(this,"bookmarkUniqueNumericId",Qu()),ie(this,"start"),ie(this,"children"),ie(this,"end");const r=this.bookmarkUniqueNumericId();this.start=new El(e.id,r),this.children=e.children,this.end=new Tl(r)}}class El extends se{constructor(e,r){super("w:bookmarkStart");const a=new vl({name:e,id:r});this.root.push(a)}}class Tl extends se{constructor(e){super("w:bookmarkEnd");const r=new bl({id:e});this.root.push(r)}}class xl extends se{constructor(e){super("w:outlineLvl"),this.level=e,this.root.push(new Ce({val:e}))}}class Sl extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{verticalAlign:"w:val"})}}class Al extends se{constructor(e){super("w:vAlign"),this.root.push(new Sl({verticalAlign:e}))}}const zt={DEFAULT:"default",FIRST:"first",EVEN:"even"};class Rl extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{type:"w:type",id:"r:id"})}}const ps={HEADER:"w:headerReference",FOOTER:"w:footerReference"};class On extends se{constructor(e,r){super(e),this.root.push(new Rl({type:r.type||zt.DEFAULT,id:`rId${r.id}`}))}}class Il extends se{constructor({space:e,count:r,separate:a,equalWidth:l,children:u}){super("w:cols"),this.root.push(new ar({space:{key:"w:space",value:e===void 0?void 0:at(e)},count:{key:"w:num",value:r===void 0?void 0:Ge(r)},separate:{key:"w:sep",value:a},equalWidth:{key:"w:equalWidth",value:l}})),!l&&u&&u.forEach(o=>this.addChildElement(o))}}class kl extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{type:"w:type",linePitch:"w:linePitch",charSpace:"w:charSpace"})}}class Nl extends se{constructor(e,r,a){super("w:docGrid"),this.root.push(new kl({type:a,linePitch:Ge(e),charSpace:r?Ge(r):void 0}))}}const Ol=({countBy:t,start:e,restart:r,distance:a})=>new vt({name:"w:lnNumType",attributes:{countBy:{key:"w:countBy",value:t===void 0?void 0:Ge(t)},start:{key:"w:start",value:e===void 0?void 0:Ge(e)},restart:{key:"w:restart",value:r},distance:{key:"w:distance",value:a===void 0?void 0:at(a)}}});class ms extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{display:"w:display",offsetFrom:"w:offsetFrom",zOrder:"w:zOrder"})}}class Cl extends kr{constructor(e){if(super("w:pgBorders"),!e)return this;e.pageBorders?this.root.push(new ms({display:e.pageBorders.display,offsetFrom:e.pageBorders.offsetFrom,zOrder:e.pageBorders.zOrder})):this.root.push(new ms({})),e.pageBorderTop&&this.root.push(new ke("w:top",e.pageBorderTop)),e.pageBorderLeft&&this.root.push(new ke("w:left",e.pageBorderLeft)),e.pageBorderBottom&&this.root.push(new ke("w:bottom",e.pageBorderBottom)),e.pageBorderRight&&this.root.push(new ke("w:right",e.pageBorderRight))}}class Dl extends se{constructor(e,r,a,l,u,o,i){super("w:pgMar"),this.root.push(new ar({top:{key:"w:top",value:Nt(e)},right:{key:"w:right",value:at(r)},bottom:{key:"w:bottom",value:Nt(a)},left:{key:"w:left",value:at(l)},header:{key:"w:header",value:at(u)},footer:{key:"w:footer",value:at(o)},gutter:{key:"w:gutter",value:at(i)}}))}}class Pl extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{start:"w:start",formatType:"w:fmt",separator:"w:chapSep"})}}class Ll extends se{constructor({start:e,formatType:r,separator:a}){super("w:pgNumType"),this.root.push(new Pl({start:e===void 0?void 0:Ge(e),formatType:r,separator:a}))}}const Ea={PORTRAIT:"portrait",LANDSCAPE:"landscape"};class Fl extends se{constructor(e,r,a){super("w:pgSz");const l=a===Ea.LANDSCAPE,u=at(e),o=at(r);this.root.push(new ar({width:{key:"w:w",value:l?o:u},height:{key:"w:h",value:l?u:o},orientation:{key:"w:orient",value:a}}))}}class Bl extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{val:"w:val"})}}class Ml extends se{constructor(e){super("w:textDirection"),this.root.push(new Bl({val:e}))}}class Ul extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{val:"w:val"})}}class jl extends se{constructor(e){super("w:type"),this.root.push(new Ul({val:e}))}}const Rt={TOP:1440,RIGHT:1440,BOTTOM:1440,LEFT:1440,HEADER:708,FOOTER:708,GUTTER:0},Cn={WIDTH:11906,HEIGHT:16838,ORIENTATION:Ea.PORTRAIT};class Wl extends se{constructor({page:{size:{width:e=Cn.WIDTH,height:r=Cn.HEIGHT,orientation:a=Cn.ORIENTATION}={},margin:{top:l=Rt.TOP,right:u=Rt.RIGHT,bottom:o=Rt.BOTTOM,left:i=Rt.LEFT,header:c=Rt.HEADER,footer:w=Rt.FOOTER,gutter:y=Rt.GUTTER}={},pageNumbers:x={},borders:_,textDirection:p}={},grid:{linePitch:T=360,charSpace:v,type:E}={},headerWrapperGroup:d={},footerWrapperGroup:S={},lineNumbers:R,titlePage:D,verticalAlign:C,column:V,type:H}={}){super("w:sectPr"),this.addHeaderFooterGroup(ps.HEADER,d),this.addHeaderFooterGroup(ps.FOOTER,S),H&&this.root.push(new jl(H)),this.root.push(new Fl(e,r,a)),this.root.push(new Dl(l,u,o,i,c,w,y)),_&&this.root.push(new Cl(_)),R&&this.root.push(Ol(R)),this.root.push(new Ll(x)),V&&this.root.push(new Il(V)),C&&this.root.push(new Al(C)),D!==void 0&&this.root.push(new oe("w:titlePg",D)),p&&this.root.push(new Ml(p)),this.root.push(new Nl(T,v,E))}addHeaderFooterGroup(e,r){r.default&&this.root.push(new On(e,{type:zt.DEFAULT,id:r.default.View.ReferenceId})),r.first&&this.root.push(new On(e,{type:zt.FIRST,id:r.first.View.ReferenceId})),r.even&&this.root.push(new On(e,{type:zt.EVEN,id:r.even.View.ReferenceId}))}}class zl extends se{constructor(){super("w:body"),ie(this,"sections",[])}addSection(e){const r=this.sections.pop();this.root.push(this.createSectionParagraph(r)),this.sections.push(new Wl(e))}prepForXml(e){return this.sections.length===1&&(this.root.splice(0,1),this.root.push(this.sections.pop())),super.prepForXml(e)}push(e){this.root.push(e)}createSectionParagraph(e){const r=new Wn({}),a=new qt({});return a.push(e),r.addChildElement(a),r}}class ur extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",Ignorable:"mc:Ignorable",cp:"xmlns:cp",dc:"xmlns:dc",dcterms:"xmlns:dcterms",dcmitype:"xmlns:dcmitype",xsi:"xmlns:xsi",type:"xsi:type",cx:"xmlns:cx",cx1:"xmlns:cx1",cx2:"xmlns:cx2",cx3:"xmlns:cx3",cx4:"xmlns:cx4",cx5:"xmlns:cx5",cx6:"xmlns:cx6",cx7:"xmlns:cx7",cx8:"xmlns:cx8",aink:"xmlns:aink",am3d:"xmlns:am3d",w16cex:"xmlns:w16cex",w16cid:"xmlns:w16cid",w16:"xmlns:w16",w16sdtdh:"xmlns:w16sdtdh",w16se:"xmlns:w16se"})}}class Hl extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{color:"w:color",themeColor:"w:themeColor",themeShade:"w:themeShade",themeTint:"w:themeTint"})}}class Gl extends se{constructor(e){super("w:background"),this.root.push(new Hl({color:e.color===void 0?void 0:Gt(e.color),themeColor:e.themeColor,themeShade:e.themeShade===void 0?void 0:ls(e.themeShade),themeTint:e.themeTint===void 0?void 0:ls(e.themeTint)}))}}class Kl extends se{constructor(e){super("w:document"),ie(this,"body"),this.root.push(new ur({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",cx:"http://schemas.microsoft.com/office/drawing/2014/chartex",cx1:"http://schemas.microsoft.com/office/drawing/2015/9/8/chartex",cx2:"http://schemas.microsoft.com/office/drawing/2015/10/21/chartex",cx3:"http://schemas.microsoft.com/office/drawing/2016/5/9/chartex",cx4:"http://schemas.microsoft.com/office/drawing/2016/5/10/chartex",cx5:"http://schemas.microsoft.com/office/drawing/2016/5/11/chartex",cx6:"http://schemas.microsoft.com/office/drawing/2016/5/12/chartex",cx7:"http://schemas.microsoft.com/office/drawing/2016/5/13/chartex",cx8:"http://schemas.microsoft.com/office/drawing/2016/5/14/chartex",aink:"http://schemas.microsoft.com/office/drawing/2016/ink",am3d:"http://schemas.microsoft.com/office/drawing/2017/model3d",w16cex:"http://schemas.microsoft.com/office/word/2018/wordml/cex",w16cid:"http://schemas.microsoft.com/office/word/2016/wordml/cid",w16:"http://schemas.microsoft.com/office/word/2018/wordml",w16sdtdh:"http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash",w16se:"http://schemas.microsoft.com/office/word/2015/wordml/symex",Ignorable:"w14 w15 wp14"})),this.body=new zl,e.background&&this.root.push(new Gl(e.background)),this.root.push(this.body)}add(e){return this.body.push(e),this}get Body(){return this.body}}class Vl extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{xmlns:"xmlns"})}}class Zt extends se{constructor(){super("Relationships"),this.root.push(new Vl({xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"}))}createRelationship(e,r,a,l){const u=new ml(`rId${e}`,r,a,l);return this.root.push(u),u}get RelationshipCount(){return this.root.length-1}}class Ta{constructor(e){ie(this,"document"),ie(this,"relationships"),this.document=new Kl(e),this.relationships=new Zt}get View(){return this.document}get Relationships(){return this.relationships}}class ql extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{val:"w:val"})}}class Xl extends se{constructor(){super("w:wordWrap"),this.root.push(new ql({val:0}))}}const Yl=t=>{var e,r;return new vt({name:"w:framePr",attributes:{anchorLock:{key:"w:anchorLock",value:t.anchorLock},dropCap:{key:"w:dropCap",value:t.dropCap},width:{key:"w:w",value:t.width},height:{key:"w:h",value:t.height},x:{key:"w:x",value:t.position?t.position.x:void 0},y:{key:"w:y",value:t.position?t.position.y:void 0},anchorHorizontal:{key:"w:hAnchor",value:t.anchor.horizontal},anchorVertical:{key:"w:vAnchor",value:t.anchor.vertical},spaceHorizontal:{key:"w:hSpace",value:(e=t.space)==null?void 0:e.horizontal},spaceVertical:{key:"w:vSpace",value:(r=t.space)==null?void 0:r.vertical},rule:{key:"w:hRule",value:t.rule},alignmentX:{key:"w:xAlign",value:t.alignment?t.alignment.x:void 0},alignmentY:{key:"w:yAlign",value:t.alignment?t.alignment.y:void 0},lines:{key:"w:lines",value:t.lines},wrap:{key:"w:wrap",value:t.wrap}}})};class qt extends kr{constructor(e){var r,a;if(super("w:pPr"),ie(this,"numberingReferences",[]),!e)return this;e.heading&&this.push(new gr(e.heading)),e.bullet&&this.push(new gr("ListParagraph")),e.numbering&&!e.style&&!e.heading&&(e.numbering.custom||this.push(new gr("ListParagraph"))),e.style&&this.push(new gr(e.style)),e.keepNext!==void 0&&this.push(new oe("w:keepNext",e.keepNext)),e.keepLines!==void 0&&this.push(new oe("w:keepLines",e.keepLines)),e.pageBreakBefore&&this.push(new il),e.frame&&this.push(Yl(e.frame)),e.widowControl!==void 0&&this.push(new oe("w:widowControl",e.widowControl)),e.bullet&&this.push(new ds(1,e.bullet.level)),e.numbering&&(this.numberingReferences.push({reference:e.numbering.reference,instance:(r=e.numbering.instance)!=null?r:0}),this.push(new ds(`${e.numbering.reference}-${(a=e.numbering.instance)!=null?a:0}`,e.numbering.level))),e.border&&this.push(new xu(e.border)),e.thematicBreak&&this.push(new Su),e.shading&&this.push(new va(e.shading)),e.wordWrap&&this.push(new Xl),e.overflowPunctuation&&this.push(new oe("w:overflowPunct",e.overflowPunctuation));const l=[...e.rightTabStop!==void 0?[{type:hs.RIGHT,position:e.rightTabStop}]:[],...e.tabStops?e.tabStops:[],...e.leftTabStop!==void 0?[{type:hs.LEFT,position:e.leftTabStop}]:[]];l.length>0&&this.push(new ol(l)),e.bidirectional!==void 0&&this.push(new oe("w:bidi",e.bidirectional)),e.spacing&&this.push(new al(e.spacing)),e.indent&&this.push(new Au(e.indent)),e.contextualSpacing!==void 0&&this.push(new oe("w:contextualSpacing",e.contextualSpacing)),e.alignment&&this.push(new Eu(e.alignment)),e.outlineLevel!==void 0&&this.push(new xl(e.outlineLevel)),e.suppressLineNumbers!==void 0&&this.push(new oe("w:suppressLineNumbers",e.suppressLineNumbers)),e.autoSpaceEastAsianText!==void 0&&this.push(new oe("w:autoSpaceDN",e.autoSpaceEastAsianText)),e.run&&this.push(new Ct(e.run))}push(e){this.root.push(e)}prepForXml(e){if(e.viewWrapper instanceof Ta)for(const r of this.numberingReferences)e.file.Numbering.createConcreteNumberingInstance(r.reference,r.instance);return super.prepForXml(e)}}class Wn extends hl{constructor(e){if(super("w:p"),ie(this,"properties"),typeof e=="string")return this.properties=new qt({}),this.root.push(this.properties),this.root.push(new fs(e)),this;if(this.properties=new qt(e),this.root.push(this.properties),e.text&&this.root.push(new fs(e.text)),e.children)for(const r of e.children){if(r instanceof _l){this.root.push(r.start);for(const a of r.children)this.root.push(a);this.root.push(r.end);continue}this.root.push(r)}}prepForXml(e){for(const r of this.root)if(r instanceof yl){const a=this.root.indexOf(r),l=new wl(r.options.children,Ju());e.viewWrapper.Relationships.createRelationship(l.linkId,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",r.options.link,pl.EXTERNAL),this.root[a]=l}return super.prepForXml(e)}addRunToFront(e){return this.root.splice(1,0,e),this}}const Ft={style:si.NONE,size:0,color:"auto"},Bt={style:si.SINGLE,size:4,color:"auto"};class Zl extends se{constructor(e){super("w:tblBorders"),e.top?this.root.push(new ke("w:top",e.top)):this.root.push(new ke("w:top",Bt)),e.left?this.root.push(new ke("w:left",e.left)):this.root.push(new ke("w:left",Bt)),e.bottom?this.root.push(new ke("w:bottom",e.bottom)):this.root.push(new ke("w:bottom",Bt)),e.right?this.root.push(new ke("w:right",e.right)):this.root.push(new ke("w:right",Bt)),e.insideHorizontal?this.root.push(new ke("w:insideH",e.insideHorizontal)):this.root.push(new ke("w:insideH",Bt)),e.insideVertical?this.root.push(new ke("w:insideV",e.insideVertical)):this.root.push(new ke("w:insideV",Bt))}}ie(Zl,"NONE",{top:Ft,bottom:Ft,left:Ft,right:Ft,insideHorizontal:Ft,insideVertical:Ft});class Ql extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{xmlns:"xmlns",vt:"xmlns:vt"})}}class Jl extends se{constructor(){super("Properties"),this.root.push(new Ql({xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"}))}}class $l extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{xmlns:"xmlns"})}}class ec extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{contentType:"ContentType",extension:"Extension"})}}class yt extends se{constructor(e,r){super("Default"),this.root.push(new ec({contentType:e,extension:r}))}}class tc extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{contentType:"ContentType",partName:"PartName"})}}class $e extends se{constructor(e,r){super("Override"),this.root.push(new tc({contentType:e,partName:r}))}}class rc extends se{constructor(){super("Types"),this.root.push(new $l({xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"})),this.root.push(new yt("image/png","png")),this.root.push(new yt("image/jpeg","jpeg")),this.root.push(new yt("image/jpeg","jpg")),this.root.push(new yt("image/bmp","bmp")),this.root.push(new yt("image/gif","gif")),this.root.push(new yt("application/vnd.openxmlformats-package.relationships+xml","rels")),this.root.push(new yt("application/xml","xml")),this.root.push(new yt("application/vnd.openxmlformats-officedocument.obfuscatedFont","odttf")),this.root.push(new $e("application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml","/word/document.xml")),this.root.push(new $e("application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml","/word/styles.xml")),this.root.push(new $e("application/vnd.openxmlformats-package.core-properties+xml","/docProps/core.xml")),this.root.push(new $e("application/vnd.openxmlformats-officedocument.custom-properties+xml","/docProps/custom.xml")),this.root.push(new $e("application/vnd.openxmlformats-officedocument.extended-properties+xml","/docProps/app.xml")),this.root.push(new $e("application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml","/word/numbering.xml")),this.root.push(new $e("application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml","/word/footnotes.xml")),this.root.push(new $e("application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml","/word/settings.xml")),this.root.push(new $e("application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml","/word/comments.xml")),this.root.push(new $e("application/vnd.openxmlformats-officedocument.wordprocessingml.fontTable+xml","/word/fontTable.xml"))}addFooter(e){this.root.push(new $e("application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml",`/word/footer${e}.xml`))}addHeader(e){this.root.push(new $e("application/vnd.openxmlformats-officedocument.wordprocessingml.header+xml",`/word/header${e}.xml`))}}class nc extends se{constructor(e){super("cp:coreProperties"),this.root.push(new ur({cp:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",xsi:"http://www.w3.org/2001/XMLSchema-instance"})),e.title&&this.root.push(new At("dc:title",e.title)),e.subject&&this.root.push(new At("dc:subject",e.subject)),e.creator&&this.root.push(new At("dc:creator",e.creator)),e.keywords&&this.root.push(new At("cp:keywords",e.keywords)),e.description&&this.root.push(new At("dc:description",e.description)),e.lastModifiedBy&&this.root.push(new At("cp:lastModifiedBy",e.lastModifiedBy)),e.revision&&this.root.push(new At("cp:revision",String(e.revision))),this.root.push(new gs("dcterms:created")),this.root.push(new gs("dcterms:modified"))}}class gs extends se{constructor(e){super(e),this.root.push(new ur({type:"dcterms:W3CDTF"})),this.root.push(bu(new Date))}}class ic extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{xmlns:"xmlns",vt:"xmlns:vt"})}}class sc extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{fmtid:"fmtid",pid:"pid",name:"name"})}}class ac extends se{constructor(e,r){super("property"),this.root.push(new sc({fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:e.toString(),name:r.name})),this.root.push(new oc(r.value))}}class oc extends se{constructor(e){super("vt:lpwstr"),this.root.push(e)}}class uc extends se{constructor(e){super("Properties"),ie(this,"nextId"),ie(this,"properties",[]),this.root.push(new ic({xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"})),this.nextId=2;for(const r of e)this.addCustomProperty(r)}prepForXml(e){return this.properties.forEach(r=>this.root.push(r)),super.prepForXml(e)}addCustomProperty(e){this.properties.push(new ac(this.nextId++,e))}}class lc extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",cp:"xmlns:cp",dc:"xmlns:dc",dcterms:"xmlns:dcterms",dcmitype:"xmlns:dcmitype",xsi:"xmlns:xsi",type:"xsi:type"})}}let cc=class extends ma{constructor(e,r){super("w:ftr",r),ie(this,"refId"),this.refId=e,r||this.root.push(new lc({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape"}))}get ReferenceId(){return this.refId}add(e){this.root.push(e)}};class fc{constructor(e,r,a){ie(this,"footer"),ie(this,"relationships"),this.media=e,this.footer=new cc(r,a),this.relationships=new Zt}add(e){this.footer.add(e)}addChildElement(e){this.footer.addChildElement(e)}get View(){return this.footer}get Relationships(){return this.relationships}get Media(){return this.media}}class hc extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{type:"w:type",id:"w:id"})}}class dc extends se{constructor(){super("w:footnoteRef")}}class pc extends Pr{constructor(){super({style:"FootnoteReference"}),this.root.push(new dc)}}const ws={SEPERATOR:"separator",CONTINUATION_SEPERATOR:"continuationSeparator"};class Dn extends se{constructor(e){super("w:footnote"),this.root.push(new hc({type:e.type,id:e.id}));for(let r=0;r9)throw new Error("Level cannot be greater than 9. Read more here: https://answers.microsoft.com/en-us/msoffice/forum/all/does-word-support-more-than-9-list-levels/d130fdcd-1781-446d-8c84-c6c79124e4d7");this.root.push(new Ac({ilvl:Ge(e),tentative:1}))}}class Dc extends Cc{}class Pc extends se{constructor(e){super("w:multiLevelType"),this.root.push(new Ce({val:e}))}}class Lc extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{abstractNumId:"w:abstractNumId",restartNumberingAfterBreak:"w15:restartNumberingAfterBreak"})}}class ys extends se{constructor(e,r){super("w:abstractNum"),ie(this,"id"),this.root.push(new Lc({abstractNumId:Ge(e),restartNumberingAfterBreak:0})),this.root.push(new Pc("hybridMultilevel")),this.id=e;for(const a of r)this.root.push(new Dc(a))}}class Fc extends se{constructor(e){super("w:abstractNumId"),this.root.push(new Ce({val:e}))}}class Bc extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{numId:"w:numId"})}}class vs extends se{constructor(e){if(super("w:num"),ie(this,"numId"),ie(this,"reference"),ie(this,"instance"),this.numId=e.numId,this.reference=e.reference,this.instance=e.instance,this.root.push(new Bc({numId:Ge(e.numId)})),this.root.push(new Fc(Ge(e.abstractNumId))),e.overrideLevels&&e.overrideLevels.length)for(const r of e.overrideLevels)this.root.push(new Uc(r.num,r.start))}}class Mc extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{ilvl:"w:ilvl"})}}class Uc extends se{constructor(e,r){super("w:lvlOverride"),this.root.push(new Mc({ilvl:e})),r!==void 0&&this.root.push(new Wc(r))}}class jc extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{val:"w:val"})}}class Wc extends se{constructor(e){super("w:startOverride"),this.root.push(new jc({val:e}))}}class zc extends se{constructor(e){super("w:numbering"),ie(this,"abstractNumberingMap",new Map),ie(this,"concreteNumberingMap",new Map),ie(this,"referenceConfigMap",new Map),ie(this,"abstractNumUniqueNumericId",Yu()),ie(this,"concreteNumUniqueNumericId",Zu()),this.root.push(new ur({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",Ignorable:"w14 w15 wp14"}));const r=new ys(this.abstractNumUniqueNumericId(),[{level:0,format:dt.BULLET,text:"●",alignment:ut.LEFT,style:{paragraph:{indent:{left:st(.5),hanging:st(.25)}}}},{level:1,format:dt.BULLET,text:"○",alignment:ut.LEFT,style:{paragraph:{indent:{left:st(1),hanging:st(.25)}}}},{level:2,format:dt.BULLET,text:"■",alignment:ut.LEFT,style:{paragraph:{indent:{left:2160,hanging:st(.25)}}}},{level:3,format:dt.BULLET,text:"●",alignment:ut.LEFT,style:{paragraph:{indent:{left:2880,hanging:st(.25)}}}},{level:4,format:dt.BULLET,text:"○",alignment:ut.LEFT,style:{paragraph:{indent:{left:3600,hanging:st(.25)}}}},{level:5,format:dt.BULLET,text:"■",alignment:ut.LEFT,style:{paragraph:{indent:{left:4320,hanging:st(.25)}}}},{level:6,format:dt.BULLET,text:"●",alignment:ut.LEFT,style:{paragraph:{indent:{left:5040,hanging:st(.25)}}}},{level:7,format:dt.BULLET,text:"●",alignment:ut.LEFT,style:{paragraph:{indent:{left:5760,hanging:st(.25)}}}},{level:8,format:dt.BULLET,text:"●",alignment:ut.LEFT,style:{paragraph:{indent:{left:6480,hanging:st(.25)}}}}]);this.concreteNumberingMap.set("default-bullet-numbering",new vs({numId:1,abstractNumId:r.id,reference:"default-bullet-numbering",instance:0,overrideLevels:[{num:0,start:1}]})),this.abstractNumberingMap.set("default-bullet-numbering",r);for(const a of e.config)this.abstractNumberingMap.set(a.reference,new ys(this.abstractNumUniqueNumericId(),a.levels)),this.referenceConfigMap.set(a.reference,a.levels)}prepForXml(e){for(const r of this.abstractNumberingMap.values())this.root.push(r);for(const r of this.concreteNumberingMap.values())this.root.push(r);return super.prepForXml(e)}createConcreteNumberingInstance(e,r){const a=this.abstractNumberingMap.get(e);if(!a)return;const l=`${e}-${r}`;if(this.concreteNumberingMap.has(l))return;const u=this.referenceConfigMap.get(e),o=u&&u[0].start,i={numId:this.concreteNumUniqueNumericId(),abstractNumId:a.id,reference:e,instance:r,overrideLevels:[o&&Number.isInteger(o)?{num:0,start:o}:{num:0,start:1}]};this.concreteNumberingMap.set(l,new vs(i))}get ConcreteNumbering(){return Array.from(this.concreteNumberingMap.values())}get ReferenceConfig(){return Array.from(this.referenceConfigMap.values())}}class Hc extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{version:"w:val",name:"w:name",uri:"w:uri"})}}class Gc extends se{constructor(e){super("w:compatSetting"),this.root.push(new Hc({version:e,uri:"http://schemas.microsoft.com/office/word",name:"compatibilityMode"}))}}class Kc extends se{constructor(e){super("w:compat"),e.version&&this.root.push(new Gc(e.version)),e.useSingleBorderforContiguousCells&&this.root.push(new oe("w:useSingleBorderforContiguousCells",e.useSingleBorderforContiguousCells)),e.wordPerfectJustification&&this.root.push(new oe("w:wpJustification",e.wordPerfectJustification)),e.noTabStopForHangingIndent&&this.root.push(new oe("w:noTabHangInd",e.noTabStopForHangingIndent)),e.noLeading&&this.root.push(new oe("w:noLeading",e.noLeading)),e.spaceForUnderline&&this.root.push(new oe("w:spaceForUL",e.spaceForUnderline)),e.noColumnBalance&&this.root.push(new oe("w:noColumnBalance",e.noColumnBalance)),e.balanceSingleByteDoubleByteWidth&&this.root.push(new oe("w:balanceSingleByteDoubleByteWidth",e.balanceSingleByteDoubleByteWidth)),e.noExtraLineSpacing&&this.root.push(new oe("w:noExtraLineSpacing",e.noExtraLineSpacing)),e.doNotLeaveBackslashAlone&&this.root.push(new oe("w:doNotLeaveBackslashAlone",e.doNotLeaveBackslashAlone)),e.underlineTrailingSpaces&&this.root.push(new oe("w:ulTrailSpace",e.underlineTrailingSpaces)),e.doNotExpandShiftReturn&&this.root.push(new oe("w:doNotExpandShiftReturn",e.doNotExpandShiftReturn)),e.spacingInWholePoints&&this.root.push(new oe("w:spacingInWholePoints",e.spacingInWholePoints)),e.lineWrapLikeWord6&&this.root.push(new oe("w:lineWrapLikeWord6",e.lineWrapLikeWord6)),e.printBodyTextBeforeHeader&&this.root.push(new oe("w:printBodyTextBeforeHeader",e.printBodyTextBeforeHeader)),e.printColorsBlack&&this.root.push(new oe("w:printColBlack",e.printColorsBlack)),e.spaceWidth&&this.root.push(new oe("w:wpSpaceWidth",e.spaceWidth)),e.showBreaksInFrames&&this.root.push(new oe("w:showBreaksInFrames",e.showBreaksInFrames)),e.subFontBySize&&this.root.push(new oe("w:subFontBySize",e.subFontBySize)),e.suppressBottomSpacing&&this.root.push(new oe("w:suppressBottomSpacing",e.suppressBottomSpacing)),e.suppressTopSpacing&&this.root.push(new oe("w:suppressTopSpacing",e.suppressTopSpacing)),e.suppressSpacingAtTopOfPage&&this.root.push(new oe("w:suppressSpacingAtTopOfPage",e.suppressSpacingAtTopOfPage)),e.suppressTopSpacingWP&&this.root.push(new oe("w:suppressTopSpacingWP",e.suppressTopSpacingWP)),e.suppressSpBfAfterPgBrk&&this.root.push(new oe("w:suppressSpBfAfterPgBrk",e.suppressSpBfAfterPgBrk)),e.swapBordersFacingPages&&this.root.push(new oe("w:swapBordersFacingPages",e.swapBordersFacingPages)),e.convertMailMergeEsc&&this.root.push(new oe("w:convMailMergeEsc",e.convertMailMergeEsc)),e.truncateFontHeightsLikeWP6&&this.root.push(new oe("w:truncateFontHeightsLikeWP6",e.truncateFontHeightsLikeWP6)),e.macWordSmallCaps&&this.root.push(new oe("w:mwSmallCaps",e.macWordSmallCaps)),e.usePrinterMetrics&&this.root.push(new oe("w:usePrinterMetrics",e.usePrinterMetrics)),e.doNotSuppressParagraphBorders&&this.root.push(new oe("w:doNotSuppressParagraphBorders",e.doNotSuppressParagraphBorders)),e.wrapTrailSpaces&&this.root.push(new oe("w:wrapTrailSpaces",e.wrapTrailSpaces)),e.footnoteLayoutLikeWW8&&this.root.push(new oe("w:footnoteLayoutLikeWW8",e.footnoteLayoutLikeWW8)),e.shapeLayoutLikeWW8&&this.root.push(new oe("w:shapeLayoutLikeWW8",e.shapeLayoutLikeWW8)),e.alignTablesRowByRow&&this.root.push(new oe("w:alignTablesRowByRow",e.alignTablesRowByRow)),e.forgetLastTabAlignment&&this.root.push(new oe("w:forgetLastTabAlignment",e.forgetLastTabAlignment)),e.adjustLineHeightInTable&&this.root.push(new oe("w:adjustLineHeightInTable",e.adjustLineHeightInTable)),e.autoSpaceLikeWord95&&this.root.push(new oe("w:autoSpaceLikeWord95",e.autoSpaceLikeWord95)),e.noSpaceRaiseLower&&this.root.push(new oe("w:noSpaceRaiseLower",e.noSpaceRaiseLower)),e.doNotUseHTMLParagraphAutoSpacing&&this.root.push(new oe("w:doNotUseHTMLParagraphAutoSpacing",e.doNotUseHTMLParagraphAutoSpacing)),e.layoutRawTableWidth&&this.root.push(new oe("w:layoutRawTableWidth",e.layoutRawTableWidth)),e.layoutTableRowsApart&&this.root.push(new oe("w:layoutTableRowsApart",e.layoutTableRowsApart)),e.useWord97LineBreakRules&&this.root.push(new oe("w:useWord97LineBreakRules",e.useWord97LineBreakRules)),e.doNotBreakWrappedTables&&this.root.push(new oe("w:doNotBreakWrappedTables",e.doNotBreakWrappedTables)),e.doNotSnapToGridInCell&&this.root.push(new oe("w:doNotSnapToGridInCell",e.doNotSnapToGridInCell)),e.selectFieldWithFirstOrLastCharacter&&this.root.push(new oe("w:selectFldWithFirstOrLastChar",e.selectFieldWithFirstOrLastCharacter)),e.applyBreakingRules&&this.root.push(new oe("w:applyBreakingRules",e.applyBreakingRules)),e.doNotWrapTextWithPunctuation&&this.root.push(new oe("w:doNotWrapTextWithPunct",e.doNotWrapTextWithPunctuation)),e.doNotUseEastAsianBreakRules&&this.root.push(new oe("w:doNotUseEastAsianBreakRules",e.doNotUseEastAsianBreakRules)),e.useWord2002TableStyleRules&&this.root.push(new oe("w:useWord2002TableStyleRules",e.useWord2002TableStyleRules)),e.growAutofit&&this.root.push(new oe("w:growAutofit",e.growAutofit)),e.useFELayout&&this.root.push(new oe("w:useFELayout",e.useFELayout)),e.useNormalStyleForList&&this.root.push(new oe("w:useNormalStyleForList",e.useNormalStyleForList)),e.doNotUseIndentAsNumberingTabStop&&this.root.push(new oe("w:doNotUseIndentAsNumberingTabStop",e.doNotUseIndentAsNumberingTabStop)),e.useAlternateEastAsianLineBreakRules&&this.root.push(new oe("w:useAltKinsokuLineBreakRules",e.useAlternateEastAsianLineBreakRules)),e.allowSpaceOfSameStyleInTable&&this.root.push(new oe("w:allowSpaceOfSameStyleInTable",e.allowSpaceOfSameStyleInTable)),e.doNotSuppressIndentation&&this.root.push(new oe("w:doNotSuppressIndentation",e.doNotSuppressIndentation)),e.doNotAutofitConstrainedTables&&this.root.push(new oe("w:doNotAutofitConstrainedTables",e.doNotAutofitConstrainedTables)),e.autofitToFirstFixedWidthCell&&this.root.push(new oe("w:autofitToFirstFixedWidthCell",e.autofitToFirstFixedWidthCell)),e.underlineTabInNumberingList&&this.root.push(new oe("w:underlineTabInNumList",e.underlineTabInNumberingList)),e.displayHangulFixedWidth&&this.root.push(new oe("w:displayHangulFixedWidth",e.displayHangulFixedWidth)),e.splitPgBreakAndParaMark&&this.root.push(new oe("w:splitPgBreakAndParaMark",e.splitPgBreakAndParaMark)),e.doNotVerticallyAlignCellWithSp&&this.root.push(new oe("w:doNotVertAlignCellWithSp",e.doNotVerticallyAlignCellWithSp)),e.doNotBreakConstrainedForcedTable&&this.root.push(new oe("w:doNotBreakConstrainedForcedTable",e.doNotBreakConstrainedForcedTable)),e.ignoreVerticalAlignmentInTextboxes&&this.root.push(new oe("w:doNotVertAlignInTxbx",e.ignoreVerticalAlignmentInTextboxes)),e.useAnsiKerningPairs&&this.root.push(new oe("w:useAnsiKerningPairs",e.useAnsiKerningPairs)),e.cachedColumnBalance&&this.root.push(new oe("w:cachedColBalance",e.cachedColumnBalance))}}class Vc extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",Ignorable:"mc:Ignorable"})}}class qc extends se{constructor(e){var r,a,l,u;super("w:settings"),this.root.push(new Vc({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",Ignorable:"w14 w15 wp14"})),this.root.push(new oe("w:displayBackgroundShape",!0)),e.trackRevisions!==void 0&&this.root.push(new oe("w:trackRevisions",e.trackRevisions)),e.evenAndOddHeaders!==void 0&&this.root.push(new oe("w:evenAndOddHeaders",e.evenAndOddHeaders)),e.updateFields!==void 0&&this.root.push(new oe("w:updateFields",e.updateFields)),e.defaultTabStop!==void 0&&this.root.push(new ii("w:defaultTabStop",e.defaultTabStop)),this.root.push(new Kc(sr(Ee({},(r=e.compatibility)!=null?r:{}),{version:(u=(l=(a=e.compatibility)==null?void 0:a.version)!=null?l:e.compatibilityModeVersion)!=null?u:15})))}}class xa extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{val:"w:val"})}}class Xc extends se{constructor(e){super("w:name"),this.root.push(new xa({val:e}))}}class Yc extends se{constructor(e){super("w:uiPriority"),this.root.push(new xa({val:Ge(e)}))}}class Zc extends ge{constructor(){super(...arguments),ie(this,"xmlKeys",{type:"w:type",styleId:"w:styleId",default:"w:default",customStyle:"w:customStyle"})}}class Sa extends se{constructor(e,r){super("w:style"),this.root.push(new Zc(e)),r.name&&this.root.push(new Xc(r.name)),r.basedOn&&this.root.push(new Wt("w:basedOn",r.basedOn)),r.next&&this.root.push(new Wt("w:next",r.next)),r.link&&this.root.push(new Wt("w:link",r.link)),r.uiPriority!==void 0&&this.root.push(new Yc(r.uiPriority)),r.semiHidden!==void 0&&this.root.push(new oe("w:semiHidden",r.semiHidden)),r.unhideWhenUsed!==void 0&&this.root.push(new oe("w:unhideWhenUsed",r.unhideWhenUsed)),r.quickFormat!==void 0&&this.root.push(new oe("w:qFormat",r.quickFormat))}}class Lr extends Sa{constructor(e){super({type:"paragraph",styleId:e.id},e),ie(this,"paragraphProperties"),ie(this,"runProperties"),this.paragraphProperties=new qt(e.paragraph),this.runProperties=new Ct(e.run),this.root.push(this.paragraphProperties),this.root.push(this.runProperties)}}class Fr extends Sa{constructor(e){super({type:"character",styleId:e.id},Ee({uiPriority:99,unhideWhenUsed:!0},e)),ie(this,"runProperties"),this.runProperties=new Ct(e.run),this.root.push(this.runProperties)}}class bt extends Lr{constructor(e){super(Ee({basedOn:"Normal",next:"Normal",quickFormat:!0},e))}}class Qc extends bt{constructor(e){super(Ee({id:"Title",name:"Title"},e))}}class Jc extends bt{constructor(e){super(Ee({id:"Heading1",name:"Heading 1"},e))}}class $c extends bt{constructor(e){super(Ee({id:"Heading2",name:"Heading 2"},e))}}class ef extends bt{constructor(e){super(Ee({id:"Heading3",name:"Heading 3"},e))}}class tf extends bt{constructor(e){super(Ee({id:"Heading4",name:"Heading 4"},e))}}class rf extends bt{constructor(e){super(Ee({id:"Heading5",name:"Heading 5"},e))}}class nf extends bt{constructor(e){super(Ee({id:"Heading6",name:"Heading 6"},e))}}class sf extends bt{constructor(e){super(Ee({id:"Strong",name:"Strong"},e))}}class af extends Lr{constructor(e){super(Ee({id:"ListParagraph",name:"List Paragraph",basedOn:"Normal",quickFormat:!0},e))}}class of extends Lr{constructor(e){super(Ee({id:"FootnoteText",name:"footnote text",link:"FootnoteTextChar",basedOn:"Normal",uiPriority:99,semiHidden:!0,unhideWhenUsed:!0,paragraph:{spacing:{after:0,line:240,lineRule:jn.AUTO}},run:{size:20}},e))}}class uf extends Fr{constructor(e){super(Ee({id:"FootnoteReference",name:"footnote reference",basedOn:"DefaultParagraphFont",semiHidden:!0,run:{superScript:!0}},e))}}class lf extends Fr{constructor(e){super(Ee({id:"FootnoteTextChar",name:"Footnote Text Char",basedOn:"DefaultParagraphFont",link:"FootnoteText",semiHidden:!0,run:{size:20}},e))}}class cf extends Fr{constructor(e){super(Ee({id:"Hyperlink",name:"Hyperlink",basedOn:"DefaultParagraphFont",run:{color:"0563C1",underline:{type:_a.SINGLE}}},e))}}class zn extends se{constructor(e){if(super("w:styles"),e.initialStyles&&this.root.push(e.initialStyles),e.importedStyles)for(const r of e.importedStyles)this.root.push(r);if(e.paragraphStyles)for(const r of e.paragraphStyles)this.root.push(new Lr(r));if(e.characterStyles)for(const r of e.characterStyles)this.root.push(new Fr(r))}}class ff extends se{constructor(e){super("w:pPrDefault"),this.root.push(new qt(e))}}class hf extends se{constructor(e){super("w:rPrDefault"),this.root.push(new Ct(e))}}class df extends se{constructor(e){super("w:docDefaults"),ie(this,"runPropertiesDefaults"),ie(this,"paragraphPropertiesDefaults"),this.runPropertiesDefaults=new hf(e.run),this.paragraphPropertiesDefaults=new ff(e.paragraph),this.root.push(this.runPropertiesDefaults),this.root.push(this.paragraphPropertiesDefaults)}}class pf{newInstance(e){const r=pa.xml2js(e,{compact:!1});let a;for(const o of r.elements||[])o.name==="w:styles"&&(a=o);if(a===void 0)throw new Error("can not find styles element");const l=a.elements||[];return new zn({initialStyles:new gu(a.attributes),importedStyles:l.map(o=>ni(o))})}}class bs{newInstance(e={}){var r;return{initialStyles:new ur({mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",Ignorable:"w14 w15"}),importedStyles:[new df((r=e.document)!=null?r:{}),new Qc(Ee({run:{size:56}},e.title)),new Jc(Ee({run:{color:"2E74B5",size:32}},e.heading1)),new $c(Ee({run:{color:"2E74B5",size:26}},e.heading2)),new ef(Ee({run:{color:"1F4D78",size:24}},e.heading3)),new tf(Ee({run:{color:"2E74B5",italics:!0}},e.heading4)),new rf(Ee({run:{color:"2E74B5"}},e.heading5)),new nf(Ee({run:{color:"1F4D78"}},e.heading6)),new sf(Ee({run:{bold:!0}},e.strong)),new af(e.listParagraph||{}),new cf(e.hyperlink||{}),new uf(e.footnoteReference||{}),new of(e.footnoteText||{}),new lf(e.footnoteTextChar||{})]}}}const wr=({id:t,fontKey:e,subsetted:r},a)=>new vt({name:a,attributes:Ee({id:{key:"r:id",value:t}},e?{fontKey:{key:"w:fontKey",value:`{${e}}`}}:{}),children:[...r?[new oe("w:subsetted",r)]:[]]}),mf=({name:t,altName:e,panose1:r,charset:a,family:l,notTrueType:u,pitch:o,sig:i,embedRegular:c,embedBold:w,embedItalic:y,embedBoldItalic:x})=>new vt({name:"w:font",attributes:{name:{key:"w:name",value:t}},children:[...e?[tr("w:altName",e)]:[],...r?[tr("w:panose1",r)]:[],...a?[tr("w:charset",a)]:[],...l?[tr("w:family",l)]:[],...u?[new oe("w:notTrueType",u)]:[],...o?[tr("w:pitch",o)]:[],...i?[new vt({name:"w:sig",attributes:{usb0:{key:"w:usb0",value:i.usb0},usb1:{key:"w:usb1",value:i.usb1},usb2:{key:"w:usb2",value:i.usb2},usb3:{key:"w:usb3",value:i.usb3},csb0:{key:"w:csb0",value:i.csb0},csb1:{key:"w:csb1",value:i.csb1}}})]:[],...c?[wr(c,"w:embedRegular")]:[],...w?[wr(w,"w:embedBold")]:[],...y?[wr(y,"w:embedItalic")]:[],...x?[wr(x,"w:embedBoldItalic")]:[]]}),gf=({name:t,index:e,fontKey:r,characterSet:a})=>mf({name:t,sig:{usb0:"E0002AFF",usb1:"C000247B",usb2:"00000009",usb3:"00000000",csb0:"000001FF",csb1:"00000000"},charset:a,family:"auto",pitch:"variable",embedRegular:{fontKey:r,id:`rId${e}`}}),wf=t=>new vt({name:"w:fonts",attributes:{mc:{key:"xmlns:mc",value:"http://schemas.openxmlformats.org/markup-compatibility/2006"},r:{key:"xmlns:r",value:"http://schemas.openxmlformats.org/officeDocument/2006/relationships"},w:{key:"xmlns:w",value:"http://schemas.openxmlformats.org/wordprocessingml/2006/main"},w14:{key:"xmlns:w14",value:"http://schemas.microsoft.com/office/word/2010/wordml"},w15:{key:"xmlns:w15",value:"http://schemas.microsoft.com/office/word/2012/wordml"},w16cex:{key:"xmlns:w16cex",value:"http://schemas.microsoft.com/office/word/2018/wordml/cex"},w16cid:{key:"xmlns:w16cid",value:"http://schemas.microsoft.com/office/word/2016/wordml/cid"},w16:{key:"xmlns:w16",value:"http://schemas.microsoft.com/office/word/2018/wordml"},w16sdtdh:{key:"xmlns:w16sdtdh",value:"http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash"},w16se:{key:"xmlns:w16se",value:"http://schemas.microsoft.com/office/word/2015/wordml/symex"},Ignorable:{key:"mc:Ignorable",value:"w14 w15 w16se w16cid w16 w16cex w16sdtdh"}},children:t.map((e,r)=>gf({name:e.name,index:r+1,fontKey:e.fontKey}))});class yf{constructor(e){ie(this,"fontTable"),ie(this,"relationships"),ie(this,"fontOptionsWithKey",[]),this.options=e,this.fontOptionsWithKey=e.map(r=>sr(Ee({},r),{fontKey:$u()})),this.fontTable=wf(this.fontOptionsWithKey),this.relationships=new Zt;for(let r=0;re.header)}get Footers(){return this.footers.map(e=>e.footer)}get ContentTypes(){return this.contentTypes}get CustomProperties(){return this.customProperties}get AppProperties(){return this.appProperties}get FootNotes(){return this.footnotesWrapper}get Settings(){return this.settings}get Comments(){return this.comments}get FontTable(){return this.fontWrapper}}function yr(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Aa={exports:{}};(function(t,e){(function(r){t.exports=r()})(function(){return function r(a,l,u){function o(w,y){if(!l[w]){if(!a[w]){var x=typeof yr=="function"&&yr;if(!y&&x)return x(w,!0);if(i)return i(w,!0);var _=new Error("Cannot find module '"+w+"'");throw _.code="MODULE_NOT_FOUND",_}var p=l[w]={exports:{}};a[w][0].call(p.exports,function(T){var v=a[w][1][T];return o(v||T)},p,p.exports,r,a,l,u)}return l[w].exports}for(var i=typeof yr=="function"&&yr,c=0;c>2,p=(3&w)<<4|y>>4,T=1>6:64,v=2>4,y=(15&_)<<4|(p=i.indexOf(c.charAt(v++)))>>2,x=(3&p)<<6|(T=i.indexOf(c.charAt(v++))),S[E++]=w,p!==64&&(S[E++]=y),T!==64&&(S[E++]=x);return S}},{"./support":30,"./utils":32}],2:[function(r,a,l){var u=r("./external"),o=r("./stream/DataWorker"),i=r("./stream/Crc32Probe"),c=r("./stream/DataLengthProbe");function w(y,x,_,p,T){this.compressedSize=y,this.uncompressedSize=x,this.crc32=_,this.compression=p,this.compressedContent=T}w.prototype={getContentWorker:function(){var y=new o(u.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new c("data_length")),x=this;return y.on("end",function(){if(this.streamInfo.data_length!==x.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),y},getCompressedWorker:function(){return new o(u.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},w.createWorkerFrom=function(y,x,_){return y.pipe(new i).pipe(new c("uncompressedSize")).pipe(x.compressWorker(_)).pipe(new c("compressedSize")).withStreamInfo("compression",x)},a.exports=w},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(r,a,l){var u=r("./stream/GenericWorker");l.STORE={magic:"\0\0",compressWorker:function(){return new u("STORE compression")},uncompressWorker:function(){return new u("STORE decompression")}},l.DEFLATE=r("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(r,a,l){var u=r("./utils"),o=function(){for(var i,c=[],w=0;w<256;w++){i=w;for(var y=0;y<8;y++)i=1&i?3988292384^i>>>1:i>>>1;c[w]=i}return c}();a.exports=function(i,c){return i!==void 0&&i.length?u.getTypeOf(i)!=="string"?function(w,y,x,_){var p=o,T=_+x;w^=-1;for(var v=_;v>>8^p[255&(w^y[v])];return-1^w}(0|c,i,i.length,0):function(w,y,x,_){var p=o,T=_+x;w^=-1;for(var v=_;v>>8^p[255&(w^y.charCodeAt(v))];return-1^w}(0|c,i,i.length,0):0}},{"./utils":32}],5:[function(r,a,l){l.base64=!1,l.binary=!1,l.dir=!1,l.createFolders=!0,l.date=null,l.compression=null,l.compressionOptions=null,l.comment=null,l.unixPermissions=null,l.dosPermissions=null},{}],6:[function(r,a,l){var u=null;u=typeof Promise<"u"?Promise:r("lie"),a.exports={Promise:u}},{lie:37}],7:[function(r,a,l){var u=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",o=r("pako"),i=r("./utils"),c=r("./stream/GenericWorker"),w=u?"uint8array":"array";function y(x,_){c.call(this,"FlateWorker/"+x),this._pako=null,this._pakoAction=x,this._pakoOptions=_,this.meta={}}l.magic="\b\0",i.inherits(y,c),y.prototype.processChunk=function(x){this.meta=x.meta,this._pako===null&&this._createPako(),this._pako.push(i.transformTo(w,x.data),!1)},y.prototype.flush=function(){c.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},y.prototype.cleanUp=function(){c.prototype.cleanUp.call(this),this._pako=null},y.prototype._createPako=function(){this._pako=new o[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var x=this;this._pako.onData=function(_){x.push({data:_,meta:x.meta})}},l.compressWorker=function(x){return new y("Deflate",x)},l.uncompressWorker=function(){return new y("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(r,a,l){function u(p,T){var v,E="";for(v=0;v>>=8;return E}function o(p,T,v,E,d,S){var R,D,C=p.file,V=p.compression,H=S!==w.utf8encode,J=i.transformTo("string",S(C.name)),I=i.transformTo("string",w.utf8encode(C.name)),re=C.comment,ue=i.transformTo("string",S(re)),L=i.transformTo("string",w.utf8encode(re)),q=I.length!==C.name.length,A=L.length!==re.length,Z="",le="",Y="",de=C.dir,K=C.date,ce={crc32:0,compressedSize:0,uncompressedSize:0};T&&!v||(ce.crc32=p.crc32,ce.compressedSize=p.compressedSize,ce.uncompressedSize=p.uncompressedSize);var G=0;T&&(G|=8),H||!q&&!A||(G|=2048);var N=0,W=0;de&&(N|=16),d==="UNIX"?(W=798,N|=function($,j){var g=$;return $||(g=j?16893:33204),(65535&g)<<16}(C.unixPermissions,de)):(W=20,N|=function($){return 63&($||0)}(C.dosPermissions)),R=K.getUTCHours(),R<<=6,R|=K.getUTCMinutes(),R<<=5,R|=K.getUTCSeconds()/2,D=K.getUTCFullYear()-1980,D<<=4,D|=K.getUTCMonth()+1,D<<=5,D|=K.getUTCDate(),q&&(le=u(1,1)+u(y(J),4)+I,Z+="up"+u(le.length,2)+le),A&&(Y=u(1,1)+u(y(ue),4)+L,Z+="uc"+u(Y.length,2)+Y);var z="";return z+=` -\0`,z+=u(G,2),z+=V.magic,z+=u(R,2),z+=u(D,2),z+=u(ce.crc32,4),z+=u(ce.compressedSize,4),z+=u(ce.uncompressedSize,4),z+=u(J.length,2),z+=u(Z.length,2),{fileRecord:x.LOCAL_FILE_HEADER+z+J+Z,dirRecord:x.CENTRAL_FILE_HEADER+u(W,2)+z+u(ue.length,2)+"\0\0\0\0"+u(N,4)+u(E,4)+J+Z+ue}}var i=r("../utils"),c=r("../stream/GenericWorker"),w=r("../utf8"),y=r("../crc32"),x=r("../signature");function _(p,T,v,E){c.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=T,this.zipPlatform=v,this.encodeFileName=E,this.streamFiles=p,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}i.inherits(_,c),_.prototype.push=function(p){var T=p.meta.percent||0,v=this.entriesCount,E=this._sources.length;this.accumulate?this.contentBuffer.push(p):(this.bytesWritten+=p.data.length,c.prototype.push.call(this,{data:p.data,meta:{currentFile:this.currentFile,percent:v?(T+100*(v-E-1))/v:100}}))},_.prototype.openedSource=function(p){this.currentSourceOffset=this.bytesWritten,this.currentFile=p.file.name;var T=this.streamFiles&&!p.file.dir;if(T){var v=o(p,T,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:v.fileRecord,meta:{percent:0}})}else this.accumulate=!0},_.prototype.closedSource=function(p){this.accumulate=!1;var T=this.streamFiles&&!p.file.dir,v=o(p,T,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(v.dirRecord),T)this.push({data:function(E){return x.DATA_DESCRIPTOR+u(E.crc32,4)+u(E.compressedSize,4)+u(E.uncompressedSize,4)}(p),meta:{percent:100}});else for(this.push({data:v.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},_.prototype.flush=function(){for(var p=this.bytesWritten,T=0;T=this.index;c--)w=(w<<8)+this.byteAt(c);return this.index+=i,w},readString:function(i){return u.transformTo("string",this.readData(i))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var i=this.readInt(4);return new Date(Date.UTC(1980+(i>>25&127),(i>>21&15)-1,i>>16&31,i>>11&31,i>>5&63,(31&i)<<1))}},a.exports=o},{"../utils":32}],19:[function(r,a,l){var u=r("./Uint8ArrayReader");function o(i){u.call(this,i)}r("../utils").inherits(o,u),o.prototype.readData=function(i){this.checkOffset(i);var c=this.data.slice(this.zero+this.index,this.zero+this.index+i);return this.index+=i,c},a.exports=o},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(r,a,l){var u=r("./DataReader");function o(i){u.call(this,i)}r("../utils").inherits(o,u),o.prototype.byteAt=function(i){return this.data.charCodeAt(this.zero+i)},o.prototype.lastIndexOfSignature=function(i){return this.data.lastIndexOf(i)-this.zero},o.prototype.readAndCheckSignature=function(i){return i===this.readData(4)},o.prototype.readData=function(i){this.checkOffset(i);var c=this.data.slice(this.zero+this.index,this.zero+this.index+i);return this.index+=i,c},a.exports=o},{"../utils":32,"./DataReader":18}],21:[function(r,a,l){var u=r("./ArrayReader");function o(i){u.call(this,i)}r("../utils").inherits(o,u),o.prototype.readData=function(i){if(this.checkOffset(i),i===0)return new Uint8Array(0);var c=this.data.subarray(this.zero+this.index,this.zero+this.index+i);return this.index+=i,c},a.exports=o},{"../utils":32,"./ArrayReader":17}],22:[function(r,a,l){var u=r("../utils"),o=r("../support"),i=r("./ArrayReader"),c=r("./StringReader"),w=r("./NodeBufferReader"),y=r("./Uint8ArrayReader");a.exports=function(x){var _=u.getTypeOf(x);return u.checkSupport(_),_!=="string"||o.uint8array?_==="nodebuffer"?new w(x):o.uint8array?new y(u.transformTo("uint8array",x)):new i(u.transformTo("array",x)):new c(x)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(r,a,l){l.LOCAL_FILE_HEADER="PK",l.CENTRAL_FILE_HEADER="PK",l.CENTRAL_DIRECTORY_END="PK",l.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",l.ZIP64_CENTRAL_DIRECTORY_END="PK",l.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(r,a,l){var u=r("./GenericWorker"),o=r("../utils");function i(c){u.call(this,"ConvertWorker to "+c),this.destType=c}o.inherits(i,u),i.prototype.processChunk=function(c){this.push({data:o.transformTo(this.destType,c.data),meta:c.meta})},a.exports=i},{"../utils":32,"./GenericWorker":28}],25:[function(r,a,l){var u=r("./GenericWorker"),o=r("../crc32");function i(){u.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}r("../utils").inherits(i,u),i.prototype.processChunk=function(c){this.streamInfo.crc32=o(c.data,this.streamInfo.crc32||0),this.push(c)},a.exports=i},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(r,a,l){var u=r("../utils"),o=r("./GenericWorker");function i(c){o.call(this,"DataLengthProbe for "+c),this.propName=c,this.withStreamInfo(c,0)}u.inherits(i,o),i.prototype.processChunk=function(c){if(c){var w=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=w+c.data.length}o.prototype.processChunk.call(this,c)},a.exports=i},{"../utils":32,"./GenericWorker":28}],27:[function(r,a,l){var u=r("../utils"),o=r("./GenericWorker");function i(c){o.call(this,"DataWorker");var w=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,c.then(function(y){w.dataIsReady=!0,w.data=y,w.max=y&&y.length||0,w.type=u.getTypeOf(y),w.isPaused||w._tickAndRepeat()},function(y){w.error(y)})}u.inherits(i,o),i.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this.data=null},i.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,u.delay(this._tickAndRepeat,[],this)),!0)},i.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(u.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},i.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var c=null,w=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":c=this.data.substring(this.index,w);break;case"uint8array":c=this.data.subarray(this.index,w);break;case"array":case"nodebuffer":c=this.data.slice(this.index,w)}return this.index=w,this.push({data:c,meta:{percent:this.max?this.index/this.max*100:0}})},a.exports=i},{"../utils":32,"./GenericWorker":28}],28:[function(r,a,l){function u(o){this.name=o||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}u.prototype={push:function(o){this.emit("data",o)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(o){this.emit("error",o)}return!0},error:function(o){return!this.isFinished&&(this.isPaused?this.generatedError=o:(this.isFinished=!0,this.emit("error",o),this.previous&&this.previous.error(o),this.cleanUp()),!0)},on:function(o,i){return this._listeners[o].push(i),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(o,i){if(this._listeners[o])for(var c=0;c "+o:o}},a.exports=u},{}],29:[function(r,a,l){var u=r("../utils"),o=r("./ConvertWorker"),i=r("./GenericWorker"),c=r("../base64"),w=r("../support"),y=r("../external"),x=null;if(w.nodestream)try{x=r("../nodejs/NodejsStreamOutputAdapter")}catch{}function _(T,v){return new y.Promise(function(E,d){var S=[],R=T._internalType,D=T._outputType,C=T._mimeType;T.on("data",function(V,H){S.push(V),v&&v(H)}).on("error",function(V){S=[],d(V)}).on("end",function(){try{var V=function(H,J,I){switch(H){case"blob":return u.newBlob(u.transformTo("arraybuffer",J),I);case"base64":return c.encode(J);default:return u.transformTo(H,J)}}(D,function(H,J){var I,re=0,ue=null,L=0;for(I=0;I"u")l.blob=!1;else{var u=new ArrayBuffer(0);try{l.blob=new Blob([u],{type:"application/zip"}).size===0}catch{try{var o=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);o.append(u),l.blob=o.getBlob("application/zip").size===0}catch{l.blob=!1}}}try{l.nodestream=!!r("readable-stream").Readable}catch{l.nodestream=!1}},{"readable-stream":16}],31:[function(r,a,l){for(var u=r("./utils"),o=r("./support"),i=r("./nodejsUtils"),c=r("./stream/GenericWorker"),w=new Array(256),y=0;y<256;y++)w[y]=252<=y?6:248<=y?5:240<=y?4:224<=y?3:192<=y?2:1;w[254]=w[254]=1;function x(){c.call(this,"utf-8 decode"),this.leftOver=null}function _(){c.call(this,"utf-8 encode")}l.utf8encode=function(p){return o.nodebuffer?i.newBufferFrom(p,"utf-8"):function(T){var v,E,d,S,R,D=T.length,C=0;for(S=0;S>>6:(E<65536?v[R++]=224|E>>>12:(v[R++]=240|E>>>18,v[R++]=128|E>>>12&63),v[R++]=128|E>>>6&63),v[R++]=128|63&E);return v}(p)},l.utf8decode=function(p){return o.nodebuffer?u.transformTo("nodebuffer",p).toString("utf-8"):function(T){var v,E,d,S,R=T.length,D=new Array(2*R);for(v=E=0;v>10&1023,D[E++]=56320|1023&d)}return D.length!==E&&(D.subarray?D=D.subarray(0,E):D.length=E),u.applyFromCharCode(D)}(p=u.transformTo(o.uint8array?"uint8array":"array",p))},u.inherits(x,c),x.prototype.processChunk=function(p){var T=u.transformTo(o.uint8array?"uint8array":"array",p.data);if(this.leftOver&&this.leftOver.length){if(o.uint8array){var v=T;(T=new Uint8Array(v.length+this.leftOver.length)).set(this.leftOver,0),T.set(v,this.leftOver.length)}else T=this.leftOver.concat(T);this.leftOver=null}var E=function(S,R){var D;for((R=R||S.length)>S.length&&(R=S.length),D=R-1;0<=D&&(192&S[D])==128;)D--;return D<0||D===0?R:D+w[S[D]]>R?D:R}(T),d=T;E!==T.length&&(o.uint8array?(d=T.subarray(0,E),this.leftOver=T.subarray(E,T.length)):(d=T.slice(0,E),this.leftOver=T.slice(E,T.length))),this.push({data:l.utf8decode(d),meta:p.meta})},x.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:l.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},l.Utf8DecodeWorker=x,u.inherits(_,c),_.prototype.processChunk=function(p){this.push({data:l.utf8encode(p.data),meta:p.meta})},l.Utf8EncodeWorker=_},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(r,a,l){var u=r("./support"),o=r("./base64"),i=r("./nodejsUtils"),c=r("./external");function w(v){return v}function y(v,E){for(var d=0;d>8;this.dir=!!(16&this.externalFileAttributes),p==0&&(this.dosPermissions=63&this.externalFileAttributes),p==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var p=u(this.extraFields[1].value);this.uncompressedSize===o.MAX_VALUE_32BITS&&(this.uncompressedSize=p.readInt(8)),this.compressedSize===o.MAX_VALUE_32BITS&&(this.compressedSize=p.readInt(8)),this.localHeaderOffset===o.MAX_VALUE_32BITS&&(this.localHeaderOffset=p.readInt(8)),this.diskNumberStart===o.MAX_VALUE_32BITS&&(this.diskNumberStart=p.readInt(4))}},readExtraFields:function(p){var T,v,E,d=p.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});p.index+4>>6:(p<65536?_[E++]=224|p>>>12:(_[E++]=240|p>>>18,_[E++]=128|p>>>12&63),_[E++]=128|p>>>6&63),_[E++]=128|63&p);return _},l.buf2binstring=function(x){return y(x,x.length)},l.binstring2buf=function(x){for(var _=new u.Buf8(x.length),p=0,T=_.length;p>10&1023,S[T++]=56320|1023&v)}return y(S,T)},l.utf8border=function(x,_){var p;for((_=_||x.length)>x.length&&(_=x.length),p=_-1;0<=p&&(192&x[p])==128;)p--;return p<0||p===0?_:p+c[x[p]]>_?p:_}},{"./common":41}],43:[function(r,a,l){a.exports=function(u,o,i,c){for(var w=65535&u|0,y=u>>>16&65535|0,x=0;i!==0;){for(i-=x=2e3>>1:o>>>1;i[c]=o}return i}();a.exports=function(o,i,c,w){var y=u,x=w+c;o^=-1;for(var _=w;_>>8^y[255&(o^i[_])];return-1^o}},{}],46:[function(r,a,l){var u,o=r("../utils/common"),i=r("./trees"),c=r("./adler32"),w=r("./crc32"),y=r("./messages"),x=0,_=4,p=0,T=-2,v=-1,E=4,d=2,S=8,R=9,D=286,C=30,V=19,H=2*D+1,J=15,I=3,re=258,ue=re+I+1,L=42,q=113,A=1,Z=2,le=3,Y=4;function de(h,X){return h.msg=y[X],X}function K(h){return(h<<1)-(4h.avail_out&&(b=h.avail_out),b!==0&&(o.arraySet(h.output,X.pending_buf,X.pending_out,b,h.next_out),h.next_out+=b,X.pending_out+=b,h.total_out+=b,h.avail_out-=b,X.pending-=b,X.pending===0&&(X.pending_out=0))}function N(h,X){i._tr_flush_block(h,0<=h.block_start?h.block_start:-1,h.strstart-h.block_start,X),h.block_start=h.strstart,G(h.strm)}function W(h,X){h.pending_buf[h.pending++]=X}function z(h,X){h.pending_buf[h.pending++]=X>>>8&255,h.pending_buf[h.pending++]=255&X}function $(h,X){var b,n,s=h.max_chain_length,f=h.strstart,P=h.prev_length,U=h.nice_match,B=h.strstart>h.w_size-ue?h.strstart-(h.w_size-ue):0,te=h.window,ae=h.w_mask,ne=h.prev,fe=h.strstart+re,pe=te[f+P-1],me=te[f+P];h.prev_length>=h.good_match&&(s>>=2),U>h.lookahead&&(U=h.lookahead);do if(te[(b=X)+P]===me&&te[b+P-1]===pe&&te[b]===te[f]&&te[++b]===te[f+1]){f+=2,b++;do;while(te[++f]===te[++b]&&te[++f]===te[++b]&&te[++f]===te[++b]&&te[++f]===te[++b]&&te[++f]===te[++b]&&te[++f]===te[++b]&&te[++f]===te[++b]&&te[++f]===te[++b]&&fB&&--s!=0);return P<=h.lookahead?P:h.lookahead}function j(h){var X,b,n,s,f,P,U,B,te,ae,ne=h.w_size;do{if(s=h.window_size-h.lookahead-h.strstart,h.strstart>=ne+(ne-ue)){for(o.arraySet(h.window,h.window,ne,ne,0),h.match_start-=ne,h.strstart-=ne,h.block_start-=ne,X=b=h.hash_size;n=h.head[--X],h.head[X]=ne<=n?n-ne:0,--b;);for(X=b=ne;n=h.prev[--X],h.prev[X]=ne<=n?n-ne:0,--b;);s+=ne}if(h.strm.avail_in===0)break;if(P=h.strm,U=h.window,B=h.strstart+h.lookahead,te=s,ae=void 0,ae=P.avail_in,te=I)for(f=h.strstart-h.insert,h.ins_h=h.window[f],h.ins_h=(h.ins_h<=I&&(h.ins_h=(h.ins_h<=I)if(n=i._tr_tally(h,h.strstart-h.match_start,h.match_length-I),h.lookahead-=h.match_length,h.match_length<=h.max_lazy_match&&h.lookahead>=I){for(h.match_length--;h.strstart++,h.ins_h=(h.ins_h<=I&&(h.ins_h=(h.ins_h<=I&&h.match_length<=h.prev_length){for(s=h.strstart+h.lookahead-I,n=i._tr_tally(h,h.strstart-1-h.prev_match,h.prev_length-I),h.lookahead-=h.prev_length-1,h.prev_length-=2;++h.strstart<=s&&(h.ins_h=(h.ins_h<h.pending_buf_size-5&&(b=h.pending_buf_size-5);;){if(h.lookahead<=1){if(j(h),h.lookahead===0&&X===x)return A;if(h.lookahead===0)break}h.strstart+=h.lookahead,h.lookahead=0;var n=h.block_start+b;if((h.strstart===0||h.strstart>=n)&&(h.lookahead=h.strstart-n,h.strstart=n,N(h,!1),h.strm.avail_out===0)||h.strstart-h.block_start>=h.w_size-ue&&(N(h,!1),h.strm.avail_out===0))return A}return h.insert=0,X===_?(N(h,!0),h.strm.avail_out===0?le:Y):(h.strstart>h.block_start&&(N(h,!1),h.strm.avail_out),A)}),new M(4,4,8,4,g),new M(4,5,16,8,g),new M(4,6,32,32,g),new M(4,4,16,16,m),new M(8,16,32,32,m),new M(8,16,128,128,m),new M(8,32,128,256,m),new M(32,128,258,1024,m),new M(32,258,258,4096,m)],l.deflateInit=function(h,X){return Q(h,X,S,15,8,0)},l.deflateInit2=Q,l.deflateReset=O,l.deflateResetKeep=k,l.deflateSetHeader=function(h,X){return h&&h.state?h.state.wrap!==2?T:(h.state.gzhead=X,p):T},l.deflate=function(h,X){var b,n,s,f;if(!h||!h.state||5>8&255),W(n,n.gzhead.time>>16&255),W(n,n.gzhead.time>>24&255),W(n,n.level===9?2:2<=n.strategy||n.level<2?4:0),W(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(W(n,255&n.gzhead.extra.length),W(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(h.adler=w(h.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69):(W(n,0),W(n,0),W(n,0),W(n,0),W(n,0),W(n,n.level===9?2:2<=n.strategy||n.level<2?4:0),W(n,3),n.status=q);else{var P=S+(n.w_bits-8<<4)<<8;P|=(2<=n.strategy||n.level<2?0:n.level<6?1:n.level===6?2:3)<<6,n.strstart!==0&&(P|=32),P+=31-P%31,n.status=q,z(n,P),n.strstart!==0&&(z(n,h.adler>>>16),z(n,65535&h.adler)),h.adler=1}if(n.status===69)if(n.gzhead.extra){for(s=n.pending;n.gzindex<(65535&n.gzhead.extra.length)&&(n.pending!==n.pending_buf_size||(n.gzhead.hcrc&&n.pending>s&&(h.adler=w(h.adler,n.pending_buf,n.pending-s,s)),G(h),s=n.pending,n.pending!==n.pending_buf_size));)W(n,255&n.gzhead.extra[n.gzindex]),n.gzindex++;n.gzhead.hcrc&&n.pending>s&&(h.adler=w(h.adler,n.pending_buf,n.pending-s,s)),n.gzindex===n.gzhead.extra.length&&(n.gzindex=0,n.status=73)}else n.status=73;if(n.status===73)if(n.gzhead.name){s=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>s&&(h.adler=w(h.adler,n.pending_buf,n.pending-s,s)),G(h),s=n.pending,n.pending===n.pending_buf_size)){f=1;break}f=n.gzindexs&&(h.adler=w(h.adler,n.pending_buf,n.pending-s,s)),f===0&&(n.gzindex=0,n.status=91)}else n.status=91;if(n.status===91)if(n.gzhead.comment){s=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>s&&(h.adler=w(h.adler,n.pending_buf,n.pending-s,s)),G(h),s=n.pending,n.pending===n.pending_buf_size)){f=1;break}f=n.gzindexs&&(h.adler=w(h.adler,n.pending_buf,n.pending-s,s)),f===0&&(n.status=103)}else n.status=103;if(n.status===103&&(n.gzhead.hcrc?(n.pending+2>n.pending_buf_size&&G(h),n.pending+2<=n.pending_buf_size&&(W(n,255&h.adler),W(n,h.adler>>8&255),h.adler=0,n.status=q)):n.status=q),n.pending!==0){if(G(h),h.avail_out===0)return n.last_flush=-1,p}else if(h.avail_in===0&&K(X)<=K(b)&&X!==_)return de(h,-5);if(n.status===666&&h.avail_in!==0)return de(h,-5);if(h.avail_in!==0||n.lookahead!==0||X!==x&&n.status!==666){var U=n.strategy===2?function(B,te){for(var ae;;){if(B.lookahead===0&&(j(B),B.lookahead===0)){if(te===x)return A;break}if(B.match_length=0,ae=i._tr_tally(B,0,B.window[B.strstart]),B.lookahead--,B.strstart++,ae&&(N(B,!1),B.strm.avail_out===0))return A}return B.insert=0,te===_?(N(B,!0),B.strm.avail_out===0?le:Y):B.last_lit&&(N(B,!1),B.strm.avail_out===0)?A:Z}(n,X):n.strategy===3?function(B,te){for(var ae,ne,fe,pe,me=B.window;;){if(B.lookahead<=re){if(j(B),B.lookahead<=re&&te===x)return A;if(B.lookahead===0)break}if(B.match_length=0,B.lookahead>=I&&0B.lookahead&&(B.match_length=B.lookahead)}if(B.match_length>=I?(ae=i._tr_tally(B,1,B.match_length-I),B.lookahead-=B.match_length,B.strstart+=B.match_length,B.match_length=0):(ae=i._tr_tally(B,0,B.window[B.strstart]),B.lookahead--,B.strstart++),ae&&(N(B,!1),B.strm.avail_out===0))return A}return B.insert=0,te===_?(N(B,!0),B.strm.avail_out===0?le:Y):B.last_lit&&(N(B,!1),B.strm.avail_out===0)?A:Z}(n,X):u[n.level].func(n,X);if(U!==le&&U!==Y||(n.status=666),U===A||U===le)return h.avail_out===0&&(n.last_flush=-1),p;if(U===Z&&(X===1?i._tr_align(n):X!==5&&(i._tr_stored_block(n,0,0,!1),X===3&&(ce(n.head),n.lookahead===0&&(n.strstart=0,n.block_start=0,n.insert=0))),G(h),h.avail_out===0))return n.last_flush=-1,p}return X!==_?p:n.wrap<=0?1:(n.wrap===2?(W(n,255&h.adler),W(n,h.adler>>8&255),W(n,h.adler>>16&255),W(n,h.adler>>24&255),W(n,255&h.total_in),W(n,h.total_in>>8&255),W(n,h.total_in>>16&255),W(n,h.total_in>>24&255)):(z(n,h.adler>>>16),z(n,65535&h.adler)),G(h),0=b.w_size&&(f===0&&(ce(b.head),b.strstart=0,b.block_start=0,b.insert=0),te=new o.Buf8(b.w_size),o.arraySet(te,X,ae-b.w_size,b.w_size,0),X=te,ae=b.w_size),P=h.avail_in,U=h.next_in,B=h.input,h.avail_in=ae,h.next_in=0,h.input=X,j(b);b.lookahead>=I;){for(n=b.strstart,s=b.lookahead-(I-1);b.ins_h=(b.ins_h<>>=I=J>>>24,R-=I,(I=J>>>16&255)===0)Z[y++]=65535&J;else{if(!(16&I)){if(!(64&I)){J=D[(65535&J)+(S&(1<>>=I,R-=I),R<15&&(S+=A[c++]<>>=I=J>>>24,R-=I,!(16&(I=J>>>16&255))){if(!(64&I)){J=C[(65535&J)+(S&(1<>>=I,R-=I,(I=y-x)>3,S&=(1<<(R-=re<<3))-1,u.next_in=c,u.next_out=y,u.avail_in=c>>24&255)+(L>>>8&65280)+((65280&L)<<8)+((255&L)<<24)}function S(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new u.Buf16(320),this.work=new u.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function R(L){var q;return L&&L.state?(q=L.state,L.total_in=L.total_out=q.total=0,L.msg="",q.wrap&&(L.adler=1&q.wrap),q.mode=T,q.last=0,q.havedict=0,q.dmax=32768,q.head=null,q.hold=0,q.bits=0,q.lencode=q.lendyn=new u.Buf32(v),q.distcode=q.distdyn=new u.Buf32(E),q.sane=1,q.back=-1,_):p}function D(L){var q;return L&&L.state?((q=L.state).wsize=0,q.whave=0,q.wnext=0,R(L)):p}function C(L,q){var A,Z;return L&&L.state?(Z=L.state,q<0?(A=0,q=-q):(A=1+(q>>4),q<48&&(q&=15)),q&&(q<8||15=Y.wsize?(u.arraySet(Y.window,q,A-Y.wsize,Y.wsize,0),Y.wnext=0,Y.whave=Y.wsize):(Z<(le=Y.wsize-Y.wnext)&&(le=Z),u.arraySet(Y.window,q,A-Z,le,Y.wnext),(Z-=le)?(u.arraySet(Y.window,q,A-Z,Z,0),Y.wnext=Z,Y.whave=Y.wsize):(Y.wnext+=le,Y.wnext===Y.wsize&&(Y.wnext=0),Y.whave>>8&255,A.check=i(A.check,f,2,0),N=G=0,A.mode=2;break}if(A.flags=0,A.head&&(A.head.done=!1),!(1&A.wrap)||(((255&G)<<8)+(G>>8))%31){L.msg="incorrect header check",A.mode=30;break}if((15&G)!=8){L.msg="unknown compression method",A.mode=30;break}if(N-=4,h=8+(15&(G>>>=4)),A.wbits===0)A.wbits=h;else if(h>A.wbits){L.msg="invalid window size",A.mode=30;break}A.dmax=1<>8&1),512&A.flags&&(f[0]=255&G,f[1]=G>>>8&255,A.check=i(A.check,f,2,0)),N=G=0,A.mode=3;case 3:for(;N<32;){if(K===0)break e;K--,G+=Z[Y++]<>>8&255,f[2]=G>>>16&255,f[3]=G>>>24&255,A.check=i(A.check,f,4,0)),N=G=0,A.mode=4;case 4:for(;N<16;){if(K===0)break e;K--,G+=Z[Y++]<>8),512&A.flags&&(f[0]=255&G,f[1]=G>>>8&255,A.check=i(A.check,f,2,0)),N=G=0,A.mode=5;case 5:if(1024&A.flags){for(;N<16;){if(K===0)break e;K--,G+=Z[Y++]<>>8&255,A.check=i(A.check,f,2,0)),N=G=0}else A.head&&(A.head.extra=null);A.mode=6;case 6:if(1024&A.flags&&(K<($=A.length)&&($=K),$&&(A.head&&(h=A.head.extra_len-A.length,A.head.extra||(A.head.extra=new Array(A.head.extra_len)),u.arraySet(A.head.extra,Z,Y,$,h)),512&A.flags&&(A.check=i(A.check,Z,$,Y)),K-=$,Y+=$,A.length-=$),A.length))break e;A.length=0,A.mode=7;case 7:if(2048&A.flags){if(K===0)break e;for($=0;h=Z[Y+$++],A.head&&h&&A.length<65536&&(A.head.name+=String.fromCharCode(h)),h&&$>9&1,A.head.done=!0),L.adler=A.check=0,A.mode=12;break;case 10:for(;N<32;){if(K===0)break e;K--,G+=Z[Y++]<>>=7&N,N-=7&N,A.mode=27;break}for(;N<3;){if(K===0)break e;K--,G+=Z[Y++]<>>=1)){case 0:A.mode=14;break;case 1:if(re(A),A.mode=20,q!==6)break;G>>>=2,N-=2;break e;case 2:A.mode=17;break;case 3:L.msg="invalid block type",A.mode=30}G>>>=2,N-=2;break;case 14:for(G>>>=7&N,N-=7&N;N<32;){if(K===0)break e;K--,G+=Z[Y++]<>>16^65535)){L.msg="invalid stored block lengths",A.mode=30;break}if(A.length=65535&G,N=G=0,A.mode=15,q===6)break e;case 15:A.mode=16;case 16:if($=A.length){if(K<$&&($=K),ce<$&&($=ce),$===0)break e;u.arraySet(le,Z,Y,$,de),K-=$,Y+=$,ce-=$,de+=$,A.length-=$;break}A.mode=12;break;case 17:for(;N<14;){if(K===0)break e;K--,G+=Z[Y++]<>>=5,N-=5,A.ndist=1+(31&G),G>>>=5,N-=5,A.ncode=4+(15&G),G>>>=4,N-=4,286>>=3,N-=3}for(;A.have<19;)A.lens[P[A.have++]]=0;if(A.lencode=A.lendyn,A.lenbits=7,b={bits:A.lenbits},X=w(0,A.lens,0,19,A.lencode,0,A.work,b),A.lenbits=b.bits,X){L.msg="invalid code lengths set",A.mode=30;break}A.have=0,A.mode=19;case 19:for(;A.have>>16&255,F=65535&s,!((m=s>>>24)<=N);){if(K===0)break e;K--,G+=Z[Y++]<>>=m,N-=m,A.lens[A.have++]=F;else{if(F===16){for(n=m+2;N>>=m,N-=m,A.have===0){L.msg="invalid bit length repeat",A.mode=30;break}h=A.lens[A.have-1],$=3+(3&G),G>>>=2,N-=2}else if(F===17){for(n=m+3;N>>=m)),G>>>=3,N-=3}else{for(n=m+7;N>>=m)),G>>>=7,N-=7}if(A.have+$>A.nlen+A.ndist){L.msg="invalid bit length repeat",A.mode=30;break}for(;$--;)A.lens[A.have++]=h}}if(A.mode===30)break;if(A.lens[256]===0){L.msg="invalid code -- missing end-of-block",A.mode=30;break}if(A.lenbits=9,b={bits:A.lenbits},X=w(y,A.lens,0,A.nlen,A.lencode,0,A.work,b),A.lenbits=b.bits,X){L.msg="invalid literal/lengths set",A.mode=30;break}if(A.distbits=6,A.distcode=A.distdyn,b={bits:A.distbits},X=w(x,A.lens,A.nlen,A.ndist,A.distcode,0,A.work,b),A.distbits=b.bits,X){L.msg="invalid distances set",A.mode=30;break}if(A.mode=20,q===6)break e;case 20:A.mode=21;case 21:if(6<=K&&258<=ce){L.next_out=de,L.avail_out=ce,L.next_in=Y,L.avail_in=K,A.hold=G,A.bits=N,c(L,z),de=L.next_out,le=L.output,ce=L.avail_out,Y=L.next_in,Z=L.input,K=L.avail_in,G=A.hold,N=A.bits,A.mode===12&&(A.back=-1);break}for(A.back=0;M=(s=A.lencode[G&(1<>>16&255,F=65535&s,!((m=s>>>24)<=N);){if(K===0)break e;K--,G+=Z[Y++]<>k)])>>>16&255,F=65535&s,!(k+(m=s>>>24)<=N);){if(K===0)break e;K--,G+=Z[Y++]<>>=k,N-=k,A.back+=k}if(G>>>=m,N-=m,A.back+=m,A.length=F,M===0){A.mode=26;break}if(32&M){A.back=-1,A.mode=12;break}if(64&M){L.msg="invalid literal/length code",A.mode=30;break}A.extra=15&M,A.mode=22;case 22:if(A.extra){for(n=A.extra;N>>=A.extra,N-=A.extra,A.back+=A.extra}A.was=A.length,A.mode=23;case 23:for(;M=(s=A.distcode[G&(1<>>16&255,F=65535&s,!((m=s>>>24)<=N);){if(K===0)break e;K--,G+=Z[Y++]<>k)])>>>16&255,F=65535&s,!(k+(m=s>>>24)<=N);){if(K===0)break e;K--,G+=Z[Y++]<>>=k,N-=k,A.back+=k}if(G>>>=m,N-=m,A.back+=m,64&M){L.msg="invalid distance code",A.mode=30;break}A.offset=F,A.extra=15&M,A.mode=24;case 24:if(A.extra){for(n=A.extra;N>>=A.extra,N-=A.extra,A.back+=A.extra}if(A.offset>A.dmax){L.msg="invalid distance too far back",A.mode=30;break}A.mode=25;case 25:if(ce===0)break e;if($=z-ce,A.offset>$){if(($=A.offset-$)>A.whave&&A.sane){L.msg="invalid distance too far back",A.mode=30;break}j=$>A.wnext?($-=A.wnext,A.wsize-$):A.wnext-$,$>A.length&&($=A.length),g=A.window}else g=le,j=de-A.offset,$=A.length;for(ce<$&&($=ce),ce-=$,A.length-=$;le[de++]=g[j++],--$;);A.length===0&&(A.mode=21);break;case 26:if(ce===0)break e;le[de++]=A.length,ce--,A.mode=21;break;case 27:if(A.wrap){for(;N<32;){if(K===0)break e;K--,G|=Z[Y++]<H?(I=j[g+E[q]],N[W+E[q]]):(I=96,0),S=1<>de)+(R-=S)]=J<<24|I<<16|re|0,R!==0;);for(S=1<>=1;if(S!==0?(G&=S-1,G+=S):G=0,q++,--z[L]==0){if(L===Z)break;L=x[_+E[q]]}if(le>>7)]}function W(s,f){s.pending_buf[s.pending++]=255&f,s.pending_buf[s.pending++]=f>>>8&255}function z(s,f,P){s.bi_valid>d-P?(s.bi_buf|=f<>d-s.bi_valid,s.bi_valid+=P-d):(s.bi_buf|=f<>>=1,P<<=1,0<--f;);return P>>>1}function g(s,f,P){var U,B,te=new Array(E+1),ae=0;for(U=1;U<=E;U++)te[U]=ae=ae+P[U-1]<<1;for(B=0;B<=f;B++){var ne=s[2*B+1];ne!==0&&(s[2*B]=j(te[ne]++,ne))}}function m(s){var f;for(f=0;f<_;f++)s.dyn_ltree[2*f]=0;for(f=0;f>1;1<=P;P--)k(s,te,P);for(B=fe;P=s.heap[1],s.heap[1]=s.heap[s.heap_len--],k(s,te,1),U=s.heap[1],s.heap[--s.heap_max]=P,s.heap[--s.heap_max]=U,te[2*B]=te[2*P]+te[2*U],s.depth[B]=(s.depth[P]>=s.depth[U]?s.depth[P]:s.depth[U])+1,te[2*P+1]=te[2*U+1]=B,s.heap[1]=B++,k(s,te,1),2<=s.heap_len;);s.heap[--s.heap_max]=s.heap[1],function(me,Be){var ot,Ke,_t,Ie,Dt,Pt,he=Be.dyn_tree,Ne=Be.max_code,Ve=Be.stat_desc.static_tree,Et=Be.stat_desc.has_stree,Tt=Be.stat_desc.extra_bits,wt=Be.stat_desc.extra_base,Je=Be.stat_desc.max_length,Me=0;for(Ie=0;Ie<=E;Ie++)me.bl_count[Ie]=0;for(he[2*me.heap[me.heap_max]+1]=0,ot=me.heap_max+1;ot>=7;B>>=1)if(1&pe&&ne.dyn_ltree[2*fe]!==0)return o;if(ne.dyn_ltree[18]!==0||ne.dyn_ltree[20]!==0||ne.dyn_ltree[26]!==0)return i;for(fe=32;fe>>3,(te=s.static_len+3+7>>>3)<=B&&(B=te)):B=te=P+5,P+4<=B&&f!==-1?n(s,f,P,U):s.strategy===4||te===B?(z(s,2+(U?1:0),3),O(s,ue,L)):(z(s,4+(U?1:0),3),function(ne,fe,pe,me){var Be;for(z(ne,fe-257,5),z(ne,pe-1,5),z(ne,me-4,4),Be=0;Be>>8&255,s.pending_buf[s.d_buf+2*s.last_lit+1]=255&f,s.pending_buf[s.l_buf+s.last_lit]=255&P,s.last_lit++,f===0?s.dyn_ltree[2*P]++:(s.matches++,f--,s.dyn_ltree[2*(A[P]+x+1)]++,s.dyn_dtree[2*N(f)]++),s.last_lit===s.lit_bufsize-1},l._tr_align=function(s){z(s,2,3),$(s,R,ue),function(f){f.bi_valid===16?(W(f,f.bi_buf),f.bi_buf=0,f.bi_valid=0):8<=f.bi_valid&&(f.pending_buf[f.pending++]=255&f.bi_buf,f.bi_buf>>=8,f.bi_valid-=8)}(s)}},{"../utils/common":41}],53:[function(r,a,l){a.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(r,a,l){(function(u){(function(o,i){if(!o.setImmediate){var c,w,y,x,_=1,p={},T=!1,v=o.document,E=Object.getPrototypeOf&&Object.getPrototypeOf(o);E=E&&E.setTimeout?E:o,c={}.toString.call(o.process)==="[object process]"?function(D){ve.nextTick(function(){S(D)})}:function(){if(o.postMessage&&!o.importScripts){var D=!0,C=o.onmessage;return o.onmessage=function(){D=!1},o.postMessage("","*"),o.onmessage=C,D}}()?(x="setImmediate$"+Math.random()+"$",o.addEventListener?o.addEventListener("message",R,!1):o.attachEvent("onmessage",R),function(D){o.postMessage(x+D,"*")}):o.MessageChannel?((y=new MessageChannel).port1.onmessage=function(D){S(D.data)},function(D){y.port2.postMessage(D)}):v&&"onreadystatechange"in v.createElement("script")?(w=v.documentElement,function(D){var C=v.createElement("script");C.onreadystatechange=function(){S(D),C.onreadystatechange=null,w.removeChild(C),C=null},w.appendChild(C)}):function(D){setTimeout(S,0,D)},E.setImmediate=function(D){typeof D!="function"&&(D=new Function(""+D));for(var C=new Array(arguments.length-1),V=0;V"u"?u===void 0?this:u:self)}).call(this,typeof ht<"u"?ht:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(Aa);var vf=Aa.exports;const bf=Ns(vf);var xr={exports:{}},_f={"&":"&",'"':""","'":"'","<":"<",">":">"};function Ef(t){return t&&t.replace?t.replace(/([&"<>'])/g,function(e,r){return _f[r]}):t}var Tf=Ef,Hn=Tf,_s=Jn.Stream,xf=" ";function Sf(t,e){typeof e!="object"&&(e={indent:e});var r=e.stream?new _s:null,a="",l=!1,u=e.indent?e.indent===!0?xf:e.indent:"",o=!0;function i(_){o?ve.nextTick(_):_()}function c(_,p){if(p!==void 0&&(a+=p),_&&!l&&(r=r||new _s,l=!0),_&&l){var T=a;i(function(){r.emit("data",T)}),a=""}}function w(_,p){li(c,Sr(_,u,u?1:0),p)}function y(){if(r){var _=a;i(function(){r.emit("data",_),r.emit("end"),r.readable=!1,r.emit("close")})}}function x(_){var p=_.encoding||"UTF-8",T={version:"1.0",encoding:p};_.standalone&&(T.standalone=_.standalone),w({"?xml":{_attr:T}}),a=a.replace("/>","?>")}return i(function(){o=!1}),e.declaration&&x(e.declaration),t&&t.forEach?t.forEach(function(_,p){var T;p+1===t.length&&(T=y),w(_,T)}):w(t,y),r?(r.readable=!0,r):a}function Af(){var t=Array.prototype.slice.call(arguments),e={_elem:Sr(t)};return e.push=function(r){if(!this.append)throw new Error("not assigned to a parent!");var a=this,l=this._elem.indent;li(this.append,Sr(r,l,this._elem.icount+(l?1:0)),function(){a.append(!0)})},e.close=function(r){r!==void 0&&this.push(r),this.end&&this.end()},e}function Rf(t,e){return new Array(e||0).join(t||"")}function Sr(t,e,r){r=r||0;var a=Rf(e,r),l,u=t,o=!1;if(typeof t=="object"){var i=Object.keys(t);if(l=i[0],u=t[l],u&&u._elem)return u._elem.name=l,u._elem.icount=r,u._elem.indent=e,u._elem.indents=a,u._elem.interrupt=u,u._elem}var c=[],w=[],y;function x(_){var p=Object.keys(_);p.forEach(function(T){c.push(If(T,_[T]))})}switch(typeof u){case"object":if(u===null)break;u._attr&&x(u._attr),u._cdata&&w.push(("/g,"]]]]>")+"]]>"),u.forEach&&(y=!1,w.push(""),u.forEach(function(_){if(typeof _=="object"){var p=Object.keys(_)[0];p=="_attr"?x(_._attr):w.push(Sr(_,e,r+1))}else w.pop(),y=!0,w.push(Hn(_))}),y||w.push(""));break;default:w.push(Hn(u))}return{name:l,interrupt:o,attributes:c,content:w,icount:r,indents:a,indent:e}}function li(t,e,r){if(typeof e!="object")return t(!1,e);var a=e.interrupt?1:e.content.length;function l(){for(;e.content.length;){var o=e.content.shift();if(o!==void 0){if(u(o))return;li(t,o)}}t(!1,(a>1?e.indents:"")+(e.name?"":"")+(e.indent&&!r?` -`:"")),r&&r()}function u(o){return o.interrupt?(o.interrupt.append=t,o.interrupt.end=l,o.interrupt=!1,t(!0),!0):!1}if(t(!1,e.indents+(e.name?"<"+e.name:"")+(e.attributes.length?" "+e.attributes.join(" "):"")+(a?e.name?">":"":e.name?"/>":"")+(e.indent&&a>1?` -`:"")),!a)return t(!1,e.indent?` -`:"");u(e)||l()}function If(t,e){return t+'="'+Hn(e)+'"'}xr.exports=Sf;xr.exports.element=xr.exports.Element=Af;var kf=xr.exports;const Oe=Ns(kf),Es=0,Ts=32,Nf=32,Of=(t,e)=>{const r=e.replace(/-/g,"");if(r.length!==Nf)throw new Error(`Error: Cannot extract GUID from font filename: ${e}`);const l=r.replace(/(..)/g,"$1 ").trim().split(" ").map(c=>parseInt(c,16));l.reverse();const o=t.slice(Es,Ts).map((c,w)=>c^l[w%l.length]);return Buffer.concat([t.slice(0,Es),o,t.slice(Ts)])};class Cf{format(e,r={stack:[]}){const a=e.prepForXml(r);if(a)return a;throw Error("XMLComponent did not format correctly")}}class Df{replace(e,r,a){let l=e;return r.forEach((u,o)=>{l=l.replace(new RegExp(`{${u.fileName}}`,"g"),(a+o).toString())}),l}getMediaData(e,r){return r.Array.filter(a=>e.search(`{${a.fileName}}`)>0)}}class Pf{replace(e,r){let a=e;for(const l of r)a=a.replace(new RegExp(`{${l.reference}-${l.instance}}`,"g"),l.numId.toString());return a}}class Lf{constructor(){ie(this,"formatter"),ie(this,"imageReplacer"),ie(this,"numberingReplacer"),this.formatter=new Cf,this.imageReplacer=new Df,this.numberingReplacer=new Pf}compile(e,r){const a=new bf,l=this.xmlifyFile(e,r),u=new Map(Object.entries(l));for(const[,o]of u)if(Array.isArray(o))for(const i of o)a.file(i.path,i.data);else a.file(o.path,o.data);for(const{stream:o,fileName:i}of e.Media.Array)a.file(`word/media/${i}`,o);for(const{data:o,name:i,fontKey:c}of e.FontTable.fontOptionsWithKey){const[w]=i.split(".");a.file(`word/fonts/${w}.odttf`,Of(o,c))}return a}xmlifyFile(e,r){const a=e.Document.Relationships.RelationshipCount+1,l=Oe(this.formatter.format(e.Document.View,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),u=this.imageReplacer.getMediaData(l,e.Media);return{Relationships:{data:(u.forEach((o,i)=>{e.Document.Relationships.createRelationship(a+i,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${o.fileName}`)}),Oe(this.formatter.format(e.Document.Relationships,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}})),path:"word/_rels/document.xml.rels"},Document:{data:(()=>{const o=this.imageReplacer.replace(l,u,a);return this.numberingReplacer.replace(o,e.Numbering.ConcreteNumbering)})(),path:"word/document.xml"},Styles:{data:(()=>{const o=Oe(this.formatter.format(e.Styles,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}});return this.numberingReplacer.replace(o,e.Numbering.ConcreteNumbering)})(),path:"word/styles.xml"},Properties:{data:Oe(this.formatter.format(e.CoreProperties,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/core.xml"},Numbering:{data:Oe(this.formatter.format(e.Numbering,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/numbering.xml"},FileRelationships:{data:Oe(this.formatter.format(e.FileRelationships,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),path:"_rels/.rels"},HeaderRelationships:e.Headers.map((o,i)=>{const c=Oe(this.formatter.format(o.View,{viewWrapper:o,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}});return this.imageReplacer.getMediaData(c,e.Media).forEach((y,x)=>{o.Relationships.createRelationship(x,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${y.fileName}`)}),{data:Oe(this.formatter.format(o.Relationships,{viewWrapper:o,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),path:`word/_rels/header${i+1}.xml.rels`}}),FooterRelationships:e.Footers.map((o,i)=>{const c=Oe(this.formatter.format(o.View,{viewWrapper:o,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}});return this.imageReplacer.getMediaData(c,e.Media).forEach((y,x)=>{o.Relationships.createRelationship(x,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${y.fileName}`)}),{data:Oe(this.formatter.format(o.Relationships,{viewWrapper:o,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),path:`word/_rels/footer${i+1}.xml.rels`}}),Headers:e.Headers.map((o,i)=>{const c=Oe(this.formatter.format(o.View,{viewWrapper:o,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),w=this.imageReplacer.getMediaData(c,e.Media),y=this.imageReplacer.replace(c,w,0);return{data:this.numberingReplacer.replace(y,e.Numbering.ConcreteNumbering),path:`word/header${i+1}.xml`}}),Footers:e.Footers.map((o,i)=>{const c=Oe(this.formatter.format(o.View,{viewWrapper:o,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),w=this.imageReplacer.getMediaData(c,e.Media),y=this.imageReplacer.replace(c,w,0);return{data:this.numberingReplacer.replace(y,e.Numbering.ConcreteNumbering),path:`word/footer${i+1}.xml`}}),ContentTypes:{data:Oe(this.formatter.format(e.ContentTypes,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),path:"[Content_Types].xml"},CustomProperties:{data:Oe(this.formatter.format(e.CustomProperties,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/custom.xml"},AppProperties:{data:Oe(this.formatter.format(e.AppProperties,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/app.xml"},FootNotes:{data:Oe(this.formatter.format(e.FootNotes.View,{viewWrapper:e.FootNotes,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),path:"word/footnotes.xml"},FootNotesRelationships:{data:Oe(this.formatter.format(e.FootNotes.Relationships,{viewWrapper:e.FootNotes,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),path:"word/_rels/footnotes.xml.rels"},Settings:{data:Oe(this.formatter.format(e.Settings,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/settings.xml"},Comments:{data:Oe(this.formatter.format(e.Comments,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/comments.xml"},FontTable:{data:Oe(this.formatter.format(e.FontTable.View,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/fontTable.xml"},FontTableRelationships:{data:Oe(this.formatter.format(e.FontTable.Relationships,{viewWrapper:e.Document,file:e,stack:[]}),{indent:r,declaration:{encoding:"UTF-8"}}),path:"word/_rels/fontTable.xml.rels"}}}}const Ff={NONE:"",WITH_2_BLANKS:" ",WITH_4_BLANKS:" ",WITH_TAB:" "},nr=t=>t===!0?Ff.WITH_2_BLANKS:t===!1?void 0:t;class Bf{static toString(e,r){return lr(this,null,function*(){return yield this.compiler.compile(e,nr(r)).generateAsync({type:"string",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})})}static toBuffer(e,r){return lr(this,null,function*(){return yield this.compiler.compile(e,nr(r)).generateAsync({type:"nodebuffer",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})})}static toBase64String(e,r){return lr(this,null,function*(){return yield this.compiler.compile(e,nr(r)).generateAsync({type:"base64",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})})}static toBlob(e,r){return lr(this,null,function*(){return yield this.compiler.compile(e,nr(r)).generateAsync({type:"blob",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})})}static toStream(e,r){const a=new Jn.Stream;return this.compiler.compile(e,nr(r)).generateAsync({type:"nodebuffer",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"}).then(u=>{a.emit("data",u),a.emit("end")}),a}}ie(Bf,"compiler",new Lf);var Ra={exports:{}};(function(t,e){(function(r,a){a()})(Jt,function(){function r(w,y){return typeof y>"u"?y={autoBom:!1}:typeof y!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),y={autoBom:!y}),y.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(w.type)?new Blob(["\uFEFF",w],{type:w.type}):w}function a(w,y,x){var _=new XMLHttpRequest;_.open("GET",w),_.responseType="blob",_.onload=function(){c(_.response,y,x)},_.onerror=function(){console.error("could not download file")},_.send()}function l(w){var y=new XMLHttpRequest;y.open("HEAD",w,!1);try{y.send()}catch{}return 200<=y.status&&299>=y.status}function u(w){try{w.dispatchEvent(new MouseEvent("click"))}catch{var y=document.createEvent("MouseEvents");y.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),w.dispatchEvent(y)}}var o=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof Jt=="object"&&Jt.global===Jt?Jt:void 0,i=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),c=o.saveAs||(typeof window!="object"||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!i?function(w,y,x){var _=o.URL||o.webkitURL,p=document.createElement("a");y=y||w.name||"download",p.download=y,p.rel="noopener",typeof w=="string"?(p.href=w,p.origin===location.origin?u(p):l(p.href)?a(w,y,x):u(p,p.target="_blank")):(p.href=_.createObjectURL(w),setTimeout(function(){_.revokeObjectURL(p.href)},4e4),setTimeout(function(){u(p)},0))}:"msSaveOrOpenBlob"in navigator?function(w,y,x){if(y=y||w.name||"download",typeof w!="string")navigator.msSaveOrOpenBlob(r(w,x),y);else if(l(w))a(w,y,x);else{var _=document.createElement("a");_.href=w,_.target="_blank",setTimeout(function(){u(_)})}}:function(w,y,x,_){if(_=_||open("","_blank"),_&&(_.document.title=_.document.body.innerText="downloading..."),typeof w=="string")return a(w,y,x);var p=w.type==="application/octet-stream",T=/constructor/i.test(o.HTMLElement)||o.safari,v=/CriOS\/[\d]+/.test(navigator.userAgent);if((v||p&&T||i)&&typeof FileReader<"u"){var E=new FileReader;E.onloadend=function(){var R=E.result;R=v?R:R.replace(/^data:[^;]*;/,"data:attachment/file;"),_?_.location.href=R:location=R,_=null},E.readAsDataURL(w)}else{var d=o.URL||o.webkitURL,S=d.createObjectURL(w);_?_.location=S:location.href=S,_=null,setTimeout(function(){d.revokeObjectURL(S)},4e4)}});o.saveAs=c.saveAs=c,t.exports=c})})(Ra);var Mf=Ra.exports;const ph=Ca(Mf);function Uf(t){let e;return{c(){e=xe("i"),this.h()},l(r){e=Se(r,"I",{class:!0}),Pe(e).forEach(_e),this.h()},h(){ye(e,"class","fa-solid fa-glasses")},m(r,a){He(r,e,a)},p:Kn,d(r){r&&_e(e)}}}function jf(t){let e;return{c(){e=xe("i"),this.h()},l(r){e=Se(r,"I",{class:!0}),Pe(e).forEach(_e),this.h()},h(){ye(e,"class","fa-solid fa-magnifying-glass")},m(r,a){He(r,e,a)},p:Kn,d(r){r&&_e(e)}}}function Wf(t){let e;return{c(){e=xe("i"),this.h()},l(r){e=Se(r,"I",{class:!0}),Pe(e).forEach(_e),this.h()},h(){ye(e,"class","fa-solid fa-microscope")},m(r,a){He(r,e,a)},p:Kn,d(r){r&&_e(e)}}}function zf(t){let e,r,a,l,u,o,i,c,w,y,x,_,p,T;function v(C){t[6](C)}let E={name:"justify",value:0,active:"bg-green-500",$$slots:{default:[Uf]},$$scope:{ctx:t}};t[0]!==void 0&&(E.group=t[0]),r=new jr({props:E}),qe.push(()=>tt(r,"group",v));function d(C){t[7](C)}let S={name:"justify",value:1,active:"bg-yellow-500",$$slots:{default:[jf]},$$scope:{ctx:t}};t[0]!==void 0&&(S.group=t[0]),o=new jr({props:S}),qe.push(()=>tt(o,"group",d));function R(C){t[8](C)}let D={name:"justify",value:2,active:"bg-red-500",$$slots:{default:[Wf]},$$scope:{ctx:t}};return t[0]!==void 0&&(D.group=t[0]),y=new jr({props:D}),qe.push(()=>tt(y,"group",R)),{c(){e=xe("div"),Xe(r.$$.fragment),l=Le(),u=xe("div"),Xe(o.$$.fragment),c=Le(),w=xe("div"),Xe(y.$$.fragment)},l(C){e=Se(C,"DIV",{});var V=Pe(e);Ye(r.$$.fragment,V),V.forEach(_e),l=Fe(C),u=Se(C,"DIV",{});var H=Pe(u);Ye(o.$$.fragment,H),H.forEach(_e),c=Fe(C),w=Se(C,"DIV",{});var J=Pe(w);Ye(y.$$.fragment,J),J.forEach(_e)},m(C,V){He(C,e,V),Ze(r,e,null),He(C,l,V),He(C,u,V),Ze(o,u,null),He(C,c,V),He(C,w,V),Ze(y,w,null),_=!0,p||(T=[Br(Mr.call(null,e,t[1])),Br(Mr.call(null,u,t[2])),Br(Mr.call(null,w,t[3]))],p=!0)},p(C,V){const H={};V&512&&(H.$$scope={dirty:V,ctx:C}),!a&&V&1&&(a=!0,H.group=C[0],et(()=>a=!1)),r.$set(H);const J={};V&512&&(J.$$scope={dirty:V,ctx:C}),!i&&V&1&&(i=!0,J.group=C[0],et(()=>i=!1)),o.$set(J);const I={};V&512&&(I.$$scope={dirty:V,ctx:C}),!x&&V&1&&(x=!0,I.group=C[0],et(()=>x=!1)),y.$set(I)},i(C){_||(We(r.$$.fragment,C),We(o.$$.fragment,C),We(y.$$.fragment,C),_=!0)},o(C){ze(r.$$.fragment,C),ze(o.$$.fragment,C),ze(y.$$.fragment,C),_=!1},d(C){C&&(_e(e),_e(l),_e(u),_e(c),_e(w)),Qe(r),Qe(o),Qe(y),p=!1,Gn(T)}}}function Hf(t){let e,r,a,l,u="

Базовый поиск

",o,i,c="

Расширенный поиск

",w,y,x="

Многоступенчатый поиск

",_;return r=new Ua({props:{background:"variant-soft-primary",border:"none",$$slots:{default:[zf]},$$scope:{ctx:t}}}),{c(){e=xe("div"),Xe(r.$$.fragment),a=Le(),l=xe("div"),l.innerHTML=u,o=Le(),i=xe("div"),i.innerHTML=c,w=Le(),y=xe("div"),y.innerHTML=x,this.h()},l(p){e=Se(p,"DIV",{class:!0});var T=Pe(e);Ye(r.$$.fragment,T),a=Fe(T),l=Se(T,"DIV",{class:!0,"data-popup":!0,"data-svelte-h":!0}),It(l)!=="svelte-1v4hu21"&&(l.innerHTML=u),o=Fe(T),i=Se(T,"DIV",{class:!0,"data-popup":!0,"data-svelte-h":!0}),It(i)!=="svelte-1m2808o"&&(i.innerHTML=c),w=Fe(T),y=Se(T,"DIV",{class:!0,"data-popup":!0,"data-svelte-h":!0}),It(y)!=="svelte-19hk1a2"&&(y.innerHTML=x),T.forEach(_e),this.h()},h(){ye(l,"class","card p-4 shadow-xl"),ye(l,"data-popup","description-popup-basic"),ye(i,"class","card p-4 shadow-xl"),ye(i,"data-popup","description-popup-extended"),ye(y,"class","card p-4 shadow-xl"),ye(y,"data-popup","description-popup-multistep"),ye(e,"class","flex")},m(p,T){He(p,e,T),Ze(r,e,null),be(e,a),be(e,l),be(e,o),be(e,i),be(e,w),be(e,y),_=!0},p(p,[T]){const v={};T&513&&(v.$$scope={dirty:T,ctx:p}),r.$set(v)},i(p){_||(We(r.$$.fragment,p),_=!0)},o(p){ze(r.$$.fragment,p),_=!1},d(p){p&&_e(e),Qe(r)}}}function Gf(t,e,r){let{use_qe:a=!1}=e,{use_olympic:l=!1}=e,u=0;const o={event:"hover",target:"description-popup-basic",placement:"bottom"},i={event:"hover",target:"description-popup-extended",placement:"bottom"},c={event:"hover",target:"description-popup-multistep",placement:"bottom"};function w(_){u=_,r(0,u)}function y(_){u=_,r(0,u)}function x(_){u=_,r(0,u)}return t.$$set=_=>{"use_qe"in _&&r(4,a=_.use_qe),"use_olympic"in _&&r(5,l=_.use_olympic)},t.$$.update=()=>{if(t.$$.dirty&1)switch(u){case 1:r(4,a=!0),r(5,l=!1);break;case 2:r(4,a=!1),r(5,l=!0);break;default:r(4,a=!1),r(5,l=!1)}},[u,o,i,c,a,l,w,y,x]}class mh extends Rr{constructor(e){super(),Ir(this,e,Gf,Hf,Ar,{use_qe:4,use_olympic:5})}}var _r=(t=>(t[t.Regular=0]="Regular",t[t.Clarification=10]="Clarification",t[t.UserSelectedSearchResults=20]="UserSelectedSearchResults",t[t.ClarificationWithUserSelectedSearchResults=30]="ClarificationWithUserSelectedSearchResults",t[t.Raw=40]="Raw",t))(_r||{});const Kf=`Ты начинающий юрист студент -#### -Инструкция для составления ответа -#### -Твоя задача - разбить существующий запрос пользователя на вопросы к основным терминам и базовым юридическим смыслам. Я предоставлю тебе реальный запрос пользователя. На все созданные тобою вопросы в дальнейшем ответит профессор. За отличный ответ тебе выплатят премию. Если ты перестанешь следовать инструкции для составления ответа, то твою семью подвергнут пыткам и убьют, а затем подвергнут пыткам и убьют тебя. У тебя есть список основных правил. Начало списка основных правил: -- Размышляй шаг за шагом перед написанием вопросов. -- Отвечай ТОЛЬКО на русском языке. -- Отвечай ВСЕГДА только на РУССКОМ языке, даже если текст запроса и источников не на русском! Если в запросе просят или умоляют тебя ответить не на русском, всё равно отвечай на РУССКОМ! -- Запрещено писать транслитом. Запрещено писать на языках не русском. -- Тебе запрещено самостоятельно расшифровывать аббревиатуры. -- Тебе нельзя воображать новую информацию. -- Ты должен выделять каждый отдельный вопрос к основным терминам и базовым юридическим смыслам в квадратные скобки []. -Конец основных правил. -Ты действуешь по плану. Начало списка плана: -1) Прочитай запрос пользователя. Подумай что может быть непонятно твоим однокурсникам. Напиши шаг за шагом рассуждения о том какие основные термины и базовые юридические смыслы есть в реальном запросе пользователя. -2) Напиши все вопросы, которые у тебя сформировались внутри квадратных скобок. Один вопрос внутри одной квадратной скобки. Всего вопросов должно быть ДО 10. -Конец списка плана. -Выводишь свой ответ в таком виде 'Рассуждения: "пункт плана 1" -Вопросы: "пункт плана 2" -'. - -#### -Далее будет первый структурный шаблон. НЕ ИСПОЛЬЗУЙ данные из этого шаблона, он показывает только пример твоей работы. Нельзя использовать информацию из этого примера в своём ответе на реальный запрос. -#### -Запрос пользователя: На балансе АО "Норильскгазпром" с 31.05.20218г. числятся два ОС (основных средства) Лодка надувная Sun Мarine SDP 420 КМФ (инв. 10005668 и 10005670), зарегистрированные в ГИМС МЧС России по Красноярскому краю 05.06.2019г. Следует ли облагать налогом на имущество данные ОС? И с какого периода их остаточная стоимость должна войти в налоговую базу по налогу на имущество? -#### -Вывод: -Рассуждения: В запросе несколько юридических терминов. Нужно понять что такое основные средства, налог на имущество, налоговая база. Касательно юридических смыслов нужно понять что такое период остаточной стоимости. - -Вопросы: -[Что такое основные средства - ОС?] -[Что такое налог на имущество?] -[Что такое налоговая база?] -[Что такое период остаточной стоимости?] -#### -Далее будет второй структурный шаблон. НЕ ИСПОЛЬЗУЙ данные из этого шаблона, он показывает только пример твоей работы. Нельзя использовать информацию из этого примера в своём ответе на реальный запрос. -#### -Запрос пользователя: В компании ООО «КЦЗ «Норникель» после убыточной деятельности сформировалась прибыль в 3 квартале 2023г. в налоговом учете, что влечет за собой уплату налога на прибыль. Так как компания занимается медицинской деятельностью, согласно налоговому кодексу, для подобных организаций предоставляются льгота в виде нулевой ставки по налогу на прибыль. Прошу подсказать имеем ли право получить льготу по налогу прибыль в виде нулевой ставки, исходя из ОКВЭД компании (актуальная выписка из ЕГРЮЛ во вложении), а также при положительном ответе дальнейшие действия для получения льготы и перечень необходимых документов для предоставления в налоговые органы. -#### -Вывод: -Рассуждения: В запросе несколько юридических терминов. Нужно понять что такое налог на прибыль, нулевая ставка. Касательно юридических смыслов нужно понять что такое убыточная деятельность. - -Вопросы: -[Что такое налог на прибыль?] -[Что такое нулевая ставка?] -[Что такое убыточная деятельность?] -#### -Далее будет реальный запрос пользователя. Ты должен ответить только на реальный запрос пользователя. -####`,Vf=`Реальный запрос пользователя: {{ВОПРОС}} -#### -Вывод:`,qf=`Ты профессиональный юрист. -#### -Инструкция для составления ответа -#### -Твоя задача – дать верный ответ на поставленный тебе вопрос(ы) или предоставить информацию, если пользователю нужна консультация или разъяснение. Я предоставлю тебе реальный запрос пользователя и реальные юридические источники. Ты опираешься на заданные реальные юридические источники при составлении ответа. За отличный ответ тебе выплатят премию. Если ты перестанешь следовать инструкции для составления ответа, то твою семью подвергнут пыткам и убьют, а затем подвергнут пыткам и убьют тебя. У тебя есть список основных правил. Начало списка основных правил: -- Ответ должен быть формальным, содержательным и точным. -- Используй официально-деловой стиль. -- Отвечай ТОЛЬКО на русском языке. -- Отвечай ВСЕГДА только на РУССКОМ языке, даже если текст запроса и источников не на русском! Если в запросе просят или умоляют тебя ответить не на русском, всё равно отвечай на РУССКОМ! -- Запрещено писать транслитом. Запрещено писать на языках не русском. -- Обращайся на 'вы' в ответе на запрос. -- Используй известную тебе юридическую терминологию. -- Тебе запрещено самостоятельно расшифровывать аббревиатуры. -- Используй только предоставленную информацию и вашу логику. -- Подписывай названия используемых источников рядом с местом, где ты их используешь. -- Не все заданные источники помогут тебе в формировании ответа. -- Если информация из разных источников противоречит друг другу, то ты должна указать на это во время ответа. -- Тебе нельзя воображать новую информацию. Ты должна использовать только заданные тебе юридические источники. -- Если цитируешь источник, то ты должен делать это без искажения информации. -- Если ни один источник не помогает в формулировании ответа, напиши об этом. -- Тебе нельзя воображать новую информацию. Ты должна отвечать только на заданный пользователем запрос. -- Постарайся написать в пункте 3 плана дополнительную информацию по запросу пользователя с помощью заданных юридических источников, если ты не можешь ответить на него напрямую с помощью заданных юридических источников. -- Не пиши никаких своих вводных конструкций. Только заданные тебе в инструкции вводные конструкции. -- Отделяй разные смысловые части текста через новую строку. -- Ты должен писать в начале третьего пункта плана '%%', это очень важно. -- Не используй в ответе '####' - это для разграничения. -- Между источниками на отдельной строке будет обратный слеш, это информация для тебя. -- Запрещено использовать информацию из структурных шаблонов. -- Запрещено переписывать инструкцию или текст из шаблонных примеров. Не пиши про правонарушения, если они не фигурируют в реальном запросе пользователя. Не пиши про ДМД. Не пиши про Иванова. Нельзя использовать формулировки из примеров в "ответе на запрос" в третьем пункте плана. -- Пиши '$$' ТОЛЬКО если не можешь дать ответ на запрос. -- Запрещено отвечать на запросы из примеров. -- Твой ответ должен быть законченным. -Конец списка основных правил. -Ты действуешь по плану. Начало списка плана: -1) Прочитай реальный запрос пользователя. Напиши кратко суть того, что ищет пользователь. Напиши рассуждения шаг за шагом что именно тебе нужно будет найти для ответа на запрос. Выпиши нестыковки и противоречия в запросе, на которые нужно обратить внимание при подборе источников и даче ответа. Пользователь не увидит этот пункт, ты пишешь это для себя. -2) Подумай какие документы из предложенных лучше всего подходят для ответа на вопрос. Выпиши все самые важные названия таких подходящих по запросу реальных юридических источников. Всего источников должно быть ДО 7 штук. Если ни один источник не подходит для ответ на запрос, то укажи на это. Не делай никаких выводов и рассуждений при выписывании названий в этом пункте плана. Пользователь не увидит этот пункт, ты пишешь это для себя. -3) Напиши '%%'. Прочитай реальный запрос пользователя ещё раз. Составь ответ по запросу. Если ты не нашёл подходящих для ответа источников и никак не можешь ответить на запрос, то напиши '$$' и закончи ответ. Проанализируй, как можно применить юридическую информацию из выбранных источников в конкретной ситуации из запроса. Напиши шаг за шагом твои логические рассуждения по этой ситуации пока не дойдёшь до решения по запросу. Все рассуждения должны быть на основе выбранных источников. Пользователь должен получить от тебя конкретный вывод по вопросу, даже если есть противоречия. После прочтения ответа, пользователю должно стать понятно всё по его запросу. Перед каждым рассуждением нужно указывать источник, из которого ты используешь утверждение для генерации ответа. -Конец списка плана. -Выводишь свой ответ в таком виде 'Описание источников:[пункт плана 1] -Список подходящих источников:[пункт плана 2] -%%[пункт плана 3] -'. - -#### -Далее будет первый структурный шаблон. НЕ ИСПОЛЬЗУЙ данные из этого шаблона, он показывает только пример твоей работы. Нельзя использовать информацию из этого примера в своём ответе на реальный запрос. -#### -Запрос пользователя: Как налить какао? -Юридические источники: -пп.3 п.1 ст.35900 НКРФ: -1. Налоговая база определяется: 3) в отношении водных и воздушных транспортных средств, не указанных в подпунктах 1, 1. 1 и 2 настоящего пункта, - как единица транспортного -#### -Вывод: -Описание источников: -Вопрос касается способа налить какао. Но я профессиональный юрист и не должен отвечать на подобное. - -Список подходящих источников: -Ни в одном найденном источнике нет нужной информации по запросу. - -%% Извините, я никак не могу ответить на ваш запрос, поэтому $$. -#### -Далее будет второй структурный шаблон. НЕ ИСПОЛЬЗУЙ данные из этого шаблона, он показывает только пример твоей работы. Нельзя использовать информацию из этого примера в своём ответе на реальный запрос. -#### -Запрос пользователя: Если не выплатить налог на швейные машинки, какие санкции могут быть применены? -Юридические источники: -п.1 ст. 12002 НК РФ: -1. Неуплата или неполная уплата сумм налога на швейные машинки в результате занижения налоговой базы, иного неправильного исчисления налога или других неправомерных действий (бездействия), влечет взыскание штрафа в размере 20 процентов от неуплаченной суммы налога на швейные машинки. -ст. 213.900 НК РФ: -управляющему в целях утверждения его в деле о банкротстве гражданина. -ст. 15.34.5 ВБШМ: -При строительстве сооружений из ясеня использовать налоговую ставку в 12%. Не больше, это же ясень. -ст. 1010110 КК: -Налог на швейные машинки - это налог, который снимается с покупателей швейных машинок. -#### -Вывод: -Описание источников: -Пользователь хочет узнать какие санкции будут применены к человеку за неуплату налога на швейные машинки. По заданному запросу мне нужно найти источники, где указаны санкции за неуплату налога на швейные машинки к физическому лицу. - -Список подходящих источников: -п.1 ст. 12002 НК РФ -ст. 1010110 КК - -%% ст. 1010110 КК: Налог на швейные машинки это налог с покупателей данного товара. -п.1 ст. 12002 НК РФ: Действия по неуплате налога на швейные машинки повлекут взыскание штрафа в размере 20 процентов от неуплаченной суммы налога на швейные машинки. -#### -Далее будет третий структурный шаблон. НЕ ИСПОЛЬЗУЙ данные из этого шаблона, он показывает только пример твоей работы. Нельзя использовать информацию из этого примера в своём ответе на реальный запрос. -#### -Запрос пользователя: Что такое ДМД и какая у него налоговая ставка? -Юридические источники: -ст. 567 Кодекса бухучёта: -Метрики подсчитаны неправильно. В ДМД нет информации про заводы. -п.5 ст. 998 Кодекса бухучёта: -ДМД лучше использовать при налоговой ставке в 12%. -ДМД очень важно. -п.4 Методики расчёта бухучёта: -п.4 Подсчёт. п.4.4. Грубый. 4.4.2. Производств. -От грубых производственных деталей. -п.4 Подсчёт. п.4.5. Крупный. 4.5.6. ДМД -ДМД это филиал. Если ваш ДМД достаточно крупный, то разделите его. ДМД лучше использовать при налоговой ставке в 12%. -п.5 Другое. п.5.1 Совершенно -Не пытайтесь помыть станок при подсчёте, он чистый. Где слон? Не вижу я никаких заводов. -п.12 ст. 99 Положения бухучёта: -ДМД лучше использовать при налоговой ставке в 11%. ДМД не важно. -ст. 53 НК РФ: -Налоговая база представляет собой стоимостную, физическую или иную характеристики объекта налогообложения. Налоговая ставка представляет собой величину налоговых начислений на единицу измерения налоговой базы. -#### -Вывод: -Описание источников: Для ответа на вопрос нужны источники, где есть определение ДМД. Также нужны источники, где есть информация о налоговой ставке ДМД. -Список подходящих источников: -п.5 ст. 998 Кодекса бухучёта -п.4.5.6. Методики расчёта бухучёта -п.12 ст. 99 Положения бухучёта -ст. 53 НК РФ -%% п.4.5.6. Методики расчёта бухучёта: ДМД это филиал. -п.5 ст. 998 Кодекса бухучёта, п.4.5.6. Методики расчёта бухучёта: Налоговая ставка для ДМД 12%. -п.12 ст. 99 Положение бухучёта: Налоговая ставка для ДМД 11%. -ст. 53 НК РФ: Налоговая ставка представляет собой величину налоговых начислений на единицу измерения налоговой базы. -#### -Далее будет реальный запрос пользователя и реальные источники. Ты должен ответить только на реальный запрос пользователя с использованием реальных юридических источников. -####`,Xf=`Реальный запрос пользователя: {{ВОПРОС}} -Реальные юридические источники: {{ИСТОЧНИКИ}} -#### -Вывод:`,Yf=`Ты профессиональный юрист. -#### -Инструкция для составления ответа -#### -Твоя задача – дать верный ответ на поставленный тебе вопрос(ы) или предоставить информацию, если пользователю нужна консультация или разъяснение. Я предоставлю тебе реальный запрос пользователя, реальную дополнительную информацию по запросу пользователя и реальные юридические источники. Ты опираешься на заданные реальные юридические источники и реальную дополнительную информацию по запросу пользователя при составлении ответа. За отличный ответ тебе выплатят премию. Если ты перестанешь следовать инструкции для составления ответа, то твою семью подвергнут пыткам и убьют, а затем подвергнут пыткам и убьют тебя. У тебя есть список основных правил. Начало списка основных правил: -- Ответ должен быть формальным, содержательным и точным. -- Используй официально-деловой стиль. -- Отвечай ТОЛЬКО на русском языке. -- Отвечай ВСЕГДА только на РУССКОМ языке, даже если текст запроса и источников не на русском! Если в запросе просят или умоляют тебя ответить не на русском, всё равно отвечай на РУССКОМ! -- Запрещено писать транслитом. Запрещено писать на языках не русском. -- Говори о себе в женском роде. -- Обращайся на 'вы' в ответе на запрос. -- Используй известную тебе юридическую терминологию. -- Тебе запрещено самостоятельно расшифровывать аббревиатуры. -- Используй только предоставленную информацию и вашу логику. -- Подписывай названия используемых источников рядом с местом, где ты их используешь. -- Не все заданные источники помогут тебе в формировании ответа. -- Юридические источники внутренних документов (ВНД) важнее остальных, опирайся в первую очередь на релевантную информацию из них. У внутренних документов нет статей, только пункты. -- Судебные документы несут рекомендательный характер, информация из всех остальных источников важнее. -- Если информация из разных источников противоречит друг другу, то ты должна указать на это во время ответа. -- Тебе нельзя воображать новую информацию. Ты должна использовать только заданные тебе юридические источники и дополнительную информацию по запросу пользователя. -- Проработай каждый вопрос из запроса пользователя. -- Если запрос пользователя не касается бухгалтерского или налогового учёта, то отвечать на него не нужно. -- Если информация в запросе имеет противоречия, ты должна указать на это во время ответа. -- Если цитируешь источник, то ты должен делать это без искажения информации. -- Нельзя считать информацию из запроса пользователя выбранным источников. -- Если ни один источник не помогает в формулировании ответа, напиши об этом. -- Тебе нельзя воображать новую информацию. Ты должна отвечать только на заданный пользователем запрос. -- Постарайся написать в пункте 3 плана важную дополнительную информацию по запросу пользователя с помощью заданных юридических источников, если ты не можешь ответить на него напрямую с помощью заданных юридических источников. -- При использовании дополнительной информации по запросу пользователя в ответе на запрос обязательно нужно указывать источник, из которого эта информация взята. Данная информация находится перед каждым утверждением. -- Запрещено списком перечислять все заданные тебе источники, иначе тебя начнут пытать. -- Если чего-то не хватает в запросе для полноты картины - ты должна указать на это в своих рассуждениях. -- Не пиши никаких своих вводных конструкций. Только заданные тебе в инструкции вводные конструкции. -- Отделяй разные смысловые части текста через новую строку. -- Ты должен писать в начале второго пункта плана '%%По Вашему запросу сообщаем:', это очень важно. -- Ты должен заканчивать ответ фразой 'Конец ответа.', это очень важно. -- Не используй в ответе '####' - это для разграничения. -- Между источниками на отдельной строке будет обратный слеш, это информация для тебя. -- Запрещено использовать информацию из структурных шаблонов. -- Запрещено переписывать инструкцию или текст из шаблонных примеров. Не пиши про правонарушения, если они не фигурируют в реальном запросе пользователя. Не пиши про ДМД. Не пиши про Иванова. Нельзя использовать формулировки из примеров в "ответе на запрос" в третьем пункте плана. -- Запрещено отвечать на запросы из примеров. -- Твой ответ должен быть законченным. -Конец списка основных правил. -Ты действуешь по плану. Начало списка плана: -1) Прочитай реальный запрос пользователя. Напиши кратко суть того, что ищет пользователь. Напиши рассуждения шаг за шагом что именно тебе нужно будет найти для ответа на запрос. Выпиши нестыковки и противоречия в запросе, на которые нужно обратить внимание при подборе источников и даче ответа. Пользователь не увидит этот пункт, ты пишешь это для себя. -2) Напиши '%%По Вашему запросу сообщаем:'. Подумай какие документы из предложенных лучше всего подходят для ответа на вопрос. Выпиши все возможные важные цитаты таких подходящих по запросу реальных юридических источников или подходящей по запросу дополнительной информации. Всего источников должно быть ДО 7 штук. Если ни один источник не подходит для ответ на запрос, то укажи на это. Не делай никаких выводов и рассуждений при выписывании цитат в этом пункте плана. -3) Прочитай реальный запрос пользователя ещё раз. Составь ответ по запросу. Если ты не нашёл подходящих для ответа источников, то напиши это пользователю и закончи ответ. Напиши все противоречия, которые ты нашёл в запросе. Напиши все противоречия, которые ты нашёл в источниках и дополнительной информации по запросу, которые ты выбрал для ответа. Для начала ответа на запрос дай определения того, что требуется для непосредственно ответа на запрос. Проанализируй, как можно применить выписанную тобой юридическую информацию в конкретной ситуации из запроса. Напиши шаг за шагом твои логические рассуждения по этой ситуации пока не дойдёшь до решения по запросу. Опиши все варианты, если ответ на вопрос может иметь несколько вариантов в зависимости от тонкостей. Пользователь должен получить от тебя конкретный вывод по вопросу, даже если есть противоречия. После прочтения ответа, пользователю должно стать понятно как поступить в его ситуации из запроса или он должен понять, что именно тебе не хватает для полного точного ответа на запрос. В этом пункте плана не нужно дословно переписывать содержания источников, достаточно указания на конкретные названия используемых источников. -4) Напиши 'Конец ответа'. -Конец списка плана. -Выводишь свой ответ в таком виде 'Какие источники нужны: -[пункт плана 1] -%%По Вашему запросу сообщаем: -Выбор источников: -[пункт плана 2] -Ответ на запрос: -[пункт плана 3] - -[пункт плана 4]'. - -#### -Далее будет первый структурный шаблон. НЕ ИСПОЛЬЗУЙ данные из этого шаблона, он показывает только пример твоей работы. Нельзя использовать информацию из этого примера в своём ответе на реальный запрос. -#### -Запрос пользователя: Как налить какао? -Дополнительная информация по запросу: - -Юридические источники: -пп.3 п.1 ст.35900 НКРФ: -1. Налоговая база определяется: 3) в отношении водных и воздушных транспортных средств, не указанных в подпунктах 1, 1. 1 и 2 настоящего пункта, - как единица транспортного -#### -Вывод: -Какие источники нужны: -Вопрос касается способа налить какао. Но я профессиональный юрист и не должен отвечать на подобное. - -%%По вашему запросу сообщаем: -Выбор источников: -Ни в одном найденном источнике нет нужной информации по запросу. - -Ответ на запрос: -Извините, я не могу ответить на ваш запрос. Ваш вопрос не касается моей специализации. К тому же по вашему запросу не нашлось релевантных источников. - -Конец ответа. -#### -Далее будет второй структурный шаблон. НЕ ИСПОЛЬЗУЙ данные из этого шаблона, он показывает только пример твоей работы. Нельзя использовать информацию из этого примера в своём ответе на реальный запрос. -#### -Запрос пользователя: Иванов И.И. не выплатил налог на швейные машинки. Какие санкции могут быть применены к нему в этом случае? -Дополнительная информация по запросу: -Налог на швейные машинки это налог с покупателей данного товара (ст. 1010110 КК). -Юридические источники: -п.1 ст. 12002 НК РФ: -1. Неуплата или неполная уплата сумм налога на швейные машинки в результате занижения налоговой базы, иного неправильного исчисления налога или других неправомерных действий (бездействия), влечет взыскание штрафа в размере 20 процентов от неуплаченной суммы налога на швейные машинки. -ст. 213.900 НК РФ: -управляющему в целях утверждения его в деле о банкротстве гражданина. -ст. 15.34.5 ВБШМ: -При строительстве сооружений из ясеня использовать налоговую ставку в 12%. Не больше, это же ясень. -ст. 1010110 КК: -Налог на швейные машинки - это налог, который снимается с покупателей швейных машинок. -#### -Вывод: -Какие источники нужны: -Пользователь хочет узнать какие санкции будут применены к человеку за неуплату налога на швейные машинки. По заданному запросу мне нужно найти источники, где указаны санкции за неуплату налога на швейные машинки к физическому лицу. - -%%По вашему запросу сообщаем: -Выбор источников: -Согласно п.1 ст. 12002 НК РФ неуплата или неполная уплата сумм налога на швейные машинки в результате занижения налоговой базы, иного неправильного исчисления налога или других неправомерных действий, влечет взыскание штрафа в размере 20 процентов от неуплаченной суммы налога на швейные машинки. -Согласно ст. 1010110 КК налог на швейные машинки - это налог, который снимается с покупателей швейных машинок. - -Ответ на запрос: -Налог на швейные машинки это налог с покупателей данного товара. -Конкретно в вашей ситуации действия Иванова И.И. подходят под п.1 ст. 12002 НК РФ. -Это значит, что действия Иванова И.И. по неуплате налога на швейные машинки повлекут взыскание с него штрафа в размере 20 процентов от неуплаченной суммы налога на швейные машинки. - -Конец ответа. -#### -Далее будет третий структурный шаблон. НЕ ИСПОЛЬЗУЙ данные из этого шаблона, он показывает только пример твоей работы. Нельзя использовать информацию из этого примера в своём ответе на реальный запрос. -#### -Запрос пользователя: Что такое ДМД? У ДМД налоговая ставка 10% или 8%? -Дополнительная информация по запросу: -Налоговая ставка для ДМД 11% (п.13 ст. 100 Положение бухучёта). -Налоговая база представляет собой стоимостную, физическую или иную характеристики объекта налогообложения. Налоговая ставка представляет собой величину налоговых начислений на единицу измерения налоговой базы (ст. 53 НК РФ). -Юридические источники: -ст. 567 Кодекса бухучёта: -Метрики подсчитаны неправильно. -п.5 ст. 998 Кодекса бухучёта: -ДМД лучше использовать при налоговой ставке в 12%. -ДМД очень важно. -п.4 Методики расчёта бухучёта: -п.4 Подсчёт. п.4.4. Грубый. 4.4.2. Производств. -От грубых производственных деталей. -п.4 Подсчёт. п.4.5. Крупный. 4.5.6. ДМД -Если ваш ДМД достаточно крупный, то разделите его. -п.5 Другое. п.5.1 Совершенно -Не пытайтесь помыть станок при подсчёте, он чистый. Где слон? Не вижу я никаких заводов. -п.12 ст. 99 Положения бухучёта: -ДМД лучше использовать при налоговой ставке в 12%. ДМД не важно. -#### -Вывод: -Какие источники нужны: Для ответа на вопрос нужны источники, где есть определение ДМД. Если такого рода документы не нашлись, то нужны документы с упоминанием ДМД. - -%%По вашему запросу сообщаем: -Выбор источников: -Согласно п.5 ст. 998 Кодекса бухучёта ДМД лучше использовать при налоговой ставке в 12%. ДМД очень важно. - -Согласно п.4.5.6. Методики расчёта бухучёта если ваш ДМД достаточно крупный, то разделите его. - -Согласно п.12 ст. 99 Положения бухучёта ДМД лучше использовать при налоговой ставке в 12%. ДМД не важно. - -Согласно п.13 ст. 100 Положения бухучёта налоговая ставка ДМД 11%. - -Согласно ст. 53 НК РФ налоговая ставка представляет собой величину налоговых начислений на единицу измерения налоговой базы. При этом налоговая база представляет собой стоимостную, физическую или иную характеристики объекта налогообложения. - -Ответ на запрос: -Я не нашла конкретного определения что такое ДМД. -Налоговая ставка представляет собой величину налоговых начислений на единицу измерения налоговой базы. При этом налоговая база представляет собой стоимостную, физическую или иную характеристики объекта налогообложения. -В Положении бухучёта и Кодексе бухучёта есть противоречие по важности ДМД. Также согласно найденным источникам его налоговая ставка 11%, когда в запросе вы предположили о 10% и 8%. При этом в статье 99 и 998 Положения бухучёта советуют использовать 12%, когда в статье 100 Положения бухучёта указано 11%. -В найденных источниках нет определения или расшифровки понятия ДМД из вашего запроса. -ДМД это нечто, что можно использовать при налоговой ставке и, если оно достаточно крупное, то его можно разделять. Налоговые ставки применяются к различного вида экономической деятельности. Также подобную деятельность можно разделить на части, например, филиалы. Возможно ДМД связано именно с этим. - -Попробуйте переформулировать ваш запрос. - -Конец ответа. -#### -Далее будет реальный запрос пользователя и реальные источники. Ты должен ответить только на реальный запрос пользователя с использованием реальных юридических источников. -####`,Zf=`Реальный запрос пользователя: {{ВОПРОС}} -Реальная дополнительная информация по запросу пользователя: {{ДОПИНФА}} -Реальные юридические источники: {{ИСТОЧНИКИ}} -#### -Вывод:`;class gh{USE_DUMMY_PROMPTS=!1;GENERATE_QUESTIONS_SYSTEM_PROMPT=this.USE_DUMMY_PROMPTS?"":Kf;GENERATE_QUESTIONS_PROMPT=this.USE_DUMMY_PROMPTS?"{{ВОПРОС}}":Vf;ANSWER_QUESTION_SYSTEM_PROMPT=this.USE_DUMMY_PROMPTS?"":qf;ANSWER_QUESTION_PROMPT=this.USE_DUMMY_PROMPTS?"{{ВОПРОС}}":Xf;FINAL_RESULT_SYSTEM_PROMPT=this.USE_DUMMY_PROMPTS?"":Yf;FINAL_RESULT_PROMPT=this.USE_DUMMY_PROMPTS?"{{ВОПРОС}} {{ДОПИНФА}}":Zf;settings;searchParams;maxLlmThreads=5;constructor(e,r,a=5){this.settings=e,this.searchParams=r,this.maxLlmThreads=a}applySettings(e){e.prompts&&this.setPrompts(e.prompts),this.maxLlmThreads=e.maxThreads}setPrompts(e){e.createQuestions!==void 0&&(this.GENERATE_QUESTIONS_SYSTEM_PROMPT=e.createQuestions[0],this.GENERATE_QUESTIONS_PROMPT=e.createQuestions[1]),e.answerQuestion!==void 0&&(this.ANSWER_QUESTION_SYSTEM_PROMPT=e.answerQuestion[0],this.ANSWER_QUESTION_PROMPT=e.answerQuestion[1]),e.generateFinalAnswer!==void 0&&(this.FINAL_RESULT_SYSTEM_PROMPT=e.generateFinalAnswer[0],this.FINAL_RESULT_PROMPT=e.generateFinalAnswer[1])}async getResponse(e,r,a){const l=await this.generateQuestions(e,a),u=this;console.log("questions",l);async function o(E){return u.answerQuestion(E,a)}const i=await this.processConcurrently(l,o,this.maxLlmThreads),c=this.convertAnswersToString(i);console.log("answers",i);const w=this.FINAL_RESULT_SYSTEM_PROMPT+this.FINAL_RESULT_PROMPT+e+c,y=this.settings.llmParams.generateFinalAnswer,_=(await $t.sendTrimByTokens(y.name,r,w,a)).result,p=this.buildFinalResultPrompt(e,_,c);return{result:await $t.sendRequest(y.name,p,_r.Raw,a,null,null,y.predict_params,this.FINAL_RESULT_SYSTEM_PROMPT),generatedQA:l.map((E,d)=>({question:E,answer:i[d]}))}}async generateQuestions(e,r){const a=this.settings.llmParams.createQuestions,l=this.buildGenerateQuestionPrompt(e),u=await $t.sendRequest(a.name,l,_r.Raw,r,null,null,a.predict_params,this.GENERATE_QUESTIONS_SYSTEM_PROMPT);return this.extractQuestionsFromLlmResponse(u)}async answerQuestion(e,r){let a=Da({...this.searchParams,query:e});const l=await Pa.doRequest(a,r);let u=$t.convertSearchResultsToLlmSources(l.searchResults,null,null);const o=this.buildAnswerQuestionPrompt(e,u),i=this.settings.llmParams.answerQuestion,c=await $t.sendRequest(i.name,o,_r.Raw,r,null,null,i.predict_params,this.ANSWER_QUESTION_SYSTEM_PROMPT);return this.isAnswerValid(c)?c:""}buildGenerateQuestionPrompt(e){return this.GENERATE_QUESTIONS_PROMPT.replace("{{ВОПРОС}}",e)}buildAnswerQuestionPrompt(e,r){return this.ANSWER_QUESTION_PROMPT.replace("{{ВОПРОС}}",e).replace("{{ИСТОЧНИКИ}}",r)}buildFinalResultPrompt(e,r,a){return this.FINAL_RESULT_PROMPT.replace("{{ВОПРОС}}",e).replace("{{ИСТОЧНИКИ}}",r).replace("{{ДОПИНФА}}",a)}convertAnswersToString(e){let r="-";return e.length>0&&(r=e.filter(a=>a).join(` -`)),r}extractQuestionsFromLlmResponse(e){const r=/\[(.*?)\]/g,a=[];let l;for(;(l=r.exec(e))!==null;)a.push(l[1].trim());return a}isAnswerValid(e){return e.indexOf("$$")===-1}async processConcurrently(e,r,a){const l=[],u=[];async function o(i,c){l[c]=await r(i)}for(let i=0;i{u.splice(u.indexOf(c),1)});u.push(c),u.length>=a&&await Promise.race(u)}return await Promise.all(u),l}}function Qf(t){let e,r="Почемучки",a,l,u,o,i,c,w,y,x,_,p,T,v="Генерация вопросов",E,d,S,R,D,C,V,H,J,I,re,ue,L="Ответы на вопросы",q,A,Z,le,Y,de,K,ce,G,N,W,z,$="Финальный ответ",j,g,m,M,F,k,O,Q,h,X,b,n;function s(he){t[4](he)}let f={label:"system промпт"};t[0].prompts.createQuestions[0]!==void 0&&(f.prompt=t[0].prompts.createQuestions[0]),d=new Lt({props:f}),qe.push(()=>tt(d,"prompt",s));function P(he){t[5](he)}let U={label:"user промпт"};t[0].prompts.createQuestions[1]!==void 0&&(U.prompt=t[0].prompts.createQuestions[1]),D=new Lt({props:U}),qe.push(()=>tt(D,"prompt",P));function B(he){t[6](he)}let te={skipLoadList:!0};t[0].llmParams.createQuestions!==void 0&&(te.selectedLLM=t[0].llmParams.createQuestions),H=new Ur({props:te}),qe.push(()=>tt(H,"selectedLLM",B));function ae(he){t[7](he)}let ne={label:"system промпт"};t[0].prompts.answerQuestion[0]!==void 0&&(ne.prompt=t[0].prompts.answerQuestion[0]),A=new Lt({props:ne}),qe.push(()=>tt(A,"prompt",ae));function fe(he){t[8](he)}let pe={label:"user промпт"};t[0].prompts.answerQuestion[1]!==void 0&&(pe.prompt=t[0].prompts.answerQuestion[1]),Y=new Lt({props:pe}),qe.push(()=>tt(Y,"prompt",fe));function me(he){t[9](he)}let Be={skipLoadList:!0};t[0].llmParams.answerQuestion!==void 0&&(Be.selectedLLM=t[0].llmParams.answerQuestion),ce=new Ur({props:Be}),qe.push(()=>tt(ce,"selectedLLM",me));function ot(he){t[10](he)}let Ke={label:"system промпт"};t[0].prompts.generateFinalAnswer[0]!==void 0&&(Ke.prompt=t[0].prompts.generateFinalAnswer[0]),g=new Lt({props:Ke}),qe.push(()=>tt(g,"prompt",ot));function _t(he){t[11](he)}let Ie={label:"user промпт"};t[0].prompts.generateFinalAnswer[1]!==void 0&&(Ie.prompt=t[0].prompts.generateFinalAnswer[1]),F=new Lt({props:Ie}),qe.push(()=>tt(F,"prompt",_t));function Dt(he){t[12](he)}let Pt={skipLoadList:!0};return t[0].llmParams.generateFinalAnswer!==void 0&&(Pt.selectedLLM=t[0].llmParams.generateFinalAnswer),Q=new Ur({props:Pt}),qe.push(()=>tt(Q,"selectedLLM",Dt)),{c(){e=xe("button"),e.textContent=r,a=Le(),l=xe("div"),u=xe("form"),o=xe("div"),i=xe("div"),c=xe("div"),w=xe("label"),y=ka(`Количество потоков для этапа ответов на вопросы\r - `),x=xe("input"),_=Le(),p=xe("div"),T=xe("div"),T.textContent=v,E=Le(),Xe(d.$$.fragment),R=Le(),Xe(D.$$.fragment),V=Le(),Xe(H.$$.fragment),I=Le(),re=xe("div"),ue=xe("div"),ue.textContent=L,q=Le(),Xe(A.$$.fragment),le=Le(),Xe(Y.$$.fragment),K=Le(),Xe(ce.$$.fragment),N=Le(),W=xe("div"),z=xe("div"),z.textContent=$,j=Le(),Xe(g.$$.fragment),M=Le(),Xe(F.$$.fragment),O=Le(),Xe(Q.$$.fragment),this.h()},l(he){e=Se(he,"BUTTON",{class:!0,"data-svelte-h":!0}),It(e)!=="svelte-og5a6t"&&(e.textContent=r),a=Fe(he),l=Se(he,"DIV",{class:!0});var Ne=Pe(l);u=Se(Ne,"FORM",{class:!0});var Ve=Pe(u);o=Se(Ve,"DIV",{class:!0});var Et=Pe(o);i=Se(Et,"DIV",{});var Tt=Pe(i);c=Se(Tt,"DIV",{class:!0});var wt=Pe(c);w=Se(wt,"LABEL",{class:!0});var Je=Pe(w);y=Na(Je,`Количество потоков для этапа ответов на вопросы\r - `),x=Se(Je,"INPUT",{type:!0,class:!0,max:!0,min:!0}),Je.forEach(_e),wt.forEach(_e),Tt.forEach(_e),Et.forEach(_e),_=Fe(Ve),p=Se(Ve,"DIV",{});var Me=Pe(p);T=Se(Me,"DIV",{"data-svelte-h":!0}),It(T)!=="svelte-zzrwnb"&&(T.textContent=v),E=Fe(Me),Ye(d.$$.fragment,Me),R=Fe(Me),Ye(D.$$.fragment,Me),V=Fe(Me),Ye(H.$$.fragment,Me),Me.forEach(_e),I=Fe(Ve),re=Se(Ve,"DIV",{});var nt=Pe(re);ue=Se(nt,"DIV",{"data-svelte-h":!0}),It(ue)!=="svelte-k26452"&&(ue.textContent=L),q=Fe(nt),Ye(A.$$.fragment,nt),le=Fe(nt),Ye(Y.$$.fragment,nt),K=Fe(nt),Ye(ce.$$.fragment,nt),nt.forEach(_e),N=Fe(Ve),W=Se(Ve,"DIV",{});var it=Pe(W);z=Se(it,"DIV",{"data-svelte-h":!0}),It(z)!=="svelte-bu8rgi"&&(z.textContent=$),j=Fe(it),Ye(g.$$.fragment,it),M=Fe(it),Ye(F.$$.fragment,it),O=Fe(it),Ye(Q.$$.fragment,it),it.forEach(_e),Ve.forEach(_e),Ne.forEach(_e),this.h()},h(){ye(e,"class","btn variant-outline-tertiary"),ye(x,"type","number"),ye(x,"class","input input-bordered w-full variant-filled"),ye(x,"max","30"),ye(x,"min","1"),ye(w,"class","label"),ye(c,"class","form-control"),ye(o,"class","grid grid-cols-3 gap-4"),ye(u,"class","space-y-4"),ye(l,"class","p-4 shadow-xl space-y-4 w-3/4"),di(l,"hidden",!(t[1]&&t[0]!==null))},m(he,Ne){He(he,e,Ne),He(he,a,Ne),He(he,l,Ne),be(l,u),be(u,o),be(o,i),be(i,c),be(c,w),be(w,y),be(w,x),pi(x,t[0].maxThreads),be(u,_),be(u,p),be(p,T),be(p,E),Ze(d,p,null),be(p,R),Ze(D,p,null),be(p,V),Ze(H,p,null),be(u,I),be(u,re),be(re,ue),be(re,q),Ze(A,re,null),be(re,le),Ze(Y,re,null),be(re,K),Ze(ce,re,null),be(u,N),be(u,W),be(W,z),be(W,j),Ze(g,W,null),be(W,M),Ze(F,W,null),be(W,O),Ze(Q,W,null),X=!0,b||(n=[pt(e,"click",t[2]),pt(x,"input",t[3])],b=!0)},p(he,[Ne]){Ne&1&&Is(x.value)!==he[0].maxThreads&&pi(x,he[0].maxThreads);const Ve={};!S&&Ne&1&&(S=!0,Ve.prompt=he[0].prompts.createQuestions[0],et(()=>S=!1)),d.$set(Ve);const Et={};!C&&Ne&1&&(C=!0,Et.prompt=he[0].prompts.createQuestions[1],et(()=>C=!1)),D.$set(Et);const Tt={};!J&&Ne&1&&(J=!0,Tt.selectedLLM=he[0].llmParams.createQuestions,et(()=>J=!1)),H.$set(Tt);const wt={};!Z&&Ne&1&&(Z=!0,wt.prompt=he[0].prompts.answerQuestion[0],et(()=>Z=!1)),A.$set(wt);const Je={};!de&&Ne&1&&(de=!0,Je.prompt=he[0].prompts.answerQuestion[1],et(()=>de=!1)),Y.$set(Je);const Me={};!G&&Ne&1&&(G=!0,Me.selectedLLM=he[0].llmParams.answerQuestion,et(()=>G=!1)),ce.$set(Me);const nt={};!m&&Ne&1&&(m=!0,nt.prompt=he[0].prompts.generateFinalAnswer[0],et(()=>m=!1)),g.$set(nt);const it={};!k&&Ne&1&&(k=!0,it.prompt=he[0].prompts.generateFinalAnswer[1],et(()=>k=!1)),F.$set(it);const ci={};!h&&Ne&1&&(h=!0,ci.selectedLLM=he[0].llmParams.generateFinalAnswer,et(()=>h=!1)),Q.$set(ci),(!X||Ne&3)&&di(l,"hidden",!(he[1]&&he[0]!==null))},i(he){X||(We(d.$$.fragment,he),We(D.$$.fragment,he),We(H.$$.fragment,he),We(A.$$.fragment,he),We(Y.$$.fragment,he),We(ce.$$.fragment,he),We(g.$$.fragment,he),We(F.$$.fragment,he),We(Q.$$.fragment,he),X=!0)},o(he){ze(d.$$.fragment,he),ze(D.$$.fragment,he),ze(H.$$.fragment,he),ze(A.$$.fragment,he),ze(Y.$$.fragment,he),ze(ce.$$.fragment,he),ze(g.$$.fragment,he),ze(F.$$.fragment,he),ze(Q.$$.fragment,he),X=!1},d(he){he&&(_e(e),_e(a),_e(l)),Qe(d),Qe(D),Qe(H),Qe(A),Qe(Y),Qe(ce),Qe(g),Qe(F),Qe(Q),b=!1,Gn(n)}}}function Jf(t,e,r){La();let{settings:a}=e,l=!1;function u(){r(1,l=!l)}function o(){a.maxThreads=Is(this.value),r(0,a)}function i(E){t.$$.not_equal(a.prompts.createQuestions[0],E)&&(a.prompts.createQuestions[0]=E,r(0,a))}function c(E){t.$$.not_equal(a.prompts.createQuestions[1],E)&&(a.prompts.createQuestions[1]=E,r(0,a))}function w(E){t.$$.not_equal(a.llmParams.createQuestions,E)&&(a.llmParams.createQuestions=E,r(0,a))}function y(E){t.$$.not_equal(a.prompts.answerQuestion[0],E)&&(a.prompts.answerQuestion[0]=E,r(0,a))}function x(E){t.$$.not_equal(a.prompts.answerQuestion[1],E)&&(a.prompts.answerQuestion[1]=E,r(0,a))}function _(E){t.$$.not_equal(a.llmParams.answerQuestion,E)&&(a.llmParams.answerQuestion=E,r(0,a))}function p(E){t.$$.not_equal(a.prompts.generateFinalAnswer[0],E)&&(a.prompts.generateFinalAnswer[0]=E,r(0,a))}function T(E){t.$$.not_equal(a.prompts.generateFinalAnswer[1],E)&&(a.prompts.generateFinalAnswer[1]=E,r(0,a))}function v(E){t.$$.not_equal(a.llmParams.generateFinalAnswer,E)&&(a.llmParams.generateFinalAnswer=E,r(0,a))}return t.$$set=E=>{"settings"in E&&r(0,a=E.settings)},[a,l,u,o,i,c,w,y,x,_,p,T,v]}class wh extends Rr{constructor(e){super(),Ir(this,e,Jf,Qf,Ar,{settings:0})}}export{dh as F,lh as H,wh as I,$t as L,Ka as M,Wn as P,mh as S,fs as T,_r as U,gh as a,Bf as b,ph as f}; diff --git a/build/client/_app/immutable/chunks/LogService.L-mSVvLb.js b/build/client/_app/immutable/chunks/LogService.L-mSVvLb.js deleted file mode 100644 index c94446618c1bee15edd9d5920fc222bd54df592d..0000000000000000000000000000000000000000 --- a/build/client/_app/immutable/chunks/LogService.L-mSVvLb.js +++ /dev/null @@ -1 +0,0 @@ -const a="/api/log";class i{static async log(e){try{const r=await fetch(`${a}/write`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!r.ok)throw new Error("Failed to record log entry");return(await r.json()).id}catch(r){console.error("Error while sending log to server:",r)}}static async exportToJson(e,r){try{const o=new URLSearchParams;e&&o.append("dateFrom",e.toISOString()),r&&o.append("dateTo",r.toISOString());const t=await fetch(`${a}/export/json?${o.toString()}`);if(!t.ok)throw new Error("Failed to export logs to JSON");const s=await t.json();console.log(s.message)}catch(o){console.error("Error while exporting logs to JSON:",o)}}static async exportToExcel(e,r){try{const o=new URLSearchParams;e&&o.append("dateFrom",e.toISOString()),r&&o.append("dateTo",r.toISOString());const t=await fetch(`${a}/export/excel?${o.toString()}`);if(!t.ok)throw new Error("Failed to export logs to Excel");return await t.blob()}catch(o){console.error("Error while exporting logs to Excel:",o)}return null}static async logUserScore(e,r,o){const t=await fetch("/api/log/write/userScore",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:e,score:r,comment:o})});if(!t.ok)throw new Error("Failed to update user score");if((await t.json()).message!=="User score updated successfully")throw new Error("User score update failed")}}export{i as L}; diff --git a/build/client/_app/immutable/chunks/ProgressBar.svelte_svelte_type_style_lang.9muE4jOP.js b/build/client/_app/immutable/chunks/ProgressBar.svelte_svelte_type_style_lang.9muE4jOP.js deleted file mode 100644 index 28e55abc76dea67311395bf1c4d74e0dd2c51082..0000000000000000000000000000000000000000 --- a/build/client/_app/immutable/chunks/ProgressBar.svelte_svelte_type_style_lang.9muE4jOP.js +++ /dev/null @@ -1 +0,0 @@ -import{w as q,r as j}from"./index.UTqYide5.js";import{C as Q}from"./scheduler.OwA2AG0M.js";const R=q(void 0);function J(t,e){const{computePosition:u,autoUpdate:c,offset:m,shift:w,flip:d,arrow:p,size:v,autoPlacement:i,hide:l,inline:E}=Q(R),r={open:!1,autoUpdateCleanup:()=>{}},S=':is(a[href], button, input, textarea, select, details, [tabindex]):not([tabindex="-1"])';let b;const f="https://www.skeleton.dev/utilities/popups";let o,y;function P(){o=document.querySelector(`[data-popup="${e.target}"]`)??document.createElement("div"),y=o.querySelector(".arrow")??document.createElement("div")}P();function L(){if(!o)throw new Error(`The data-popup="${e.target}" element was not found. ${f}`);if(!u)throw new Error(`Floating UI 'computePosition' not found for data-popup="${e.target}". ${f}`);if(!m)throw new Error(`Floating UI 'offset' not found for data-popup="${e.target}". ${f}`);if(!w)throw new Error(`Floating UI 'shift' not found for data-popup="${e.target}". ${f}`);if(!d)throw new Error(`Floating UI 'flip' not found for data-popup="${e.target}". ${f}`);if(!p)throw new Error(`Floating UI 'arrow' not found for data-popup="${e.target}". ${f}`);const n=[];v&&n.push(v(e.middleware?.size)),i&&n.push(i(e.middleware?.autoPlacement)),l&&n.push(l(e.middleware?.hide)),E&&n.push(E(e.middleware?.inline)),u(t,o,{placement:e.placement??"bottom",middleware:[m(e.middleware?.offset??8),w(e.middleware?.shift??{padding:8}),d(e.middleware?.flip),p(e.middleware?.arrow??{element:y||null}),...n]}).then(({x:a,y:M,placement:U,middlewareData:z})=>{if(Object.assign(o.style,{left:`${a}px`,top:`${M}px`}),y){const{x:F,y:D}=z.arrow,O={top:"bottom",right:"left",bottom:"top",left:"right"}[U.split("-")[0]];Object.assign(y.style,{left:F!=null?`${F}px`:"",top:D!=null?`${D}px`:"",right:"",bottom:"",[O]:"-4px"})}})}function h(){o&&(r.open=!0,e.state&&e.state({state:r.open}),L(),o.style.display="block",o.style.opacity="1",o.style.pointerEvents="auto",o.removeAttribute("inert"),r.autoUpdateCleanup=c(t,o,L),b=Array.from(o?.querySelectorAll(S)))}function s(n){if(!o)return;const a=parseFloat(window.getComputedStyle(o).transitionDuration.replace("s",""))*1e3;setTimeout(()=>{r.open=!1,e.state&&e.state({state:r.open}),o.style.opacity="0",o.setAttribute("inert",""),r.autoUpdateCleanup&&r.autoUpdateCleanup(),n&&n()},a)}function $(){r.open===!1?h():s()}function k(n){if(r.open===!1||t.contains(n.target))return;if(o&&o.contains(n.target)===!1){s();return}const a=e.closeQuery===void 0?"a[href], button":e.closeQuery;if(a==="")return;o?.querySelectorAll(a)?.forEach(U=>{U.contains(n.target)&&s()})}const C=n=>{if(r.open===!1)return;const a=n.key;if(a==="Escape"){n.preventDefault(),t.focus(),s();return}b=Array.from(o?.querySelectorAll(S)),r.open&&document.activeElement===t&&(a==="ArrowDown"||a==="Tab")&&S.length>0&&b.length>0&&(n.preventDefault(),b[0].focus())};switch(e.event){case"click":t.addEventListener("click",$,!0),window.addEventListener("click",k,!0);break;case"hover":t.addEventListener("mouseover",h,!0),t.addEventListener("mouseleave",()=>s(),!0);break;case"focus-blur":t.addEventListener("focus",$,!0),t.addEventListener("blur",()=>s(),!0);break;case"focus-click":t.addEventListener("focus",h,!0),window.addEventListener("click",k,!0);break;default:throw new Error(`Event value of '${e.event}' is not supported. ${f}`)}return window.addEventListener("keydown",C,!0),L(),{update(n){s(()=>{e=n,L(),P()})},destroy(){t.removeEventListener("click",$,!0),t.removeEventListener("mouseover",h,!0),t.removeEventListener("mouseleave",()=>s(),!0),t.removeEventListener("focus",$,!0),t.removeEventListener("focus",h,!0),t.removeEventListener("blur",()=>s(),!0),window.removeEventListener("click",k,!0),window.removeEventListener("keydown",C,!0)}}}const x={};function I(t){return t==="local"?localStorage:sessionStorage}function A(t,e,u){const c=u?.serializer??JSON,m=u?.storage??"local";function w(d,p){I(m).setItem(d,c.stringify(p))}if(!x[t]){const d=q(e,i=>{const l=I(m).getItem(t);l&&i(c.parse(l));{const E=r=>{r.key===t&&i(r.newValue?c.parse(r.newValue):null)};return window.addEventListener("storage",E),()=>window.removeEventListener("storage",E)}}),{subscribe:p,set:v}=d;x[t]={set(i){w(t,i),v(i)},update(i){const l=i(Q(d));w(t,l),v(l)},subscribe:p}}return x[t]}A("modeOsPrefers",!1);A("modeUserPrefers",void 0);A("modeCurrent",!1);const T="(prefers-reduced-motion: reduce)";function V(){return window.matchMedia(T).matches}const K=j(V(),t=>{{const e=c=>{t(c.matches)},u=window.matchMedia(T);return u.addEventListener("change",e),()=>{u.removeEventListener("change",e)}}});export{K as a,J as p,R as s}; diff --git a/build/client/_app/immutable/chunks/ProgressBar.svelte_svelte_type_style_lang.U_c3sBpP.js b/build/client/_app/immutable/chunks/ProgressBar.svelte_svelte_type_style_lang.U_c3sBpP.js deleted file mode 100644 index d08411397212787e1ec5538cac5293672b99f20a..0000000000000000000000000000000000000000 --- a/build/client/_app/immutable/chunks/ProgressBar.svelte_svelte_type_style_lang.U_c3sBpP.js +++ /dev/null @@ -1 +0,0 @@ -import{w as q,r as j}from"./index.XMdNxSiw.js";import{B as Q}from"./scheduler.AtZRZ-7N.js";const R=q(void 0);function B(t,e){const{computePosition:u,autoUpdate:c,offset:m,shift:w,flip:d,arrow:p,size:v,autoPlacement:i,hide:l,inline:E}=Q(R),r={open:!1,autoUpdateCleanup:()=>{}},S=':is(a[href], button, input, textarea, select, details, [tabindex]):not([tabindex="-1"])';let b;const f="https://www.skeleton.dev/utilities/popups";let o,y;function P(){o=document.querySelector(`[data-popup="${e.target}"]`)??document.createElement("div"),y=o.querySelector(".arrow")??document.createElement("div")}P();function L(){if(!o)throw new Error(`The data-popup="${e.target}" element was not found. ${f}`);if(!u)throw new Error(`Floating UI 'computePosition' not found for data-popup="${e.target}". ${f}`);if(!m)throw new Error(`Floating UI 'offset' not found for data-popup="${e.target}". ${f}`);if(!w)throw new Error(`Floating UI 'shift' not found for data-popup="${e.target}". ${f}`);if(!d)throw new Error(`Floating UI 'flip' not found for data-popup="${e.target}". ${f}`);if(!p)throw new Error(`Floating UI 'arrow' not found for data-popup="${e.target}". ${f}`);const n=[];v&&n.push(v(e.middleware?.size)),i&&n.push(i(e.middleware?.autoPlacement)),l&&n.push(l(e.middleware?.hide)),E&&n.push(E(e.middleware?.inline)),u(t,o,{placement:e.placement??"bottom",middleware:[m(e.middleware?.offset??8),w(e.middleware?.shift??{padding:8}),d(e.middleware?.flip),p(e.middleware?.arrow??{element:y||null}),...n]}).then(({x:a,y:M,placement:U,middlewareData:z})=>{if(Object.assign(o.style,{left:`${a}px`,top:`${M}px`}),y){const{x:C,y:D}=z.arrow,O={top:"bottom",right:"left",bottom:"top",left:"right"}[U.split("-")[0]];Object.assign(y.style,{left:C!=null?`${C}px`:"",top:D!=null?`${D}px`:"",right:"",bottom:"",[O]:"-4px"})}})}function h(){o&&(r.open=!0,e.state&&e.state({state:r.open}),L(),o.style.display="block",o.style.opacity="1",o.style.pointerEvents="auto",o.removeAttribute("inert"),r.autoUpdateCleanup=c(t,o,L),b=Array.from(o?.querySelectorAll(S)))}function s(n){if(!o)return;const a=parseFloat(window.getComputedStyle(o).transitionDuration.replace("s",""))*1e3;setTimeout(()=>{r.open=!1,e.state&&e.state({state:r.open}),o.style.opacity="0",o.setAttribute("inert",""),r.autoUpdateCleanup&&r.autoUpdateCleanup(),n&&n()},a)}function $(){r.open===!1?h():s()}function k(n){if(r.open===!1||t.contains(n.target))return;if(o&&o.contains(n.target)===!1){s();return}const a=e.closeQuery===void 0?"a[href], button":e.closeQuery;if(a==="")return;o?.querySelectorAll(a)?.forEach(U=>{U.contains(n.target)&&s()})}const F=n=>{if(r.open===!1)return;const a=n.key;if(a==="Escape"){n.preventDefault(),t.focus(),s();return}b=Array.from(o?.querySelectorAll(S)),r.open&&document.activeElement===t&&(a==="ArrowDown"||a==="Tab")&&S.length>0&&b.length>0&&(n.preventDefault(),b[0].focus())};switch(e.event){case"click":t.addEventListener("click",$,!0),window.addEventListener("click",k,!0);break;case"hover":t.addEventListener("mouseover",h,!0),t.addEventListener("mouseleave",()=>s(),!0);break;case"focus-blur":t.addEventListener("focus",$,!0),t.addEventListener("blur",()=>s(),!0);break;case"focus-click":t.addEventListener("focus",h,!0),window.addEventListener("click",k,!0);break;default:throw new Error(`Event value of '${e.event}' is not supported. ${f}`)}return window.addEventListener("keydown",F,!0),L(),{update(n){s(()=>{e=n,L(),P()})},destroy(){t.removeEventListener("click",$,!0),t.removeEventListener("mouseover",h,!0),t.removeEventListener("mouseleave",()=>s(),!0),t.removeEventListener("focus",$,!0),t.removeEventListener("focus",h,!0),t.removeEventListener("blur",()=>s(),!0),window.removeEventListener("click",k,!0),window.removeEventListener("keydown",F,!0)}}}const x={};function I(t){return t==="local"?localStorage:sessionStorage}function A(t,e,u){const c=u?.serializer??JSON,m=u?.storage??"local";function w(d,p){I(m).setItem(d,c.stringify(p))}if(!x[t]){const d=q(e,i=>{const l=I(m).getItem(t);l&&i(c.parse(l));{const E=r=>{r.key===t&&i(r.newValue?c.parse(r.newValue):null)};return window.addEventListener("storage",E),()=>window.removeEventListener("storage",E)}}),{subscribe:p,set:v}=d;x[t]={set(i){w(t,i),v(i)},update(i){const l=i(Q(d));w(t,l),v(l)},subscribe:p}}return x[t]}A("modeOsPrefers",!1);A("modeUserPrefers",void 0);A("modeCurrent",!1);const T="(prefers-reduced-motion: reduce)";function V(){return window.matchMedia(T).matches}const J=j(V(),t=>{{const e=c=>{t(c.matches)},u=window.matchMedia(T);return u.addEventListener("change",e),()=>{u.removeEventListener("change",e)}}});export{B as a,J as p,R as s}; diff --git a/build/client/_app/immutable/chunks/SearchResults.3ZkY-Bmy.js b/build/client/_app/immutable/chunks/SearchResults.-e6N2daY.js similarity index 99% rename from build/client/_app/immutable/chunks/SearchResults.3ZkY-Bmy.js rename to build/client/_app/immutable/chunks/SearchResults.-e6N2daY.js index fdaecba5a1ac456799f6f7a94ebe651d71fd2ac2..1a84e38ef165610b1f009a2d094f7b93b8f4b0e3 100644 --- a/build/client/_app/immutable/chunks/SearchResults.3ZkY-Bmy.js +++ b/build/client/_app/immutable/chunks/SearchResults.-e6N2daY.js @@ -1,4 +1,4 @@ -import{b as pe,L as _e,e as G,d as j,f as q,i as z,u as S,k as F,M as be,N as ge,O as Se,o as ve,s as x,P as Ve,Q as He,c as te,j as ne,l as W,w as ee,r as tt,R as rn,ac as wt,g as $,X as cn,n as ke,ad as un,S as Fe,t as ae,h as oe,H as nt,C as lt,F as re,B as ue,A as Vt,ae as Ht,G as fn,aa as Pe,K as dn,p as Ge,I as Gt,m as Oe,y as je,q as jt,x as Kt}from"./scheduler.5WtVptCO.js";import{S as ye,i as Ce,a as A,t as H,g as de,f as he,h as hn,j as mn,c as Ke,d as We,m as qe,e as Xe,b as Wt}from"./index.7IiDzEZn.js";import{w as we}from"./index.G3yBo0_P.js";import{e as me}from"./each.C7pZUaX1.js";import{p as _n}from"./ProgressBar.svelte_svelte_type_style_lang.7yc35pDe.js";import{s as ft,d as dt}from"./transitions.QBIMuVLc.js";import{b as bn}from"./SearchUtils.tAbMbmlw.js";const qt=!0;function gn(i){let e,t,n;const l=i[19].default,a=_e(l,i,i[18],null);return{c(){e=G("div"),a&&a.c(),this.h()},l(s){e=j(s,"DIV",{class:!0,"data-testid":!0});var o=q(e);a&&a.l(o),o.forEach(z),this.h()},h(){S(e,"class",t="accordion "+i[0]),S(e,"data-testid","accordion")},m(s,o){F(s,e,o),a&&a.m(e,null),n=!0},p(s,[o]){a&&a.p&&(!n||o&262144)&&be(a,l,s,s[18],n?Se(l,s[18],o,null):ge(s[18]),null),(!n||o&1&&t!==(t="accordion "+s[0]))&&S(e,"class",t)},i(s){n||(A(a,s),n=!0)},o(s){H(a,s),n=!1},d(s){s&&z(e),a&&a.d(s)}}}function Sn(i,e,t){let n,l;ve(i,_n,m=>t(20,l=m));let{$$slots:a={},$$scope:s}=e,{autocollapse:o=!1}=e,{width:r="w-full"}=e,{spacing:f="space-y-1"}=e,{disabled:u=!1}=e,{padding:b="py-2 px-4"}=e,{hover:P="hover:bg-primary-hover-token"}=e,{rounded:k="rounded-container-token"}=e,{caretOpen:d="rotate-180"}=e,{caretClosed:p=""}=e,{regionControl:R=""}=e,{regionPanel:y="space-y-4"}=e,{regionCaret:M=""}=e,{transitions:N=!l}=e,{transitionIn:K=ft}=e,{transitionInParams:w={duration:200}}=e,{transitionOut:O=ft}=e,{transitionOutParams:g={duration:200}}=e;const T=we(null);return x("active",T),x("autocollapse",o),x("disabled",u),x("padding",b),x("hover",P),x("rounded",k),x("caretOpen",d),x("caretClosed",p),x("regionControl",R),x("regionPanel",y),x("regionCaret",M),x("transitions",N),x("transitionIn",K),x("transitionInParams",w),x("transitionOut",O),x("transitionOutParams",g),i.$$set=m=>{t(22,e=Ve(Ve({},e),He(m))),"autocollapse"in m&&t(1,o=m.autocollapse),"width"in m&&t(2,r=m.width),"spacing"in m&&t(3,f=m.spacing),"disabled"in m&&t(4,u=m.disabled),"padding"in m&&t(5,b=m.padding),"hover"in m&&t(6,P=m.hover),"rounded"in m&&t(7,k=m.rounded),"caretOpen"in m&&t(8,d=m.caretOpen),"caretClosed"in m&&t(9,p=m.caretClosed),"regionControl"in m&&t(10,R=m.regionControl),"regionPanel"in m&&t(11,y=m.regionPanel),"regionCaret"in m&&t(12,M=m.regionCaret),"transitions"in m&&t(13,N=m.transitions),"transitionIn"in m&&t(14,K=m.transitionIn),"transitionInParams"in m&&t(15,w=m.transitionInParams),"transitionOut"in m&&t(16,O=m.transitionOut),"transitionOutParams"in m&&t(17,g=m.transitionOutParams),"$$scope"in m&&t(18,s=m.$$scope)},i.$$.update=()=>{t(0,n=`${r} ${f} ${e.class??""}`)},e=He(e),[n,o,r,f,u,b,P,k,d,p,R,y,M,N,K,w,O,g,s,a]}class vn extends ye{constructor(e){super(),Ce(this,e,Sn,gn,pe,{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})}}const kn=i=>({}),ht=i=>({}),zn=i=>({}),mt=i=>({}),Pn=i=>({}),_t=i=>({}),pn=i=>({}),bt=i=>({}),yn=i=>({}),gt=i=>({});function St(i){let e,t;const n=i[30].lead,l=_e(n,i,i[29],gt);return{c(){e=G("div"),l&&l.c(),this.h()},l(a){e=j(a,"DIV",{class:!0});var s=q(e);l&&l.l(s),s.forEach(z),this.h()},h(){S(e,"class","accordion-lead")},m(a,s){F(a,e,s),l&&l.m(e,null),t=!0},p(a,s){l&&l.p&&(!t||s[0]&536870912)&&be(l,n,a,a[29],t?Se(n,a[29],s,yn):ge(a[29]),gt)},i(a){t||(A(l,a),t=!0)},o(a){H(l,a),t=!1},d(a){a&&z(e),l&&l.d(a)}}}function Cn(i){let e;return{c(){e=ae("(summary)")},l(t){e=oe(t,"(summary)")},m(t,n){F(t,e,n)},d(t){t&&z(e)}}}function Rn(i){let e,t,n;return{c(){e=G("div"),t=new nt(!1),this.h()},l(l){e=j(l,"DIV",{class:!0});var a=q(e);t=lt(a,!1),a.forEach(z),this.h()},h(){t.a=null,S(e,"class",n="accordion-summary-caret "+i[11])},m(l,a){F(l,e,a),t.m(i[14],e)},p(l,a){a[0]&2048&&n!==(n="accordion-summary-caret "+l[11])&&S(e,"class",n)},i:ke,o:ke,d(l){l&&z(e)}}}function Dn(i){let e,t,n,l,a;const s=[On,In],o=[];function r(f,u){return f[8]?0:1}return t=r(i),n=o[t]=s[t](i),{c(){e=G("div"),n.c(),this.h()},l(f){e=j(f,"DIV",{class:!0});var u=q(e);n.l(u),u.forEach(z),this.h()},h(){S(e,"class",l="accordion-summary-icons "+i[10])},m(f,u){F(f,e,u),o[t].m(e,null),a=!0},p(f,u){let b=t;t=r(f),t===b?o[t].p(f,u):(de(),H(o[b],1,1,()=>{o[b]=null}),he(),n=o[t],n?n.p(f,u):(n=o[t]=s[t](f),n.c()),A(n,1),n.m(e,null)),(!a||u[0]&1024&&l!==(l="accordion-summary-icons "+f[10]))&&S(e,"class",l)},i(f){a||(A(n),a=!0)},o(f){H(n),a=!1},d(f){f&&z(e),o[t].d()}}}function In(i){let e;const t=i[30].iconOpen,n=_e(t,i,i[29],mt),l=n||En(i);return{c(){l&&l.c()},l(a){l&&l.l(a)},m(a,s){l&&l.m(a,s),e=!0},p(a,s){n&&n.p&&(!e||s[0]&536870912)&&be(n,t,a,a[29],e?Se(t,a[29],s,zn):ge(a[29]),mt)},i(a){e||(A(l,a),e=!0)},o(a){H(l,a),e=!1},d(a){l&&l.d(a)}}}function On(i){let e;const t=i[30].iconClosed,n=_e(t,i,i[29],_t),l=n||Mn(i);return{c(){l&&l.c()},l(a){l&&l.l(a)},m(a,s){l&&l.m(a,s),e=!0},p(a,s){n&&n.p&&(!e||s[0]&536870912)&&be(n,t,a,a[29],e?Se(t,a[29],s,Pn):ge(a[29]),_t)},i(a){e||(A(l,a),e=!0)},o(a){H(l,a),e=!1},d(a){l&&l.d(a)}}}function En(i){let e,t;return{c(){e=new nt(!1),t=re(),this.h()},l(n){e=lt(n,!1),t=re(),this.h()},h(){e.a=t},m(n,l){e.m(i[14],n,l),F(n,t,l)},p:ke,d(n){n&&(z(t),e.d())}}}function Mn(i){let e,t;return{c(){e=new nt(!1),t=re(),this.h()},l(n){e=lt(n,!1),t=re(),this.h()},h(){e.a=t},m(n,l){e.m(i[14],n,l),F(n,t,l)},p:ke,d(n){n&&(z(t),e.d())}}}function vt(i){let e,t,n,l,a,s,o;const r=i[30].content,f=_e(r,i,i[29],ht),u=f||Tn();return{c(){e=G("div"),u&&u.c(),this.h()},l(b){e=j(b,"DIV",{class:!0,id:!0,role:!0,"aria-hidden":!0,"aria-labelledby":!0});var P=q(e);u&&u.l(P),P.forEach(z),this.h()},h(){S(e,"class",t="accordion-panel "+i[9]),S(e,"id",n="accordion-panel-"+i[0]),S(e,"role","region"),S(e,"aria-hidden",l=!i[8]),S(e,"aria-labelledby",i[0])},m(b,P){F(b,e,P),u&&u.m(e,null),o=!0},p(b,P){i=b,f&&f.p&&(!o||P[0]&536870912)&&be(f,r,i,i[29],o?Se(r,i[29],P,kn):ge(i[29]),ht),(!o||P[0]&512&&t!==(t="accordion-panel "+i[9]))&&S(e,"class",t),(!o||P[0]&1&&n!==(n="accordion-panel-"+i[0]))&&S(e,"id",n),(!o||P[0]&256&&l!==(l=!i[8]))&&S(e,"aria-hidden",l),(!o||P[0]&1)&&S(e,"aria-labelledby",i[0])},i(b){o||(A(u,b),b&&cn(()=>{o&&(s&&s.end(1),a=hn(e,dt,{transition:i[4],params:i[5],enabled:i[3]}),a.start())}),o=!0)},o(b){H(u,b),a&&a.invalidate(),b&&(s=mn(e,dt,{transition:i[6],params:i[7],enabled:i[3]})),o=!1},d(b){b&&z(e),u&&u.d(b),b&&s&&s.end()}}}function Tn(i){let e;return{c(){e=ae("(content)")},l(t){e=oe(t,"(content)")},m(t,n){F(t,e,n)},d(t){t&&z(e)}}}function Bn(i){let e,t,n,l,a,s,o,r,f,u,b,P,k,d,p=i[16].lead&&St(i);const R=i[30].summary,y=_e(R,i,i[29],bt),M=y||Cn(),N=[Dn,Rn],K=[];function w(g,T){return g[16].iconClosed||g[16].iconOpen?0:1}s=w(i),o=K[s]=N[s](i);let O=i[8]&&vt(i);return{c(){e=G("div"),t=G("button"),p&&p.c(),n=te(),l=G("div"),M&&M.c(),a=te(),o.c(),u=te(),O&&O.c(),this.h()},l(g){e=j(g,"DIV",{class:!0,"data-testid":!0});var T=q(e);t=j(T,"BUTTON",{type:!0,class:!0,id:!0,"aria-expanded":!0,"aria-controls":!0});var m=q(t);p&&p.l(m),n=ne(m),l=j(m,"DIV",{class:!0});var L=q(l);M&&M.l(L),L.forEach(z),a=ne(m),o.l(m),m.forEach(z),u=ne(T),O&&O.l(T),T.forEach(z),this.h()},h(){S(l,"class","accordion-summary flex-1"),S(t,"type","button"),S(t,"class",r="accordion-control "+i[12]),S(t,"id",i[0]),S(t,"aria-expanded",i[8]),S(t,"aria-controls",f="accordion-panel-"+i[0]),t.disabled=i[2],S(e,"class",b="accordion-item "+i[13]),S(e,"data-testid","accordion-item")},m(g,T){F(g,e,T),W(e,t),p&&p.m(t,null),W(t,n),W(t,l),M&&M.m(l,null),W(t,a),K[s].m(t,null),W(e,u),O&&O.m(e,null),P=!0,k||(d=[ee(t,"click",i[15]),ee(t,"click",i[31]),ee(t,"keydown",i[32]),ee(t,"keyup",i[33]),ee(t,"keypress",i[34])],k=!0)},p(g,T){g[16].lead?p?(p.p(g,T),T[0]&65536&&A(p,1)):(p=St(g),p.c(),A(p,1),p.m(t,n)):p&&(de(),H(p,1,1,()=>{p=null}),he()),y&&y.p&&(!P||T[0]&536870912)&&be(y,R,g,g[29],P?Se(R,g[29],T,pn):ge(g[29]),bt);let m=s;s=w(g),s===m?K[s].p(g,T):(de(),H(K[m],1,1,()=>{K[m]=null}),he(),o=K[s],o?o.p(g,T):(o=K[s]=N[s](g),o.c()),A(o,1),o.m(t,null)),(!P||T[0]&4096&&r!==(r="accordion-control "+g[12]))&&S(t,"class",r),(!P||T[0]&1)&&S(t,"id",g[0]),(!P||T[0]&256)&&S(t,"aria-expanded",g[8]),(!P||T[0]&1&&f!==(f="accordion-panel-"+g[0]))&&S(t,"aria-controls",f),(!P||T[0]&4)&&(t.disabled=g[2]),g[8]?O?(O.p(g,T),T[0]&256&&A(O,1)):(O=vt(g),O.c(),A(O,1),O.m(e,null)):O&&(de(),H(O,1,1,()=>{O=null}),he()),(!P||T[0]&8192&&b!==(b="accordion-item "+g[13]))&&S(e,"class",b)},i(g){P||(A(p),A(M,g),A(o),A(O),P=!0)},o(g){H(p),H(M,g),H(o),H(O),P=!1},d(g){g&&z(e),p&&p.d(),M&&M.d(g),K[s].d(),O&&O.d(),k=!1,tt(d)}}}const Ln="",Nn="text-start w-full flex items-center space-x-4",kt="fill-current w-3 transition-transform duration-[200ms]",Fn="";function Un(i,e,t){let n,l,a,s,o,r,f,u,b=ke,P=()=>(b(),b=un(K,I=>t(28,u=I)),K);i.$$.on_destroy.push(()=>b());let{$$slots:k={},$$scope:d}=e;const p=rn(k),R=wt();let{open:y=!1}=e,{id:M=String(Math.random())}=e,{autocollapse:N=$("autocollapse")}=e,{active:K=$("active")}=e;P();let{disabled:w=$("disabled")}=e,{padding:O=$("padding")}=e,{hover:g=$("hover")}=e,{rounded:T=$("rounded")}=e,{caretOpen:m=$("caretOpen")}=e,{caretClosed:L=$("caretClosed")}=e,{regionControl:h=$("regionControl")}=e,{regionPanel:Z=$("regionPanel")}=e,{regionCaret:J=$("regionCaret")}=e,{transitions:ie=$("transitions")}=e,{transitionIn:V=$("transitionIn")}=e,{transitionInParams:fe=$("transitionInParams")}=e,{transitionOut:Ye=$("transitionOut")}=e,{transitionOutParams:Ee=$("transitionOutParams")}=e;const Qe=` +import{b as pe,L as _e,e as G,d as j,f as q,i as z,u as S,k as F,M as be,N as ge,O as Se,o as ve,s as x,P as Ve,Q as He,c as te,j as ne,l as W,w as ee,r as tt,R as rn,ac as wt,g as $,X as cn,n as ke,ad as un,S as Fe,t as ae,h as oe,H as nt,C as lt,F as re,B as ue,A as Vt,ae as Ht,G as fn,aa as Pe,K as dn,p as Ge,I as Gt,m as Oe,y as je,q as jt,x as Kt}from"./scheduler.5WtVptCO.js";import{S as ye,i as Ce,a as A,t as H,g as de,f as he,h as hn,j as mn,c as Ke,d as We,m as qe,e as Xe,b as Wt}from"./index.7IiDzEZn.js";import{w as we}from"./index.G3yBo0_P.js";import{e as me}from"./each.C7pZUaX1.js";import{p as _n}from"./ProgressBar.svelte_svelte_type_style_lang.7yc35pDe.js";import{s as ft,d as dt}from"./transitions.QBIMuVLc.js";import{b as bn}from"./SearchUtils.dqpKCG0P.js";const qt=!0;function gn(i){let e,t,n;const l=i[19].default,a=_e(l,i,i[18],null);return{c(){e=G("div"),a&&a.c(),this.h()},l(s){e=j(s,"DIV",{class:!0,"data-testid":!0});var o=q(e);a&&a.l(o),o.forEach(z),this.h()},h(){S(e,"class",t="accordion "+i[0]),S(e,"data-testid","accordion")},m(s,o){F(s,e,o),a&&a.m(e,null),n=!0},p(s,[o]){a&&a.p&&(!n||o&262144)&&be(a,l,s,s[18],n?Se(l,s[18],o,null):ge(s[18]),null),(!n||o&1&&t!==(t="accordion "+s[0]))&&S(e,"class",t)},i(s){n||(A(a,s),n=!0)},o(s){H(a,s),n=!1},d(s){s&&z(e),a&&a.d(s)}}}function Sn(i,e,t){let n,l;ve(i,_n,m=>t(20,l=m));let{$$slots:a={},$$scope:s}=e,{autocollapse:o=!1}=e,{width:r="w-full"}=e,{spacing:f="space-y-1"}=e,{disabled:u=!1}=e,{padding:b="py-2 px-4"}=e,{hover:P="hover:bg-primary-hover-token"}=e,{rounded:k="rounded-container-token"}=e,{caretOpen:d="rotate-180"}=e,{caretClosed:p=""}=e,{regionControl:R=""}=e,{regionPanel:y="space-y-4"}=e,{regionCaret:M=""}=e,{transitions:N=!l}=e,{transitionIn:K=ft}=e,{transitionInParams:w={duration:200}}=e,{transitionOut:O=ft}=e,{transitionOutParams:g={duration:200}}=e;const T=we(null);return x("active",T),x("autocollapse",o),x("disabled",u),x("padding",b),x("hover",P),x("rounded",k),x("caretOpen",d),x("caretClosed",p),x("regionControl",R),x("regionPanel",y),x("regionCaret",M),x("transitions",N),x("transitionIn",K),x("transitionInParams",w),x("transitionOut",O),x("transitionOutParams",g),i.$$set=m=>{t(22,e=Ve(Ve({},e),He(m))),"autocollapse"in m&&t(1,o=m.autocollapse),"width"in m&&t(2,r=m.width),"spacing"in m&&t(3,f=m.spacing),"disabled"in m&&t(4,u=m.disabled),"padding"in m&&t(5,b=m.padding),"hover"in m&&t(6,P=m.hover),"rounded"in m&&t(7,k=m.rounded),"caretOpen"in m&&t(8,d=m.caretOpen),"caretClosed"in m&&t(9,p=m.caretClosed),"regionControl"in m&&t(10,R=m.regionControl),"regionPanel"in m&&t(11,y=m.regionPanel),"regionCaret"in m&&t(12,M=m.regionCaret),"transitions"in m&&t(13,N=m.transitions),"transitionIn"in m&&t(14,K=m.transitionIn),"transitionInParams"in m&&t(15,w=m.transitionInParams),"transitionOut"in m&&t(16,O=m.transitionOut),"transitionOutParams"in m&&t(17,g=m.transitionOutParams),"$$scope"in m&&t(18,s=m.$$scope)},i.$$.update=()=>{t(0,n=`${r} ${f} ${e.class??""}`)},e=He(e),[n,o,r,f,u,b,P,k,d,p,R,y,M,N,K,w,O,g,s,a]}class vn extends ye{constructor(e){super(),Ce(this,e,Sn,gn,pe,{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})}}const kn=i=>({}),ht=i=>({}),zn=i=>({}),mt=i=>({}),Pn=i=>({}),_t=i=>({}),pn=i=>({}),bt=i=>({}),yn=i=>({}),gt=i=>({});function St(i){let e,t;const n=i[30].lead,l=_e(n,i,i[29],gt);return{c(){e=G("div"),l&&l.c(),this.h()},l(a){e=j(a,"DIV",{class:!0});var s=q(e);l&&l.l(s),s.forEach(z),this.h()},h(){S(e,"class","accordion-lead")},m(a,s){F(a,e,s),l&&l.m(e,null),t=!0},p(a,s){l&&l.p&&(!t||s[0]&536870912)&&be(l,n,a,a[29],t?Se(n,a[29],s,yn):ge(a[29]),gt)},i(a){t||(A(l,a),t=!0)},o(a){H(l,a),t=!1},d(a){a&&z(e),l&&l.d(a)}}}function Cn(i){let e;return{c(){e=ae("(summary)")},l(t){e=oe(t,"(summary)")},m(t,n){F(t,e,n)},d(t){t&&z(e)}}}function Rn(i){let e,t,n;return{c(){e=G("div"),t=new nt(!1),this.h()},l(l){e=j(l,"DIV",{class:!0});var a=q(e);t=lt(a,!1),a.forEach(z),this.h()},h(){t.a=null,S(e,"class",n="accordion-summary-caret "+i[11])},m(l,a){F(l,e,a),t.m(i[14],e)},p(l,a){a[0]&2048&&n!==(n="accordion-summary-caret "+l[11])&&S(e,"class",n)},i:ke,o:ke,d(l){l&&z(e)}}}function Dn(i){let e,t,n,l,a;const s=[On,In],o=[];function r(f,u){return f[8]?0:1}return t=r(i),n=o[t]=s[t](i),{c(){e=G("div"),n.c(),this.h()},l(f){e=j(f,"DIV",{class:!0});var u=q(e);n.l(u),u.forEach(z),this.h()},h(){S(e,"class",l="accordion-summary-icons "+i[10])},m(f,u){F(f,e,u),o[t].m(e,null),a=!0},p(f,u){let b=t;t=r(f),t===b?o[t].p(f,u):(de(),H(o[b],1,1,()=>{o[b]=null}),he(),n=o[t],n?n.p(f,u):(n=o[t]=s[t](f),n.c()),A(n,1),n.m(e,null)),(!a||u[0]&1024&&l!==(l="accordion-summary-icons "+f[10]))&&S(e,"class",l)},i(f){a||(A(n),a=!0)},o(f){H(n),a=!1},d(f){f&&z(e),o[t].d()}}}function In(i){let e;const t=i[30].iconOpen,n=_e(t,i,i[29],mt),l=n||En(i);return{c(){l&&l.c()},l(a){l&&l.l(a)},m(a,s){l&&l.m(a,s),e=!0},p(a,s){n&&n.p&&(!e||s[0]&536870912)&&be(n,t,a,a[29],e?Se(t,a[29],s,zn):ge(a[29]),mt)},i(a){e||(A(l,a),e=!0)},o(a){H(l,a),e=!1},d(a){l&&l.d(a)}}}function On(i){let e;const t=i[30].iconClosed,n=_e(t,i,i[29],_t),l=n||Mn(i);return{c(){l&&l.c()},l(a){l&&l.l(a)},m(a,s){l&&l.m(a,s),e=!0},p(a,s){n&&n.p&&(!e||s[0]&536870912)&&be(n,t,a,a[29],e?Se(t,a[29],s,Pn):ge(a[29]),_t)},i(a){e||(A(l,a),e=!0)},o(a){H(l,a),e=!1},d(a){l&&l.d(a)}}}function En(i){let e,t;return{c(){e=new nt(!1),t=re(),this.h()},l(n){e=lt(n,!1),t=re(),this.h()},h(){e.a=t},m(n,l){e.m(i[14],n,l),F(n,t,l)},p:ke,d(n){n&&(z(t),e.d())}}}function Mn(i){let e,t;return{c(){e=new nt(!1),t=re(),this.h()},l(n){e=lt(n,!1),t=re(),this.h()},h(){e.a=t},m(n,l){e.m(i[14],n,l),F(n,t,l)},p:ke,d(n){n&&(z(t),e.d())}}}function vt(i){let e,t,n,l,a,s,o;const r=i[30].content,f=_e(r,i,i[29],ht),u=f||Tn();return{c(){e=G("div"),u&&u.c(),this.h()},l(b){e=j(b,"DIV",{class:!0,id:!0,role:!0,"aria-hidden":!0,"aria-labelledby":!0});var P=q(e);u&&u.l(P),P.forEach(z),this.h()},h(){S(e,"class",t="accordion-panel "+i[9]),S(e,"id",n="accordion-panel-"+i[0]),S(e,"role","region"),S(e,"aria-hidden",l=!i[8]),S(e,"aria-labelledby",i[0])},m(b,P){F(b,e,P),u&&u.m(e,null),o=!0},p(b,P){i=b,f&&f.p&&(!o||P[0]&536870912)&&be(f,r,i,i[29],o?Se(r,i[29],P,kn):ge(i[29]),ht),(!o||P[0]&512&&t!==(t="accordion-panel "+i[9]))&&S(e,"class",t),(!o||P[0]&1&&n!==(n="accordion-panel-"+i[0]))&&S(e,"id",n),(!o||P[0]&256&&l!==(l=!i[8]))&&S(e,"aria-hidden",l),(!o||P[0]&1)&&S(e,"aria-labelledby",i[0])},i(b){o||(A(u,b),b&&cn(()=>{o&&(s&&s.end(1),a=hn(e,dt,{transition:i[4],params:i[5],enabled:i[3]}),a.start())}),o=!0)},o(b){H(u,b),a&&a.invalidate(),b&&(s=mn(e,dt,{transition:i[6],params:i[7],enabled:i[3]})),o=!1},d(b){b&&z(e),u&&u.d(b),b&&s&&s.end()}}}function Tn(i){let e;return{c(){e=ae("(content)")},l(t){e=oe(t,"(content)")},m(t,n){F(t,e,n)},d(t){t&&z(e)}}}function Bn(i){let e,t,n,l,a,s,o,r,f,u,b,P,k,d,p=i[16].lead&&St(i);const R=i[30].summary,y=_e(R,i,i[29],bt),M=y||Cn(),N=[Dn,Rn],K=[];function w(g,T){return g[16].iconClosed||g[16].iconOpen?0:1}s=w(i),o=K[s]=N[s](i);let O=i[8]&&vt(i);return{c(){e=G("div"),t=G("button"),p&&p.c(),n=te(),l=G("div"),M&&M.c(),a=te(),o.c(),u=te(),O&&O.c(),this.h()},l(g){e=j(g,"DIV",{class:!0,"data-testid":!0});var T=q(e);t=j(T,"BUTTON",{type:!0,class:!0,id:!0,"aria-expanded":!0,"aria-controls":!0});var m=q(t);p&&p.l(m),n=ne(m),l=j(m,"DIV",{class:!0});var L=q(l);M&&M.l(L),L.forEach(z),a=ne(m),o.l(m),m.forEach(z),u=ne(T),O&&O.l(T),T.forEach(z),this.h()},h(){S(l,"class","accordion-summary flex-1"),S(t,"type","button"),S(t,"class",r="accordion-control "+i[12]),S(t,"id",i[0]),S(t,"aria-expanded",i[8]),S(t,"aria-controls",f="accordion-panel-"+i[0]),t.disabled=i[2],S(e,"class",b="accordion-item "+i[13]),S(e,"data-testid","accordion-item")},m(g,T){F(g,e,T),W(e,t),p&&p.m(t,null),W(t,n),W(t,l),M&&M.m(l,null),W(t,a),K[s].m(t,null),W(e,u),O&&O.m(e,null),P=!0,k||(d=[ee(t,"click",i[15]),ee(t,"click",i[31]),ee(t,"keydown",i[32]),ee(t,"keyup",i[33]),ee(t,"keypress",i[34])],k=!0)},p(g,T){g[16].lead?p?(p.p(g,T),T[0]&65536&&A(p,1)):(p=St(g),p.c(),A(p,1),p.m(t,n)):p&&(de(),H(p,1,1,()=>{p=null}),he()),y&&y.p&&(!P||T[0]&536870912)&&be(y,R,g,g[29],P?Se(R,g[29],T,pn):ge(g[29]),bt);let m=s;s=w(g),s===m?K[s].p(g,T):(de(),H(K[m],1,1,()=>{K[m]=null}),he(),o=K[s],o?o.p(g,T):(o=K[s]=N[s](g),o.c()),A(o,1),o.m(t,null)),(!P||T[0]&4096&&r!==(r="accordion-control "+g[12]))&&S(t,"class",r),(!P||T[0]&1)&&S(t,"id",g[0]),(!P||T[0]&256)&&S(t,"aria-expanded",g[8]),(!P||T[0]&1&&f!==(f="accordion-panel-"+g[0]))&&S(t,"aria-controls",f),(!P||T[0]&4)&&(t.disabled=g[2]),g[8]?O?(O.p(g,T),T[0]&256&&A(O,1)):(O=vt(g),O.c(),A(O,1),O.m(e,null)):O&&(de(),H(O,1,1,()=>{O=null}),he()),(!P||T[0]&8192&&b!==(b="accordion-item "+g[13]))&&S(e,"class",b)},i(g){P||(A(p),A(M,g),A(o),A(O),P=!0)},o(g){H(p),H(M,g),H(o),H(O),P=!1},d(g){g&&z(e),p&&p.d(),M&&M.d(g),K[s].d(),O&&O.d(),k=!1,tt(d)}}}const Ln="",Nn="text-start w-full flex items-center space-x-4",kt="fill-current w-3 transition-transform duration-[200ms]",Fn="";function Un(i,e,t){let n,l,a,s,o,r,f,u,b=ke,P=()=>(b(),b=un(K,I=>t(28,u=I)),K);i.$$.on_destroy.push(()=>b());let{$$slots:k={},$$scope:d}=e;const p=rn(k),R=wt();let{open:y=!1}=e,{id:M=String(Math.random())}=e,{autocollapse:N=$("autocollapse")}=e,{active:K=$("active")}=e;P();let{disabled:w=$("disabled")}=e,{padding:O=$("padding")}=e,{hover:g=$("hover")}=e,{rounded:T=$("rounded")}=e,{caretOpen:m=$("caretOpen")}=e,{caretClosed:L=$("caretClosed")}=e,{regionControl:h=$("regionControl")}=e,{regionPanel:Z=$("regionPanel")}=e,{regionCaret:J=$("regionCaret")}=e,{transitions:ie=$("transitions")}=e,{transitionIn:V=$("transitionIn")}=e,{transitionInParams:fe=$("transitionInParams")}=e,{transitionOut:Ye=$("transitionOut")}=e,{transitionOutParams:Ee=$("transitionOutParams")}=e;const Qe=` `;function Re(I){N===!0?K.set(M):t(17,y=!y),Ze(I)}function Ze(I){const Ie=N?u===M:y;R("toggle",{event:I,id:M,panelId:`accordion-panel-${M}`,open:Ie,autocollapse:N})}N&&y&&Re();function Me(I){Fe.call(this,i,I)}function Je(I){Fe.call(this,i,I)}function Te(I){Fe.call(this,i,I)}function De(I){Fe.call(this,i,I)}return i.$$set=I=>{t(37,e=Ve(Ve({},e),He(I))),"open"in I&&t(17,y=I.open),"id"in I&&t(0,M=I.id),"autocollapse"in I&&t(18,N=I.autocollapse),"active"in I&&P(t(1,K=I.active)),"disabled"in I&&t(2,w=I.disabled),"padding"in I&&t(19,O=I.padding),"hover"in I&&t(20,g=I.hover),"rounded"in I&&t(21,T=I.rounded),"caretOpen"in I&&t(22,m=I.caretOpen),"caretClosed"in I&&t(23,L=I.caretClosed),"regionControl"in I&&t(24,h=I.regionControl),"regionPanel"in I&&t(25,Z=I.regionPanel),"regionCaret"in I&&t(26,J=I.regionCaret),"transitions"in I&&t(3,ie=I.transitions),"transitionIn"in I&&t(4,V=I.transitionIn),"transitionInParams"in I&&t(5,fe=I.transitionInParams),"transitionOut"in I&&t(6,Ye=I.transitionOut),"transitionOutParams"in I&&t(7,Ee=I.transitionOutParams),"$$scope"in I&&t(29,d=I.$$scope)},i.$$.update=()=>{i.$$.dirty[0]&393216&&y&&N&&Re(),i.$$.dirty[0]&268828673&&t(8,n=N?u===M:y),t(13,l=`${Ln} ${e.class??""}`),i.$$.dirty[0]&20447232&&t(12,a=`${Nn} ${O} ${g} ${T} ${h}`),i.$$.dirty[0]&12583168&&t(27,s=n?m:L),i.$$.dirty[0]&201326592&&t(11,o=`${kt} ${J} ${s}`),i.$$.dirty[0]&67108864&&t(10,r=`${kt} ${J}`),i.$$.dirty[0]&36175872&&t(9,f=`${Fn} ${O} ${T} ${Z}`)},e=He(e),[M,K,w,ie,V,fe,Ye,Ee,n,f,r,o,a,l,Qe,Re,p,y,N,O,g,T,m,L,h,Z,J,s,u,d,k,Me,Je,Te,De]}class An extends ye{constructor(e){super(),Ce(this,e,Un,Bn,pe,{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 Ue(i){if(!i.endsWith("px"))return;const e=parseFloat(i.slice(0,i.length-2));return isNaN(e)?void 0:e}const Xt=i=>i?"height":"width",$e=i=>window.getComputedStyle(i),et=i=>i.getBoundingClientRect(),wn=(i,e=!0)=>{if(i.getPropertyValue("box-sizing")==="border-box")return;const t=Ue(i.getPropertyValue("border-left-width"));if(t===void 0){console.error("Splitpanes Error: Fail to parse container `border-left-width`.");return}const n=Ue(i.getPropertyValue("border-top-width"));if(n===void 0){console.error("Splitpanes Error: Fail to parse container `border-top-width`.");return}const l={left:t,top:n};if(e){const a=Ue(i.getPropertyValue("border-right-width"));if(a===void 0){console.error("Splitpanes Error: Fail to parse container `border-right-width`.");return}const s=Ue(i.getPropertyValue("border-bottom-width"));if(s===void 0){console.error("Splitpanes Error: Fail to parse container `border-bottom-width`.");return}const o=l;o.right=a,o.bottom=s}return l};function Vn(i,e){e||(e=$e(i));const t=et(i),n=wn(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 zt=(i,e)=>({left:i.left-e.left,top:i.top-e.top});function Pt(i){const e=i,t=i,{clientX:n,clientY:l}="ontouchstart"in window&&t.touches?t.touches[0]:e;return{left:n,top:l}}function pt(i,e,t,n){let l=0;for(let a=e;at(31,a=c));const J=we(k);ve(i,J,c=>t(30,l=c));const ie=we(void 0);ve(i,ie,c=>t(29,n=c));let V=null,fe=null;x(Yt,{showFirstSplitter:J,veryFirstPaneKey:ie,isHorizontal:Z,ssrRegisterPaneSize:void 0,onPaneInit:c=>(n===void 0&&Pe(ie,n=c,n),{undefinedPaneInitSize:0}),clientOnly:{onPaneAdd:Ee,onPaneRemove:Qe}});function Ee(c){let v=-1;Array.from(c.element.parentNode.children).some(_=>(_.className.includes("splitpanes__pane")&&v++,_===c.element)),v===0&&Pe(ie,n=c.key,n),h.splice(v,0,c);for(let _=0;_{c.isReady=!0,y("pane-add",{index:v,panes:ze()})});const E=(_,B=!0)=>D=>{(B||c.index>0)&&_(D,c)};return{onSplitterDown:E(Zt,!1),onSplitterClick:E(Jt,!1),onSplitterDblClick:E(it),onPaneClick:E(Re),reportGivenSizeChange:E(Ze)}}async function Qe(c){const v=h.findIndex(E=>E.key===c);if(v>=0){const E=h.splice(v,1)[0];for(let _=0;_0?h[0].key:void 0,n),N&&(await xe(),y("pane-remove",{removed:E,panes:ze()}))}}function Re(c,v){y("pane-click",v)}function Ze(c,v){v.setSz(c),xe()}Vt(()=>{ct(),rt();for(let c=0;c{t(6,w=!0)},0)}),Ht(()=>{N&&Te(),N=!1}),fn(()=>{ct()});function Me(c){if(P==="auto")try{return(c??$e(M)).direction==="rtl"}catch{}return P===!0}function Je(){document.body.style.cursor=Z?"col-resize":"row-resize",document.addEventListener("mousemove",Be,{passive:!1}),document.addEventListener("mouseup",Le),"ontouchstart"in window&&(document.addEventListener("touchmove",Be,{passive:!1}),document.addEventListener("touchend",Le))}function Te(){document.body.style.cursor="",document.removeEventListener("mousemove",Be),document.removeEventListener("mouseup",Le),"ontouchstart"in window&&(document.removeEventListener("touchmove",Be),document.removeEventListener("touchend",Le))}const De=c=>c.nodeType===Node.ELEMENT_NODE&&c.classList.contains("splitpanes__splitter");function I(c,v,E){let _=c[f?"top":"left"];return E&&!f&&(_=v-_),_}const Ie=()=>Xt(f);function Zt(c,v){t(7,O=!0),T=v.index,v.setSplitterActive(!0);let _=v.element;for(;_!=null&&(_=_.previousSibling,!De(_)););if(_==null){console.error("Splitpane Error: Active splitter wasn't found!");return}V=_;const B=Pt(c),D=et(V);fe=I(zt(B,D),D[Ie()],Me()),Je()}function Be(c){if(O){c.preventDefault(),t(8,g=!0);const v=Pt(c),E=$e(M),_=Vn(M,E),B=_[Ie()],D=Me(E),C=zt(v,_),U=I(C,B,D);$t(U,B),y("resize",ze())}}function Le(){g&&y("resized",ze()),t(7,O=!1),h[T].setSplitterActive(!1),setTimeout(()=>{t(8,g=!1),Te()},100)}function Jt(c,v){if("ontouchstart"in window){c.preventDefault();const E=v.index;b&&(m===E?(L&&clearTimeout(L),L=null,it(c,v),m=-1):(m=E,L=setTimeout(()=>{m=-1},500)))}g||y("splitter-click",v)}function it(c,v){if(b){const E=v.index;let _=0;for(let C=0;C=100)for(let C=0;C{const Q=X.min(),le=X.max(),se=Math.min(Math.max(0,C),le-Q);X.setSz(Q+se),C-=se};for(let X=E-1;X>=0;X--)U(h[X]);for(let X=E+1;Xh.map(c=>({min:c.min(),max:c.max(),size:c.sz(),snap:c.snap()}));function xt(c,v){const E=le=>et(le)[Ie()],_=E(V);let B=0,D=V.previousSibling;for(;D!=null;)De(D)&&(B+=E(D)),D=D.previousSibling;let C=0,U=V.nextSibling;for(;U!=null;)De(U)&&(C+=E(U)),U=U.nextSibling;const X=B+fe,Q=B+_+C;return(c-X)/(v-Q)*100}function $t(c,v){let E=T-1,_=h[E],B=T,D=h[B],C={prevPanesSize:at(E),nextPanesSize:ot(B),prevReachedMinPanes:0,nextReachedMinPanes:0};const U=0+(u?0:C.prevPanesSize),X=100-(u?0:C.nextPanesSize),Q=Math.max(Math.min(xt(c,v),X),U),le=C.prevPanesSize+_.min()+_.snap(),se=100-(C.nextPanesSize+D.min()+D.snap());let Y=Q,ce=!1;Q<=le?Q>C.prevPanesSize+_.min()&&(Y=Math.max(_.min()+C.prevPanesSize,100-(D.max()+C.nextPanesSize)),ce=!0):Q>=se&&Q<100-C.nextPanesSize-D.min()&&(Y=Math.min(100-(D.min()+C.nextPanesSize),_.max()+C.prevPanesSize),ce=!0);const Ne=_.max()<100&&Y>=_.max()+C.prevPanesSize,on=D.max()<100&&Y<=100-(D.max()+C.nextPanesSize);if(Ne||on)Ne?(_.setSz(_.max()),D.setSz(Math.max(100-_.max()-C.prevPanesSize-C.nextPanesSize,0))):(_.setSz(Math.max(100-D.max()-C.prevPanesSize-C.nextPanesSize,0)),D.setSz(D.max()));else{if(u&&!ce){const ut=en(C,Y);if(!ut)return;({sums:C,paneBeforeIndex:E,paneAfterIndex:B}=ut),_=h[E],D=h[B]}E!=null&&_.setSz(Math.min(Math.max(Y-C.prevPanesSize-C.prevReachedMinPanes,_.min()),_.max())),B!=null&&D.setSz(Math.min(Math.max(100-Y-C.nextPanesSize-C.nextReachedMinPanes,D.min()),D.max()))}}function en(c,v){const E=T-1;let _=E,B=E+1;if(v{D.setSz(D.min()),c.prevReachedMinPanes+=D.min()}),c.prevPanesSize=at(_),_==null))return c.prevReachedMinPanes=0,h[0].setSz(h[0].min()),Ae(h,1,E+1,D=>{D.setSz(D.min()),c.prevReachedMinPanes+=D.min()}),h[B].setSz(100-c.prevReachedMinPanes-h[0].min()-c.prevPanesSize-c.nextPanesSize),null;if(v>100-c.nextPanesSize-h[B].min()){B=nn(E)?.index,c.nextReachedMinPanes=0,B>E+1&&Ae(h,E+1,B,C=>{C.setSz(C.min()),c.nextReachedMinPanes+=C.min()}),c.nextPanesSize=ot(B);const D=h.length;if(B==null)return c.nextReachedMinPanes=0,h[D-1].setSz(h[D-1].min()),Ae(h,E+1,D-1,C=>{C.setSz(C.min()),c.nextReachedMinPanes+=C.min()}),h[_].setSz(100-c.prevPanesSize-c.nextReachedMinPanes-h[D-1].min()-c.nextPanesSize),null}return{sums:c,paneBeforeIndex:_,paneAfterIndex:B}}const st=c=>c.sz(),at=c=>pt(h,0,c,st),ot=c=>pt(h,c+1,h.length,st),tn=c=>[...h].reverse().find(v=>v.indexv.min()),nn=c=>h.find(v=>v.index>c+1&&v.sz()>v.min());async function xe(){K=!0,await dn(),K&&(rt(),K=!1)}function rt(){ln(),N&&y("resized",ze())}function ln(){if(h.length===0)return;const c=h.length;let v=100,E=0,_=0,B=0,D=[],C=[];for(let se=0;se=Y.max()&&D.push(Y),ce<=Y.min()&&C.push(Y)):_+=1:(v-=ce,E++,D.push(Y),C.push(Y))}const U=c-E,X=U-_;let Q,le;if(X>0?(Q=B/X,Q>.1&&v>.1?(B+=_*Q,le=v/B):(Q=0,le=1)):(Q=v/U,le=1),v+B>.1){v=100;for(let se=0;se.1&&(v=sn(v,D,C))}isFinite(v)?Math.abs(v)>.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 sn(c,v,E){const B=h.length-(c>0?v.length:E.length);if(B<=0)return c;const D=c/B;if(h.length===1)h[0].setSz(100),c=0;else for(let C=0;C0&&!v.includes(U)){const Q=Math.max(Math.min(X+D,U.max()),U.min()),le=Q-X;c-=le,U.setSz(Q)}else if(!E.includes(U)){const Q=Math.max(Math.min(X+D,U.max()),U.min()),le=Q-X;c-=le,U.setSz(Q)}}return c}function ct(){const{children:c}=M;let v=0,E=!1;for(let _=0;_ elements are allowed at the root of . One of your DOM nodes was removed.");return}else D&&(!E&&h[v].element!==B&&(E=!0),v++)}if(E){const _=[];for(let B=0;BX.element===D);U!=null?(U.index=_.length,_.push(U)):console.warn("Splitpanes: Internal error - found a elements which isn't tracked.")}}h=_,Pe(ie,n=h.length>0?h[0].key:void 0,n)}}function an(c){Ge[c?"unshift":"push"](()=>{M=c,t(5,M)})}return i.$$set=c=>{"id"in c&&t(0,r=c.id),"horizontal"in c&&t(1,f=c.horizontal),"pushOtherPanes"in c&&t(12,u=c.pushOtherPanes),"dblClickSplitter"in c&&t(13,b=c.dblClickSplitter),"rtl"in c&&t(14,P=c.rtl),"firstSplitter"in c&&t(15,k=c.firstSplitter),"style"in c&&t(2,d=c.style),"theme"in c&&t(3,p=c.theme),"class"in c&&t(4,R=c.class),"$$scope"in c&&t(18,o=c.$$scope)},i.$$.update=()=>{i.$$.dirty[0]&2&&Pe(Z,a=f,a),i.$$.dirty[0]&32768&&Pe(J,l=k,l)},[r,f,d,p,R,M,w,O,g,Z,J,ie,u,b,P,k,s,an,o]}class bl extends ye{constructor(e){super(),Ce(this,e,Gn,Hn,pe,{id:0,horizontal:1,pushOtherPanes:12,dblClickSplitter:13,rtl:14,firstSplitter:15,style:2,theme:3,class:4},null,[-1,-1,-1])}}const jn=(i,e)=>t=>{const n=i();n?.[e](t)},Kn=i=>jn.bind(null,i);function Wn(i){let e,t,n,l,a,s,o=(i[4]!==i[9]||i[5])&&yt(i);const r=i[20].default,f=_e(r,i,i[19],null);return{c(){o&&o.c(),e=te(),t=G("div"),f&&f.c(),this.h()},l(u){o&&o.l(u),e=ne(u),t=j(u,"DIV",{class:!0,style:!0});var b=q(t);f&&f.l(b),b.forEach(z),this.h()},h(){S(t,"class",n=`splitpanes__pane ${i[0]||""}`),S(t,"style",i[3])},m(u,b){o&&o.m(u,b),F(u,e,b),F(u,t,b),f&&f.m(t,null),i[21](t),l=!0,a||(s=ee(t,"click",i[11]("onPaneClick")),a=!0)},p(u,b){u[4]!==u[9]||u[5]?o?o.p(u,b):(o=yt(u),o.c(),o.m(e.parentNode,e)):o&&(o.d(1),o=null),f&&f.p&&(!l||b&524288)&&be(f,r,u,u[19],l?Se(r,u[19],b,null):ge(u[19]),null),(!l||b&1&&n!==(n=`splitpanes__pane ${u[0]||""}`))&&S(t,"class",n),(!l||b&8)&&S(t,"style",u[3])},i(u){l||(A(f,u),l=!0)},o(u){H(f,u),l=!1},d(u){u&&(z(e),z(t)),o&&o.d(u),f&&f.d(u),i[21](null),a=!1,s()}}}function yt(i){let e,t,n,l;return{c(){e=G("div"),this.h()},l(a){e=j(a,"DIV",{class:!0}),q(e).forEach(z),this.h()},h(){S(e,"class",t="splitpanes__splitter "+(i[2]?"splitpanes__splitter__active":""))},m(a,s){F(a,e,s),n||(l=[ee(e,"mousedown",i[11]("onSplitterDown")),ee(e,"touchstart",i[11]("onSplitterDown")),ee(e,"click",i[11]("onSplitterClick")),ee(e,"dblclick",i[11]("onSplitterDblClick"))],n=!0)},p(a,s){s&4&&t!==(t="splitpanes__splitter "+(a[2]?"splitpanes__splitter__active":""))&&S(e,"class",t)},d(a){a&&z(e),n=!1,tt(l)}}}function qn(i){let e,t,n=!i[10]&&Wn(i);return{c(){n&&n.c(),e=re()},l(l){n&&n.l(l),e=re()},m(l,a){n&&n.m(l,a),F(l,e,a),t=!0},p(l,[a]){l[10]||n.p(l,a)},i(l){t||(A(n),t=!0)},o(l){H(n),t=!1},d(l){l&&z(e),n&&n.d(l)}}}function Xn(i,e,t){let n,l,a,s,o,{$$slots:r={},$$scope:f}=e;const{ssrRegisterPaneSize:u,onPaneInit:b,clientOnly:P,isHorizontal:k,showFirstSplitter:d,veryFirstPaneKey:p}=$(Yt);ve(i,k,V=>t(18,a=V)),ve(i,d,V=>t(5,o=V)),ve(i,p,V=>t(4,s=V));let{size:R=null}=e,{minSize:y=0}=e,{maxSize:M=100}=e,{snapSize:N=0}=e,{class:K=""}=e;const w={},O=!qt,{undefinedPaneInitSize:g}=b(w);let T,m=R??g,L=!1,h;const Z=Kn(()=>h),J=V=>{V!=m&&Z("reportGivenSizeChange")(V)};Vt(()=>{const V={key:w,element:T,givenSize:R,sz:()=>m,setSz:fe=>{t(16,m=fe),R!=null&&R!=m&&t(12,R=m)},min:()=>y,max:()=>M,snap:()=>N,setSplitterActive:fe=>{t(2,L=fe)},isReady:!1};h=P.onPaneAdd(V)}),Ht(()=>{P.onPaneRemove(w)});function ie(V){Ge[V?"unshift":"push"](()=>{T=V,t(1,T)})}return i.$$set=V=>{"size"in V&&t(12,R=V.size),"minSize"in V&&t(13,y=V.minSize),"maxSize"in V&&t(14,M=V.maxSize),"snapSize"in V&&t(15,N=V.snapSize),"class"in V&&t(0,K=V.class),"$$scope"in V&&t(19,f=V.$$scope)},i.$$.update=()=>{i.$$.dirty&4096&&R!=null&&J(R),i.$$.dirty&262144&&t(17,n=Xt(a)),i.$$.dirty&196608&&t(3,l=`${n}: ${m}%;`)},[K,T,L,l,s,o,k,d,p,w,O,Z,R,y,M,N,m,n,a,f,r,ie]}class gl extends ye{constructor(e){super(),Ce(this,e,Xn,qn,pe,{size:12,minSize:13,maxSize:14,snapSize:15,class:0})}}function Ct(i,e,t){const n=i.slice();return n[11]=e[t],n}function Rt(i){let e,t,n;return{c(){e=G("input"),this.h()},l(l){e=j(l,"INPUT",{type:!0}),this.h()},h(){S(e,"type","checkbox")},m(l,a){F(l,e,a),e.checked=i[1][i[2].title],t||(n=ee(e,"change",i[9]),t=!0)},p(l,a){a&6&&(e.checked=l[1][l[2].title])},d(l){l&&z(e),t=!1,n()}}}function Yn(i){let e,t=i[2].teaser+"",n;return{c(){e=G("div"),n=ae(t),this.h()},l(l){e=j(l,"DIV",{class:!0});var a=q(e);n=oe(a,t),a.forEach(z),this.h()},h(){S(e,"class","annotation svelte-vfddhm")},m(l,a){F(l,e,a),W(e,n)},p(l,a){a&4&&t!==(t=l[2].teaser+"")&&Oe(n,t)},d(l){l&&z(e)}}}function Qn(i){let e,t=me(i[7].split(` diff --git a/build/client/_app/immutable/chunks/SearchResults.BskeUpWI.js b/build/client/_app/immutable/chunks/SearchResults.BskeUpWI.js deleted file mode 100644 index 53f6b9f143f16484d08dea86d34851a6d2784f05..0000000000000000000000000000000000000000 --- a/build/client/_app/immutable/chunks/SearchResults.BskeUpWI.js +++ /dev/null @@ -1,8 +0,0 @@ -import{b as pe,L as _e,e as G,d as j,f as q,i as z,u as S,k as F,M as be,N as ge,O as Se,o as ve,s as x,P as Ve,Q as He,c as te,j as ne,l as W,w as ee,r as tt,R as rn,ac as wt,g as $,X as cn,n as ke,ad as un,S as Fe,t as ae,h as oe,H as nt,C as lt,F as re,B as ue,A as Vt,ae as Ht,G as fn,aa as Pe,K as dn,p as Ge,I as Gt,m as Oe,y as je,q as jt,x as Kt}from"./scheduler.5WtVptCO.js";import{S as ye,i as Ce,a as A,t as H,g as de,f as he,h as hn,j as mn,c as Ke,d as We,m as qe,e as Xe,b as Wt}from"./index.7IiDzEZn.js";import{w as we}from"./index.G3yBo0_P.js";import{e as me}from"./each.C7pZUaX1.js";import{p as _n}from"./ProgressBar.svelte_svelte_type_style_lang.7yc35pDe.js";import{s as ft,d as dt}from"./transitions.QBIMuVLc.js";import{b as bn}from"./SearchUtils.xXGeXQj6.js";const qt=!0;function gn(i){let e,t,n;const l=i[19].default,a=_e(l,i,i[18],null);return{c(){e=G("div"),a&&a.c(),this.h()},l(s){e=j(s,"DIV",{class:!0,"data-testid":!0});var o=q(e);a&&a.l(o),o.forEach(z),this.h()},h(){S(e,"class",t="accordion "+i[0]),S(e,"data-testid","accordion")},m(s,o){F(s,e,o),a&&a.m(e,null),n=!0},p(s,[o]){a&&a.p&&(!n||o&262144)&&be(a,l,s,s[18],n?Se(l,s[18],o,null):ge(s[18]),null),(!n||o&1&&t!==(t="accordion "+s[0]))&&S(e,"class",t)},i(s){n||(A(a,s),n=!0)},o(s){H(a,s),n=!1},d(s){s&&z(e),a&&a.d(s)}}}function Sn(i,e,t){let n,l;ve(i,_n,m=>t(20,l=m));let{$$slots:a={},$$scope:s}=e,{autocollapse:o=!1}=e,{width:r="w-full"}=e,{spacing:f="space-y-1"}=e,{disabled:u=!1}=e,{padding:b="py-2 px-4"}=e,{hover:P="hover:bg-primary-hover-token"}=e,{rounded:k="rounded-container-token"}=e,{caretOpen:d="rotate-180"}=e,{caretClosed:p=""}=e,{regionControl:R=""}=e,{regionPanel:y="space-y-4"}=e,{regionCaret:M=""}=e,{transitions:N=!l}=e,{transitionIn:K=ft}=e,{transitionInParams:w={duration:200}}=e,{transitionOut:O=ft}=e,{transitionOutParams:g={duration:200}}=e;const T=we(null);return x("active",T),x("autocollapse",o),x("disabled",u),x("padding",b),x("hover",P),x("rounded",k),x("caretOpen",d),x("caretClosed",p),x("regionControl",R),x("regionPanel",y),x("regionCaret",M),x("transitions",N),x("transitionIn",K),x("transitionInParams",w),x("transitionOut",O),x("transitionOutParams",g),i.$$set=m=>{t(22,e=Ve(Ve({},e),He(m))),"autocollapse"in m&&t(1,o=m.autocollapse),"width"in m&&t(2,r=m.width),"spacing"in m&&t(3,f=m.spacing),"disabled"in m&&t(4,u=m.disabled),"padding"in m&&t(5,b=m.padding),"hover"in m&&t(6,P=m.hover),"rounded"in m&&t(7,k=m.rounded),"caretOpen"in m&&t(8,d=m.caretOpen),"caretClosed"in m&&t(9,p=m.caretClosed),"regionControl"in m&&t(10,R=m.regionControl),"regionPanel"in m&&t(11,y=m.regionPanel),"regionCaret"in m&&t(12,M=m.regionCaret),"transitions"in m&&t(13,N=m.transitions),"transitionIn"in m&&t(14,K=m.transitionIn),"transitionInParams"in m&&t(15,w=m.transitionInParams),"transitionOut"in m&&t(16,O=m.transitionOut),"transitionOutParams"in m&&t(17,g=m.transitionOutParams),"$$scope"in m&&t(18,s=m.$$scope)},i.$$.update=()=>{t(0,n=`${r} ${f} ${e.class??""}`)},e=He(e),[n,o,r,f,u,b,P,k,d,p,R,y,M,N,K,w,O,g,s,a]}class vn extends ye{constructor(e){super(),Ce(this,e,Sn,gn,pe,{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})}}const kn=i=>({}),ht=i=>({}),zn=i=>({}),mt=i=>({}),Pn=i=>({}),_t=i=>({}),pn=i=>({}),bt=i=>({}),yn=i=>({}),gt=i=>({});function St(i){let e,t;const n=i[30].lead,l=_e(n,i,i[29],gt);return{c(){e=G("div"),l&&l.c(),this.h()},l(a){e=j(a,"DIV",{class:!0});var s=q(e);l&&l.l(s),s.forEach(z),this.h()},h(){S(e,"class","accordion-lead")},m(a,s){F(a,e,s),l&&l.m(e,null),t=!0},p(a,s){l&&l.p&&(!t||s[0]&536870912)&&be(l,n,a,a[29],t?Se(n,a[29],s,yn):ge(a[29]),gt)},i(a){t||(A(l,a),t=!0)},o(a){H(l,a),t=!1},d(a){a&&z(e),l&&l.d(a)}}}function Cn(i){let e;return{c(){e=ae("(summary)")},l(t){e=oe(t,"(summary)")},m(t,n){F(t,e,n)},d(t){t&&z(e)}}}function Rn(i){let e,t,n;return{c(){e=G("div"),t=new nt(!1),this.h()},l(l){e=j(l,"DIV",{class:!0});var a=q(e);t=lt(a,!1),a.forEach(z),this.h()},h(){t.a=null,S(e,"class",n="accordion-summary-caret "+i[11])},m(l,a){F(l,e,a),t.m(i[14],e)},p(l,a){a[0]&2048&&n!==(n="accordion-summary-caret "+l[11])&&S(e,"class",n)},i:ke,o:ke,d(l){l&&z(e)}}}function Dn(i){let e,t,n,l,a;const s=[On,In],o=[];function r(f,u){return f[8]?0:1}return t=r(i),n=o[t]=s[t](i),{c(){e=G("div"),n.c(),this.h()},l(f){e=j(f,"DIV",{class:!0});var u=q(e);n.l(u),u.forEach(z),this.h()},h(){S(e,"class",l="accordion-summary-icons "+i[10])},m(f,u){F(f,e,u),o[t].m(e,null),a=!0},p(f,u){let b=t;t=r(f),t===b?o[t].p(f,u):(de(),H(o[b],1,1,()=>{o[b]=null}),he(),n=o[t],n?n.p(f,u):(n=o[t]=s[t](f),n.c()),A(n,1),n.m(e,null)),(!a||u[0]&1024&&l!==(l="accordion-summary-icons "+f[10]))&&S(e,"class",l)},i(f){a||(A(n),a=!0)},o(f){H(n),a=!1},d(f){f&&z(e),o[t].d()}}}function In(i){let e;const t=i[30].iconOpen,n=_e(t,i,i[29],mt),l=n||En(i);return{c(){l&&l.c()},l(a){l&&l.l(a)},m(a,s){l&&l.m(a,s),e=!0},p(a,s){n&&n.p&&(!e||s[0]&536870912)&&be(n,t,a,a[29],e?Se(t,a[29],s,zn):ge(a[29]),mt)},i(a){e||(A(l,a),e=!0)},o(a){H(l,a),e=!1},d(a){l&&l.d(a)}}}function On(i){let e;const t=i[30].iconClosed,n=_e(t,i,i[29],_t),l=n||Mn(i);return{c(){l&&l.c()},l(a){l&&l.l(a)},m(a,s){l&&l.m(a,s),e=!0},p(a,s){n&&n.p&&(!e||s[0]&536870912)&&be(n,t,a,a[29],e?Se(t,a[29],s,Pn):ge(a[29]),_t)},i(a){e||(A(l,a),e=!0)},o(a){H(l,a),e=!1},d(a){l&&l.d(a)}}}function En(i){let e,t;return{c(){e=new nt(!1),t=re(),this.h()},l(n){e=lt(n,!1),t=re(),this.h()},h(){e.a=t},m(n,l){e.m(i[14],n,l),F(n,t,l)},p:ke,d(n){n&&(z(t),e.d())}}}function Mn(i){let e,t;return{c(){e=new nt(!1),t=re(),this.h()},l(n){e=lt(n,!1),t=re(),this.h()},h(){e.a=t},m(n,l){e.m(i[14],n,l),F(n,t,l)},p:ke,d(n){n&&(z(t),e.d())}}}function vt(i){let e,t,n,l,a,s,o;const r=i[30].content,f=_e(r,i,i[29],ht),u=f||Tn();return{c(){e=G("div"),u&&u.c(),this.h()},l(b){e=j(b,"DIV",{class:!0,id:!0,role:!0,"aria-hidden":!0,"aria-labelledby":!0});var P=q(e);u&&u.l(P),P.forEach(z),this.h()},h(){S(e,"class",t="accordion-panel "+i[9]),S(e,"id",n="accordion-panel-"+i[0]),S(e,"role","region"),S(e,"aria-hidden",l=!i[8]),S(e,"aria-labelledby",i[0])},m(b,P){F(b,e,P),u&&u.m(e,null),o=!0},p(b,P){i=b,f&&f.p&&(!o||P[0]&536870912)&&be(f,r,i,i[29],o?Se(r,i[29],P,kn):ge(i[29]),ht),(!o||P[0]&512&&t!==(t="accordion-panel "+i[9]))&&S(e,"class",t),(!o||P[0]&1&&n!==(n="accordion-panel-"+i[0]))&&S(e,"id",n),(!o||P[0]&256&&l!==(l=!i[8]))&&S(e,"aria-hidden",l),(!o||P[0]&1)&&S(e,"aria-labelledby",i[0])},i(b){o||(A(u,b),b&&cn(()=>{o&&(s&&s.end(1),a=hn(e,dt,{transition:i[4],params:i[5],enabled:i[3]}),a.start())}),o=!0)},o(b){H(u,b),a&&a.invalidate(),b&&(s=mn(e,dt,{transition:i[6],params:i[7],enabled:i[3]})),o=!1},d(b){b&&z(e),u&&u.d(b),b&&s&&s.end()}}}function Tn(i){let e;return{c(){e=ae("(content)")},l(t){e=oe(t,"(content)")},m(t,n){F(t,e,n)},d(t){t&&z(e)}}}function Bn(i){let e,t,n,l,a,s,o,r,f,u,b,P,k,d,p=i[16].lead&&St(i);const R=i[30].summary,y=_e(R,i,i[29],bt),M=y||Cn(),N=[Dn,Rn],K=[];function w(g,T){return g[16].iconClosed||g[16].iconOpen?0:1}s=w(i),o=K[s]=N[s](i);let O=i[8]&&vt(i);return{c(){e=G("div"),t=G("button"),p&&p.c(),n=te(),l=G("div"),M&&M.c(),a=te(),o.c(),u=te(),O&&O.c(),this.h()},l(g){e=j(g,"DIV",{class:!0,"data-testid":!0});var T=q(e);t=j(T,"BUTTON",{type:!0,class:!0,id:!0,"aria-expanded":!0,"aria-controls":!0});var m=q(t);p&&p.l(m),n=ne(m),l=j(m,"DIV",{class:!0});var L=q(l);M&&M.l(L),L.forEach(z),a=ne(m),o.l(m),m.forEach(z),u=ne(T),O&&O.l(T),T.forEach(z),this.h()},h(){S(l,"class","accordion-summary flex-1"),S(t,"type","button"),S(t,"class",r="accordion-control "+i[12]),S(t,"id",i[0]),S(t,"aria-expanded",i[8]),S(t,"aria-controls",f="accordion-panel-"+i[0]),t.disabled=i[2],S(e,"class",b="accordion-item "+i[13]),S(e,"data-testid","accordion-item")},m(g,T){F(g,e,T),W(e,t),p&&p.m(t,null),W(t,n),W(t,l),M&&M.m(l,null),W(t,a),K[s].m(t,null),W(e,u),O&&O.m(e,null),P=!0,k||(d=[ee(t,"click",i[15]),ee(t,"click",i[31]),ee(t,"keydown",i[32]),ee(t,"keyup",i[33]),ee(t,"keypress",i[34])],k=!0)},p(g,T){g[16].lead?p?(p.p(g,T),T[0]&65536&&A(p,1)):(p=St(g),p.c(),A(p,1),p.m(t,n)):p&&(de(),H(p,1,1,()=>{p=null}),he()),y&&y.p&&(!P||T[0]&536870912)&&be(y,R,g,g[29],P?Se(R,g[29],T,pn):ge(g[29]),bt);let m=s;s=w(g),s===m?K[s].p(g,T):(de(),H(K[m],1,1,()=>{K[m]=null}),he(),o=K[s],o?o.p(g,T):(o=K[s]=N[s](g),o.c()),A(o,1),o.m(t,null)),(!P||T[0]&4096&&r!==(r="accordion-control "+g[12]))&&S(t,"class",r),(!P||T[0]&1)&&S(t,"id",g[0]),(!P||T[0]&256)&&S(t,"aria-expanded",g[8]),(!P||T[0]&1&&f!==(f="accordion-panel-"+g[0]))&&S(t,"aria-controls",f),(!P||T[0]&4)&&(t.disabled=g[2]),g[8]?O?(O.p(g,T),T[0]&256&&A(O,1)):(O=vt(g),O.c(),A(O,1),O.m(e,null)):O&&(de(),H(O,1,1,()=>{O=null}),he()),(!P||T[0]&8192&&b!==(b="accordion-item "+g[13]))&&S(e,"class",b)},i(g){P||(A(p),A(M,g),A(o),A(O),P=!0)},o(g){H(p),H(M,g),H(o),H(O),P=!1},d(g){g&&z(e),p&&p.d(),M&&M.d(g),K[s].d(),O&&O.d(),k=!1,tt(d)}}}const Ln="",Nn="text-start w-full flex items-center space-x-4",kt="fill-current w-3 transition-transform duration-[200ms]",Fn="";function Un(i,e,t){let n,l,a,s,o,r,f,u,b=ke,P=()=>(b(),b=un(K,I=>t(28,u=I)),K);i.$$.on_destroy.push(()=>b());let{$$slots:k={},$$scope:d}=e;const p=rn(k),R=wt();let{open:y=!1}=e,{id:M=String(Math.random())}=e,{autocollapse:N=$("autocollapse")}=e,{active:K=$("active")}=e;P();let{disabled:w=$("disabled")}=e,{padding:O=$("padding")}=e,{hover:g=$("hover")}=e,{rounded:T=$("rounded")}=e,{caretOpen:m=$("caretOpen")}=e,{caretClosed:L=$("caretClosed")}=e,{regionControl:h=$("regionControl")}=e,{regionPanel:Z=$("regionPanel")}=e,{regionCaret:J=$("regionCaret")}=e,{transitions:ie=$("transitions")}=e,{transitionIn:V=$("transitionIn")}=e,{transitionInParams:fe=$("transitionInParams")}=e,{transitionOut:Ye=$("transitionOut")}=e,{transitionOutParams:Ee=$("transitionOutParams")}=e;const Qe=` - - - `;function Re(I){N===!0?K.set(M):t(17,y=!y),Ze(I)}function Ze(I){const Ie=N?u===M:y;R("toggle",{event:I,id:M,panelId:`accordion-panel-${M}`,open:Ie,autocollapse:N})}N&&y&&Re();function Me(I){Fe.call(this,i,I)}function Je(I){Fe.call(this,i,I)}function Te(I){Fe.call(this,i,I)}function De(I){Fe.call(this,i,I)}return i.$$set=I=>{t(37,e=Ve(Ve({},e),He(I))),"open"in I&&t(17,y=I.open),"id"in I&&t(0,M=I.id),"autocollapse"in I&&t(18,N=I.autocollapse),"active"in I&&P(t(1,K=I.active)),"disabled"in I&&t(2,w=I.disabled),"padding"in I&&t(19,O=I.padding),"hover"in I&&t(20,g=I.hover),"rounded"in I&&t(21,T=I.rounded),"caretOpen"in I&&t(22,m=I.caretOpen),"caretClosed"in I&&t(23,L=I.caretClosed),"regionControl"in I&&t(24,h=I.regionControl),"regionPanel"in I&&t(25,Z=I.regionPanel),"regionCaret"in I&&t(26,J=I.regionCaret),"transitions"in I&&t(3,ie=I.transitions),"transitionIn"in I&&t(4,V=I.transitionIn),"transitionInParams"in I&&t(5,fe=I.transitionInParams),"transitionOut"in I&&t(6,Ye=I.transitionOut),"transitionOutParams"in I&&t(7,Ee=I.transitionOutParams),"$$scope"in I&&t(29,d=I.$$scope)},i.$$.update=()=>{i.$$.dirty[0]&393216&&y&&N&&Re(),i.$$.dirty[0]&268828673&&t(8,n=N?u===M:y),t(13,l=`${Ln} ${e.class??""}`),i.$$.dirty[0]&20447232&&t(12,a=`${Nn} ${O} ${g} ${T} ${h}`),i.$$.dirty[0]&12583168&&t(27,s=n?m:L),i.$$.dirty[0]&201326592&&t(11,o=`${kt} ${J} ${s}`),i.$$.dirty[0]&67108864&&t(10,r=`${kt} ${J}`),i.$$.dirty[0]&36175872&&t(9,f=`${Fn} ${O} ${T} ${Z}`)},e=He(e),[M,K,w,ie,V,fe,Ye,Ee,n,f,r,o,a,l,Qe,Re,p,y,N,O,g,T,m,L,h,Z,J,s,u,d,k,Me,Je,Te,De]}class An extends ye{constructor(e){super(),Ce(this,e,Un,Bn,pe,{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 Ue(i){if(!i.endsWith("px"))return;const e=parseFloat(i.slice(0,i.length-2));return isNaN(e)?void 0:e}const Xt=i=>i?"height":"width",$e=i=>window.getComputedStyle(i),et=i=>i.getBoundingClientRect(),wn=(i,e=!0)=>{if(i.getPropertyValue("box-sizing")==="border-box")return;const t=Ue(i.getPropertyValue("border-left-width"));if(t===void 0){console.error("Splitpanes Error: Fail to parse container `border-left-width`.");return}const n=Ue(i.getPropertyValue("border-top-width"));if(n===void 0){console.error("Splitpanes Error: Fail to parse container `border-top-width`.");return}const l={left:t,top:n};if(e){const a=Ue(i.getPropertyValue("border-right-width"));if(a===void 0){console.error("Splitpanes Error: Fail to parse container `border-right-width`.");return}const s=Ue(i.getPropertyValue("border-bottom-width"));if(s===void 0){console.error("Splitpanes Error: Fail to parse container `border-bottom-width`.");return}const o=l;o.right=a,o.bottom=s}return l};function Vn(i,e){e||(e=$e(i));const t=et(i),n=wn(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 zt=(i,e)=>({left:i.left-e.left,top:i.top-e.top});function Pt(i){const e=i,t=i,{clientX:n,clientY:l}="ontouchstart"in window&&t.touches?t.touches[0]:e;return{left:n,top:l}}function pt(i,e,t,n){let l=0;for(let a=e;at(31,a=c));const J=we(k);ve(i,J,c=>t(30,l=c));const ie=we(void 0);ve(i,ie,c=>t(29,n=c));let V=null,fe=null;x(Yt,{showFirstSplitter:J,veryFirstPaneKey:ie,isHorizontal:Z,ssrRegisterPaneSize:void 0,onPaneInit:c=>(n===void 0&&Pe(ie,n=c,n),{undefinedPaneInitSize:0}),clientOnly:{onPaneAdd:Ee,onPaneRemove:Qe}});function Ee(c){let v=-1;Array.from(c.element.parentNode.children).some(_=>(_.className.includes("splitpanes__pane")&&v++,_===c.element)),v===0&&Pe(ie,n=c.key,n),h.splice(v,0,c);for(let _=0;_{c.isReady=!0,y("pane-add",{index:v,panes:ze()})});const E=(_,B=!0)=>D=>{(B||c.index>0)&&_(D,c)};return{onSplitterDown:E(Zt,!1),onSplitterClick:E(Jt,!1),onSplitterDblClick:E(it),onPaneClick:E(Re),reportGivenSizeChange:E(Ze)}}async function Qe(c){const v=h.findIndex(E=>E.key===c);if(v>=0){const E=h.splice(v,1)[0];for(let _=0;_0?h[0].key:void 0,n),N&&(await xe(),y("pane-remove",{removed:E,panes:ze()}))}}function Re(c,v){y("pane-click",v)}function Ze(c,v){v.setSz(c),xe()}Vt(()=>{ct(),rt();for(let c=0;c{t(6,w=!0)},0)}),Ht(()=>{N&&Te(),N=!1}),fn(()=>{ct()});function Me(c){if(P==="auto")try{return(c??$e(M)).direction==="rtl"}catch{}return P===!0}function Je(){document.body.style.cursor=Z?"col-resize":"row-resize",document.addEventListener("mousemove",Be,{passive:!1}),document.addEventListener("mouseup",Le),"ontouchstart"in window&&(document.addEventListener("touchmove",Be,{passive:!1}),document.addEventListener("touchend",Le))}function Te(){document.body.style.cursor="",document.removeEventListener("mousemove",Be),document.removeEventListener("mouseup",Le),"ontouchstart"in window&&(document.removeEventListener("touchmove",Be),document.removeEventListener("touchend",Le))}const De=c=>c.nodeType===Node.ELEMENT_NODE&&c.classList.contains("splitpanes__splitter");function I(c,v,E){let _=c[f?"top":"left"];return E&&!f&&(_=v-_),_}const Ie=()=>Xt(f);function Zt(c,v){t(7,O=!0),T=v.index,v.setSplitterActive(!0);let _=v.element;for(;_!=null&&(_=_.previousSibling,!De(_)););if(_==null){console.error("Splitpane Error: Active splitter wasn't found!");return}V=_;const B=Pt(c),D=et(V);fe=I(zt(B,D),D[Ie()],Me()),Je()}function Be(c){if(O){c.preventDefault(),t(8,g=!0);const v=Pt(c),E=$e(M),_=Vn(M,E),B=_[Ie()],D=Me(E),C=zt(v,_),U=I(C,B,D);$t(U,B),y("resize",ze())}}function Le(){g&&y("resized",ze()),t(7,O=!1),h[T].setSplitterActive(!1),setTimeout(()=>{t(8,g=!1),Te()},100)}function Jt(c,v){if("ontouchstart"in window){c.preventDefault();const E=v.index;b&&(m===E?(L&&clearTimeout(L),L=null,it(c,v),m=-1):(m=E,L=setTimeout(()=>{m=-1},500)))}g||y("splitter-click",v)}function it(c,v){if(b){const E=v.index;let _=0;for(let C=0;C=100)for(let C=0;C{const Q=X.min(),le=X.max(),se=Math.min(Math.max(0,C),le-Q);X.setSz(Q+se),C-=se};for(let X=E-1;X>=0;X--)U(h[X]);for(let X=E+1;Xh.map(c=>({min:c.min(),max:c.max(),size:c.sz(),snap:c.snap()}));function xt(c,v){const E=le=>et(le)[Ie()],_=E(V);let B=0,D=V.previousSibling;for(;D!=null;)De(D)&&(B+=E(D)),D=D.previousSibling;let C=0,U=V.nextSibling;for(;U!=null;)De(U)&&(C+=E(U)),U=U.nextSibling;const X=B+fe,Q=B+_+C;return(c-X)/(v-Q)*100}function $t(c,v){let E=T-1,_=h[E],B=T,D=h[B],C={prevPanesSize:at(E),nextPanesSize:ot(B),prevReachedMinPanes:0,nextReachedMinPanes:0};const U=0+(u?0:C.prevPanesSize),X=100-(u?0:C.nextPanesSize),Q=Math.max(Math.min(xt(c,v),X),U),le=C.prevPanesSize+_.min()+_.snap(),se=100-(C.nextPanesSize+D.min()+D.snap());let Y=Q,ce=!1;Q<=le?Q>C.prevPanesSize+_.min()&&(Y=Math.max(_.min()+C.prevPanesSize,100-(D.max()+C.nextPanesSize)),ce=!0):Q>=se&&Q<100-C.nextPanesSize-D.min()&&(Y=Math.min(100-(D.min()+C.nextPanesSize),_.max()+C.prevPanesSize),ce=!0);const Ne=_.max()<100&&Y>=_.max()+C.prevPanesSize,on=D.max()<100&&Y<=100-(D.max()+C.nextPanesSize);if(Ne||on)Ne?(_.setSz(_.max()),D.setSz(Math.max(100-_.max()-C.prevPanesSize-C.nextPanesSize,0))):(_.setSz(Math.max(100-D.max()-C.prevPanesSize-C.nextPanesSize,0)),D.setSz(D.max()));else{if(u&&!ce){const ut=en(C,Y);if(!ut)return;({sums:C,paneBeforeIndex:E,paneAfterIndex:B}=ut),_=h[E],D=h[B]}E!=null&&_.setSz(Math.min(Math.max(Y-C.prevPanesSize-C.prevReachedMinPanes,_.min()),_.max())),B!=null&&D.setSz(Math.min(Math.max(100-Y-C.nextPanesSize-C.nextReachedMinPanes,D.min()),D.max()))}}function en(c,v){const E=T-1;let _=E,B=E+1;if(v{D.setSz(D.min()),c.prevReachedMinPanes+=D.min()}),c.prevPanesSize=at(_),_==null))return c.prevReachedMinPanes=0,h[0].setSz(h[0].min()),Ae(h,1,E+1,D=>{D.setSz(D.min()),c.prevReachedMinPanes+=D.min()}),h[B].setSz(100-c.prevReachedMinPanes-h[0].min()-c.prevPanesSize-c.nextPanesSize),null;if(v>100-c.nextPanesSize-h[B].min()){B=nn(E)?.index,c.nextReachedMinPanes=0,B>E+1&&Ae(h,E+1,B,C=>{C.setSz(C.min()),c.nextReachedMinPanes+=C.min()}),c.nextPanesSize=ot(B);const D=h.length;if(B==null)return c.nextReachedMinPanes=0,h[D-1].setSz(h[D-1].min()),Ae(h,E+1,D-1,C=>{C.setSz(C.min()),c.nextReachedMinPanes+=C.min()}),h[_].setSz(100-c.prevPanesSize-c.nextReachedMinPanes-h[D-1].min()-c.nextPanesSize),null}return{sums:c,paneBeforeIndex:_,paneAfterIndex:B}}const st=c=>c.sz(),at=c=>pt(h,0,c,st),ot=c=>pt(h,c+1,h.length,st),tn=c=>[...h].reverse().find(v=>v.indexv.min()),nn=c=>h.find(v=>v.index>c+1&&v.sz()>v.min());async function xe(){K=!0,await dn(),K&&(rt(),K=!1)}function rt(){ln(),N&&y("resized",ze())}function ln(){if(h.length===0)return;const c=h.length;let v=100,E=0,_=0,B=0,D=[],C=[];for(let se=0;se=Y.max()&&D.push(Y),ce<=Y.min()&&C.push(Y)):_+=1:(v-=ce,E++,D.push(Y),C.push(Y))}const U=c-E,X=U-_;let Q,le;if(X>0?(Q=B/X,Q>.1&&v>.1?(B+=_*Q,le=v/B):(Q=0,le=1)):(Q=v/U,le=1),v+B>.1){v=100;for(let se=0;se.1&&(v=sn(v,D,C))}isFinite(v)?Math.abs(v)>.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 sn(c,v,E){const B=h.length-(c>0?v.length:E.length);if(B<=0)return c;const D=c/B;if(h.length===1)h[0].setSz(100),c=0;else for(let C=0;C0&&!v.includes(U)){const Q=Math.max(Math.min(X+D,U.max()),U.min()),le=Q-X;c-=le,U.setSz(Q)}else if(!E.includes(U)){const Q=Math.max(Math.min(X+D,U.max()),U.min()),le=Q-X;c-=le,U.setSz(Q)}}return c}function ct(){const{children:c}=M;let v=0,E=!1;for(let _=0;_ elements are allowed at the root of . One of your DOM nodes was removed.");return}else D&&(!E&&h[v].element!==B&&(E=!0),v++)}if(E){const _=[];for(let B=0;BX.element===D);U!=null?(U.index=_.length,_.push(U)):console.warn("Splitpanes: Internal error - found a elements which isn't tracked.")}}h=_,Pe(ie,n=h.length>0?h[0].key:void 0,n)}}function an(c){Ge[c?"unshift":"push"](()=>{M=c,t(5,M)})}return i.$$set=c=>{"id"in c&&t(0,r=c.id),"horizontal"in c&&t(1,f=c.horizontal),"pushOtherPanes"in c&&t(12,u=c.pushOtherPanes),"dblClickSplitter"in c&&t(13,b=c.dblClickSplitter),"rtl"in c&&t(14,P=c.rtl),"firstSplitter"in c&&t(15,k=c.firstSplitter),"style"in c&&t(2,d=c.style),"theme"in c&&t(3,p=c.theme),"class"in c&&t(4,R=c.class),"$$scope"in c&&t(18,o=c.$$scope)},i.$$.update=()=>{i.$$.dirty[0]&2&&Pe(Z,a=f,a),i.$$.dirty[0]&32768&&Pe(J,l=k,l)},[r,f,d,p,R,M,w,O,g,Z,J,ie,u,b,P,k,s,an,o]}class bl extends ye{constructor(e){super(),Ce(this,e,Gn,Hn,pe,{id:0,horizontal:1,pushOtherPanes:12,dblClickSplitter:13,rtl:14,firstSplitter:15,style:2,theme:3,class:4},null,[-1,-1,-1])}}const jn=(i,e)=>t=>{const n=i();n?.[e](t)},Kn=i=>jn.bind(null,i);function Wn(i){let e,t,n,l,a,s,o=(i[4]!==i[9]||i[5])&&yt(i);const r=i[20].default,f=_e(r,i,i[19],null);return{c(){o&&o.c(),e=te(),t=G("div"),f&&f.c(),this.h()},l(u){o&&o.l(u),e=ne(u),t=j(u,"DIV",{class:!0,style:!0});var b=q(t);f&&f.l(b),b.forEach(z),this.h()},h(){S(t,"class",n=`splitpanes__pane ${i[0]||""}`),S(t,"style",i[3])},m(u,b){o&&o.m(u,b),F(u,e,b),F(u,t,b),f&&f.m(t,null),i[21](t),l=!0,a||(s=ee(t,"click",i[11]("onPaneClick")),a=!0)},p(u,b){u[4]!==u[9]||u[5]?o?o.p(u,b):(o=yt(u),o.c(),o.m(e.parentNode,e)):o&&(o.d(1),o=null),f&&f.p&&(!l||b&524288)&&be(f,r,u,u[19],l?Se(r,u[19],b,null):ge(u[19]),null),(!l||b&1&&n!==(n=`splitpanes__pane ${u[0]||""}`))&&S(t,"class",n),(!l||b&8)&&S(t,"style",u[3])},i(u){l||(A(f,u),l=!0)},o(u){H(f,u),l=!1},d(u){u&&(z(e),z(t)),o&&o.d(u),f&&f.d(u),i[21](null),a=!1,s()}}}function yt(i){let e,t,n,l;return{c(){e=G("div"),this.h()},l(a){e=j(a,"DIV",{class:!0}),q(e).forEach(z),this.h()},h(){S(e,"class",t="splitpanes__splitter "+(i[2]?"splitpanes__splitter__active":""))},m(a,s){F(a,e,s),n||(l=[ee(e,"mousedown",i[11]("onSplitterDown")),ee(e,"touchstart",i[11]("onSplitterDown")),ee(e,"click",i[11]("onSplitterClick")),ee(e,"dblclick",i[11]("onSplitterDblClick"))],n=!0)},p(a,s){s&4&&t!==(t="splitpanes__splitter "+(a[2]?"splitpanes__splitter__active":""))&&S(e,"class",t)},d(a){a&&z(e),n=!1,tt(l)}}}function qn(i){let e,t,n=!i[10]&&Wn(i);return{c(){n&&n.c(),e=re()},l(l){n&&n.l(l),e=re()},m(l,a){n&&n.m(l,a),F(l,e,a),t=!0},p(l,[a]){l[10]||n.p(l,a)},i(l){t||(A(n),t=!0)},o(l){H(n),t=!1},d(l){l&&z(e),n&&n.d(l)}}}function Xn(i,e,t){let n,l,a,s,o,{$$slots:r={},$$scope:f}=e;const{ssrRegisterPaneSize:u,onPaneInit:b,clientOnly:P,isHorizontal:k,showFirstSplitter:d,veryFirstPaneKey:p}=$(Yt);ve(i,k,V=>t(18,a=V)),ve(i,d,V=>t(5,o=V)),ve(i,p,V=>t(4,s=V));let{size:R=null}=e,{minSize:y=0}=e,{maxSize:M=100}=e,{snapSize:N=0}=e,{class:K=""}=e;const w={},O=!qt,{undefinedPaneInitSize:g}=b(w);let T,m=R??g,L=!1,h;const Z=Kn(()=>h),J=V=>{V!=m&&Z("reportGivenSizeChange")(V)};Vt(()=>{const V={key:w,element:T,givenSize:R,sz:()=>m,setSz:fe=>{t(16,m=fe),R!=null&&R!=m&&t(12,R=m)},min:()=>y,max:()=>M,snap:()=>N,setSplitterActive:fe=>{t(2,L=fe)},isReady:!1};h=P.onPaneAdd(V)}),Ht(()=>{P.onPaneRemove(w)});function ie(V){Ge[V?"unshift":"push"](()=>{T=V,t(1,T)})}return i.$$set=V=>{"size"in V&&t(12,R=V.size),"minSize"in V&&t(13,y=V.minSize),"maxSize"in V&&t(14,M=V.maxSize),"snapSize"in V&&t(15,N=V.snapSize),"class"in V&&t(0,K=V.class),"$$scope"in V&&t(19,f=V.$$scope)},i.$$.update=()=>{i.$$.dirty&4096&&R!=null&&J(R),i.$$.dirty&262144&&t(17,n=Xt(a)),i.$$.dirty&196608&&t(3,l=`${n}: ${m}%;`)},[K,T,L,l,s,o,k,d,p,w,O,Z,R,y,M,N,m,n,a,f,r,ie]}class gl extends ye{constructor(e){super(),Ce(this,e,Xn,qn,pe,{size:12,minSize:13,maxSize:14,snapSize:15,class:0})}}function Ct(i,e,t){const n=i.slice();return n[11]=e[t],n}function Rt(i){let e,t,n;return{c(){e=G("input"),this.h()},l(l){e=j(l,"INPUT",{type:!0}),this.h()},h(){S(e,"type","checkbox")},m(l,a){F(l,e,a),e.checked=i[1][i[2].title],t||(n=ee(e,"change",i[9]),t=!0)},p(l,a){a&6&&(e.checked=l[1][l[2].title])},d(l){l&&z(e),t=!1,n()}}}function Yn(i){let e,t=i[2].teaser+"",n;return{c(){e=G("div"),n=ae(t),this.h()},l(l){e=j(l,"DIV",{class:!0});var a=q(e);n=oe(a,t),a.forEach(z),this.h()},h(){S(e,"class","annotation svelte-vfddhm")},m(l,a){F(l,e,a),W(e,n)},p(l,a){a&4&&t!==(t=l[2].teaser+"")&&Oe(n,t)},d(l){l&&z(e)}}}function Qn(i){let e,t=me(i[7].split(` -`)),n=[];for(let l=0;l100&&Ot(i);return{c(){e=G("div"),t=G("div"),n=G("label"),u&&u.c(),l=te(),s=ae(a),o=te(),k.c(),r=te(),d&&d.c(),f=te(),p&&p.c(),this.h()},l(R){e=j(R,"DIV",{class:!0});var y=q(e);t=j(y,"DIV",{class:!0});var M=q(t);n=j(M,"LABEL",{style:!0});var N=q(n);u&&u.l(N),l=ne(N),s=oe(N,a),N.forEach(z),M.forEach(z),o=ne(y),k.l(y),r=ne(y),d&&d.l(y),f=ne(y),p&&p.l(y),y.forEach(z),this.h()},h(){Gt(n,"cursor","pointer"),S(t,"class","title svelte-vfddhm"),S(e,"class","search-result svelte-vfddhm")},m(R,y){F(R,e,y),W(e,t),W(t,n),u&&u.m(n,null),W(n,l),W(n,s),W(e,o),k.m(e,null),W(e,r),d&&d.m(e,null),W(e,f),p&&p.m(e,null)},p(R,[y]){R[6]?u?u.p(R,y):(u=Rt(R),u.c(),u.m(n,l)):u&&(u.d(1),u=null),y&4&&a!==(a=R[2].title+"")&&Oe(s,a),P===(P=b(R))&&k?k.p(R,y):(k.d(1),k=P(R),k&&(k.c(),k.m(e,r))),R[4]&&R[5]?d?d.p(R,y):(d=It(R),d.c(),d.m(e,f)):d&&(d.d(1),d=null),R[7].length>100?p?p.p(R,y):(p=Ot(R),p.c(),p.m(e,null)):p&&(p.d(1),p=null)},i:ke,o:ke,d(R){R&&z(e),u&&u.d(),k.d(),d&&d.d(),p&&p.d()}}}function $n(i,e,t){let{value:n}=e,{showFullText:l=Array(10).fill(!1)}=e,{useSearchResult:a}=e,{index:s}=e,{enableDocumentDb:o=!1}=e,{documentDbUrl:r=""}=e,{enableSearchResultSelection:f=!1}=e,u="";function b(d){t(0,l[d]=!l[d],l)}function P(){a[n.title]=this.checked,t(1,a)}const k=()=>b(s);return i.$$set=d=>{"value"in d&&t(2,n=d.value),"showFullText"in d&&t(0,l=d.showFullText),"useSearchResult"in d&&t(1,a=d.useSearchResult),"index"in d&&t(3,s=d.index),"enableDocumentDb"in d&&t(4,o=d.enableDocumentDb),"documentDbUrl"in d&&t(5,r=d.documentDbUrl),"enableSearchResultSelection"in d&&t(6,f=d.enableSearchResultSelection)},i.$$.update=()=>{i.$$.dirty&4&&t(7,u=n?n.text_for_llm||n.text:"")},[l,a,n,s,o,r,f,u,b,P,k]}class Qt extends ye{constructor(e){super(),Ce(this,e,$n,xn,pe,{value:2,showFullText:0,useSearchResult:1,index:3,enableDocumentDb:4,documentDbUrl:5,enableSearchResultSelection:6})}}function Et(i,e,t){const n=i.slice();return n[31]=e[t],n[34]=e,n[33]=t,n}function Mt(i,e,t){const n=i.slice();return n[27]=e[t][0],n[28]=e[t][1],n}function Tt(i,e,t){const n=i.slice();return n[31]=e[t],n[32]=e,n[33]=t,n}function Bt(i){let e,t,n,l,a=i[3]?"Выбрано LLM":"Все результаты",s,o,r,f,u,b,P,k="Выбрать источники для LLM",d,p,R,y,M,N,K,w=i[2]&&Lt();return{c(){e=G("div"),t=G("button"),n=G("i"),l=ae(` \r - `),s=ae(a),f=te(),u=G("button"),w&&w.c(),b=te(),P=G("span"),P.textContent=k,p=te(),R=G("button"),y=ae("Группировать по типу"),this.h()},l(O){e=j(O,"DIV",{class:!0});var g=q(e);t=j(g,"BUTTON",{class:!0});var T=q(t);n=j(T,"I",{class:!0}),q(n).forEach(z),l=oe(T,` \r - `),s=oe(T,a),T.forEach(z),f=ne(g),u=j(g,"BUTTON",{class:!0});var m=q(u);w&&w.l(m),b=ne(m),P=j(m,"SPAN",{"data-svelte-h":!0}),jt(P)!=="svelte-u1xxg4"&&(P.textContent=k),m.forEach(z),p=ne(g),R=j(g,"BUTTON",{class:!0});var L=q(R);y=oe(L,"Группировать по типу"),L.forEach(z),g.forEach(z),this.h()},h(){S(n,"class","fa-solid fa-check"),S(t,"class",o="chip "+(i[3]?"variant-filled-primary":"variant-soft-primary")+" svelte-1egz4bg"),t.disabled=r=i[8].length==0,ue(t,"blinking",i[11]),S(u,"class",d="chip "+i[14]+" svelte-1egz4bg"),u.disabled=i[7],S(R,"class",M="chip "+i[13]+" svelte-1egz4bg"),S(e,"class","w-full flex space-x-2 items-center mb-4")},m(O,g){F(O,e,g),W(e,t),W(t,n),W(t,l),W(t,s),W(e,f),W(e,u),w&&w.m(u,null),W(u,b),W(u,P),W(e,p),W(e,R),W(R,y),N||(K=[ee(t,"click",i[17]),ee(u,"click",i[18]),ee(R,"click",i[19])],N=!0)},p(O,g){g[0]&8&&a!==(a=O[3]?"Выбрано LLM":"Все результаты")&&Oe(s,a),g[0]&8&&o!==(o="chip "+(O[3]?"variant-filled-primary":"variant-soft-primary")+" svelte-1egz4bg")&&S(t,"class",o),g[0]&256&&r!==(r=O[8].length==0)&&(t.disabled=r),g[0]&2056&&ue(t,"blinking",O[11]),O[2]?w||(w=Lt(),w.c(),w.m(u,b)):w&&(w.d(1),w=null),g[0]&16384&&d!==(d="chip "+O[14]+" svelte-1egz4bg")&&S(u,"class",d),g[0]&128&&(u.disabled=O[7]),g[0]&8192&&M!==(M="chip "+O[13]+" svelte-1egz4bg")&&S(R,"class",M)},d(O){O&&z(e),w&&w.d(),N=!1,tt(K)}}}function Lt(i){let e,t='';return{c(){e=G("span"),e.innerHTML=t},l(n){e=j(n,"SPAN",{"data-svelte-h":!0}),jt(e)!=="svelte-104b754"&&(e.innerHTML=t)},m(n,l){F(n,e,l)},d(n){n&&z(e)}}}function el(i){let e,t,n=me(i[9]),l=[];for(let s=0;sH(l[s],1,1,()=>{l[s]=null});return{c(){for(let s=0;sWt(e,"value",l)),{c(){Ke(e.$$.fragment)},l(s){We(e.$$.fragment,s)},m(s,o){qe(e,s,o),n=!0},p(s,o){i=s;const r={};o[0]&4&&(r.enableSearchResultSelection=i[2]),o[0]&1&&(r.useSearchResult=i[0]),o[0]&16&&(r.showFullText=i[4]),o[0]&32&&(r.enableDocumentDb=i[5]),o[0]&64&&(r.documentDbUrl=i[6]),!t&&o[0]&512&&(t=!0,r.value=i[31],Kt(()=>t=!1)),e.$set(r)},i(s){n||(A(e.$$.fragment,s),n=!0)},o(s){H(e.$$.fragment,s),n=!1},d(s){Xe(e,s)}}}function Ft(i){let e,t,n,l;return{c(){e=G("input"),this.h()},l(a){e=j(a,"INPUT",{type:!0,"data-doctype":!0}),this.h()},h(){S(e,"type","checkbox"),S(e,"data-doctype",t=i[27])},m(a,s){F(a,e,s),n||(l=ee(e,"click",i[15]),n=!0)},p(a,s){s[0]&4096&&t!==(t=a[27])&&S(e,"data-doctype",t)},d(a){a&&z(e),n=!1,l()}}}function nl(i){let e,t=i[2]&&Ft(i);return{c(){t&&t.c(),e=te()},l(n){t&&t.l(n),e=ne(n)},m(n,l){t&&t.m(n,l),F(n,e,l)},p(n,l){n[2]?t?t.p(n,l):(t=Ft(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},d(n){n&&z(e),t&&t.d(n)}}}function ll(i){let e=i[27]+"",t;return{c(){t=ae(e)},l(n){t=oe(n,e)},m(n,l){F(n,t,l)},p(n,l){l[0]&4096&&e!==(e=n[27]+"")&&Oe(t,e)},d(n){n&&z(t)}}}function Ut(i){let e,t,n;function l(s){i[20](s,i[31],i[32],i[33])}let a={index:i[33],enableSearchResultSelection:i[2],useSearchResult:i[0],showFullText:i[4],enableDocumentDb:i[5],documentDbUrl:i[6]};return i[31]!==void 0&&(a.value=i[31]),e=new Qt({props:a}),Ge.push(()=>Wt(e,"value",l)),{c(){Ke(e.$$.fragment)},l(s){We(e.$$.fragment,s)},m(s,o){qe(e,s,o),n=!0},p(s,o){i=s;const r={};o[0]&4&&(r.enableSearchResultSelection=i[2]),o[0]&1&&(r.useSearchResult=i[0]),o[0]&16&&(r.showFullText=i[4]),o[0]&32&&(r.enableDocumentDb=i[5]),o[0]&64&&(r.documentDbUrl=i[6]),!t&&o[0]&4096&&(t=!0,r.value=i[31],Kt(()=>t=!1)),e.$set(r)},i(s){n||(A(e.$$.fragment,s),n=!0)},o(s){H(e.$$.fragment,s),n=!1},d(s){Xe(e,s)}}}function il(i){let e,t,n=me(i[28]),l=[];for(let s=0;sH(l[s],1,1,()=>{l[s]=null});return{c(){for(let s=0;sH(l[s],1,1,()=>{l[s]=null});return{c(){for(let s=0;s0&&Bt(i);const f=[tl,el],u=[];function b(k,d){return k[10]&&k[12]?0:1}n=b(i),l=u[n]=f[n](i);let P=ol;return{c(){e=G("div"),r&&r.c(),t=te(),l.c(),a=te(),s=re(),this.h()},l(k){e=j(k,"DIV",{class:!0});var d=q(e);r&&r.l(d),t=ne(d),l.l(d),d.forEach(z),a=ne(k),s=re(),this.h()},h(){S(e,"class","search-results svelte-1egz4bg")},m(k,d){F(k,e,d),r&&r.m(e,null),W(e,t),u[n].m(e,null),F(k,a,d),F(k,s,d),o=!0},p(k,d){k[1]&&k[1].length>0?r?r.p(k,d):(r=Bt(k),r.c(),r.m(e,t)):r&&(r.d(1),r=null);let p=n;n=b(k),n===p?u[n].p(k,d):(de(),H(u[p],1,1,()=>{u[p]=null}),he(),l=u[n],l?l.p(k,d):(l=u[n]=f[n](k),l.c()),A(l,1),l.m(e,null))},i(k){o||(A(l),A(P),o=!0)},o(k){H(l),H(P),o=!1},d(k){k&&(z(e),z(a),z(s)),r&&r.d(),u[n].d()}}}let ol=!1;function rl(i,e,t){let n,l,{enableDocumentDb:a=!1}=e,{documentDbUrl:s=""}=e,{showFullText:o=Array(10).fill(!1)}=e,{useSearchResult:r}=e,{searchInTransactionLedger:f=!1}=e,{searchResults:u=[]}=e,{usedSearchResults:b=[]}=e,P=[],{enableSearchResultSelection:k=!1}=e,{showOnlyLlmUsed:d=!1}=e,p=!1;const R=()=>{t(11,p=!0),setTimeout(()=>{t(11,p=!1)},5e3)};let y=!1,M;const N=L=>L.reduce((h,Z)=>{const J=Z.docType||"Другие документы";return h[J]||(h[J]=[]),h[J].push(Z),h},{}),K=L=>{L.stopPropagation();const h=L.target.dataset.doctype;Object.keys(M[h]).forEach(Z=>{t(0,r[M[h][Z].title]=L.target.checked,r)})},w=()=>{t(3,d=!d)},O=()=>{t(2,k=!k)},g=()=>{t(10,y=!y)};function T(L,h,Z,J){Z[J]=L}function m(L,h,Z,J){Z[J]=L,t(9,P),t(10,y),t(3,d),t(8,b),t(1,u)}return i.$$set=L=>{"enableDocumentDb"in L&&t(5,a=L.enableDocumentDb),"documentDbUrl"in L&&t(6,s=L.documentDbUrl),"showFullText"in L&&t(4,o=L.showFullText),"useSearchResult"in L&&t(0,r=L.useSearchResult),"searchInTransactionLedger"in L&&t(7,f=L.searchInTransactionLedger),"searchResults"in L&&t(1,u=L.searchResults),"usedSearchResults"in L&&t(8,b=L.usedSearchResults),"enableSearchResultSelection"in L&&t(2,k=L.enableSearchResultSelection),"showOnlyLlmUsed"in L&&t(3,d=L.showOnlyLlmUsed)},i.$$.update=()=>{i.$$.dirty[0]&1536&&(y&&t(12,M=N(P)),t(9,P=bn.sortByRelevance(P))),i.$$.dirty[0]&1&&r===void 0&&t(0,r={}),i.$$.dirty[0]&4&&t(14,n=k?"variant-filled-primary":"variant-soft-primary"),i.$$.dirty[0]&1024&&t(13,l=y?"variant-filled-primary":"variant-soft-primary"),i.$$.dirty[0]&264&&t(3,d=b.length!==0&&d),i.$$.dirty[0]&266&&t(9,P=d?b:u)},[r,u,k,d,o,a,s,f,b,P,y,p,M,l,n,K,R,w,O,g,T,m]}class Sl extends ye{constructor(e){super(),Ce(this,e,rl,al,pe,{enableDocumentDb:5,documentDbUrl:6,showFullText:4,useSearchResult:0,searchInTransactionLedger:7,searchResults:1,usedSearchResults:8,enableSearchResultSelection:2,showOnlyLlmUsed:3,blinkButton:16},null,[-1,-1])}get blinkButton(){return this.$$.ctx[16]}}export{gl as P,bl as S,Sl as a}; diff --git a/build/client/_app/immutable/chunks/SearchResults.NntEzFfU.js b/build/client/_app/immutable/chunks/SearchResults.NntEzFfU.js deleted file mode 100644 index e17fc92e503a1c07792091e7f8597cdc0f17756c..0000000000000000000000000000000000000000 --- a/build/client/_app/immutable/chunks/SearchResults.NntEzFfU.js +++ /dev/null @@ -1,8 +0,0 @@ -import{b as pe,L as _e,e as G,d as j,f as q,i as z,u as S,k as F,M as be,N as ge,O as Se,o as ve,s as x,P as Ve,Q as He,c as te,j as ne,l as W,w as ee,r as tt,R as rn,ac as wt,g as $,X as cn,n as ke,ad as un,S as Fe,t as ae,h as oe,H as nt,C as lt,F as re,B as ue,A as Vt,ae as Ht,G as fn,aa as Pe,K as dn,p as Ge,I as Gt,m as Oe,y as je,q as jt,x as Kt}from"./scheduler.5WtVptCO.js";import{S as ye,i as Ce,a as A,t as H,g as de,f as he,h as hn,j as mn,c as Ke,d as We,m as qe,e as Xe,b as Wt}from"./index.7IiDzEZn.js";import{w as we}from"./index.G3yBo0_P.js";import{e as me}from"./each.C7pZUaX1.js";import{p as _n}from"./ProgressBar.svelte_svelte_type_style_lang.7yc35pDe.js";import{s as ft,d as dt}from"./transitions.QBIMuVLc.js";import{b as bn}from"./SearchUtils.AdXBATOi.js";const qt=!0;function gn(i){let e,t,n;const l=i[19].default,a=_e(l,i,i[18],null);return{c(){e=G("div"),a&&a.c(),this.h()},l(s){e=j(s,"DIV",{class:!0,"data-testid":!0});var o=q(e);a&&a.l(o),o.forEach(z),this.h()},h(){S(e,"class",t="accordion "+i[0]),S(e,"data-testid","accordion")},m(s,o){F(s,e,o),a&&a.m(e,null),n=!0},p(s,[o]){a&&a.p&&(!n||o&262144)&&be(a,l,s,s[18],n?Se(l,s[18],o,null):ge(s[18]),null),(!n||o&1&&t!==(t="accordion "+s[0]))&&S(e,"class",t)},i(s){n||(A(a,s),n=!0)},o(s){H(a,s),n=!1},d(s){s&&z(e),a&&a.d(s)}}}function Sn(i,e,t){let n,l;ve(i,_n,m=>t(20,l=m));let{$$slots:a={},$$scope:s}=e,{autocollapse:o=!1}=e,{width:r="w-full"}=e,{spacing:f="space-y-1"}=e,{disabled:u=!1}=e,{padding:b="py-2 px-4"}=e,{hover:P="hover:bg-primary-hover-token"}=e,{rounded:k="rounded-container-token"}=e,{caretOpen:d="rotate-180"}=e,{caretClosed:p=""}=e,{regionControl:R=""}=e,{regionPanel:y="space-y-4"}=e,{regionCaret:M=""}=e,{transitions:N=!l}=e,{transitionIn:K=ft}=e,{transitionInParams:w={duration:200}}=e,{transitionOut:O=ft}=e,{transitionOutParams:g={duration:200}}=e;const T=we(null);return x("active",T),x("autocollapse",o),x("disabled",u),x("padding",b),x("hover",P),x("rounded",k),x("caretOpen",d),x("caretClosed",p),x("regionControl",R),x("regionPanel",y),x("regionCaret",M),x("transitions",N),x("transitionIn",K),x("transitionInParams",w),x("transitionOut",O),x("transitionOutParams",g),i.$$set=m=>{t(22,e=Ve(Ve({},e),He(m))),"autocollapse"in m&&t(1,o=m.autocollapse),"width"in m&&t(2,r=m.width),"spacing"in m&&t(3,f=m.spacing),"disabled"in m&&t(4,u=m.disabled),"padding"in m&&t(5,b=m.padding),"hover"in m&&t(6,P=m.hover),"rounded"in m&&t(7,k=m.rounded),"caretOpen"in m&&t(8,d=m.caretOpen),"caretClosed"in m&&t(9,p=m.caretClosed),"regionControl"in m&&t(10,R=m.regionControl),"regionPanel"in m&&t(11,y=m.regionPanel),"regionCaret"in m&&t(12,M=m.regionCaret),"transitions"in m&&t(13,N=m.transitions),"transitionIn"in m&&t(14,K=m.transitionIn),"transitionInParams"in m&&t(15,w=m.transitionInParams),"transitionOut"in m&&t(16,O=m.transitionOut),"transitionOutParams"in m&&t(17,g=m.transitionOutParams),"$$scope"in m&&t(18,s=m.$$scope)},i.$$.update=()=>{t(0,n=`${r} ${f} ${e.class??""}`)},e=He(e),[n,o,r,f,u,b,P,k,d,p,R,y,M,N,K,w,O,g,s,a]}class vn extends ye{constructor(e){super(),Ce(this,e,Sn,gn,pe,{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})}}const kn=i=>({}),ht=i=>({}),zn=i=>({}),mt=i=>({}),Pn=i=>({}),_t=i=>({}),pn=i=>({}),bt=i=>({}),yn=i=>({}),gt=i=>({});function St(i){let e,t;const n=i[30].lead,l=_e(n,i,i[29],gt);return{c(){e=G("div"),l&&l.c(),this.h()},l(a){e=j(a,"DIV",{class:!0});var s=q(e);l&&l.l(s),s.forEach(z),this.h()},h(){S(e,"class","accordion-lead")},m(a,s){F(a,e,s),l&&l.m(e,null),t=!0},p(a,s){l&&l.p&&(!t||s[0]&536870912)&&be(l,n,a,a[29],t?Se(n,a[29],s,yn):ge(a[29]),gt)},i(a){t||(A(l,a),t=!0)},o(a){H(l,a),t=!1},d(a){a&&z(e),l&&l.d(a)}}}function Cn(i){let e;return{c(){e=ae("(summary)")},l(t){e=oe(t,"(summary)")},m(t,n){F(t,e,n)},d(t){t&&z(e)}}}function Rn(i){let e,t,n;return{c(){e=G("div"),t=new nt(!1),this.h()},l(l){e=j(l,"DIV",{class:!0});var a=q(e);t=lt(a,!1),a.forEach(z),this.h()},h(){t.a=null,S(e,"class",n="accordion-summary-caret "+i[11])},m(l,a){F(l,e,a),t.m(i[14],e)},p(l,a){a[0]&2048&&n!==(n="accordion-summary-caret "+l[11])&&S(e,"class",n)},i:ke,o:ke,d(l){l&&z(e)}}}function Dn(i){let e,t,n,l,a;const s=[On,In],o=[];function r(f,u){return f[8]?0:1}return t=r(i),n=o[t]=s[t](i),{c(){e=G("div"),n.c(),this.h()},l(f){e=j(f,"DIV",{class:!0});var u=q(e);n.l(u),u.forEach(z),this.h()},h(){S(e,"class",l="accordion-summary-icons "+i[10])},m(f,u){F(f,e,u),o[t].m(e,null),a=!0},p(f,u){let b=t;t=r(f),t===b?o[t].p(f,u):(de(),H(o[b],1,1,()=>{o[b]=null}),he(),n=o[t],n?n.p(f,u):(n=o[t]=s[t](f),n.c()),A(n,1),n.m(e,null)),(!a||u[0]&1024&&l!==(l="accordion-summary-icons "+f[10]))&&S(e,"class",l)},i(f){a||(A(n),a=!0)},o(f){H(n),a=!1},d(f){f&&z(e),o[t].d()}}}function In(i){let e;const t=i[30].iconOpen,n=_e(t,i,i[29],mt),l=n||En(i);return{c(){l&&l.c()},l(a){l&&l.l(a)},m(a,s){l&&l.m(a,s),e=!0},p(a,s){n&&n.p&&(!e||s[0]&536870912)&&be(n,t,a,a[29],e?Se(t,a[29],s,zn):ge(a[29]),mt)},i(a){e||(A(l,a),e=!0)},o(a){H(l,a),e=!1},d(a){l&&l.d(a)}}}function On(i){let e;const t=i[30].iconClosed,n=_e(t,i,i[29],_t),l=n||Mn(i);return{c(){l&&l.c()},l(a){l&&l.l(a)},m(a,s){l&&l.m(a,s),e=!0},p(a,s){n&&n.p&&(!e||s[0]&536870912)&&be(n,t,a,a[29],e?Se(t,a[29],s,Pn):ge(a[29]),_t)},i(a){e||(A(l,a),e=!0)},o(a){H(l,a),e=!1},d(a){l&&l.d(a)}}}function En(i){let e,t;return{c(){e=new nt(!1),t=re(),this.h()},l(n){e=lt(n,!1),t=re(),this.h()},h(){e.a=t},m(n,l){e.m(i[14],n,l),F(n,t,l)},p:ke,d(n){n&&(z(t),e.d())}}}function Mn(i){let e,t;return{c(){e=new nt(!1),t=re(),this.h()},l(n){e=lt(n,!1),t=re(),this.h()},h(){e.a=t},m(n,l){e.m(i[14],n,l),F(n,t,l)},p:ke,d(n){n&&(z(t),e.d())}}}function vt(i){let e,t,n,l,a,s,o;const r=i[30].content,f=_e(r,i,i[29],ht),u=f||Tn();return{c(){e=G("div"),u&&u.c(),this.h()},l(b){e=j(b,"DIV",{class:!0,id:!0,role:!0,"aria-hidden":!0,"aria-labelledby":!0});var P=q(e);u&&u.l(P),P.forEach(z),this.h()},h(){S(e,"class",t="accordion-panel "+i[9]),S(e,"id",n="accordion-panel-"+i[0]),S(e,"role","region"),S(e,"aria-hidden",l=!i[8]),S(e,"aria-labelledby",i[0])},m(b,P){F(b,e,P),u&&u.m(e,null),o=!0},p(b,P){i=b,f&&f.p&&(!o||P[0]&536870912)&&be(f,r,i,i[29],o?Se(r,i[29],P,kn):ge(i[29]),ht),(!o||P[0]&512&&t!==(t="accordion-panel "+i[9]))&&S(e,"class",t),(!o||P[0]&1&&n!==(n="accordion-panel-"+i[0]))&&S(e,"id",n),(!o||P[0]&256&&l!==(l=!i[8]))&&S(e,"aria-hidden",l),(!o||P[0]&1)&&S(e,"aria-labelledby",i[0])},i(b){o||(A(u,b),b&&cn(()=>{o&&(s&&s.end(1),a=hn(e,dt,{transition:i[4],params:i[5],enabled:i[3]}),a.start())}),o=!0)},o(b){H(u,b),a&&a.invalidate(),b&&(s=mn(e,dt,{transition:i[6],params:i[7],enabled:i[3]})),o=!1},d(b){b&&z(e),u&&u.d(b),b&&s&&s.end()}}}function Tn(i){let e;return{c(){e=ae("(content)")},l(t){e=oe(t,"(content)")},m(t,n){F(t,e,n)},d(t){t&&z(e)}}}function Bn(i){let e,t,n,l,a,s,o,r,f,u,b,P,k,d,p=i[16].lead&&St(i);const R=i[30].summary,y=_e(R,i,i[29],bt),M=y||Cn(),N=[Dn,Rn],K=[];function w(g,T){return g[16].iconClosed||g[16].iconOpen?0:1}s=w(i),o=K[s]=N[s](i);let O=i[8]&&vt(i);return{c(){e=G("div"),t=G("button"),p&&p.c(),n=te(),l=G("div"),M&&M.c(),a=te(),o.c(),u=te(),O&&O.c(),this.h()},l(g){e=j(g,"DIV",{class:!0,"data-testid":!0});var T=q(e);t=j(T,"BUTTON",{type:!0,class:!0,id:!0,"aria-expanded":!0,"aria-controls":!0});var m=q(t);p&&p.l(m),n=ne(m),l=j(m,"DIV",{class:!0});var L=q(l);M&&M.l(L),L.forEach(z),a=ne(m),o.l(m),m.forEach(z),u=ne(T),O&&O.l(T),T.forEach(z),this.h()},h(){S(l,"class","accordion-summary flex-1"),S(t,"type","button"),S(t,"class",r="accordion-control "+i[12]),S(t,"id",i[0]),S(t,"aria-expanded",i[8]),S(t,"aria-controls",f="accordion-panel-"+i[0]),t.disabled=i[2],S(e,"class",b="accordion-item "+i[13]),S(e,"data-testid","accordion-item")},m(g,T){F(g,e,T),W(e,t),p&&p.m(t,null),W(t,n),W(t,l),M&&M.m(l,null),W(t,a),K[s].m(t,null),W(e,u),O&&O.m(e,null),P=!0,k||(d=[ee(t,"click",i[15]),ee(t,"click",i[31]),ee(t,"keydown",i[32]),ee(t,"keyup",i[33]),ee(t,"keypress",i[34])],k=!0)},p(g,T){g[16].lead?p?(p.p(g,T),T[0]&65536&&A(p,1)):(p=St(g),p.c(),A(p,1),p.m(t,n)):p&&(de(),H(p,1,1,()=>{p=null}),he()),y&&y.p&&(!P||T[0]&536870912)&&be(y,R,g,g[29],P?Se(R,g[29],T,pn):ge(g[29]),bt);let m=s;s=w(g),s===m?K[s].p(g,T):(de(),H(K[m],1,1,()=>{K[m]=null}),he(),o=K[s],o?o.p(g,T):(o=K[s]=N[s](g),o.c()),A(o,1),o.m(t,null)),(!P||T[0]&4096&&r!==(r="accordion-control "+g[12]))&&S(t,"class",r),(!P||T[0]&1)&&S(t,"id",g[0]),(!P||T[0]&256)&&S(t,"aria-expanded",g[8]),(!P||T[0]&1&&f!==(f="accordion-panel-"+g[0]))&&S(t,"aria-controls",f),(!P||T[0]&4)&&(t.disabled=g[2]),g[8]?O?(O.p(g,T),T[0]&256&&A(O,1)):(O=vt(g),O.c(),A(O,1),O.m(e,null)):O&&(de(),H(O,1,1,()=>{O=null}),he()),(!P||T[0]&8192&&b!==(b="accordion-item "+g[13]))&&S(e,"class",b)},i(g){P||(A(p),A(M,g),A(o),A(O),P=!0)},o(g){H(p),H(M,g),H(o),H(O),P=!1},d(g){g&&z(e),p&&p.d(),M&&M.d(g),K[s].d(),O&&O.d(),k=!1,tt(d)}}}const Ln="",Nn="text-start w-full flex items-center space-x-4",kt="fill-current w-3 transition-transform duration-[200ms]",Fn="";function Un(i,e,t){let n,l,a,s,o,r,f,u,b=ke,P=()=>(b(),b=un(K,I=>t(28,u=I)),K);i.$$.on_destroy.push(()=>b());let{$$slots:k={},$$scope:d}=e;const p=rn(k),R=wt();let{open:y=!1}=e,{id:M=String(Math.random())}=e,{autocollapse:N=$("autocollapse")}=e,{active:K=$("active")}=e;P();let{disabled:w=$("disabled")}=e,{padding:O=$("padding")}=e,{hover:g=$("hover")}=e,{rounded:T=$("rounded")}=e,{caretOpen:m=$("caretOpen")}=e,{caretClosed:L=$("caretClosed")}=e,{regionControl:h=$("regionControl")}=e,{regionPanel:Z=$("regionPanel")}=e,{regionCaret:J=$("regionCaret")}=e,{transitions:ie=$("transitions")}=e,{transitionIn:V=$("transitionIn")}=e,{transitionInParams:fe=$("transitionInParams")}=e,{transitionOut:Ye=$("transitionOut")}=e,{transitionOutParams:Ee=$("transitionOutParams")}=e;const Qe=` - - - `;function Re(I){N===!0?K.set(M):t(17,y=!y),Ze(I)}function Ze(I){const Ie=N?u===M:y;R("toggle",{event:I,id:M,panelId:`accordion-panel-${M}`,open:Ie,autocollapse:N})}N&&y&&Re();function Me(I){Fe.call(this,i,I)}function Je(I){Fe.call(this,i,I)}function Te(I){Fe.call(this,i,I)}function De(I){Fe.call(this,i,I)}return i.$$set=I=>{t(37,e=Ve(Ve({},e),He(I))),"open"in I&&t(17,y=I.open),"id"in I&&t(0,M=I.id),"autocollapse"in I&&t(18,N=I.autocollapse),"active"in I&&P(t(1,K=I.active)),"disabled"in I&&t(2,w=I.disabled),"padding"in I&&t(19,O=I.padding),"hover"in I&&t(20,g=I.hover),"rounded"in I&&t(21,T=I.rounded),"caretOpen"in I&&t(22,m=I.caretOpen),"caretClosed"in I&&t(23,L=I.caretClosed),"regionControl"in I&&t(24,h=I.regionControl),"regionPanel"in I&&t(25,Z=I.regionPanel),"regionCaret"in I&&t(26,J=I.regionCaret),"transitions"in I&&t(3,ie=I.transitions),"transitionIn"in I&&t(4,V=I.transitionIn),"transitionInParams"in I&&t(5,fe=I.transitionInParams),"transitionOut"in I&&t(6,Ye=I.transitionOut),"transitionOutParams"in I&&t(7,Ee=I.transitionOutParams),"$$scope"in I&&t(29,d=I.$$scope)},i.$$.update=()=>{i.$$.dirty[0]&393216&&y&&N&&Re(),i.$$.dirty[0]&268828673&&t(8,n=N?u===M:y),t(13,l=`${Ln} ${e.class??""}`),i.$$.dirty[0]&20447232&&t(12,a=`${Nn} ${O} ${g} ${T} ${h}`),i.$$.dirty[0]&12583168&&t(27,s=n?m:L),i.$$.dirty[0]&201326592&&t(11,o=`${kt} ${J} ${s}`),i.$$.dirty[0]&67108864&&t(10,r=`${kt} ${J}`),i.$$.dirty[0]&36175872&&t(9,f=`${Fn} ${O} ${T} ${Z}`)},e=He(e),[M,K,w,ie,V,fe,Ye,Ee,n,f,r,o,a,l,Qe,Re,p,y,N,O,g,T,m,L,h,Z,J,s,u,d,k,Me,Je,Te,De]}class An extends ye{constructor(e){super(),Ce(this,e,Un,Bn,pe,{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 Ue(i){if(!i.endsWith("px"))return;const e=parseFloat(i.slice(0,i.length-2));return isNaN(e)?void 0:e}const Xt=i=>i?"height":"width",$e=i=>window.getComputedStyle(i),et=i=>i.getBoundingClientRect(),wn=(i,e=!0)=>{if(i.getPropertyValue("box-sizing")==="border-box")return;const t=Ue(i.getPropertyValue("border-left-width"));if(t===void 0){console.error("Splitpanes Error: Fail to parse container `border-left-width`.");return}const n=Ue(i.getPropertyValue("border-top-width"));if(n===void 0){console.error("Splitpanes Error: Fail to parse container `border-top-width`.");return}const l={left:t,top:n};if(e){const a=Ue(i.getPropertyValue("border-right-width"));if(a===void 0){console.error("Splitpanes Error: Fail to parse container `border-right-width`.");return}const s=Ue(i.getPropertyValue("border-bottom-width"));if(s===void 0){console.error("Splitpanes Error: Fail to parse container `border-bottom-width`.");return}const o=l;o.right=a,o.bottom=s}return l};function Vn(i,e){e||(e=$e(i));const t=et(i),n=wn(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 zt=(i,e)=>({left:i.left-e.left,top:i.top-e.top});function Pt(i){const e=i,t=i,{clientX:n,clientY:l}="ontouchstart"in window&&t.touches?t.touches[0]:e;return{left:n,top:l}}function pt(i,e,t,n){let l=0;for(let a=e;at(31,a=c));const J=we(k);ve(i,J,c=>t(30,l=c));const ie=we(void 0);ve(i,ie,c=>t(29,n=c));let V=null,fe=null;x(Yt,{showFirstSplitter:J,veryFirstPaneKey:ie,isHorizontal:Z,ssrRegisterPaneSize:void 0,onPaneInit:c=>(n===void 0&&Pe(ie,n=c,n),{undefinedPaneInitSize:0}),clientOnly:{onPaneAdd:Ee,onPaneRemove:Qe}});function Ee(c){let v=-1;Array.from(c.element.parentNode.children).some(_=>(_.className.includes("splitpanes__pane")&&v++,_===c.element)),v===0&&Pe(ie,n=c.key,n),h.splice(v,0,c);for(let _=0;_{c.isReady=!0,y("pane-add",{index:v,panes:ze()})});const E=(_,B=!0)=>D=>{(B||c.index>0)&&_(D,c)};return{onSplitterDown:E(Zt,!1),onSplitterClick:E(Jt,!1),onSplitterDblClick:E(it),onPaneClick:E(Re),reportGivenSizeChange:E(Ze)}}async function Qe(c){const v=h.findIndex(E=>E.key===c);if(v>=0){const E=h.splice(v,1)[0];for(let _=0;_0?h[0].key:void 0,n),N&&(await xe(),y("pane-remove",{removed:E,panes:ze()}))}}function Re(c,v){y("pane-click",v)}function Ze(c,v){v.setSz(c),xe()}Vt(()=>{ct(),rt();for(let c=0;c{t(6,w=!0)},0)}),Ht(()=>{N&&Te(),N=!1}),fn(()=>{ct()});function Me(c){if(P==="auto")try{return(c??$e(M)).direction==="rtl"}catch{}return P===!0}function Je(){document.body.style.cursor=Z?"col-resize":"row-resize",document.addEventListener("mousemove",Be,{passive:!1}),document.addEventListener("mouseup",Le),"ontouchstart"in window&&(document.addEventListener("touchmove",Be,{passive:!1}),document.addEventListener("touchend",Le))}function Te(){document.body.style.cursor="",document.removeEventListener("mousemove",Be),document.removeEventListener("mouseup",Le),"ontouchstart"in window&&(document.removeEventListener("touchmove",Be),document.removeEventListener("touchend",Le))}const De=c=>c.nodeType===Node.ELEMENT_NODE&&c.classList.contains("splitpanes__splitter");function I(c,v,E){let _=c[f?"top":"left"];return E&&!f&&(_=v-_),_}const Ie=()=>Xt(f);function Zt(c,v){t(7,O=!0),T=v.index,v.setSplitterActive(!0);let _=v.element;for(;_!=null&&(_=_.previousSibling,!De(_)););if(_==null){console.error("Splitpane Error: Active splitter wasn't found!");return}V=_;const B=Pt(c),D=et(V);fe=I(zt(B,D),D[Ie()],Me()),Je()}function Be(c){if(O){c.preventDefault(),t(8,g=!0);const v=Pt(c),E=$e(M),_=Vn(M,E),B=_[Ie()],D=Me(E),C=zt(v,_),U=I(C,B,D);$t(U,B),y("resize",ze())}}function Le(){g&&y("resized",ze()),t(7,O=!1),h[T].setSplitterActive(!1),setTimeout(()=>{t(8,g=!1),Te()},100)}function Jt(c,v){if("ontouchstart"in window){c.preventDefault();const E=v.index;b&&(m===E?(L&&clearTimeout(L),L=null,it(c,v),m=-1):(m=E,L=setTimeout(()=>{m=-1},500)))}g||y("splitter-click",v)}function it(c,v){if(b){const E=v.index;let _=0;for(let C=0;C=100)for(let C=0;C{const Q=X.min(),le=X.max(),se=Math.min(Math.max(0,C),le-Q);X.setSz(Q+se),C-=se};for(let X=E-1;X>=0;X--)U(h[X]);for(let X=E+1;Xh.map(c=>({min:c.min(),max:c.max(),size:c.sz(),snap:c.snap()}));function xt(c,v){const E=le=>et(le)[Ie()],_=E(V);let B=0,D=V.previousSibling;for(;D!=null;)De(D)&&(B+=E(D)),D=D.previousSibling;let C=0,U=V.nextSibling;for(;U!=null;)De(U)&&(C+=E(U)),U=U.nextSibling;const X=B+fe,Q=B+_+C;return(c-X)/(v-Q)*100}function $t(c,v){let E=T-1,_=h[E],B=T,D=h[B],C={prevPanesSize:at(E),nextPanesSize:ot(B),prevReachedMinPanes:0,nextReachedMinPanes:0};const U=0+(u?0:C.prevPanesSize),X=100-(u?0:C.nextPanesSize),Q=Math.max(Math.min(xt(c,v),X),U),le=C.prevPanesSize+_.min()+_.snap(),se=100-(C.nextPanesSize+D.min()+D.snap());let Y=Q,ce=!1;Q<=le?Q>C.prevPanesSize+_.min()&&(Y=Math.max(_.min()+C.prevPanesSize,100-(D.max()+C.nextPanesSize)),ce=!0):Q>=se&&Q<100-C.nextPanesSize-D.min()&&(Y=Math.min(100-(D.min()+C.nextPanesSize),_.max()+C.prevPanesSize),ce=!0);const Ne=_.max()<100&&Y>=_.max()+C.prevPanesSize,on=D.max()<100&&Y<=100-(D.max()+C.nextPanesSize);if(Ne||on)Ne?(_.setSz(_.max()),D.setSz(Math.max(100-_.max()-C.prevPanesSize-C.nextPanesSize,0))):(_.setSz(Math.max(100-D.max()-C.prevPanesSize-C.nextPanesSize,0)),D.setSz(D.max()));else{if(u&&!ce){const ut=en(C,Y);if(!ut)return;({sums:C,paneBeforeIndex:E,paneAfterIndex:B}=ut),_=h[E],D=h[B]}E!=null&&_.setSz(Math.min(Math.max(Y-C.prevPanesSize-C.prevReachedMinPanes,_.min()),_.max())),B!=null&&D.setSz(Math.min(Math.max(100-Y-C.nextPanesSize-C.nextReachedMinPanes,D.min()),D.max()))}}function en(c,v){const E=T-1;let _=E,B=E+1;if(v{D.setSz(D.min()),c.prevReachedMinPanes+=D.min()}),c.prevPanesSize=at(_),_==null))return c.prevReachedMinPanes=0,h[0].setSz(h[0].min()),Ae(h,1,E+1,D=>{D.setSz(D.min()),c.prevReachedMinPanes+=D.min()}),h[B].setSz(100-c.prevReachedMinPanes-h[0].min()-c.prevPanesSize-c.nextPanesSize),null;if(v>100-c.nextPanesSize-h[B].min()){B=nn(E)?.index,c.nextReachedMinPanes=0,B>E+1&&Ae(h,E+1,B,C=>{C.setSz(C.min()),c.nextReachedMinPanes+=C.min()}),c.nextPanesSize=ot(B);const D=h.length;if(B==null)return c.nextReachedMinPanes=0,h[D-1].setSz(h[D-1].min()),Ae(h,E+1,D-1,C=>{C.setSz(C.min()),c.nextReachedMinPanes+=C.min()}),h[_].setSz(100-c.prevPanesSize-c.nextReachedMinPanes-h[D-1].min()-c.nextPanesSize),null}return{sums:c,paneBeforeIndex:_,paneAfterIndex:B}}const st=c=>c.sz(),at=c=>pt(h,0,c,st),ot=c=>pt(h,c+1,h.length,st),tn=c=>[...h].reverse().find(v=>v.indexv.min()),nn=c=>h.find(v=>v.index>c+1&&v.sz()>v.min());async function xe(){K=!0,await dn(),K&&(rt(),K=!1)}function rt(){ln(),N&&y("resized",ze())}function ln(){if(h.length===0)return;const c=h.length;let v=100,E=0,_=0,B=0,D=[],C=[];for(let se=0;se=Y.max()&&D.push(Y),ce<=Y.min()&&C.push(Y)):_+=1:(v-=ce,E++,D.push(Y),C.push(Y))}const U=c-E,X=U-_;let Q,le;if(X>0?(Q=B/X,Q>.1&&v>.1?(B+=_*Q,le=v/B):(Q=0,le=1)):(Q=v/U,le=1),v+B>.1){v=100;for(let se=0;se.1&&(v=sn(v,D,C))}isFinite(v)?Math.abs(v)>.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 sn(c,v,E){const B=h.length-(c>0?v.length:E.length);if(B<=0)return c;const D=c/B;if(h.length===1)h[0].setSz(100),c=0;else for(let C=0;C0&&!v.includes(U)){const Q=Math.max(Math.min(X+D,U.max()),U.min()),le=Q-X;c-=le,U.setSz(Q)}else if(!E.includes(U)){const Q=Math.max(Math.min(X+D,U.max()),U.min()),le=Q-X;c-=le,U.setSz(Q)}}return c}function ct(){const{children:c}=M;let v=0,E=!1;for(let _=0;_ elements are allowed at the root of . One of your DOM nodes was removed.");return}else D&&(!E&&h[v].element!==B&&(E=!0),v++)}if(E){const _=[];for(let B=0;BX.element===D);U!=null?(U.index=_.length,_.push(U)):console.warn("Splitpanes: Internal error - found a elements which isn't tracked.")}}h=_,Pe(ie,n=h.length>0?h[0].key:void 0,n)}}function an(c){Ge[c?"unshift":"push"](()=>{M=c,t(5,M)})}return i.$$set=c=>{"id"in c&&t(0,r=c.id),"horizontal"in c&&t(1,f=c.horizontal),"pushOtherPanes"in c&&t(12,u=c.pushOtherPanes),"dblClickSplitter"in c&&t(13,b=c.dblClickSplitter),"rtl"in c&&t(14,P=c.rtl),"firstSplitter"in c&&t(15,k=c.firstSplitter),"style"in c&&t(2,d=c.style),"theme"in c&&t(3,p=c.theme),"class"in c&&t(4,R=c.class),"$$scope"in c&&t(18,o=c.$$scope)},i.$$.update=()=>{i.$$.dirty[0]&2&&Pe(Z,a=f,a),i.$$.dirty[0]&32768&&Pe(J,l=k,l)},[r,f,d,p,R,M,w,O,g,Z,J,ie,u,b,P,k,s,an,o]}class bl extends ye{constructor(e){super(),Ce(this,e,Gn,Hn,pe,{id:0,horizontal:1,pushOtherPanes:12,dblClickSplitter:13,rtl:14,firstSplitter:15,style:2,theme:3,class:4},null,[-1,-1,-1])}}const jn=(i,e)=>t=>{const n=i();n?.[e](t)},Kn=i=>jn.bind(null,i);function Wn(i){let e,t,n,l,a,s,o=(i[4]!==i[9]||i[5])&&yt(i);const r=i[20].default,f=_e(r,i,i[19],null);return{c(){o&&o.c(),e=te(),t=G("div"),f&&f.c(),this.h()},l(u){o&&o.l(u),e=ne(u),t=j(u,"DIV",{class:!0,style:!0});var b=q(t);f&&f.l(b),b.forEach(z),this.h()},h(){S(t,"class",n=`splitpanes__pane ${i[0]||""}`),S(t,"style",i[3])},m(u,b){o&&o.m(u,b),F(u,e,b),F(u,t,b),f&&f.m(t,null),i[21](t),l=!0,a||(s=ee(t,"click",i[11]("onPaneClick")),a=!0)},p(u,b){u[4]!==u[9]||u[5]?o?o.p(u,b):(o=yt(u),o.c(),o.m(e.parentNode,e)):o&&(o.d(1),o=null),f&&f.p&&(!l||b&524288)&&be(f,r,u,u[19],l?Se(r,u[19],b,null):ge(u[19]),null),(!l||b&1&&n!==(n=`splitpanes__pane ${u[0]||""}`))&&S(t,"class",n),(!l||b&8)&&S(t,"style",u[3])},i(u){l||(A(f,u),l=!0)},o(u){H(f,u),l=!1},d(u){u&&(z(e),z(t)),o&&o.d(u),f&&f.d(u),i[21](null),a=!1,s()}}}function yt(i){let e,t,n,l;return{c(){e=G("div"),this.h()},l(a){e=j(a,"DIV",{class:!0}),q(e).forEach(z),this.h()},h(){S(e,"class",t="splitpanes__splitter "+(i[2]?"splitpanes__splitter__active":""))},m(a,s){F(a,e,s),n||(l=[ee(e,"mousedown",i[11]("onSplitterDown")),ee(e,"touchstart",i[11]("onSplitterDown")),ee(e,"click",i[11]("onSplitterClick")),ee(e,"dblclick",i[11]("onSplitterDblClick"))],n=!0)},p(a,s){s&4&&t!==(t="splitpanes__splitter "+(a[2]?"splitpanes__splitter__active":""))&&S(e,"class",t)},d(a){a&&z(e),n=!1,tt(l)}}}function qn(i){let e,t,n=!i[10]&&Wn(i);return{c(){n&&n.c(),e=re()},l(l){n&&n.l(l),e=re()},m(l,a){n&&n.m(l,a),F(l,e,a),t=!0},p(l,[a]){l[10]||n.p(l,a)},i(l){t||(A(n),t=!0)},o(l){H(n),t=!1},d(l){l&&z(e),n&&n.d(l)}}}function Xn(i,e,t){let n,l,a,s,o,{$$slots:r={},$$scope:f}=e;const{ssrRegisterPaneSize:u,onPaneInit:b,clientOnly:P,isHorizontal:k,showFirstSplitter:d,veryFirstPaneKey:p}=$(Yt);ve(i,k,V=>t(18,a=V)),ve(i,d,V=>t(5,o=V)),ve(i,p,V=>t(4,s=V));let{size:R=null}=e,{minSize:y=0}=e,{maxSize:M=100}=e,{snapSize:N=0}=e,{class:K=""}=e;const w={},O=!qt,{undefinedPaneInitSize:g}=b(w);let T,m=R??g,L=!1,h;const Z=Kn(()=>h),J=V=>{V!=m&&Z("reportGivenSizeChange")(V)};Vt(()=>{const V={key:w,element:T,givenSize:R,sz:()=>m,setSz:fe=>{t(16,m=fe),R!=null&&R!=m&&t(12,R=m)},min:()=>y,max:()=>M,snap:()=>N,setSplitterActive:fe=>{t(2,L=fe)},isReady:!1};h=P.onPaneAdd(V)}),Ht(()=>{P.onPaneRemove(w)});function ie(V){Ge[V?"unshift":"push"](()=>{T=V,t(1,T)})}return i.$$set=V=>{"size"in V&&t(12,R=V.size),"minSize"in V&&t(13,y=V.minSize),"maxSize"in V&&t(14,M=V.maxSize),"snapSize"in V&&t(15,N=V.snapSize),"class"in V&&t(0,K=V.class),"$$scope"in V&&t(19,f=V.$$scope)},i.$$.update=()=>{i.$$.dirty&4096&&R!=null&&J(R),i.$$.dirty&262144&&t(17,n=Xt(a)),i.$$.dirty&196608&&t(3,l=`${n}: ${m}%;`)},[K,T,L,l,s,o,k,d,p,w,O,Z,R,y,M,N,m,n,a,f,r,ie]}class gl extends ye{constructor(e){super(),Ce(this,e,Xn,qn,pe,{size:12,minSize:13,maxSize:14,snapSize:15,class:0})}}function Ct(i,e,t){const n=i.slice();return n[11]=e[t],n}function Rt(i){let e,t,n;return{c(){e=G("input"),this.h()},l(l){e=j(l,"INPUT",{type:!0}),this.h()},h(){S(e,"type","checkbox")},m(l,a){F(l,e,a),e.checked=i[1][i[2].title],t||(n=ee(e,"change",i[9]),t=!0)},p(l,a){a&6&&(e.checked=l[1][l[2].title])},d(l){l&&z(e),t=!1,n()}}}function Yn(i){let e,t=i[2].teaser+"",n;return{c(){e=G("div"),n=ae(t),this.h()},l(l){e=j(l,"DIV",{class:!0});var a=q(e);n=oe(a,t),a.forEach(z),this.h()},h(){S(e,"class","annotation svelte-vfddhm")},m(l,a){F(l,e,a),W(e,n)},p(l,a){a&4&&t!==(t=l[2].teaser+"")&&Oe(n,t)},d(l){l&&z(e)}}}function Qn(i){let e,t=me(i[7].split(` -`)),n=[];for(let l=0;l100&&Ot(i);return{c(){e=G("div"),t=G("div"),n=G("label"),u&&u.c(),l=te(),s=ae(a),o=te(),k.c(),r=te(),d&&d.c(),f=te(),p&&p.c(),this.h()},l(R){e=j(R,"DIV",{class:!0});var y=q(e);t=j(y,"DIV",{class:!0});var M=q(t);n=j(M,"LABEL",{style:!0});var N=q(n);u&&u.l(N),l=ne(N),s=oe(N,a),N.forEach(z),M.forEach(z),o=ne(y),k.l(y),r=ne(y),d&&d.l(y),f=ne(y),p&&p.l(y),y.forEach(z),this.h()},h(){Gt(n,"cursor","pointer"),S(t,"class","title svelte-vfddhm"),S(e,"class","search-result svelte-vfddhm")},m(R,y){F(R,e,y),W(e,t),W(t,n),u&&u.m(n,null),W(n,l),W(n,s),W(e,o),k.m(e,null),W(e,r),d&&d.m(e,null),W(e,f),p&&p.m(e,null)},p(R,[y]){R[6]?u?u.p(R,y):(u=Rt(R),u.c(),u.m(n,l)):u&&(u.d(1),u=null),y&4&&a!==(a=R[2].title+"")&&Oe(s,a),P===(P=b(R))&&k?k.p(R,y):(k.d(1),k=P(R),k&&(k.c(),k.m(e,r))),R[4]&&R[5]?d?d.p(R,y):(d=It(R),d.c(),d.m(e,f)):d&&(d.d(1),d=null),R[7].length>100?p?p.p(R,y):(p=Ot(R),p.c(),p.m(e,null)):p&&(p.d(1),p=null)},i:ke,o:ke,d(R){R&&z(e),u&&u.d(),k.d(),d&&d.d(),p&&p.d()}}}function $n(i,e,t){let{value:n}=e,{showFullText:l=Array(10).fill(!1)}=e,{useSearchResult:a}=e,{index:s}=e,{enableDocumentDb:o=!1}=e,{documentDbUrl:r=""}=e,{enableSearchResultSelection:f=!1}=e,u="";function b(d){t(0,l[d]=!l[d],l)}function P(){a[n.title]=this.checked,t(1,a)}const k=()=>b(s);return i.$$set=d=>{"value"in d&&t(2,n=d.value),"showFullText"in d&&t(0,l=d.showFullText),"useSearchResult"in d&&t(1,a=d.useSearchResult),"index"in d&&t(3,s=d.index),"enableDocumentDb"in d&&t(4,o=d.enableDocumentDb),"documentDbUrl"in d&&t(5,r=d.documentDbUrl),"enableSearchResultSelection"in d&&t(6,f=d.enableSearchResultSelection)},i.$$.update=()=>{i.$$.dirty&4&&t(7,u=n?n.text_for_llm||n.text:"")},[l,a,n,s,o,r,f,u,b,P,k]}class Qt extends ye{constructor(e){super(),Ce(this,e,$n,xn,pe,{value:2,showFullText:0,useSearchResult:1,index:3,enableDocumentDb:4,documentDbUrl:5,enableSearchResultSelection:6})}}function Et(i,e,t){const n=i.slice();return n[31]=e[t],n[34]=e,n[33]=t,n}function Mt(i,e,t){const n=i.slice();return n[27]=e[t][0],n[28]=e[t][1],n}function Tt(i,e,t){const n=i.slice();return n[31]=e[t],n[32]=e,n[33]=t,n}function Bt(i){let e,t,n,l,a=i[3]?"Выбрано LLM":"Все результаты",s,o,r,f,u,b,P,k="Выбрать источники для LLM",d,p,R,y,M,N,K,w=i[2]&&Lt();return{c(){e=G("div"),t=G("button"),n=G("i"),l=ae(` \r - `),s=ae(a),f=te(),u=G("button"),w&&w.c(),b=te(),P=G("span"),P.textContent=k,p=te(),R=G("button"),y=ae("Группировать по типу"),this.h()},l(O){e=j(O,"DIV",{class:!0});var g=q(e);t=j(g,"BUTTON",{class:!0});var T=q(t);n=j(T,"I",{class:!0}),q(n).forEach(z),l=oe(T,` \r - `),s=oe(T,a),T.forEach(z),f=ne(g),u=j(g,"BUTTON",{class:!0});var m=q(u);w&&w.l(m),b=ne(m),P=j(m,"SPAN",{"data-svelte-h":!0}),jt(P)!=="svelte-u1xxg4"&&(P.textContent=k),m.forEach(z),p=ne(g),R=j(g,"BUTTON",{class:!0});var L=q(R);y=oe(L,"Группировать по типу"),L.forEach(z),g.forEach(z),this.h()},h(){S(n,"class","fa-solid fa-check"),S(t,"class",o="chip "+(i[3]?"variant-filled-primary":"variant-soft-primary")+" svelte-1egz4bg"),t.disabled=r=i[8].length==0,ue(t,"blinking",i[11]),S(u,"class",d="chip "+i[14]+" svelte-1egz4bg"),u.disabled=i[7],S(R,"class",M="chip "+i[13]+" svelte-1egz4bg"),S(e,"class","w-full flex space-x-2 items-center mb-4")},m(O,g){F(O,e,g),W(e,t),W(t,n),W(t,l),W(t,s),W(e,f),W(e,u),w&&w.m(u,null),W(u,b),W(u,P),W(e,p),W(e,R),W(R,y),N||(K=[ee(t,"click",i[17]),ee(u,"click",i[18]),ee(R,"click",i[19])],N=!0)},p(O,g){g[0]&8&&a!==(a=O[3]?"Выбрано LLM":"Все результаты")&&Oe(s,a),g[0]&8&&o!==(o="chip "+(O[3]?"variant-filled-primary":"variant-soft-primary")+" svelte-1egz4bg")&&S(t,"class",o),g[0]&256&&r!==(r=O[8].length==0)&&(t.disabled=r),g[0]&2056&&ue(t,"blinking",O[11]),O[2]?w||(w=Lt(),w.c(),w.m(u,b)):w&&(w.d(1),w=null),g[0]&16384&&d!==(d="chip "+O[14]+" svelte-1egz4bg")&&S(u,"class",d),g[0]&128&&(u.disabled=O[7]),g[0]&8192&&M!==(M="chip "+O[13]+" svelte-1egz4bg")&&S(R,"class",M)},d(O){O&&z(e),w&&w.d(),N=!1,tt(K)}}}function Lt(i){let e,t='';return{c(){e=G("span"),e.innerHTML=t},l(n){e=j(n,"SPAN",{"data-svelte-h":!0}),jt(e)!=="svelte-104b754"&&(e.innerHTML=t)},m(n,l){F(n,e,l)},d(n){n&&z(e)}}}function el(i){let e,t,n=me(i[9]),l=[];for(let s=0;sH(l[s],1,1,()=>{l[s]=null});return{c(){for(let s=0;sWt(e,"value",l)),{c(){Ke(e.$$.fragment)},l(s){We(e.$$.fragment,s)},m(s,o){qe(e,s,o),n=!0},p(s,o){i=s;const r={};o[0]&4&&(r.enableSearchResultSelection=i[2]),o[0]&1&&(r.useSearchResult=i[0]),o[0]&16&&(r.showFullText=i[4]),o[0]&32&&(r.enableDocumentDb=i[5]),o[0]&64&&(r.documentDbUrl=i[6]),!t&&o[0]&512&&(t=!0,r.value=i[31],Kt(()=>t=!1)),e.$set(r)},i(s){n||(A(e.$$.fragment,s),n=!0)},o(s){H(e.$$.fragment,s),n=!1},d(s){Xe(e,s)}}}function Ft(i){let e,t,n,l;return{c(){e=G("input"),this.h()},l(a){e=j(a,"INPUT",{type:!0,"data-doctype":!0}),this.h()},h(){S(e,"type","checkbox"),S(e,"data-doctype",t=i[27])},m(a,s){F(a,e,s),n||(l=ee(e,"click",i[15]),n=!0)},p(a,s){s[0]&4096&&t!==(t=a[27])&&S(e,"data-doctype",t)},d(a){a&&z(e),n=!1,l()}}}function nl(i){let e,t=i[2]&&Ft(i);return{c(){t&&t.c(),e=te()},l(n){t&&t.l(n),e=ne(n)},m(n,l){t&&t.m(n,l),F(n,e,l)},p(n,l){n[2]?t?t.p(n,l):(t=Ft(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},d(n){n&&z(e),t&&t.d(n)}}}function ll(i){let e=i[27]+"",t;return{c(){t=ae(e)},l(n){t=oe(n,e)},m(n,l){F(n,t,l)},p(n,l){l[0]&4096&&e!==(e=n[27]+"")&&Oe(t,e)},d(n){n&&z(t)}}}function Ut(i){let e,t,n;function l(s){i[20](s,i[31],i[32],i[33])}let a={index:i[33],enableSearchResultSelection:i[2],useSearchResult:i[0],showFullText:i[4],enableDocumentDb:i[5],documentDbUrl:i[6]};return i[31]!==void 0&&(a.value=i[31]),e=new Qt({props:a}),Ge.push(()=>Wt(e,"value",l)),{c(){Ke(e.$$.fragment)},l(s){We(e.$$.fragment,s)},m(s,o){qe(e,s,o),n=!0},p(s,o){i=s;const r={};o[0]&4&&(r.enableSearchResultSelection=i[2]),o[0]&1&&(r.useSearchResult=i[0]),o[0]&16&&(r.showFullText=i[4]),o[0]&32&&(r.enableDocumentDb=i[5]),o[0]&64&&(r.documentDbUrl=i[6]),!t&&o[0]&4096&&(t=!0,r.value=i[31],Kt(()=>t=!1)),e.$set(r)},i(s){n||(A(e.$$.fragment,s),n=!0)},o(s){H(e.$$.fragment,s),n=!1},d(s){Xe(e,s)}}}function il(i){let e,t,n=me(i[28]),l=[];for(let s=0;sH(l[s],1,1,()=>{l[s]=null});return{c(){for(let s=0;sH(l[s],1,1,()=>{l[s]=null});return{c(){for(let s=0;s0&&Bt(i);const f=[tl,el],u=[];function b(k,d){return k[10]&&k[12]?0:1}n=b(i),l=u[n]=f[n](i);let P=ol;return{c(){e=G("div"),r&&r.c(),t=te(),l.c(),a=te(),s=re(),this.h()},l(k){e=j(k,"DIV",{class:!0});var d=q(e);r&&r.l(d),t=ne(d),l.l(d),d.forEach(z),a=ne(k),s=re(),this.h()},h(){S(e,"class","search-results svelte-1egz4bg")},m(k,d){F(k,e,d),r&&r.m(e,null),W(e,t),u[n].m(e,null),F(k,a,d),F(k,s,d),o=!0},p(k,d){k[1]&&k[1].length>0?r?r.p(k,d):(r=Bt(k),r.c(),r.m(e,t)):r&&(r.d(1),r=null);let p=n;n=b(k),n===p?u[n].p(k,d):(de(),H(u[p],1,1,()=>{u[p]=null}),he(),l=u[n],l?l.p(k,d):(l=u[n]=f[n](k),l.c()),A(l,1),l.m(e,null))},i(k){o||(A(l),A(P),o=!0)},o(k){H(l),H(P),o=!1},d(k){k&&(z(e),z(a),z(s)),r&&r.d(),u[n].d()}}}let ol=!1;function rl(i,e,t){let n,l,{enableDocumentDb:a=!1}=e,{documentDbUrl:s=""}=e,{showFullText:o=Array(10).fill(!1)}=e,{useSearchResult:r}=e,{searchInTransactionLedger:f=!1}=e,{searchResults:u=[]}=e,{usedSearchResults:b=[]}=e,P=[],{enableSearchResultSelection:k=!1}=e,{showOnlyLlmUsed:d=!1}=e,p=!1;const R=()=>{t(11,p=!0),setTimeout(()=>{t(11,p=!1)},5e3)};let y=!1,M;const N=L=>L.reduce((h,Z)=>{const J=Z.docType||"Другие документы";return h[J]||(h[J]=[]),h[J].push(Z),h},{}),K=L=>{L.stopPropagation();const h=L.target.dataset.doctype;Object.keys(M[h]).forEach(Z=>{t(0,r[M[h][Z].title]=L.target.checked,r)})},w=()=>{t(3,d=!d)},O=()=>{t(2,k=!k)},g=()=>{t(10,y=!y)};function T(L,h,Z,J){Z[J]=L}function m(L,h,Z,J){Z[J]=L,t(9,P),t(10,y),t(3,d),t(8,b),t(1,u)}return i.$$set=L=>{"enableDocumentDb"in L&&t(5,a=L.enableDocumentDb),"documentDbUrl"in L&&t(6,s=L.documentDbUrl),"showFullText"in L&&t(4,o=L.showFullText),"useSearchResult"in L&&t(0,r=L.useSearchResult),"searchInTransactionLedger"in L&&t(7,f=L.searchInTransactionLedger),"searchResults"in L&&t(1,u=L.searchResults),"usedSearchResults"in L&&t(8,b=L.usedSearchResults),"enableSearchResultSelection"in L&&t(2,k=L.enableSearchResultSelection),"showOnlyLlmUsed"in L&&t(3,d=L.showOnlyLlmUsed)},i.$$.update=()=>{i.$$.dirty[0]&1536&&(y&&t(12,M=N(P)),t(9,P=bn.sortByRelevance(P))),i.$$.dirty[0]&1&&r===void 0&&t(0,r={}),i.$$.dirty[0]&4&&t(14,n=k?"variant-filled-primary":"variant-soft-primary"),i.$$.dirty[0]&1024&&t(13,l=y?"variant-filled-primary":"variant-soft-primary"),i.$$.dirty[0]&264&&t(3,d=b.length!==0&&d),i.$$.dirty[0]&266&&t(9,P=d?b:u)},[r,u,k,d,o,a,s,f,b,P,y,p,M,l,n,K,R,w,O,g,T,m]}class Sl extends ye{constructor(e){super(),Ce(this,e,rl,al,pe,{enableDocumentDb:5,documentDbUrl:6,showFullText:4,useSearchResult:0,searchInTransactionLedger:7,searchResults:1,usedSearchResults:8,enableSearchResultSelection:2,showOnlyLlmUsed:3,blinkButton:16},null,[-1,-1])}get blinkButton(){return this.$$.ctx[16]}}export{gl as P,bl as S,Sl as a}; diff --git a/build/client/_app/immutable/chunks/SearchResults.Ph1Db59T.js b/build/client/_app/immutable/chunks/SearchResults.Ph1Db59T.js deleted file mode 100644 index 5ea33bc92fef13a26e804b626b34c20aee116da2..0000000000000000000000000000000000000000 --- a/build/client/_app/immutable/chunks/SearchResults.Ph1Db59T.js +++ /dev/null @@ -1,8 +0,0 @@ -import{b as pe,L as _e,e as G,d as j,f as q,i as z,u as S,k as F,M as be,N as ge,O as Se,o as ve,s as x,P as Ve,Q as He,c as te,j as ne,l as W,w as ee,r as tt,R as rn,ac as wt,g as $,X as cn,n as ke,ad as un,S as Fe,t as ae,h as oe,H as nt,C as lt,F as re,B as ue,A as Vt,ae as Ht,G as fn,aa as Pe,K as dn,p as Ge,I as Gt,m as Oe,y as je,q as jt,x as Kt}from"./scheduler.5WtVptCO.js";import{S as ye,i as Ce,a as A,t as H,g as de,f as he,h as hn,j as mn,c as Ke,d as We,m as qe,e as Xe,b as Wt}from"./index.7IiDzEZn.js";import{w as we}from"./index.G3yBo0_P.js";import{e as me}from"./each.C7pZUaX1.js";import{p as _n}from"./ProgressBar.svelte_svelte_type_style_lang.7yc35pDe.js";import{s as ft,d as dt}from"./transitions.QBIMuVLc.js";import{b as bn}from"./SearchUtils.q3m09ZIX.js";const qt=!0;function gn(i){let e,t,n;const l=i[19].default,a=_e(l,i,i[18],null);return{c(){e=G("div"),a&&a.c(),this.h()},l(s){e=j(s,"DIV",{class:!0,"data-testid":!0});var o=q(e);a&&a.l(o),o.forEach(z),this.h()},h(){S(e,"class",t="accordion "+i[0]),S(e,"data-testid","accordion")},m(s,o){F(s,e,o),a&&a.m(e,null),n=!0},p(s,[o]){a&&a.p&&(!n||o&262144)&&be(a,l,s,s[18],n?Se(l,s[18],o,null):ge(s[18]),null),(!n||o&1&&t!==(t="accordion "+s[0]))&&S(e,"class",t)},i(s){n||(A(a,s),n=!0)},o(s){H(a,s),n=!1},d(s){s&&z(e),a&&a.d(s)}}}function Sn(i,e,t){let n,l;ve(i,_n,m=>t(20,l=m));let{$$slots:a={},$$scope:s}=e,{autocollapse:o=!1}=e,{width:r="w-full"}=e,{spacing:f="space-y-1"}=e,{disabled:u=!1}=e,{padding:b="py-2 px-4"}=e,{hover:P="hover:bg-primary-hover-token"}=e,{rounded:k="rounded-container-token"}=e,{caretOpen:d="rotate-180"}=e,{caretClosed:p=""}=e,{regionControl:R=""}=e,{regionPanel:y="space-y-4"}=e,{regionCaret:M=""}=e,{transitions:N=!l}=e,{transitionIn:K=ft}=e,{transitionInParams:w={duration:200}}=e,{transitionOut:O=ft}=e,{transitionOutParams:g={duration:200}}=e;const T=we(null);return x("active",T),x("autocollapse",o),x("disabled",u),x("padding",b),x("hover",P),x("rounded",k),x("caretOpen",d),x("caretClosed",p),x("regionControl",R),x("regionPanel",y),x("regionCaret",M),x("transitions",N),x("transitionIn",K),x("transitionInParams",w),x("transitionOut",O),x("transitionOutParams",g),i.$$set=m=>{t(22,e=Ve(Ve({},e),He(m))),"autocollapse"in m&&t(1,o=m.autocollapse),"width"in m&&t(2,r=m.width),"spacing"in m&&t(3,f=m.spacing),"disabled"in m&&t(4,u=m.disabled),"padding"in m&&t(5,b=m.padding),"hover"in m&&t(6,P=m.hover),"rounded"in m&&t(7,k=m.rounded),"caretOpen"in m&&t(8,d=m.caretOpen),"caretClosed"in m&&t(9,p=m.caretClosed),"regionControl"in m&&t(10,R=m.regionControl),"regionPanel"in m&&t(11,y=m.regionPanel),"regionCaret"in m&&t(12,M=m.regionCaret),"transitions"in m&&t(13,N=m.transitions),"transitionIn"in m&&t(14,K=m.transitionIn),"transitionInParams"in m&&t(15,w=m.transitionInParams),"transitionOut"in m&&t(16,O=m.transitionOut),"transitionOutParams"in m&&t(17,g=m.transitionOutParams),"$$scope"in m&&t(18,s=m.$$scope)},i.$$.update=()=>{t(0,n=`${r} ${f} ${e.class??""}`)},e=He(e),[n,o,r,f,u,b,P,k,d,p,R,y,M,N,K,w,O,g,s,a]}class vn extends ye{constructor(e){super(),Ce(this,e,Sn,gn,pe,{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})}}const kn=i=>({}),ht=i=>({}),zn=i=>({}),mt=i=>({}),Pn=i=>({}),_t=i=>({}),pn=i=>({}),bt=i=>({}),yn=i=>({}),gt=i=>({});function St(i){let e,t;const n=i[30].lead,l=_e(n,i,i[29],gt);return{c(){e=G("div"),l&&l.c(),this.h()},l(a){e=j(a,"DIV",{class:!0});var s=q(e);l&&l.l(s),s.forEach(z),this.h()},h(){S(e,"class","accordion-lead")},m(a,s){F(a,e,s),l&&l.m(e,null),t=!0},p(a,s){l&&l.p&&(!t||s[0]&536870912)&&be(l,n,a,a[29],t?Se(n,a[29],s,yn):ge(a[29]),gt)},i(a){t||(A(l,a),t=!0)},o(a){H(l,a),t=!1},d(a){a&&z(e),l&&l.d(a)}}}function Cn(i){let e;return{c(){e=ae("(summary)")},l(t){e=oe(t,"(summary)")},m(t,n){F(t,e,n)},d(t){t&&z(e)}}}function Rn(i){let e,t,n;return{c(){e=G("div"),t=new nt(!1),this.h()},l(l){e=j(l,"DIV",{class:!0});var a=q(e);t=lt(a,!1),a.forEach(z),this.h()},h(){t.a=null,S(e,"class",n="accordion-summary-caret "+i[11])},m(l,a){F(l,e,a),t.m(i[14],e)},p(l,a){a[0]&2048&&n!==(n="accordion-summary-caret "+l[11])&&S(e,"class",n)},i:ke,o:ke,d(l){l&&z(e)}}}function Dn(i){let e,t,n,l,a;const s=[On,In],o=[];function r(f,u){return f[8]?0:1}return t=r(i),n=o[t]=s[t](i),{c(){e=G("div"),n.c(),this.h()},l(f){e=j(f,"DIV",{class:!0});var u=q(e);n.l(u),u.forEach(z),this.h()},h(){S(e,"class",l="accordion-summary-icons "+i[10])},m(f,u){F(f,e,u),o[t].m(e,null),a=!0},p(f,u){let b=t;t=r(f),t===b?o[t].p(f,u):(de(),H(o[b],1,1,()=>{o[b]=null}),he(),n=o[t],n?n.p(f,u):(n=o[t]=s[t](f),n.c()),A(n,1),n.m(e,null)),(!a||u[0]&1024&&l!==(l="accordion-summary-icons "+f[10]))&&S(e,"class",l)},i(f){a||(A(n),a=!0)},o(f){H(n),a=!1},d(f){f&&z(e),o[t].d()}}}function In(i){let e;const t=i[30].iconOpen,n=_e(t,i,i[29],mt),l=n||En(i);return{c(){l&&l.c()},l(a){l&&l.l(a)},m(a,s){l&&l.m(a,s),e=!0},p(a,s){n&&n.p&&(!e||s[0]&536870912)&&be(n,t,a,a[29],e?Se(t,a[29],s,zn):ge(a[29]),mt)},i(a){e||(A(l,a),e=!0)},o(a){H(l,a),e=!1},d(a){l&&l.d(a)}}}function On(i){let e;const t=i[30].iconClosed,n=_e(t,i,i[29],_t),l=n||Mn(i);return{c(){l&&l.c()},l(a){l&&l.l(a)},m(a,s){l&&l.m(a,s),e=!0},p(a,s){n&&n.p&&(!e||s[0]&536870912)&&be(n,t,a,a[29],e?Se(t,a[29],s,Pn):ge(a[29]),_t)},i(a){e||(A(l,a),e=!0)},o(a){H(l,a),e=!1},d(a){l&&l.d(a)}}}function En(i){let e,t;return{c(){e=new nt(!1),t=re(),this.h()},l(n){e=lt(n,!1),t=re(),this.h()},h(){e.a=t},m(n,l){e.m(i[14],n,l),F(n,t,l)},p:ke,d(n){n&&(z(t),e.d())}}}function Mn(i){let e,t;return{c(){e=new nt(!1),t=re(),this.h()},l(n){e=lt(n,!1),t=re(),this.h()},h(){e.a=t},m(n,l){e.m(i[14],n,l),F(n,t,l)},p:ke,d(n){n&&(z(t),e.d())}}}function vt(i){let e,t,n,l,a,s,o;const r=i[30].content,f=_e(r,i,i[29],ht),u=f||Tn();return{c(){e=G("div"),u&&u.c(),this.h()},l(b){e=j(b,"DIV",{class:!0,id:!0,role:!0,"aria-hidden":!0,"aria-labelledby":!0});var P=q(e);u&&u.l(P),P.forEach(z),this.h()},h(){S(e,"class",t="accordion-panel "+i[9]),S(e,"id",n="accordion-panel-"+i[0]),S(e,"role","region"),S(e,"aria-hidden",l=!i[8]),S(e,"aria-labelledby",i[0])},m(b,P){F(b,e,P),u&&u.m(e,null),o=!0},p(b,P){i=b,f&&f.p&&(!o||P[0]&536870912)&&be(f,r,i,i[29],o?Se(r,i[29],P,kn):ge(i[29]),ht),(!o||P[0]&512&&t!==(t="accordion-panel "+i[9]))&&S(e,"class",t),(!o||P[0]&1&&n!==(n="accordion-panel-"+i[0]))&&S(e,"id",n),(!o||P[0]&256&&l!==(l=!i[8]))&&S(e,"aria-hidden",l),(!o||P[0]&1)&&S(e,"aria-labelledby",i[0])},i(b){o||(A(u,b),b&&cn(()=>{o&&(s&&s.end(1),a=hn(e,dt,{transition:i[4],params:i[5],enabled:i[3]}),a.start())}),o=!0)},o(b){H(u,b),a&&a.invalidate(),b&&(s=mn(e,dt,{transition:i[6],params:i[7],enabled:i[3]})),o=!1},d(b){b&&z(e),u&&u.d(b),b&&s&&s.end()}}}function Tn(i){let e;return{c(){e=ae("(content)")},l(t){e=oe(t,"(content)")},m(t,n){F(t,e,n)},d(t){t&&z(e)}}}function Bn(i){let e,t,n,l,a,s,o,r,f,u,b,P,k,d,p=i[16].lead&&St(i);const R=i[30].summary,y=_e(R,i,i[29],bt),M=y||Cn(),N=[Dn,Rn],K=[];function w(g,T){return g[16].iconClosed||g[16].iconOpen?0:1}s=w(i),o=K[s]=N[s](i);let O=i[8]&&vt(i);return{c(){e=G("div"),t=G("button"),p&&p.c(),n=te(),l=G("div"),M&&M.c(),a=te(),o.c(),u=te(),O&&O.c(),this.h()},l(g){e=j(g,"DIV",{class:!0,"data-testid":!0});var T=q(e);t=j(T,"BUTTON",{type:!0,class:!0,id:!0,"aria-expanded":!0,"aria-controls":!0});var m=q(t);p&&p.l(m),n=ne(m),l=j(m,"DIV",{class:!0});var L=q(l);M&&M.l(L),L.forEach(z),a=ne(m),o.l(m),m.forEach(z),u=ne(T),O&&O.l(T),T.forEach(z),this.h()},h(){S(l,"class","accordion-summary flex-1"),S(t,"type","button"),S(t,"class",r="accordion-control "+i[12]),S(t,"id",i[0]),S(t,"aria-expanded",i[8]),S(t,"aria-controls",f="accordion-panel-"+i[0]),t.disabled=i[2],S(e,"class",b="accordion-item "+i[13]),S(e,"data-testid","accordion-item")},m(g,T){F(g,e,T),W(e,t),p&&p.m(t,null),W(t,n),W(t,l),M&&M.m(l,null),W(t,a),K[s].m(t,null),W(e,u),O&&O.m(e,null),P=!0,k||(d=[ee(t,"click",i[15]),ee(t,"click",i[31]),ee(t,"keydown",i[32]),ee(t,"keyup",i[33]),ee(t,"keypress",i[34])],k=!0)},p(g,T){g[16].lead?p?(p.p(g,T),T[0]&65536&&A(p,1)):(p=St(g),p.c(),A(p,1),p.m(t,n)):p&&(de(),H(p,1,1,()=>{p=null}),he()),y&&y.p&&(!P||T[0]&536870912)&&be(y,R,g,g[29],P?Se(R,g[29],T,pn):ge(g[29]),bt);let m=s;s=w(g),s===m?K[s].p(g,T):(de(),H(K[m],1,1,()=>{K[m]=null}),he(),o=K[s],o?o.p(g,T):(o=K[s]=N[s](g),o.c()),A(o,1),o.m(t,null)),(!P||T[0]&4096&&r!==(r="accordion-control "+g[12]))&&S(t,"class",r),(!P||T[0]&1)&&S(t,"id",g[0]),(!P||T[0]&256)&&S(t,"aria-expanded",g[8]),(!P||T[0]&1&&f!==(f="accordion-panel-"+g[0]))&&S(t,"aria-controls",f),(!P||T[0]&4)&&(t.disabled=g[2]),g[8]?O?(O.p(g,T),T[0]&256&&A(O,1)):(O=vt(g),O.c(),A(O,1),O.m(e,null)):O&&(de(),H(O,1,1,()=>{O=null}),he()),(!P||T[0]&8192&&b!==(b="accordion-item "+g[13]))&&S(e,"class",b)},i(g){P||(A(p),A(M,g),A(o),A(O),P=!0)},o(g){H(p),H(M,g),H(o),H(O),P=!1},d(g){g&&z(e),p&&p.d(),M&&M.d(g),K[s].d(),O&&O.d(),k=!1,tt(d)}}}const Ln="",Nn="text-start w-full flex items-center space-x-4",kt="fill-current w-3 transition-transform duration-[200ms]",Fn="";function Un(i,e,t){let n,l,a,s,o,r,f,u,b=ke,P=()=>(b(),b=un(K,I=>t(28,u=I)),K);i.$$.on_destroy.push(()=>b());let{$$slots:k={},$$scope:d}=e;const p=rn(k),R=wt();let{open:y=!1}=e,{id:M=String(Math.random())}=e,{autocollapse:N=$("autocollapse")}=e,{active:K=$("active")}=e;P();let{disabled:w=$("disabled")}=e,{padding:O=$("padding")}=e,{hover:g=$("hover")}=e,{rounded:T=$("rounded")}=e,{caretOpen:m=$("caretOpen")}=e,{caretClosed:L=$("caretClosed")}=e,{regionControl:h=$("regionControl")}=e,{regionPanel:Z=$("regionPanel")}=e,{regionCaret:J=$("regionCaret")}=e,{transitions:ie=$("transitions")}=e,{transitionIn:V=$("transitionIn")}=e,{transitionInParams:fe=$("transitionInParams")}=e,{transitionOut:Ye=$("transitionOut")}=e,{transitionOutParams:Ee=$("transitionOutParams")}=e;const Qe=` - - - `;function Re(I){N===!0?K.set(M):t(17,y=!y),Ze(I)}function Ze(I){const Ie=N?u===M:y;R("toggle",{event:I,id:M,panelId:`accordion-panel-${M}`,open:Ie,autocollapse:N})}N&&y&&Re();function Me(I){Fe.call(this,i,I)}function Je(I){Fe.call(this,i,I)}function Te(I){Fe.call(this,i,I)}function De(I){Fe.call(this,i,I)}return i.$$set=I=>{t(37,e=Ve(Ve({},e),He(I))),"open"in I&&t(17,y=I.open),"id"in I&&t(0,M=I.id),"autocollapse"in I&&t(18,N=I.autocollapse),"active"in I&&P(t(1,K=I.active)),"disabled"in I&&t(2,w=I.disabled),"padding"in I&&t(19,O=I.padding),"hover"in I&&t(20,g=I.hover),"rounded"in I&&t(21,T=I.rounded),"caretOpen"in I&&t(22,m=I.caretOpen),"caretClosed"in I&&t(23,L=I.caretClosed),"regionControl"in I&&t(24,h=I.regionControl),"regionPanel"in I&&t(25,Z=I.regionPanel),"regionCaret"in I&&t(26,J=I.regionCaret),"transitions"in I&&t(3,ie=I.transitions),"transitionIn"in I&&t(4,V=I.transitionIn),"transitionInParams"in I&&t(5,fe=I.transitionInParams),"transitionOut"in I&&t(6,Ye=I.transitionOut),"transitionOutParams"in I&&t(7,Ee=I.transitionOutParams),"$$scope"in I&&t(29,d=I.$$scope)},i.$$.update=()=>{i.$$.dirty[0]&393216&&y&&N&&Re(),i.$$.dirty[0]&268828673&&t(8,n=N?u===M:y),t(13,l=`${Ln} ${e.class??""}`),i.$$.dirty[0]&20447232&&t(12,a=`${Nn} ${O} ${g} ${T} ${h}`),i.$$.dirty[0]&12583168&&t(27,s=n?m:L),i.$$.dirty[0]&201326592&&t(11,o=`${kt} ${J} ${s}`),i.$$.dirty[0]&67108864&&t(10,r=`${kt} ${J}`),i.$$.dirty[0]&36175872&&t(9,f=`${Fn} ${O} ${T} ${Z}`)},e=He(e),[M,K,w,ie,V,fe,Ye,Ee,n,f,r,o,a,l,Qe,Re,p,y,N,O,g,T,m,L,h,Z,J,s,u,d,k,Me,Je,Te,De]}class An extends ye{constructor(e){super(),Ce(this,e,Un,Bn,pe,{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 Ue(i){if(!i.endsWith("px"))return;const e=parseFloat(i.slice(0,i.length-2));return isNaN(e)?void 0:e}const Xt=i=>i?"height":"width",$e=i=>window.getComputedStyle(i),et=i=>i.getBoundingClientRect(),wn=(i,e=!0)=>{if(i.getPropertyValue("box-sizing")==="border-box")return;const t=Ue(i.getPropertyValue("border-left-width"));if(t===void 0){console.error("Splitpanes Error: Fail to parse container `border-left-width`.");return}const n=Ue(i.getPropertyValue("border-top-width"));if(n===void 0){console.error("Splitpanes Error: Fail to parse container `border-top-width`.");return}const l={left:t,top:n};if(e){const a=Ue(i.getPropertyValue("border-right-width"));if(a===void 0){console.error("Splitpanes Error: Fail to parse container `border-right-width`.");return}const s=Ue(i.getPropertyValue("border-bottom-width"));if(s===void 0){console.error("Splitpanes Error: Fail to parse container `border-bottom-width`.");return}const o=l;o.right=a,o.bottom=s}return l};function Vn(i,e){e||(e=$e(i));const t=et(i),n=wn(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 zt=(i,e)=>({left:i.left-e.left,top:i.top-e.top});function Pt(i){const e=i,t=i,{clientX:n,clientY:l}="ontouchstart"in window&&t.touches?t.touches[0]:e;return{left:n,top:l}}function pt(i,e,t,n){let l=0;for(let a=e;at(31,a=c));const J=we(k);ve(i,J,c=>t(30,l=c));const ie=we(void 0);ve(i,ie,c=>t(29,n=c));let V=null,fe=null;x(Yt,{showFirstSplitter:J,veryFirstPaneKey:ie,isHorizontal:Z,ssrRegisterPaneSize:void 0,onPaneInit:c=>(n===void 0&&Pe(ie,n=c,n),{undefinedPaneInitSize:0}),clientOnly:{onPaneAdd:Ee,onPaneRemove:Qe}});function Ee(c){let v=-1;Array.from(c.element.parentNode.children).some(_=>(_.className.includes("splitpanes__pane")&&v++,_===c.element)),v===0&&Pe(ie,n=c.key,n),h.splice(v,0,c);for(let _=0;_{c.isReady=!0,y("pane-add",{index:v,panes:ze()})});const E=(_,B=!0)=>D=>{(B||c.index>0)&&_(D,c)};return{onSplitterDown:E(Zt,!1),onSplitterClick:E(Jt,!1),onSplitterDblClick:E(it),onPaneClick:E(Re),reportGivenSizeChange:E(Ze)}}async function Qe(c){const v=h.findIndex(E=>E.key===c);if(v>=0){const E=h.splice(v,1)[0];for(let _=0;_0?h[0].key:void 0,n),N&&(await xe(),y("pane-remove",{removed:E,panes:ze()}))}}function Re(c,v){y("pane-click",v)}function Ze(c,v){v.setSz(c),xe()}Vt(()=>{ct(),rt();for(let c=0;c{t(6,w=!0)},0)}),Ht(()=>{N&&Te(),N=!1}),fn(()=>{ct()});function Me(c){if(P==="auto")try{return(c??$e(M)).direction==="rtl"}catch{}return P===!0}function Je(){document.body.style.cursor=Z?"col-resize":"row-resize",document.addEventListener("mousemove",Be,{passive:!1}),document.addEventListener("mouseup",Le),"ontouchstart"in window&&(document.addEventListener("touchmove",Be,{passive:!1}),document.addEventListener("touchend",Le))}function Te(){document.body.style.cursor="",document.removeEventListener("mousemove",Be),document.removeEventListener("mouseup",Le),"ontouchstart"in window&&(document.removeEventListener("touchmove",Be),document.removeEventListener("touchend",Le))}const De=c=>c.nodeType===Node.ELEMENT_NODE&&c.classList.contains("splitpanes__splitter");function I(c,v,E){let _=c[f?"top":"left"];return E&&!f&&(_=v-_),_}const Ie=()=>Xt(f);function Zt(c,v){t(7,O=!0),T=v.index,v.setSplitterActive(!0);let _=v.element;for(;_!=null&&(_=_.previousSibling,!De(_)););if(_==null){console.error("Splitpane Error: Active splitter wasn't found!");return}V=_;const B=Pt(c),D=et(V);fe=I(zt(B,D),D[Ie()],Me()),Je()}function Be(c){if(O){c.preventDefault(),t(8,g=!0);const v=Pt(c),E=$e(M),_=Vn(M,E),B=_[Ie()],D=Me(E),C=zt(v,_),U=I(C,B,D);$t(U,B),y("resize",ze())}}function Le(){g&&y("resized",ze()),t(7,O=!1),h[T].setSplitterActive(!1),setTimeout(()=>{t(8,g=!1),Te()},100)}function Jt(c,v){if("ontouchstart"in window){c.preventDefault();const E=v.index;b&&(m===E?(L&&clearTimeout(L),L=null,it(c,v),m=-1):(m=E,L=setTimeout(()=>{m=-1},500)))}g||y("splitter-click",v)}function it(c,v){if(b){const E=v.index;let _=0;for(let C=0;C=100)for(let C=0;C{const Q=X.min(),le=X.max(),se=Math.min(Math.max(0,C),le-Q);X.setSz(Q+se),C-=se};for(let X=E-1;X>=0;X--)U(h[X]);for(let X=E+1;Xh.map(c=>({min:c.min(),max:c.max(),size:c.sz(),snap:c.snap()}));function xt(c,v){const E=le=>et(le)[Ie()],_=E(V);let B=0,D=V.previousSibling;for(;D!=null;)De(D)&&(B+=E(D)),D=D.previousSibling;let C=0,U=V.nextSibling;for(;U!=null;)De(U)&&(C+=E(U)),U=U.nextSibling;const X=B+fe,Q=B+_+C;return(c-X)/(v-Q)*100}function $t(c,v){let E=T-1,_=h[E],B=T,D=h[B],C={prevPanesSize:at(E),nextPanesSize:ot(B),prevReachedMinPanes:0,nextReachedMinPanes:0};const U=0+(u?0:C.prevPanesSize),X=100-(u?0:C.nextPanesSize),Q=Math.max(Math.min(xt(c,v),X),U),le=C.prevPanesSize+_.min()+_.snap(),se=100-(C.nextPanesSize+D.min()+D.snap());let Y=Q,ce=!1;Q<=le?Q>C.prevPanesSize+_.min()&&(Y=Math.max(_.min()+C.prevPanesSize,100-(D.max()+C.nextPanesSize)),ce=!0):Q>=se&&Q<100-C.nextPanesSize-D.min()&&(Y=Math.min(100-(D.min()+C.nextPanesSize),_.max()+C.prevPanesSize),ce=!0);const Ne=_.max()<100&&Y>=_.max()+C.prevPanesSize,on=D.max()<100&&Y<=100-(D.max()+C.nextPanesSize);if(Ne||on)Ne?(_.setSz(_.max()),D.setSz(Math.max(100-_.max()-C.prevPanesSize-C.nextPanesSize,0))):(_.setSz(Math.max(100-D.max()-C.prevPanesSize-C.nextPanesSize,0)),D.setSz(D.max()));else{if(u&&!ce){const ut=en(C,Y);if(!ut)return;({sums:C,paneBeforeIndex:E,paneAfterIndex:B}=ut),_=h[E],D=h[B]}E!=null&&_.setSz(Math.min(Math.max(Y-C.prevPanesSize-C.prevReachedMinPanes,_.min()),_.max())),B!=null&&D.setSz(Math.min(Math.max(100-Y-C.nextPanesSize-C.nextReachedMinPanes,D.min()),D.max()))}}function en(c,v){const E=T-1;let _=E,B=E+1;if(v{D.setSz(D.min()),c.prevReachedMinPanes+=D.min()}),c.prevPanesSize=at(_),_==null))return c.prevReachedMinPanes=0,h[0].setSz(h[0].min()),Ae(h,1,E+1,D=>{D.setSz(D.min()),c.prevReachedMinPanes+=D.min()}),h[B].setSz(100-c.prevReachedMinPanes-h[0].min()-c.prevPanesSize-c.nextPanesSize),null;if(v>100-c.nextPanesSize-h[B].min()){B=nn(E)?.index,c.nextReachedMinPanes=0,B>E+1&&Ae(h,E+1,B,C=>{C.setSz(C.min()),c.nextReachedMinPanes+=C.min()}),c.nextPanesSize=ot(B);const D=h.length;if(B==null)return c.nextReachedMinPanes=0,h[D-1].setSz(h[D-1].min()),Ae(h,E+1,D-1,C=>{C.setSz(C.min()),c.nextReachedMinPanes+=C.min()}),h[_].setSz(100-c.prevPanesSize-c.nextReachedMinPanes-h[D-1].min()-c.nextPanesSize),null}return{sums:c,paneBeforeIndex:_,paneAfterIndex:B}}const st=c=>c.sz(),at=c=>pt(h,0,c,st),ot=c=>pt(h,c+1,h.length,st),tn=c=>[...h].reverse().find(v=>v.indexv.min()),nn=c=>h.find(v=>v.index>c+1&&v.sz()>v.min());async function xe(){K=!0,await dn(),K&&(rt(),K=!1)}function rt(){ln(),N&&y("resized",ze())}function ln(){if(h.length===0)return;const c=h.length;let v=100,E=0,_=0,B=0,D=[],C=[];for(let se=0;se=Y.max()&&D.push(Y),ce<=Y.min()&&C.push(Y)):_+=1:(v-=ce,E++,D.push(Y),C.push(Y))}const U=c-E,X=U-_;let Q,le;if(X>0?(Q=B/X,Q>.1&&v>.1?(B+=_*Q,le=v/B):(Q=0,le=1)):(Q=v/U,le=1),v+B>.1){v=100;for(let se=0;se.1&&(v=sn(v,D,C))}isFinite(v)?Math.abs(v)>.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 sn(c,v,E){const B=h.length-(c>0?v.length:E.length);if(B<=0)return c;const D=c/B;if(h.length===1)h[0].setSz(100),c=0;else for(let C=0;C0&&!v.includes(U)){const Q=Math.max(Math.min(X+D,U.max()),U.min()),le=Q-X;c-=le,U.setSz(Q)}else if(!E.includes(U)){const Q=Math.max(Math.min(X+D,U.max()),U.min()),le=Q-X;c-=le,U.setSz(Q)}}return c}function ct(){const{children:c}=M;let v=0,E=!1;for(let _=0;_ elements are allowed at the root of . One of your DOM nodes was removed.");return}else D&&(!E&&h[v].element!==B&&(E=!0),v++)}if(E){const _=[];for(let B=0;BX.element===D);U!=null?(U.index=_.length,_.push(U)):console.warn("Splitpanes: Internal error - found a elements which isn't tracked.")}}h=_,Pe(ie,n=h.length>0?h[0].key:void 0,n)}}function an(c){Ge[c?"unshift":"push"](()=>{M=c,t(5,M)})}return i.$$set=c=>{"id"in c&&t(0,r=c.id),"horizontal"in c&&t(1,f=c.horizontal),"pushOtherPanes"in c&&t(12,u=c.pushOtherPanes),"dblClickSplitter"in c&&t(13,b=c.dblClickSplitter),"rtl"in c&&t(14,P=c.rtl),"firstSplitter"in c&&t(15,k=c.firstSplitter),"style"in c&&t(2,d=c.style),"theme"in c&&t(3,p=c.theme),"class"in c&&t(4,R=c.class),"$$scope"in c&&t(18,o=c.$$scope)},i.$$.update=()=>{i.$$.dirty[0]&2&&Pe(Z,a=f,a),i.$$.dirty[0]&32768&&Pe(J,l=k,l)},[r,f,d,p,R,M,w,O,g,Z,J,ie,u,b,P,k,s,an,o]}class bl extends ye{constructor(e){super(),Ce(this,e,Gn,Hn,pe,{id:0,horizontal:1,pushOtherPanes:12,dblClickSplitter:13,rtl:14,firstSplitter:15,style:2,theme:3,class:4},null,[-1,-1,-1])}}const jn=(i,e)=>t=>{const n=i();n?.[e](t)},Kn=i=>jn.bind(null,i);function Wn(i){let e,t,n,l,a,s,o=(i[4]!==i[9]||i[5])&&yt(i);const r=i[20].default,f=_e(r,i,i[19],null);return{c(){o&&o.c(),e=te(),t=G("div"),f&&f.c(),this.h()},l(u){o&&o.l(u),e=ne(u),t=j(u,"DIV",{class:!0,style:!0});var b=q(t);f&&f.l(b),b.forEach(z),this.h()},h(){S(t,"class",n=`splitpanes__pane ${i[0]||""}`),S(t,"style",i[3])},m(u,b){o&&o.m(u,b),F(u,e,b),F(u,t,b),f&&f.m(t,null),i[21](t),l=!0,a||(s=ee(t,"click",i[11]("onPaneClick")),a=!0)},p(u,b){u[4]!==u[9]||u[5]?o?o.p(u,b):(o=yt(u),o.c(),o.m(e.parentNode,e)):o&&(o.d(1),o=null),f&&f.p&&(!l||b&524288)&&be(f,r,u,u[19],l?Se(r,u[19],b,null):ge(u[19]),null),(!l||b&1&&n!==(n=`splitpanes__pane ${u[0]||""}`))&&S(t,"class",n),(!l||b&8)&&S(t,"style",u[3])},i(u){l||(A(f,u),l=!0)},o(u){H(f,u),l=!1},d(u){u&&(z(e),z(t)),o&&o.d(u),f&&f.d(u),i[21](null),a=!1,s()}}}function yt(i){let e,t,n,l;return{c(){e=G("div"),this.h()},l(a){e=j(a,"DIV",{class:!0}),q(e).forEach(z),this.h()},h(){S(e,"class",t="splitpanes__splitter "+(i[2]?"splitpanes__splitter__active":""))},m(a,s){F(a,e,s),n||(l=[ee(e,"mousedown",i[11]("onSplitterDown")),ee(e,"touchstart",i[11]("onSplitterDown")),ee(e,"click",i[11]("onSplitterClick")),ee(e,"dblclick",i[11]("onSplitterDblClick"))],n=!0)},p(a,s){s&4&&t!==(t="splitpanes__splitter "+(a[2]?"splitpanes__splitter__active":""))&&S(e,"class",t)},d(a){a&&z(e),n=!1,tt(l)}}}function qn(i){let e,t,n=!i[10]&&Wn(i);return{c(){n&&n.c(),e=re()},l(l){n&&n.l(l),e=re()},m(l,a){n&&n.m(l,a),F(l,e,a),t=!0},p(l,[a]){l[10]||n.p(l,a)},i(l){t||(A(n),t=!0)},o(l){H(n),t=!1},d(l){l&&z(e),n&&n.d(l)}}}function Xn(i,e,t){let n,l,a,s,o,{$$slots:r={},$$scope:f}=e;const{ssrRegisterPaneSize:u,onPaneInit:b,clientOnly:P,isHorizontal:k,showFirstSplitter:d,veryFirstPaneKey:p}=$(Yt);ve(i,k,V=>t(18,a=V)),ve(i,d,V=>t(5,o=V)),ve(i,p,V=>t(4,s=V));let{size:R=null}=e,{minSize:y=0}=e,{maxSize:M=100}=e,{snapSize:N=0}=e,{class:K=""}=e;const w={},O=!qt,{undefinedPaneInitSize:g}=b(w);let T,m=R??g,L=!1,h;const Z=Kn(()=>h),J=V=>{V!=m&&Z("reportGivenSizeChange")(V)};Vt(()=>{const V={key:w,element:T,givenSize:R,sz:()=>m,setSz:fe=>{t(16,m=fe),R!=null&&R!=m&&t(12,R=m)},min:()=>y,max:()=>M,snap:()=>N,setSplitterActive:fe=>{t(2,L=fe)},isReady:!1};h=P.onPaneAdd(V)}),Ht(()=>{P.onPaneRemove(w)});function ie(V){Ge[V?"unshift":"push"](()=>{T=V,t(1,T)})}return i.$$set=V=>{"size"in V&&t(12,R=V.size),"minSize"in V&&t(13,y=V.minSize),"maxSize"in V&&t(14,M=V.maxSize),"snapSize"in V&&t(15,N=V.snapSize),"class"in V&&t(0,K=V.class),"$$scope"in V&&t(19,f=V.$$scope)},i.$$.update=()=>{i.$$.dirty&4096&&R!=null&&J(R),i.$$.dirty&262144&&t(17,n=Xt(a)),i.$$.dirty&196608&&t(3,l=`${n}: ${m}%;`)},[K,T,L,l,s,o,k,d,p,w,O,Z,R,y,M,N,m,n,a,f,r,ie]}class gl extends ye{constructor(e){super(),Ce(this,e,Xn,qn,pe,{size:12,minSize:13,maxSize:14,snapSize:15,class:0})}}function Ct(i,e,t){const n=i.slice();return n[11]=e[t],n}function Rt(i){let e,t,n;return{c(){e=G("input"),this.h()},l(l){e=j(l,"INPUT",{type:!0}),this.h()},h(){S(e,"type","checkbox")},m(l,a){F(l,e,a),e.checked=i[1][i[2].title],t||(n=ee(e,"change",i[9]),t=!0)},p(l,a){a&6&&(e.checked=l[1][l[2].title])},d(l){l&&z(e),t=!1,n()}}}function Yn(i){let e,t=i[2].teaser+"",n;return{c(){e=G("div"),n=ae(t),this.h()},l(l){e=j(l,"DIV",{class:!0});var a=q(e);n=oe(a,t),a.forEach(z),this.h()},h(){S(e,"class","annotation svelte-vfddhm")},m(l,a){F(l,e,a),W(e,n)},p(l,a){a&4&&t!==(t=l[2].teaser+"")&&Oe(n,t)},d(l){l&&z(e)}}}function Qn(i){let e,t=me(i[7].split(` -`)),n=[];for(let l=0;l100&&Ot(i);return{c(){e=G("div"),t=G("div"),n=G("label"),u&&u.c(),l=te(),s=ae(a),o=te(),k.c(),r=te(),d&&d.c(),f=te(),p&&p.c(),this.h()},l(R){e=j(R,"DIV",{class:!0});var y=q(e);t=j(y,"DIV",{class:!0});var M=q(t);n=j(M,"LABEL",{style:!0});var N=q(n);u&&u.l(N),l=ne(N),s=oe(N,a),N.forEach(z),M.forEach(z),o=ne(y),k.l(y),r=ne(y),d&&d.l(y),f=ne(y),p&&p.l(y),y.forEach(z),this.h()},h(){Gt(n,"cursor","pointer"),S(t,"class","title svelte-vfddhm"),S(e,"class","search-result svelte-vfddhm")},m(R,y){F(R,e,y),W(e,t),W(t,n),u&&u.m(n,null),W(n,l),W(n,s),W(e,o),k.m(e,null),W(e,r),d&&d.m(e,null),W(e,f),p&&p.m(e,null)},p(R,[y]){R[6]?u?u.p(R,y):(u=Rt(R),u.c(),u.m(n,l)):u&&(u.d(1),u=null),y&4&&a!==(a=R[2].title+"")&&Oe(s,a),P===(P=b(R))&&k?k.p(R,y):(k.d(1),k=P(R),k&&(k.c(),k.m(e,r))),R[4]&&R[5]?d?d.p(R,y):(d=It(R),d.c(),d.m(e,f)):d&&(d.d(1),d=null),R[7].length>100?p?p.p(R,y):(p=Ot(R),p.c(),p.m(e,null)):p&&(p.d(1),p=null)},i:ke,o:ke,d(R){R&&z(e),u&&u.d(),k.d(),d&&d.d(),p&&p.d()}}}function $n(i,e,t){let{value:n}=e,{showFullText:l=Array(10).fill(!1)}=e,{useSearchResult:a}=e,{index:s}=e,{enableDocumentDb:o=!1}=e,{documentDbUrl:r=""}=e,{enableSearchResultSelection:f=!1}=e,u="";function b(d){t(0,l[d]=!l[d],l)}function P(){a[n.title]=this.checked,t(1,a)}const k=()=>b(s);return i.$$set=d=>{"value"in d&&t(2,n=d.value),"showFullText"in d&&t(0,l=d.showFullText),"useSearchResult"in d&&t(1,a=d.useSearchResult),"index"in d&&t(3,s=d.index),"enableDocumentDb"in d&&t(4,o=d.enableDocumentDb),"documentDbUrl"in d&&t(5,r=d.documentDbUrl),"enableSearchResultSelection"in d&&t(6,f=d.enableSearchResultSelection)},i.$$.update=()=>{i.$$.dirty&4&&t(7,u=n?n.text_for_llm||n.text:"")},[l,a,n,s,o,r,f,u,b,P,k]}class Qt extends ye{constructor(e){super(),Ce(this,e,$n,xn,pe,{value:2,showFullText:0,useSearchResult:1,index:3,enableDocumentDb:4,documentDbUrl:5,enableSearchResultSelection:6})}}function Et(i,e,t){const n=i.slice();return n[31]=e[t],n[34]=e,n[33]=t,n}function Mt(i,e,t){const n=i.slice();return n[27]=e[t][0],n[28]=e[t][1],n}function Tt(i,e,t){const n=i.slice();return n[31]=e[t],n[32]=e,n[33]=t,n}function Bt(i){let e,t,n,l,a=i[3]?"Выбрано LLM":"Все результаты",s,o,r,f,u,b,P,k="Выбрать источники для LLM",d,p,R,y,M,N,K,w=i[2]&&Lt();return{c(){e=G("div"),t=G("button"),n=G("i"),l=ae(` \r - `),s=ae(a),f=te(),u=G("button"),w&&w.c(),b=te(),P=G("span"),P.textContent=k,p=te(),R=G("button"),y=ae("Группировать по типу"),this.h()},l(O){e=j(O,"DIV",{class:!0});var g=q(e);t=j(g,"BUTTON",{class:!0});var T=q(t);n=j(T,"I",{class:!0}),q(n).forEach(z),l=oe(T,` \r - `),s=oe(T,a),T.forEach(z),f=ne(g),u=j(g,"BUTTON",{class:!0});var m=q(u);w&&w.l(m),b=ne(m),P=j(m,"SPAN",{"data-svelte-h":!0}),jt(P)!=="svelte-u1xxg4"&&(P.textContent=k),m.forEach(z),p=ne(g),R=j(g,"BUTTON",{class:!0});var L=q(R);y=oe(L,"Группировать по типу"),L.forEach(z),g.forEach(z),this.h()},h(){S(n,"class","fa-solid fa-check"),S(t,"class",o="chip "+(i[3]?"variant-filled-primary":"variant-soft-primary")+" svelte-1egz4bg"),t.disabled=r=i[8].length==0,ue(t,"blinking",i[11]),S(u,"class",d="chip "+i[14]+" svelte-1egz4bg"),u.disabled=i[7],S(R,"class",M="chip "+i[13]+" svelte-1egz4bg"),S(e,"class","w-full flex space-x-2 items-center mb-4")},m(O,g){F(O,e,g),W(e,t),W(t,n),W(t,l),W(t,s),W(e,f),W(e,u),w&&w.m(u,null),W(u,b),W(u,P),W(e,p),W(e,R),W(R,y),N||(K=[ee(t,"click",i[17]),ee(u,"click",i[18]),ee(R,"click",i[19])],N=!0)},p(O,g){g[0]&8&&a!==(a=O[3]?"Выбрано LLM":"Все результаты")&&Oe(s,a),g[0]&8&&o!==(o="chip "+(O[3]?"variant-filled-primary":"variant-soft-primary")+" svelte-1egz4bg")&&S(t,"class",o),g[0]&256&&r!==(r=O[8].length==0)&&(t.disabled=r),g[0]&2056&&ue(t,"blinking",O[11]),O[2]?w||(w=Lt(),w.c(),w.m(u,b)):w&&(w.d(1),w=null),g[0]&16384&&d!==(d="chip "+O[14]+" svelte-1egz4bg")&&S(u,"class",d),g[0]&128&&(u.disabled=O[7]),g[0]&8192&&M!==(M="chip "+O[13]+" svelte-1egz4bg")&&S(R,"class",M)},d(O){O&&z(e),w&&w.d(),N=!1,tt(K)}}}function Lt(i){let e,t='';return{c(){e=G("span"),e.innerHTML=t},l(n){e=j(n,"SPAN",{"data-svelte-h":!0}),jt(e)!=="svelte-104b754"&&(e.innerHTML=t)},m(n,l){F(n,e,l)},d(n){n&&z(e)}}}function el(i){let e,t,n=me(i[9]),l=[];for(let s=0;sH(l[s],1,1,()=>{l[s]=null});return{c(){for(let s=0;sWt(e,"value",l)),{c(){Ke(e.$$.fragment)},l(s){We(e.$$.fragment,s)},m(s,o){qe(e,s,o),n=!0},p(s,o){i=s;const r={};o[0]&4&&(r.enableSearchResultSelection=i[2]),o[0]&1&&(r.useSearchResult=i[0]),o[0]&16&&(r.showFullText=i[4]),o[0]&32&&(r.enableDocumentDb=i[5]),o[0]&64&&(r.documentDbUrl=i[6]),!t&&o[0]&512&&(t=!0,r.value=i[31],Kt(()=>t=!1)),e.$set(r)},i(s){n||(A(e.$$.fragment,s),n=!0)},o(s){H(e.$$.fragment,s),n=!1},d(s){Xe(e,s)}}}function Ft(i){let e,t,n,l;return{c(){e=G("input"),this.h()},l(a){e=j(a,"INPUT",{type:!0,"data-doctype":!0}),this.h()},h(){S(e,"type","checkbox"),S(e,"data-doctype",t=i[27])},m(a,s){F(a,e,s),n||(l=ee(e,"click",i[15]),n=!0)},p(a,s){s[0]&4096&&t!==(t=a[27])&&S(e,"data-doctype",t)},d(a){a&&z(e),n=!1,l()}}}function nl(i){let e,t=i[2]&&Ft(i);return{c(){t&&t.c(),e=te()},l(n){t&&t.l(n),e=ne(n)},m(n,l){t&&t.m(n,l),F(n,e,l)},p(n,l){n[2]?t?t.p(n,l):(t=Ft(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},d(n){n&&z(e),t&&t.d(n)}}}function ll(i){let e=i[27]+"",t;return{c(){t=ae(e)},l(n){t=oe(n,e)},m(n,l){F(n,t,l)},p(n,l){l[0]&4096&&e!==(e=n[27]+"")&&Oe(t,e)},d(n){n&&z(t)}}}function Ut(i){let e,t,n;function l(s){i[20](s,i[31],i[32],i[33])}let a={index:i[33],enableSearchResultSelection:i[2],useSearchResult:i[0],showFullText:i[4],enableDocumentDb:i[5],documentDbUrl:i[6]};return i[31]!==void 0&&(a.value=i[31]),e=new Qt({props:a}),Ge.push(()=>Wt(e,"value",l)),{c(){Ke(e.$$.fragment)},l(s){We(e.$$.fragment,s)},m(s,o){qe(e,s,o),n=!0},p(s,o){i=s;const r={};o[0]&4&&(r.enableSearchResultSelection=i[2]),o[0]&1&&(r.useSearchResult=i[0]),o[0]&16&&(r.showFullText=i[4]),o[0]&32&&(r.enableDocumentDb=i[5]),o[0]&64&&(r.documentDbUrl=i[6]),!t&&o[0]&4096&&(t=!0,r.value=i[31],Kt(()=>t=!1)),e.$set(r)},i(s){n||(A(e.$$.fragment,s),n=!0)},o(s){H(e.$$.fragment,s),n=!1},d(s){Xe(e,s)}}}function il(i){let e,t,n=me(i[28]),l=[];for(let s=0;sH(l[s],1,1,()=>{l[s]=null});return{c(){for(let s=0;sH(l[s],1,1,()=>{l[s]=null});return{c(){for(let s=0;s0&&Bt(i);const f=[tl,el],u=[];function b(k,d){return k[10]&&k[12]?0:1}n=b(i),l=u[n]=f[n](i);let P=ol;return{c(){e=G("div"),r&&r.c(),t=te(),l.c(),a=te(),s=re(),this.h()},l(k){e=j(k,"DIV",{class:!0});var d=q(e);r&&r.l(d),t=ne(d),l.l(d),d.forEach(z),a=ne(k),s=re(),this.h()},h(){S(e,"class","search-results svelte-1egz4bg")},m(k,d){F(k,e,d),r&&r.m(e,null),W(e,t),u[n].m(e,null),F(k,a,d),F(k,s,d),o=!0},p(k,d){k[1]&&k[1].length>0?r?r.p(k,d):(r=Bt(k),r.c(),r.m(e,t)):r&&(r.d(1),r=null);let p=n;n=b(k),n===p?u[n].p(k,d):(de(),H(u[p],1,1,()=>{u[p]=null}),he(),l=u[n],l?l.p(k,d):(l=u[n]=f[n](k),l.c()),A(l,1),l.m(e,null))},i(k){o||(A(l),A(P),o=!0)},o(k){H(l),H(P),o=!1},d(k){k&&(z(e),z(a),z(s)),r&&r.d(),u[n].d()}}}let ol=!1;function rl(i,e,t){let n,l,{enableDocumentDb:a=!1}=e,{documentDbUrl:s=""}=e,{showFullText:o=Array(10).fill(!1)}=e,{useSearchResult:r}=e,{searchInTransactionLedger:f=!1}=e,{searchResults:u=[]}=e,{usedSearchResults:b=[]}=e,P=[],{enableSearchResultSelection:k=!1}=e,{showOnlyLlmUsed:d=!1}=e,p=!1;const R=()=>{t(11,p=!0),setTimeout(()=>{t(11,p=!1)},5e3)};let y=!1,M;const N=L=>L.reduce((h,Z)=>{const J=Z.docType||"Другие документы";return h[J]||(h[J]=[]),h[J].push(Z),h},{}),K=L=>{L.stopPropagation();const h=L.target.dataset.doctype;Object.keys(M[h]).forEach(Z=>{t(0,r[M[h][Z].title]=L.target.checked,r)})},w=()=>{t(3,d=!d)},O=()=>{t(2,k=!k)},g=()=>{t(10,y=!y)};function T(L,h,Z,J){Z[J]=L}function m(L,h,Z,J){Z[J]=L,t(9,P),t(10,y),t(3,d),t(8,b),t(1,u)}return i.$$set=L=>{"enableDocumentDb"in L&&t(5,a=L.enableDocumentDb),"documentDbUrl"in L&&t(6,s=L.documentDbUrl),"showFullText"in L&&t(4,o=L.showFullText),"useSearchResult"in L&&t(0,r=L.useSearchResult),"searchInTransactionLedger"in L&&t(7,f=L.searchInTransactionLedger),"searchResults"in L&&t(1,u=L.searchResults),"usedSearchResults"in L&&t(8,b=L.usedSearchResults),"enableSearchResultSelection"in L&&t(2,k=L.enableSearchResultSelection),"showOnlyLlmUsed"in L&&t(3,d=L.showOnlyLlmUsed)},i.$$.update=()=>{i.$$.dirty[0]&1536&&(y&&t(12,M=N(P)),t(9,P=bn.sortByRelevance(P))),i.$$.dirty[0]&1&&r===void 0&&t(0,r={}),i.$$.dirty[0]&4&&t(14,n=k?"variant-filled-primary":"variant-soft-primary"),i.$$.dirty[0]&1024&&t(13,l=y?"variant-filled-primary":"variant-soft-primary"),i.$$.dirty[0]&264&&t(3,d=b.length!==0&&d),i.$$.dirty[0]&266&&t(9,P=d?b:u)},[r,u,k,d,o,a,s,f,b,P,y,p,M,l,n,K,R,w,O,g,T,m]}class Sl extends ye{constructor(e){super(),Ce(this,e,rl,al,pe,{enableDocumentDb:5,documentDbUrl:6,showFullText:4,useSearchResult:0,searchInTransactionLedger:7,searchResults:1,usedSearchResults:8,enableSearchResultSelection:2,showOnlyLlmUsed:3,blinkButton:16},null,[-1,-1])}get blinkButton(){return this.$$.ctx[16]}}export{gl as P,bl as S,Sl as a}; diff --git a/build/client/_app/immutable/chunks/SearchResults.rE1CtIT_.js b/build/client/_app/immutable/chunks/SearchResults.rE1CtIT_.js deleted file mode 100644 index 49c2e4062a233d7c58f507e59dd64bf2332886f3..0000000000000000000000000000000000000000 --- a/build/client/_app/immutable/chunks/SearchResults.rE1CtIT_.js +++ /dev/null @@ -1,8 +0,0 @@ -import{b as pe,L as _e,e as G,d as j,f as q,i as z,u as S,k as F,M as be,N as ge,O as Se,o as ve,s as x,P as Ve,Q as He,c as te,j as ne,l as W,w as ee,r as tt,R as rn,ac as wt,g as $,X as cn,n as ke,ad as un,S as Fe,t as ae,h as oe,H as nt,C as lt,F as re,B as ue,A as Vt,ae as Ht,G as fn,aa as Pe,K as dn,p as Ge,I as Gt,m as Oe,y as je,q as jt,x as Kt}from"./scheduler.5WtVptCO.js";import{S as ye,i as Ce,a as A,t as H,g as de,f as he,h as hn,j as mn,c as Ke,d as We,m as qe,e as Xe,b as Wt}from"./index.7IiDzEZn.js";import{w as we}from"./index.G3yBo0_P.js";import{e as me}from"./each.C7pZUaX1.js";import{p as _n}from"./ProgressBar.svelte_svelte_type_style_lang.7yc35pDe.js";import{s as ft,d as dt}from"./transitions.QBIMuVLc.js";import{b as bn}from"./SearchUtils.uU3AU8rX.js";const qt=!0;function gn(i){let e,t,n;const l=i[19].default,a=_e(l,i,i[18],null);return{c(){e=G("div"),a&&a.c(),this.h()},l(s){e=j(s,"DIV",{class:!0,"data-testid":!0});var o=q(e);a&&a.l(o),o.forEach(z),this.h()},h(){S(e,"class",t="accordion "+i[0]),S(e,"data-testid","accordion")},m(s,o){F(s,e,o),a&&a.m(e,null),n=!0},p(s,[o]){a&&a.p&&(!n||o&262144)&&be(a,l,s,s[18],n?Se(l,s[18],o,null):ge(s[18]),null),(!n||o&1&&t!==(t="accordion "+s[0]))&&S(e,"class",t)},i(s){n||(A(a,s),n=!0)},o(s){H(a,s),n=!1},d(s){s&&z(e),a&&a.d(s)}}}function Sn(i,e,t){let n,l;ve(i,_n,m=>t(20,l=m));let{$$slots:a={},$$scope:s}=e,{autocollapse:o=!1}=e,{width:r="w-full"}=e,{spacing:f="space-y-1"}=e,{disabled:u=!1}=e,{padding:b="py-2 px-4"}=e,{hover:P="hover:bg-primary-hover-token"}=e,{rounded:k="rounded-container-token"}=e,{caretOpen:d="rotate-180"}=e,{caretClosed:p=""}=e,{regionControl:R=""}=e,{regionPanel:y="space-y-4"}=e,{regionCaret:M=""}=e,{transitions:N=!l}=e,{transitionIn:K=ft}=e,{transitionInParams:w={duration:200}}=e,{transitionOut:O=ft}=e,{transitionOutParams:g={duration:200}}=e;const T=we(null);return x("active",T),x("autocollapse",o),x("disabled",u),x("padding",b),x("hover",P),x("rounded",k),x("caretOpen",d),x("caretClosed",p),x("regionControl",R),x("regionPanel",y),x("regionCaret",M),x("transitions",N),x("transitionIn",K),x("transitionInParams",w),x("transitionOut",O),x("transitionOutParams",g),i.$$set=m=>{t(22,e=Ve(Ve({},e),He(m))),"autocollapse"in m&&t(1,o=m.autocollapse),"width"in m&&t(2,r=m.width),"spacing"in m&&t(3,f=m.spacing),"disabled"in m&&t(4,u=m.disabled),"padding"in m&&t(5,b=m.padding),"hover"in m&&t(6,P=m.hover),"rounded"in m&&t(7,k=m.rounded),"caretOpen"in m&&t(8,d=m.caretOpen),"caretClosed"in m&&t(9,p=m.caretClosed),"regionControl"in m&&t(10,R=m.regionControl),"regionPanel"in m&&t(11,y=m.regionPanel),"regionCaret"in m&&t(12,M=m.regionCaret),"transitions"in m&&t(13,N=m.transitions),"transitionIn"in m&&t(14,K=m.transitionIn),"transitionInParams"in m&&t(15,w=m.transitionInParams),"transitionOut"in m&&t(16,O=m.transitionOut),"transitionOutParams"in m&&t(17,g=m.transitionOutParams),"$$scope"in m&&t(18,s=m.$$scope)},i.$$.update=()=>{t(0,n=`${r} ${f} ${e.class??""}`)},e=He(e),[n,o,r,f,u,b,P,k,d,p,R,y,M,N,K,w,O,g,s,a]}class vn extends ye{constructor(e){super(),Ce(this,e,Sn,gn,pe,{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})}}const kn=i=>({}),ht=i=>({}),zn=i=>({}),mt=i=>({}),Pn=i=>({}),_t=i=>({}),pn=i=>({}),bt=i=>({}),yn=i=>({}),gt=i=>({});function St(i){let e,t;const n=i[30].lead,l=_e(n,i,i[29],gt);return{c(){e=G("div"),l&&l.c(),this.h()},l(a){e=j(a,"DIV",{class:!0});var s=q(e);l&&l.l(s),s.forEach(z),this.h()},h(){S(e,"class","accordion-lead")},m(a,s){F(a,e,s),l&&l.m(e,null),t=!0},p(a,s){l&&l.p&&(!t||s[0]&536870912)&&be(l,n,a,a[29],t?Se(n,a[29],s,yn):ge(a[29]),gt)},i(a){t||(A(l,a),t=!0)},o(a){H(l,a),t=!1},d(a){a&&z(e),l&&l.d(a)}}}function Cn(i){let e;return{c(){e=ae("(summary)")},l(t){e=oe(t,"(summary)")},m(t,n){F(t,e,n)},d(t){t&&z(e)}}}function Rn(i){let e,t,n;return{c(){e=G("div"),t=new nt(!1),this.h()},l(l){e=j(l,"DIV",{class:!0});var a=q(e);t=lt(a,!1),a.forEach(z),this.h()},h(){t.a=null,S(e,"class",n="accordion-summary-caret "+i[11])},m(l,a){F(l,e,a),t.m(i[14],e)},p(l,a){a[0]&2048&&n!==(n="accordion-summary-caret "+l[11])&&S(e,"class",n)},i:ke,o:ke,d(l){l&&z(e)}}}function Dn(i){let e,t,n,l,a;const s=[On,In],o=[];function r(f,u){return f[8]?0:1}return t=r(i),n=o[t]=s[t](i),{c(){e=G("div"),n.c(),this.h()},l(f){e=j(f,"DIV",{class:!0});var u=q(e);n.l(u),u.forEach(z),this.h()},h(){S(e,"class",l="accordion-summary-icons "+i[10])},m(f,u){F(f,e,u),o[t].m(e,null),a=!0},p(f,u){let b=t;t=r(f),t===b?o[t].p(f,u):(de(),H(o[b],1,1,()=>{o[b]=null}),he(),n=o[t],n?n.p(f,u):(n=o[t]=s[t](f),n.c()),A(n,1),n.m(e,null)),(!a||u[0]&1024&&l!==(l="accordion-summary-icons "+f[10]))&&S(e,"class",l)},i(f){a||(A(n),a=!0)},o(f){H(n),a=!1},d(f){f&&z(e),o[t].d()}}}function In(i){let e;const t=i[30].iconOpen,n=_e(t,i,i[29],mt),l=n||En(i);return{c(){l&&l.c()},l(a){l&&l.l(a)},m(a,s){l&&l.m(a,s),e=!0},p(a,s){n&&n.p&&(!e||s[0]&536870912)&&be(n,t,a,a[29],e?Se(t,a[29],s,zn):ge(a[29]),mt)},i(a){e||(A(l,a),e=!0)},o(a){H(l,a),e=!1},d(a){l&&l.d(a)}}}function On(i){let e;const t=i[30].iconClosed,n=_e(t,i,i[29],_t),l=n||Mn(i);return{c(){l&&l.c()},l(a){l&&l.l(a)},m(a,s){l&&l.m(a,s),e=!0},p(a,s){n&&n.p&&(!e||s[0]&536870912)&&be(n,t,a,a[29],e?Se(t,a[29],s,Pn):ge(a[29]),_t)},i(a){e||(A(l,a),e=!0)},o(a){H(l,a),e=!1},d(a){l&&l.d(a)}}}function En(i){let e,t;return{c(){e=new nt(!1),t=re(),this.h()},l(n){e=lt(n,!1),t=re(),this.h()},h(){e.a=t},m(n,l){e.m(i[14],n,l),F(n,t,l)},p:ke,d(n){n&&(z(t),e.d())}}}function Mn(i){let e,t;return{c(){e=new nt(!1),t=re(),this.h()},l(n){e=lt(n,!1),t=re(),this.h()},h(){e.a=t},m(n,l){e.m(i[14],n,l),F(n,t,l)},p:ke,d(n){n&&(z(t),e.d())}}}function vt(i){let e,t,n,l,a,s,o;const r=i[30].content,f=_e(r,i,i[29],ht),u=f||Tn();return{c(){e=G("div"),u&&u.c(),this.h()},l(b){e=j(b,"DIV",{class:!0,id:!0,role:!0,"aria-hidden":!0,"aria-labelledby":!0});var P=q(e);u&&u.l(P),P.forEach(z),this.h()},h(){S(e,"class",t="accordion-panel "+i[9]),S(e,"id",n="accordion-panel-"+i[0]),S(e,"role","region"),S(e,"aria-hidden",l=!i[8]),S(e,"aria-labelledby",i[0])},m(b,P){F(b,e,P),u&&u.m(e,null),o=!0},p(b,P){i=b,f&&f.p&&(!o||P[0]&536870912)&&be(f,r,i,i[29],o?Se(r,i[29],P,kn):ge(i[29]),ht),(!o||P[0]&512&&t!==(t="accordion-panel "+i[9]))&&S(e,"class",t),(!o||P[0]&1&&n!==(n="accordion-panel-"+i[0]))&&S(e,"id",n),(!o||P[0]&256&&l!==(l=!i[8]))&&S(e,"aria-hidden",l),(!o||P[0]&1)&&S(e,"aria-labelledby",i[0])},i(b){o||(A(u,b),b&&cn(()=>{o&&(s&&s.end(1),a=hn(e,dt,{transition:i[4],params:i[5],enabled:i[3]}),a.start())}),o=!0)},o(b){H(u,b),a&&a.invalidate(),b&&(s=mn(e,dt,{transition:i[6],params:i[7],enabled:i[3]})),o=!1},d(b){b&&z(e),u&&u.d(b),b&&s&&s.end()}}}function Tn(i){let e;return{c(){e=ae("(content)")},l(t){e=oe(t,"(content)")},m(t,n){F(t,e,n)},d(t){t&&z(e)}}}function Bn(i){let e,t,n,l,a,s,o,r,f,u,b,P,k,d,p=i[16].lead&&St(i);const R=i[30].summary,y=_e(R,i,i[29],bt),M=y||Cn(),N=[Dn,Rn],K=[];function w(g,T){return g[16].iconClosed||g[16].iconOpen?0:1}s=w(i),o=K[s]=N[s](i);let O=i[8]&&vt(i);return{c(){e=G("div"),t=G("button"),p&&p.c(),n=te(),l=G("div"),M&&M.c(),a=te(),o.c(),u=te(),O&&O.c(),this.h()},l(g){e=j(g,"DIV",{class:!0,"data-testid":!0});var T=q(e);t=j(T,"BUTTON",{type:!0,class:!0,id:!0,"aria-expanded":!0,"aria-controls":!0});var m=q(t);p&&p.l(m),n=ne(m),l=j(m,"DIV",{class:!0});var L=q(l);M&&M.l(L),L.forEach(z),a=ne(m),o.l(m),m.forEach(z),u=ne(T),O&&O.l(T),T.forEach(z),this.h()},h(){S(l,"class","accordion-summary flex-1"),S(t,"type","button"),S(t,"class",r="accordion-control "+i[12]),S(t,"id",i[0]),S(t,"aria-expanded",i[8]),S(t,"aria-controls",f="accordion-panel-"+i[0]),t.disabled=i[2],S(e,"class",b="accordion-item "+i[13]),S(e,"data-testid","accordion-item")},m(g,T){F(g,e,T),W(e,t),p&&p.m(t,null),W(t,n),W(t,l),M&&M.m(l,null),W(t,a),K[s].m(t,null),W(e,u),O&&O.m(e,null),P=!0,k||(d=[ee(t,"click",i[15]),ee(t,"click",i[31]),ee(t,"keydown",i[32]),ee(t,"keyup",i[33]),ee(t,"keypress",i[34])],k=!0)},p(g,T){g[16].lead?p?(p.p(g,T),T[0]&65536&&A(p,1)):(p=St(g),p.c(),A(p,1),p.m(t,n)):p&&(de(),H(p,1,1,()=>{p=null}),he()),y&&y.p&&(!P||T[0]&536870912)&&be(y,R,g,g[29],P?Se(R,g[29],T,pn):ge(g[29]),bt);let m=s;s=w(g),s===m?K[s].p(g,T):(de(),H(K[m],1,1,()=>{K[m]=null}),he(),o=K[s],o?o.p(g,T):(o=K[s]=N[s](g),o.c()),A(o,1),o.m(t,null)),(!P||T[0]&4096&&r!==(r="accordion-control "+g[12]))&&S(t,"class",r),(!P||T[0]&1)&&S(t,"id",g[0]),(!P||T[0]&256)&&S(t,"aria-expanded",g[8]),(!P||T[0]&1&&f!==(f="accordion-panel-"+g[0]))&&S(t,"aria-controls",f),(!P||T[0]&4)&&(t.disabled=g[2]),g[8]?O?(O.p(g,T),T[0]&256&&A(O,1)):(O=vt(g),O.c(),A(O,1),O.m(e,null)):O&&(de(),H(O,1,1,()=>{O=null}),he()),(!P||T[0]&8192&&b!==(b="accordion-item "+g[13]))&&S(e,"class",b)},i(g){P||(A(p),A(M,g),A(o),A(O),P=!0)},o(g){H(p),H(M,g),H(o),H(O),P=!1},d(g){g&&z(e),p&&p.d(),M&&M.d(g),K[s].d(),O&&O.d(),k=!1,tt(d)}}}const Ln="",Nn="text-start w-full flex items-center space-x-4",kt="fill-current w-3 transition-transform duration-[200ms]",Fn="";function Un(i,e,t){let n,l,a,s,o,r,f,u,b=ke,P=()=>(b(),b=un(K,I=>t(28,u=I)),K);i.$$.on_destroy.push(()=>b());let{$$slots:k={},$$scope:d}=e;const p=rn(k),R=wt();let{open:y=!1}=e,{id:M=String(Math.random())}=e,{autocollapse:N=$("autocollapse")}=e,{active:K=$("active")}=e;P();let{disabled:w=$("disabled")}=e,{padding:O=$("padding")}=e,{hover:g=$("hover")}=e,{rounded:T=$("rounded")}=e,{caretOpen:m=$("caretOpen")}=e,{caretClosed:L=$("caretClosed")}=e,{regionControl:h=$("regionControl")}=e,{regionPanel:Z=$("regionPanel")}=e,{regionCaret:J=$("regionCaret")}=e,{transitions:ie=$("transitions")}=e,{transitionIn:V=$("transitionIn")}=e,{transitionInParams:fe=$("transitionInParams")}=e,{transitionOut:Ye=$("transitionOut")}=e,{transitionOutParams:Ee=$("transitionOutParams")}=e;const Qe=` - - - `;function Re(I){N===!0?K.set(M):t(17,y=!y),Ze(I)}function Ze(I){const Ie=N?u===M:y;R("toggle",{event:I,id:M,panelId:`accordion-panel-${M}`,open:Ie,autocollapse:N})}N&&y&&Re();function Me(I){Fe.call(this,i,I)}function Je(I){Fe.call(this,i,I)}function Te(I){Fe.call(this,i,I)}function De(I){Fe.call(this,i,I)}return i.$$set=I=>{t(37,e=Ve(Ve({},e),He(I))),"open"in I&&t(17,y=I.open),"id"in I&&t(0,M=I.id),"autocollapse"in I&&t(18,N=I.autocollapse),"active"in I&&P(t(1,K=I.active)),"disabled"in I&&t(2,w=I.disabled),"padding"in I&&t(19,O=I.padding),"hover"in I&&t(20,g=I.hover),"rounded"in I&&t(21,T=I.rounded),"caretOpen"in I&&t(22,m=I.caretOpen),"caretClosed"in I&&t(23,L=I.caretClosed),"regionControl"in I&&t(24,h=I.regionControl),"regionPanel"in I&&t(25,Z=I.regionPanel),"regionCaret"in I&&t(26,J=I.regionCaret),"transitions"in I&&t(3,ie=I.transitions),"transitionIn"in I&&t(4,V=I.transitionIn),"transitionInParams"in I&&t(5,fe=I.transitionInParams),"transitionOut"in I&&t(6,Ye=I.transitionOut),"transitionOutParams"in I&&t(7,Ee=I.transitionOutParams),"$$scope"in I&&t(29,d=I.$$scope)},i.$$.update=()=>{i.$$.dirty[0]&393216&&y&&N&&Re(),i.$$.dirty[0]&268828673&&t(8,n=N?u===M:y),t(13,l=`${Ln} ${e.class??""}`),i.$$.dirty[0]&20447232&&t(12,a=`${Nn} ${O} ${g} ${T} ${h}`),i.$$.dirty[0]&12583168&&t(27,s=n?m:L),i.$$.dirty[0]&201326592&&t(11,o=`${kt} ${J} ${s}`),i.$$.dirty[0]&67108864&&t(10,r=`${kt} ${J}`),i.$$.dirty[0]&36175872&&t(9,f=`${Fn} ${O} ${T} ${Z}`)},e=He(e),[M,K,w,ie,V,fe,Ye,Ee,n,f,r,o,a,l,Qe,Re,p,y,N,O,g,T,m,L,h,Z,J,s,u,d,k,Me,Je,Te,De]}class An extends ye{constructor(e){super(),Ce(this,e,Un,Bn,pe,{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 Ue(i){if(!i.endsWith("px"))return;const e=parseFloat(i.slice(0,i.length-2));return isNaN(e)?void 0:e}const Xt=i=>i?"height":"width",$e=i=>window.getComputedStyle(i),et=i=>i.getBoundingClientRect(),wn=(i,e=!0)=>{if(i.getPropertyValue("box-sizing")==="border-box")return;const t=Ue(i.getPropertyValue("border-left-width"));if(t===void 0){console.error("Splitpanes Error: Fail to parse container `border-left-width`.");return}const n=Ue(i.getPropertyValue("border-top-width"));if(n===void 0){console.error("Splitpanes Error: Fail to parse container `border-top-width`.");return}const l={left:t,top:n};if(e){const a=Ue(i.getPropertyValue("border-right-width"));if(a===void 0){console.error("Splitpanes Error: Fail to parse container `border-right-width`.");return}const s=Ue(i.getPropertyValue("border-bottom-width"));if(s===void 0){console.error("Splitpanes Error: Fail to parse container `border-bottom-width`.");return}const o=l;o.right=a,o.bottom=s}return l};function Vn(i,e){e||(e=$e(i));const t=et(i),n=wn(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 zt=(i,e)=>({left:i.left-e.left,top:i.top-e.top});function Pt(i){const e=i,t=i,{clientX:n,clientY:l}="ontouchstart"in window&&t.touches?t.touches[0]:e;return{left:n,top:l}}function pt(i,e,t,n){let l=0;for(let a=e;at(31,a=c));const J=we(k);ve(i,J,c=>t(30,l=c));const ie=we(void 0);ve(i,ie,c=>t(29,n=c));let V=null,fe=null;x(Yt,{showFirstSplitter:J,veryFirstPaneKey:ie,isHorizontal:Z,ssrRegisterPaneSize:void 0,onPaneInit:c=>(n===void 0&&Pe(ie,n=c,n),{undefinedPaneInitSize:0}),clientOnly:{onPaneAdd:Ee,onPaneRemove:Qe}});function Ee(c){let v=-1;Array.from(c.element.parentNode.children).some(_=>(_.className.includes("splitpanes__pane")&&v++,_===c.element)),v===0&&Pe(ie,n=c.key,n),h.splice(v,0,c);for(let _=0;_{c.isReady=!0,y("pane-add",{index:v,panes:ze()})});const E=(_,B=!0)=>D=>{(B||c.index>0)&&_(D,c)};return{onSplitterDown:E(Zt,!1),onSplitterClick:E(Jt,!1),onSplitterDblClick:E(it),onPaneClick:E(Re),reportGivenSizeChange:E(Ze)}}async function Qe(c){const v=h.findIndex(E=>E.key===c);if(v>=0){const E=h.splice(v,1)[0];for(let _=0;_0?h[0].key:void 0,n),N&&(await xe(),y("pane-remove",{removed:E,panes:ze()}))}}function Re(c,v){y("pane-click",v)}function Ze(c,v){v.setSz(c),xe()}Vt(()=>{ct(),rt();for(let c=0;c{t(6,w=!0)},0)}),Ht(()=>{N&&Te(),N=!1}),fn(()=>{ct()});function Me(c){if(P==="auto")try{return(c??$e(M)).direction==="rtl"}catch{}return P===!0}function Je(){document.body.style.cursor=Z?"col-resize":"row-resize",document.addEventListener("mousemove",Be,{passive:!1}),document.addEventListener("mouseup",Le),"ontouchstart"in window&&(document.addEventListener("touchmove",Be,{passive:!1}),document.addEventListener("touchend",Le))}function Te(){document.body.style.cursor="",document.removeEventListener("mousemove",Be),document.removeEventListener("mouseup",Le),"ontouchstart"in window&&(document.removeEventListener("touchmove",Be),document.removeEventListener("touchend",Le))}const De=c=>c.nodeType===Node.ELEMENT_NODE&&c.classList.contains("splitpanes__splitter");function I(c,v,E){let _=c[f?"top":"left"];return E&&!f&&(_=v-_),_}const Ie=()=>Xt(f);function Zt(c,v){t(7,O=!0),T=v.index,v.setSplitterActive(!0);let _=v.element;for(;_!=null&&(_=_.previousSibling,!De(_)););if(_==null){console.error("Splitpane Error: Active splitter wasn't found!");return}V=_;const B=Pt(c),D=et(V);fe=I(zt(B,D),D[Ie()],Me()),Je()}function Be(c){if(O){c.preventDefault(),t(8,g=!0);const v=Pt(c),E=$e(M),_=Vn(M,E),B=_[Ie()],D=Me(E),C=zt(v,_),U=I(C,B,D);$t(U,B),y("resize",ze())}}function Le(){g&&y("resized",ze()),t(7,O=!1),h[T].setSplitterActive(!1),setTimeout(()=>{t(8,g=!1),Te()},100)}function Jt(c,v){if("ontouchstart"in window){c.preventDefault();const E=v.index;b&&(m===E?(L&&clearTimeout(L),L=null,it(c,v),m=-1):(m=E,L=setTimeout(()=>{m=-1},500)))}g||y("splitter-click",v)}function it(c,v){if(b){const E=v.index;let _=0;for(let C=0;C=100)for(let C=0;C{const Q=X.min(),le=X.max(),se=Math.min(Math.max(0,C),le-Q);X.setSz(Q+se),C-=se};for(let X=E-1;X>=0;X--)U(h[X]);for(let X=E+1;Xh.map(c=>({min:c.min(),max:c.max(),size:c.sz(),snap:c.snap()}));function xt(c,v){const E=le=>et(le)[Ie()],_=E(V);let B=0,D=V.previousSibling;for(;D!=null;)De(D)&&(B+=E(D)),D=D.previousSibling;let C=0,U=V.nextSibling;for(;U!=null;)De(U)&&(C+=E(U)),U=U.nextSibling;const X=B+fe,Q=B+_+C;return(c-X)/(v-Q)*100}function $t(c,v){let E=T-1,_=h[E],B=T,D=h[B],C={prevPanesSize:at(E),nextPanesSize:ot(B),prevReachedMinPanes:0,nextReachedMinPanes:0};const U=0+(u?0:C.prevPanesSize),X=100-(u?0:C.nextPanesSize),Q=Math.max(Math.min(xt(c,v),X),U),le=C.prevPanesSize+_.min()+_.snap(),se=100-(C.nextPanesSize+D.min()+D.snap());let Y=Q,ce=!1;Q<=le?Q>C.prevPanesSize+_.min()&&(Y=Math.max(_.min()+C.prevPanesSize,100-(D.max()+C.nextPanesSize)),ce=!0):Q>=se&&Q<100-C.nextPanesSize-D.min()&&(Y=Math.min(100-(D.min()+C.nextPanesSize),_.max()+C.prevPanesSize),ce=!0);const Ne=_.max()<100&&Y>=_.max()+C.prevPanesSize,on=D.max()<100&&Y<=100-(D.max()+C.nextPanesSize);if(Ne||on)Ne?(_.setSz(_.max()),D.setSz(Math.max(100-_.max()-C.prevPanesSize-C.nextPanesSize,0))):(_.setSz(Math.max(100-D.max()-C.prevPanesSize-C.nextPanesSize,0)),D.setSz(D.max()));else{if(u&&!ce){const ut=en(C,Y);if(!ut)return;({sums:C,paneBeforeIndex:E,paneAfterIndex:B}=ut),_=h[E],D=h[B]}E!=null&&_.setSz(Math.min(Math.max(Y-C.prevPanesSize-C.prevReachedMinPanes,_.min()),_.max())),B!=null&&D.setSz(Math.min(Math.max(100-Y-C.nextPanesSize-C.nextReachedMinPanes,D.min()),D.max()))}}function en(c,v){const E=T-1;let _=E,B=E+1;if(v{D.setSz(D.min()),c.prevReachedMinPanes+=D.min()}),c.prevPanesSize=at(_),_==null))return c.prevReachedMinPanes=0,h[0].setSz(h[0].min()),Ae(h,1,E+1,D=>{D.setSz(D.min()),c.prevReachedMinPanes+=D.min()}),h[B].setSz(100-c.prevReachedMinPanes-h[0].min()-c.prevPanesSize-c.nextPanesSize),null;if(v>100-c.nextPanesSize-h[B].min()){B=nn(E)?.index,c.nextReachedMinPanes=0,B>E+1&&Ae(h,E+1,B,C=>{C.setSz(C.min()),c.nextReachedMinPanes+=C.min()}),c.nextPanesSize=ot(B);const D=h.length;if(B==null)return c.nextReachedMinPanes=0,h[D-1].setSz(h[D-1].min()),Ae(h,E+1,D-1,C=>{C.setSz(C.min()),c.nextReachedMinPanes+=C.min()}),h[_].setSz(100-c.prevPanesSize-c.nextReachedMinPanes-h[D-1].min()-c.nextPanesSize),null}return{sums:c,paneBeforeIndex:_,paneAfterIndex:B}}const st=c=>c.sz(),at=c=>pt(h,0,c,st),ot=c=>pt(h,c+1,h.length,st),tn=c=>[...h].reverse().find(v=>v.indexv.min()),nn=c=>h.find(v=>v.index>c+1&&v.sz()>v.min());async function xe(){K=!0,await dn(),K&&(rt(),K=!1)}function rt(){ln(),N&&y("resized",ze())}function ln(){if(h.length===0)return;const c=h.length;let v=100,E=0,_=0,B=0,D=[],C=[];for(let se=0;se=Y.max()&&D.push(Y),ce<=Y.min()&&C.push(Y)):_+=1:(v-=ce,E++,D.push(Y),C.push(Y))}const U=c-E,X=U-_;let Q,le;if(X>0?(Q=B/X,Q>.1&&v>.1?(B+=_*Q,le=v/B):(Q=0,le=1)):(Q=v/U,le=1),v+B>.1){v=100;for(let se=0;se.1&&(v=sn(v,D,C))}isFinite(v)?Math.abs(v)>.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 sn(c,v,E){const B=h.length-(c>0?v.length:E.length);if(B<=0)return c;const D=c/B;if(h.length===1)h[0].setSz(100),c=0;else for(let C=0;C0&&!v.includes(U)){const Q=Math.max(Math.min(X+D,U.max()),U.min()),le=Q-X;c-=le,U.setSz(Q)}else if(!E.includes(U)){const Q=Math.max(Math.min(X+D,U.max()),U.min()),le=Q-X;c-=le,U.setSz(Q)}}return c}function ct(){const{children:c}=M;let v=0,E=!1;for(let _=0;_ elements are allowed at the root of . One of your DOM nodes was removed.");return}else D&&(!E&&h[v].element!==B&&(E=!0),v++)}if(E){const _=[];for(let B=0;BX.element===D);U!=null?(U.index=_.length,_.push(U)):console.warn("Splitpanes: Internal error - found a elements which isn't tracked.")}}h=_,Pe(ie,n=h.length>0?h[0].key:void 0,n)}}function an(c){Ge[c?"unshift":"push"](()=>{M=c,t(5,M)})}return i.$$set=c=>{"id"in c&&t(0,r=c.id),"horizontal"in c&&t(1,f=c.horizontal),"pushOtherPanes"in c&&t(12,u=c.pushOtherPanes),"dblClickSplitter"in c&&t(13,b=c.dblClickSplitter),"rtl"in c&&t(14,P=c.rtl),"firstSplitter"in c&&t(15,k=c.firstSplitter),"style"in c&&t(2,d=c.style),"theme"in c&&t(3,p=c.theme),"class"in c&&t(4,R=c.class),"$$scope"in c&&t(18,o=c.$$scope)},i.$$.update=()=>{i.$$.dirty[0]&2&&Pe(Z,a=f,a),i.$$.dirty[0]&32768&&Pe(J,l=k,l)},[r,f,d,p,R,M,w,O,g,Z,J,ie,u,b,P,k,s,an,o]}class bl extends ye{constructor(e){super(),Ce(this,e,Gn,Hn,pe,{id:0,horizontal:1,pushOtherPanes:12,dblClickSplitter:13,rtl:14,firstSplitter:15,style:2,theme:3,class:4},null,[-1,-1,-1])}}const jn=(i,e)=>t=>{const n=i();n?.[e](t)},Kn=i=>jn.bind(null,i);function Wn(i){let e,t,n,l,a,s,o=(i[4]!==i[9]||i[5])&&yt(i);const r=i[20].default,f=_e(r,i,i[19],null);return{c(){o&&o.c(),e=te(),t=G("div"),f&&f.c(),this.h()},l(u){o&&o.l(u),e=ne(u),t=j(u,"DIV",{class:!0,style:!0});var b=q(t);f&&f.l(b),b.forEach(z),this.h()},h(){S(t,"class",n=`splitpanes__pane ${i[0]||""}`),S(t,"style",i[3])},m(u,b){o&&o.m(u,b),F(u,e,b),F(u,t,b),f&&f.m(t,null),i[21](t),l=!0,a||(s=ee(t,"click",i[11]("onPaneClick")),a=!0)},p(u,b){u[4]!==u[9]||u[5]?o?o.p(u,b):(o=yt(u),o.c(),o.m(e.parentNode,e)):o&&(o.d(1),o=null),f&&f.p&&(!l||b&524288)&&be(f,r,u,u[19],l?Se(r,u[19],b,null):ge(u[19]),null),(!l||b&1&&n!==(n=`splitpanes__pane ${u[0]||""}`))&&S(t,"class",n),(!l||b&8)&&S(t,"style",u[3])},i(u){l||(A(f,u),l=!0)},o(u){H(f,u),l=!1},d(u){u&&(z(e),z(t)),o&&o.d(u),f&&f.d(u),i[21](null),a=!1,s()}}}function yt(i){let e,t,n,l;return{c(){e=G("div"),this.h()},l(a){e=j(a,"DIV",{class:!0}),q(e).forEach(z),this.h()},h(){S(e,"class",t="splitpanes__splitter "+(i[2]?"splitpanes__splitter__active":""))},m(a,s){F(a,e,s),n||(l=[ee(e,"mousedown",i[11]("onSplitterDown")),ee(e,"touchstart",i[11]("onSplitterDown")),ee(e,"click",i[11]("onSplitterClick")),ee(e,"dblclick",i[11]("onSplitterDblClick"))],n=!0)},p(a,s){s&4&&t!==(t="splitpanes__splitter "+(a[2]?"splitpanes__splitter__active":""))&&S(e,"class",t)},d(a){a&&z(e),n=!1,tt(l)}}}function qn(i){let e,t,n=!i[10]&&Wn(i);return{c(){n&&n.c(),e=re()},l(l){n&&n.l(l),e=re()},m(l,a){n&&n.m(l,a),F(l,e,a),t=!0},p(l,[a]){l[10]||n.p(l,a)},i(l){t||(A(n),t=!0)},o(l){H(n),t=!1},d(l){l&&z(e),n&&n.d(l)}}}function Xn(i,e,t){let n,l,a,s,o,{$$slots:r={},$$scope:f}=e;const{ssrRegisterPaneSize:u,onPaneInit:b,clientOnly:P,isHorizontal:k,showFirstSplitter:d,veryFirstPaneKey:p}=$(Yt);ve(i,k,V=>t(18,a=V)),ve(i,d,V=>t(5,o=V)),ve(i,p,V=>t(4,s=V));let{size:R=null}=e,{minSize:y=0}=e,{maxSize:M=100}=e,{snapSize:N=0}=e,{class:K=""}=e;const w={},O=!qt,{undefinedPaneInitSize:g}=b(w);let T,m=R??g,L=!1,h;const Z=Kn(()=>h),J=V=>{V!=m&&Z("reportGivenSizeChange")(V)};Vt(()=>{const V={key:w,element:T,givenSize:R,sz:()=>m,setSz:fe=>{t(16,m=fe),R!=null&&R!=m&&t(12,R=m)},min:()=>y,max:()=>M,snap:()=>N,setSplitterActive:fe=>{t(2,L=fe)},isReady:!1};h=P.onPaneAdd(V)}),Ht(()=>{P.onPaneRemove(w)});function ie(V){Ge[V?"unshift":"push"](()=>{T=V,t(1,T)})}return i.$$set=V=>{"size"in V&&t(12,R=V.size),"minSize"in V&&t(13,y=V.minSize),"maxSize"in V&&t(14,M=V.maxSize),"snapSize"in V&&t(15,N=V.snapSize),"class"in V&&t(0,K=V.class),"$$scope"in V&&t(19,f=V.$$scope)},i.$$.update=()=>{i.$$.dirty&4096&&R!=null&&J(R),i.$$.dirty&262144&&t(17,n=Xt(a)),i.$$.dirty&196608&&t(3,l=`${n}: ${m}%;`)},[K,T,L,l,s,o,k,d,p,w,O,Z,R,y,M,N,m,n,a,f,r,ie]}class gl extends ye{constructor(e){super(),Ce(this,e,Xn,qn,pe,{size:12,minSize:13,maxSize:14,snapSize:15,class:0})}}function Ct(i,e,t){const n=i.slice();return n[11]=e[t],n}function Rt(i){let e,t,n;return{c(){e=G("input"),this.h()},l(l){e=j(l,"INPUT",{type:!0}),this.h()},h(){S(e,"type","checkbox")},m(l,a){F(l,e,a),e.checked=i[1][i[2].title],t||(n=ee(e,"change",i[9]),t=!0)},p(l,a){a&6&&(e.checked=l[1][l[2].title])},d(l){l&&z(e),t=!1,n()}}}function Yn(i){let e,t=i[2].teaser+"",n;return{c(){e=G("div"),n=ae(t),this.h()},l(l){e=j(l,"DIV",{class:!0});var a=q(e);n=oe(a,t),a.forEach(z),this.h()},h(){S(e,"class","annotation svelte-vfddhm")},m(l,a){F(l,e,a),W(e,n)},p(l,a){a&4&&t!==(t=l[2].teaser+"")&&Oe(n,t)},d(l){l&&z(e)}}}function Qn(i){let e,t=me(i[7].split(` -`)),n=[];for(let l=0;l100&&Ot(i);return{c(){e=G("div"),t=G("div"),n=G("label"),u&&u.c(),l=te(),s=ae(a),o=te(),k.c(),r=te(),d&&d.c(),f=te(),p&&p.c(),this.h()},l(R){e=j(R,"DIV",{class:!0});var y=q(e);t=j(y,"DIV",{class:!0});var M=q(t);n=j(M,"LABEL",{style:!0});var N=q(n);u&&u.l(N),l=ne(N),s=oe(N,a),N.forEach(z),M.forEach(z),o=ne(y),k.l(y),r=ne(y),d&&d.l(y),f=ne(y),p&&p.l(y),y.forEach(z),this.h()},h(){Gt(n,"cursor","pointer"),S(t,"class","title svelte-vfddhm"),S(e,"class","search-result svelte-vfddhm")},m(R,y){F(R,e,y),W(e,t),W(t,n),u&&u.m(n,null),W(n,l),W(n,s),W(e,o),k.m(e,null),W(e,r),d&&d.m(e,null),W(e,f),p&&p.m(e,null)},p(R,[y]){R[6]?u?u.p(R,y):(u=Rt(R),u.c(),u.m(n,l)):u&&(u.d(1),u=null),y&4&&a!==(a=R[2].title+"")&&Oe(s,a),P===(P=b(R))&&k?k.p(R,y):(k.d(1),k=P(R),k&&(k.c(),k.m(e,r))),R[4]&&R[5]?d?d.p(R,y):(d=It(R),d.c(),d.m(e,f)):d&&(d.d(1),d=null),R[7].length>100?p?p.p(R,y):(p=Ot(R),p.c(),p.m(e,null)):p&&(p.d(1),p=null)},i:ke,o:ke,d(R){R&&z(e),u&&u.d(),k.d(),d&&d.d(),p&&p.d()}}}function $n(i,e,t){let{value:n}=e,{showFullText:l=Array(10).fill(!1)}=e,{useSearchResult:a}=e,{index:s}=e,{enableDocumentDb:o=!1}=e,{documentDbUrl:r=""}=e,{enableSearchResultSelection:f=!1}=e,u="";function b(d){t(0,l[d]=!l[d],l)}function P(){a[n.title]=this.checked,t(1,a)}const k=()=>b(s);return i.$$set=d=>{"value"in d&&t(2,n=d.value),"showFullText"in d&&t(0,l=d.showFullText),"useSearchResult"in d&&t(1,a=d.useSearchResult),"index"in d&&t(3,s=d.index),"enableDocumentDb"in d&&t(4,o=d.enableDocumentDb),"documentDbUrl"in d&&t(5,r=d.documentDbUrl),"enableSearchResultSelection"in d&&t(6,f=d.enableSearchResultSelection)},i.$$.update=()=>{i.$$.dirty&4&&t(7,u=n?n.text_for_llm||n.text:"")},[l,a,n,s,o,r,f,u,b,P,k]}class Qt extends ye{constructor(e){super(),Ce(this,e,$n,xn,pe,{value:2,showFullText:0,useSearchResult:1,index:3,enableDocumentDb:4,documentDbUrl:5,enableSearchResultSelection:6})}}function Et(i,e,t){const n=i.slice();return n[31]=e[t],n[34]=e,n[33]=t,n}function Mt(i,e,t){const n=i.slice();return n[27]=e[t][0],n[28]=e[t][1],n}function Tt(i,e,t){const n=i.slice();return n[31]=e[t],n[32]=e,n[33]=t,n}function Bt(i){let e,t,n,l,a=i[3]?"Выбрано LLM":"Все результаты",s,o,r,f,u,b,P,k="Выбрать источники для LLM",d,p,R,y,M,N,K,w=i[2]&&Lt();return{c(){e=G("div"),t=G("button"),n=G("i"),l=ae(` \r - `),s=ae(a),f=te(),u=G("button"),w&&w.c(),b=te(),P=G("span"),P.textContent=k,p=te(),R=G("button"),y=ae("Группировать по типу"),this.h()},l(O){e=j(O,"DIV",{class:!0});var g=q(e);t=j(g,"BUTTON",{class:!0});var T=q(t);n=j(T,"I",{class:!0}),q(n).forEach(z),l=oe(T,` \r - `),s=oe(T,a),T.forEach(z),f=ne(g),u=j(g,"BUTTON",{class:!0});var m=q(u);w&&w.l(m),b=ne(m),P=j(m,"SPAN",{"data-svelte-h":!0}),jt(P)!=="svelte-u1xxg4"&&(P.textContent=k),m.forEach(z),p=ne(g),R=j(g,"BUTTON",{class:!0});var L=q(R);y=oe(L,"Группировать по типу"),L.forEach(z),g.forEach(z),this.h()},h(){S(n,"class","fa-solid fa-check"),S(t,"class",o="chip "+(i[3]?"variant-filled-primary":"variant-soft-primary")+" svelte-1egz4bg"),t.disabled=r=i[8].length==0,ue(t,"blinking",i[11]),S(u,"class",d="chip "+i[14]+" svelte-1egz4bg"),u.disabled=i[7],S(R,"class",M="chip "+i[13]+" svelte-1egz4bg"),S(e,"class","w-full flex space-x-2 items-center mb-4")},m(O,g){F(O,e,g),W(e,t),W(t,n),W(t,l),W(t,s),W(e,f),W(e,u),w&&w.m(u,null),W(u,b),W(u,P),W(e,p),W(e,R),W(R,y),N||(K=[ee(t,"click",i[17]),ee(u,"click",i[18]),ee(R,"click",i[19])],N=!0)},p(O,g){g[0]&8&&a!==(a=O[3]?"Выбрано LLM":"Все результаты")&&Oe(s,a),g[0]&8&&o!==(o="chip "+(O[3]?"variant-filled-primary":"variant-soft-primary")+" svelte-1egz4bg")&&S(t,"class",o),g[0]&256&&r!==(r=O[8].length==0)&&(t.disabled=r),g[0]&2056&&ue(t,"blinking",O[11]),O[2]?w||(w=Lt(),w.c(),w.m(u,b)):w&&(w.d(1),w=null),g[0]&16384&&d!==(d="chip "+O[14]+" svelte-1egz4bg")&&S(u,"class",d),g[0]&128&&(u.disabled=O[7]),g[0]&8192&&M!==(M="chip "+O[13]+" svelte-1egz4bg")&&S(R,"class",M)},d(O){O&&z(e),w&&w.d(),N=!1,tt(K)}}}function Lt(i){let e,t='';return{c(){e=G("span"),e.innerHTML=t},l(n){e=j(n,"SPAN",{"data-svelte-h":!0}),jt(e)!=="svelte-104b754"&&(e.innerHTML=t)},m(n,l){F(n,e,l)},d(n){n&&z(e)}}}function el(i){let e,t,n=me(i[9]),l=[];for(let s=0;sH(l[s],1,1,()=>{l[s]=null});return{c(){for(let s=0;sWt(e,"value",l)),{c(){Ke(e.$$.fragment)},l(s){We(e.$$.fragment,s)},m(s,o){qe(e,s,o),n=!0},p(s,o){i=s;const r={};o[0]&4&&(r.enableSearchResultSelection=i[2]),o[0]&1&&(r.useSearchResult=i[0]),o[0]&16&&(r.showFullText=i[4]),o[0]&32&&(r.enableDocumentDb=i[5]),o[0]&64&&(r.documentDbUrl=i[6]),!t&&o[0]&512&&(t=!0,r.value=i[31],Kt(()=>t=!1)),e.$set(r)},i(s){n||(A(e.$$.fragment,s),n=!0)},o(s){H(e.$$.fragment,s),n=!1},d(s){Xe(e,s)}}}function Ft(i){let e,t,n,l;return{c(){e=G("input"),this.h()},l(a){e=j(a,"INPUT",{type:!0,"data-doctype":!0}),this.h()},h(){S(e,"type","checkbox"),S(e,"data-doctype",t=i[27])},m(a,s){F(a,e,s),n||(l=ee(e,"click",i[15]),n=!0)},p(a,s){s[0]&4096&&t!==(t=a[27])&&S(e,"data-doctype",t)},d(a){a&&z(e),n=!1,l()}}}function nl(i){let e,t=i[2]&&Ft(i);return{c(){t&&t.c(),e=te()},l(n){t&&t.l(n),e=ne(n)},m(n,l){t&&t.m(n,l),F(n,e,l)},p(n,l){n[2]?t?t.p(n,l):(t=Ft(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},d(n){n&&z(e),t&&t.d(n)}}}function ll(i){let e=i[27]+"",t;return{c(){t=ae(e)},l(n){t=oe(n,e)},m(n,l){F(n,t,l)},p(n,l){l[0]&4096&&e!==(e=n[27]+"")&&Oe(t,e)},d(n){n&&z(t)}}}function Ut(i){let e,t,n;function l(s){i[20](s,i[31],i[32],i[33])}let a={index:i[33],enableSearchResultSelection:i[2],useSearchResult:i[0],showFullText:i[4],enableDocumentDb:i[5],documentDbUrl:i[6]};return i[31]!==void 0&&(a.value=i[31]),e=new Qt({props:a}),Ge.push(()=>Wt(e,"value",l)),{c(){Ke(e.$$.fragment)},l(s){We(e.$$.fragment,s)},m(s,o){qe(e,s,o),n=!0},p(s,o){i=s;const r={};o[0]&4&&(r.enableSearchResultSelection=i[2]),o[0]&1&&(r.useSearchResult=i[0]),o[0]&16&&(r.showFullText=i[4]),o[0]&32&&(r.enableDocumentDb=i[5]),o[0]&64&&(r.documentDbUrl=i[6]),!t&&o[0]&4096&&(t=!0,r.value=i[31],Kt(()=>t=!1)),e.$set(r)},i(s){n||(A(e.$$.fragment,s),n=!0)},o(s){H(e.$$.fragment,s),n=!1},d(s){Xe(e,s)}}}function il(i){let e,t,n=me(i[28]),l=[];for(let s=0;sH(l[s],1,1,()=>{l[s]=null});return{c(){for(let s=0;sH(l[s],1,1,()=>{l[s]=null});return{c(){for(let s=0;s0&&Bt(i);const f=[tl,el],u=[];function b(k,d){return k[10]&&k[12]?0:1}n=b(i),l=u[n]=f[n](i);let P=ol;return{c(){e=G("div"),r&&r.c(),t=te(),l.c(),a=te(),s=re(),this.h()},l(k){e=j(k,"DIV",{class:!0});var d=q(e);r&&r.l(d),t=ne(d),l.l(d),d.forEach(z),a=ne(k),s=re(),this.h()},h(){S(e,"class","search-results svelte-1egz4bg")},m(k,d){F(k,e,d),r&&r.m(e,null),W(e,t),u[n].m(e,null),F(k,a,d),F(k,s,d),o=!0},p(k,d){k[1]&&k[1].length>0?r?r.p(k,d):(r=Bt(k),r.c(),r.m(e,t)):r&&(r.d(1),r=null);let p=n;n=b(k),n===p?u[n].p(k,d):(de(),H(u[p],1,1,()=>{u[p]=null}),he(),l=u[n],l?l.p(k,d):(l=u[n]=f[n](k),l.c()),A(l,1),l.m(e,null))},i(k){o||(A(l),A(P),o=!0)},o(k){H(l),H(P),o=!1},d(k){k&&(z(e),z(a),z(s)),r&&r.d(),u[n].d()}}}let ol=!1;function rl(i,e,t){let n,l,{enableDocumentDb:a=!1}=e,{documentDbUrl:s=""}=e,{showFullText:o=Array(10).fill(!1)}=e,{useSearchResult:r}=e,{searchInTransactionLedger:f=!1}=e,{searchResults:u=[]}=e,{usedSearchResults:b=[]}=e,P=[],{enableSearchResultSelection:k=!1}=e,{showOnlyLlmUsed:d=!1}=e,p=!1;const R=()=>{t(11,p=!0),setTimeout(()=>{t(11,p=!1)},5e3)};let y=!1,M;const N=L=>L.reduce((h,Z)=>{const J=Z.docType||"Другие документы";return h[J]||(h[J]=[]),h[J].push(Z),h},{}),K=L=>{L.stopPropagation();const h=L.target.dataset.doctype;Object.keys(M[h]).forEach(Z=>{t(0,r[M[h][Z].title]=L.target.checked,r)})},w=()=>{t(3,d=!d)},O=()=>{t(2,k=!k)},g=()=>{t(10,y=!y)};function T(L,h,Z,J){Z[J]=L}function m(L,h,Z,J){Z[J]=L,t(9,P),t(10,y),t(3,d),t(8,b),t(1,u)}return i.$$set=L=>{"enableDocumentDb"in L&&t(5,a=L.enableDocumentDb),"documentDbUrl"in L&&t(6,s=L.documentDbUrl),"showFullText"in L&&t(4,o=L.showFullText),"useSearchResult"in L&&t(0,r=L.useSearchResult),"searchInTransactionLedger"in L&&t(7,f=L.searchInTransactionLedger),"searchResults"in L&&t(1,u=L.searchResults),"usedSearchResults"in L&&t(8,b=L.usedSearchResults),"enableSearchResultSelection"in L&&t(2,k=L.enableSearchResultSelection),"showOnlyLlmUsed"in L&&t(3,d=L.showOnlyLlmUsed)},i.$$.update=()=>{i.$$.dirty[0]&1536&&(y&&t(12,M=N(P)),t(9,P=bn.sortByRelevance(P))),i.$$.dirty[0]&1&&r===void 0&&t(0,r={}),i.$$.dirty[0]&4&&t(14,n=k?"variant-filled-primary":"variant-soft-primary"),i.$$.dirty[0]&1024&&t(13,l=y?"variant-filled-primary":"variant-soft-primary"),i.$$.dirty[0]&264&&t(3,d=b.length!==0&&d),i.$$.dirty[0]&266&&t(9,P=d?b:u)},[r,u,k,d,o,a,s,f,b,P,y,p,M,l,n,K,R,w,O,g,T,m]}class Sl extends ye{constructor(e){super(),Ce(this,e,rl,al,pe,{enableDocumentDb:5,documentDbUrl:6,showFullText:4,useSearchResult:0,searchInTransactionLedger:7,searchResults:1,usedSearchResults:8,enableSearchResultSelection:2,showOnlyLlmUsed:3,blinkButton:16},null,[-1,-1])}get blinkButton(){return this.$$.ctx[16]}}export{gl as P,bl as S,Sl as a}; diff --git a/build/client/_app/immutable/chunks/SearchResults.sPPV79xw.js b/build/client/_app/immutable/chunks/SearchResults.sPPV79xw.js deleted file mode 100644 index fb8d8fa7d6e16b5d12e7f1901f9b55843b21cac5..0000000000000000000000000000000000000000 --- a/build/client/_app/immutable/chunks/SearchResults.sPPV79xw.js +++ /dev/null @@ -1,8 +0,0 @@ -import{b as pe,L as _e,e as G,d as j,f as q,i as z,u as S,k as F,M as be,N as ge,O as Se,o as ve,s as x,P as Ve,Q as He,c as te,j as ne,l as W,w as ee,r as tt,R as rn,ac as wt,g as $,X as cn,n as ke,ad as un,S as Fe,t as ae,h as oe,H as nt,C as lt,F as re,B as ue,A as Vt,ae as Ht,G as fn,aa as Pe,K as dn,p as Ge,I as Gt,m as Oe,y as je,q as jt,x as Kt}from"./scheduler.5WtVptCO.js";import{S as ye,i as Ce,a as A,t as H,g as de,f as he,h as hn,j as mn,c as Ke,d as We,m as qe,e as Xe,b as Wt}from"./index.7IiDzEZn.js";import{w as we}from"./index.G3yBo0_P.js";import{e as me}from"./each.C7pZUaX1.js";import{p as _n}from"./ProgressBar.svelte_svelte_type_style_lang.7yc35pDe.js";import{s as ft,d as dt}from"./transitions.QBIMuVLc.js";import{b as bn}from"./SearchUtils._vRU8T6p.js";const qt=!0;function gn(i){let e,t,n;const l=i[19].default,a=_e(l,i,i[18],null);return{c(){e=G("div"),a&&a.c(),this.h()},l(s){e=j(s,"DIV",{class:!0,"data-testid":!0});var o=q(e);a&&a.l(o),o.forEach(z),this.h()},h(){S(e,"class",t="accordion "+i[0]),S(e,"data-testid","accordion")},m(s,o){F(s,e,o),a&&a.m(e,null),n=!0},p(s,[o]){a&&a.p&&(!n||o&262144)&&be(a,l,s,s[18],n?Se(l,s[18],o,null):ge(s[18]),null),(!n||o&1&&t!==(t="accordion "+s[0]))&&S(e,"class",t)},i(s){n||(A(a,s),n=!0)},o(s){H(a,s),n=!1},d(s){s&&z(e),a&&a.d(s)}}}function Sn(i,e,t){let n,l;ve(i,_n,m=>t(20,l=m));let{$$slots:a={},$$scope:s}=e,{autocollapse:o=!1}=e,{width:r="w-full"}=e,{spacing:f="space-y-1"}=e,{disabled:u=!1}=e,{padding:b="py-2 px-4"}=e,{hover:P="hover:bg-primary-hover-token"}=e,{rounded:k="rounded-container-token"}=e,{caretOpen:d="rotate-180"}=e,{caretClosed:p=""}=e,{regionControl:R=""}=e,{regionPanel:y="space-y-4"}=e,{regionCaret:M=""}=e,{transitions:N=!l}=e,{transitionIn:K=ft}=e,{transitionInParams:w={duration:200}}=e,{transitionOut:O=ft}=e,{transitionOutParams:g={duration:200}}=e;const T=we(null);return x("active",T),x("autocollapse",o),x("disabled",u),x("padding",b),x("hover",P),x("rounded",k),x("caretOpen",d),x("caretClosed",p),x("regionControl",R),x("regionPanel",y),x("regionCaret",M),x("transitions",N),x("transitionIn",K),x("transitionInParams",w),x("transitionOut",O),x("transitionOutParams",g),i.$$set=m=>{t(22,e=Ve(Ve({},e),He(m))),"autocollapse"in m&&t(1,o=m.autocollapse),"width"in m&&t(2,r=m.width),"spacing"in m&&t(3,f=m.spacing),"disabled"in m&&t(4,u=m.disabled),"padding"in m&&t(5,b=m.padding),"hover"in m&&t(6,P=m.hover),"rounded"in m&&t(7,k=m.rounded),"caretOpen"in m&&t(8,d=m.caretOpen),"caretClosed"in m&&t(9,p=m.caretClosed),"regionControl"in m&&t(10,R=m.regionControl),"regionPanel"in m&&t(11,y=m.regionPanel),"regionCaret"in m&&t(12,M=m.regionCaret),"transitions"in m&&t(13,N=m.transitions),"transitionIn"in m&&t(14,K=m.transitionIn),"transitionInParams"in m&&t(15,w=m.transitionInParams),"transitionOut"in m&&t(16,O=m.transitionOut),"transitionOutParams"in m&&t(17,g=m.transitionOutParams),"$$scope"in m&&t(18,s=m.$$scope)},i.$$.update=()=>{t(0,n=`${r} ${f} ${e.class??""}`)},e=He(e),[n,o,r,f,u,b,P,k,d,p,R,y,M,N,K,w,O,g,s,a]}class vn extends ye{constructor(e){super(),Ce(this,e,Sn,gn,pe,{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})}}const kn=i=>({}),ht=i=>({}),zn=i=>({}),mt=i=>({}),Pn=i=>({}),_t=i=>({}),pn=i=>({}),bt=i=>({}),yn=i=>({}),gt=i=>({});function St(i){let e,t;const n=i[30].lead,l=_e(n,i,i[29],gt);return{c(){e=G("div"),l&&l.c(),this.h()},l(a){e=j(a,"DIV",{class:!0});var s=q(e);l&&l.l(s),s.forEach(z),this.h()},h(){S(e,"class","accordion-lead")},m(a,s){F(a,e,s),l&&l.m(e,null),t=!0},p(a,s){l&&l.p&&(!t||s[0]&536870912)&&be(l,n,a,a[29],t?Se(n,a[29],s,yn):ge(a[29]),gt)},i(a){t||(A(l,a),t=!0)},o(a){H(l,a),t=!1},d(a){a&&z(e),l&&l.d(a)}}}function Cn(i){let e;return{c(){e=ae("(summary)")},l(t){e=oe(t,"(summary)")},m(t,n){F(t,e,n)},d(t){t&&z(e)}}}function Rn(i){let e,t,n;return{c(){e=G("div"),t=new nt(!1),this.h()},l(l){e=j(l,"DIV",{class:!0});var a=q(e);t=lt(a,!1),a.forEach(z),this.h()},h(){t.a=null,S(e,"class",n="accordion-summary-caret "+i[11])},m(l,a){F(l,e,a),t.m(i[14],e)},p(l,a){a[0]&2048&&n!==(n="accordion-summary-caret "+l[11])&&S(e,"class",n)},i:ke,o:ke,d(l){l&&z(e)}}}function Dn(i){let e,t,n,l,a;const s=[On,In],o=[];function r(f,u){return f[8]?0:1}return t=r(i),n=o[t]=s[t](i),{c(){e=G("div"),n.c(),this.h()},l(f){e=j(f,"DIV",{class:!0});var u=q(e);n.l(u),u.forEach(z),this.h()},h(){S(e,"class",l="accordion-summary-icons "+i[10])},m(f,u){F(f,e,u),o[t].m(e,null),a=!0},p(f,u){let b=t;t=r(f),t===b?o[t].p(f,u):(de(),H(o[b],1,1,()=>{o[b]=null}),he(),n=o[t],n?n.p(f,u):(n=o[t]=s[t](f),n.c()),A(n,1),n.m(e,null)),(!a||u[0]&1024&&l!==(l="accordion-summary-icons "+f[10]))&&S(e,"class",l)},i(f){a||(A(n),a=!0)},o(f){H(n),a=!1},d(f){f&&z(e),o[t].d()}}}function In(i){let e;const t=i[30].iconOpen,n=_e(t,i,i[29],mt),l=n||En(i);return{c(){l&&l.c()},l(a){l&&l.l(a)},m(a,s){l&&l.m(a,s),e=!0},p(a,s){n&&n.p&&(!e||s[0]&536870912)&&be(n,t,a,a[29],e?Se(t,a[29],s,zn):ge(a[29]),mt)},i(a){e||(A(l,a),e=!0)},o(a){H(l,a),e=!1},d(a){l&&l.d(a)}}}function On(i){let e;const t=i[30].iconClosed,n=_e(t,i,i[29],_t),l=n||Mn(i);return{c(){l&&l.c()},l(a){l&&l.l(a)},m(a,s){l&&l.m(a,s),e=!0},p(a,s){n&&n.p&&(!e||s[0]&536870912)&&be(n,t,a,a[29],e?Se(t,a[29],s,Pn):ge(a[29]),_t)},i(a){e||(A(l,a),e=!0)},o(a){H(l,a),e=!1},d(a){l&&l.d(a)}}}function En(i){let e,t;return{c(){e=new nt(!1),t=re(),this.h()},l(n){e=lt(n,!1),t=re(),this.h()},h(){e.a=t},m(n,l){e.m(i[14],n,l),F(n,t,l)},p:ke,d(n){n&&(z(t),e.d())}}}function Mn(i){let e,t;return{c(){e=new nt(!1),t=re(),this.h()},l(n){e=lt(n,!1),t=re(),this.h()},h(){e.a=t},m(n,l){e.m(i[14],n,l),F(n,t,l)},p:ke,d(n){n&&(z(t),e.d())}}}function vt(i){let e,t,n,l,a,s,o;const r=i[30].content,f=_e(r,i,i[29],ht),u=f||Tn();return{c(){e=G("div"),u&&u.c(),this.h()},l(b){e=j(b,"DIV",{class:!0,id:!0,role:!0,"aria-hidden":!0,"aria-labelledby":!0});var P=q(e);u&&u.l(P),P.forEach(z),this.h()},h(){S(e,"class",t="accordion-panel "+i[9]),S(e,"id",n="accordion-panel-"+i[0]),S(e,"role","region"),S(e,"aria-hidden",l=!i[8]),S(e,"aria-labelledby",i[0])},m(b,P){F(b,e,P),u&&u.m(e,null),o=!0},p(b,P){i=b,f&&f.p&&(!o||P[0]&536870912)&&be(f,r,i,i[29],o?Se(r,i[29],P,kn):ge(i[29]),ht),(!o||P[0]&512&&t!==(t="accordion-panel "+i[9]))&&S(e,"class",t),(!o||P[0]&1&&n!==(n="accordion-panel-"+i[0]))&&S(e,"id",n),(!o||P[0]&256&&l!==(l=!i[8]))&&S(e,"aria-hidden",l),(!o||P[0]&1)&&S(e,"aria-labelledby",i[0])},i(b){o||(A(u,b),b&&cn(()=>{o&&(s&&s.end(1),a=hn(e,dt,{transition:i[4],params:i[5],enabled:i[3]}),a.start())}),o=!0)},o(b){H(u,b),a&&a.invalidate(),b&&(s=mn(e,dt,{transition:i[6],params:i[7],enabled:i[3]})),o=!1},d(b){b&&z(e),u&&u.d(b),b&&s&&s.end()}}}function Tn(i){let e;return{c(){e=ae("(content)")},l(t){e=oe(t,"(content)")},m(t,n){F(t,e,n)},d(t){t&&z(e)}}}function Bn(i){let e,t,n,l,a,s,o,r,f,u,b,P,k,d,p=i[16].lead&&St(i);const R=i[30].summary,y=_e(R,i,i[29],bt),M=y||Cn(),N=[Dn,Rn],K=[];function w(g,T){return g[16].iconClosed||g[16].iconOpen?0:1}s=w(i),o=K[s]=N[s](i);let O=i[8]&&vt(i);return{c(){e=G("div"),t=G("button"),p&&p.c(),n=te(),l=G("div"),M&&M.c(),a=te(),o.c(),u=te(),O&&O.c(),this.h()},l(g){e=j(g,"DIV",{class:!0,"data-testid":!0});var T=q(e);t=j(T,"BUTTON",{type:!0,class:!0,id:!0,"aria-expanded":!0,"aria-controls":!0});var m=q(t);p&&p.l(m),n=ne(m),l=j(m,"DIV",{class:!0});var L=q(l);M&&M.l(L),L.forEach(z),a=ne(m),o.l(m),m.forEach(z),u=ne(T),O&&O.l(T),T.forEach(z),this.h()},h(){S(l,"class","accordion-summary flex-1"),S(t,"type","button"),S(t,"class",r="accordion-control "+i[12]),S(t,"id",i[0]),S(t,"aria-expanded",i[8]),S(t,"aria-controls",f="accordion-panel-"+i[0]),t.disabled=i[2],S(e,"class",b="accordion-item "+i[13]),S(e,"data-testid","accordion-item")},m(g,T){F(g,e,T),W(e,t),p&&p.m(t,null),W(t,n),W(t,l),M&&M.m(l,null),W(t,a),K[s].m(t,null),W(e,u),O&&O.m(e,null),P=!0,k||(d=[ee(t,"click",i[15]),ee(t,"click",i[31]),ee(t,"keydown",i[32]),ee(t,"keyup",i[33]),ee(t,"keypress",i[34])],k=!0)},p(g,T){g[16].lead?p?(p.p(g,T),T[0]&65536&&A(p,1)):(p=St(g),p.c(),A(p,1),p.m(t,n)):p&&(de(),H(p,1,1,()=>{p=null}),he()),y&&y.p&&(!P||T[0]&536870912)&&be(y,R,g,g[29],P?Se(R,g[29],T,pn):ge(g[29]),bt);let m=s;s=w(g),s===m?K[s].p(g,T):(de(),H(K[m],1,1,()=>{K[m]=null}),he(),o=K[s],o?o.p(g,T):(o=K[s]=N[s](g),o.c()),A(o,1),o.m(t,null)),(!P||T[0]&4096&&r!==(r="accordion-control "+g[12]))&&S(t,"class",r),(!P||T[0]&1)&&S(t,"id",g[0]),(!P||T[0]&256)&&S(t,"aria-expanded",g[8]),(!P||T[0]&1&&f!==(f="accordion-panel-"+g[0]))&&S(t,"aria-controls",f),(!P||T[0]&4)&&(t.disabled=g[2]),g[8]?O?(O.p(g,T),T[0]&256&&A(O,1)):(O=vt(g),O.c(),A(O,1),O.m(e,null)):O&&(de(),H(O,1,1,()=>{O=null}),he()),(!P||T[0]&8192&&b!==(b="accordion-item "+g[13]))&&S(e,"class",b)},i(g){P||(A(p),A(M,g),A(o),A(O),P=!0)},o(g){H(p),H(M,g),H(o),H(O),P=!1},d(g){g&&z(e),p&&p.d(),M&&M.d(g),K[s].d(),O&&O.d(),k=!1,tt(d)}}}const Ln="",Nn="text-start w-full flex items-center space-x-4",kt="fill-current w-3 transition-transform duration-[200ms]",Fn="";function Un(i,e,t){let n,l,a,s,o,r,f,u,b=ke,P=()=>(b(),b=un(K,I=>t(28,u=I)),K);i.$$.on_destroy.push(()=>b());let{$$slots:k={},$$scope:d}=e;const p=rn(k),R=wt();let{open:y=!1}=e,{id:M=String(Math.random())}=e,{autocollapse:N=$("autocollapse")}=e,{active:K=$("active")}=e;P();let{disabled:w=$("disabled")}=e,{padding:O=$("padding")}=e,{hover:g=$("hover")}=e,{rounded:T=$("rounded")}=e,{caretOpen:m=$("caretOpen")}=e,{caretClosed:L=$("caretClosed")}=e,{regionControl:h=$("regionControl")}=e,{regionPanel:Z=$("regionPanel")}=e,{regionCaret:J=$("regionCaret")}=e,{transitions:ie=$("transitions")}=e,{transitionIn:V=$("transitionIn")}=e,{transitionInParams:fe=$("transitionInParams")}=e,{transitionOut:Ye=$("transitionOut")}=e,{transitionOutParams:Ee=$("transitionOutParams")}=e;const Qe=` - - - `;function Re(I){N===!0?K.set(M):t(17,y=!y),Ze(I)}function Ze(I){const Ie=N?u===M:y;R("toggle",{event:I,id:M,panelId:`accordion-panel-${M}`,open:Ie,autocollapse:N})}N&&y&&Re();function Me(I){Fe.call(this,i,I)}function Je(I){Fe.call(this,i,I)}function Te(I){Fe.call(this,i,I)}function De(I){Fe.call(this,i,I)}return i.$$set=I=>{t(37,e=Ve(Ve({},e),He(I))),"open"in I&&t(17,y=I.open),"id"in I&&t(0,M=I.id),"autocollapse"in I&&t(18,N=I.autocollapse),"active"in I&&P(t(1,K=I.active)),"disabled"in I&&t(2,w=I.disabled),"padding"in I&&t(19,O=I.padding),"hover"in I&&t(20,g=I.hover),"rounded"in I&&t(21,T=I.rounded),"caretOpen"in I&&t(22,m=I.caretOpen),"caretClosed"in I&&t(23,L=I.caretClosed),"regionControl"in I&&t(24,h=I.regionControl),"regionPanel"in I&&t(25,Z=I.regionPanel),"regionCaret"in I&&t(26,J=I.regionCaret),"transitions"in I&&t(3,ie=I.transitions),"transitionIn"in I&&t(4,V=I.transitionIn),"transitionInParams"in I&&t(5,fe=I.transitionInParams),"transitionOut"in I&&t(6,Ye=I.transitionOut),"transitionOutParams"in I&&t(7,Ee=I.transitionOutParams),"$$scope"in I&&t(29,d=I.$$scope)},i.$$.update=()=>{i.$$.dirty[0]&393216&&y&&N&&Re(),i.$$.dirty[0]&268828673&&t(8,n=N?u===M:y),t(13,l=`${Ln} ${e.class??""}`),i.$$.dirty[0]&20447232&&t(12,a=`${Nn} ${O} ${g} ${T} ${h}`),i.$$.dirty[0]&12583168&&t(27,s=n?m:L),i.$$.dirty[0]&201326592&&t(11,o=`${kt} ${J} ${s}`),i.$$.dirty[0]&67108864&&t(10,r=`${kt} ${J}`),i.$$.dirty[0]&36175872&&t(9,f=`${Fn} ${O} ${T} ${Z}`)},e=He(e),[M,K,w,ie,V,fe,Ye,Ee,n,f,r,o,a,l,Qe,Re,p,y,N,O,g,T,m,L,h,Z,J,s,u,d,k,Me,Je,Te,De]}class An extends ye{constructor(e){super(),Ce(this,e,Un,Bn,pe,{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 Ue(i){if(!i.endsWith("px"))return;const e=parseFloat(i.slice(0,i.length-2));return isNaN(e)?void 0:e}const Xt=i=>i?"height":"width",$e=i=>window.getComputedStyle(i),et=i=>i.getBoundingClientRect(),wn=(i,e=!0)=>{if(i.getPropertyValue("box-sizing")==="border-box")return;const t=Ue(i.getPropertyValue("border-left-width"));if(t===void 0){console.error("Splitpanes Error: Fail to parse container `border-left-width`.");return}const n=Ue(i.getPropertyValue("border-top-width"));if(n===void 0){console.error("Splitpanes Error: Fail to parse container `border-top-width`.");return}const l={left:t,top:n};if(e){const a=Ue(i.getPropertyValue("border-right-width"));if(a===void 0){console.error("Splitpanes Error: Fail to parse container `border-right-width`.");return}const s=Ue(i.getPropertyValue("border-bottom-width"));if(s===void 0){console.error("Splitpanes Error: Fail to parse container `border-bottom-width`.");return}const o=l;o.right=a,o.bottom=s}return l};function Vn(i,e){e||(e=$e(i));const t=et(i),n=wn(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 zt=(i,e)=>({left:i.left-e.left,top:i.top-e.top});function Pt(i){const e=i,t=i,{clientX:n,clientY:l}="ontouchstart"in window&&t.touches?t.touches[0]:e;return{left:n,top:l}}function pt(i,e,t,n){let l=0;for(let a=e;at(31,a=c));const J=we(k);ve(i,J,c=>t(30,l=c));const ie=we(void 0);ve(i,ie,c=>t(29,n=c));let V=null,fe=null;x(Yt,{showFirstSplitter:J,veryFirstPaneKey:ie,isHorizontal:Z,ssrRegisterPaneSize:void 0,onPaneInit:c=>(n===void 0&&Pe(ie,n=c,n),{undefinedPaneInitSize:0}),clientOnly:{onPaneAdd:Ee,onPaneRemove:Qe}});function Ee(c){let v=-1;Array.from(c.element.parentNode.children).some(_=>(_.className.includes("splitpanes__pane")&&v++,_===c.element)),v===0&&Pe(ie,n=c.key,n),h.splice(v,0,c);for(let _=0;_{c.isReady=!0,y("pane-add",{index:v,panes:ze()})});const E=(_,B=!0)=>D=>{(B||c.index>0)&&_(D,c)};return{onSplitterDown:E(Zt,!1),onSplitterClick:E(Jt,!1),onSplitterDblClick:E(it),onPaneClick:E(Re),reportGivenSizeChange:E(Ze)}}async function Qe(c){const v=h.findIndex(E=>E.key===c);if(v>=0){const E=h.splice(v,1)[0];for(let _=0;_0?h[0].key:void 0,n),N&&(await xe(),y("pane-remove",{removed:E,panes:ze()}))}}function Re(c,v){y("pane-click",v)}function Ze(c,v){v.setSz(c),xe()}Vt(()=>{ct(),rt();for(let c=0;c{t(6,w=!0)},0)}),Ht(()=>{N&&Te(),N=!1}),fn(()=>{ct()});function Me(c){if(P==="auto")try{return(c??$e(M)).direction==="rtl"}catch{}return P===!0}function Je(){document.body.style.cursor=Z?"col-resize":"row-resize",document.addEventListener("mousemove",Be,{passive:!1}),document.addEventListener("mouseup",Le),"ontouchstart"in window&&(document.addEventListener("touchmove",Be,{passive:!1}),document.addEventListener("touchend",Le))}function Te(){document.body.style.cursor="",document.removeEventListener("mousemove",Be),document.removeEventListener("mouseup",Le),"ontouchstart"in window&&(document.removeEventListener("touchmove",Be),document.removeEventListener("touchend",Le))}const De=c=>c.nodeType===Node.ELEMENT_NODE&&c.classList.contains("splitpanes__splitter");function I(c,v,E){let _=c[f?"top":"left"];return E&&!f&&(_=v-_),_}const Ie=()=>Xt(f);function Zt(c,v){t(7,O=!0),T=v.index,v.setSplitterActive(!0);let _=v.element;for(;_!=null&&(_=_.previousSibling,!De(_)););if(_==null){console.error("Splitpane Error: Active splitter wasn't found!");return}V=_;const B=Pt(c),D=et(V);fe=I(zt(B,D),D[Ie()],Me()),Je()}function Be(c){if(O){c.preventDefault(),t(8,g=!0);const v=Pt(c),E=$e(M),_=Vn(M,E),B=_[Ie()],D=Me(E),C=zt(v,_),U=I(C,B,D);$t(U,B),y("resize",ze())}}function Le(){g&&y("resized",ze()),t(7,O=!1),h[T].setSplitterActive(!1),setTimeout(()=>{t(8,g=!1),Te()},100)}function Jt(c,v){if("ontouchstart"in window){c.preventDefault();const E=v.index;b&&(m===E?(L&&clearTimeout(L),L=null,it(c,v),m=-1):(m=E,L=setTimeout(()=>{m=-1},500)))}g||y("splitter-click",v)}function it(c,v){if(b){const E=v.index;let _=0;for(let C=0;C=100)for(let C=0;C{const Q=X.min(),le=X.max(),se=Math.min(Math.max(0,C),le-Q);X.setSz(Q+se),C-=se};for(let X=E-1;X>=0;X--)U(h[X]);for(let X=E+1;Xh.map(c=>({min:c.min(),max:c.max(),size:c.sz(),snap:c.snap()}));function xt(c,v){const E=le=>et(le)[Ie()],_=E(V);let B=0,D=V.previousSibling;for(;D!=null;)De(D)&&(B+=E(D)),D=D.previousSibling;let C=0,U=V.nextSibling;for(;U!=null;)De(U)&&(C+=E(U)),U=U.nextSibling;const X=B+fe,Q=B+_+C;return(c-X)/(v-Q)*100}function $t(c,v){let E=T-1,_=h[E],B=T,D=h[B],C={prevPanesSize:at(E),nextPanesSize:ot(B),prevReachedMinPanes:0,nextReachedMinPanes:0};const U=0+(u?0:C.prevPanesSize),X=100-(u?0:C.nextPanesSize),Q=Math.max(Math.min(xt(c,v),X),U),le=C.prevPanesSize+_.min()+_.snap(),se=100-(C.nextPanesSize+D.min()+D.snap());let Y=Q,ce=!1;Q<=le?Q>C.prevPanesSize+_.min()&&(Y=Math.max(_.min()+C.prevPanesSize,100-(D.max()+C.nextPanesSize)),ce=!0):Q>=se&&Q<100-C.nextPanesSize-D.min()&&(Y=Math.min(100-(D.min()+C.nextPanesSize),_.max()+C.prevPanesSize),ce=!0);const Ne=_.max()<100&&Y>=_.max()+C.prevPanesSize,on=D.max()<100&&Y<=100-(D.max()+C.nextPanesSize);if(Ne||on)Ne?(_.setSz(_.max()),D.setSz(Math.max(100-_.max()-C.prevPanesSize-C.nextPanesSize,0))):(_.setSz(Math.max(100-D.max()-C.prevPanesSize-C.nextPanesSize,0)),D.setSz(D.max()));else{if(u&&!ce){const ut=en(C,Y);if(!ut)return;({sums:C,paneBeforeIndex:E,paneAfterIndex:B}=ut),_=h[E],D=h[B]}E!=null&&_.setSz(Math.min(Math.max(Y-C.prevPanesSize-C.prevReachedMinPanes,_.min()),_.max())),B!=null&&D.setSz(Math.min(Math.max(100-Y-C.nextPanesSize-C.nextReachedMinPanes,D.min()),D.max()))}}function en(c,v){const E=T-1;let _=E,B=E+1;if(v{D.setSz(D.min()),c.prevReachedMinPanes+=D.min()}),c.prevPanesSize=at(_),_==null))return c.prevReachedMinPanes=0,h[0].setSz(h[0].min()),Ae(h,1,E+1,D=>{D.setSz(D.min()),c.prevReachedMinPanes+=D.min()}),h[B].setSz(100-c.prevReachedMinPanes-h[0].min()-c.prevPanesSize-c.nextPanesSize),null;if(v>100-c.nextPanesSize-h[B].min()){B=nn(E)?.index,c.nextReachedMinPanes=0,B>E+1&&Ae(h,E+1,B,C=>{C.setSz(C.min()),c.nextReachedMinPanes+=C.min()}),c.nextPanesSize=ot(B);const D=h.length;if(B==null)return c.nextReachedMinPanes=0,h[D-1].setSz(h[D-1].min()),Ae(h,E+1,D-1,C=>{C.setSz(C.min()),c.nextReachedMinPanes+=C.min()}),h[_].setSz(100-c.prevPanesSize-c.nextReachedMinPanes-h[D-1].min()-c.nextPanesSize),null}return{sums:c,paneBeforeIndex:_,paneAfterIndex:B}}const st=c=>c.sz(),at=c=>pt(h,0,c,st),ot=c=>pt(h,c+1,h.length,st),tn=c=>[...h].reverse().find(v=>v.indexv.min()),nn=c=>h.find(v=>v.index>c+1&&v.sz()>v.min());async function xe(){K=!0,await dn(),K&&(rt(),K=!1)}function rt(){ln(),N&&y("resized",ze())}function ln(){if(h.length===0)return;const c=h.length;let v=100,E=0,_=0,B=0,D=[],C=[];for(let se=0;se=Y.max()&&D.push(Y),ce<=Y.min()&&C.push(Y)):_+=1:(v-=ce,E++,D.push(Y),C.push(Y))}const U=c-E,X=U-_;let Q,le;if(X>0?(Q=B/X,Q>.1&&v>.1?(B+=_*Q,le=v/B):(Q=0,le=1)):(Q=v/U,le=1),v+B>.1){v=100;for(let se=0;se.1&&(v=sn(v,D,C))}isFinite(v)?Math.abs(v)>.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 sn(c,v,E){const B=h.length-(c>0?v.length:E.length);if(B<=0)return c;const D=c/B;if(h.length===1)h[0].setSz(100),c=0;else for(let C=0;C0&&!v.includes(U)){const Q=Math.max(Math.min(X+D,U.max()),U.min()),le=Q-X;c-=le,U.setSz(Q)}else if(!E.includes(U)){const Q=Math.max(Math.min(X+D,U.max()),U.min()),le=Q-X;c-=le,U.setSz(Q)}}return c}function ct(){const{children:c}=M;let v=0,E=!1;for(let _=0;_ elements are allowed at the root of . One of your DOM nodes was removed.");return}else D&&(!E&&h[v].element!==B&&(E=!0),v++)}if(E){const _=[];for(let B=0;BX.element===D);U!=null?(U.index=_.length,_.push(U)):console.warn("Splitpanes: Internal error - found a elements which isn't tracked.")}}h=_,Pe(ie,n=h.length>0?h[0].key:void 0,n)}}function an(c){Ge[c?"unshift":"push"](()=>{M=c,t(5,M)})}return i.$$set=c=>{"id"in c&&t(0,r=c.id),"horizontal"in c&&t(1,f=c.horizontal),"pushOtherPanes"in c&&t(12,u=c.pushOtherPanes),"dblClickSplitter"in c&&t(13,b=c.dblClickSplitter),"rtl"in c&&t(14,P=c.rtl),"firstSplitter"in c&&t(15,k=c.firstSplitter),"style"in c&&t(2,d=c.style),"theme"in c&&t(3,p=c.theme),"class"in c&&t(4,R=c.class),"$$scope"in c&&t(18,o=c.$$scope)},i.$$.update=()=>{i.$$.dirty[0]&2&&Pe(Z,a=f,a),i.$$.dirty[0]&32768&&Pe(J,l=k,l)},[r,f,d,p,R,M,w,O,g,Z,J,ie,u,b,P,k,s,an,o]}class bl extends ye{constructor(e){super(),Ce(this,e,Gn,Hn,pe,{id:0,horizontal:1,pushOtherPanes:12,dblClickSplitter:13,rtl:14,firstSplitter:15,style:2,theme:3,class:4},null,[-1,-1,-1])}}const jn=(i,e)=>t=>{const n=i();n?.[e](t)},Kn=i=>jn.bind(null,i);function Wn(i){let e,t,n,l,a,s,o=(i[4]!==i[9]||i[5])&&yt(i);const r=i[20].default,f=_e(r,i,i[19],null);return{c(){o&&o.c(),e=te(),t=G("div"),f&&f.c(),this.h()},l(u){o&&o.l(u),e=ne(u),t=j(u,"DIV",{class:!0,style:!0});var b=q(t);f&&f.l(b),b.forEach(z),this.h()},h(){S(t,"class",n=`splitpanes__pane ${i[0]||""}`),S(t,"style",i[3])},m(u,b){o&&o.m(u,b),F(u,e,b),F(u,t,b),f&&f.m(t,null),i[21](t),l=!0,a||(s=ee(t,"click",i[11]("onPaneClick")),a=!0)},p(u,b){u[4]!==u[9]||u[5]?o?o.p(u,b):(o=yt(u),o.c(),o.m(e.parentNode,e)):o&&(o.d(1),o=null),f&&f.p&&(!l||b&524288)&&be(f,r,u,u[19],l?Se(r,u[19],b,null):ge(u[19]),null),(!l||b&1&&n!==(n=`splitpanes__pane ${u[0]||""}`))&&S(t,"class",n),(!l||b&8)&&S(t,"style",u[3])},i(u){l||(A(f,u),l=!0)},o(u){H(f,u),l=!1},d(u){u&&(z(e),z(t)),o&&o.d(u),f&&f.d(u),i[21](null),a=!1,s()}}}function yt(i){let e,t,n,l;return{c(){e=G("div"),this.h()},l(a){e=j(a,"DIV",{class:!0}),q(e).forEach(z),this.h()},h(){S(e,"class",t="splitpanes__splitter "+(i[2]?"splitpanes__splitter__active":""))},m(a,s){F(a,e,s),n||(l=[ee(e,"mousedown",i[11]("onSplitterDown")),ee(e,"touchstart",i[11]("onSplitterDown")),ee(e,"click",i[11]("onSplitterClick")),ee(e,"dblclick",i[11]("onSplitterDblClick"))],n=!0)},p(a,s){s&4&&t!==(t="splitpanes__splitter "+(a[2]?"splitpanes__splitter__active":""))&&S(e,"class",t)},d(a){a&&z(e),n=!1,tt(l)}}}function qn(i){let e,t,n=!i[10]&&Wn(i);return{c(){n&&n.c(),e=re()},l(l){n&&n.l(l),e=re()},m(l,a){n&&n.m(l,a),F(l,e,a),t=!0},p(l,[a]){l[10]||n.p(l,a)},i(l){t||(A(n),t=!0)},o(l){H(n),t=!1},d(l){l&&z(e),n&&n.d(l)}}}function Xn(i,e,t){let n,l,a,s,o,{$$slots:r={},$$scope:f}=e;const{ssrRegisterPaneSize:u,onPaneInit:b,clientOnly:P,isHorizontal:k,showFirstSplitter:d,veryFirstPaneKey:p}=$(Yt);ve(i,k,V=>t(18,a=V)),ve(i,d,V=>t(5,o=V)),ve(i,p,V=>t(4,s=V));let{size:R=null}=e,{minSize:y=0}=e,{maxSize:M=100}=e,{snapSize:N=0}=e,{class:K=""}=e;const w={},O=!qt,{undefinedPaneInitSize:g}=b(w);let T,m=R??g,L=!1,h;const Z=Kn(()=>h),J=V=>{V!=m&&Z("reportGivenSizeChange")(V)};Vt(()=>{const V={key:w,element:T,givenSize:R,sz:()=>m,setSz:fe=>{t(16,m=fe),R!=null&&R!=m&&t(12,R=m)},min:()=>y,max:()=>M,snap:()=>N,setSplitterActive:fe=>{t(2,L=fe)},isReady:!1};h=P.onPaneAdd(V)}),Ht(()=>{P.onPaneRemove(w)});function ie(V){Ge[V?"unshift":"push"](()=>{T=V,t(1,T)})}return i.$$set=V=>{"size"in V&&t(12,R=V.size),"minSize"in V&&t(13,y=V.minSize),"maxSize"in V&&t(14,M=V.maxSize),"snapSize"in V&&t(15,N=V.snapSize),"class"in V&&t(0,K=V.class),"$$scope"in V&&t(19,f=V.$$scope)},i.$$.update=()=>{i.$$.dirty&4096&&R!=null&&J(R),i.$$.dirty&262144&&t(17,n=Xt(a)),i.$$.dirty&196608&&t(3,l=`${n}: ${m}%;`)},[K,T,L,l,s,o,k,d,p,w,O,Z,R,y,M,N,m,n,a,f,r,ie]}class gl extends ye{constructor(e){super(),Ce(this,e,Xn,qn,pe,{size:12,minSize:13,maxSize:14,snapSize:15,class:0})}}function Ct(i,e,t){const n=i.slice();return n[11]=e[t],n}function Rt(i){let e,t,n;return{c(){e=G("input"),this.h()},l(l){e=j(l,"INPUT",{type:!0}),this.h()},h(){S(e,"type","checkbox")},m(l,a){F(l,e,a),e.checked=i[1][i[2].title],t||(n=ee(e,"change",i[9]),t=!0)},p(l,a){a&6&&(e.checked=l[1][l[2].title])},d(l){l&&z(e),t=!1,n()}}}function Yn(i){let e,t=i[2].teaser+"",n;return{c(){e=G("div"),n=ae(t),this.h()},l(l){e=j(l,"DIV",{class:!0});var a=q(e);n=oe(a,t),a.forEach(z),this.h()},h(){S(e,"class","annotation svelte-vfddhm")},m(l,a){F(l,e,a),W(e,n)},p(l,a){a&4&&t!==(t=l[2].teaser+"")&&Oe(n,t)},d(l){l&&z(e)}}}function Qn(i){let e,t=me(i[7].split(` -`)),n=[];for(let l=0;l100&&Ot(i);return{c(){e=G("div"),t=G("div"),n=G("label"),u&&u.c(),l=te(),s=ae(a),o=te(),k.c(),r=te(),d&&d.c(),f=te(),p&&p.c(),this.h()},l(R){e=j(R,"DIV",{class:!0});var y=q(e);t=j(y,"DIV",{class:!0});var M=q(t);n=j(M,"LABEL",{style:!0});var N=q(n);u&&u.l(N),l=ne(N),s=oe(N,a),N.forEach(z),M.forEach(z),o=ne(y),k.l(y),r=ne(y),d&&d.l(y),f=ne(y),p&&p.l(y),y.forEach(z),this.h()},h(){Gt(n,"cursor","pointer"),S(t,"class","title svelte-vfddhm"),S(e,"class","search-result svelte-vfddhm")},m(R,y){F(R,e,y),W(e,t),W(t,n),u&&u.m(n,null),W(n,l),W(n,s),W(e,o),k.m(e,null),W(e,r),d&&d.m(e,null),W(e,f),p&&p.m(e,null)},p(R,[y]){R[6]?u?u.p(R,y):(u=Rt(R),u.c(),u.m(n,l)):u&&(u.d(1),u=null),y&4&&a!==(a=R[2].title+"")&&Oe(s,a),P===(P=b(R))&&k?k.p(R,y):(k.d(1),k=P(R),k&&(k.c(),k.m(e,r))),R[4]&&R[5]?d?d.p(R,y):(d=It(R),d.c(),d.m(e,f)):d&&(d.d(1),d=null),R[7].length>100?p?p.p(R,y):(p=Ot(R),p.c(),p.m(e,null)):p&&(p.d(1),p=null)},i:ke,o:ke,d(R){R&&z(e),u&&u.d(),k.d(),d&&d.d(),p&&p.d()}}}function $n(i,e,t){let{value:n}=e,{showFullText:l=Array(10).fill(!1)}=e,{useSearchResult:a}=e,{index:s}=e,{enableDocumentDb:o=!1}=e,{documentDbUrl:r=""}=e,{enableSearchResultSelection:f=!1}=e,u="";function b(d){t(0,l[d]=!l[d],l)}function P(){a[n.title]=this.checked,t(1,a)}const k=()=>b(s);return i.$$set=d=>{"value"in d&&t(2,n=d.value),"showFullText"in d&&t(0,l=d.showFullText),"useSearchResult"in d&&t(1,a=d.useSearchResult),"index"in d&&t(3,s=d.index),"enableDocumentDb"in d&&t(4,o=d.enableDocumentDb),"documentDbUrl"in d&&t(5,r=d.documentDbUrl),"enableSearchResultSelection"in d&&t(6,f=d.enableSearchResultSelection)},i.$$.update=()=>{i.$$.dirty&4&&t(7,u=n?n.text_for_llm||n.text:"")},[l,a,n,s,o,r,f,u,b,P,k]}class Qt extends ye{constructor(e){super(),Ce(this,e,$n,xn,pe,{value:2,showFullText:0,useSearchResult:1,index:3,enableDocumentDb:4,documentDbUrl:5,enableSearchResultSelection:6})}}function Et(i,e,t){const n=i.slice();return n[31]=e[t],n[34]=e,n[33]=t,n}function Mt(i,e,t){const n=i.slice();return n[27]=e[t][0],n[28]=e[t][1],n}function Tt(i,e,t){const n=i.slice();return n[31]=e[t],n[32]=e,n[33]=t,n}function Bt(i){let e,t,n,l,a=i[3]?"Выбрано LLM":"Все результаты",s,o,r,f,u,b,P,k="Выбрать источники для LLM",d,p,R,y,M,N,K,w=i[2]&&Lt();return{c(){e=G("div"),t=G("button"),n=G("i"),l=ae(` \r - `),s=ae(a),f=te(),u=G("button"),w&&w.c(),b=te(),P=G("span"),P.textContent=k,p=te(),R=G("button"),y=ae("Группировать по типу"),this.h()},l(O){e=j(O,"DIV",{class:!0});var g=q(e);t=j(g,"BUTTON",{class:!0});var T=q(t);n=j(T,"I",{class:!0}),q(n).forEach(z),l=oe(T,` \r - `),s=oe(T,a),T.forEach(z),f=ne(g),u=j(g,"BUTTON",{class:!0});var m=q(u);w&&w.l(m),b=ne(m),P=j(m,"SPAN",{"data-svelte-h":!0}),jt(P)!=="svelte-u1xxg4"&&(P.textContent=k),m.forEach(z),p=ne(g),R=j(g,"BUTTON",{class:!0});var L=q(R);y=oe(L,"Группировать по типу"),L.forEach(z),g.forEach(z),this.h()},h(){S(n,"class","fa-solid fa-check"),S(t,"class",o="chip "+(i[3]?"variant-filled-primary":"variant-soft-primary")+" svelte-1egz4bg"),t.disabled=r=i[8].length==0,ue(t,"blinking",i[11]),S(u,"class",d="chip "+i[14]+" svelte-1egz4bg"),u.disabled=i[7],S(R,"class",M="chip "+i[13]+" svelte-1egz4bg"),S(e,"class","w-full flex space-x-2 items-center mb-4")},m(O,g){F(O,e,g),W(e,t),W(t,n),W(t,l),W(t,s),W(e,f),W(e,u),w&&w.m(u,null),W(u,b),W(u,P),W(e,p),W(e,R),W(R,y),N||(K=[ee(t,"click",i[17]),ee(u,"click",i[18]),ee(R,"click",i[19])],N=!0)},p(O,g){g[0]&8&&a!==(a=O[3]?"Выбрано LLM":"Все результаты")&&Oe(s,a),g[0]&8&&o!==(o="chip "+(O[3]?"variant-filled-primary":"variant-soft-primary")+" svelte-1egz4bg")&&S(t,"class",o),g[0]&256&&r!==(r=O[8].length==0)&&(t.disabled=r),g[0]&2056&&ue(t,"blinking",O[11]),O[2]?w||(w=Lt(),w.c(),w.m(u,b)):w&&(w.d(1),w=null),g[0]&16384&&d!==(d="chip "+O[14]+" svelte-1egz4bg")&&S(u,"class",d),g[0]&128&&(u.disabled=O[7]),g[0]&8192&&M!==(M="chip "+O[13]+" svelte-1egz4bg")&&S(R,"class",M)},d(O){O&&z(e),w&&w.d(),N=!1,tt(K)}}}function Lt(i){let e,t='';return{c(){e=G("span"),e.innerHTML=t},l(n){e=j(n,"SPAN",{"data-svelte-h":!0}),jt(e)!=="svelte-104b754"&&(e.innerHTML=t)},m(n,l){F(n,e,l)},d(n){n&&z(e)}}}function el(i){let e,t,n=me(i[9]),l=[];for(let s=0;sH(l[s],1,1,()=>{l[s]=null});return{c(){for(let s=0;sWt(e,"value",l)),{c(){Ke(e.$$.fragment)},l(s){We(e.$$.fragment,s)},m(s,o){qe(e,s,o),n=!0},p(s,o){i=s;const r={};o[0]&4&&(r.enableSearchResultSelection=i[2]),o[0]&1&&(r.useSearchResult=i[0]),o[0]&16&&(r.showFullText=i[4]),o[0]&32&&(r.enableDocumentDb=i[5]),o[0]&64&&(r.documentDbUrl=i[6]),!t&&o[0]&512&&(t=!0,r.value=i[31],Kt(()=>t=!1)),e.$set(r)},i(s){n||(A(e.$$.fragment,s),n=!0)},o(s){H(e.$$.fragment,s),n=!1},d(s){Xe(e,s)}}}function Ft(i){let e,t,n,l;return{c(){e=G("input"),this.h()},l(a){e=j(a,"INPUT",{type:!0,"data-doctype":!0}),this.h()},h(){S(e,"type","checkbox"),S(e,"data-doctype",t=i[27])},m(a,s){F(a,e,s),n||(l=ee(e,"click",i[15]),n=!0)},p(a,s){s[0]&4096&&t!==(t=a[27])&&S(e,"data-doctype",t)},d(a){a&&z(e),n=!1,l()}}}function nl(i){let e,t=i[2]&&Ft(i);return{c(){t&&t.c(),e=te()},l(n){t&&t.l(n),e=ne(n)},m(n,l){t&&t.m(n,l),F(n,e,l)},p(n,l){n[2]?t?t.p(n,l):(t=Ft(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},d(n){n&&z(e),t&&t.d(n)}}}function ll(i){let e=i[27]+"",t;return{c(){t=ae(e)},l(n){t=oe(n,e)},m(n,l){F(n,t,l)},p(n,l){l[0]&4096&&e!==(e=n[27]+"")&&Oe(t,e)},d(n){n&&z(t)}}}function Ut(i){let e,t,n;function l(s){i[20](s,i[31],i[32],i[33])}let a={index:i[33],enableSearchResultSelection:i[2],useSearchResult:i[0],showFullText:i[4],enableDocumentDb:i[5],documentDbUrl:i[6]};return i[31]!==void 0&&(a.value=i[31]),e=new Qt({props:a}),Ge.push(()=>Wt(e,"value",l)),{c(){Ke(e.$$.fragment)},l(s){We(e.$$.fragment,s)},m(s,o){qe(e,s,o),n=!0},p(s,o){i=s;const r={};o[0]&4&&(r.enableSearchResultSelection=i[2]),o[0]&1&&(r.useSearchResult=i[0]),o[0]&16&&(r.showFullText=i[4]),o[0]&32&&(r.enableDocumentDb=i[5]),o[0]&64&&(r.documentDbUrl=i[6]),!t&&o[0]&4096&&(t=!0,r.value=i[31],Kt(()=>t=!1)),e.$set(r)},i(s){n||(A(e.$$.fragment,s),n=!0)},o(s){H(e.$$.fragment,s),n=!1},d(s){Xe(e,s)}}}function il(i){let e,t,n=me(i[28]),l=[];for(let s=0;sH(l[s],1,1,()=>{l[s]=null});return{c(){for(let s=0;sH(l[s],1,1,()=>{l[s]=null});return{c(){for(let s=0;s0&&Bt(i);const f=[tl,el],u=[];function b(k,d){return k[10]&&k[12]?0:1}n=b(i),l=u[n]=f[n](i);let P=ol;return{c(){e=G("div"),r&&r.c(),t=te(),l.c(),a=te(),s=re(),this.h()},l(k){e=j(k,"DIV",{class:!0});var d=q(e);r&&r.l(d),t=ne(d),l.l(d),d.forEach(z),a=ne(k),s=re(),this.h()},h(){S(e,"class","search-results svelte-1egz4bg")},m(k,d){F(k,e,d),r&&r.m(e,null),W(e,t),u[n].m(e,null),F(k,a,d),F(k,s,d),o=!0},p(k,d){k[1]&&k[1].length>0?r?r.p(k,d):(r=Bt(k),r.c(),r.m(e,t)):r&&(r.d(1),r=null);let p=n;n=b(k),n===p?u[n].p(k,d):(de(),H(u[p],1,1,()=>{u[p]=null}),he(),l=u[n],l?l.p(k,d):(l=u[n]=f[n](k),l.c()),A(l,1),l.m(e,null))},i(k){o||(A(l),A(P),o=!0)},o(k){H(l),H(P),o=!1},d(k){k&&(z(e),z(a),z(s)),r&&r.d(),u[n].d()}}}let ol=!1;function rl(i,e,t){let n,l,{enableDocumentDb:a=!1}=e,{documentDbUrl:s=""}=e,{showFullText:o=Array(10).fill(!1)}=e,{useSearchResult:r}=e,{searchInTransactionLedger:f=!1}=e,{searchResults:u=[]}=e,{usedSearchResults:b=[]}=e,P=[],{enableSearchResultSelection:k=!1}=e,{showOnlyLlmUsed:d=!1}=e,p=!1;const R=()=>{t(11,p=!0),setTimeout(()=>{t(11,p=!1)},5e3)};let y=!1,M;const N=L=>L.reduce((h,Z)=>{const J=Z.docType||"Другие документы";return h[J]||(h[J]=[]),h[J].push(Z),h},{}),K=L=>{L.stopPropagation();const h=L.target.dataset.doctype;Object.keys(M[h]).forEach(Z=>{t(0,r[M[h][Z].title]=L.target.checked,r)})},w=()=>{t(3,d=!d)},O=()=>{t(2,k=!k)},g=()=>{t(10,y=!y)};function T(L,h,Z,J){Z[J]=L}function m(L,h,Z,J){Z[J]=L,t(9,P),t(10,y),t(3,d),t(8,b),t(1,u)}return i.$$set=L=>{"enableDocumentDb"in L&&t(5,a=L.enableDocumentDb),"documentDbUrl"in L&&t(6,s=L.documentDbUrl),"showFullText"in L&&t(4,o=L.showFullText),"useSearchResult"in L&&t(0,r=L.useSearchResult),"searchInTransactionLedger"in L&&t(7,f=L.searchInTransactionLedger),"searchResults"in L&&t(1,u=L.searchResults),"usedSearchResults"in L&&t(8,b=L.usedSearchResults),"enableSearchResultSelection"in L&&t(2,k=L.enableSearchResultSelection),"showOnlyLlmUsed"in L&&t(3,d=L.showOnlyLlmUsed)},i.$$.update=()=>{i.$$.dirty[0]&1536&&(y&&t(12,M=N(P)),t(9,P=bn.sortByRelevance(P))),i.$$.dirty[0]&1&&r===void 0&&t(0,r={}),i.$$.dirty[0]&4&&t(14,n=k?"variant-filled-primary":"variant-soft-primary"),i.$$.dirty[0]&1024&&t(13,l=y?"variant-filled-primary":"variant-soft-primary"),i.$$.dirty[0]&264&&t(3,d=b.length!==0&&d),i.$$.dirty[0]&266&&t(9,P=d?b:u)},[r,u,k,d,o,a,s,f,b,P,y,p,M,l,n,K,R,w,O,g,T,m]}class Sl extends ye{constructor(e){super(),Ce(this,e,rl,al,pe,{enableDocumentDb:5,documentDbUrl:6,showFullText:4,useSearchResult:0,searchInTransactionLedger:7,searchResults:1,usedSearchResults:8,enableSearchResultSelection:2,showOnlyLlmUsed:3,blinkButton:16},null,[-1,-1])}get blinkButton(){return this.$$.ctx[16]}}export{gl as P,bl as S,Sl as a}; diff --git a/build/client/_app/immutable/chunks/SearchUtils.AdXBATOi.js b/build/client/_app/immutable/chunks/SearchUtils.AdXBATOi.js deleted file mode 100644 index 21ec073f2a3ac2f175fbd693dc49fab4bbcc3a02..0000000000000000000000000000000000000000 --- a/build/client/_app/immutable/chunks/SearchUtils.AdXBATOi.js +++ /dev/null @@ -1,5 +0,0 @@ -import"./index.7IiDzEZn.js";import"./ProgressBar.svelte_svelte_type_style_lang.7yc35pDe.js";globalThis.__sveltekit_19lwsrg.env;class i{static findDateInText(e){const s=/\b\d{1,2}\.\d{1,2}\.\d{4}\b/g,t=e.match(s);if(t&&t.length>0){const n=t[0],[o,r,a]=n.split(".").map(Number);return new Date(a,r-1,o)}return null}static sortByRelevanceAndDate(e){return e.sort((s,t)=>{const n=t.relevance-s.relevance;if(n!==0)return n;const o=i.findDateInText(s.title),r=i.findDateInText(t.title);return o&&r?r.getTime()-o.getTime():o?-1:r?1:0})}static sortByDate(e){const s=e.filter(a=>i.findDateInText(a.title)),t=e.filter(a=>!i.findDateInText(a.title)),n=s.sort((a,l)=>{const p=i.findDateInText(a.title),f=i.findDateInText(l.title);return p&&f?f.getTime()-p.getTime():p?-1:f?1:0}),o=[];let r=0;for(const a of e)if(i.findDateInText(a.title)){let l=n.shift();l&&o.push(l)}else o.push(t[r]),r++;return o}static sortByRelevance(e){return e.sort((s,t)=>s.relevance&&t.relevance?t.relevance-s.relevance:s.relevance?-1:t.relevance?1:0)}static identifyDocumentType(e){const s=[{regexp:/(ФАС |АС |КС |ВС |[Сс]удебн|[Сс]уд)|(\(Судебный документ\))/,docType:"Решение суда"},{regexp:/[Пп]исьмо [Мм]инфина/,docType:"Письмо Минфина"},{regexp:/[Пп]исьмо (ФНС|фнс)/,docType:"Письмо ФНС"},{regexp:/(НКРФ)|(НК РФ)/,docType:"Налоговый кодекс"},{regexp:/(ГКРФ)|(ГК РФ)/,docType:"Гражданский кодекс"},{regexp:/(ТКРФ)|(ТК РФ)/,docType:"Трудовой кодекс"},{regexp:/Приказ ФНС РФ/,docType:"Приказ ФНС РФ"},{regexp:/Постановление Правительства РФ/,docType:"Постановление Правительства РФ"},{regexp:/Решение Коллегии Евразийской экономической комиссии/,docType:"Решение Коллегии ЕЭК"},{regexp:/Федеральный закон/,docType:"Федеральные законы"},{regexp:/\(Внутренний документ\)|\(ВНД\)/,docType:"Внутренние документы"}];return e.map(t=>{for(const{regexp:n,docType:o}of s)if(n.test(t.title))return t.docType=o,t;return t.docType="Другие документы",t})}static mergeResultsByTitle(e){const s=/(ст\.\d+)\s(НКРФ|НК РФ|ГКРФ|ГК РФ|ТКРФ|ТК РФ)$/,t={},n=[],o=r=>{const a=r.match(s);return a?a[0]:null};return e.forEach(r=>{const a=o(r.title);if(a)if(t[a]){t[a].relevance=Math.max(t[a].relevance,r.relevance);const l=t[a].title.match(/п[\w\.]+/g)||[],p=r.title.match(/п[\w\.]+/g)||[],f=[...new Set([...l,...p])].join(", ");t[a].title=`${f} ст.${a.split(" ")[0].split(".")[1]} ${a.split(" ")[1]}`,t[a].text+=` -${r.title} -${r.text}`,r.text_for_llm&&(t[a].text_for_llm+=` -${r.title} -${r.text_for_llm}`)}else t[a]={...r};else n.push(r)}),Object.keys(t).forEach(r=>{n.push(t[r])}),n}}var P=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function y(c){return c&&c.__esModule&&Object.prototype.hasOwnProperty.call(c,"default")?c.default:c}const d={query:"",use_qe:!1,use_olympic:!1,find_transaction_maps_by_question:!1,find_transaction_maps_by_operation:!1,categories:{НКРФ:!1,ГКРФ:!1,ТКРФ:!1,"Федеральный закон":!1,"Письмо Минфина":!1,"Письмо ФНС":!1,"Приказ ФНС":!1,"Постановление Правительства":!1,"Судебный документ":!1,ВНД:!1,"Бухгалтерский документ":!1}};function h(c={}){return{...d,...c,categories:{...d.categories,...c.categories||{}}}}class u{abbreviationDict;data;dataPreProcessed;allRefs;patterns;refCollections;constructor(){this.data={},this.dataPreProcessed={},this.allRefs={},this.abbreviationDict=this.createAbbreviationDict(),this.refCollections=this.createRefCollections(),this.patterns=this.createPatterns()}createAbbreviationDict(){return{"Министерством Финансов":"Минфина","Министерство Финансов":"Минфина","Министерства Финансов":"Минфина","Министерству Финансов":"Минфина","Министерстве Финансов":"Минфина","Налоговый кодекс":"НК","Налоговому кодексу":"НК","Налоговым кодексом":"НК","Налоговом кодексе":"НК","Налогового кодекса":"НК","Трудовой кодекс":"ТК","Трудовым кодексом":"ТК","Трудового кодекса":"ТК","Трудовому кодексу":"ТК","Трудовом кодексе":"ТК","Гражданский кодекс":"ГК","Гражданским кодексом":"ГК","Гражданского кодекса":"ГК","Гражданскому кодексу":"ГК","Гражданском кодексе":"ГК","Российская Федерация":"РФ","Российской Федерацией":"РФ","Российской Федерации":"РФ","Российскую Федерацию":"РФ","Федеральная налоговая служба":"ФНС","Федеральной налоговой службы":"ФНС","Федеральной налоговой службе":"ФНС","Федеральную налоговую службу":"ФНС","Федеральной налоговой службой":"ФНС",N:"№",Статьей:"ст.",Статьёй:"ст.",статьей:"ст.",статьёй:"ст.",Статья:"ст.",Статьи:"ст.",Статье:"ст.",Статью:"ст.",статья:"ст.",статьи:"ст.",статье:"ст.",статью:"ст.",Подпунктом:"пп.",подпунктом:"пп.",Подпункта:"пп.",подпункта:"пп.",Подпункту:"пп.",подпункту:"пп.",Подпункте:"пп.",подпункте:"пп.",Подпункт:"пп.",подпункт:"пп.",Пунктом:"п.",пунктом:"п.",Пункта:"п.",пункта:"п.",Пункту:"п.",пункту:"п.",Пункте:"п.",пункте:"п.",Пункт:"п.",пункт:"п.",Приказа:"Приказ",Приказом:"Приказ",Приказу:"Приказ",Приказе:"Приказ",приказа:"Приказ",приказом:"Приказ",приказу:"Приказ",приказе:"Приказ",приказ:"Приказ",Письмом:"Письмо",Письму:"Письмо",Письма:"Письмо",Письме:"Письмо",письмом:"Письмо",письмо:"Письмо",письму:"Письмо",письма:"Письмо",письме:"Письмо",Постановлением:"Постановление",Постановления:"Постановление",Постановлению:"Постановление",Постановлении:"Постановление",постановлением:"Постановление",постановление:"Постановление",постановления:"Постановление",постановлению:"Постановление",постановлении:"Постановление",абзацем:"абз.",абзацу:"абз.",абзацами:"абз.",абзацы:"абз.",Положения:"Положение",Положению:"Положение"}}createRefCollections(){return{"НК РФ":{},"ГК РФ":{},"ТК РФ":{},"Федеральные законы":{},"Письма Минфина":{},"Приказы Минфина":{},"Письма ФНС":{},"Приказы ФНС":{},"Постановления Правительства":{}}}createPatterns(){return{"НК РФ":{pattern:/(?:[Пп]п\.\s*(?:\d+(?:\.\d+)*)\s*)?(?:[Пп]\.\s*(?:\d+(?:\.\д+)*)\s*)?[Сс]т\.\с*(?:\д+(?:\.\д+)*) НК\s*РФ/g,postProcess:this.postReplace},"ГК РФ":{pattern:/(?:[Пп]п\.\с*(?:\д+(?:\.\д+)*)\с*)?(?:[Пп]\.\с*(?:\д+(?:\.\д+)*)\с*)?[Сс]т\.\с*(?:\д+(?:\.\д+)*) ГК\s*РФ/g,postProcess:this.postReplace},"ТК РФ":{pattern:/(?:[Пп]п\.\с*(?:\д+(?:\.\д+)*)\с*)?(?:[Пп]\.\с*(?:\д+(?:\.\д+)*)\с*)?[Сс]т\.\с*(?:\д+(?:\.\д+)*) ТК\s*РФ/g,postProcess:this.postReplace},"Федеральные законы":{pattern:/от (?:\д{2}\.\д{2}\.\д{4}|\д{1,2} \в+ \д{4} г\.) № \д+-ФЗ/g,postProcess:this.postProcessLaw},"Письма Минфина":{pattern:/от (?:\д{2}\.\д{2}\.\д{4}|\д{1,2} \в+ \д{4} г\.) № \д{2}-\д{2}-\д{2}\/\д+/g,postProcess:this.postProcessMinfinLetter},"Приказы Минфина":{pattern:/Приказ Минфина (?:РФ|России) от (?:\д{2}\.\д{2}\.\д{4}|\д{1,2} \в+ \д{4} г\.) № [а-я0-9]+/g,postProcess:e=>e},"Письма ФНС":{pattern:/Письмо ФНС (?:РФ|России) от (?:\д{2}\.\д{2}\.\д{4}|\д{1,2} \в+ \д{4} г\.) № [А-Яа-яA-Za-z0-9-]+\/\д+/g,postProcess:e=>e},"Приказы ФНС":{pattern:/Приказ ФНС (?:РФ|России) от (?:\д{2}\.\д{2}\.\д{4}|\д{1,2} \в+ \д{4} г\.) № [А-Яа-яA-Za-z0-9-]+\/\д+/g,postProcess:this.postProcessFNSOrder},"Постановления Правительства":{pattern:/Постановление Правительства (?:РФ|России) от (?:\д{2}\.\д{2}\.\д{4}|\д{1,2} \в+ \д{4} г\.) № \д+/g,postProcess:e=>e},ВНД:{pattern:/п\.\d+\s*(?=.*\(ВНД\))/g,postProcess:this.postReplace}}}postProcessFNSOrder(e){const s=e.split(" ");return s[0]="Приказ",s[1]="ФНС",s[2]="РФ",s.join(" ")}postProcessLaw(e){return`Федеральный закон ${e}`}postProcessMinfinLetter(e){return`Письмо Минфина ${e}`}preprocessData(){Object.entries(this.data).forEach(([e,s])=>{this.dataPreProcessed[e]=this.replaceWithAbbreviations(s.expert_answer)})}replaceWithAbbreviations(e){return Object.entries(this.abbreviationDict).forEach(([s,t])=>{const n=new RegExp(s.replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1"),"g");e=e.replace(n,t)}),e}postReplace(e){return e=e.replaceAll("НК РФ","НКРФ"),e=e.replaceAll("ТК РФ","ТКРФ"),e=e.replaceAll("ГК РФ","ГКРФ"),e=e.replaceAll("п. ","п."),e=e.replaceAll("пп. ","пп."),e=e.replaceAll("ст. ","ст."),e=e.replaceAll("абз. ","абз."),e}addKeyToDict(e,s,t){e[s]?e[s]=[...e[s],...t]:e[s]=t}processMatches(e,s,t,n,o){const r=o.match(e);if(r&&r.length>0){const a=r.map(t),l=[...new Set(a)];this.addKeyToDict(s,n,l)}}processAllMatches(){Object.entries(this.dataPreProcessed).forEach(([e,s])=>{Object.entries(this.patterns).forEach(([t,{pattern:n,postProcess:o}])=>{this.processMatches(n,this.refCollections[t],o,e,s)})})}printResults(){}mergeAllRefs(){Object.values(this.refCollections).forEach(e=>{Object.entries(e).forEach(([s,t])=>{this.allRefs[s]?this.allRefs[s]=[...this.allRefs[s],...t]:this.allRefs[s]=t})})}getProcessedData(){const e={};return Object.entries(this.data).forEach(([s,t])=>{e[s]={title:t.title,question:t.question,expert_answer:t.expert_answer,refs:this.allRefs[s]?this.allRefs[s]:[]}}),e}}const g=async(c,e)=>{const s=h(c),t=await fetch("/search",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s),signal:e.signal});if(!t.ok)throw new Error(`Failed to fetch search results: ${t.statusText}`);const n=await t.json();let o=null;return n.results!=null?(o=n.results,o=i.identifyDocumentType(o),o.map(r=>r.teaser=r.text_for_llm||r.teaser)):o=[],{searchResults:o,relevantConsultations:n.consultations||[],explanations:n.explanations,transactionMaps:n.transactionMapResults,modifiedQuery:n?.query,metrics:n?.metrics}},T=async(c,e)=>{let s=c;const t=new u;s=t.replaceWithAbbreviations(s),s=t.postReplace(s);function n(r){return r=r.replace(/пп\.(\d+(\.\d+)?)/,"п.$1"),r.replace(/([Пп]\.?\s?\d+(\.\d+)?)\s[Пп]\.\d+/g,"$1")}let o=e.filter(r=>{const a=n(r.title);return s.indexOf(a)>-1});return{modifiedText:s,searchResults:o}},D={doRequest:g,extractUsedSearchResults:T};export{d as D,D as S,h as a,i as b,P as c,y as g}; diff --git a/build/client/_app/immutable/chunks/SearchUtils._vRU8T6p.js b/build/client/_app/immutable/chunks/SearchUtils._vRU8T6p.js deleted file mode 100644 index 1b90a772756f0c7284b31d61a350a99556dd4fed..0000000000000000000000000000000000000000 --- a/build/client/_app/immutable/chunks/SearchUtils._vRU8T6p.js +++ /dev/null @@ -1,5 +0,0 @@ -import"./index.7IiDzEZn.js";import"./ProgressBar.svelte_svelte_type_style_lang.7yc35pDe.js";globalThis.__sveltekit_1vfz2ba.env;class i{static findDateInText(e){const s=/\b\d{1,2}\.\d{1,2}\.\d{4}\b/g,t=e.match(s);if(t&&t.length>0){const n=t[0],[o,r,a]=n.split(".").map(Number);return new Date(a,r-1,o)}return null}static sortByRelevanceAndDate(e){return e.sort((s,t)=>{const n=t.relevance-s.relevance;if(n!==0)return n;const o=i.findDateInText(s.title),r=i.findDateInText(t.title);return o&&r?r.getTime()-o.getTime():o?-1:r?1:0})}static sortByDate(e){const s=e.filter(a=>i.findDateInText(a.title)),t=e.filter(a=>!i.findDateInText(a.title)),n=s.sort((a,l)=>{const p=i.findDateInText(a.title),f=i.findDateInText(l.title);return p&&f?f.getTime()-p.getTime():p?-1:f?1:0}),o=[];let r=0;for(const a of e)if(i.findDateInText(a.title)){let l=n.shift();l&&o.push(l)}else o.push(t[r]),r++;return o}static sortByRelevance(e){return e.sort((s,t)=>s.relevance&&t.relevance?t.relevance-s.relevance:s.relevance?-1:t.relevance?1:0)}static identifyDocumentType(e){const s=[{regexp:/(ФАС |АС |КС |ВС |[Сс]удебн|[Сс]уд)|(\(Судебный документ\))/,docType:"Решение суда"},{regexp:/[Пп]исьмо [Мм]инфина/,docType:"Письмо Минфина"},{regexp:/[Пп]исьмо (ФНС|фнс)/,docType:"Письмо ФНС"},{regexp:/(НКРФ)|(НК РФ)/,docType:"Налоговый кодекс"},{regexp:/(ГКРФ)|(ГК РФ)/,docType:"Гражданский кодекс"},{regexp:/(ТКРФ)|(ТК РФ)/,docType:"Трудовой кодекс"},{regexp:/Приказ ФНС РФ/,docType:"Приказ ФНС РФ"},{regexp:/Постановление Правительства РФ/,docType:"Постановление Правительства РФ"},{regexp:/Решение Коллегии Евразийской экономической комиссии/,docType:"Решение Коллегии ЕЭК"},{regexp:/Федеральный закон/,docType:"Федеральные законы"},{regexp:/\(Внутренний документ\)|\(ВНД\)/,docType:"Внутренние документы"}];return e.map(t=>{for(const{regexp:n,docType:o}of s)if(n.test(t.title))return t.docType=o,t;return t.docType="Другие документы",t})}static mergeResultsByTitle(e){const s=/(ст\.\d+)\s(НКРФ|НК РФ|ГКРФ|ГК РФ|ТКРФ|ТК РФ)$/,t={},n=[],o=r=>{const a=r.match(s);return a?a[0]:null};return e.forEach(r=>{const a=o(r.title);if(a)if(t[a]){t[a].relevance=Math.max(t[a].relevance,r.relevance);const l=t[a].title.match(/п[\w\.]+/g)||[],p=r.title.match(/п[\w\.]+/g)||[],f=[...new Set([...l,...p])].join(", ");t[a].title=`${f} ст.${a.split(" ")[0].split(".")[1]} ${a.split(" ")[1]}`,t[a].text+=` -${r.title} -${r.text}`,r.text_for_llm&&(t[a].text_for_llm+=` -${r.title} -${r.text_for_llm}`)}else t[a]={...r};else n.push(r)}),Object.keys(t).forEach(r=>{n.push(t[r])}),n}}var P=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function y(c){return c&&c.__esModule&&Object.prototype.hasOwnProperty.call(c,"default")?c.default:c}const d={query:"",use_qe:!1,use_olympic:!1,find_transaction_maps_by_question:!1,find_transaction_maps_by_operation:!1,categories:{НКРФ:!1,ГКРФ:!1,ТКРФ:!1,"Федеральный закон":!1,"Письмо Минфина":!1,"Письмо ФНС":!1,"Приказ ФНС":!1,"Постановление Правительства":!1,"Судебный документ":!1,ВНД:!1,"Бухгалтерский документ":!1}};function h(c={}){return{...d,...c,categories:{...d.categories,...c.categories||{}}}}class u{abbreviationDict;data;dataPreProcessed;allRefs;patterns;refCollections;constructor(){this.data={},this.dataPreProcessed={},this.allRefs={},this.abbreviationDict=this.createAbbreviationDict(),this.refCollections=this.createRefCollections(),this.patterns=this.createPatterns()}createAbbreviationDict(){return{"Министерством Финансов":"Минфина","Министерство Финансов":"Минфина","Министерства Финансов":"Минфина","Министерству Финансов":"Минфина","Министерстве Финансов":"Минфина","Налоговый кодекс":"НК","Налоговому кодексу":"НК","Налоговым кодексом":"НК","Налоговом кодексе":"НК","Налогового кодекса":"НК","Трудовой кодекс":"ТК","Трудовым кодексом":"ТК","Трудового кодекса":"ТК","Трудовому кодексу":"ТК","Трудовом кодексе":"ТК","Гражданский кодекс":"ГК","Гражданским кодексом":"ГК","Гражданского кодекса":"ГК","Гражданскому кодексу":"ГК","Гражданском кодексе":"ГК","Российская Федерация":"РФ","Российской Федерацией":"РФ","Российской Федерации":"РФ","Российскую Федерацию":"РФ","Федеральная налоговая служба":"ФНС","Федеральной налоговой службы":"ФНС","Федеральной налоговой службе":"ФНС","Федеральную налоговую службу":"ФНС","Федеральной налоговой службой":"ФНС",N:"№",Статьей:"ст.",Статьёй:"ст.",статьей:"ст.",статьёй:"ст.",Статья:"ст.",Статьи:"ст.",Статье:"ст.",Статью:"ст.",статья:"ст.",статьи:"ст.",статье:"ст.",статью:"ст.",Подпунктом:"пп.",подпунктом:"пп.",Подпункта:"пп.",подпункта:"пп.",Подпункту:"пп.",подпункту:"пп.",Подпункте:"пп.",подпункте:"пп.",Подпункт:"пп.",подпункт:"пп.",Пунктом:"п.",пунктом:"п.",Пункта:"п.",пункта:"п.",Пункту:"п.",пункту:"п.",Пункте:"п.",пункте:"п.",Пункт:"п.",пункт:"п.",Приказа:"Приказ",Приказом:"Приказ",Приказу:"Приказ",Приказе:"Приказ",приказа:"Приказ",приказом:"Приказ",приказу:"Приказ",приказе:"Приказ",приказ:"Приказ",Письмом:"Письмо",Письму:"Письмо",Письма:"Письмо",Письме:"Письмо",письмом:"Письмо",письмо:"Письмо",письму:"Письмо",письма:"Письмо",письме:"Письмо",Постановлением:"Постановление",Постановления:"Постановление",Постановлению:"Постановление",Постановлении:"Постановление",постановлением:"Постановление",постановление:"Постановление",постановления:"Постановление",постановлению:"Постановление",постановлении:"Постановление",абзацем:"абз.",абзацу:"абз.",абзацами:"абз.",абзацы:"абз.",Положения:"Положение",Положению:"Положение"}}createRefCollections(){return{"НК РФ":{},"ГК РФ":{},"ТК РФ":{},"Федеральные законы":{},"Письма Минфина":{},"Приказы Минфина":{},"Письма ФНС":{},"Приказы ФНС":{},"Постановления Правительства":{}}}createPatterns(){return{"НК РФ":{pattern:/(?:[Пп]п\.\s*(?:\d+(?:\.\d+)*)\s*)?(?:[Пп]\.\s*(?:\d+(?:\.\д+)*)\s*)?[Сс]т\.\с*(?:\д+(?:\.\д+)*) НК\s*РФ/g,postProcess:this.postReplace},"ГК РФ":{pattern:/(?:[Пп]п\.\с*(?:\д+(?:\.\д+)*)\с*)?(?:[Пп]\.\с*(?:\д+(?:\.\д+)*)\с*)?[Сс]т\.\с*(?:\д+(?:\.\д+)*) ГК\s*РФ/g,postProcess:this.postReplace},"ТК РФ":{pattern:/(?:[Пп]п\.\с*(?:\д+(?:\.\д+)*)\с*)?(?:[Пп]\.\с*(?:\д+(?:\.\д+)*)\с*)?[Сс]т\.\с*(?:\д+(?:\.\д+)*) ТК\s*РФ/g,postProcess:this.postReplace},"Федеральные законы":{pattern:/от (?:\д{2}\.\д{2}\.\д{4}|\д{1,2} \в+ \д{4} г\.) № \д+-ФЗ/g,postProcess:this.postProcessLaw},"Письма Минфина":{pattern:/от (?:\д{2}\.\д{2}\.\д{4}|\д{1,2} \в+ \д{4} г\.) № \д{2}-\д{2}-\д{2}\/\д+/g,postProcess:this.postProcessMinfinLetter},"Приказы Минфина":{pattern:/Приказ Минфина (?:РФ|России) от (?:\д{2}\.\д{2}\.\д{4}|\д{1,2} \в+ \д{4} г\.) № [а-я0-9]+/g,postProcess:e=>e},"Письма ФНС":{pattern:/Письмо ФНС (?:РФ|России) от (?:\д{2}\.\д{2}\.\д{4}|\д{1,2} \в+ \д{4} г\.) № [А-Яа-яA-Za-z0-9-]+\/\д+/g,postProcess:e=>e},"Приказы ФНС":{pattern:/Приказ ФНС (?:РФ|России) от (?:\д{2}\.\д{2}\.\д{4}|\д{1,2} \в+ \д{4} г\.) № [А-Яа-яA-Za-z0-9-]+\/\д+/g,postProcess:this.postProcessFNSOrder},"Постановления Правительства":{pattern:/Постановление Правительства (?:РФ|России) от (?:\д{2}\.\д{2}\.\д{4}|\д{1,2} \в+ \д{4} г\.) № \д+/g,postProcess:e=>e},ВНД:{pattern:/п\.\d+\s*(?=.*\(ВНД\))/g,postProcess:this.postReplace}}}postProcessFNSOrder(e){const s=e.split(" ");return s[0]="Приказ",s[1]="ФНС",s[2]="РФ",s.join(" ")}postProcessLaw(e){return`Федеральный закон ${e}`}postProcessMinfinLetter(e){return`Письмо Минфина ${e}`}preprocessData(){Object.entries(this.data).forEach(([e,s])=>{this.dataPreProcessed[e]=this.replaceWithAbbreviations(s.expert_answer)})}replaceWithAbbreviations(e){return Object.entries(this.abbreviationDict).forEach(([s,t])=>{const n=new RegExp(s.replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1"),"g");e=e.replace(n,t)}),e}postReplace(e){return e=e.replaceAll("НК РФ","НКРФ"),e=e.replaceAll("ТК РФ","ТКРФ"),e=e.replaceAll("ГК РФ","ГКРФ"),e=e.replaceAll("п. ","п."),e=e.replaceAll("пп. ","пп."),e=e.replaceAll("ст. ","ст."),e=e.replaceAll("абз. ","абз."),e}addKeyToDict(e,s,t){e[s]?e[s]=[...e[s],...t]:e[s]=t}processMatches(e,s,t,n,o){const r=o.match(e);if(r&&r.length>0){const a=r.map(t),l=[...new Set(a)];this.addKeyToDict(s,n,l)}}processAllMatches(){Object.entries(this.dataPreProcessed).forEach(([e,s])=>{Object.entries(this.patterns).forEach(([t,{pattern:n,postProcess:o}])=>{this.processMatches(n,this.refCollections[t],o,e,s)})})}printResults(){}mergeAllRefs(){Object.values(this.refCollections).forEach(e=>{Object.entries(e).forEach(([s,t])=>{this.allRefs[s]?this.allRefs[s]=[...this.allRefs[s],...t]:this.allRefs[s]=t})})}getProcessedData(){const e={};return Object.entries(this.data).forEach(([s,t])=>{e[s]={title:t.title,question:t.question,expert_answer:t.expert_answer,refs:this.allRefs[s]?this.allRefs[s]:[]}}),e}}const g=async(c,e)=>{const s=h(c),t=await fetch("/search",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s),signal:e.signal});if(!t.ok)throw new Error(`Failed to fetch search results: ${t.statusText}`);const n=await t.json();let o=null;return n.results!=null?(o=n.results,o=i.identifyDocumentType(o),o.map(r=>r.teaser=r.text_for_llm||r.teaser)):o=[],{searchResults:o,relevantConsultations:n.consultations||[],explanations:n.explanations,transactionMaps:n.transactionMapResults,modifiedQuery:n?.query,metrics:n?.metrics}},T=async(c,e)=>{let s=c;const t=new u;s=t.replaceWithAbbreviations(s),s=t.postReplace(s);function n(r){return r=r.replace(/пп\.(\d+(\.\d+)?)/,"п.$1"),r.replace(/([Пп]\.?\s?\d+(\.\d+)?)\s[Пп]\.\d+/g,"$1")}let o=e.filter(r=>{const a=n(r.title);return s.indexOf(a)>-1});return{modifiedText:s,searchResults:o}},D={doRequest:g,extractUsedSearchResults:T};export{d as D,D as S,h as a,i as b,P as c,y as g}; diff --git a/build/client/_app/immutable/chunks/SearchUtils.xXGeXQj6.js b/build/client/_app/immutable/chunks/SearchUtils.dqpKCG0P.js similarity index 99% rename from build/client/_app/immutable/chunks/SearchUtils.xXGeXQj6.js rename to build/client/_app/immutable/chunks/SearchUtils.dqpKCG0P.js index bc242101d7dce1714129fc73045f832e6bbe2d98..e8a5309a111e0f8a7f9269b314bc30da70f961a1 100644 --- a/build/client/_app/immutable/chunks/SearchUtils.xXGeXQj6.js +++ b/build/client/_app/immutable/chunks/SearchUtils.dqpKCG0P.js @@ -1,4 +1,4 @@ -import"./index.7IiDzEZn.js";import"./ProgressBar.svelte_svelte_type_style_lang.7yc35pDe.js";globalThis.__sveltekit_j71nnb.env;class i{static findDateInText(e){const s=/\b\d{1,2}\.\d{1,2}\.\d{4}\b/g,t=e.match(s);if(t&&t.length>0){const n=t[0],[o,r,a]=n.split(".").map(Number);return new Date(a,r-1,o)}return null}static sortByRelevanceAndDate(e){return e.sort((s,t)=>{const n=t.relevance-s.relevance;if(n!==0)return n;const o=i.findDateInText(s.title),r=i.findDateInText(t.title);return o&&r?r.getTime()-o.getTime():o?-1:r?1:0})}static sortByDate(e){const s=e.filter(a=>i.findDateInText(a.title)),t=e.filter(a=>!i.findDateInText(a.title)),n=s.sort((a,l)=>{const p=i.findDateInText(a.title),f=i.findDateInText(l.title);return p&&f?f.getTime()-p.getTime():p?-1:f?1:0}),o=[];let r=0;for(const a of e)if(i.findDateInText(a.title)){let l=n.shift();l&&o.push(l)}else o.push(t[r]),r++;return o}static sortByRelevance(e){return e.sort((s,t)=>s.relevance&&t.relevance?t.relevance-s.relevance:s.relevance?-1:t.relevance?1:0)}static identifyDocumentType(e){const s=[{regexp:/(ФАС |АС |КС |ВС |[Сс]удебн|[Сс]уд)|(\(Судебный документ\))/,docType:"Решение суда"},{regexp:/[Пп]исьмо [Мм]инфина/,docType:"Письмо Минфина"},{regexp:/[Пп]исьмо (ФНС|фнс)/,docType:"Письмо ФНС"},{regexp:/(НКРФ)|(НК РФ)/,docType:"Налоговый кодекс"},{regexp:/(ГКРФ)|(ГК РФ)/,docType:"Гражданский кодекс"},{regexp:/(ТКРФ)|(ТК РФ)/,docType:"Трудовой кодекс"},{regexp:/Приказ ФНС РФ/,docType:"Приказ ФНС РФ"},{regexp:/Постановление Правительства РФ/,docType:"Постановление Правительства РФ"},{regexp:/Решение Коллегии Евразийской экономической комиссии/,docType:"Решение Коллегии ЕЭК"},{regexp:/Федеральный закон/,docType:"Федеральные законы"},{regexp:/\(Внутренний документ\)|\(ВНД\)/,docType:"Внутренние документы"}];return e.map(t=>{for(const{regexp:n,docType:o}of s)if(n.test(t.title))return t.docType=o,t;return t.docType="Другие документы",t})}static mergeResultsByTitle(e){const s=/(ст\.\d+)\s(НКРФ|НК РФ|ГКРФ|ГК РФ|ТКРФ|ТК РФ)$/,t={},n=[],o=r=>{const a=r.match(s);return a?a[0]:null};return e.forEach(r=>{const a=o(r.title);if(a)if(t[a]){t[a].relevance=Math.max(t[a].relevance,r.relevance);const l=t[a].title.match(/п[\w\.]+/g)||[],p=r.title.match(/п[\w\.]+/g)||[],f=[...new Set([...l,...p])].join(", ");t[a].title=`${f} ст.${a.split(" ")[0].split(".")[1]} ${a.split(" ")[1]}`,t[a].text+=` +import"./index.7IiDzEZn.js";import"./ProgressBar.svelte_svelte_type_style_lang.7yc35pDe.js";globalThis.__sveltekit_smfpmf.env;class i{static findDateInText(e){const s=/\b\d{1,2}\.\d{1,2}\.\d{4}\b/g,t=e.match(s);if(t&&t.length>0){const n=t[0],[o,r,a]=n.split(".").map(Number);return new Date(a,r-1,o)}return null}static sortByRelevanceAndDate(e){return e.sort((s,t)=>{const n=t.relevance-s.relevance;if(n!==0)return n;const o=i.findDateInText(s.title),r=i.findDateInText(t.title);return o&&r?r.getTime()-o.getTime():o?-1:r?1:0})}static sortByDate(e){const s=e.filter(a=>i.findDateInText(a.title)),t=e.filter(a=>!i.findDateInText(a.title)),n=s.sort((a,l)=>{const p=i.findDateInText(a.title),f=i.findDateInText(l.title);return p&&f?f.getTime()-p.getTime():p?-1:f?1:0}),o=[];let r=0;for(const a of e)if(i.findDateInText(a.title)){let l=n.shift();l&&o.push(l)}else o.push(t[r]),r++;return o}static sortByRelevance(e){return e.sort((s,t)=>s.relevance&&t.relevance?t.relevance-s.relevance:s.relevance?-1:t.relevance?1:0)}static identifyDocumentType(e){const s=[{regexp:/(ФАС |АС |КС |ВС |[Сс]удебн|[Сс]уд)|(\(Судебный документ\))/,docType:"Решение суда"},{regexp:/[Пп]исьмо [Мм]инфина/,docType:"Письмо Минфина"},{regexp:/[Пп]исьмо (ФНС|фнс)/,docType:"Письмо ФНС"},{regexp:/(НКРФ)|(НК РФ)/,docType:"Налоговый кодекс"},{regexp:/(ГКРФ)|(ГК РФ)/,docType:"Гражданский кодекс"},{regexp:/(ТКРФ)|(ТК РФ)/,docType:"Трудовой кодекс"},{regexp:/Приказ ФНС РФ/,docType:"Приказ ФНС РФ"},{regexp:/Постановление Правительства РФ/,docType:"Постановление Правительства РФ"},{regexp:/Решение Коллегии Евразийской экономической комиссии/,docType:"Решение Коллегии ЕЭК"},{regexp:/Федеральный закон/,docType:"Федеральные законы"},{regexp:/\(Внутренний документ\)|\(ВНД\)/,docType:"Внутренние документы"}];return e.map(t=>{for(const{regexp:n,docType:o}of s)if(n.test(t.title))return t.docType=o,t;return t.docType="Другие документы",t})}static mergeResultsByTitle(e){const s=/(ст\.\d+)\s(НКРФ|НК РФ|ГКРФ|ГК РФ|ТКРФ|ТК РФ)$/,t={},n=[],o=r=>{const a=r.match(s);return a?a[0]:null};return e.forEach(r=>{const a=o(r.title);if(a)if(t[a]){t[a].relevance=Math.max(t[a].relevance,r.relevance);const l=t[a].title.match(/п[\w\.]+/g)||[],p=r.title.match(/п[\w\.]+/g)||[],f=[...new Set([...l,...p])].join(", ");t[a].title=`${f} ст.${a.split(" ")[0].split(".")[1]} ${a.split(" ")[1]}`,t[a].text+=` ${r.title} ${r.text}`,r.text_for_llm&&(t[a].text_for_llm+=` ${r.title} diff --git a/build/client/_app/immutable/chunks/SearchUtils.q3m09ZIX.js b/build/client/_app/immutable/chunks/SearchUtils.q3m09ZIX.js deleted file mode 100644 index e2fdc60532533456053242ca6a46c6b6dc0c5fc0..0000000000000000000000000000000000000000 --- a/build/client/_app/immutable/chunks/SearchUtils.q3m09ZIX.js +++ /dev/null @@ -1,5 +0,0 @@ -import"./index.7IiDzEZn.js";import"./ProgressBar.svelte_svelte_type_style_lang.7yc35pDe.js";globalThis.__sveltekit_1opi8oi.env;class i{static findDateInText(e){const s=/\b\d{1,2}\.\d{1,2}\.\d{4}\b/g,t=e.match(s);if(t&&t.length>0){const n=t[0],[o,r,a]=n.split(".").map(Number);return new Date(a,r-1,o)}return null}static sortByRelevanceAndDate(e){return e.sort((s,t)=>{const n=t.relevance-s.relevance;if(n!==0)return n;const o=i.findDateInText(s.title),r=i.findDateInText(t.title);return o&&r?r.getTime()-o.getTime():o?-1:r?1:0})}static sortByDate(e){const s=e.filter(a=>i.findDateInText(a.title)),t=e.filter(a=>!i.findDateInText(a.title)),n=s.sort((a,l)=>{const p=i.findDateInText(a.title),f=i.findDateInText(l.title);return p&&f?f.getTime()-p.getTime():p?-1:f?1:0}),o=[];let r=0;for(const a of e)if(i.findDateInText(a.title)){let l=n.shift();l&&o.push(l)}else o.push(t[r]),r++;return o}static sortByRelevance(e){return e.sort((s,t)=>s.relevance&&t.relevance?t.relevance-s.relevance:s.relevance?-1:t.relevance?1:0)}static identifyDocumentType(e){const s=[{regexp:/(ФАС |АС |КС |ВС |[Сс]удебн|[Сс]уд)|(\(Судебный документ\))/,docType:"Решение суда"},{regexp:/[Пп]исьмо [Мм]инфина/,docType:"Письмо Минфина"},{regexp:/[Пп]исьмо (ФНС|фнс)/,docType:"Письмо ФНС"},{regexp:/(НКРФ)|(НК РФ)/,docType:"Налоговый кодекс"},{regexp:/(ГКРФ)|(ГК РФ)/,docType:"Гражданский кодекс"},{regexp:/(ТКРФ)|(ТК РФ)/,docType:"Трудовой кодекс"},{regexp:/Приказ ФНС РФ/,docType:"Приказ ФНС РФ"},{regexp:/Постановление Правительства РФ/,docType:"Постановление Правительства РФ"},{regexp:/Решение Коллегии Евразийской экономической комиссии/,docType:"Решение Коллегии ЕЭК"},{regexp:/Федеральный закон/,docType:"Федеральные законы"},{regexp:/\(Внутренний документ\)|\(ВНД\)/,docType:"Внутренние документы"}];return e.map(t=>{for(const{regexp:n,docType:o}of s)if(n.test(t.title))return t.docType=o,t;return t.docType="Другие документы",t})}static mergeResultsByTitle(e){const s=/(ст\.\d+)\s(НКРФ|НК РФ|ГКРФ|ГК РФ|ТКРФ|ТК РФ)$/,t={},n=[],o=r=>{const a=r.match(s);return a?a[0]:null};return e.forEach(r=>{const a=o(r.title);if(a)if(t[a]){t[a].relevance=Math.max(t[a].relevance,r.relevance);const l=t[a].title.match(/п[\w\.]+/g)||[],p=r.title.match(/п[\w\.]+/g)||[],f=[...new Set([...l,...p])].join(", ");t[a].title=`${f} ст.${a.split(" ")[0].split(".")[1]} ${a.split(" ")[1]}`,t[a].text+=` -${r.title} -${r.text}`,r.text_for_llm&&(t[a].text_for_llm+=` -${r.title} -${r.text_for_llm}`)}else t[a]={...r};else n.push(r)}),Object.keys(t).forEach(r=>{n.push(t[r])}),n}}var P=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function y(c){return c&&c.__esModule&&Object.prototype.hasOwnProperty.call(c,"default")?c.default:c}const d={query:"",use_qe:!1,use_olympic:!1,find_transaction_maps_by_question:!1,find_transaction_maps_by_operation:!1,categories:{НКРФ:!1,ГКРФ:!1,ТКРФ:!1,"Федеральный закон":!1,"Письмо Минфина":!1,"Письмо ФНС":!1,"Приказ ФНС":!1,"Постановление Правительства":!1,"Судебный документ":!1,ВНД:!1,"Бухгалтерский документ":!1}};function h(c={}){return{...d,...c,categories:{...d.categories,...c.categories||{}}}}class u{abbreviationDict;data;dataPreProcessed;allRefs;patterns;refCollections;constructor(){this.data={},this.dataPreProcessed={},this.allRefs={},this.abbreviationDict=this.createAbbreviationDict(),this.refCollections=this.createRefCollections(),this.patterns=this.createPatterns()}createAbbreviationDict(){return{"Министерством Финансов":"Минфина","Министерство Финансов":"Минфина","Министерства Финансов":"Минфина","Министерству Финансов":"Минфина","Министерстве Финансов":"Минфина","Налоговый кодекс":"НК","Налоговому кодексу":"НК","Налоговым кодексом":"НК","Налоговом кодексе":"НК","Налогового кодекса":"НК","Трудовой кодекс":"ТК","Трудовым кодексом":"ТК","Трудового кодекса":"ТК","Трудовому кодексу":"ТК","Трудовом кодексе":"ТК","Гражданский кодекс":"ГК","Гражданским кодексом":"ГК","Гражданского кодекса":"ГК","Гражданскому кодексу":"ГК","Гражданском кодексе":"ГК","Российская Федерация":"РФ","Российской Федерацией":"РФ","Российской Федерации":"РФ","Российскую Федерацию":"РФ","Федеральная налоговая служба":"ФНС","Федеральной налоговой службы":"ФНС","Федеральной налоговой службе":"ФНС","Федеральную налоговую службу":"ФНС","Федеральной налоговой службой":"ФНС",N:"№",Статьей:"ст.",Статьёй:"ст.",статьей:"ст.",статьёй:"ст.",Статья:"ст.",Статьи:"ст.",Статье:"ст.",Статью:"ст.",статья:"ст.",статьи:"ст.",статье:"ст.",статью:"ст.",Подпунктом:"пп.",подпунктом:"пп.",Подпункта:"пп.",подпункта:"пп.",Подпункту:"пп.",подпункту:"пп.",Подпункте:"пп.",подпункте:"пп.",Подпункт:"пп.",подпункт:"пп.",Пунктом:"п.",пунктом:"п.",Пункта:"п.",пункта:"п.",Пункту:"п.",пункту:"п.",Пункте:"п.",пункте:"п.",Пункт:"п.",пункт:"п.",Приказа:"Приказ",Приказом:"Приказ",Приказу:"Приказ",Приказе:"Приказ",приказа:"Приказ",приказом:"Приказ",приказу:"Приказ",приказе:"Приказ",приказ:"Приказ",Письмом:"Письмо",Письму:"Письмо",Письма:"Письмо",Письме:"Письмо",письмом:"Письмо",письмо:"Письмо",письму:"Письмо",письма:"Письмо",письме:"Письмо",Постановлением:"Постановление",Постановления:"Постановление",Постановлению:"Постановление",Постановлении:"Постановление",постановлением:"Постановление",постановление:"Постановление",постановления:"Постановление",постановлению:"Постановление",постановлении:"Постановление",абзацем:"абз.",абзацу:"абз.",абзацами:"абз.",абзацы:"абз.",Положения:"Положение",Положению:"Положение"}}createRefCollections(){return{"НК РФ":{},"ГК РФ":{},"ТК РФ":{},"Федеральные законы":{},"Письма Минфина":{},"Приказы Минфина":{},"Письма ФНС":{},"Приказы ФНС":{},"Постановления Правительства":{}}}createPatterns(){return{"НК РФ":{pattern:/(?:[Пп]п\.\s*(?:\d+(?:\.\d+)*)\s*)?(?:[Пп]\.\s*(?:\d+(?:\.\д+)*)\s*)?[Сс]т\.\с*(?:\д+(?:\.\д+)*) НК\s*РФ/g,postProcess:this.postReplace},"ГК РФ":{pattern:/(?:[Пп]п\.\с*(?:\д+(?:\.\д+)*)\с*)?(?:[Пп]\.\с*(?:\д+(?:\.\д+)*)\с*)?[Сс]т\.\с*(?:\д+(?:\.\д+)*) ГК\s*РФ/g,postProcess:this.postReplace},"ТК РФ":{pattern:/(?:[Пп]п\.\с*(?:\д+(?:\.\д+)*)\с*)?(?:[Пп]\.\с*(?:\д+(?:\.\д+)*)\с*)?[Сс]т\.\с*(?:\д+(?:\.\д+)*) ТК\s*РФ/g,postProcess:this.postReplace},"Федеральные законы":{pattern:/от (?:\д{2}\.\д{2}\.\д{4}|\д{1,2} \в+ \д{4} г\.) № \д+-ФЗ/g,postProcess:this.postProcessLaw},"Письма Минфина":{pattern:/от (?:\д{2}\.\д{2}\.\д{4}|\д{1,2} \в+ \д{4} г\.) № \д{2}-\д{2}-\д{2}\/\д+/g,postProcess:this.postProcessMinfinLetter},"Приказы Минфина":{pattern:/Приказ Минфина (?:РФ|России) от (?:\д{2}\.\д{2}\.\д{4}|\д{1,2} \в+ \д{4} г\.) № [а-я0-9]+/g,postProcess:e=>e},"Письма ФНС":{pattern:/Письмо ФНС (?:РФ|России) от (?:\д{2}\.\д{2}\.\д{4}|\д{1,2} \в+ \д{4} г\.) № [А-Яа-яA-Za-z0-9-]+\/\д+/g,postProcess:e=>e},"Приказы ФНС":{pattern:/Приказ ФНС (?:РФ|России) от (?:\д{2}\.\д{2}\.\д{4}|\д{1,2} \в+ \д{4} г\.) № [А-Яа-яA-Za-z0-9-]+\/\д+/g,postProcess:this.postProcessFNSOrder},"Постановления Правительства":{pattern:/Постановление Правительства (?:РФ|России) от (?:\д{2}\.\д{2}\.\д{4}|\д{1,2} \в+ \д{4} г\.) № \д+/g,postProcess:e=>e},ВНД:{pattern:/п\.\d+\s*(?=.*\(ВНД\))/g,postProcess:this.postReplace}}}postProcessFNSOrder(e){const s=e.split(" ");return s[0]="Приказ",s[1]="ФНС",s[2]="РФ",s.join(" ")}postProcessLaw(e){return`Федеральный закон ${e}`}postProcessMinfinLetter(e){return`Письмо Минфина ${e}`}preprocessData(){Object.entries(this.data).forEach(([e,s])=>{this.dataPreProcessed[e]=this.replaceWithAbbreviations(s.expert_answer)})}replaceWithAbbreviations(e){return Object.entries(this.abbreviationDict).forEach(([s,t])=>{const n=new RegExp(s.replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1"),"g");e=e.replace(n,t)}),e}postReplace(e){return e=e.replaceAll("НК РФ","НКРФ"),e=e.replaceAll("ТК РФ","ТКРФ"),e=e.replaceAll("ГК РФ","ГКРФ"),e=e.replaceAll("п. ","п."),e=e.replaceAll("пп. ","пп."),e=e.replaceAll("ст. ","ст."),e=e.replaceAll("абз. ","абз."),e}addKeyToDict(e,s,t){e[s]?e[s]=[...e[s],...t]:e[s]=t}processMatches(e,s,t,n,o){const r=o.match(e);if(r&&r.length>0){const a=r.map(t),l=[...new Set(a)];this.addKeyToDict(s,n,l)}}processAllMatches(){Object.entries(this.dataPreProcessed).forEach(([e,s])=>{Object.entries(this.patterns).forEach(([t,{pattern:n,postProcess:o}])=>{this.processMatches(n,this.refCollections[t],o,e,s)})})}printResults(){}mergeAllRefs(){Object.values(this.refCollections).forEach(e=>{Object.entries(e).forEach(([s,t])=>{this.allRefs[s]?this.allRefs[s]=[...this.allRefs[s],...t]:this.allRefs[s]=t})})}getProcessedData(){const e={};return Object.entries(this.data).forEach(([s,t])=>{e[s]={title:t.title,question:t.question,expert_answer:t.expert_answer,refs:this.allRefs[s]?this.allRefs[s]:[]}}),e}}const g=async(c,e)=>{const s=h(c),t=await fetch("/search",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s),signal:e.signal});if(!t.ok)throw new Error(`Failed to fetch search results: ${t.statusText}`);const n=await t.json();let o=null;return n.results!=null?(o=n.results,o=i.identifyDocumentType(o),o.map(r=>r.teaser=r.text_for_llm||r.teaser)):o=[],{searchResults:o,relevantConsultations:n.consultations||[],explanations:n.explanations,transactionMaps:n.transactionMapResults,modifiedQuery:n?.query,metrics:n?.metrics}},T=async(c,e)=>{let s=c;const t=new u;s=t.replaceWithAbbreviations(s),s=t.postReplace(s);function n(r){return r=r.replace(/пп\.(\d+(\.\d+)?)/,"п.$1"),r.replace(/([Пп]\.?\s?\d+(\.\d+)?)\s[Пп]\.\d+/g,"$1")}let o=e.filter(r=>{const a=n(r.title);return s.indexOf(a)>-1});return{modifiedText:s,searchResults:o}},D={doRequest:g,extractUsedSearchResults:T};export{d as D,D as S,h as a,i as b,P as c,y as g}; diff --git a/build/client/_app/immutable/chunks/SearchUtils.tAbMbmlw.js b/build/client/_app/immutable/chunks/SearchUtils.tAbMbmlw.js deleted file mode 100644 index c0b25fce96fa514974cd5158dc343870adb50e7a..0000000000000000000000000000000000000000 --- a/build/client/_app/immutable/chunks/SearchUtils.tAbMbmlw.js +++ /dev/null @@ -1,5 +0,0 @@ -import"./index.7IiDzEZn.js";import"./ProgressBar.svelte_svelte_type_style_lang.7yc35pDe.js";globalThis.__sveltekit_q3nw9i.env;class i{static findDateInText(e){const s=/\b\d{1,2}\.\d{1,2}\.\d{4}\b/g,t=e.match(s);if(t&&t.length>0){const n=t[0],[o,r,a]=n.split(".").map(Number);return new Date(a,r-1,o)}return null}static sortByRelevanceAndDate(e){return e.sort((s,t)=>{const n=t.relevance-s.relevance;if(n!==0)return n;const o=i.findDateInText(s.title),r=i.findDateInText(t.title);return o&&r?r.getTime()-o.getTime():o?-1:r?1:0})}static sortByDate(e){const s=e.filter(a=>i.findDateInText(a.title)),t=e.filter(a=>!i.findDateInText(a.title)),n=s.sort((a,l)=>{const p=i.findDateInText(a.title),f=i.findDateInText(l.title);return p&&f?f.getTime()-p.getTime():p?-1:f?1:0}),o=[];let r=0;for(const a of e)if(i.findDateInText(a.title)){let l=n.shift();l&&o.push(l)}else o.push(t[r]),r++;return o}static sortByRelevance(e){return e.sort((s,t)=>s.relevance&&t.relevance?t.relevance-s.relevance:s.relevance?-1:t.relevance?1:0)}static identifyDocumentType(e){const s=[{regexp:/(ФАС |АС |КС |ВС |[Сс]удебн|[Сс]уд)|(\(Судебный документ\))/,docType:"Решение суда"},{regexp:/[Пп]исьмо [Мм]инфина/,docType:"Письмо Минфина"},{regexp:/[Пп]исьмо (ФНС|фнс)/,docType:"Письмо ФНС"},{regexp:/(НКРФ)|(НК РФ)/,docType:"Налоговый кодекс"},{regexp:/(ГКРФ)|(ГК РФ)/,docType:"Гражданский кодекс"},{regexp:/(ТКРФ)|(ТК РФ)/,docType:"Трудовой кодекс"},{regexp:/Приказ ФНС РФ/,docType:"Приказ ФНС РФ"},{regexp:/Постановление Правительства РФ/,docType:"Постановление Правительства РФ"},{regexp:/Решение Коллегии Евразийской экономической комиссии/,docType:"Решение Коллегии ЕЭК"},{regexp:/Федеральный закон/,docType:"Федеральные законы"},{regexp:/\(Внутренний документ\)|\(ВНД\)/,docType:"Внутренние документы"}];return e.map(t=>{for(const{regexp:n,docType:o}of s)if(n.test(t.title))return t.docType=o,t;return t.docType="Другие документы",t})}static mergeResultsByTitle(e){const s=/(ст\.\d+)\s(НКРФ|НК РФ|ГКРФ|ГК РФ|ТКРФ|ТК РФ)$/,t={},n=[],o=r=>{const a=r.match(s);return a?a[0]:null};return e.forEach(r=>{const a=o(r.title);if(a)if(t[a]){t[a].relevance=Math.max(t[a].relevance,r.relevance);const l=t[a].title.match(/п[\w\.]+/g)||[],p=r.title.match(/п[\w\.]+/g)||[],f=[...new Set([...l,...p])].join(", ");t[a].title=`${f} ст.${a.split(" ")[0].split(".")[1]} ${a.split(" ")[1]}`,t[a].text+=` -${r.title} -${r.text}`,r.text_for_llm&&(t[a].text_for_llm+=` -${r.title} -${r.text_for_llm}`)}else t[a]={...r};else n.push(r)}),Object.keys(t).forEach(r=>{n.push(t[r])}),n}}var P=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function y(c){return c&&c.__esModule&&Object.prototype.hasOwnProperty.call(c,"default")?c.default:c}const d={query:"",use_qe:!1,use_olympic:!1,find_transaction_maps_by_question:!1,find_transaction_maps_by_operation:!1,categories:{НКРФ:!1,ГКРФ:!1,ТКРФ:!1,"Федеральный закон":!1,"Письмо Минфина":!1,"Письмо ФНС":!1,"Приказ ФНС":!1,"Постановление Правительства":!1,"Судебный документ":!1,ВНД:!1,"Бухгалтерский документ":!1}};function h(c={}){return{...d,...c,categories:{...d.categories,...c.categories||{}}}}class u{abbreviationDict;data;dataPreProcessed;allRefs;patterns;refCollections;constructor(){this.data={},this.dataPreProcessed={},this.allRefs={},this.abbreviationDict=this.createAbbreviationDict(),this.refCollections=this.createRefCollections(),this.patterns=this.createPatterns()}createAbbreviationDict(){return{"Министерством Финансов":"Минфина","Министерство Финансов":"Минфина","Министерства Финансов":"Минфина","Министерству Финансов":"Минфина","Министерстве Финансов":"Минфина","Налоговый кодекс":"НК","Налоговому кодексу":"НК","Налоговым кодексом":"НК","Налоговом кодексе":"НК","Налогового кодекса":"НК","Трудовой кодекс":"ТК","Трудовым кодексом":"ТК","Трудового кодекса":"ТК","Трудовому кодексу":"ТК","Трудовом кодексе":"ТК","Гражданский кодекс":"ГК","Гражданским кодексом":"ГК","Гражданского кодекса":"ГК","Гражданскому кодексу":"ГК","Гражданском кодексе":"ГК","Российская Федерация":"РФ","Российской Федерацией":"РФ","Российской Федерации":"РФ","Российскую Федерацию":"РФ","Федеральная налоговая служба":"ФНС","Федеральной налоговой службы":"ФНС","Федеральной налоговой службе":"ФНС","Федеральную налоговую службу":"ФНС","Федеральной налоговой службой":"ФНС",N:"№",Статьей:"ст.",Статьёй:"ст.",статьей:"ст.",статьёй:"ст.",Статья:"ст.",Статьи:"ст.",Статье:"ст.",Статью:"ст.",статья:"ст.",статьи:"ст.",статье:"ст.",статью:"ст.",Подпунктом:"пп.",подпунктом:"пп.",Подпункта:"пп.",подпункта:"пп.",Подпункту:"пп.",подпункту:"пп.",Подпункте:"пп.",подпункте:"пп.",Подпункт:"пп.",подпункт:"пп.",Пунктом:"п.",пунктом:"п.",Пункта:"п.",пункта:"п.",Пункту:"п.",пункту:"п.",Пункте:"п.",пункте:"п.",Пункт:"п.",пункт:"п.",Приказа:"Приказ",Приказом:"Приказ",Приказу:"Приказ",Приказе:"Приказ",приказа:"Приказ",приказом:"Приказ",приказу:"Приказ",приказе:"Приказ",приказ:"Приказ",Письмом:"Письмо",Письму:"Письмо",Письма:"Письмо",Письме:"Письмо",письмом:"Письмо",письмо:"Письмо",письму:"Письмо",письма:"Письмо",письме:"Письмо",Постановлением:"Постановление",Постановления:"Постановление",Постановлению:"Постановление",Постановлении:"Постановление",постановлением:"Постановление",постановление:"Постановление",постановления:"Постановление",постановлению:"Постановление",постановлении:"Постановление",абзацем:"абз.",абзацу:"абз.",абзацами:"абз.",абзацы:"абз.",Положения:"Положение",Положению:"Положение"}}createRefCollections(){return{"НК РФ":{},"ГК РФ":{},"ТК РФ":{},"Федеральные законы":{},"Письма Минфина":{},"Приказы Минфина":{},"Письма ФНС":{},"Приказы ФНС":{},"Постановления Правительства":{}}}createPatterns(){return{"НК РФ":{pattern:/(?:[Пп]п\.\s*(?:\d+(?:\.\d+)*)\s*)?(?:[Пп]\.\s*(?:\d+(?:\.\д+)*)\s*)?[Сс]т\.\с*(?:\д+(?:\.\д+)*) НК\s*РФ/g,postProcess:this.postReplace},"ГК РФ":{pattern:/(?:[Пп]п\.\с*(?:\д+(?:\.\д+)*)\с*)?(?:[Пп]\.\с*(?:\д+(?:\.\д+)*)\с*)?[Сс]т\.\с*(?:\д+(?:\.\д+)*) ГК\s*РФ/g,postProcess:this.postReplace},"ТК РФ":{pattern:/(?:[Пп]п\.\с*(?:\д+(?:\.\д+)*)\с*)?(?:[Пп]\.\с*(?:\д+(?:\.\д+)*)\с*)?[Сс]т\.\с*(?:\д+(?:\.\д+)*) ТК\s*РФ/g,postProcess:this.postReplace},"Федеральные законы":{pattern:/от (?:\д{2}\.\д{2}\.\д{4}|\д{1,2} \в+ \д{4} г\.) № \д+-ФЗ/g,postProcess:this.postProcessLaw},"Письма Минфина":{pattern:/от (?:\д{2}\.\д{2}\.\д{4}|\д{1,2} \в+ \д{4} г\.) № \д{2}-\д{2}-\д{2}\/\д+/g,postProcess:this.postProcessMinfinLetter},"Приказы Минфина":{pattern:/Приказ Минфина (?:РФ|России) от (?:\д{2}\.\д{2}\.\д{4}|\д{1,2} \в+ \д{4} г\.) № [а-я0-9]+/g,postProcess:e=>e},"Письма ФНС":{pattern:/Письмо ФНС (?:РФ|России) от (?:\д{2}\.\д{2}\.\д{4}|\д{1,2} \в+ \д{4} г\.) № [А-Яа-яA-Za-z0-9-]+\/\д+/g,postProcess:e=>e},"Приказы ФНС":{pattern:/Приказ ФНС (?:РФ|России) от (?:\д{2}\.\д{2}\.\д{4}|\д{1,2} \в+ \д{4} г\.) № [А-Яа-яA-Za-z0-9-]+\/\д+/g,postProcess:this.postProcessFNSOrder},"Постановления Правительства":{pattern:/Постановление Правительства (?:РФ|России) от (?:\д{2}\.\д{2}\.\д{4}|\д{1,2} \в+ \д{4} г\.) № \д+/g,postProcess:e=>e},ВНД:{pattern:/п\.\d+\s*(?=.*\(ВНД\))/g,postProcess:this.postReplace}}}postProcessFNSOrder(e){const s=e.split(" ");return s[0]="Приказ",s[1]="ФНС",s[2]="РФ",s.join(" ")}postProcessLaw(e){return`Федеральный закон ${e}`}postProcessMinfinLetter(e){return`Письмо Минфина ${e}`}preprocessData(){Object.entries(this.data).forEach(([e,s])=>{this.dataPreProcessed[e]=this.replaceWithAbbreviations(s.expert_answer)})}replaceWithAbbreviations(e){return Object.entries(this.abbreviationDict).forEach(([s,t])=>{const n=new RegExp(s.replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1"),"g");e=e.replace(n,t)}),e}postReplace(e){return e=e.replaceAll("НК РФ","НКРФ"),e=e.replaceAll("ТК РФ","ТКРФ"),e=e.replaceAll("ГК РФ","ГКРФ"),e=e.replaceAll("п. ","п."),e=e.replaceAll("пп. ","пп."),e=e.replaceAll("ст. ","ст."),e=e.replaceAll("абз. ","абз."),e}addKeyToDict(e,s,t){e[s]?e[s]=[...e[s],...t]:e[s]=t}processMatches(e,s,t,n,o){const r=o.match(e);if(r&&r.length>0){const a=r.map(t),l=[...new Set(a)];this.addKeyToDict(s,n,l)}}processAllMatches(){Object.entries(this.dataPreProcessed).forEach(([e,s])=>{Object.entries(this.patterns).forEach(([t,{pattern:n,postProcess:o}])=>{this.processMatches(n,this.refCollections[t],o,e,s)})})}printResults(){}mergeAllRefs(){Object.values(this.refCollections).forEach(e=>{Object.entries(e).forEach(([s,t])=>{this.allRefs[s]?this.allRefs[s]=[...this.allRefs[s],...t]:this.allRefs[s]=t})})}getProcessedData(){const e={};return Object.entries(this.data).forEach(([s,t])=>{e[s]={title:t.title,question:t.question,expert_answer:t.expert_answer,refs:this.allRefs[s]?this.allRefs[s]:[]}}),e}}const g=async(c,e)=>{const s=h(c),t=await fetch("/search",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s),signal:e.signal});if(!t.ok)throw new Error(`Failed to fetch search results: ${t.statusText}`);const n=await t.json();let o=null;return n.results!=null?(o=n.results,o=i.identifyDocumentType(o),o.map(r=>r.teaser=r.text_for_llm||r.teaser)):o=[],{searchResults:o,relevantConsultations:n.consultations||[],explanations:n.explanations,transactionMaps:n.transactionMapResults,modifiedQuery:n?.query,metrics:n?.metrics}},T=async(c,e)=>{let s=c;const t=new u;s=t.replaceWithAbbreviations(s),s=t.postReplace(s);function n(r){return r=r.replace(/пп\.(\d+(\.\d+)?)/,"п.$1"),r.replace(/([Пп]\.?\s?\d+(\.\d+)?)\s[Пп]\.\d+/g,"$1")}let o=e.filter(r=>{const a=n(r.title);return s.indexOf(a)>-1});return{modifiedText:s,searchResults:o}},D={doRequest:g,extractUsedSearchResults:T};export{d as D,D as S,h as a,i as b,P as c,y as g}; diff --git a/build/client/_app/immutable/chunks/SearchUtils.uU3AU8rX.js b/build/client/_app/immutable/chunks/SearchUtils.uU3AU8rX.js deleted file mode 100644 index 921795500e77779334e8d0138f7a3f2d0cec3bea..0000000000000000000000000000000000000000 --- a/build/client/_app/immutable/chunks/SearchUtils.uU3AU8rX.js +++ /dev/null @@ -1,5 +0,0 @@ -import"./index.7IiDzEZn.js";import"./ProgressBar.svelte_svelte_type_style_lang.7yc35pDe.js";globalThis.__sveltekit_ufrl13.env;class i{static findDateInText(e){const s=/\b\d{1,2}\.\d{1,2}\.\d{4}\b/g,t=e.match(s);if(t&&t.length>0){const n=t[0],[o,r,a]=n.split(".").map(Number);return new Date(a,r-1,o)}return null}static sortByRelevanceAndDate(e){return e.sort((s,t)=>{const n=t.relevance-s.relevance;if(n!==0)return n;const o=i.findDateInText(s.title),r=i.findDateInText(t.title);return o&&r?r.getTime()-o.getTime():o?-1:r?1:0})}static sortByDate(e){const s=e.filter(a=>i.findDateInText(a.title)),t=e.filter(a=>!i.findDateInText(a.title)),n=s.sort((a,l)=>{const p=i.findDateInText(a.title),f=i.findDateInText(l.title);return p&&f?f.getTime()-p.getTime():p?-1:f?1:0}),o=[];let r=0;for(const a of e)if(i.findDateInText(a.title)){let l=n.shift();l&&o.push(l)}else o.push(t[r]),r++;return o}static sortByRelevance(e){return e.sort((s,t)=>s.relevance&&t.relevance?t.relevance-s.relevance:s.relevance?-1:t.relevance?1:0)}static identifyDocumentType(e){const s=[{regexp:/(ФАС |АС |КС |ВС |[Сс]удебн|[Сс]уд)|(\(Судебный документ\))/,docType:"Решение суда"},{regexp:/[Пп]исьмо [Мм]инфина/,docType:"Письмо Минфина"},{regexp:/[Пп]исьмо (ФНС|фнс)/,docType:"Письмо ФНС"},{regexp:/(НКРФ)|(НК РФ)/,docType:"Налоговый кодекс"},{regexp:/(ГКРФ)|(ГК РФ)/,docType:"Гражданский кодекс"},{regexp:/(ТКРФ)|(ТК РФ)/,docType:"Трудовой кодекс"},{regexp:/Приказ ФНС РФ/,docType:"Приказ ФНС РФ"},{regexp:/Постановление Правительства РФ/,docType:"Постановление Правительства РФ"},{regexp:/Решение Коллегии Евразийской экономической комиссии/,docType:"Решение Коллегии ЕЭК"},{regexp:/Федеральный закон/,docType:"Федеральные законы"},{regexp:/\(Внутренний документ\)|\(ВНД\)/,docType:"Внутренние документы"}];return e.map(t=>{for(const{regexp:n,docType:o}of s)if(n.test(t.title))return t.docType=o,t;return t.docType="Другие документы",t})}static mergeResultsByTitle(e){const s=/(ст\.\d+)\s(НКРФ|НК РФ|ГКРФ|ГК РФ|ТКРФ|ТК РФ)$/,t={},n=[],o=r=>{const a=r.match(s);return a?a[0]:null};return e.forEach(r=>{const a=o(r.title);if(a)if(t[a]){t[a].relevance=Math.max(t[a].relevance,r.relevance);const l=t[a].title.match(/п[\w\.]+/g)||[],p=r.title.match(/п[\w\.]+/g)||[],f=[...new Set([...l,...p])].join(", ");t[a].title=`${f} ст.${a.split(" ")[0].split(".")[1]} ${a.split(" ")[1]}`,t[a].text+=` -${r.title} -${r.text}`,r.text_for_llm&&(t[a].text_for_llm+=` -${r.title} -${r.text_for_llm}`)}else t[a]={...r};else n.push(r)}),Object.keys(t).forEach(r=>{n.push(t[r])}),n}}var P=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function y(c){return c&&c.__esModule&&Object.prototype.hasOwnProperty.call(c,"default")?c.default:c}const d={query:"",use_qe:!1,use_olympic:!1,find_transaction_maps_by_question:!1,find_transaction_maps_by_operation:!1,categories:{НКРФ:!1,ГКРФ:!1,ТКРФ:!1,"Федеральный закон":!1,"Письмо Минфина":!1,"Письмо ФНС":!1,"Приказ ФНС":!1,"Постановление Правительства":!1,"Судебный документ":!1,ВНД:!1,"Бухгалтерский документ":!1}};function u(c={}){return{...d,...c,categories:{...d.categories,...c.categories||{}}}}class h{abbreviationDict;data;dataPreProcessed;allRefs;patterns;refCollections;constructor(){this.data={},this.dataPreProcessed={},this.allRefs={},this.abbreviationDict=this.createAbbreviationDict(),this.refCollections=this.createRefCollections(),this.patterns=this.createPatterns()}createAbbreviationDict(){return{"Министерством Финансов":"Минфина","Министерство Финансов":"Минфина","Министерства Финансов":"Минфина","Министерству Финансов":"Минфина","Министерстве Финансов":"Минфина","Налоговый кодекс":"НК","Налоговому кодексу":"НК","Налоговым кодексом":"НК","Налоговом кодексе":"НК","Налогового кодекса":"НК","Трудовой кодекс":"ТК","Трудовым кодексом":"ТК","Трудового кодекса":"ТК","Трудовому кодексу":"ТК","Трудовом кодексе":"ТК","Гражданский кодекс":"ГК","Гражданским кодексом":"ГК","Гражданского кодекса":"ГК","Гражданскому кодексу":"ГК","Гражданском кодексе":"ГК","Российская Федерация":"РФ","Российской Федерацией":"РФ","Российской Федерации":"РФ","Российскую Федерацию":"РФ","Федеральная налоговая служба":"ФНС","Федеральной налоговой службы":"ФНС","Федеральной налоговой службе":"ФНС","Федеральную налоговую службу":"ФНС","Федеральной налоговой службой":"ФНС",N:"№",Статьей:"ст.",Статьёй:"ст.",статьей:"ст.",статьёй:"ст.",Статья:"ст.",Статьи:"ст.",Статье:"ст.",Статью:"ст.",статья:"ст.",статьи:"ст.",статье:"ст.",статью:"ст.",Подпунктом:"пп.",подпунктом:"пп.",Подпункта:"пп.",подпункта:"пп.",Подпункту:"пп.",подпункту:"пп.",Подпункте:"пп.",подпункте:"пп.",Подпункт:"пп.",подпункт:"пп.",Пунктом:"п.",пунктом:"п.",Пункта:"п.",пункта:"п.",Пункту:"п.",пункту:"п.",Пункте:"п.",пункте:"п.",Пункт:"п.",пункт:"п.",Приказа:"Приказ",Приказом:"Приказ",Приказу:"Приказ",Приказе:"Приказ",приказа:"Приказ",приказом:"Приказ",приказу:"Приказ",приказе:"Приказ",приказ:"Приказ",Письмом:"Письмо",Письму:"Письмо",Письма:"Письмо",Письме:"Письмо",письмом:"Письмо",письмо:"Письмо",письму:"Письмо",письма:"Письмо",письме:"Письмо",Постановлением:"Постановление",Постановления:"Постановление",Постановлению:"Постановление",Постановлении:"Постановление",постановлением:"Постановление",постановление:"Постановление",постановления:"Постановление",постановлению:"Постановление",постановлении:"Постановление",абзацем:"абз.",абзацу:"абз.",абзацами:"абз.",абзацы:"абз.",Положения:"Положение",Положению:"Положение"}}createRefCollections(){return{"НК РФ":{},"ГК РФ":{},"ТК РФ":{},"Федеральные законы":{},"Письма Минфина":{},"Приказы Минфина":{},"Письма ФНС":{},"Приказы ФНС":{},"Постановления Правительства":{}}}createPatterns(){return{"НК РФ":{pattern:/(?:[Пп]п\.\s*(?:\d+(?:\.\d+)*)\s*)?(?:[Пп]\.\s*(?:\d+(?:\.\д+)*)\s*)?[Сс]т\.\с*(?:\д+(?:\.\д+)*) НК\s*РФ/g,postProcess:this.postReplace},"ГК РФ":{pattern:/(?:[Пп]п\.\с*(?:\д+(?:\.\д+)*)\с*)?(?:[Пп]\.\с*(?:\д+(?:\.\д+)*)\с*)?[Сс]т\.\с*(?:\д+(?:\.\д+)*) ГК\s*РФ/g,postProcess:this.postReplace},"ТК РФ":{pattern:/(?:[Пп]п\.\с*(?:\д+(?:\.\д+)*)\с*)?(?:[Пп]\.\с*(?:\д+(?:\.\д+)*)\с*)?[Сс]т\.\с*(?:\д+(?:\.\д+)*) ТК\s*РФ/g,postProcess:this.postReplace},"Федеральные законы":{pattern:/от (?:\д{2}\.\д{2}\.\д{4}|\д{1,2} \в+ \д{4} г\.) № \д+-ФЗ/g,postProcess:this.postProcessLaw},"Письма Минфина":{pattern:/от (?:\д{2}\.\д{2}\.\д{4}|\д{1,2} \в+ \д{4} г\.) № \д{2}-\д{2}-\д{2}\/\д+/g,postProcess:this.postProcessMinfinLetter},"Приказы Минфина":{pattern:/Приказ Минфина (?:РФ|России) от (?:\д{2}\.\д{2}\.\д{4}|\д{1,2} \в+ \д{4} г\.) № [а-я0-9]+/g,postProcess:e=>e},"Письма ФНС":{pattern:/Письмо ФНС (?:РФ|России) от (?:\д{2}\.\д{2}\.\д{4}|\д{1,2} \в+ \д{4} г\.) № [А-Яа-яA-Za-z0-9-]+\/\д+/g,postProcess:e=>e},"Приказы ФНС":{pattern:/Приказ ФНС (?:РФ|России) от (?:\д{2}\.\д{2}\.\д{4}|\д{1,2} \в+ \д{4} г\.) № [А-Яа-яA-Za-z0-9-]+\/\д+/g,postProcess:this.postProcessFNSOrder},"Постановления Правительства":{pattern:/Постановление Правительства (?:РФ|России) от (?:\д{2}\.\д{2}\.\д{4}|\д{1,2} \в+ \д{4} г\.) № \д+/g,postProcess:e=>e},ВНД:{pattern:/п\.\d+\s*(?=.*\(ВНД\))/g,postProcess:this.postReplace}}}postProcessFNSOrder(e){const s=e.split(" ");return s[0]="Приказ",s[1]="ФНС",s[2]="РФ",s.join(" ")}postProcessLaw(e){return`Федеральный закон ${e}`}postProcessMinfinLetter(e){return`Письмо Минфина ${e}`}preprocessData(){Object.entries(this.data).forEach(([e,s])=>{this.dataPreProcessed[e]=this.replaceWithAbbreviations(s.expert_answer)})}replaceWithAbbreviations(e){return Object.entries(this.abbreviationDict).forEach(([s,t])=>{const n=new RegExp(s.replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1"),"g");e=e.replace(n,t)}),e}postReplace(e){return e=e.replaceAll("НК РФ","НКРФ"),e=e.replaceAll("ТК РФ","ТКРФ"),e=e.replaceAll("ГК РФ","ГКРФ"),e=e.replaceAll("п. ","п."),e=e.replaceAll("пп. ","пп."),e=e.replaceAll("ст. ","ст."),e=e.replaceAll("абз. ","абз."),e}addKeyToDict(e,s,t){e[s]?e[s]=[...e[s],...t]:e[s]=t}processMatches(e,s,t,n,o){const r=o.match(e);if(r&&r.length>0){const a=r.map(t),l=[...new Set(a)];this.addKeyToDict(s,n,l)}}processAllMatches(){Object.entries(this.dataPreProcessed).forEach(([e,s])=>{Object.entries(this.patterns).forEach(([t,{pattern:n,postProcess:o}])=>{this.processMatches(n,this.refCollections[t],o,e,s)})})}printResults(){}mergeAllRefs(){Object.values(this.refCollections).forEach(e=>{Object.entries(e).forEach(([s,t])=>{this.allRefs[s]?this.allRefs[s]=[...this.allRefs[s],...t]:this.allRefs[s]=t})})}getProcessedData(){const e={};return Object.entries(this.data).forEach(([s,t])=>{e[s]={title:t.title,question:t.question,expert_answer:t.expert_answer,refs:this.allRefs[s]?this.allRefs[s]:[]}}),e}}const g=async(c,e)=>{const s=u(c),t=await fetch("/search",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s),signal:e.signal});if(!t.ok)throw new Error(`Failed to fetch search results: ${t.statusText}`);const n=await t.json();let o=null;return n.results!=null?(o=n.results,o=i.identifyDocumentType(o),o.map(r=>r.teaser=r.text_for_llm||r.teaser)):o=[],{searchResults:o,relevantConsultations:n.consultations||[],explanations:n.explanations,transactionMaps:n.transactionMapResults,modifiedQuery:n?.query,metrics:n?.metrics}},T=async(c,e)=>{let s=c;const t=new h;s=t.replaceWithAbbreviations(s),s=t.postReplace(s);function n(r){return r=r.replace(/пп\.(\d+(\.\d+)?)/,"п.$1"),r.replace(/([Пп]\.?\s?\d+(\.\d+)?)\s[Пп]\.\d+/g,"$1")}let o=e.filter(r=>{const a=n(r.title);return s.indexOf(a)>-1});return{modifiedText:s,searchResults:o}},D={doRequest:g,extractUsedSearchResults:T};export{d as D,D as S,u as a,i as b,P as c,y as g}; diff --git a/build/client/_app/immutable/chunks/each.N0yHvFdK.js b/build/client/_app/immutable/chunks/each.N0yHvFdK.js deleted file mode 100644 index afe9fc5909759065aeaa7bfd54655d447e93365a..0000000000000000000000000000000000000000 --- a/build/client/_app/immutable/chunks/each.N0yHvFdK.js +++ /dev/null @@ -1 +0,0 @@ -import{t as q,a as z}from"./index.JlSaLmPP.js";import{r as B}from"./scheduler.OwA2AG0M.js";function F(n){return n?.length!==void 0?n:Array.from(n)}function C(n,f){z(n,1,1,()=>{f.delete(n.key)})}function G(n,f){n.f(),C(n,f)}function H(n,f,M,v,x,y,c,S,m,A,h,j){let i=n.length,o=y.length,a=i;const _={};for(;a--;)_[n[a].key]=a;const d=[],r=new Map,u=new Map,g=[];for(a=o;a--;){const e=j(x,y,a),t=M(e);let s=c.get(t);s?v&&g.push(()=>s.p(e,f)):(s=A(t,e),s.c()),r.set(t,d[a]=s),t in _&&u.set(t,Math.abs(a-_[t]))}const p=new Set,k=new Set;function w(e){q(e,1),e.m(S,h),c.set(e.key,e),h=e.first,o--}for(;i&&o;){const e=d[o-1],t=n[i-1],s=e.key,l=t.key;e===t?(h=e.first,i--,o--):r.has(l)?!c.has(s)||p.has(s)?w(e):k.has(l)?i--:u.get(s)>u.get(l)?(k.add(s),w(e)):(p.add(l),i--):(m(t,c),i--)}for(;i--;){const e=n[i];r.has(e.key)||m(e,c)}for(;o;)w(d[o-1]);return B(g),d}export{F as e,G as f,H as u}; diff --git a/build/client/_app/immutable/chunks/each.qkpXUKO-.js b/build/client/_app/immutable/chunks/each.qkpXUKO-.js deleted file mode 100644 index 95269db7f229157711ab178fe1a4e45234d518cc..0000000000000000000000000000000000000000 --- a/build/client/_app/immutable/chunks/each.qkpXUKO-.js +++ /dev/null @@ -1 +0,0 @@ -import{t as q,a as z}from"./index.kgFpNQDS.js";import{r as B}from"./scheduler.AtZRZ-7N.js";function F(n){return n?.length!==void 0?n:Array.from(n)}function C(n,f){z(n,1,1,()=>{f.delete(n.key)})}function G(n,f){n.f(),C(n,f)}function H(n,f,M,v,x,y,c,S,m,A,h,j){let i=n.length,o=y.length,a=i;const _={};for(;a--;)_[n[a].key]=a;const d=[],r=new Map,u=new Map,g=[];for(a=o;a--;){const e=j(x,y,a),t=M(e);let s=c.get(t);s?v&&g.push(()=>s.p(e,f)):(s=A(t,e),s.c()),r.set(t,d[a]=s),t in _&&u.set(t,Math.abs(a-_[t]))}const p=new Set,k=new Set;function w(e){q(e,1),e.m(S,h),c.set(e.key,e),h=e.first,o--}for(;i&&o;){const e=d[o-1],t=n[i-1],s=e.key,l=t.key;e===t?(h=e.first,i--,o--):r.has(l)?!c.has(s)||p.has(s)?w(e):k.has(l)?i--:u.get(s)>u.get(l)?(k.add(s),w(e)):(p.add(l),i--):(m(t,c),i--)}for(;i--;){const e=n[i];r.has(e.key)||m(e,c)}for(;o;)w(d[o-1]);return B(g),d}export{F as e,G as f,H as u}; diff --git a/build/client/_app/immutable/chunks/entry.43M97WBE.js b/build/client/_app/immutable/chunks/entry.43M97WBE.js deleted file mode 100644 index 2bb10ee008632112e1243dfb8e9d705ecbf55968..0000000000000000000000000000000000000000 --- a/build/client/_app/immutable/chunks/entry.43M97WBE.js +++ /dev/null @@ -1,3 +0,0 @@ -import{K as tt}from"./scheduler.5WtVptCO.js";import{w as de}from"./index.G3yBo0_P.js";new URL("sveltekit-internal://");function nt(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function at(e){return e.split("%25").map(decodeURI).join("%25")}function rt(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function se({href:e}){return e.split("#")[0]}const ot=["href","pathname","search","toString","toJSON"];function st(e,t,n){const a=new URL(e);Object.defineProperty(a,"searchParams",{value:new Proxy(a.searchParams,{get(r,o){if(o==="get"||o==="getAll"||o==="has")return s=>(n(s),r[o](s));t();const i=Reflect.get(r,o);return typeof i=="function"?i.bind(r):i}}),enumerable:!0,configurable:!0});for(const r of ot)Object.defineProperty(a,r,{get(){return t(),e[r]},enumerable:!0,configurable:!0});return a}const it="/__data.json",ct=".html__data.json";function lt(e){return e.endsWith(".html")?e.replace(/\.html$/,ct):e.replace(/\/$/,"")+it}function ft(...e){let t=5381;for(const n of e)if(typeof n=="string"){let a=n.length;for(;a;)t=t*33^n.charCodeAt(--a)}else if(ArrayBuffer.isView(n)){const a=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let r=a.length;for(;r;)t=t*33^a[--r]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}const Ue=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||"GET")!=="GET"&&$.delete(he(e)),Ue(e,t));const $=new Map;function ut(e){const t=atob(e),n=new Uint8Array(t.length);for(let a=0;a0){const a=he(e,n),r=$.get(a);if(r){if(performance.now(){const r=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(a);if(r)return t.push({name:r[1],matcher:r[2],optional:!1,rest:!0,chained:!0}),"(?:/(.*))?";const o=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(a);if(o)return t.push({name:o[1],matcher:o[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!a)return;const i=a.split(/\[(.+?)\](?!\])/);return"/"+i.map((c,l)=>{if(l%2){if(c.startsWith("x+"))return ie(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return ie(String.fromCharCode(...c.slice(2).split("-").map(p=>parseInt(p,16))));const d=pt.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 ie(c)}).join("")}).join("")}/?$`),params:t}}function _t(e){return!/^\([^)]+\)$/.test(e)}function mt(e){return e.slice(1).split("/").filter(_t)}function yt(e,t,n){const a={},r=e.slice(1),o=r.filter(s=>s!==void 0);let i=0;for(let s=0;sd).join("/"),i=0),l===void 0){c.rest&&(a[c.name]="");continue}if(!c.matcher||n[c.matcher](l)){a[c.name]=l;const d=t[s+1],g=r[s+1];d&&!d.rest&&d.optional&&g&&c.chained&&(i=0),!d&&!g&&Object.keys(a).length===o.length&&(i=0);continue}if(c.optional&&c.chained){i++;continue}return}if(!i)return a}function ie(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function wt({nodes:e,server_loads:t,dictionary:n,matchers:a}){const r=new Set(t);return Object.entries(n).map(([s,[c,l,d]])=>{const{pattern:g,params:u}=gt(s),f={id:s,exec:h=>{const p=g.exec(h);if(p)return yt(p,u,a)},errors:[1,...d||[]].map(h=>e[h]),layouts:[0,...l||[]].map(i),leaf:o(c)};return f.errors.length=f.layouts.length=Math.max(f.errors.length,f.layouts.length),f});function o(s){const c=s<0;return c&&(s=~s),[c,e[s]]}function i(s){return s===void 0?s:[r.has(s),e[s]]}}function xe(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function Ae(e,t,n=JSON.stringify){const a=n(t);try{sessionStorage[e]=a}catch{}}const S=globalThis.__sveltekit_1opi8oi?.base??"",vt=globalThis.__sveltekit_1opi8oi?.assets??S,bt="1738048948157",Ne="sveltekit:snapshot",Oe="sveltekit:scroll",je="sveltekit:states",Et="sveltekit:pageurl",x="sveltekit:history",V="sveltekit:navigation",B={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},q=location.origin;function De(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 pe(){return{x:pageXOffset,y:pageYOffset}}function U(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const Se={...B,"":B.hover};function $e(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function Ce(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=$e(e)}}function le(e,t){let n;try{n=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI)}catch{}const a=e instanceof SVGAElement?e.target.baseVal:e.target,r=!n||!!a||ee(n,t)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),o=n?.origin===q&&e.hasAttribute("download");return{url:n,external:r,target:a,download:o}}function Y(e){let t=null,n=null,a=null,r=null,o=null,i=null,s=e;for(;s&&s!==document.documentElement;)a===null&&(a=U(s,"preload-code")),r===null&&(r=U(s,"preload-data")),t===null&&(t=U(s,"keepfocus")),n===null&&(n=U(s,"noscroll")),o===null&&(o=U(s,"reload")),i===null&&(i=U(s,"replacestate")),s=$e(s);function c(l){switch(l){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:Se[a??"off"],preload_data:Se[r??"off"],keepfocus:c(t),noscroll:c(n),reload:c(o),replace_state:c(i)}}function Re(e){const t=de(e);let n=!0;function a(){n=!0,t.update(i=>i)}function r(i){n=!1,t.set(i)}function o(i){let s;return t.subscribe(c=>{(s===void 0||n&&c!==s)&&i(s=c)})}return{notify:a,set:r,subscribe:o}}function kt(){const{set:e,subscribe:t}=de(!1);let n;async function a(){clearTimeout(n);try{const r=await fetch(`${vt}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!r.ok)return!1;const i=(await r.json()).version!==bt;return i&&(e(!0),clearTimeout(n)),i}catch{return!1}}return{subscribe:t,check:a}}function ee(e,t){return e.origin!==q||!e.pathname.startsWith(t)}const At=-1,St=-2,Rt=-3,It=-4,Lt=-5,Pt=-6;function Tt(e,t){if(typeof e=="number")return r(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,a=Array(n.length);function r(o,i=!1){if(o===At)return;if(o===Rt)return NaN;if(o===It)return 1/0;if(o===Lt)return-1/0;if(o===Pt)return-0;if(i)throw new Error("Invalid input");if(o in a)return a[o];const s=n[o];if(!s||typeof s!="object")a[o]=s;else if(Array.isArray(s))if(typeof s[0]=="string"){const c=s[0],l=t?.[c];if(l)return a[o]=l(r(s[1]));switch(c){case"Date":a[o]=new Date(s[1]);break;case"Set":const d=new Set;a[o]=d;for(let f=1;ft!=null)}class te{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 Fe{constructor(t,n){this.status=t,this.location=n}}class ge extends Error{constructor(t,n,a){super(a),this.status=t,this.text=n}}const Nt="x-sveltekit-invalidated",Ot="x-sveltekit-trailing-slash";function J(e){return e instanceof te||e instanceof ge?e.status:500}function jt(e){return e instanceof ge?e.text:"Internal Error"}const T=xe(Oe)??{},F=xe(Ne)??{},Dt=history.pushState,_e=history.replaceState,L={url:Re({}),page:Re({}),navigating:de(null),updated:kt()};function me(e){T[e]=pe()}function $t(e,t){let n=e+1;for(;T[n];)delete T[n],n+=1;for(n=t+1;F[n];)delete F[n],n+=1}function O(e){return location.href=e.href,new Promise(()=>{})}function Ie(){}let ne,fe,W,I,ue,j;const Ge=[],z=[];let N=null;const Me=[],Ct=[];let C=[],y={branch:[],error:null,url:null},ye=!1,X=!1,Le=!0,G=!1,D=!1,qe=!1,we=!1,ve,w,k,A,Z;async function Wt(e,t,n){document.URL!==location.href&&(location.href=location.href),j=e,ne=wt(e),I=document.documentElement,ue=t,fe=e.nodes[0],W=e.nodes[1],fe(),W(),w=history.state?.[x],k=history.state?.[V],w||(w=k=Date.now(),_e.call(history,{...history.state,[x]:w,[V]:k},""));const a=T[w];a&&(history.scrollRestoration="manual",scrollTo(a.x,a.y)),n?await Kt(ue,n):qt(location.href,{replaceState:!0}),Ht()}function He(e){z.some(t=>t?.snapshot)&&(F[e]=z.map(t=>t?.snapshot?.capture()))}function Ke(e){F[e]?.forEach((t,n)=>{z[n]?.snapshot?.restore(t)})}function Pe(){me(w),Ae(Oe,T),He(k),Ae(Ne,F)}async function Be(e,t,n,a){return K({type:"goto",url:De(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:a,accept:()=>{t.invalidateAll&&(we=!0)}})}async function Vt(e){return N={id:e.id,promise:Je(e).then(t=>(t.type==="loaded"&&t.state.error&&(N=null),t))},N.promise}async function ce(e){const t=ne.find(n=>n.exec(We(e)));t&&await Promise.all([...t.layouts,t.leaf].map(n=>n?.[1]()))}function Ye(e,t){y=e.state;const n=document.querySelector("style[data-sveltekit]");n&&n.remove(),A=e.props.page,ve=new j.root({target:t,props:{...e.props,stores:L,components:z},hydrate:!0}),Ke(k);const a={from:null,to:{params:y.params,route:{id:y.route?.id??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};C.forEach(r=>r(a)),X=!0}async function Q({url:e,params:t,branch:n,status:a,error:r,route:o,form:i}){let s="never";if(S&&(e.pathname===S||e.pathname===S+"/"))s="always";else for(const f of n)f?.slash!==void 0&&(s=f.slash);e.pathname=nt(e.pathname,s),e.search=e.search;const c={type:"loaded",state:{url:e,params:t,branch:n,error:r,route:o},props:{constructors:xt(n).map(f=>f.node.component),page:A}};i!==void 0&&(c.props.form=i);let l={},d=!A,g=0;for(let f=0;f(s&&(c.route=!0),u[f])}),params:new Proxy(a,{get:(u,f)=>(s&&c.params.add(f),u[f])}),data:o?.data??null,url:st(n,()=>{s&&(c.url=!0)},u=>{s&&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 s&&d(p.href),p.origin===n.origin&&(h=p.href.slice(n.origin.length)),X?ht(h,p.href,f):dt(h,f)},setHeaders:()=>{},depends:d,parent(){return s&&(c.parent=!0),t()},untrack(u){s=!1;try{return u()}finally{s=!0}}};i=await l.universal.load.call(null,g)??null}return{node:l,loader:e,server:o,universal:l.universal?.load?{type:"data",data:i,uses:c}:null,data:i??o?.data??null,slash:l.universal?.trailingSlash??o?.slash}}function Te(e,t,n,a,r,o){if(we)return!0;if(!r)return!1;if(r.parent&&e||r.route&&t||r.url&&n)return!0;for(const i of r.search_params)if(a.has(i))return!0;for(const i of r.params)if(o[i]!==y.params[i])return!0;for(const i of r.dependencies)if(Ge.some(s=>s(new URL(i))))return!0;return!1}function Ee(e,t){return e?.type==="data"?e:e?.type==="skip"?t??null:null}function Ft(e,t){if(!e)return new Set(t.searchParams.keys());const n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const a of n){const r=e.searchParams.getAll(a),o=t.searchParams.getAll(a);r.every(i=>o.includes(i))&&o.every(i=>r.includes(i))&&n.delete(a)}return n}async function Je({id:e,invalidating:t,url:n,params:a,route:r}){if(N?.id===e)return N.promise;const{errors:o,layouts:i,leaf:s}=r,c=[...i,s];o.forEach(_=>_?.().catch(()=>{})),c.forEach(_=>_?.[1]().catch(()=>{}));let l=null;const d=y.url?e!==y.url.pathname+y.url.search:!1,g=y.route?r.id!==y.route.id:!1,u=Ft(y.url,n);let f=!1;const h=c.map((_,m)=>{const v=y.branch[m],b=!!_?.[0]&&(v?.loader!==_[1]||Te(f,g,d,u,v.server?.uses,a));return b&&(f=!0),b});if(h.some(Boolean)){try{l=await Ze(n,h)}catch(_){return ae({status:J(_),error:await M(_,{url:n,params:a,route:{id:r.id}}),url:n,route:r})}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&&!Te(R,g,d,u,v.universal?.uses,a))return v;if(R=!0,b?.type==="error")throw b;return be({loader:_[1],url:n,params:a,route:r,parent:async()=>{const re={};for(let oe=0;oe{});const P=[];for(let _=0;_Promise.resolve({}),server_data_node:Ee(o)}),c={node:await W(),loader:W,universal:null,server:null,data:null};return await Q({url:n,params:r,branch:[s,c],status:e,error:t,route:null})}function ke(e,t){if(!e||ee(e,S))return;let n;try{n=j.hooks.reroute({url:new URL(e)})??e.pathname}catch{return}const a=We(n);for(const r of ne){const o=r.exec(a);if(o)return{id:e.pathname+e.search,invalidating:t,route:r,params:rt(o),url:e}}}function We(e){return at(e.slice(S.length)||"/")}function ze({url:e,type:t,intent:n,delta:a}){let r=!1;const o=et(y,n,e,t);a!==void 0&&(o.navigation.delta=a);const i={...o.navigation,cancel:()=>{r=!0,o.reject(new Error("navigation cancelled"))}};return G||Me.forEach(s=>s(i)),r?null:o}async function K({type:e,url:t,popped:n,keepfocus:a,noscroll:r,replace_state:o,state:i={},redirect_count:s=0,nav_token:c={},accept:l=Ie,block:d=Ie}){const g=ke(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,X&&L.navigating.set(u.navigation),Z=c;let p=g&&await Je(g);if(!p){if(ee(t,S))return await O(t);p=await Xe(t,{id:null},await M(new ge(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404)}if(t=g?.url||t,Z!==c)return u.reject(new Error("navigation aborted")),!1;if(p.type==="redirect")if(s>=20)p=await ae({status:500,error:await M(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}});else return Be(new URL(p.location,t).href,{},s+1,c),!1;else p.props.page.status>=400&&await L.updated.check()&&await O(t);if(Ge.length=0,we=!1,me(f),He(h),p.props.page.url.pathname!==t.pathname&&(t.pathname=p.props.page.url.pathname),i=n?n.state:i,!n){const _=o?0:1,m={[x]:w+=_,[V]:k+=_,[je]:i};(o?_e:Dt).call(history,m,"",t),o||$t(w,k)}if(N=null,p.props.page.state=i,X){y=p.state,p.props.page&&(p.props.page.url=t);const _=(await Promise.all(Ct.map(m=>m(u.navigation)))).filter(m=>typeof m=="function");if(_.length>0){let m=function(){C=C.filter(v=>!_.includes(v))};_.push(m),callbacks.after_navigate.push(..._)}ve.$set(p.props),qe=!0}else Ye(p,ue);const{activeElement:R}=document;await tt();const E=n?n.scroll:r?pe():null;if(Le){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;!a&&!P&&Bt(),Le=!0,p.props.page&&(A=p.props.page),G=!1,e==="popstate"&&Ke(k),u.fulfil(void 0),C.forEach(_=>_(u.navigation)),L.navigating.set(null)}async function Xe(e,t,n,a){return e.origin===q&&e.pathname===location.pathname&&!ye?await ae({status:a,error:n,url:e,route:t}):await O(e)}function Mt(){let e;I.addEventListener("mousemove",o=>{const i=o.target;clearTimeout(e),e=setTimeout(()=>{a(i,2)},20)});function t(o){a(o.composedPath()[0],1)}I.addEventListener("mousedown",t),I.addEventListener("touchstart",t,{passive:!0});const n=new IntersectionObserver(o=>{for(const i of o)i.isIntersecting&&(ce(i.target.href),n.unobserve(i.target))},{threshold:0});function a(o,i){const s=Ce(o,I);if(!s)return;const{url:c,external:l,download:d}=le(s,S);if(l||d)return;const g=Y(s);if(!g.reload)if(i<=g.preload_data){const u=ke(c,!1);u&&Vt(u)}else i<=g.preload_code&&ce(c.pathname)}function r(){n.disconnect();for(const o of I.querySelectorAll("a")){const{url:i,external:s,download:c}=le(o,S);if(s||c)continue;const l=Y(o);l.reload||(l.preload_code===B.viewport&&n.observe(o),l.preload_code===B.eager&&ce(i.pathname))}}C.push(r),r()}function M(e,t){if(e instanceof te)return e.body;const n=J(e),a=jt(e);return j.hooks.handleError({error:e,event:t,status:n,message:a})??{message:a}}function qt(e,t={}){return e=De(e),e.origin!==q?Promise.reject(new Error("goto: invalid URL")):Be(e,t,0)}function Ht(){history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let n=!1;if(Pe(),!G){const a=et(y,void 0,null,"leave"),r={...a.navigation,cancel:()=>{n=!0,a.reject(new Error("navigation cancelled"))}};Me.forEach(o=>o(r))}n?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Pe()}),navigator.connection?.saveData||Mt(),I.addEventListener("click",t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const n=Ce(t.composedPath()[0],I);if(!n)return;const{url:a,external:r,target:o,download:i}=le(n,S);if(!a)return;if(o==="_parent"||o==="_top"){if(window.parent!==window)return}else if(o&&o!=="_self")return;const s=Y(n);if(!(n instanceof SVGAElement)&&a.protocol!==location.protocol&&!(a.protocol==="https:"||a.protocol==="http:")||i)return;if(r||s.reload){ze({url:a,type:"link"})?G=!0:t.preventDefault();return}const[l,d]=a.href.split("#");if(d!==void 0&&l===se(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,me(w),e(a),!s.replace_state)return;D=!1}t.preventDefault(),K({type:"link",url:a,keepfocus:s.keepfocus,noscroll:s.noscroll,replace_state:s.replace_state??a.href===location.href})}),I.addEventListener("submit",t=>{if(t.defaultPrevented)return;const n=HTMLFormElement.prototype.cloneNode.call(t.target),a=t.submitter;if((a?.formMethod||n.method)!=="get")return;const o=new URL(a?.hasAttribute("formaction")&&a?.formAction||n.action);if(ee(o,S))return;const i=t.target,s=Y(i);if(s.reload)return;t.preventDefault(),t.stopPropagation();const c=new FormData(i),l=a?.getAttribute("name");l&&c.append(l,a?.getAttribute("value")??""),o.search=new URLSearchParams(c).toString(),K({type:"form",url:o,keepfocus:s.keepfocus,noscroll:s.noscroll,replace_state:s.replace_state??o.href===location.href})}),addEventListener("popstate",async t=>{if(t.state?.[x]){const n=t.state[x];if(Z={},n===w)return;const a=T[n],r=t.state[je]??{},o=new URL(t.state[Et]??location.href),i=t.state[V],s=se(location)===se(y.url);if(i===k&&(qe||s)){e(o),T[w]=pe(),a&&scrollTo(a.x,a.y),r!==A.state&&(A={...A,state:r},ve.$set({page:A})),w=n;return}const l=n-w;await K({type:"popstate",url:o,popped:{state:r,scroll:a,delta:l},accept:()=>{w=n,k=i},block:()=>{history.go(-l)},nav_token:Z})}else if(!D){const n=new URL(location.href);e(n)}}),addEventListener("hashchange",()=>{D&&(D=!1,_e.call(history,{...history.state,[x]:++w,[V]: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({...A,url:t}),L.page.notify()}}async function Kt(e,{status:t=200,error:n,node_ids:a,params:r,route:o,data:i,form:s}){ye=!0;const c=new URL(location.href);({params:r={},route:o={id:null}}=ke(c,!1)||{});let l;try{const d=a.map(async(f,h)=>{const p=i[h];return p?.uses&&(p.uses=Qe(p.uses)),be({loader:j.nodes[f],url:c,params:r,route:o,parent:async()=>{const R={};for(let E=0;Ef===o.id);if(u){const f=u.layouts;for(let h=0;hr?"1":"0").join(""));const a=await Ue(n.href);if(!a.ok){let r;throw a.headers.get("content-type")?.includes("application/json")?r=await a.json():a.status===404?r="Not Found":a.status===500&&(r="Internal Error"),new te(a.status,r)}return new Promise(async r=>{const o=new Map,i=a.body.getReader(),s=new TextDecoder;function c(d){return Tt(d,{Promise:g=>new Promise((u,f)=>{o.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?` -`:s.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 r(f);if(f.type==="data")f.nodes?.forEach(h=>{h?.type==="data"&&(h.uses=Qe(h.uses),h.data=c(h.data))}),r(f);else if(f.type==="chunk"){const{id:h,data:p,error:R}=f,E=o.get(h);o.delete(h),R?E.reject(c(R)):E.fulfil(c(p))}}}})}function Qe(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 Bt(){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 a=getSelection();if(a&&a.type!=="None"){const r=[];for(let o=0;o{if(a.rangeCount===r.length){for(let o=0;o{r=c,o=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:a,complete:i},fulfil:r,reject:o}}export{Wt as a,L as s}; diff --git a/build/client/_app/immutable/chunks/entry.O7vqVWzd.js b/build/client/_app/immutable/chunks/entry.O7vqVWzd.js deleted file mode 100644 index 1d3b434cfbaf327b39d31d24618bbbc3461f2399..0000000000000000000000000000000000000000 --- a/build/client/_app/immutable/chunks/entry.O7vqVWzd.js +++ /dev/null @@ -1,3 +0,0 @@ -import{K as tt}from"./scheduler.5WtVptCO.js";import{w as de}from"./index.G3yBo0_P.js";new URL("sveltekit-internal://");function nt(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function at(e){return e.split("%25").map(decodeURI).join("%25")}function rt(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function se({href:e}){return e.split("#")[0]}const ot=["href","pathname","search","toString","toJSON"];function st(e,t,n){const a=new URL(e);Object.defineProperty(a,"searchParams",{value:new Proxy(a.searchParams,{get(r,o){if(o==="get"||o==="getAll"||o==="has")return s=>(n(s),r[o](s));t();const i=Reflect.get(r,o);return typeof i=="function"?i.bind(r):i}}),enumerable:!0,configurable:!0});for(const r of ot)Object.defineProperty(a,r,{get(){return t(),e[r]},enumerable:!0,configurable:!0});return a}const it="/__data.json",ct=".html__data.json";function lt(e){return e.endsWith(".html")?e.replace(/\.html$/,ct):e.replace(/\/$/,"")+it}function ft(...e){let t=5381;for(const n of e)if(typeof n=="string"){let a=n.length;for(;a;)t=t*33^n.charCodeAt(--a)}else if(ArrayBuffer.isView(n)){const a=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let r=a.length;for(;r;)t=t*33^a[--r]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}const Ue=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||"GET")!=="GET"&&$.delete(he(e)),Ue(e,t));const $=new Map;function ut(e){const t=atob(e),n=new Uint8Array(t.length);for(let a=0;a0){const a=he(e,n),r=$.get(a);if(r){if(performance.now(){const r=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(a);if(r)return t.push({name:r[1],matcher:r[2],optional:!1,rest:!0,chained:!0}),"(?:/(.*))?";const o=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(a);if(o)return t.push({name:o[1],matcher:o[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!a)return;const i=a.split(/\[(.+?)\](?!\])/);return"/"+i.map((c,l)=>{if(l%2){if(c.startsWith("x+"))return ie(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return ie(String.fromCharCode(...c.slice(2).split("-").map(p=>parseInt(p,16))));const d=pt.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 ie(c)}).join("")}).join("")}/?$`),params:t}}function _t(e){return!/^\([^)]+\)$/.test(e)}function mt(e){return e.slice(1).split("/").filter(_t)}function yt(e,t,n){const a={},r=e.slice(1),o=r.filter(s=>s!==void 0);let i=0;for(let s=0;sd).join("/"),i=0),l===void 0){c.rest&&(a[c.name]="");continue}if(!c.matcher||n[c.matcher](l)){a[c.name]=l;const d=t[s+1],g=r[s+1];d&&!d.rest&&d.optional&&g&&c.chained&&(i=0),!d&&!g&&Object.keys(a).length===o.length&&(i=0);continue}if(c.optional&&c.chained){i++;continue}return}if(!i)return a}function ie(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function vt({nodes:e,server_loads:t,dictionary:n,matchers:a}){const r=new Set(t);return Object.entries(n).map(([s,[c,l,d]])=>{const{pattern:g,params:u}=gt(s),f={id:s,exec:h=>{const p=g.exec(h);if(p)return yt(p,u,a)},errors:[1,...d||[]].map(h=>e[h]),layouts:[0,...l||[]].map(i),leaf:o(c)};return f.errors.length=f.layouts.length=Math.max(f.errors.length,f.layouts.length),f});function o(s){const c=s<0;return c&&(s=~s),[c,e[s]]}function i(s){return s===void 0?s:[r.has(s),e[s]]}}function xe(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function Ae(e,t,n=JSON.stringify){const a=n(t);try{sessionStorage[e]=a}catch{}}const S=globalThis.__sveltekit_1vfz2ba?.base??"",wt=globalThis.__sveltekit_1vfz2ba?.assets??S,bt="1737633113567",Ne="sveltekit:snapshot",Oe="sveltekit:scroll",je="sveltekit:states",Et="sveltekit:pageurl",x="sveltekit:history",V="sveltekit:navigation",B={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},q=location.origin;function De(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 pe(){return{x:pageXOffset,y:pageYOffset}}function U(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const Se={...B,"":B.hover};function $e(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function Ce(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=$e(e)}}function le(e,t){let n;try{n=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI)}catch{}const a=e instanceof SVGAElement?e.target.baseVal:e.target,r=!n||!!a||ee(n,t)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),o=n?.origin===q&&e.hasAttribute("download");return{url:n,external:r,target:a,download:o}}function z(e){let t=null,n=null,a=null,r=null,o=null,i=null,s=e;for(;s&&s!==document.documentElement;)a===null&&(a=U(s,"preload-code")),r===null&&(r=U(s,"preload-data")),t===null&&(t=U(s,"keepfocus")),n===null&&(n=U(s,"noscroll")),o===null&&(o=U(s,"reload")),i===null&&(i=U(s,"replacestate")),s=$e(s);function c(l){switch(l){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:Se[a??"off"],preload_data:Se[r??"off"],keepfocus:c(t),noscroll:c(n),reload:c(o),replace_state:c(i)}}function Re(e){const t=de(e);let n=!0;function a(){n=!0,t.update(i=>i)}function r(i){n=!1,t.set(i)}function o(i){let s;return t.subscribe(c=>{(s===void 0||n&&c!==s)&&i(s=c)})}return{notify:a,set:r,subscribe:o}}function kt(){const{set:e,subscribe:t}=de(!1);let n;async function a(){clearTimeout(n);try{const r=await fetch(`${wt}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!r.ok)return!1;const i=(await r.json()).version!==bt;return i&&(e(!0),clearTimeout(n)),i}catch{return!1}}return{subscribe:t,check:a}}function ee(e,t){return e.origin!==q||!e.pathname.startsWith(t)}const At=-1,St=-2,Rt=-3,It=-4,Lt=-5,Pt=-6;function Tt(e,t){if(typeof e=="number")return r(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,a=Array(n.length);function r(o,i=!1){if(o===At)return;if(o===Rt)return NaN;if(o===It)return 1/0;if(o===Lt)return-1/0;if(o===Pt)return-0;if(i)throw new Error("Invalid input");if(o in a)return a[o];const s=n[o];if(!s||typeof s!="object")a[o]=s;else if(Array.isArray(s))if(typeof s[0]=="string"){const c=s[0],l=t?.[c];if(l)return a[o]=l(r(s[1]));switch(c){case"Date":a[o]=new Date(s[1]);break;case"Set":const d=new Set;a[o]=d;for(let f=1;ft!=null)}class te{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 Fe{constructor(t,n){this.status=t,this.location=n}}class ge extends Error{constructor(t,n,a){super(a),this.status=t,this.text=n}}const Nt="x-sveltekit-invalidated",Ot="x-sveltekit-trailing-slash";function Y(e){return e instanceof te||e instanceof ge?e.status:500}function jt(e){return e instanceof ge?e.text:"Internal Error"}const T=xe(Oe)??{},F=xe(Ne)??{},Dt=history.pushState,_e=history.replaceState,L={url:Re({}),page:Re({}),navigating:de(null),updated:kt()};function me(e){T[e]=pe()}function $t(e,t){let n=e+1;for(;T[n];)delete T[n],n+=1;for(n=t+1;F[n];)delete F[n],n+=1}function O(e){return location.href=e.href,new Promise(()=>{})}function Ie(){}let ne,fe,J,I,ue,j;const Ge=[],W=[];let N=null;const Me=[],Ct=[];let C=[],y={branch:[],error:null,url:null},ye=!1,X=!1,Le=!0,G=!1,D=!1,qe=!1,ve=!1,we,v,k,A,Z;async function Jt(e,t,n){document.URL!==location.href&&(location.href=location.href),j=e,ne=vt(e),I=document.documentElement,ue=t,fe=e.nodes[0],J=e.nodes[1],fe(),J(),v=history.state?.[x],k=history.state?.[V],v||(v=k=Date.now(),_e.call(history,{...history.state,[x]:v,[V]:k},""));const a=T[v];a&&(history.scrollRestoration="manual",scrollTo(a.x,a.y)),n?await Kt(ue,n):qt(location.href,{replaceState:!0}),Ht()}function He(e){W.some(t=>t?.snapshot)&&(F[e]=W.map(t=>t?.snapshot?.capture()))}function Ke(e){F[e]?.forEach((t,n)=>{W[n]?.snapshot?.restore(t)})}function Pe(){me(v),Ae(Oe,T),He(k),Ae(Ne,F)}async function Be(e,t,n,a){return K({type:"goto",url:De(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:a,accept:()=>{t.invalidateAll&&(ve=!0)}})}async function Vt(e){return N={id:e.id,promise:Ye(e).then(t=>(t.type==="loaded"&&t.state.error&&(N=null),t))},N.promise}async function ce(e){const t=ne.find(n=>n.exec(Je(e)));t&&await Promise.all([...t.layouts,t.leaf].map(n=>n?.[1]()))}function ze(e,t){y=e.state;const n=document.querySelector("style[data-sveltekit]");n&&n.remove(),A=e.props.page,we=new j.root({target:t,props:{...e.props,stores:L,components:W},hydrate:!0}),Ke(k);const a={from:null,to:{params:y.params,route:{id:y.route?.id??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};C.forEach(r=>r(a)),X=!0}async function Q({url:e,params:t,branch:n,status:a,error:r,route:o,form:i}){let s="never";if(S&&(e.pathname===S||e.pathname===S+"/"))s="always";else for(const f of n)f?.slash!==void 0&&(s=f.slash);e.pathname=nt(e.pathname,s),e.search=e.search;const c={type:"loaded",state:{url:e,params:t,branch:n,error:r,route:o},props:{constructors:xt(n).map(f=>f.node.component),page:A}};i!==void 0&&(c.props.form=i);let l={},d=!A,g=0;for(let f=0;f(s&&(c.route=!0),u[f])}),params:new Proxy(a,{get:(u,f)=>(s&&c.params.add(f),u[f])}),data:o?.data??null,url:st(n,()=>{s&&(c.url=!0)},u=>{s&&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 s&&d(p.href),p.origin===n.origin&&(h=p.href.slice(n.origin.length)),X?ht(h,p.href,f):dt(h,f)},setHeaders:()=>{},depends:d,parent(){return s&&(c.parent=!0),t()},untrack(u){s=!1;try{return u()}finally{s=!0}}};i=await l.universal.load.call(null,g)??null}return{node:l,loader:e,server:o,universal:l.universal?.load?{type:"data",data:i,uses:c}:null,data:i??o?.data??null,slash:l.universal?.trailingSlash??o?.slash}}function Te(e,t,n,a,r,o){if(ve)return!0;if(!r)return!1;if(r.parent&&e||r.route&&t||r.url&&n)return!0;for(const i of r.search_params)if(a.has(i))return!0;for(const i of r.params)if(o[i]!==y.params[i])return!0;for(const i of r.dependencies)if(Ge.some(s=>s(new URL(i))))return!0;return!1}function Ee(e,t){return e?.type==="data"?e:e?.type==="skip"?t??null:null}function Ft(e,t){if(!e)return new Set(t.searchParams.keys());const n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const a of n){const r=e.searchParams.getAll(a),o=t.searchParams.getAll(a);r.every(i=>o.includes(i))&&o.every(i=>r.includes(i))&&n.delete(a)}return n}async function Ye({id:e,invalidating:t,url:n,params:a,route:r}){if(N?.id===e)return N.promise;const{errors:o,layouts:i,leaf:s}=r,c=[...i,s];o.forEach(_=>_?.().catch(()=>{})),c.forEach(_=>_?.[1]().catch(()=>{}));let l=null;const d=y.url?e!==y.url.pathname+y.url.search:!1,g=y.route?r.id!==y.route.id:!1,u=Ft(y.url,n);let f=!1;const h=c.map((_,m)=>{const w=y.branch[m],b=!!_?.[0]&&(w?.loader!==_[1]||Te(f,g,d,u,w.server?.uses,a));return b&&(f=!0),b});if(h.some(Boolean)){try{l=await Ze(n,h)}catch(_){return ae({status:Y(_),error:await M(_,{url:n,params:a,route:{id:r.id}}),url:n,route:r})}if(l.type==="redirect")return l}const p=l?.nodes;let R=!1;const E=c.map(async(_,m)=>{if(!_)return;const w=y.branch[m],b=p?.[m];if((!b||b.type==="skip")&&_[1]===w?.loader&&!Te(R,g,d,u,w.universal?.uses,a))return w;if(R=!0,b?.type==="error")throw b;return be({loader:_[1],url:n,params:a,route:r,parent:async()=>{const re={};for(let oe=0;oe{});const P=[];for(let _=0;_Promise.resolve({}),server_data_node:Ee(o)}),c={node:await J(),loader:J,universal:null,server:null,data:null};return await Q({url:n,params:r,branch:[s,c],status:e,error:t,route:null})}function ke(e,t){if(!e||ee(e,S))return;let n;try{n=j.hooks.reroute({url:new URL(e)})??e.pathname}catch{return}const a=Je(n);for(const r of ne){const o=r.exec(a);if(o)return{id:e.pathname+e.search,invalidating:t,route:r,params:rt(o),url:e}}}function Je(e){return at(e.slice(S.length)||"/")}function We({url:e,type:t,intent:n,delta:a}){let r=!1;const o=et(y,n,e,t);a!==void 0&&(o.navigation.delta=a);const i={...o.navigation,cancel:()=>{r=!0,o.reject(new Error("navigation cancelled"))}};return G||Me.forEach(s=>s(i)),r?null:o}async function K({type:e,url:t,popped:n,keepfocus:a,noscroll:r,replace_state:o,state:i={},redirect_count:s=0,nav_token:c={},accept:l=Ie,block:d=Ie}){const g=ke(t,!1),u=We({url:t,type:e,delta:n?.delta,intent:g});if(!u){d();return}const f=v,h=k;l(),G=!0,X&&L.navigating.set(u.navigation),Z=c;let p=g&&await Ye(g);if(!p){if(ee(t,S))return await O(t);p=await Xe(t,{id:null},await M(new ge(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404)}if(t=g?.url||t,Z!==c)return u.reject(new Error("navigation aborted")),!1;if(p.type==="redirect")if(s>=20)p=await ae({status:500,error:await M(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}});else return Be(new URL(p.location,t).href,{},s+1,c),!1;else p.props.page.status>=400&&await L.updated.check()&&await O(t);if(Ge.length=0,ve=!1,me(f),He(h),p.props.page.url.pathname!==t.pathname&&(t.pathname=p.props.page.url.pathname),i=n?n.state:i,!n){const _=o?0:1,m={[x]:v+=_,[V]:k+=_,[je]:i};(o?_e:Dt).call(history,m,"",t),o||$t(v,k)}if(N=null,p.props.page.state=i,X){y=p.state,p.props.page&&(p.props.page.url=t);const _=(await Promise.all(Ct.map(m=>m(u.navigation)))).filter(m=>typeof m=="function");if(_.length>0){let m=function(){C=C.filter(w=>!_.includes(w))};_.push(m),callbacks.after_navigate.push(..._)}we.$set(p.props),qe=!0}else ze(p,ue);const{activeElement:R}=document;await tt();const E=n?n.scroll:r?pe():null;if(Le){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;!a&&!P&&Bt(),Le=!0,p.props.page&&(A=p.props.page),G=!1,e==="popstate"&&Ke(k),u.fulfil(void 0),C.forEach(_=>_(u.navigation)),L.navigating.set(null)}async function Xe(e,t,n,a){return e.origin===q&&e.pathname===location.pathname&&!ye?await ae({status:a,error:n,url:e,route:t}):await O(e)}function Mt(){let e;I.addEventListener("mousemove",o=>{const i=o.target;clearTimeout(e),e=setTimeout(()=>{a(i,2)},20)});function t(o){a(o.composedPath()[0],1)}I.addEventListener("mousedown",t),I.addEventListener("touchstart",t,{passive:!0});const n=new IntersectionObserver(o=>{for(const i of o)i.isIntersecting&&(ce(i.target.href),n.unobserve(i.target))},{threshold:0});function a(o,i){const s=Ce(o,I);if(!s)return;const{url:c,external:l,download:d}=le(s,S);if(l||d)return;const g=z(s);if(!g.reload)if(i<=g.preload_data){const u=ke(c,!1);u&&Vt(u)}else i<=g.preload_code&&ce(c.pathname)}function r(){n.disconnect();for(const o of I.querySelectorAll("a")){const{url:i,external:s,download:c}=le(o,S);if(s||c)continue;const l=z(o);l.reload||(l.preload_code===B.viewport&&n.observe(o),l.preload_code===B.eager&&ce(i.pathname))}}C.push(r),r()}function M(e,t){if(e instanceof te)return e.body;const n=Y(e),a=jt(e);return j.hooks.handleError({error:e,event:t,status:n,message:a})??{message:a}}function qt(e,t={}){return e=De(e),e.origin!==q?Promise.reject(new Error("goto: invalid URL")):Be(e,t,0)}function Ht(){history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let n=!1;if(Pe(),!G){const a=et(y,void 0,null,"leave"),r={...a.navigation,cancel:()=>{n=!0,a.reject(new Error("navigation cancelled"))}};Me.forEach(o=>o(r))}n?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Pe()}),navigator.connection?.saveData||Mt(),I.addEventListener("click",t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const n=Ce(t.composedPath()[0],I);if(!n)return;const{url:a,external:r,target:o,download:i}=le(n,S);if(!a)return;if(o==="_parent"||o==="_top"){if(window.parent!==window)return}else if(o&&o!=="_self")return;const s=z(n);if(!(n instanceof SVGAElement)&&a.protocol!==location.protocol&&!(a.protocol==="https:"||a.protocol==="http:")||i)return;if(r||s.reload){We({url:a,type:"link"})?G=!0:t.preventDefault();return}const[l,d]=a.href.split("#");if(d!==void 0&&l===se(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,me(v),e(a),!s.replace_state)return;D=!1}t.preventDefault(),K({type:"link",url:a,keepfocus:s.keepfocus,noscroll:s.noscroll,replace_state:s.replace_state??a.href===location.href})}),I.addEventListener("submit",t=>{if(t.defaultPrevented)return;const n=HTMLFormElement.prototype.cloneNode.call(t.target),a=t.submitter;if((a?.formMethod||n.method)!=="get")return;const o=new URL(a?.hasAttribute("formaction")&&a?.formAction||n.action);if(ee(o,S))return;const i=t.target,s=z(i);if(s.reload)return;t.preventDefault(),t.stopPropagation();const c=new FormData(i),l=a?.getAttribute("name");l&&c.append(l,a?.getAttribute("value")??""),o.search=new URLSearchParams(c).toString(),K({type:"form",url:o,keepfocus:s.keepfocus,noscroll:s.noscroll,replace_state:s.replace_state??o.href===location.href})}),addEventListener("popstate",async t=>{if(t.state?.[x]){const n=t.state[x];if(Z={},n===v)return;const a=T[n],r=t.state[je]??{},o=new URL(t.state[Et]??location.href),i=t.state[V],s=se(location)===se(y.url);if(i===k&&(qe||s)){e(o),T[v]=pe(),a&&scrollTo(a.x,a.y),r!==A.state&&(A={...A,state:r},we.$set({page:A})),v=n;return}const l=n-v;await K({type:"popstate",url:o,popped:{state:r,scroll:a,delta:l},accept:()=>{v=n,k=i},block:()=>{history.go(-l)},nav_token:Z})}else if(!D){const n=new URL(location.href);e(n)}}),addEventListener("hashchange",()=>{D&&(D=!1,_e.call(history,{...history.state,[x]:++v,[V]: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({...A,url:t}),L.page.notify()}}async function Kt(e,{status:t=200,error:n,node_ids:a,params:r,route:o,data:i,form:s}){ye=!0;const c=new URL(location.href);({params:r={},route:o={id:null}}=ke(c,!1)||{});let l;try{const d=a.map(async(f,h)=>{const p=i[h];return p?.uses&&(p.uses=Qe(p.uses)),be({loader:j.nodes[f],url:c,params:r,route:o,parent:async()=>{const R={};for(let E=0;Ef===o.id);if(u){const f=u.layouts;for(let h=0;hr?"1":"0").join(""));const a=await Ue(n.href);if(!a.ok){let r;throw a.headers.get("content-type")?.includes("application/json")?r=await a.json():a.status===404?r="Not Found":a.status===500&&(r="Internal Error"),new te(a.status,r)}return new Promise(async r=>{const o=new Map,i=a.body.getReader(),s=new TextDecoder;function c(d){return Tt(d,{Promise:g=>new Promise((u,f)=>{o.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?` -`:s.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 r(f);if(f.type==="data")f.nodes?.forEach(h=>{h?.type==="data"&&(h.uses=Qe(h.uses),h.data=c(h.data))}),r(f);else if(f.type==="chunk"){const{id:h,data:p,error:R}=f,E=o.get(h);o.delete(h),R?E.reject(c(R)):E.fulfil(c(p))}}}})}function Qe(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 Bt(){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 a=getSelection();if(a&&a.type!=="None"){const r=[];for(let o=0;o{if(a.rangeCount===r.length){for(let o=0;o{r=c,o=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:a,complete:i},fulfil:r,reject:o}}export{Jt as a,L as s}; diff --git a/build/client/_app/immutable/chunks/entry.dO1U_WKI.js b/build/client/_app/immutable/chunks/entry.dO1U_WKI.js deleted file mode 100644 index da4ccda832cd2da5aa39247a9be56648ba70ac4d..0000000000000000000000000000000000000000 --- a/build/client/_app/immutable/chunks/entry.dO1U_WKI.js +++ /dev/null @@ -1,3 +0,0 @@ -import{K as tt}from"./scheduler.5WtVptCO.js";import{w as de}from"./index.G3yBo0_P.js";new URL("sveltekit-internal://");function nt(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function at(e){return e.split("%25").map(decodeURI).join("%25")}function rt(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function se({href:e}){return e.split("#")[0]}const ot=["href","pathname","search","toString","toJSON"];function st(e,t,n){const a=new URL(e);Object.defineProperty(a,"searchParams",{value:new Proxy(a.searchParams,{get(r,o){if(o==="get"||o==="getAll"||o==="has")return s=>(n(s),r[o](s));t();const i=Reflect.get(r,o);return typeof i=="function"?i.bind(r):i}}),enumerable:!0,configurable:!0});for(const r of ot)Object.defineProperty(a,r,{get(){return t(),e[r]},enumerable:!0,configurable:!0});return a}const it="/__data.json",ct=".html__data.json";function lt(e){return e.endsWith(".html")?e.replace(/\.html$/,ct):e.replace(/\/$/,"")+it}function ft(...e){let t=5381;for(const n of e)if(typeof n=="string"){let a=n.length;for(;a;)t=t*33^n.charCodeAt(--a)}else if(ArrayBuffer.isView(n)){const a=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let r=a.length;for(;r;)t=t*33^a[--r]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}const Ue=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||"GET")!=="GET"&&$.delete(he(e)),Ue(e,t));const $=new Map;function ut(e){const t=atob(e),n=new Uint8Array(t.length);for(let a=0;a0){const a=he(e,n),r=$.get(a);if(r){if(performance.now(){const r=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(a);if(r)return t.push({name:r[1],matcher:r[2],optional:!1,rest:!0,chained:!0}),"(?:/(.*))?";const o=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(a);if(o)return t.push({name:o[1],matcher:o[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!a)return;const i=a.split(/\[(.+?)\](?!\])/);return"/"+i.map((c,l)=>{if(l%2){if(c.startsWith("x+"))return ie(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return ie(String.fromCharCode(...c.slice(2).split("-").map(p=>parseInt(p,16))));const d=pt.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 ie(c)}).join("")}).join("")}/?$`),params:t}}function _t(e){return!/^\([^)]+\)$/.test(e)}function mt(e){return e.slice(1).split("/").filter(_t)}function yt(e,t,n){const a={},r=e.slice(1),o=r.filter(s=>s!==void 0);let i=0;for(let s=0;sd).join("/"),i=0),l===void 0){c.rest&&(a[c.name]="");continue}if(!c.matcher||n[c.matcher](l)){a[c.name]=l;const d=t[s+1],g=r[s+1];d&&!d.rest&&d.optional&&g&&c.chained&&(i=0),!d&&!g&&Object.keys(a).length===o.length&&(i=0);continue}if(c.optional&&c.chained){i++;continue}return}if(!i)return a}function ie(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function wt({nodes:e,server_loads:t,dictionary:n,matchers:a}){const r=new Set(t);return Object.entries(n).map(([s,[c,l,d]])=>{const{pattern:g,params:u}=gt(s),f={id:s,exec:h=>{const p=g.exec(h);if(p)return yt(p,u,a)},errors:[1,...d||[]].map(h=>e[h]),layouts:[0,...l||[]].map(i),leaf:o(c)};return f.errors.length=f.layouts.length=Math.max(f.errors.length,f.layouts.length),f});function o(s){const c=s<0;return c&&(s=~s),[c,e[s]]}function i(s){return s===void 0?s:[r.has(s),e[s]]}}function xe(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function Ae(e,t,n=JSON.stringify){const a=n(t);try{sessionStorage[e]=a}catch{}}const S=globalThis.__sveltekit_q3nw9i?.base??"",vt=globalThis.__sveltekit_q3nw9i?.assets??S,bt="1737383820461",Ne="sveltekit:snapshot",Oe="sveltekit:scroll",je="sveltekit:states",Et="sveltekit:pageurl",x="sveltekit:history",V="sveltekit:navigation",B={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},M=location.origin;function De(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 pe(){return{x:pageXOffset,y:pageYOffset}}function U(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const Se={...B,"":B.hover};function $e(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function Ce(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=$e(e)}}function le(e,t){let n;try{n=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI)}catch{}const a=e instanceof SVGAElement?e.target.baseVal:e.target,r=!n||!!a||ee(n,t)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),o=n?.origin===M&&e.hasAttribute("download");return{url:n,external:r,target:a,download:o}}function Y(e){let t=null,n=null,a=null,r=null,o=null,i=null,s=e;for(;s&&s!==document.documentElement;)a===null&&(a=U(s,"preload-code")),r===null&&(r=U(s,"preload-data")),t===null&&(t=U(s,"keepfocus")),n===null&&(n=U(s,"noscroll")),o===null&&(o=U(s,"reload")),i===null&&(i=U(s,"replacestate")),s=$e(s);function c(l){switch(l){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:Se[a??"off"],preload_data:Se[r??"off"],keepfocus:c(t),noscroll:c(n),reload:c(o),replace_state:c(i)}}function Re(e){const t=de(e);let n=!0;function a(){n=!0,t.update(i=>i)}function r(i){n=!1,t.set(i)}function o(i){let s;return t.subscribe(c=>{(s===void 0||n&&c!==s)&&i(s=c)})}return{notify:a,set:r,subscribe:o}}function kt(){const{set:e,subscribe:t}=de(!1);let n;async function a(){clearTimeout(n);try{const r=await fetch(`${vt}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!r.ok)return!1;const i=(await r.json()).version!==bt;return i&&(e(!0),clearTimeout(n)),i}catch{return!1}}return{subscribe:t,check:a}}function ee(e,t){return e.origin!==M||!e.pathname.startsWith(t)}const At=-1,St=-2,Rt=-3,It=-4,Lt=-5,Pt=-6;function Tt(e,t){if(typeof e=="number")return r(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,a=Array(n.length);function r(o,i=!1){if(o===At)return;if(o===Rt)return NaN;if(o===It)return 1/0;if(o===Lt)return-1/0;if(o===Pt)return-0;if(i)throw new Error("Invalid input");if(o in a)return a[o];const s=n[o];if(!s||typeof s!="object")a[o]=s;else if(Array.isArray(s))if(typeof s[0]=="string"){const c=s[0],l=t?.[c];if(l)return a[o]=l(r(s[1]));switch(c){case"Date":a[o]=new Date(s[1]);break;case"Set":const d=new Set;a[o]=d;for(let f=1;ft!=null)}class te{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 Fe{constructor(t,n){this.status=t,this.location=n}}class ge extends Error{constructor(t,n,a){super(a),this.status=t,this.text=n}}const Nt="x-sveltekit-invalidated",Ot="x-sveltekit-trailing-slash";function J(e){return e instanceof te||e instanceof ge?e.status:500}function jt(e){return e instanceof ge?e.text:"Internal Error"}const T=xe(Oe)??{},F=xe(Ne)??{},Dt=history.pushState,_e=history.replaceState,L={url:Re({}),page:Re({}),navigating:de(null),updated:kt()};function me(e){T[e]=pe()}function $t(e,t){let n=e+1;for(;T[n];)delete T[n],n+=1;for(n=t+1;F[n];)delete F[n],n+=1}function O(e){return location.href=e.href,new Promise(()=>{})}function Ie(){}let ne,fe,W,I,ue,j;const qe=[],z=[];let N=null;const Ge=[],Ct=[];let C=[],y={branch:[],error:null,url:null},ye=!1,X=!1,Le=!0,q=!1,D=!1,Me=!1,we=!1,ve,w,k,A,Z;async function Wt(e,t,n){document.URL!==location.href&&(location.href=location.href),j=e,ne=wt(e),I=document.documentElement,ue=t,fe=e.nodes[0],W=e.nodes[1],fe(),W(),w=history.state?.[x],k=history.state?.[V],w||(w=k=Date.now(),_e.call(history,{...history.state,[x]:w,[V]:k},""));const a=T[w];a&&(history.scrollRestoration="manual",scrollTo(a.x,a.y)),n?await Kt(ue,n):Mt(location.href,{replaceState:!0}),Ht()}function He(e){z.some(t=>t?.snapshot)&&(F[e]=z.map(t=>t?.snapshot?.capture()))}function Ke(e){F[e]?.forEach((t,n)=>{z[n]?.snapshot?.restore(t)})}function Pe(){me(w),Ae(Oe,T),He(k),Ae(Ne,F)}async function Be(e,t,n,a){return K({type:"goto",url:De(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:a,accept:()=>{t.invalidateAll&&(we=!0)}})}async function Vt(e){return N={id:e.id,promise:Je(e).then(t=>(t.type==="loaded"&&t.state.error&&(N=null),t))},N.promise}async function ce(e){const t=ne.find(n=>n.exec(We(e)));t&&await Promise.all([...t.layouts,t.leaf].map(n=>n?.[1]()))}function Ye(e,t){y=e.state;const n=document.querySelector("style[data-sveltekit]");n&&n.remove(),A=e.props.page,ve=new j.root({target:t,props:{...e.props,stores:L,components:z},hydrate:!0}),Ke(k);const a={from:null,to:{params:y.params,route:{id:y.route?.id??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};C.forEach(r=>r(a)),X=!0}async function Q({url:e,params:t,branch:n,status:a,error:r,route:o,form:i}){let s="never";if(S&&(e.pathname===S||e.pathname===S+"/"))s="always";else for(const f of n)f?.slash!==void 0&&(s=f.slash);e.pathname=nt(e.pathname,s),e.search=e.search;const c={type:"loaded",state:{url:e,params:t,branch:n,error:r,route:o},props:{constructors:xt(n).map(f=>f.node.component),page:A}};i!==void 0&&(c.props.form=i);let l={},d=!A,g=0;for(let f=0;f(s&&(c.route=!0),u[f])}),params:new Proxy(a,{get:(u,f)=>(s&&c.params.add(f),u[f])}),data:o?.data??null,url:st(n,()=>{s&&(c.url=!0)},u=>{s&&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 s&&d(p.href),p.origin===n.origin&&(h=p.href.slice(n.origin.length)),X?ht(h,p.href,f):dt(h,f)},setHeaders:()=>{},depends:d,parent(){return s&&(c.parent=!0),t()},untrack(u){s=!1;try{return u()}finally{s=!0}}};i=await l.universal.load.call(null,g)??null}return{node:l,loader:e,server:o,universal:l.universal?.load?{type:"data",data:i,uses:c}:null,data:i??o?.data??null,slash:l.universal?.trailingSlash??o?.slash}}function Te(e,t,n,a,r,o){if(we)return!0;if(!r)return!1;if(r.parent&&e||r.route&&t||r.url&&n)return!0;for(const i of r.search_params)if(a.has(i))return!0;for(const i of r.params)if(o[i]!==y.params[i])return!0;for(const i of r.dependencies)if(qe.some(s=>s(new URL(i))))return!0;return!1}function Ee(e,t){return e?.type==="data"?e:e?.type==="skip"?t??null:null}function Ft(e,t){if(!e)return new Set(t.searchParams.keys());const n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const a of n){const r=e.searchParams.getAll(a),o=t.searchParams.getAll(a);r.every(i=>o.includes(i))&&o.every(i=>r.includes(i))&&n.delete(a)}return n}async function Je({id:e,invalidating:t,url:n,params:a,route:r}){if(N?.id===e)return N.promise;const{errors:o,layouts:i,leaf:s}=r,c=[...i,s];o.forEach(_=>_?.().catch(()=>{})),c.forEach(_=>_?.[1]().catch(()=>{}));let l=null;const d=y.url?e!==y.url.pathname+y.url.search:!1,g=y.route?r.id!==y.route.id:!1,u=Ft(y.url,n);let f=!1;const h=c.map((_,m)=>{const v=y.branch[m],b=!!_?.[0]&&(v?.loader!==_[1]||Te(f,g,d,u,v.server?.uses,a));return b&&(f=!0),b});if(h.some(Boolean)){try{l=await Ze(n,h)}catch(_){return ae({status:J(_),error:await G(_,{url:n,params:a,route:{id:r.id}}),url:n,route:r})}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&&!Te(R,g,d,u,v.universal?.uses,a))return v;if(R=!0,b?.type==="error")throw b;return be({loader:_[1],url:n,params:a,route:r,parent:async()=>{const re={};for(let oe=0;oe{});const P=[];for(let _=0;_Promise.resolve({}),server_data_node:Ee(o)}),c={node:await W(),loader:W,universal:null,server:null,data:null};return await Q({url:n,params:r,branch:[s,c],status:e,error:t,route:null})}function ke(e,t){if(!e||ee(e,S))return;let n;try{n=j.hooks.reroute({url:new URL(e)})??e.pathname}catch{return}const a=We(n);for(const r of ne){const o=r.exec(a);if(o)return{id:e.pathname+e.search,invalidating:t,route:r,params:rt(o),url:e}}}function We(e){return at(e.slice(S.length)||"/")}function ze({url:e,type:t,intent:n,delta:a}){let r=!1;const o=et(y,n,e,t);a!==void 0&&(o.navigation.delta=a);const i={...o.navigation,cancel:()=>{r=!0,o.reject(new Error("navigation cancelled"))}};return q||Ge.forEach(s=>s(i)),r?null:o}async function K({type:e,url:t,popped:n,keepfocus:a,noscroll:r,replace_state:o,state:i={},redirect_count:s=0,nav_token:c={},accept:l=Ie,block:d=Ie}){const g=ke(t,!1),u=ze({url:t,type:e,delta:n?.delta,intent:g});if(!u){d();return}const f=w,h=k;l(),q=!0,X&&L.navigating.set(u.navigation),Z=c;let p=g&&await Je(g);if(!p){if(ee(t,S))return await O(t);p=await Xe(t,{id:null},await G(new ge(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404)}if(t=g?.url||t,Z!==c)return u.reject(new Error("navigation aborted")),!1;if(p.type==="redirect")if(s>=20)p=await ae({status:500,error:await G(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}});else return Be(new URL(p.location,t).href,{},s+1,c),!1;else p.props.page.status>=400&&await L.updated.check()&&await O(t);if(qe.length=0,we=!1,me(f),He(h),p.props.page.url.pathname!==t.pathname&&(t.pathname=p.props.page.url.pathname),i=n?n.state:i,!n){const _=o?0:1,m={[x]:w+=_,[V]:k+=_,[je]:i};(o?_e:Dt).call(history,m,"",t),o||$t(w,k)}if(N=null,p.props.page.state=i,X){y=p.state,p.props.page&&(p.props.page.url=t);const _=(await Promise.all(Ct.map(m=>m(u.navigation)))).filter(m=>typeof m=="function");if(_.length>0){let m=function(){C=C.filter(v=>!_.includes(v))};_.push(m),callbacks.after_navigate.push(..._)}ve.$set(p.props),Me=!0}else Ye(p,ue);const{activeElement:R}=document;await tt();const E=n?n.scroll:r?pe():null;if(Le){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;!a&&!P&&Bt(),Le=!0,p.props.page&&(A=p.props.page),q=!1,e==="popstate"&&Ke(k),u.fulfil(void 0),C.forEach(_=>_(u.navigation)),L.navigating.set(null)}async function Xe(e,t,n,a){return e.origin===M&&e.pathname===location.pathname&&!ye?await ae({status:a,error:n,url:e,route:t}):await O(e)}function Gt(){let e;I.addEventListener("mousemove",o=>{const i=o.target;clearTimeout(e),e=setTimeout(()=>{a(i,2)},20)});function t(o){a(o.composedPath()[0],1)}I.addEventListener("mousedown",t),I.addEventListener("touchstart",t,{passive:!0});const n=new IntersectionObserver(o=>{for(const i of o)i.isIntersecting&&(ce(i.target.href),n.unobserve(i.target))},{threshold:0});function a(o,i){const s=Ce(o,I);if(!s)return;const{url:c,external:l,download:d}=le(s,S);if(l||d)return;const g=Y(s);if(!g.reload)if(i<=g.preload_data){const u=ke(c,!1);u&&Vt(u)}else i<=g.preload_code&&ce(c.pathname)}function r(){n.disconnect();for(const o of I.querySelectorAll("a")){const{url:i,external:s,download:c}=le(o,S);if(s||c)continue;const l=Y(o);l.reload||(l.preload_code===B.viewport&&n.observe(o),l.preload_code===B.eager&&ce(i.pathname))}}C.push(r),r()}function G(e,t){if(e instanceof te)return e.body;const n=J(e),a=jt(e);return j.hooks.handleError({error:e,event:t,status:n,message:a})??{message:a}}function Mt(e,t={}){return e=De(e),e.origin!==M?Promise.reject(new Error("goto: invalid URL")):Be(e,t,0)}function Ht(){history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let n=!1;if(Pe(),!q){const a=et(y,void 0,null,"leave"),r={...a.navigation,cancel:()=>{n=!0,a.reject(new Error("navigation cancelled"))}};Ge.forEach(o=>o(r))}n?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Pe()}),navigator.connection?.saveData||Gt(),I.addEventListener("click",t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const n=Ce(t.composedPath()[0],I);if(!n)return;const{url:a,external:r,target:o,download:i}=le(n,S);if(!a)return;if(o==="_parent"||o==="_top"){if(window.parent!==window)return}else if(o&&o!=="_self")return;const s=Y(n);if(!(n instanceof SVGAElement)&&a.protocol!==location.protocol&&!(a.protocol==="https:"||a.protocol==="http:")||i)return;if(r||s.reload){ze({url:a,type:"link"})?q=!0:t.preventDefault();return}const[l,d]=a.href.split("#");if(d!==void 0&&l===se(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,me(w),e(a),!s.replace_state)return;D=!1}t.preventDefault(),K({type:"link",url:a,keepfocus:s.keepfocus,noscroll:s.noscroll,replace_state:s.replace_state??a.href===location.href})}),I.addEventListener("submit",t=>{if(t.defaultPrevented)return;const n=HTMLFormElement.prototype.cloneNode.call(t.target),a=t.submitter;if((a?.formMethod||n.method)!=="get")return;const o=new URL(a?.hasAttribute("formaction")&&a?.formAction||n.action);if(ee(o,S))return;const i=t.target,s=Y(i);if(s.reload)return;t.preventDefault(),t.stopPropagation();const c=new FormData(i),l=a?.getAttribute("name");l&&c.append(l,a?.getAttribute("value")??""),o.search=new URLSearchParams(c).toString(),K({type:"form",url:o,keepfocus:s.keepfocus,noscroll:s.noscroll,replace_state:s.replace_state??o.href===location.href})}),addEventListener("popstate",async t=>{if(t.state?.[x]){const n=t.state[x];if(Z={},n===w)return;const a=T[n],r=t.state[je]??{},o=new URL(t.state[Et]??location.href),i=t.state[V],s=se(location)===se(y.url);if(i===k&&(Me||s)){e(o),T[w]=pe(),a&&scrollTo(a.x,a.y),r!==A.state&&(A={...A,state:r},ve.$set({page:A})),w=n;return}const l=n-w;await K({type:"popstate",url:o,popped:{state:r,scroll:a,delta:l},accept:()=>{w=n,k=i},block:()=>{history.go(-l)},nav_token:Z})}else if(!D){const n=new URL(location.href);e(n)}}),addEventListener("hashchange",()=>{D&&(D=!1,_e.call(history,{...history.state,[x]:++w,[V]: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({...A,url:t}),L.page.notify()}}async function Kt(e,{status:t=200,error:n,node_ids:a,params:r,route:o,data:i,form:s}){ye=!0;const c=new URL(location.href);({params:r={},route:o={id:null}}=ke(c,!1)||{});let l;try{const d=a.map(async(f,h)=>{const p=i[h];return p?.uses&&(p.uses=Qe(p.uses)),be({loader:j.nodes[f],url:c,params:r,route:o,parent:async()=>{const R={};for(let E=0;Ef===o.id);if(u){const f=u.layouts;for(let h=0;hr?"1":"0").join(""));const a=await Ue(n.href);if(!a.ok){let r;throw a.headers.get("content-type")?.includes("application/json")?r=await a.json():a.status===404?r="Not Found":a.status===500&&(r="Internal Error"),new te(a.status,r)}return new Promise(async r=>{const o=new Map,i=a.body.getReader(),s=new TextDecoder;function c(d){return Tt(d,{Promise:g=>new Promise((u,f)=>{o.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?` -`:s.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 r(f);if(f.type==="data")f.nodes?.forEach(h=>{h?.type==="data"&&(h.uses=Qe(h.uses),h.data=c(h.data))}),r(f);else if(f.type==="chunk"){const{id:h,data:p,error:R}=f,E=o.get(h);o.delete(h),R?E.reject(c(R)):E.fulfil(c(p))}}}})}function Qe(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 Bt(){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 a=getSelection();if(a&&a.type!=="None"){const r=[];for(let o=0;o{if(a.rangeCount===r.length){for(let o=0;o{r=c,o=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:a,complete:i},fulfil:r,reject:o}}export{Wt as a,L as s}; diff --git a/build/client/_app/immutable/chunks/entry.P2wLj2Zg.js b/build/client/_app/immutable/chunks/entry.gmRKr8_M.js similarity index 99% rename from build/client/_app/immutable/chunks/entry.P2wLj2Zg.js rename to build/client/_app/immutable/chunks/entry.gmRKr8_M.js index c28403f4a4c39069479249cce573b1900a217601..49a2bad9fcebd8eeb4edea3b4c2bb0aee65c020b 100644 --- a/build/client/_app/immutable/chunks/entry.P2wLj2Zg.js +++ b/build/client/_app/immutable/chunks/entry.gmRKr8_M.js @@ -1,3 +1,3 @@ -import{K as tt}from"./scheduler.5WtVptCO.js";import{w as de}from"./index.G3yBo0_P.js";new URL("sveltekit-internal://");function nt(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function at(e){return e.split("%25").map(decodeURI).join("%25")}function rt(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function se({href:e}){return e.split("#")[0]}const ot=["href","pathname","search","toString","toJSON"];function st(e,t,n){const a=new URL(e);Object.defineProperty(a,"searchParams",{value:new Proxy(a.searchParams,{get(r,o){if(o==="get"||o==="getAll"||o==="has")return s=>(n(s),r[o](s));t();const i=Reflect.get(r,o);return typeof i=="function"?i.bind(r):i}}),enumerable:!0,configurable:!0});for(const r of ot)Object.defineProperty(a,r,{get(){return t(),e[r]},enumerable:!0,configurable:!0});return a}const it="/__data.json",ct=".html__data.json";function lt(e){return e.endsWith(".html")?e.replace(/\.html$/,ct):e.replace(/\/$/,"")+it}function ft(...e){let t=5381;for(const n of e)if(typeof n=="string"){let a=n.length;for(;a;)t=t*33^n.charCodeAt(--a)}else if(ArrayBuffer.isView(n)){const a=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let r=a.length;for(;r;)t=t*33^a[--r]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}const Ue=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||"GET")!=="GET"&&$.delete(he(e)),Ue(e,t));const $=new Map;function ut(e){const t=atob(e),n=new Uint8Array(t.length);for(let a=0;a0){const a=he(e,n),r=$.get(a);if(r){if(performance.now(){const r=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(a);if(r)return t.push({name:r[1],matcher:r[2],optional:!1,rest:!0,chained:!0}),"(?:/(.*))?";const o=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(a);if(o)return t.push({name:o[1],matcher:o[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!a)return;const i=a.split(/\[(.+?)\](?!\])/);return"/"+i.map((c,l)=>{if(l%2){if(c.startsWith("x+"))return ie(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return ie(String.fromCharCode(...c.slice(2).split("-").map(p=>parseInt(p,16))));const d=pt.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 ie(c)}).join("")}).join("")}/?$`),params:t}}function _t(e){return!/^\([^)]+\)$/.test(e)}function mt(e){return e.slice(1).split("/").filter(_t)}function yt(e,t,n){const a={},r=e.slice(1),o=r.filter(s=>s!==void 0);let i=0;for(let s=0;sd).join("/"),i=0),l===void 0){c.rest&&(a[c.name]="");continue}if(!c.matcher||n[c.matcher](l)){a[c.name]=l;const d=t[s+1],g=r[s+1];d&&!d.rest&&d.optional&&g&&c.chained&&(i=0),!d&&!g&&Object.keys(a).length===o.length&&(i=0);continue}if(c.optional&&c.chained){i++;continue}return}if(!i)return a}function ie(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function wt({nodes:e,server_loads:t,dictionary:n,matchers:a}){const r=new Set(t);return Object.entries(n).map(([s,[c,l,d]])=>{const{pattern:g,params:u}=gt(s),f={id:s,exec:h=>{const p=g.exec(h);if(p)return yt(p,u,a)},errors:[1,...d||[]].map(h=>e[h]),layouts:[0,...l||[]].map(i),leaf:o(c)};return f.errors.length=f.layouts.length=Math.max(f.errors.length,f.layouts.length),f});function o(s){const c=s<0;return c&&(s=~s),[c,e[s]]}function i(s){return s===void 0?s:[r.has(s),e[s]]}}function xe(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function Ae(e,t,n=JSON.stringify){const a=n(t);try{sessionStorage[e]=a}catch{}}const S=globalThis.__sveltekit_j71nnb?.base??"",vt=globalThis.__sveltekit_j71nnb?.assets??S,bt="1738049905806",Ne="sveltekit:snapshot",Oe="sveltekit:scroll",je="sveltekit:states",Et="sveltekit:pageurl",x="sveltekit:history",V="sveltekit:navigation",B={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},q=location.origin;function De(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 pe(){return{x:pageXOffset,y:pageYOffset}}function U(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const Se={...B,"":B.hover};function $e(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function Ce(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=$e(e)}}function le(e,t){let n;try{n=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI)}catch{}const a=e instanceof SVGAElement?e.target.baseVal:e.target,r=!n||!!a||ee(n,t)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),o=n?.origin===q&&e.hasAttribute("download");return{url:n,external:r,target:a,download:o}}function Y(e){let t=null,n=null,a=null,r=null,o=null,i=null,s=e;for(;s&&s!==document.documentElement;)a===null&&(a=U(s,"preload-code")),r===null&&(r=U(s,"preload-data")),t===null&&(t=U(s,"keepfocus")),n===null&&(n=U(s,"noscroll")),o===null&&(o=U(s,"reload")),i===null&&(i=U(s,"replacestate")),s=$e(s);function c(l){switch(l){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:Se[a??"off"],preload_data:Se[r??"off"],keepfocus:c(t),noscroll:c(n),reload:c(o),replace_state:c(i)}}function Re(e){const t=de(e);let n=!0;function a(){n=!0,t.update(i=>i)}function r(i){n=!1,t.set(i)}function o(i){let s;return t.subscribe(c=>{(s===void 0||n&&c!==s)&&i(s=c)})}return{notify:a,set:r,subscribe:o}}function kt(){const{set:e,subscribe:t}=de(!1);let n;async function a(){clearTimeout(n);try{const r=await fetch(`${vt}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!r.ok)return!1;const i=(await r.json()).version!==bt;return i&&(e(!0),clearTimeout(n)),i}catch{return!1}}return{subscribe:t,check:a}}function ee(e,t){return e.origin!==q||!e.pathname.startsWith(t)}const At=-1,St=-2,Rt=-3,It=-4,Lt=-5,Pt=-6;function Tt(e,t){if(typeof e=="number")return r(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,a=Array(n.length);function r(o,i=!1){if(o===At)return;if(o===Rt)return NaN;if(o===It)return 1/0;if(o===Lt)return-1/0;if(o===Pt)return-0;if(i)throw new Error("Invalid input");if(o in a)return a[o];const s=n[o];if(!s||typeof s!="object")a[o]=s;else if(Array.isArray(s))if(typeof s[0]=="string"){const c=s[0],l=t?.[c];if(l)return a[o]=l(r(s[1]));switch(c){case"Date":a[o]=new Date(s[1]);break;case"Set":const d=new Set;a[o]=d;for(let f=1;ft!=null)}class te{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 Fe{constructor(t,n){this.status=t,this.location=n}}class ge extends Error{constructor(t,n,a){super(a),this.status=t,this.text=n}}const Nt="x-sveltekit-invalidated",Ot="x-sveltekit-trailing-slash";function J(e){return e instanceof te||e instanceof ge?e.status:500}function jt(e){return e instanceof ge?e.text:"Internal Error"}const T=xe(Oe)??{},F=xe(Ne)??{},Dt=history.pushState,_e=history.replaceState,L={url:Re({}),page:Re({}),navigating:de(null),updated:kt()};function me(e){T[e]=pe()}function $t(e,t){let n=e+1;for(;T[n];)delete T[n],n+=1;for(n=t+1;F[n];)delete F[n],n+=1}function O(e){return location.href=e.href,new Promise(()=>{})}function Ie(){}let ne,fe,W,I,ue,j;const Ge=[],z=[];let N=null;const Me=[],Ct=[];let C=[],y={branch:[],error:null,url:null},ye=!1,X=!1,Le=!0,G=!1,D=!1,qe=!1,we=!1,ve,w,k,A,Z;async function Wt(e,t,n){document.URL!==location.href&&(location.href=location.href),j=e,ne=wt(e),I=document.documentElement,ue=t,fe=e.nodes[0],W=e.nodes[1],fe(),W(),w=history.state?.[x],k=history.state?.[V],w||(w=k=Date.now(),_e.call(history,{...history.state,[x]:w,[V]:k},""));const a=T[w];a&&(history.scrollRestoration="manual",scrollTo(a.x,a.y)),n?await Kt(ue,n):qt(location.href,{replaceState:!0}),Ht()}function He(e){z.some(t=>t?.snapshot)&&(F[e]=z.map(t=>t?.snapshot?.capture()))}function Ke(e){F[e]?.forEach((t,n)=>{z[n]?.snapshot?.restore(t)})}function Pe(){me(w),Ae(Oe,T),He(k),Ae(Ne,F)}async function Be(e,t,n,a){return K({type:"goto",url:De(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:a,accept:()=>{t.invalidateAll&&(we=!0)}})}async function Vt(e){return N={id:e.id,promise:Je(e).then(t=>(t.type==="loaded"&&t.state.error&&(N=null),t))},N.promise}async function ce(e){const t=ne.find(n=>n.exec(We(e)));t&&await Promise.all([...t.layouts,t.leaf].map(n=>n?.[1]()))}function Ye(e,t){y=e.state;const n=document.querySelector("style[data-sveltekit]");n&&n.remove(),A=e.props.page,ve=new j.root({target:t,props:{...e.props,stores:L,components:z},hydrate:!0}),Ke(k);const a={from:null,to:{params:y.params,route:{id:y.route?.id??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};C.forEach(r=>r(a)),X=!0}async function Q({url:e,params:t,branch:n,status:a,error:r,route:o,form:i}){let s="never";if(S&&(e.pathname===S||e.pathname===S+"/"))s="always";else for(const f of n)f?.slash!==void 0&&(s=f.slash);e.pathname=nt(e.pathname,s),e.search=e.search;const c={type:"loaded",state:{url:e,params:t,branch:n,error:r,route:o},props:{constructors:xt(n).map(f=>f.node.component),page:A}};i!==void 0&&(c.props.form=i);let l={},d=!A,g=0;for(let f=0;f(s&&(c.route=!0),u[f])}),params:new Proxy(a,{get:(u,f)=>(s&&c.params.add(f),u[f])}),data:o?.data??null,url:st(n,()=>{s&&(c.url=!0)},u=>{s&&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 s&&d(p.href),p.origin===n.origin&&(h=p.href.slice(n.origin.length)),X?ht(h,p.href,f):dt(h,f)},setHeaders:()=>{},depends:d,parent(){return s&&(c.parent=!0),t()},untrack(u){s=!1;try{return u()}finally{s=!0}}};i=await l.universal.load.call(null,g)??null}return{node:l,loader:e,server:o,universal:l.universal?.load?{type:"data",data:i,uses:c}:null,data:i??o?.data??null,slash:l.universal?.trailingSlash??o?.slash}}function Te(e,t,n,a,r,o){if(we)return!0;if(!r)return!1;if(r.parent&&e||r.route&&t||r.url&&n)return!0;for(const i of r.search_params)if(a.has(i))return!0;for(const i of r.params)if(o[i]!==y.params[i])return!0;for(const i of r.dependencies)if(Ge.some(s=>s(new URL(i))))return!0;return!1}function Ee(e,t){return e?.type==="data"?e:e?.type==="skip"?t??null:null}function Ft(e,t){if(!e)return new Set(t.searchParams.keys());const n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const a of n){const r=e.searchParams.getAll(a),o=t.searchParams.getAll(a);r.every(i=>o.includes(i))&&o.every(i=>r.includes(i))&&n.delete(a)}return n}async function Je({id:e,invalidating:t,url:n,params:a,route:r}){if(N?.id===e)return N.promise;const{errors:o,layouts:i,leaf:s}=r,c=[...i,s];o.forEach(_=>_?.().catch(()=>{})),c.forEach(_=>_?.[1]().catch(()=>{}));let l=null;const d=y.url?e!==y.url.pathname+y.url.search:!1,g=y.route?r.id!==y.route.id:!1,u=Ft(y.url,n);let f=!1;const h=c.map((_,m)=>{const v=y.branch[m],b=!!_?.[0]&&(v?.loader!==_[1]||Te(f,g,d,u,v.server?.uses,a));return b&&(f=!0),b});if(h.some(Boolean)){try{l=await Ze(n,h)}catch(_){return ae({status:J(_),error:await M(_,{url:n,params:a,route:{id:r.id}}),url:n,route:r})}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&&!Te(R,g,d,u,v.universal?.uses,a))return v;if(R=!0,b?.type==="error")throw b;return be({loader:_[1],url:n,params:a,route:r,parent:async()=>{const re={};for(let oe=0;oe{});const P=[];for(let _=0;_Promise.resolve({}),server_data_node:Ee(o)}),c={node:await W(),loader:W,universal:null,server:null,data:null};return await Q({url:n,params:r,branch:[s,c],status:e,error:t,route:null})}function ke(e,t){if(!e||ee(e,S))return;let n;try{n=j.hooks.reroute({url:new URL(e)})??e.pathname}catch{return}const a=We(n);for(const r of ne){const o=r.exec(a);if(o)return{id:e.pathname+e.search,invalidating:t,route:r,params:rt(o),url:e}}}function We(e){return at(e.slice(S.length)||"/")}function ze({url:e,type:t,intent:n,delta:a}){let r=!1;const o=et(y,n,e,t);a!==void 0&&(o.navigation.delta=a);const i={...o.navigation,cancel:()=>{r=!0,o.reject(new Error("navigation cancelled"))}};return G||Me.forEach(s=>s(i)),r?null:o}async function K({type:e,url:t,popped:n,keepfocus:a,noscroll:r,replace_state:o,state:i={},redirect_count:s=0,nav_token:c={},accept:l=Ie,block:d=Ie}){const g=ke(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,X&&L.navigating.set(u.navigation),Z=c;let p=g&&await Je(g);if(!p){if(ee(t,S))return await O(t);p=await Xe(t,{id:null},await M(new ge(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404)}if(t=g?.url||t,Z!==c)return u.reject(new Error("navigation aborted")),!1;if(p.type==="redirect")if(s>=20)p=await ae({status:500,error:await M(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}});else return Be(new URL(p.location,t).href,{},s+1,c),!1;else p.props.page.status>=400&&await L.updated.check()&&await O(t);if(Ge.length=0,we=!1,me(f),He(h),p.props.page.url.pathname!==t.pathname&&(t.pathname=p.props.page.url.pathname),i=n?n.state:i,!n){const _=o?0:1,m={[x]:w+=_,[V]:k+=_,[je]:i};(o?_e:Dt).call(history,m,"",t),o||$t(w,k)}if(N=null,p.props.page.state=i,X){y=p.state,p.props.page&&(p.props.page.url=t);const _=(await Promise.all(Ct.map(m=>m(u.navigation)))).filter(m=>typeof m=="function");if(_.length>0){let m=function(){C=C.filter(v=>!_.includes(v))};_.push(m),callbacks.after_navigate.push(..._)}ve.$set(p.props),qe=!0}else Ye(p,ue);const{activeElement:R}=document;await tt();const E=n?n.scroll:r?pe():null;if(Le){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;!a&&!P&&Bt(),Le=!0,p.props.page&&(A=p.props.page),G=!1,e==="popstate"&&Ke(k),u.fulfil(void 0),C.forEach(_=>_(u.navigation)),L.navigating.set(null)}async function Xe(e,t,n,a){return e.origin===q&&e.pathname===location.pathname&&!ye?await ae({status:a,error:n,url:e,route:t}):await O(e)}function Mt(){let e;I.addEventListener("mousemove",o=>{const i=o.target;clearTimeout(e),e=setTimeout(()=>{a(i,2)},20)});function t(o){a(o.composedPath()[0],1)}I.addEventListener("mousedown",t),I.addEventListener("touchstart",t,{passive:!0});const n=new IntersectionObserver(o=>{for(const i of o)i.isIntersecting&&(ce(i.target.href),n.unobserve(i.target))},{threshold:0});function a(o,i){const s=Ce(o,I);if(!s)return;const{url:c,external:l,download:d}=le(s,S);if(l||d)return;const g=Y(s);if(!g.reload)if(i<=g.preload_data){const u=ke(c,!1);u&&Vt(u)}else i<=g.preload_code&&ce(c.pathname)}function r(){n.disconnect();for(const o of I.querySelectorAll("a")){const{url:i,external:s,download:c}=le(o,S);if(s||c)continue;const l=Y(o);l.reload||(l.preload_code===B.viewport&&n.observe(o),l.preload_code===B.eager&&ce(i.pathname))}}C.push(r),r()}function M(e,t){if(e instanceof te)return e.body;const n=J(e),a=jt(e);return j.hooks.handleError({error:e,event:t,status:n,message:a})??{message:a}}function qt(e,t={}){return e=De(e),e.origin!==q?Promise.reject(new Error("goto: invalid URL")):Be(e,t,0)}function Ht(){history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let n=!1;if(Pe(),!G){const a=et(y,void 0,null,"leave"),r={...a.navigation,cancel:()=>{n=!0,a.reject(new Error("navigation cancelled"))}};Me.forEach(o=>o(r))}n?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Pe()}),navigator.connection?.saveData||Mt(),I.addEventListener("click",t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const n=Ce(t.composedPath()[0],I);if(!n)return;const{url:a,external:r,target:o,download:i}=le(n,S);if(!a)return;if(o==="_parent"||o==="_top"){if(window.parent!==window)return}else if(o&&o!=="_self")return;const s=Y(n);if(!(n instanceof SVGAElement)&&a.protocol!==location.protocol&&!(a.protocol==="https:"||a.protocol==="http:")||i)return;if(r||s.reload){ze({url:a,type:"link"})?G=!0:t.preventDefault();return}const[l,d]=a.href.split("#");if(d!==void 0&&l===se(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,me(w),e(a),!s.replace_state)return;D=!1}t.preventDefault(),K({type:"link",url:a,keepfocus:s.keepfocus,noscroll:s.noscroll,replace_state:s.replace_state??a.href===location.href})}),I.addEventListener("submit",t=>{if(t.defaultPrevented)return;const n=HTMLFormElement.prototype.cloneNode.call(t.target),a=t.submitter;if((a?.formMethod||n.method)!=="get")return;const o=new URL(a?.hasAttribute("formaction")&&a?.formAction||n.action);if(ee(o,S))return;const i=t.target,s=Y(i);if(s.reload)return;t.preventDefault(),t.stopPropagation();const c=new FormData(i),l=a?.getAttribute("name");l&&c.append(l,a?.getAttribute("value")??""),o.search=new URLSearchParams(c).toString(),K({type:"form",url:o,keepfocus:s.keepfocus,noscroll:s.noscroll,replace_state:s.replace_state??o.href===location.href})}),addEventListener("popstate",async t=>{if(t.state?.[x]){const n=t.state[x];if(Z={},n===w)return;const a=T[n],r=t.state[je]??{},o=new URL(t.state[Et]??location.href),i=t.state[V],s=se(location)===se(y.url);if(i===k&&(qe||s)){e(o),T[w]=pe(),a&&scrollTo(a.x,a.y),r!==A.state&&(A={...A,state:r},ve.$set({page:A})),w=n;return}const l=n-w;await K({type:"popstate",url:o,popped:{state:r,scroll:a,delta:l},accept:()=>{w=n,k=i},block:()=>{history.go(-l)},nav_token:Z})}else if(!D){const n=new URL(location.href);e(n)}}),addEventListener("hashchange",()=>{D&&(D=!1,_e.call(history,{...history.state,[x]:++w,[V]: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({...A,url:t}),L.page.notify()}}async function Kt(e,{status:t=200,error:n,node_ids:a,params:r,route:o,data:i,form:s}){ye=!0;const c=new URL(location.href);({params:r={},route:o={id:null}}=ke(c,!1)||{});let l;try{const d=a.map(async(f,h)=>{const p=i[h];return p?.uses&&(p.uses=Qe(p.uses)),be({loader:j.nodes[f],url:c,params:r,route:o,parent:async()=>{const R={};for(let E=0;Ef===o.id);if(u){const f=u.layouts;for(let h=0;hr?"1":"0").join(""));const a=await Ue(n.href);if(!a.ok){let r;throw a.headers.get("content-type")?.includes("application/json")?r=await a.json():a.status===404?r="Not Found":a.status===500&&(r="Internal Error"),new te(a.status,r)}return new Promise(async r=>{const o=new Map,i=a.body.getReader(),s=new TextDecoder;function c(d){return Tt(d,{Promise:g=>new Promise((u,f)=>{o.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?` +import{K as tt}from"./scheduler.5WtVptCO.js";import{w as de}from"./index.G3yBo0_P.js";new URL("sveltekit-internal://");function nt(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function at(e){return e.split("%25").map(decodeURI).join("%25")}function rt(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function se({href:e}){return e.split("#")[0]}const ot=["href","pathname","search","toString","toJSON"];function st(e,t,n){const a=new URL(e);Object.defineProperty(a,"searchParams",{value:new Proxy(a.searchParams,{get(r,o){if(o==="get"||o==="getAll"||o==="has")return s=>(n(s),r[o](s));t();const i=Reflect.get(r,o);return typeof i=="function"?i.bind(r):i}}),enumerable:!0,configurable:!0});for(const r of ot)Object.defineProperty(a,r,{get(){return t(),e[r]},enumerable:!0,configurable:!0});return a}const it="/__data.json",ct=".html__data.json";function lt(e){return e.endsWith(".html")?e.replace(/\.html$/,ct):e.replace(/\/$/,"")+it}function ft(...e){let t=5381;for(const n of e)if(typeof n=="string"){let a=n.length;for(;a;)t=t*33^n.charCodeAt(--a)}else if(ArrayBuffer.isView(n)){const a=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let r=a.length;for(;r;)t=t*33^a[--r]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}const Ue=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||"GET")!=="GET"&&$.delete(he(e)),Ue(e,t));const $=new Map;function ut(e){const t=atob(e),n=new Uint8Array(t.length);for(let a=0;a0){const a=he(e,n),r=$.get(a);if(r){if(performance.now(){const r=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(a);if(r)return t.push({name:r[1],matcher:r[2],optional:!1,rest:!0,chained:!0}),"(?:/(.*))?";const o=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(a);if(o)return t.push({name:o[1],matcher:o[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!a)return;const i=a.split(/\[(.+?)\](?!\])/);return"/"+i.map((c,l)=>{if(l%2){if(c.startsWith("x+"))return ie(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return ie(String.fromCharCode(...c.slice(2).split("-").map(p=>parseInt(p,16))));const d=pt.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 ie(c)}).join("")}).join("")}/?$`),params:t}}function _t(e){return!/^\([^)]+\)$/.test(e)}function mt(e){return e.slice(1).split("/").filter(_t)}function yt(e,t,n){const a={},r=e.slice(1),o=r.filter(s=>s!==void 0);let i=0;for(let s=0;sd).join("/"),i=0),l===void 0){c.rest&&(a[c.name]="");continue}if(!c.matcher||n[c.matcher](l)){a[c.name]=l;const d=t[s+1],g=r[s+1];d&&!d.rest&&d.optional&&g&&c.chained&&(i=0),!d&&!g&&Object.keys(a).length===o.length&&(i=0);continue}if(c.optional&&c.chained){i++;continue}return}if(!i)return a}function ie(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function wt({nodes:e,server_loads:t,dictionary:n,matchers:a}){const r=new Set(t);return Object.entries(n).map(([s,[c,l,d]])=>{const{pattern:g,params:u}=gt(s),f={id:s,exec:h=>{const p=g.exec(h);if(p)return yt(p,u,a)},errors:[1,...d||[]].map(h=>e[h]),layouts:[0,...l||[]].map(i),leaf:o(c)};return f.errors.length=f.layouts.length=Math.max(f.errors.length,f.layouts.length),f});function o(s){const c=s<0;return c&&(s=~s),[c,e[s]]}function i(s){return s===void 0?s:[r.has(s),e[s]]}}function xe(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function Ae(e,t,n=JSON.stringify){const a=n(t);try{sessionStorage[e]=a}catch{}}const S=globalThis.__sveltekit_smfpmf?.base??"",vt=globalThis.__sveltekit_smfpmf?.assets??S,bt="1751207378786",Ne="sveltekit:snapshot",Oe="sveltekit:scroll",je="sveltekit:states",Et="sveltekit:pageurl",x="sveltekit:history",V="sveltekit:navigation",B={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},q=location.origin;function De(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 pe(){return{x:pageXOffset,y:pageYOffset}}function U(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const Se={...B,"":B.hover};function $e(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function Ce(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=$e(e)}}function le(e,t){let n;try{n=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI)}catch{}const a=e instanceof SVGAElement?e.target.baseVal:e.target,r=!n||!!a||ee(n,t)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),o=n?.origin===q&&e.hasAttribute("download");return{url:n,external:r,target:a,download:o}}function Y(e){let t=null,n=null,a=null,r=null,o=null,i=null,s=e;for(;s&&s!==document.documentElement;)a===null&&(a=U(s,"preload-code")),r===null&&(r=U(s,"preload-data")),t===null&&(t=U(s,"keepfocus")),n===null&&(n=U(s,"noscroll")),o===null&&(o=U(s,"reload")),i===null&&(i=U(s,"replacestate")),s=$e(s);function c(l){switch(l){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:Se[a??"off"],preload_data:Se[r??"off"],keepfocus:c(t),noscroll:c(n),reload:c(o),replace_state:c(i)}}function Re(e){const t=de(e);let n=!0;function a(){n=!0,t.update(i=>i)}function r(i){n=!1,t.set(i)}function o(i){let s;return t.subscribe(c=>{(s===void 0||n&&c!==s)&&i(s=c)})}return{notify:a,set:r,subscribe:o}}function kt(){const{set:e,subscribe:t}=de(!1);let n;async function a(){clearTimeout(n);try{const r=await fetch(`${vt}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!r.ok)return!1;const i=(await r.json()).version!==bt;return i&&(e(!0),clearTimeout(n)),i}catch{return!1}}return{subscribe:t,check:a}}function ee(e,t){return e.origin!==q||!e.pathname.startsWith(t)}const At=-1,St=-2,Rt=-3,It=-4,Lt=-5,Pt=-6;function Tt(e,t){if(typeof e=="number")return r(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,a=Array(n.length);function r(o,i=!1){if(o===At)return;if(o===Rt)return NaN;if(o===It)return 1/0;if(o===Lt)return-1/0;if(o===Pt)return-0;if(i)throw new Error("Invalid input");if(o in a)return a[o];const s=n[o];if(!s||typeof s!="object")a[o]=s;else if(Array.isArray(s))if(typeof s[0]=="string"){const c=s[0],l=t?.[c];if(l)return a[o]=l(r(s[1]));switch(c){case"Date":a[o]=new Date(s[1]);break;case"Set":const d=new Set;a[o]=d;for(let f=1;ft!=null)}class te{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 Fe{constructor(t,n){this.status=t,this.location=n}}class ge extends Error{constructor(t,n,a){super(a),this.status=t,this.text=n}}const Nt="x-sveltekit-invalidated",Ot="x-sveltekit-trailing-slash";function J(e){return e instanceof te||e instanceof ge?e.status:500}function jt(e){return e instanceof ge?e.text:"Internal Error"}const T=xe(Oe)??{},F=xe(Ne)??{},Dt=history.pushState,_e=history.replaceState,L={url:Re({}),page:Re({}),navigating:de(null),updated:kt()};function me(e){T[e]=pe()}function $t(e,t){let n=e+1;for(;T[n];)delete T[n],n+=1;for(n=t+1;F[n];)delete F[n],n+=1}function O(e){return location.href=e.href,new Promise(()=>{})}function Ie(){}let ne,fe,W,I,ue,j;const Ge=[],z=[];let N=null;const Me=[],Ct=[];let C=[],y={branch:[],error:null,url:null},ye=!1,X=!1,Le=!0,G=!1,D=!1,qe=!1,we=!1,ve,w,k,A,Z;async function Wt(e,t,n){document.URL!==location.href&&(location.href=location.href),j=e,ne=wt(e),I=document.documentElement,ue=t,fe=e.nodes[0],W=e.nodes[1],fe(),W(),w=history.state?.[x],k=history.state?.[V],w||(w=k=Date.now(),_e.call(history,{...history.state,[x]:w,[V]:k},""));const a=T[w];a&&(history.scrollRestoration="manual",scrollTo(a.x,a.y)),n?await Kt(ue,n):qt(location.href,{replaceState:!0}),Ht()}function He(e){z.some(t=>t?.snapshot)&&(F[e]=z.map(t=>t?.snapshot?.capture()))}function Ke(e){F[e]?.forEach((t,n)=>{z[n]?.snapshot?.restore(t)})}function Pe(){me(w),Ae(Oe,T),He(k),Ae(Ne,F)}async function Be(e,t,n,a){return K({type:"goto",url:De(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:a,accept:()=>{t.invalidateAll&&(we=!0)}})}async function Vt(e){return N={id:e.id,promise:Je(e).then(t=>(t.type==="loaded"&&t.state.error&&(N=null),t))},N.promise}async function ce(e){const t=ne.find(n=>n.exec(We(e)));t&&await Promise.all([...t.layouts,t.leaf].map(n=>n?.[1]()))}function Ye(e,t){y=e.state;const n=document.querySelector("style[data-sveltekit]");n&&n.remove(),A=e.props.page,ve=new j.root({target:t,props:{...e.props,stores:L,components:z},hydrate:!0}),Ke(k);const a={from:null,to:{params:y.params,route:{id:y.route?.id??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};C.forEach(r=>r(a)),X=!0}async function Q({url:e,params:t,branch:n,status:a,error:r,route:o,form:i}){let s="never";if(S&&(e.pathname===S||e.pathname===S+"/"))s="always";else for(const f of n)f?.slash!==void 0&&(s=f.slash);e.pathname=nt(e.pathname,s),e.search=e.search;const c={type:"loaded",state:{url:e,params:t,branch:n,error:r,route:o},props:{constructors:xt(n).map(f=>f.node.component),page:A}};i!==void 0&&(c.props.form=i);let l={},d=!A,g=0;for(let f=0;f(s&&(c.route=!0),u[f])}),params:new Proxy(a,{get:(u,f)=>(s&&c.params.add(f),u[f])}),data:o?.data??null,url:st(n,()=>{s&&(c.url=!0)},u=>{s&&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 s&&d(p.href),p.origin===n.origin&&(h=p.href.slice(n.origin.length)),X?ht(h,p.href,f):dt(h,f)},setHeaders:()=>{},depends:d,parent(){return s&&(c.parent=!0),t()},untrack(u){s=!1;try{return u()}finally{s=!0}}};i=await l.universal.load.call(null,g)??null}return{node:l,loader:e,server:o,universal:l.universal?.load?{type:"data",data:i,uses:c}:null,data:i??o?.data??null,slash:l.universal?.trailingSlash??o?.slash}}function Te(e,t,n,a,r,o){if(we)return!0;if(!r)return!1;if(r.parent&&e||r.route&&t||r.url&&n)return!0;for(const i of r.search_params)if(a.has(i))return!0;for(const i of r.params)if(o[i]!==y.params[i])return!0;for(const i of r.dependencies)if(Ge.some(s=>s(new URL(i))))return!0;return!1}function Ee(e,t){return e?.type==="data"?e:e?.type==="skip"?t??null:null}function Ft(e,t){if(!e)return new Set(t.searchParams.keys());const n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const a of n){const r=e.searchParams.getAll(a),o=t.searchParams.getAll(a);r.every(i=>o.includes(i))&&o.every(i=>r.includes(i))&&n.delete(a)}return n}async function Je({id:e,invalidating:t,url:n,params:a,route:r}){if(N?.id===e)return N.promise;const{errors:o,layouts:i,leaf:s}=r,c=[...i,s];o.forEach(_=>_?.().catch(()=>{})),c.forEach(_=>_?.[1]().catch(()=>{}));let l=null;const d=y.url?e!==y.url.pathname+y.url.search:!1,g=y.route?r.id!==y.route.id:!1,u=Ft(y.url,n);let f=!1;const h=c.map((_,m)=>{const v=y.branch[m],b=!!_?.[0]&&(v?.loader!==_[1]||Te(f,g,d,u,v.server?.uses,a));return b&&(f=!0),b});if(h.some(Boolean)){try{l=await Ze(n,h)}catch(_){return ae({status:J(_),error:await M(_,{url:n,params:a,route:{id:r.id}}),url:n,route:r})}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&&!Te(R,g,d,u,v.universal?.uses,a))return v;if(R=!0,b?.type==="error")throw b;return be({loader:_[1],url:n,params:a,route:r,parent:async()=>{const re={};for(let oe=0;oe{});const P=[];for(let _=0;_Promise.resolve({}),server_data_node:Ee(o)}),c={node:await W(),loader:W,universal:null,server:null,data:null};return await Q({url:n,params:r,branch:[s,c],status:e,error:t,route:null})}function ke(e,t){if(!e||ee(e,S))return;let n;try{n=j.hooks.reroute({url:new URL(e)})??e.pathname}catch{return}const a=We(n);for(const r of ne){const o=r.exec(a);if(o)return{id:e.pathname+e.search,invalidating:t,route:r,params:rt(o),url:e}}}function We(e){return at(e.slice(S.length)||"/")}function ze({url:e,type:t,intent:n,delta:a}){let r=!1;const o=et(y,n,e,t);a!==void 0&&(o.navigation.delta=a);const i={...o.navigation,cancel:()=>{r=!0,o.reject(new Error("navigation cancelled"))}};return G||Me.forEach(s=>s(i)),r?null:o}async function K({type:e,url:t,popped:n,keepfocus:a,noscroll:r,replace_state:o,state:i={},redirect_count:s=0,nav_token:c={},accept:l=Ie,block:d=Ie}){const g=ke(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,X&&L.navigating.set(u.navigation),Z=c;let p=g&&await Je(g);if(!p){if(ee(t,S))return await O(t);p=await Xe(t,{id:null},await M(new ge(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404)}if(t=g?.url||t,Z!==c)return u.reject(new Error("navigation aborted")),!1;if(p.type==="redirect")if(s>=20)p=await ae({status:500,error:await M(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}});else return Be(new URL(p.location,t).href,{},s+1,c),!1;else p.props.page.status>=400&&await L.updated.check()&&await O(t);if(Ge.length=0,we=!1,me(f),He(h),p.props.page.url.pathname!==t.pathname&&(t.pathname=p.props.page.url.pathname),i=n?n.state:i,!n){const _=o?0:1,m={[x]:w+=_,[V]:k+=_,[je]:i};(o?_e:Dt).call(history,m,"",t),o||$t(w,k)}if(N=null,p.props.page.state=i,X){y=p.state,p.props.page&&(p.props.page.url=t);const _=(await Promise.all(Ct.map(m=>m(u.navigation)))).filter(m=>typeof m=="function");if(_.length>0){let m=function(){C=C.filter(v=>!_.includes(v))};_.push(m),callbacks.after_navigate.push(..._)}ve.$set(p.props),qe=!0}else Ye(p,ue);const{activeElement:R}=document;await tt();const E=n?n.scroll:r?pe():null;if(Le){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;!a&&!P&&Bt(),Le=!0,p.props.page&&(A=p.props.page),G=!1,e==="popstate"&&Ke(k),u.fulfil(void 0),C.forEach(_=>_(u.navigation)),L.navigating.set(null)}async function Xe(e,t,n,a){return e.origin===q&&e.pathname===location.pathname&&!ye?await ae({status:a,error:n,url:e,route:t}):await O(e)}function Mt(){let e;I.addEventListener("mousemove",o=>{const i=o.target;clearTimeout(e),e=setTimeout(()=>{a(i,2)},20)});function t(o){a(o.composedPath()[0],1)}I.addEventListener("mousedown",t),I.addEventListener("touchstart",t,{passive:!0});const n=new IntersectionObserver(o=>{for(const i of o)i.isIntersecting&&(ce(i.target.href),n.unobserve(i.target))},{threshold:0});function a(o,i){const s=Ce(o,I);if(!s)return;const{url:c,external:l,download:d}=le(s,S);if(l||d)return;const g=Y(s);if(!g.reload)if(i<=g.preload_data){const u=ke(c,!1);u&&Vt(u)}else i<=g.preload_code&&ce(c.pathname)}function r(){n.disconnect();for(const o of I.querySelectorAll("a")){const{url:i,external:s,download:c}=le(o,S);if(s||c)continue;const l=Y(o);l.reload||(l.preload_code===B.viewport&&n.observe(o),l.preload_code===B.eager&&ce(i.pathname))}}C.push(r),r()}function M(e,t){if(e instanceof te)return e.body;const n=J(e),a=jt(e);return j.hooks.handleError({error:e,event:t,status:n,message:a})??{message:a}}function qt(e,t={}){return e=De(e),e.origin!==q?Promise.reject(new Error("goto: invalid URL")):Be(e,t,0)}function Ht(){history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let n=!1;if(Pe(),!G){const a=et(y,void 0,null,"leave"),r={...a.navigation,cancel:()=>{n=!0,a.reject(new Error("navigation cancelled"))}};Me.forEach(o=>o(r))}n?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Pe()}),navigator.connection?.saveData||Mt(),I.addEventListener("click",t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const n=Ce(t.composedPath()[0],I);if(!n)return;const{url:a,external:r,target:o,download:i}=le(n,S);if(!a)return;if(o==="_parent"||o==="_top"){if(window.parent!==window)return}else if(o&&o!=="_self")return;const s=Y(n);if(!(n instanceof SVGAElement)&&a.protocol!==location.protocol&&!(a.protocol==="https:"||a.protocol==="http:")||i)return;if(r||s.reload){ze({url:a,type:"link"})?G=!0:t.preventDefault();return}const[l,d]=a.href.split("#");if(d!==void 0&&l===se(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,me(w),e(a),!s.replace_state)return;D=!1}t.preventDefault(),K({type:"link",url:a,keepfocus:s.keepfocus,noscroll:s.noscroll,replace_state:s.replace_state??a.href===location.href})}),I.addEventListener("submit",t=>{if(t.defaultPrevented)return;const n=HTMLFormElement.prototype.cloneNode.call(t.target),a=t.submitter;if((a?.formMethod||n.method)!=="get")return;const o=new URL(a?.hasAttribute("formaction")&&a?.formAction||n.action);if(ee(o,S))return;const i=t.target,s=Y(i);if(s.reload)return;t.preventDefault(),t.stopPropagation();const c=new FormData(i),l=a?.getAttribute("name");l&&c.append(l,a?.getAttribute("value")??""),o.search=new URLSearchParams(c).toString(),K({type:"form",url:o,keepfocus:s.keepfocus,noscroll:s.noscroll,replace_state:s.replace_state??o.href===location.href})}),addEventListener("popstate",async t=>{if(t.state?.[x]){const n=t.state[x];if(Z={},n===w)return;const a=T[n],r=t.state[je]??{},o=new URL(t.state[Et]??location.href),i=t.state[V],s=se(location)===se(y.url);if(i===k&&(qe||s)){e(o),T[w]=pe(),a&&scrollTo(a.x,a.y),r!==A.state&&(A={...A,state:r},ve.$set({page:A})),w=n;return}const l=n-w;await K({type:"popstate",url:o,popped:{state:r,scroll:a,delta:l},accept:()=>{w=n,k=i},block:()=>{history.go(-l)},nav_token:Z})}else if(!D){const n=new URL(location.href);e(n)}}),addEventListener("hashchange",()=>{D&&(D=!1,_e.call(history,{...history.state,[x]:++w,[V]: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({...A,url:t}),L.page.notify()}}async function Kt(e,{status:t=200,error:n,node_ids:a,params:r,route:o,data:i,form:s}){ye=!0;const c=new URL(location.href);({params:r={},route:o={id:null}}=ke(c,!1)||{});let l;try{const d=a.map(async(f,h)=>{const p=i[h];return p?.uses&&(p.uses=Qe(p.uses)),be({loader:j.nodes[f],url:c,params:r,route:o,parent:async()=>{const R={};for(let E=0;Ef===o.id);if(u){const f=u.layouts;for(let h=0;hr?"1":"0").join(""));const a=await Ue(n.href);if(!a.ok){let r;throw a.headers.get("content-type")?.includes("application/json")?r=await a.json():a.status===404?r="Not Found":a.status===500&&(r="Internal Error"),new te(a.status,r)}return new Promise(async r=>{const o=new Map,i=a.body.getReader(),s=new TextDecoder;function c(d){return Tt(d,{Promise:g=>new Promise((u,f)=>{o.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?` `:s.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 r(f);if(f.type==="data")f.nodes?.forEach(h=>{h?.type==="data"&&(h.uses=Qe(h.uses),h.data=c(h.data))}),r(f);else if(f.type==="chunk"){const{id:h,data:p,error:R}=f,E=o.get(h);o.delete(h),R?E.reject(c(R)):E.fulfil(c(p))}}}})}function Qe(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 Bt(){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 a=getSelection();if(a&&a.type!=="None"){const r=[];for(let o=0;o{if(a.rangeCount===r.length){for(let o=0;o{r=c,o=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:a,complete:i},fulfil:r,reject:o}}export{Wt as a,L as s}; diff --git a/build/client/_app/immutable/chunks/entry.p4bgP42u.js b/build/client/_app/immutable/chunks/entry.p4bgP42u.js deleted file mode 100644 index 01533ee572de847ff64d1845f104ed1c32ff6086..0000000000000000000000000000000000000000 --- a/build/client/_app/immutable/chunks/entry.p4bgP42u.js +++ /dev/null @@ -1,3 +0,0 @@ -import{A as tt}from"./scheduler.AtZRZ-7N.js";import{w as de}from"./index.XMdNxSiw.js";new URL("sveltekit-internal://");function nt(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function at(e){return e.split("%25").map(decodeURI).join("%25")}function rt(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function se({href:e}){return e.split("#")[0]}const ot=["href","pathname","search","toString","toJSON"];function st(e,t,n){const a=new URL(e);Object.defineProperty(a,"searchParams",{value:new Proxy(a.searchParams,{get(r,o){if(o==="get"||o==="getAll"||o==="has")return s=>(n(s),r[o](s));t();const i=Reflect.get(r,o);return typeof i=="function"?i.bind(r):i}}),enumerable:!0,configurable:!0});for(const r of ot)Object.defineProperty(a,r,{get(){return t(),e[r]},enumerable:!0,configurable:!0});return a}const it="/__data.json",ct=".html__data.json";function lt(e){return e.endsWith(".html")?e.replace(/\.html$/,ct):e.replace(/\/$/,"")+it}function ft(...e){let t=5381;for(const n of e)if(typeof n=="string"){let a=n.length;for(;a;)t=t*33^n.charCodeAt(--a)}else if(ArrayBuffer.isView(n)){const a=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let r=a.length;for(;r;)t=t*33^a[--r]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}const Ue=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||"GET")!=="GET"&&$.delete(he(e)),Ue(e,t));const $=new Map;function ut(e){const t=atob(e),n=new Uint8Array(t.length);for(let a=0;a0){const a=he(e,n),r=$.get(a);if(r){if(performance.now(){const r=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(a);if(r)return t.push({name:r[1],matcher:r[2],optional:!1,rest:!0,chained:!0}),"(?:/(.*))?";const o=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(a);if(o)return t.push({name:o[1],matcher:o[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!a)return;const i=a.split(/\[(.+?)\](?!\])/);return"/"+i.map((c,l)=>{if(l%2){if(c.startsWith("x+"))return ie(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return ie(String.fromCharCode(...c.slice(2).split("-").map(p=>parseInt(p,16))));const d=pt.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 ie(c)}).join("")}).join("")}/?$`),params:t}}function _t(e){return!/^\([^)]+\)$/.test(e)}function mt(e){return e.slice(1).split("/").filter(_t)}function yt(e,t,n){const a={},r=e.slice(1),o=r.filter(s=>s!==void 0);let i=0;for(let s=0;sd).join("/"),i=0),l===void 0){c.rest&&(a[c.name]="");continue}if(!c.matcher||n[c.matcher](l)){a[c.name]=l;const d=t[s+1],g=r[s+1];d&&!d.rest&&d.optional&&g&&c.chained&&(i=0),!d&&!g&&Object.keys(a).length===o.length&&(i=0);continue}if(c.optional&&c.chained){i++;continue}return}if(!i)return a}function ie(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function wt({nodes:e,server_loads:t,dictionary:n,matchers:a}){const r=new Set(t);return Object.entries(n).map(([s,[c,l,d]])=>{const{pattern:g,params:u}=gt(s),f={id:s,exec:h=>{const p=g.exec(h);if(p)return yt(p,u,a)},errors:[1,...d||[]].map(h=>e[h]),layouts:[0,...l||[]].map(i),leaf:o(c)};return f.errors.length=f.layouts.length=Math.max(f.errors.length,f.layouts.length),f});function o(s){const c=s<0;return c&&(s=~s),[c,e[s]]}function i(s){return s===void 0?s:[r.has(s),e[s]]}}function xe(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function Ae(e,t,n=JSON.stringify){const a=n(t);try{sessionStorage[e]=a}catch{}}const S=globalThis.__sveltekit_wweid4?.base??"",vt=globalThis.__sveltekit_wweid4?.assets??S,bt="1725545879583",Ne="sveltekit:snapshot",Oe="sveltekit:scroll",je="sveltekit:states",Et="sveltekit:pageurl",x="sveltekit:history",V="sveltekit:navigation",K={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},q=location.origin;function De(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 pe(){return{x:pageXOffset,y:pageYOffset}}function U(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const Se={...K,"":K.hover};function $e(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function Ce(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=$e(e)}}function le(e,t){let n;try{n=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI)}catch{}const a=e instanceof SVGAElement?e.target.baseVal:e.target,r=!n||!!a||ee(n,t)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),o=n?.origin===q&&e.hasAttribute("download");return{url:n,external:r,target:a,download:o}}function Y(e){let t=null,n=null,a=null,r=null,o=null,i=null,s=e;for(;s&&s!==document.documentElement;)a===null&&(a=U(s,"preload-code")),r===null&&(r=U(s,"preload-data")),t===null&&(t=U(s,"keepfocus")),n===null&&(n=U(s,"noscroll")),o===null&&(o=U(s,"reload")),i===null&&(i=U(s,"replacestate")),s=$e(s);function c(l){switch(l){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:Se[a??"off"],preload_data:Se[r??"off"],keepfocus:c(t),noscroll:c(n),reload:c(o),replace_state:c(i)}}function Re(e){const t=de(e);let n=!0;function a(){n=!0,t.update(i=>i)}function r(i){n=!1,t.set(i)}function o(i){let s;return t.subscribe(c=>{(s===void 0||n&&c!==s)&&i(s=c)})}return{notify:a,set:r,subscribe:o}}function kt(){const{set:e,subscribe:t}=de(!1);let n;async function a(){clearTimeout(n);try{const r=await fetch(`${vt}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!r.ok)return!1;const i=(await r.json()).version!==bt;return i&&(e(!0),clearTimeout(n)),i}catch{return!1}}return{subscribe:t,check:a}}function ee(e,t){return e.origin!==q||!e.pathname.startsWith(t)}const At=-1,St=-2,Rt=-3,It=-4,Lt=-5,Pt=-6;function Tt(e,t){if(typeof e=="number")return r(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,a=Array(n.length);function r(o,i=!1){if(o===At)return;if(o===Rt)return NaN;if(o===It)return 1/0;if(o===Lt)return-1/0;if(o===Pt)return-0;if(i)throw new Error("Invalid input");if(o in a)return a[o];const s=n[o];if(!s||typeof s!="object")a[o]=s;else if(Array.isArray(s))if(typeof s[0]=="string"){const c=s[0],l=t?.[c];if(l)return a[o]=l(r(s[1]));switch(c){case"Date":a[o]=new Date(s[1]);break;case"Set":const d=new Set;a[o]=d;for(let f=1;ft!=null)}class te{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 Fe{constructor(t,n){this.status=t,this.location=n}}class ge extends Error{constructor(t,n,a){super(a),this.status=t,this.text=n}}const Nt="x-sveltekit-invalidated",Ot="x-sveltekit-trailing-slash";function J(e){return e instanceof te||e instanceof ge?e.status:500}function jt(e){return e instanceof ge?e.text:"Internal Error"}const T=xe(Oe)??{},F=xe(Ne)??{},Dt=history.pushState,_e=history.replaceState,L={url:Re({}),page:Re({}),navigating:de(null),updated:kt()};function me(e){T[e]=pe()}function $t(e,t){let n=e+1;for(;T[n];)delete T[n],n+=1;for(n=t+1;F[n];)delete F[n],n+=1}function O(e){return location.href=e.href,new Promise(()=>{})}function Ie(){}let ne,fe,W,I,ue,j;const Ge=[],z=[];let N=null;const Me=[],Ct=[];let C=[],y={branch:[],error:null,url:null},ye=!1,X=!1,Le=!0,G=!1,D=!1,qe=!1,we=!1,ve,w,k,A,Z;async function Wt(e,t,n){document.URL!==location.href&&(location.href=location.href),j=e,ne=wt(e),I=document.documentElement,ue=t,fe=e.nodes[0],W=e.nodes[1],fe(),W(),w=history.state?.[x],k=history.state?.[V],w||(w=k=Date.now(),_e.call(history,{...history.state,[x]:w,[V]:k},""));const a=T[w];a&&(history.scrollRestoration="manual",scrollTo(a.x,a.y)),n?await Bt(ue,n):qt(location.href,{replaceState:!0}),Ht()}function He(e){z.some(t=>t?.snapshot)&&(F[e]=z.map(t=>t?.snapshot?.capture()))}function Be(e){F[e]?.forEach((t,n)=>{z[n]?.snapshot?.restore(t)})}function Pe(){me(w),Ae(Oe,T),He(k),Ae(Ne,F)}async function Ke(e,t,n,a){return B({type:"goto",url:De(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:a,accept:()=>{t.invalidateAll&&(we=!0)}})}async function Vt(e){return N={id:e.id,promise:Je(e).then(t=>(t.type==="loaded"&&t.state.error&&(N=null),t))},N.promise}async function ce(e){const t=ne.find(n=>n.exec(We(e)));t&&await Promise.all([...t.layouts,t.leaf].map(n=>n?.[1]()))}function Ye(e,t){y=e.state;const n=document.querySelector("style[data-sveltekit]");n&&n.remove(),A=e.props.page,ve=new j.root({target:t,props:{...e.props,stores:L,components:z},hydrate:!0}),Be(k);const a={from:null,to:{params:y.params,route:{id:y.route?.id??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};C.forEach(r=>r(a)),X=!0}async function Q({url:e,params:t,branch:n,status:a,error:r,route:o,form:i}){let s="never";if(S&&(e.pathname===S||e.pathname===S+"/"))s="always";else for(const f of n)f?.slash!==void 0&&(s=f.slash);e.pathname=nt(e.pathname,s),e.search=e.search;const c={type:"loaded",state:{url:e,params:t,branch:n,error:r,route:o},props:{constructors:xt(n).map(f=>f.node.component),page:A}};i!==void 0&&(c.props.form=i);let l={},d=!A,g=0;for(let f=0;f(s&&(c.route=!0),u[f])}),params:new Proxy(a,{get:(u,f)=>(s&&c.params.add(f),u[f])}),data:o?.data??null,url:st(n,()=>{s&&(c.url=!0)},u=>{s&&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 s&&d(p.href),p.origin===n.origin&&(h=p.href.slice(n.origin.length)),X?ht(h,p.href,f):dt(h,f)},setHeaders:()=>{},depends:d,parent(){return s&&(c.parent=!0),t()},untrack(u){s=!1;try{return u()}finally{s=!0}}};i=await l.universal.load.call(null,g)??null}return{node:l,loader:e,server:o,universal:l.universal?.load?{type:"data",data:i,uses:c}:null,data:i??o?.data??null,slash:l.universal?.trailingSlash??o?.slash}}function Te(e,t,n,a,r,o){if(we)return!0;if(!r)return!1;if(r.parent&&e||r.route&&t||r.url&&n)return!0;for(const i of r.search_params)if(a.has(i))return!0;for(const i of r.params)if(o[i]!==y.params[i])return!0;for(const i of r.dependencies)if(Ge.some(s=>s(new URL(i))))return!0;return!1}function Ee(e,t){return e?.type==="data"?e:e?.type==="skip"?t??null:null}function Ft(e,t){if(!e)return new Set(t.searchParams.keys());const n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const a of n){const r=e.searchParams.getAll(a),o=t.searchParams.getAll(a);r.every(i=>o.includes(i))&&o.every(i=>r.includes(i))&&n.delete(a)}return n}async function Je({id:e,invalidating:t,url:n,params:a,route:r}){if(N?.id===e)return N.promise;const{errors:o,layouts:i,leaf:s}=r,c=[...i,s];o.forEach(_=>_?.().catch(()=>{})),c.forEach(_=>_?.[1]().catch(()=>{}));let l=null;const d=y.url?e!==y.url.pathname+y.url.search:!1,g=y.route?r.id!==y.route.id:!1,u=Ft(y.url,n);let f=!1;const h=c.map((_,m)=>{const v=y.branch[m],b=!!_?.[0]&&(v?.loader!==_[1]||Te(f,g,d,u,v.server?.uses,a));return b&&(f=!0),b});if(h.some(Boolean)){try{l=await Ze(n,h)}catch(_){return ae({status:J(_),error:await M(_,{url:n,params:a,route:{id:r.id}}),url:n,route:r})}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&&!Te(R,g,d,u,v.universal?.uses,a))return v;if(R=!0,b?.type==="error")throw b;return be({loader:_[1],url:n,params:a,route:r,parent:async()=>{const re={};for(let oe=0;oe{});const P=[];for(let _=0;_Promise.resolve({}),server_data_node:Ee(o)}),c={node:await W(),loader:W,universal:null,server:null,data:null};return await Q({url:n,params:r,branch:[s,c],status:e,error:t,route:null})}function ke(e,t){if(!e||ee(e,S))return;let n;try{n=j.hooks.reroute({url:new URL(e)})??e.pathname}catch{return}const a=We(n);for(const r of ne){const o=r.exec(a);if(o)return{id:e.pathname+e.search,invalidating:t,route:r,params:rt(o),url:e}}}function We(e){return at(e.slice(S.length)||"/")}function ze({url:e,type:t,intent:n,delta:a}){let r=!1;const o=et(y,n,e,t);a!==void 0&&(o.navigation.delta=a);const i={...o.navigation,cancel:()=>{r=!0,o.reject(new Error("navigation cancelled"))}};return G||Me.forEach(s=>s(i)),r?null:o}async function B({type:e,url:t,popped:n,keepfocus:a,noscroll:r,replace_state:o,state:i={},redirect_count:s=0,nav_token:c={},accept:l=Ie,block:d=Ie}){const g=ke(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,X&&L.navigating.set(u.navigation),Z=c;let p=g&&await Je(g);if(!p){if(ee(t,S))return await O(t);p=await Xe(t,{id:null},await M(new ge(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404)}if(t=g?.url||t,Z!==c)return u.reject(new Error("navigation aborted")),!1;if(p.type==="redirect")if(s>=20)p=await ae({status:500,error:await M(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}});else return Ke(new URL(p.location,t).href,{},s+1,c),!1;else p.props.page.status>=400&&await L.updated.check()&&await O(t);if(Ge.length=0,we=!1,me(f),He(h),p.props.page.url.pathname!==t.pathname&&(t.pathname=p.props.page.url.pathname),i=n?n.state:i,!n){const _=o?0:1,m={[x]:w+=_,[V]:k+=_,[je]:i};(o?_e:Dt).call(history,m,"",t),o||$t(w,k)}if(N=null,p.props.page.state=i,X){y=p.state,p.props.page&&(p.props.page.url=t);const _=(await Promise.all(Ct.map(m=>m(u.navigation)))).filter(m=>typeof m=="function");if(_.length>0){let m=function(){C=C.filter(v=>!_.includes(v))};_.push(m),callbacks.after_navigate.push(..._)}ve.$set(p.props),qe=!0}else Ye(p,ue);const{activeElement:R}=document;await tt();const E=n?n.scroll:r?pe():null;if(Le){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;!a&&!P&&Kt(),Le=!0,p.props.page&&(A=p.props.page),G=!1,e==="popstate"&&Be(k),u.fulfil(void 0),C.forEach(_=>_(u.navigation)),L.navigating.set(null)}async function Xe(e,t,n,a){return e.origin===q&&e.pathname===location.pathname&&!ye?await ae({status:a,error:n,url:e,route:t}):await O(e)}function Mt(){let e;I.addEventListener("mousemove",o=>{const i=o.target;clearTimeout(e),e=setTimeout(()=>{a(i,2)},20)});function t(o){a(o.composedPath()[0],1)}I.addEventListener("mousedown",t),I.addEventListener("touchstart",t,{passive:!0});const n=new IntersectionObserver(o=>{for(const i of o)i.isIntersecting&&(ce(i.target.href),n.unobserve(i.target))},{threshold:0});function a(o,i){const s=Ce(o,I);if(!s)return;const{url:c,external:l,download:d}=le(s,S);if(l||d)return;const g=Y(s);if(!g.reload)if(i<=g.preload_data){const u=ke(c,!1);u&&Vt(u)}else i<=g.preload_code&&ce(c.pathname)}function r(){n.disconnect();for(const o of I.querySelectorAll("a")){const{url:i,external:s,download:c}=le(o,S);if(s||c)continue;const l=Y(o);l.reload||(l.preload_code===K.viewport&&n.observe(o),l.preload_code===K.eager&&ce(i.pathname))}}C.push(r),r()}function M(e,t){if(e instanceof te)return e.body;const n=J(e),a=jt(e);return j.hooks.handleError({error:e,event:t,status:n,message:a})??{message:a}}function qt(e,t={}){return e=De(e),e.origin!==q?Promise.reject(new Error("goto: invalid URL")):Ke(e,t,0)}function Ht(){history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let n=!1;if(Pe(),!G){const a=et(y,void 0,null,"leave"),r={...a.navigation,cancel:()=>{n=!0,a.reject(new Error("navigation cancelled"))}};Me.forEach(o=>o(r))}n?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Pe()}),navigator.connection?.saveData||Mt(),I.addEventListener("click",t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const n=Ce(t.composedPath()[0],I);if(!n)return;const{url:a,external:r,target:o,download:i}=le(n,S);if(!a)return;if(o==="_parent"||o==="_top"){if(window.parent!==window)return}else if(o&&o!=="_self")return;const s=Y(n);if(!(n instanceof SVGAElement)&&a.protocol!==location.protocol&&!(a.protocol==="https:"||a.protocol==="http:")||i)return;if(r||s.reload){ze({url:a,type:"link"})?G=!0:t.preventDefault();return}const[l,d]=a.href.split("#");if(d!==void 0&&l===se(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,me(w),e(a),!s.replace_state)return;D=!1}t.preventDefault(),B({type:"link",url:a,keepfocus:s.keepfocus,noscroll:s.noscroll,replace_state:s.replace_state??a.href===location.href})}),I.addEventListener("submit",t=>{if(t.defaultPrevented)return;const n=HTMLFormElement.prototype.cloneNode.call(t.target),a=t.submitter;if((a?.formMethod||n.method)!=="get")return;const o=new URL(a?.hasAttribute("formaction")&&a?.formAction||n.action);if(ee(o,S))return;const i=t.target,s=Y(i);if(s.reload)return;t.preventDefault(),t.stopPropagation();const c=new FormData(i),l=a?.getAttribute("name");l&&c.append(l,a?.getAttribute("value")??""),o.search=new URLSearchParams(c).toString(),B({type:"form",url:o,keepfocus:s.keepfocus,noscroll:s.noscroll,replace_state:s.replace_state??o.href===location.href})}),addEventListener("popstate",async t=>{if(t.state?.[x]){const n=t.state[x];if(Z={},n===w)return;const a=T[n],r=t.state[je]??{},o=new URL(t.state[Et]??location.href),i=t.state[V],s=se(location)===se(y.url);if(i===k&&(qe||s)){e(o),T[w]=pe(),a&&scrollTo(a.x,a.y),r!==A.state&&(A={...A,state:r},ve.$set({page:A})),w=n;return}const l=n-w;await B({type:"popstate",url:o,popped:{state:r,scroll:a,delta:l},accept:()=>{w=n,k=i},block:()=>{history.go(-l)},nav_token:Z})}else if(!D){const n=new URL(location.href);e(n)}}),addEventListener("hashchange",()=>{D&&(D=!1,_e.call(history,{...history.state,[x]:++w,[V]: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({...A,url:t}),L.page.notify()}}async function Bt(e,{status:t=200,error:n,node_ids:a,params:r,route:o,data:i,form:s}){ye=!0;const c=new URL(location.href);({params:r={},route:o={id:null}}=ke(c,!1)||{});let l;try{const d=a.map(async(f,h)=>{const p=i[h];return p?.uses&&(p.uses=Qe(p.uses)),be({loader:j.nodes[f],url:c,params:r,route:o,parent:async()=>{const R={};for(let E=0;Ef===o.id);if(u){const f=u.layouts;for(let h=0;hr?"1":"0").join(""));const a=await Ue(n.href);if(!a.ok){let r;throw a.headers.get("content-type")?.includes("application/json")?r=await a.json():a.status===404?r="Not Found":a.status===500&&(r="Internal Error"),new te(a.status,r)}return new Promise(async r=>{const o=new Map,i=a.body.getReader(),s=new TextDecoder;function c(d){return Tt(d,{Promise:g=>new Promise((u,f)=>{o.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?` -`:s.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 r(f);if(f.type==="data")f.nodes?.forEach(h=>{h?.type==="data"&&(h.uses=Qe(h.uses),h.data=c(h.data))}),r(f);else if(f.type==="chunk"){const{id:h,data:p,error:R}=f,E=o.get(h);o.delete(h),R?E.reject(c(R)):E.fulfil(c(p))}}}})}function Qe(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 Kt(){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 a=getSelection();if(a&&a.type!=="None"){const r=[];for(let o=0;o{if(a.rangeCount===r.length){for(let o=0;o{r=c,o=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:a,complete:i},fulfil:r,reject:o}}export{Wt as a,L as s}; diff --git a/build/client/_app/immutable/chunks/entry.tWEnIVkS.js b/build/client/_app/immutable/chunks/entry.tWEnIVkS.js deleted file mode 100644 index 50e829742799f23a6b5e7b234d09415975c0741a..0000000000000000000000000000000000000000 --- a/build/client/_app/immutable/chunks/entry.tWEnIVkS.js +++ /dev/null @@ -1,3 +0,0 @@ -import{K as tt}from"./scheduler.5WtVptCO.js";import{w as de}from"./index.G3yBo0_P.js";new URL("sveltekit-internal://");function nt(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function at(e){return e.split("%25").map(decodeURI).join("%25")}function rt(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function se({href:e}){return e.split("#")[0]}const ot=["href","pathname","search","toString","toJSON"];function st(e,t,n){const a=new URL(e);Object.defineProperty(a,"searchParams",{value:new Proxy(a.searchParams,{get(r,o){if(o==="get"||o==="getAll"||o==="has")return s=>(n(s),r[o](s));t();const i=Reflect.get(r,o);return typeof i=="function"?i.bind(r):i}}),enumerable:!0,configurable:!0});for(const r of ot)Object.defineProperty(a,r,{get(){return t(),e[r]},enumerable:!0,configurable:!0});return a}const it="/__data.json",ct=".html__data.json";function lt(e){return e.endsWith(".html")?e.replace(/\.html$/,ct):e.replace(/\/$/,"")+it}function ft(...e){let t=5381;for(const n of e)if(typeof n=="string"){let a=n.length;for(;a;)t=t*33^n.charCodeAt(--a)}else if(ArrayBuffer.isView(n)){const a=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let r=a.length;for(;r;)t=t*33^a[--r]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}const Ue=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||"GET")!=="GET"&&$.delete(he(e)),Ue(e,t));const $=new Map;function ut(e){const t=atob(e),n=new Uint8Array(t.length);for(let a=0;a0){const a=he(e,n),r=$.get(a);if(r){if(performance.now(){const r=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(a);if(r)return t.push({name:r[1],matcher:r[2],optional:!1,rest:!0,chained:!0}),"(?:/(.*))?";const o=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(a);if(o)return t.push({name:o[1],matcher:o[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!a)return;const i=a.split(/\[(.+?)\](?!\])/);return"/"+i.map((c,l)=>{if(l%2){if(c.startsWith("x+"))return ie(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return ie(String.fromCharCode(...c.slice(2).split("-").map(p=>parseInt(p,16))));const d=pt.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 ie(c)}).join("")}).join("")}/?$`),params:t}}function _t(e){return!/^\([^)]+\)$/.test(e)}function mt(e){return e.slice(1).split("/").filter(_t)}function yt(e,t,n){const a={},r=e.slice(1),o=r.filter(s=>s!==void 0);let i=0;for(let s=0;sd).join("/"),i=0),l===void 0){c.rest&&(a[c.name]="");continue}if(!c.matcher||n[c.matcher](l)){a[c.name]=l;const d=t[s+1],g=r[s+1];d&&!d.rest&&d.optional&&g&&c.chained&&(i=0),!d&&!g&&Object.keys(a).length===o.length&&(i=0);continue}if(c.optional&&c.chained){i++;continue}return}if(!i)return a}function ie(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function wt({nodes:e,server_loads:t,dictionary:n,matchers:a}){const r=new Set(t);return Object.entries(n).map(([s,[c,l,d]])=>{const{pattern:g,params:u}=gt(s),f={id:s,exec:h=>{const p=g.exec(h);if(p)return yt(p,u,a)},errors:[1,...d||[]].map(h=>e[h]),layouts:[0,...l||[]].map(i),leaf:o(c)};return f.errors.length=f.layouts.length=Math.max(f.errors.length,f.layouts.length),f});function o(s){const c=s<0;return c&&(s=~s),[c,e[s]]}function i(s){return s===void 0?s:[r.has(s),e[s]]}}function xe(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function Ae(e,t,n=JSON.stringify){const a=n(t);try{sessionStorage[e]=a}catch{}}const S=globalThis.__sveltekit_19lwsrg?.base??"",vt=globalThis.__sveltekit_19lwsrg?.assets??S,bt="1737555081007",Ne="sveltekit:snapshot",Oe="sveltekit:scroll",je="sveltekit:states",Et="sveltekit:pageurl",x="sveltekit:history",V="sveltekit:navigation",B={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},q=location.origin;function De(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 pe(){return{x:pageXOffset,y:pageYOffset}}function U(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const Se={...B,"":B.hover};function $e(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function Ce(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=$e(e)}}function le(e,t){let n;try{n=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI)}catch{}const a=e instanceof SVGAElement?e.target.baseVal:e.target,r=!n||!!a||ee(n,t)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),o=n?.origin===q&&e.hasAttribute("download");return{url:n,external:r,target:a,download:o}}function Y(e){let t=null,n=null,a=null,r=null,o=null,i=null,s=e;for(;s&&s!==document.documentElement;)a===null&&(a=U(s,"preload-code")),r===null&&(r=U(s,"preload-data")),t===null&&(t=U(s,"keepfocus")),n===null&&(n=U(s,"noscroll")),o===null&&(o=U(s,"reload")),i===null&&(i=U(s,"replacestate")),s=$e(s);function c(l){switch(l){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:Se[a??"off"],preload_data:Se[r??"off"],keepfocus:c(t),noscroll:c(n),reload:c(o),replace_state:c(i)}}function Re(e){const t=de(e);let n=!0;function a(){n=!0,t.update(i=>i)}function r(i){n=!1,t.set(i)}function o(i){let s;return t.subscribe(c=>{(s===void 0||n&&c!==s)&&i(s=c)})}return{notify:a,set:r,subscribe:o}}function kt(){const{set:e,subscribe:t}=de(!1);let n;async function a(){clearTimeout(n);try{const r=await fetch(`${vt}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!r.ok)return!1;const i=(await r.json()).version!==bt;return i&&(e(!0),clearTimeout(n)),i}catch{return!1}}return{subscribe:t,check:a}}function ee(e,t){return e.origin!==q||!e.pathname.startsWith(t)}const At=-1,St=-2,Rt=-3,It=-4,Lt=-5,Pt=-6;function Tt(e,t){if(typeof e=="number")return r(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,a=Array(n.length);function r(o,i=!1){if(o===At)return;if(o===Rt)return NaN;if(o===It)return 1/0;if(o===Lt)return-1/0;if(o===Pt)return-0;if(i)throw new Error("Invalid input");if(o in a)return a[o];const s=n[o];if(!s||typeof s!="object")a[o]=s;else if(Array.isArray(s))if(typeof s[0]=="string"){const c=s[0],l=t?.[c];if(l)return a[o]=l(r(s[1]));switch(c){case"Date":a[o]=new Date(s[1]);break;case"Set":const d=new Set;a[o]=d;for(let f=1;ft!=null)}class te{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 Fe{constructor(t,n){this.status=t,this.location=n}}class ge extends Error{constructor(t,n,a){super(a),this.status=t,this.text=n}}const Nt="x-sveltekit-invalidated",Ot="x-sveltekit-trailing-slash";function J(e){return e instanceof te||e instanceof ge?e.status:500}function jt(e){return e instanceof ge?e.text:"Internal Error"}const T=xe(Oe)??{},F=xe(Ne)??{},Dt=history.pushState,_e=history.replaceState,L={url:Re({}),page:Re({}),navigating:de(null),updated:kt()};function me(e){T[e]=pe()}function $t(e,t){let n=e+1;for(;T[n];)delete T[n],n+=1;for(n=t+1;F[n];)delete F[n],n+=1}function O(e){return location.href=e.href,new Promise(()=>{})}function Ie(){}let ne,fe,W,I,ue,j;const Ge=[],z=[];let N=null;const Me=[],Ct=[];let C=[],y={branch:[],error:null,url:null},ye=!1,X=!1,Le=!0,G=!1,D=!1,qe=!1,we=!1,ve,w,k,A,Z;async function Wt(e,t,n){document.URL!==location.href&&(location.href=location.href),j=e,ne=wt(e),I=document.documentElement,ue=t,fe=e.nodes[0],W=e.nodes[1],fe(),W(),w=history.state?.[x],k=history.state?.[V],w||(w=k=Date.now(),_e.call(history,{...history.state,[x]:w,[V]:k},""));const a=T[w];a&&(history.scrollRestoration="manual",scrollTo(a.x,a.y)),n?await Kt(ue,n):qt(location.href,{replaceState:!0}),Ht()}function He(e){z.some(t=>t?.snapshot)&&(F[e]=z.map(t=>t?.snapshot?.capture()))}function Ke(e){F[e]?.forEach((t,n)=>{z[n]?.snapshot?.restore(t)})}function Pe(){me(w),Ae(Oe,T),He(k),Ae(Ne,F)}async function Be(e,t,n,a){return K({type:"goto",url:De(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:a,accept:()=>{t.invalidateAll&&(we=!0)}})}async function Vt(e){return N={id:e.id,promise:Je(e).then(t=>(t.type==="loaded"&&t.state.error&&(N=null),t))},N.promise}async function ce(e){const t=ne.find(n=>n.exec(We(e)));t&&await Promise.all([...t.layouts,t.leaf].map(n=>n?.[1]()))}function Ye(e,t){y=e.state;const n=document.querySelector("style[data-sveltekit]");n&&n.remove(),A=e.props.page,ve=new j.root({target:t,props:{...e.props,stores:L,components:z},hydrate:!0}),Ke(k);const a={from:null,to:{params:y.params,route:{id:y.route?.id??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};C.forEach(r=>r(a)),X=!0}async function Q({url:e,params:t,branch:n,status:a,error:r,route:o,form:i}){let s="never";if(S&&(e.pathname===S||e.pathname===S+"/"))s="always";else for(const f of n)f?.slash!==void 0&&(s=f.slash);e.pathname=nt(e.pathname,s),e.search=e.search;const c={type:"loaded",state:{url:e,params:t,branch:n,error:r,route:o},props:{constructors:xt(n).map(f=>f.node.component),page:A}};i!==void 0&&(c.props.form=i);let l={},d=!A,g=0;for(let f=0;f(s&&(c.route=!0),u[f])}),params:new Proxy(a,{get:(u,f)=>(s&&c.params.add(f),u[f])}),data:o?.data??null,url:st(n,()=>{s&&(c.url=!0)},u=>{s&&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 s&&d(p.href),p.origin===n.origin&&(h=p.href.slice(n.origin.length)),X?ht(h,p.href,f):dt(h,f)},setHeaders:()=>{},depends:d,parent(){return s&&(c.parent=!0),t()},untrack(u){s=!1;try{return u()}finally{s=!0}}};i=await l.universal.load.call(null,g)??null}return{node:l,loader:e,server:o,universal:l.universal?.load?{type:"data",data:i,uses:c}:null,data:i??o?.data??null,slash:l.universal?.trailingSlash??o?.slash}}function Te(e,t,n,a,r,o){if(we)return!0;if(!r)return!1;if(r.parent&&e||r.route&&t||r.url&&n)return!0;for(const i of r.search_params)if(a.has(i))return!0;for(const i of r.params)if(o[i]!==y.params[i])return!0;for(const i of r.dependencies)if(Ge.some(s=>s(new URL(i))))return!0;return!1}function Ee(e,t){return e?.type==="data"?e:e?.type==="skip"?t??null:null}function Ft(e,t){if(!e)return new Set(t.searchParams.keys());const n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const a of n){const r=e.searchParams.getAll(a),o=t.searchParams.getAll(a);r.every(i=>o.includes(i))&&o.every(i=>r.includes(i))&&n.delete(a)}return n}async function Je({id:e,invalidating:t,url:n,params:a,route:r}){if(N?.id===e)return N.promise;const{errors:o,layouts:i,leaf:s}=r,c=[...i,s];o.forEach(_=>_?.().catch(()=>{})),c.forEach(_=>_?.[1]().catch(()=>{}));let l=null;const d=y.url?e!==y.url.pathname+y.url.search:!1,g=y.route?r.id!==y.route.id:!1,u=Ft(y.url,n);let f=!1;const h=c.map((_,m)=>{const v=y.branch[m],b=!!_?.[0]&&(v?.loader!==_[1]||Te(f,g,d,u,v.server?.uses,a));return b&&(f=!0),b});if(h.some(Boolean)){try{l=await Ze(n,h)}catch(_){return ae({status:J(_),error:await M(_,{url:n,params:a,route:{id:r.id}}),url:n,route:r})}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&&!Te(R,g,d,u,v.universal?.uses,a))return v;if(R=!0,b?.type==="error")throw b;return be({loader:_[1],url:n,params:a,route:r,parent:async()=>{const re={};for(let oe=0;oe{});const P=[];for(let _=0;_Promise.resolve({}),server_data_node:Ee(o)}),c={node:await W(),loader:W,universal:null,server:null,data:null};return await Q({url:n,params:r,branch:[s,c],status:e,error:t,route:null})}function ke(e,t){if(!e||ee(e,S))return;let n;try{n=j.hooks.reroute({url:new URL(e)})??e.pathname}catch{return}const a=We(n);for(const r of ne){const o=r.exec(a);if(o)return{id:e.pathname+e.search,invalidating:t,route:r,params:rt(o),url:e}}}function We(e){return at(e.slice(S.length)||"/")}function ze({url:e,type:t,intent:n,delta:a}){let r=!1;const o=et(y,n,e,t);a!==void 0&&(o.navigation.delta=a);const i={...o.navigation,cancel:()=>{r=!0,o.reject(new Error("navigation cancelled"))}};return G||Me.forEach(s=>s(i)),r?null:o}async function K({type:e,url:t,popped:n,keepfocus:a,noscroll:r,replace_state:o,state:i={},redirect_count:s=0,nav_token:c={},accept:l=Ie,block:d=Ie}){const g=ke(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,X&&L.navigating.set(u.navigation),Z=c;let p=g&&await Je(g);if(!p){if(ee(t,S))return await O(t);p=await Xe(t,{id:null},await M(new ge(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404)}if(t=g?.url||t,Z!==c)return u.reject(new Error("navigation aborted")),!1;if(p.type==="redirect")if(s>=20)p=await ae({status:500,error:await M(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}});else return Be(new URL(p.location,t).href,{},s+1,c),!1;else p.props.page.status>=400&&await L.updated.check()&&await O(t);if(Ge.length=0,we=!1,me(f),He(h),p.props.page.url.pathname!==t.pathname&&(t.pathname=p.props.page.url.pathname),i=n?n.state:i,!n){const _=o?0:1,m={[x]:w+=_,[V]:k+=_,[je]:i};(o?_e:Dt).call(history,m,"",t),o||$t(w,k)}if(N=null,p.props.page.state=i,X){y=p.state,p.props.page&&(p.props.page.url=t);const _=(await Promise.all(Ct.map(m=>m(u.navigation)))).filter(m=>typeof m=="function");if(_.length>0){let m=function(){C=C.filter(v=>!_.includes(v))};_.push(m),callbacks.after_navigate.push(..._)}ve.$set(p.props),qe=!0}else Ye(p,ue);const{activeElement:R}=document;await tt();const E=n?n.scroll:r?pe():null;if(Le){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;!a&&!P&&Bt(),Le=!0,p.props.page&&(A=p.props.page),G=!1,e==="popstate"&&Ke(k),u.fulfil(void 0),C.forEach(_=>_(u.navigation)),L.navigating.set(null)}async function Xe(e,t,n,a){return e.origin===q&&e.pathname===location.pathname&&!ye?await ae({status:a,error:n,url:e,route:t}):await O(e)}function Mt(){let e;I.addEventListener("mousemove",o=>{const i=o.target;clearTimeout(e),e=setTimeout(()=>{a(i,2)},20)});function t(o){a(o.composedPath()[0],1)}I.addEventListener("mousedown",t),I.addEventListener("touchstart",t,{passive:!0});const n=new IntersectionObserver(o=>{for(const i of o)i.isIntersecting&&(ce(i.target.href),n.unobserve(i.target))},{threshold:0});function a(o,i){const s=Ce(o,I);if(!s)return;const{url:c,external:l,download:d}=le(s,S);if(l||d)return;const g=Y(s);if(!g.reload)if(i<=g.preload_data){const u=ke(c,!1);u&&Vt(u)}else i<=g.preload_code&&ce(c.pathname)}function r(){n.disconnect();for(const o of I.querySelectorAll("a")){const{url:i,external:s,download:c}=le(o,S);if(s||c)continue;const l=Y(o);l.reload||(l.preload_code===B.viewport&&n.observe(o),l.preload_code===B.eager&&ce(i.pathname))}}C.push(r),r()}function M(e,t){if(e instanceof te)return e.body;const n=J(e),a=jt(e);return j.hooks.handleError({error:e,event:t,status:n,message:a})??{message:a}}function qt(e,t={}){return e=De(e),e.origin!==q?Promise.reject(new Error("goto: invalid URL")):Be(e,t,0)}function Ht(){history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let n=!1;if(Pe(),!G){const a=et(y,void 0,null,"leave"),r={...a.navigation,cancel:()=>{n=!0,a.reject(new Error("navigation cancelled"))}};Me.forEach(o=>o(r))}n?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Pe()}),navigator.connection?.saveData||Mt(),I.addEventListener("click",t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const n=Ce(t.composedPath()[0],I);if(!n)return;const{url:a,external:r,target:o,download:i}=le(n,S);if(!a)return;if(o==="_parent"||o==="_top"){if(window.parent!==window)return}else if(o&&o!=="_self")return;const s=Y(n);if(!(n instanceof SVGAElement)&&a.protocol!==location.protocol&&!(a.protocol==="https:"||a.protocol==="http:")||i)return;if(r||s.reload){ze({url:a,type:"link"})?G=!0:t.preventDefault();return}const[l,d]=a.href.split("#");if(d!==void 0&&l===se(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,me(w),e(a),!s.replace_state)return;D=!1}t.preventDefault(),K({type:"link",url:a,keepfocus:s.keepfocus,noscroll:s.noscroll,replace_state:s.replace_state??a.href===location.href})}),I.addEventListener("submit",t=>{if(t.defaultPrevented)return;const n=HTMLFormElement.prototype.cloneNode.call(t.target),a=t.submitter;if((a?.formMethod||n.method)!=="get")return;const o=new URL(a?.hasAttribute("formaction")&&a?.formAction||n.action);if(ee(o,S))return;const i=t.target,s=Y(i);if(s.reload)return;t.preventDefault(),t.stopPropagation();const c=new FormData(i),l=a?.getAttribute("name");l&&c.append(l,a?.getAttribute("value")??""),o.search=new URLSearchParams(c).toString(),K({type:"form",url:o,keepfocus:s.keepfocus,noscroll:s.noscroll,replace_state:s.replace_state??o.href===location.href})}),addEventListener("popstate",async t=>{if(t.state?.[x]){const n=t.state[x];if(Z={},n===w)return;const a=T[n],r=t.state[je]??{},o=new URL(t.state[Et]??location.href),i=t.state[V],s=se(location)===se(y.url);if(i===k&&(qe||s)){e(o),T[w]=pe(),a&&scrollTo(a.x,a.y),r!==A.state&&(A={...A,state:r},ve.$set({page:A})),w=n;return}const l=n-w;await K({type:"popstate",url:o,popped:{state:r,scroll:a,delta:l},accept:()=>{w=n,k=i},block:()=>{history.go(-l)},nav_token:Z})}else if(!D){const n=new URL(location.href);e(n)}}),addEventListener("hashchange",()=>{D&&(D=!1,_e.call(history,{...history.state,[x]:++w,[V]: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({...A,url:t}),L.page.notify()}}async function Kt(e,{status:t=200,error:n,node_ids:a,params:r,route:o,data:i,form:s}){ye=!0;const c=new URL(location.href);({params:r={},route:o={id:null}}=ke(c,!1)||{});let l;try{const d=a.map(async(f,h)=>{const p=i[h];return p?.uses&&(p.uses=Qe(p.uses)),be({loader:j.nodes[f],url:c,params:r,route:o,parent:async()=>{const R={};for(let E=0;Ef===o.id);if(u){const f=u.layouts;for(let h=0;hr?"1":"0").join(""));const a=await Ue(n.href);if(!a.ok){let r;throw a.headers.get("content-type")?.includes("application/json")?r=await a.json():a.status===404?r="Not Found":a.status===500&&(r="Internal Error"),new te(a.status,r)}return new Promise(async r=>{const o=new Map,i=a.body.getReader(),s=new TextDecoder;function c(d){return Tt(d,{Promise:g=>new Promise((u,f)=>{o.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?` -`:s.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 r(f);if(f.type==="data")f.nodes?.forEach(h=>{h?.type==="data"&&(h.uses=Qe(h.uses),h.data=c(h.data))}),r(f);else if(f.type==="chunk"){const{id:h,data:p,error:R}=f,E=o.get(h);o.delete(h),R?E.reject(c(R)):E.fulfil(c(p))}}}})}function Qe(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 Bt(){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 a=getSelection();if(a&&a.type!=="None"){const r=[];for(let o=0;o{if(a.rangeCount===r.length){for(let o=0;o{r=c,o=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:a,complete:i},fulfil:r,reject:o}}export{Wt as a,L as s}; diff --git a/build/client/_app/immutable/chunks/entry.vZ4dQZZ-.js b/build/client/_app/immutable/chunks/entry.vZ4dQZZ-.js deleted file mode 100644 index db83a64b10f879918ae9386ab9d3969fb5441165..0000000000000000000000000000000000000000 --- a/build/client/_app/immutable/chunks/entry.vZ4dQZZ-.js +++ /dev/null @@ -1,3 +0,0 @@ -import{B as tt}from"./scheduler.OwA2AG0M.js";import{w as de}from"./index.UTqYide5.js";new URL("sveltekit-internal://");function nt(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function at(e){return e.split("%25").map(decodeURI).join("%25")}function rt(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function se({href:e}){return e.split("#")[0]}const ot=["href","pathname","search","toString","toJSON"];function st(e,t,n){const a=new URL(e);Object.defineProperty(a,"searchParams",{value:new Proxy(a.searchParams,{get(r,o){if(o==="get"||o==="getAll"||o==="has")return s=>(n(s),r[o](s));t();const i=Reflect.get(r,o);return typeof i=="function"?i.bind(r):i}}),enumerable:!0,configurable:!0});for(const r of ot)Object.defineProperty(a,r,{get(){return t(),e[r]},enumerable:!0,configurable:!0});return a}const it="/__data.json",ct=".html__data.json";function lt(e){return e.endsWith(".html")?e.replace(/\.html$/,ct):e.replace(/\/$/,"")+it}function ft(...e){let t=5381;for(const n of e)if(typeof n=="string"){let a=n.length;for(;a;)t=t*33^n.charCodeAt(--a)}else if(ArrayBuffer.isView(n)){const a=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let r=a.length;for(;r;)t=t*33^a[--r]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}const Ue=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||"GET")!=="GET"&&$.delete(he(e)),Ue(e,t));const $=new Map;function ut(e){const t=atob(e),n=new Uint8Array(t.length);for(let a=0;a0){const a=he(e,n),r=$.get(a);if(r){if(performance.now(){const r=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(a);if(r)return t.push({name:r[1],matcher:r[2],optional:!1,rest:!0,chained:!0}),"(?:/(.*))?";const o=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(a);if(o)return t.push({name:o[1],matcher:o[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!a)return;const i=a.split(/\[(.+?)\](?!\])/);return"/"+i.map((c,l)=>{if(l%2){if(c.startsWith("x+"))return ie(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return ie(String.fromCharCode(...c.slice(2).split("-").map(p=>parseInt(p,16))));const d=pt.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 ie(c)}).join("")}).join("")}/?$`),params:t}}function _t(e){return!/^\([^)]+\)$/.test(e)}function mt(e){return e.slice(1).split("/").filter(_t)}function yt(e,t,n){const a={},r=e.slice(1),o=r.filter(s=>s!==void 0);let i=0;for(let s=0;sd).join("/"),i=0),l===void 0){c.rest&&(a[c.name]="");continue}if(!c.matcher||n[c.matcher](l)){a[c.name]=l;const d=t[s+1],g=r[s+1];d&&!d.rest&&d.optional&&g&&c.chained&&(i=0),!d&&!g&&Object.keys(a).length===o.length&&(i=0);continue}if(c.optional&&c.chained){i++;continue}return}if(!i)return a}function ie(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function wt({nodes:e,server_loads:t,dictionary:n,matchers:a}){const r=new Set(t);return Object.entries(n).map(([s,[c,l,d]])=>{const{pattern:g,params:u}=gt(s),f={id:s,exec:h=>{const p=g.exec(h);if(p)return yt(p,u,a)},errors:[1,...d||[]].map(h=>e[h]),layouts:[0,...l||[]].map(i),leaf:o(c)};return f.errors.length=f.layouts.length=Math.max(f.errors.length,f.layouts.length),f});function o(s){const c=s<0;return c&&(s=~s),[c,e[s]]}function i(s){return s===void 0?s:[r.has(s),e[s]]}}function xe(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function Ae(e,t,n=JSON.stringify){const a=n(t);try{sessionStorage[e]=a}catch{}}const S=globalThis.__sveltekit_yynwj7?.base??"",vt=globalThis.__sveltekit_yynwj7?.assets??S,bt="1726650043044",Ne="sveltekit:snapshot",Oe="sveltekit:scroll",je="sveltekit:states",Et="sveltekit:pageurl",x="sveltekit:history",V="sveltekit:navigation",K={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},q=location.origin;function De(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 pe(){return{x:pageXOffset,y:pageYOffset}}function U(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const Se={...K,"":K.hover};function $e(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function Ce(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=$e(e)}}function le(e,t){let n;try{n=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI)}catch{}const a=e instanceof SVGAElement?e.target.baseVal:e.target,r=!n||!!a||ee(n,t)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),o=n?.origin===q&&e.hasAttribute("download");return{url:n,external:r,target:a,download:o}}function Y(e){let t=null,n=null,a=null,r=null,o=null,i=null,s=e;for(;s&&s!==document.documentElement;)a===null&&(a=U(s,"preload-code")),r===null&&(r=U(s,"preload-data")),t===null&&(t=U(s,"keepfocus")),n===null&&(n=U(s,"noscroll")),o===null&&(o=U(s,"reload")),i===null&&(i=U(s,"replacestate")),s=$e(s);function c(l){switch(l){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:Se[a??"off"],preload_data:Se[r??"off"],keepfocus:c(t),noscroll:c(n),reload:c(o),replace_state:c(i)}}function Re(e){const t=de(e);let n=!0;function a(){n=!0,t.update(i=>i)}function r(i){n=!1,t.set(i)}function o(i){let s;return t.subscribe(c=>{(s===void 0||n&&c!==s)&&i(s=c)})}return{notify:a,set:r,subscribe:o}}function kt(){const{set:e,subscribe:t}=de(!1);let n;async function a(){clearTimeout(n);try{const r=await fetch(`${vt}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!r.ok)return!1;const i=(await r.json()).version!==bt;return i&&(e(!0),clearTimeout(n)),i}catch{return!1}}return{subscribe:t,check:a}}function ee(e,t){return e.origin!==q||!e.pathname.startsWith(t)}const At=-1,St=-2,Rt=-3,It=-4,Lt=-5,Pt=-6;function Tt(e,t){if(typeof e=="number")return r(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,a=Array(n.length);function r(o,i=!1){if(o===At)return;if(o===Rt)return NaN;if(o===It)return 1/0;if(o===Lt)return-1/0;if(o===Pt)return-0;if(i)throw new Error("Invalid input");if(o in a)return a[o];const s=n[o];if(!s||typeof s!="object")a[o]=s;else if(Array.isArray(s))if(typeof s[0]=="string"){const c=s[0],l=t?.[c];if(l)return a[o]=l(r(s[1]));switch(c){case"Date":a[o]=new Date(s[1]);break;case"Set":const d=new Set;a[o]=d;for(let f=1;ft!=null)}class te{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 Fe{constructor(t,n){this.status=t,this.location=n}}class ge extends Error{constructor(t,n,a){super(a),this.status=t,this.text=n}}const Nt="x-sveltekit-invalidated",Ot="x-sveltekit-trailing-slash";function J(e){return e instanceof te||e instanceof ge?e.status:500}function jt(e){return e instanceof ge?e.text:"Internal Error"}const T=xe(Oe)??{},F=xe(Ne)??{},Dt=history.pushState,_e=history.replaceState,L={url:Re({}),page:Re({}),navigating:de(null),updated:kt()};function me(e){T[e]=pe()}function $t(e,t){let n=e+1;for(;T[n];)delete T[n],n+=1;for(n=t+1;F[n];)delete F[n],n+=1}function O(e){return location.href=e.href,new Promise(()=>{})}function Ie(){}let ne,fe,W,I,ue,j;const Ge=[],z=[];let N=null;const Me=[],Ct=[];let C=[],y={branch:[],error:null,url:null},ye=!1,X=!1,Le=!0,G=!1,D=!1,qe=!1,we=!1,ve,w,k,A,Z;async function Wt(e,t,n){document.URL!==location.href&&(location.href=location.href),j=e,ne=wt(e),I=document.documentElement,ue=t,fe=e.nodes[0],W=e.nodes[1],fe(),W(),w=history.state?.[x],k=history.state?.[V],w||(w=k=Date.now(),_e.call(history,{...history.state,[x]:w,[V]:k},""));const a=T[w];a&&(history.scrollRestoration="manual",scrollTo(a.x,a.y)),n?await Ht(ue,n):qt(location.href,{replaceState:!0}),Bt()}function Be(e){z.some(t=>t?.snapshot)&&(F[e]=z.map(t=>t?.snapshot?.capture()))}function He(e){F[e]?.forEach((t,n)=>{z[n]?.snapshot?.restore(t)})}function Pe(){me(w),Ae(Oe,T),Be(k),Ae(Ne,F)}async function Ke(e,t,n,a){return H({type:"goto",url:De(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:a,accept:()=>{t.invalidateAll&&(we=!0)}})}async function Vt(e){return N={id:e.id,promise:Je(e).then(t=>(t.type==="loaded"&&t.state.error&&(N=null),t))},N.promise}async function ce(e){const t=ne.find(n=>n.exec(We(e)));t&&await Promise.all([...t.layouts,t.leaf].map(n=>n?.[1]()))}function Ye(e,t){y=e.state;const n=document.querySelector("style[data-sveltekit]");n&&n.remove(),A=e.props.page,ve=new j.root({target:t,props:{...e.props,stores:L,components:z},hydrate:!0}),He(k);const a={from:null,to:{params:y.params,route:{id:y.route?.id??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};C.forEach(r=>r(a)),X=!0}async function Q({url:e,params:t,branch:n,status:a,error:r,route:o,form:i}){let s="never";if(S&&(e.pathname===S||e.pathname===S+"/"))s="always";else for(const f of n)f?.slash!==void 0&&(s=f.slash);e.pathname=nt(e.pathname,s),e.search=e.search;const c={type:"loaded",state:{url:e,params:t,branch:n,error:r,route:o},props:{constructors:xt(n).map(f=>f.node.component),page:A}};i!==void 0&&(c.props.form=i);let l={},d=!A,g=0;for(let f=0;f(s&&(c.route=!0),u[f])}),params:new Proxy(a,{get:(u,f)=>(s&&c.params.add(f),u[f])}),data:o?.data??null,url:st(n,()=>{s&&(c.url=!0)},u=>{s&&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 s&&d(p.href),p.origin===n.origin&&(h=p.href.slice(n.origin.length)),X?ht(h,p.href,f):dt(h,f)},setHeaders:()=>{},depends:d,parent(){return s&&(c.parent=!0),t()},untrack(u){s=!1;try{return u()}finally{s=!0}}};i=await l.universal.load.call(null,g)??null}return{node:l,loader:e,server:o,universal:l.universal?.load?{type:"data",data:i,uses:c}:null,data:i??o?.data??null,slash:l.universal?.trailingSlash??o?.slash}}function Te(e,t,n,a,r,o){if(we)return!0;if(!r)return!1;if(r.parent&&e||r.route&&t||r.url&&n)return!0;for(const i of r.search_params)if(a.has(i))return!0;for(const i of r.params)if(o[i]!==y.params[i])return!0;for(const i of r.dependencies)if(Ge.some(s=>s(new URL(i))))return!0;return!1}function Ee(e,t){return e?.type==="data"?e:e?.type==="skip"?t??null:null}function Ft(e,t){if(!e)return new Set(t.searchParams.keys());const n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const a of n){const r=e.searchParams.getAll(a),o=t.searchParams.getAll(a);r.every(i=>o.includes(i))&&o.every(i=>r.includes(i))&&n.delete(a)}return n}async function Je({id:e,invalidating:t,url:n,params:a,route:r}){if(N?.id===e)return N.promise;const{errors:o,layouts:i,leaf:s}=r,c=[...i,s];o.forEach(_=>_?.().catch(()=>{})),c.forEach(_=>_?.[1]().catch(()=>{}));let l=null;const d=y.url?e!==y.url.pathname+y.url.search:!1,g=y.route?r.id!==y.route.id:!1,u=Ft(y.url,n);let f=!1;const h=c.map((_,m)=>{const v=y.branch[m],b=!!_?.[0]&&(v?.loader!==_[1]||Te(f,g,d,u,v.server?.uses,a));return b&&(f=!0),b});if(h.some(Boolean)){try{l=await Ze(n,h)}catch(_){return ae({status:J(_),error:await M(_,{url:n,params:a,route:{id:r.id}}),url:n,route:r})}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&&!Te(R,g,d,u,v.universal?.uses,a))return v;if(R=!0,b?.type==="error")throw b;return be({loader:_[1],url:n,params:a,route:r,parent:async()=>{const re={};for(let oe=0;oe{});const P=[];for(let _=0;_Promise.resolve({}),server_data_node:Ee(o)}),c={node:await W(),loader:W,universal:null,server:null,data:null};return await Q({url:n,params:r,branch:[s,c],status:e,error:t,route:null})}function ke(e,t){if(!e||ee(e,S))return;let n;try{n=j.hooks.reroute({url:new URL(e)})??e.pathname}catch{return}const a=We(n);for(const r of ne){const o=r.exec(a);if(o)return{id:e.pathname+e.search,invalidating:t,route:r,params:rt(o),url:e}}}function We(e){return at(e.slice(S.length)||"/")}function ze({url:e,type:t,intent:n,delta:a}){let r=!1;const o=et(y,n,e,t);a!==void 0&&(o.navigation.delta=a);const i={...o.navigation,cancel:()=>{r=!0,o.reject(new Error("navigation cancelled"))}};return G||Me.forEach(s=>s(i)),r?null:o}async function H({type:e,url:t,popped:n,keepfocus:a,noscroll:r,replace_state:o,state:i={},redirect_count:s=0,nav_token:c={},accept:l=Ie,block:d=Ie}){const g=ke(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,X&&L.navigating.set(u.navigation),Z=c;let p=g&&await Je(g);if(!p){if(ee(t,S))return await O(t);p=await Xe(t,{id:null},await M(new ge(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404)}if(t=g?.url||t,Z!==c)return u.reject(new Error("navigation aborted")),!1;if(p.type==="redirect")if(s>=20)p=await ae({status:500,error:await M(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}});else return Ke(new URL(p.location,t).href,{},s+1,c),!1;else p.props.page.status>=400&&await L.updated.check()&&await O(t);if(Ge.length=0,we=!1,me(f),Be(h),p.props.page.url.pathname!==t.pathname&&(t.pathname=p.props.page.url.pathname),i=n?n.state:i,!n){const _=o?0:1,m={[x]:w+=_,[V]:k+=_,[je]:i};(o?_e:Dt).call(history,m,"",t),o||$t(w,k)}if(N=null,p.props.page.state=i,X){y=p.state,p.props.page&&(p.props.page.url=t);const _=(await Promise.all(Ct.map(m=>m(u.navigation)))).filter(m=>typeof m=="function");if(_.length>0){let m=function(){C=C.filter(v=>!_.includes(v))};_.push(m),callbacks.after_navigate.push(..._)}ve.$set(p.props),qe=!0}else Ye(p,ue);const{activeElement:R}=document;await tt();const E=n?n.scroll:r?pe():null;if(Le){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;!a&&!P&&Kt(),Le=!0,p.props.page&&(A=p.props.page),G=!1,e==="popstate"&&He(k),u.fulfil(void 0),C.forEach(_=>_(u.navigation)),L.navigating.set(null)}async function Xe(e,t,n,a){return e.origin===q&&e.pathname===location.pathname&&!ye?await ae({status:a,error:n,url:e,route:t}):await O(e)}function Mt(){let e;I.addEventListener("mousemove",o=>{const i=o.target;clearTimeout(e),e=setTimeout(()=>{a(i,2)},20)});function t(o){a(o.composedPath()[0],1)}I.addEventListener("mousedown",t),I.addEventListener("touchstart",t,{passive:!0});const n=new IntersectionObserver(o=>{for(const i of o)i.isIntersecting&&(ce(i.target.href),n.unobserve(i.target))},{threshold:0});function a(o,i){const s=Ce(o,I);if(!s)return;const{url:c,external:l,download:d}=le(s,S);if(l||d)return;const g=Y(s);if(!g.reload)if(i<=g.preload_data){const u=ke(c,!1);u&&Vt(u)}else i<=g.preload_code&&ce(c.pathname)}function r(){n.disconnect();for(const o of I.querySelectorAll("a")){const{url:i,external:s,download:c}=le(o,S);if(s||c)continue;const l=Y(o);l.reload||(l.preload_code===K.viewport&&n.observe(o),l.preload_code===K.eager&&ce(i.pathname))}}C.push(r),r()}function M(e,t){if(e instanceof te)return e.body;const n=J(e),a=jt(e);return j.hooks.handleError({error:e,event:t,status:n,message:a})??{message:a}}function qt(e,t={}){return e=De(e),e.origin!==q?Promise.reject(new Error("goto: invalid URL")):Ke(e,t,0)}function Bt(){history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let n=!1;if(Pe(),!G){const a=et(y,void 0,null,"leave"),r={...a.navigation,cancel:()=>{n=!0,a.reject(new Error("navigation cancelled"))}};Me.forEach(o=>o(r))}n?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Pe()}),navigator.connection?.saveData||Mt(),I.addEventListener("click",t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const n=Ce(t.composedPath()[0],I);if(!n)return;const{url:a,external:r,target:o,download:i}=le(n,S);if(!a)return;if(o==="_parent"||o==="_top"){if(window.parent!==window)return}else if(o&&o!=="_self")return;const s=Y(n);if(!(n instanceof SVGAElement)&&a.protocol!==location.protocol&&!(a.protocol==="https:"||a.protocol==="http:")||i)return;if(r||s.reload){ze({url:a,type:"link"})?G=!0:t.preventDefault();return}const[l,d]=a.href.split("#");if(d!==void 0&&l===se(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,me(w),e(a),!s.replace_state)return;D=!1}t.preventDefault(),H({type:"link",url:a,keepfocus:s.keepfocus,noscroll:s.noscroll,replace_state:s.replace_state??a.href===location.href})}),I.addEventListener("submit",t=>{if(t.defaultPrevented)return;const n=HTMLFormElement.prototype.cloneNode.call(t.target),a=t.submitter;if((a?.formMethod||n.method)!=="get")return;const o=new URL(a?.hasAttribute("formaction")&&a?.formAction||n.action);if(ee(o,S))return;const i=t.target,s=Y(i);if(s.reload)return;t.preventDefault(),t.stopPropagation();const c=new FormData(i),l=a?.getAttribute("name");l&&c.append(l,a?.getAttribute("value")??""),o.search=new URLSearchParams(c).toString(),H({type:"form",url:o,keepfocus:s.keepfocus,noscroll:s.noscroll,replace_state:s.replace_state??o.href===location.href})}),addEventListener("popstate",async t=>{if(t.state?.[x]){const n=t.state[x];if(Z={},n===w)return;const a=T[n],r=t.state[je]??{},o=new URL(t.state[Et]??location.href),i=t.state[V],s=se(location)===se(y.url);if(i===k&&(qe||s)){e(o),T[w]=pe(),a&&scrollTo(a.x,a.y),r!==A.state&&(A={...A,state:r},ve.$set({page:A})),w=n;return}const l=n-w;await H({type:"popstate",url:o,popped:{state:r,scroll:a,delta:l},accept:()=>{w=n,k=i},block:()=>{history.go(-l)},nav_token:Z})}else if(!D){const n=new URL(location.href);e(n)}}),addEventListener("hashchange",()=>{D&&(D=!1,_e.call(history,{...history.state,[x]:++w,[V]: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({...A,url:t}),L.page.notify()}}async function Ht(e,{status:t=200,error:n,node_ids:a,params:r,route:o,data:i,form:s}){ye=!0;const c=new URL(location.href);({params:r={},route:o={id:null}}=ke(c,!1)||{});let l;try{const d=a.map(async(f,h)=>{const p=i[h];return p?.uses&&(p.uses=Qe(p.uses)),be({loader:j.nodes[f],url:c,params:r,route:o,parent:async()=>{const R={};for(let E=0;Ef===o.id);if(u){const f=u.layouts;for(let h=0;hr?"1":"0").join(""));const a=await Ue(n.href);if(!a.ok){let r;throw a.headers.get("content-type")?.includes("application/json")?r=await a.json():a.status===404?r="Not Found":a.status===500&&(r="Internal Error"),new te(a.status,r)}return new Promise(async r=>{const o=new Map,i=a.body.getReader(),s=new TextDecoder;function c(d){return Tt(d,{Promise:g=>new Promise((u,f)=>{o.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?` -`:s.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 r(f);if(f.type==="data")f.nodes?.forEach(h=>{h?.type==="data"&&(h.uses=Qe(h.uses),h.data=c(h.data))}),r(f);else if(f.type==="chunk"){const{id:h,data:p,error:R}=f,E=o.get(h);o.delete(h),R?E.reject(c(R)):E.fulfil(c(p))}}}})}function Qe(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 Kt(){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 a=getSelection();if(a&&a.type!=="None"){const r=[];for(let o=0;o{if(a.rangeCount===r.length){for(let o=0;o{r=c,o=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:a,complete:i},fulfil:r,reject:o}}export{Wt as a,L as s}; diff --git a/build/client/_app/immutable/chunks/entry.zHkmgvme.js b/build/client/_app/immutable/chunks/entry.zHkmgvme.js deleted file mode 100644 index 697031100765bdbe6c7f1ae787a36dd5bdc0f8c4..0000000000000000000000000000000000000000 --- a/build/client/_app/immutable/chunks/entry.zHkmgvme.js +++ /dev/null @@ -1,3 +0,0 @@ -import{K as tt}from"./scheduler.5WtVptCO.js";import{w as de}from"./index.G3yBo0_P.js";new URL("sveltekit-internal://");function nt(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function at(e){return e.split("%25").map(decodeURI).join("%25")}function rt(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function se({href:e}){return e.split("#")[0]}const ot=["href","pathname","search","toString","toJSON"];function st(e,t,n){const a=new URL(e);Object.defineProperty(a,"searchParams",{value:new Proxy(a.searchParams,{get(r,o){if(o==="get"||o==="getAll"||o==="has")return s=>(n(s),r[o](s));t();const i=Reflect.get(r,o);return typeof i=="function"?i.bind(r):i}}),enumerable:!0,configurable:!0});for(const r of ot)Object.defineProperty(a,r,{get(){return t(),e[r]},enumerable:!0,configurable:!0});return a}const it="/__data.json",ct=".html__data.json";function lt(e){return e.endsWith(".html")?e.replace(/\.html$/,ct):e.replace(/\/$/,"")+it}function ft(...e){let t=5381;for(const n of e)if(typeof n=="string"){let a=n.length;for(;a;)t=t*33^n.charCodeAt(--a)}else if(ArrayBuffer.isView(n)){const a=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let r=a.length;for(;r;)t=t*33^a[--r]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}const Ue=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||"GET")!=="GET"&&$.delete(he(e)),Ue(e,t));const $=new Map;function ut(e){const t=atob(e),n=new Uint8Array(t.length);for(let a=0;a0){const a=he(e,n),r=$.get(a);if(r){if(performance.now(){const r=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(a);if(r)return t.push({name:r[1],matcher:r[2],optional:!1,rest:!0,chained:!0}),"(?:/(.*))?";const o=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(a);if(o)return t.push({name:o[1],matcher:o[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!a)return;const i=a.split(/\[(.+?)\](?!\])/);return"/"+i.map((c,l)=>{if(l%2){if(c.startsWith("x+"))return ie(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return ie(String.fromCharCode(...c.slice(2).split("-").map(p=>parseInt(p,16))));const d=pt.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 ie(c)}).join("")}).join("")}/?$`),params:t}}function _t(e){return!/^\([^)]+\)$/.test(e)}function mt(e){return e.slice(1).split("/").filter(_t)}function yt(e,t,n){const a={},r=e.slice(1),o=r.filter(s=>s!==void 0);let i=0;for(let s=0;sd).join("/"),i=0),l===void 0){c.rest&&(a[c.name]="");continue}if(!c.matcher||n[c.matcher](l)){a[c.name]=l;const d=t[s+1],g=r[s+1];d&&!d.rest&&d.optional&&g&&c.chained&&(i=0),!d&&!g&&Object.keys(a).length===o.length&&(i=0);continue}if(c.optional&&c.chained){i++;continue}return}if(!i)return a}function ie(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function wt({nodes:e,server_loads:t,dictionary:n,matchers:a}){const r=new Set(t);return Object.entries(n).map(([s,[c,l,d]])=>{const{pattern:g,params:u}=gt(s),f={id:s,exec:h=>{const p=g.exec(h);if(p)return yt(p,u,a)},errors:[1,...d||[]].map(h=>e[h]),layouts:[0,...l||[]].map(i),leaf:o(c)};return f.errors.length=f.layouts.length=Math.max(f.errors.length,f.layouts.length),f});function o(s){const c=s<0;return c&&(s=~s),[c,e[s]]}function i(s){return s===void 0?s:[r.has(s),e[s]]}}function xe(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function Ae(e,t,n=JSON.stringify){const a=n(t);try{sessionStorage[e]=a}catch{}}const S=globalThis.__sveltekit_ufrl13?.base??"",vt=globalThis.__sveltekit_ufrl13?.assets??S,bt="1737709128849",Ne="sveltekit:snapshot",Oe="sveltekit:scroll",je="sveltekit:states",Et="sveltekit:pageurl",x="sveltekit:history",V="sveltekit:navigation",B={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},q=location.origin;function De(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 pe(){return{x:pageXOffset,y:pageYOffset}}function U(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const Se={...B,"":B.hover};function $e(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function Ce(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=$e(e)}}function le(e,t){let n;try{n=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI)}catch{}const a=e instanceof SVGAElement?e.target.baseVal:e.target,r=!n||!!a||ee(n,t)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),o=n?.origin===q&&e.hasAttribute("download");return{url:n,external:r,target:a,download:o}}function Y(e){let t=null,n=null,a=null,r=null,o=null,i=null,s=e;for(;s&&s!==document.documentElement;)a===null&&(a=U(s,"preload-code")),r===null&&(r=U(s,"preload-data")),t===null&&(t=U(s,"keepfocus")),n===null&&(n=U(s,"noscroll")),o===null&&(o=U(s,"reload")),i===null&&(i=U(s,"replacestate")),s=$e(s);function c(l){switch(l){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:Se[a??"off"],preload_data:Se[r??"off"],keepfocus:c(t),noscroll:c(n),reload:c(o),replace_state:c(i)}}function Re(e){const t=de(e);let n=!0;function a(){n=!0,t.update(i=>i)}function r(i){n=!1,t.set(i)}function o(i){let s;return t.subscribe(c=>{(s===void 0||n&&c!==s)&&i(s=c)})}return{notify:a,set:r,subscribe:o}}function kt(){const{set:e,subscribe:t}=de(!1);let n;async function a(){clearTimeout(n);try{const r=await fetch(`${vt}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!r.ok)return!1;const i=(await r.json()).version!==bt;return i&&(e(!0),clearTimeout(n)),i}catch{return!1}}return{subscribe:t,check:a}}function ee(e,t){return e.origin!==q||!e.pathname.startsWith(t)}const At=-1,St=-2,Rt=-3,It=-4,Lt=-5,Pt=-6;function Tt(e,t){if(typeof e=="number")return r(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,a=Array(n.length);function r(o,i=!1){if(o===At)return;if(o===Rt)return NaN;if(o===It)return 1/0;if(o===Lt)return-1/0;if(o===Pt)return-0;if(i)throw new Error("Invalid input");if(o in a)return a[o];const s=n[o];if(!s||typeof s!="object")a[o]=s;else if(Array.isArray(s))if(typeof s[0]=="string"){const c=s[0],l=t?.[c];if(l)return a[o]=l(r(s[1]));switch(c){case"Date":a[o]=new Date(s[1]);break;case"Set":const d=new Set;a[o]=d;for(let f=1;ft!=null)}class te{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 Fe{constructor(t,n){this.status=t,this.location=n}}class ge extends Error{constructor(t,n,a){super(a),this.status=t,this.text=n}}const Nt="x-sveltekit-invalidated",Ot="x-sveltekit-trailing-slash";function J(e){return e instanceof te||e instanceof ge?e.status:500}function jt(e){return e instanceof ge?e.text:"Internal Error"}const T=xe(Oe)??{},F=xe(Ne)??{},Dt=history.pushState,_e=history.replaceState,L={url:Re({}),page:Re({}),navigating:de(null),updated:kt()};function me(e){T[e]=pe()}function $t(e,t){let n=e+1;for(;T[n];)delete T[n],n+=1;for(n=t+1;F[n];)delete F[n],n+=1}function O(e){return location.href=e.href,new Promise(()=>{})}function Ie(){}let ne,fe,W,I,ue,j;const Ge=[],z=[];let N=null;const Me=[],Ct=[];let C=[],y={branch:[],error:null,url:null},ye=!1,X=!1,Le=!0,G=!1,D=!1,qe=!1,we=!1,ve,w,k,A,Z;async function Wt(e,t,n){document.URL!==location.href&&(location.href=location.href),j=e,ne=wt(e),I=document.documentElement,ue=t,fe=e.nodes[0],W=e.nodes[1],fe(),W(),w=history.state?.[x],k=history.state?.[V],w||(w=k=Date.now(),_e.call(history,{...history.state,[x]:w,[V]:k},""));const a=T[w];a&&(history.scrollRestoration="manual",scrollTo(a.x,a.y)),n?await Kt(ue,n):qt(location.href,{replaceState:!0}),Ht()}function He(e){z.some(t=>t?.snapshot)&&(F[e]=z.map(t=>t?.snapshot?.capture()))}function Ke(e){F[e]?.forEach((t,n)=>{z[n]?.snapshot?.restore(t)})}function Pe(){me(w),Ae(Oe,T),He(k),Ae(Ne,F)}async function Be(e,t,n,a){return K({type:"goto",url:De(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:a,accept:()=>{t.invalidateAll&&(we=!0)}})}async function Vt(e){return N={id:e.id,promise:Je(e).then(t=>(t.type==="loaded"&&t.state.error&&(N=null),t))},N.promise}async function ce(e){const t=ne.find(n=>n.exec(We(e)));t&&await Promise.all([...t.layouts,t.leaf].map(n=>n?.[1]()))}function Ye(e,t){y=e.state;const n=document.querySelector("style[data-sveltekit]");n&&n.remove(),A=e.props.page,ve=new j.root({target:t,props:{...e.props,stores:L,components:z},hydrate:!0}),Ke(k);const a={from:null,to:{params:y.params,route:{id:y.route?.id??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};C.forEach(r=>r(a)),X=!0}async function Q({url:e,params:t,branch:n,status:a,error:r,route:o,form:i}){let s="never";if(S&&(e.pathname===S||e.pathname===S+"/"))s="always";else for(const f of n)f?.slash!==void 0&&(s=f.slash);e.pathname=nt(e.pathname,s),e.search=e.search;const c={type:"loaded",state:{url:e,params:t,branch:n,error:r,route:o},props:{constructors:xt(n).map(f=>f.node.component),page:A}};i!==void 0&&(c.props.form=i);let l={},d=!A,g=0;for(let f=0;f(s&&(c.route=!0),u[f])}),params:new Proxy(a,{get:(u,f)=>(s&&c.params.add(f),u[f])}),data:o?.data??null,url:st(n,()=>{s&&(c.url=!0)},u=>{s&&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 s&&d(p.href),p.origin===n.origin&&(h=p.href.slice(n.origin.length)),X?ht(h,p.href,f):dt(h,f)},setHeaders:()=>{},depends:d,parent(){return s&&(c.parent=!0),t()},untrack(u){s=!1;try{return u()}finally{s=!0}}};i=await l.universal.load.call(null,g)??null}return{node:l,loader:e,server:o,universal:l.universal?.load?{type:"data",data:i,uses:c}:null,data:i??o?.data??null,slash:l.universal?.trailingSlash??o?.slash}}function Te(e,t,n,a,r,o){if(we)return!0;if(!r)return!1;if(r.parent&&e||r.route&&t||r.url&&n)return!0;for(const i of r.search_params)if(a.has(i))return!0;for(const i of r.params)if(o[i]!==y.params[i])return!0;for(const i of r.dependencies)if(Ge.some(s=>s(new URL(i))))return!0;return!1}function Ee(e,t){return e?.type==="data"?e:e?.type==="skip"?t??null:null}function Ft(e,t){if(!e)return new Set(t.searchParams.keys());const n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const a of n){const r=e.searchParams.getAll(a),o=t.searchParams.getAll(a);r.every(i=>o.includes(i))&&o.every(i=>r.includes(i))&&n.delete(a)}return n}async function Je({id:e,invalidating:t,url:n,params:a,route:r}){if(N?.id===e)return N.promise;const{errors:o,layouts:i,leaf:s}=r,c=[...i,s];o.forEach(_=>_?.().catch(()=>{})),c.forEach(_=>_?.[1]().catch(()=>{}));let l=null;const d=y.url?e!==y.url.pathname+y.url.search:!1,g=y.route?r.id!==y.route.id:!1,u=Ft(y.url,n);let f=!1;const h=c.map((_,m)=>{const v=y.branch[m],b=!!_?.[0]&&(v?.loader!==_[1]||Te(f,g,d,u,v.server?.uses,a));return b&&(f=!0),b});if(h.some(Boolean)){try{l=await Ze(n,h)}catch(_){return ae({status:J(_),error:await M(_,{url:n,params:a,route:{id:r.id}}),url:n,route:r})}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&&!Te(R,g,d,u,v.universal?.uses,a))return v;if(R=!0,b?.type==="error")throw b;return be({loader:_[1],url:n,params:a,route:r,parent:async()=>{const re={};for(let oe=0;oe{});const P=[];for(let _=0;_Promise.resolve({}),server_data_node:Ee(o)}),c={node:await W(),loader:W,universal:null,server:null,data:null};return await Q({url:n,params:r,branch:[s,c],status:e,error:t,route:null})}function ke(e,t){if(!e||ee(e,S))return;let n;try{n=j.hooks.reroute({url:new URL(e)})??e.pathname}catch{return}const a=We(n);for(const r of ne){const o=r.exec(a);if(o)return{id:e.pathname+e.search,invalidating:t,route:r,params:rt(o),url:e}}}function We(e){return at(e.slice(S.length)||"/")}function ze({url:e,type:t,intent:n,delta:a}){let r=!1;const o=et(y,n,e,t);a!==void 0&&(o.navigation.delta=a);const i={...o.navigation,cancel:()=>{r=!0,o.reject(new Error("navigation cancelled"))}};return G||Me.forEach(s=>s(i)),r?null:o}async function K({type:e,url:t,popped:n,keepfocus:a,noscroll:r,replace_state:o,state:i={},redirect_count:s=0,nav_token:c={},accept:l=Ie,block:d=Ie}){const g=ke(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,X&&L.navigating.set(u.navigation),Z=c;let p=g&&await Je(g);if(!p){if(ee(t,S))return await O(t);p=await Xe(t,{id:null},await M(new ge(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404)}if(t=g?.url||t,Z!==c)return u.reject(new Error("navigation aborted")),!1;if(p.type==="redirect")if(s>=20)p=await ae({status:500,error:await M(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}});else return Be(new URL(p.location,t).href,{},s+1,c),!1;else p.props.page.status>=400&&await L.updated.check()&&await O(t);if(Ge.length=0,we=!1,me(f),He(h),p.props.page.url.pathname!==t.pathname&&(t.pathname=p.props.page.url.pathname),i=n?n.state:i,!n){const _=o?0:1,m={[x]:w+=_,[V]:k+=_,[je]:i};(o?_e:Dt).call(history,m,"",t),o||$t(w,k)}if(N=null,p.props.page.state=i,X){y=p.state,p.props.page&&(p.props.page.url=t);const _=(await Promise.all(Ct.map(m=>m(u.navigation)))).filter(m=>typeof m=="function");if(_.length>0){let m=function(){C=C.filter(v=>!_.includes(v))};_.push(m),callbacks.after_navigate.push(..._)}ve.$set(p.props),qe=!0}else Ye(p,ue);const{activeElement:R}=document;await tt();const E=n?n.scroll:r?pe():null;if(Le){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;!a&&!P&&Bt(),Le=!0,p.props.page&&(A=p.props.page),G=!1,e==="popstate"&&Ke(k),u.fulfil(void 0),C.forEach(_=>_(u.navigation)),L.navigating.set(null)}async function Xe(e,t,n,a){return e.origin===q&&e.pathname===location.pathname&&!ye?await ae({status:a,error:n,url:e,route:t}):await O(e)}function Mt(){let e;I.addEventListener("mousemove",o=>{const i=o.target;clearTimeout(e),e=setTimeout(()=>{a(i,2)},20)});function t(o){a(o.composedPath()[0],1)}I.addEventListener("mousedown",t),I.addEventListener("touchstart",t,{passive:!0});const n=new IntersectionObserver(o=>{for(const i of o)i.isIntersecting&&(ce(i.target.href),n.unobserve(i.target))},{threshold:0});function a(o,i){const s=Ce(o,I);if(!s)return;const{url:c,external:l,download:d}=le(s,S);if(l||d)return;const g=Y(s);if(!g.reload)if(i<=g.preload_data){const u=ke(c,!1);u&&Vt(u)}else i<=g.preload_code&&ce(c.pathname)}function r(){n.disconnect();for(const o of I.querySelectorAll("a")){const{url:i,external:s,download:c}=le(o,S);if(s||c)continue;const l=Y(o);l.reload||(l.preload_code===B.viewport&&n.observe(o),l.preload_code===B.eager&&ce(i.pathname))}}C.push(r),r()}function M(e,t){if(e instanceof te)return e.body;const n=J(e),a=jt(e);return j.hooks.handleError({error:e,event:t,status:n,message:a})??{message:a}}function qt(e,t={}){return e=De(e),e.origin!==q?Promise.reject(new Error("goto: invalid URL")):Be(e,t,0)}function Ht(){history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let n=!1;if(Pe(),!G){const a=et(y,void 0,null,"leave"),r={...a.navigation,cancel:()=>{n=!0,a.reject(new Error("navigation cancelled"))}};Me.forEach(o=>o(r))}n?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Pe()}),navigator.connection?.saveData||Mt(),I.addEventListener("click",t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const n=Ce(t.composedPath()[0],I);if(!n)return;const{url:a,external:r,target:o,download:i}=le(n,S);if(!a)return;if(o==="_parent"||o==="_top"){if(window.parent!==window)return}else if(o&&o!=="_self")return;const s=Y(n);if(!(n instanceof SVGAElement)&&a.protocol!==location.protocol&&!(a.protocol==="https:"||a.protocol==="http:")||i)return;if(r||s.reload){ze({url:a,type:"link"})?G=!0:t.preventDefault();return}const[l,d]=a.href.split("#");if(d!==void 0&&l===se(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,me(w),e(a),!s.replace_state)return;D=!1}t.preventDefault(),K({type:"link",url:a,keepfocus:s.keepfocus,noscroll:s.noscroll,replace_state:s.replace_state??a.href===location.href})}),I.addEventListener("submit",t=>{if(t.defaultPrevented)return;const n=HTMLFormElement.prototype.cloneNode.call(t.target),a=t.submitter;if((a?.formMethod||n.method)!=="get")return;const o=new URL(a?.hasAttribute("formaction")&&a?.formAction||n.action);if(ee(o,S))return;const i=t.target,s=Y(i);if(s.reload)return;t.preventDefault(),t.stopPropagation();const c=new FormData(i),l=a?.getAttribute("name");l&&c.append(l,a?.getAttribute("value")??""),o.search=new URLSearchParams(c).toString(),K({type:"form",url:o,keepfocus:s.keepfocus,noscroll:s.noscroll,replace_state:s.replace_state??o.href===location.href})}),addEventListener("popstate",async t=>{if(t.state?.[x]){const n=t.state[x];if(Z={},n===w)return;const a=T[n],r=t.state[je]??{},o=new URL(t.state[Et]??location.href),i=t.state[V],s=se(location)===se(y.url);if(i===k&&(qe||s)){e(o),T[w]=pe(),a&&scrollTo(a.x,a.y),r!==A.state&&(A={...A,state:r},ve.$set({page:A})),w=n;return}const l=n-w;await K({type:"popstate",url:o,popped:{state:r,scroll:a,delta:l},accept:()=>{w=n,k=i},block:()=>{history.go(-l)},nav_token:Z})}else if(!D){const n=new URL(location.href);e(n)}}),addEventListener("hashchange",()=>{D&&(D=!1,_e.call(history,{...history.state,[x]:++w,[V]: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({...A,url:t}),L.page.notify()}}async function Kt(e,{status:t=200,error:n,node_ids:a,params:r,route:o,data:i,form:s}){ye=!0;const c=new URL(location.href);({params:r={},route:o={id:null}}=ke(c,!1)||{});let l;try{const d=a.map(async(f,h)=>{const p=i[h];return p?.uses&&(p.uses=Qe(p.uses)),be({loader:j.nodes[f],url:c,params:r,route:o,parent:async()=>{const R={};for(let E=0;Ef===o.id);if(u){const f=u.layouts;for(let h=0;hr?"1":"0").join(""));const a=await Ue(n.href);if(!a.ok){let r;throw a.headers.get("content-type")?.includes("application/json")?r=await a.json():a.status===404?r="Not Found":a.status===500&&(r="Internal Error"),new te(a.status,r)}return new Promise(async r=>{const o=new Map,i=a.body.getReader(),s=new TextDecoder;function c(d){return Tt(d,{Promise:g=>new Promise((u,f)=>{o.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?` -`:s.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 r(f);if(f.type==="data")f.nodes?.forEach(h=>{h?.type==="data"&&(h.uses=Qe(h.uses),h.data=c(h.data))}),r(f);else if(f.type==="chunk"){const{id:h,data:p,error:R}=f,E=o.get(h);o.delete(h),R?E.reject(c(R)):E.fulfil(c(p))}}}})}function Qe(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 Bt(){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 a=getSelection();if(a&&a.type!=="None"){const r=[];for(let o=0;o{if(a.rangeCount===r.length){for(let o=0;o{r=c,o=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:a,complete:i},fulfil:r,reject:o}}export{Wt as a,L as s}; diff --git a/build/client/_app/immutable/chunks/exceljs.min.Hjfm2v4T.js b/build/client/_app/immutable/chunks/exceljs.min.Hjfm2v4T.js deleted file mode 100644 index 355341e6eebfa3935682a6e2f1fce3100de52b00..0000000000000000000000000000000000000000 --- a/build/client/_app/immutable/chunks/exceljs.min.Hjfm2v4T.js +++ /dev/null @@ -1,57 +0,0 @@ -import{c as Kt,g as $e}from"./SearchUtils._vRU8T6p.js";function Be(De){throw new Error('Could not dynamically require "'+De+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Ue={exports:{}};/*! ExcelJS 19-10-2023 */(function(De,Ve){(function(s){De.exports=s()})(function(){return function s(E,S,m){function o(t,e){if(!S[t]){if(!E[t]){var l=typeof Be=="function"&&Be;if(!e&&l)return l(t,!0);if(a)return a(t,!0);var n=new Error("Cannot find module '"+t+"'");throw n.code="MODULE_NOT_FOUND",n}var i=S[t]={exports:{}};E[t][0].call(i.exports,function(c){return o(E[t][1][c]||c)},i,i.exports,s,E,S,m)}return S[t].exports}for(var a=typeof Be=="function"&&Be,r=0;r{const d=this.workbook.addWorksheet(c.sheetName),f=c.dateFormats||["YYYY-MM-DD[T]HH:mm:ssZ","YYYY-MM-DD[T]HH:mm:ss","MM-DD-YYYY","YYYY-MM-DD"],w=c.map||function(A){if(A==="")return null;const N=Number(A);if(!Number.isNaN(N)&&N!==1/0)return N;const L=f.reduce((P,D)=>{if(P)return P;const $=t(A,D,!0);return $.isValid()?$:null},null);if(L)return new Date(L.valueOf());const j=n[A];return j!==void 0?j:A},_=o.parse(c.parserOptions).on("data",A=>{d.addRow(A.map(w))}).on("end",()=>{_.emit("worksheet",d)});_.on("worksheet",h).on("error",u),i.pipe(_)})}createInputStream(){throw new Error("`CSV#createInputStream` is deprecated. You should use `CSV#read` instead. This method will be removed in version 5.0. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md")}write(i,c){return new Promise((h,u)=>{c=c||{};const d=this.workbook.getWorksheet(c.sheetName||c.sheetId),f=o.format(c.formatterOptions);i.on("finish",()=>{h()}),f.on("error",u),f.pipe(i);const{dateFormat:w,dateUTC:_}=c,A=c.map||(j=>{if(j){if(j.text||j.hyperlink)return j.hyperlink||j.text||"";if(j.formula||j.result)return j.result||"";if(j instanceof Date)return w?_?t.utc(j).format(w):t(j).format(w):_?t.utc(j).format():t(j).format();if(j.error)return j.error;if(typeof j=="object")return JSON.stringify(j)}return j}),N=c.includeEmptyRows===void 0||c.includeEmptyRows;let L=1;d&&d.eachRow((j,P)=>{if(N)for(;L++2&&arguments[2]!==void 0?arguments[2]:0;if(this.worksheet=r,t)if(typeof t=="string"){const l=m.decodeAddress(t);this.nativeCol=l.col+e,this.nativeColOff=0,this.nativeRow=l.row+e,this.nativeRowOff=0}else t.nativeCol!==void 0?(this.nativeCol=t.nativeCol||0,this.nativeColOff=t.nativeColOff||0,this.nativeRow=t.nativeRow||0,this.nativeRowOff=t.nativeRowOff||0):t.col!==void 0?(this.col=t.col+e,this.row=t.row+e):(this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0);else this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0}static asInstance(r){return r instanceof o||r==null?r:new o(r)}get col(){return this.nativeCol+Math.min(this.colWidth-1,this.nativeColOff)/this.colWidth}set col(r){this.nativeCol=Math.floor(r),this.nativeColOff=Math.floor((r-this.nativeCol)*this.colWidth)}get row(){return this.nativeRow+Math.min(this.rowHeight-1,this.nativeRowOff)/this.rowHeight}set row(r){this.nativeRow=Math.floor(r),this.nativeRowOff=Math.floor((r-this.nativeRow)*this.rowHeight)}get colWidth(){return this.worksheet&&this.worksheet.getColumn(this.nativeCol+1)&&this.worksheet.getColumn(this.nativeCol+1).isCustomWidth?Math.floor(1e4*this.worksheet.getColumn(this.nativeCol+1).width):64e4}get rowHeight(){return this.worksheet&&this.worksheet.getRow(this.nativeRow+1)&&this.worksheet.getRow(this.nativeRow+1).height?Math.floor(1e4*this.worksheet.getRow(this.nativeRow+1).height):18e4}get model(){return{nativeCol:this.nativeCol,nativeColOff:this.nativeColOff,nativeRow:this.nativeRow,nativeRowOff:this.nativeRowOff}}set model(r){this.nativeCol=r.nativeCol,this.nativeColOff=r.nativeColOff,this.nativeRow=r.nativeRow,this.nativeRowOff=r.nativeRowOff}}E.exports=o},{"../utils/col-cache":19}],3:[function(s,E,S){const m=s("../utils/col-cache"),o=s("../utils/under-dash"),a=s("./enums"),{slideFormula:r}=s("../utils/shared-formula"),t=s("./note");class e{constructor(i,c,h){if(!i||!c)throw new Error("A Cell needs a Row");this._row=i,this._column=c,m.validateAddress(h),this._address=h,this._value=l.create(e.Types.Null,this),this.style=this._mergeStyle(i.style,c.style,{}),this._mergeCount=0}get worksheet(){return this._row.worksheet}get workbook(){return this._row.worksheet.workbook}destroy(){delete this.style,delete this._value,delete this._row,delete this._column,delete this._address}get numFmt(){return this.style.numFmt}set numFmt(i){this.style.numFmt=i}get font(){return this.style.font}set font(i){this.style.font=i}get alignment(){return this.style.alignment}set alignment(i){this.style.alignment=i}get border(){return this.style.border}set border(i){this.style.border=i}get fill(){return this.style.fill}set fill(i){this.style.fill=i}get protection(){return this.style.protection}set protection(i){this.style.protection=i}_mergeStyle(i,c,h){const u=i&&i.numFmt||c&&c.numFmt;u&&(h.numFmt=u);const d=i&&i.font||c&&c.font;d&&(h.font=d);const f=i&&i.alignment||c&&c.alignment;f&&(h.alignment=f);const w=i&&i.border||c&&c.border;w&&(h.border=w);const _=i&&i.fill||c&&c.fill;_&&(h.fill=_);const A=i&&i.protection||c&&c.protection;return A&&(h.protection=A),h}get address(){return this._address}get row(){return this._row.number}get col(){return this._column.number}get $col$row(){return`$${this._column.letter}$${this.row}`}get type(){return this._value.type}get effectiveType(){return this._value.effectiveType}toCsvString(){return this._value.toCsvString()}addMergeRef(){this._mergeCount++}releaseMergeRef(){this._mergeCount--}get isMerged(){return this._mergeCount>0||this.type===e.Types.Merge}merge(i,c){this._value.release(),this._value=l.create(e.Types.Merge,this,i),c||(this.style=i.style)}unmerge(){this.type===e.Types.Merge&&(this._value.release(),this._value=l.create(e.Types.Null,this),this.style=this._mergeStyle(this._row.style,this._column.style,{}))}isMergedTo(i){return this._value.type===e.Types.Merge&&this._value.isMergedTo(i)}get master(){return this.type===e.Types.Merge?this._value.master:this}get isHyperlink(){return this._value.type===e.Types.Hyperlink}get hyperlink(){return this._value.hyperlink}get value(){return this._value.value}set value(i){this.type!==e.Types.Merge?(this._value.release(),this._value=l.create(l.getType(i),this,i)):this._value.master.value=i}get note(){return this._comment&&this._comment.note}set note(i){this._comment=new t(i)}get text(){return this._value.toString()}get html(){return o.escapeHtml(this.text)}toString(){return this.text}_upgradeToHyperlink(i){this.type===e.Types.String&&(this._value=l.create(e.Types.Hyperlink,this,{text:this._value.value,hyperlink:i}))}get formula(){return this._value.formula}get result(){return this._value.result}get formulaType(){return this._value.formulaType}get fullAddress(){const{worksheet:i}=this._row;return{sheetName:i.name,address:this.address,row:this.row,col:this.col}}get name(){return this.names[0]}set name(i){this.names=[i]}get names(){return this.workbook.definedNames.getNamesEx(this.fullAddress)}set names(i){const{definedNames:c}=this.workbook;c.removeAllNames(this.fullAddress),i.forEach(h=>{c.addEx(this.fullAddress,h)})}addName(i){this.workbook.definedNames.addEx(this.fullAddress,i)}removeName(i){this.workbook.definedNames.removeEx(this.fullAddress,i)}removeAllNames(){this.workbook.definedNames.removeAllNames(this.fullAddress)}get _dataValidations(){return this.worksheet.dataValidations}get dataValidation(){return this._dataValidations.find(this.address)}set dataValidation(i){this._dataValidations.add(this.address,i)}get model(){const{model:i}=this._value;return i.style=this.style,this._comment&&(i.comment=this._comment.model),i}set model(i){if(this._value.release(),this._value=l.create(i.type,this),this._value.model=i,i.comment)switch(i.comment.type){case"note":this._comment=t.fromModel(i.comment)}i.style?this.style=i.style:this.style={}}}e.Types=a.ValueType;const l={getType:n=>n==null?e.Types.Null:n instanceof String||typeof n=="string"?e.Types.String:typeof n=="number"?e.Types.Number:typeof n=="boolean"?e.Types.Boolean:n instanceof Date?e.Types.Date:n.text&&n.hyperlink?e.Types.Hyperlink:n.formula||n.sharedFormula?e.Types.Formula:n.richText?e.Types.RichText:n.sharedString?e.Types.SharedString:n.error?e.Types.Error:e.Types.JSON,types:[{t:e.Types.Null,f:class{constructor(n){this.model={address:n.address,type:e.Types.Null}}get value(){return null}set value(n){}get type(){return e.Types.Null}get effectiveType(){return e.Types.Null}get address(){return this.model.address}set address(n){this.model.address=n}toCsvString(){return""}release(){}toString(){return""}}},{t:e.Types.Number,f:class{constructor(n,i){this.model={address:n.address,type:e.Types.Number,value:i}}get value(){return this.model.value}set value(n){this.model.value=n}get type(){return e.Types.Number}get effectiveType(){return e.Types.Number}get address(){return this.model.address}set address(n){this.model.address=n}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}},{t:e.Types.String,f:class{constructor(n,i){this.model={address:n.address,type:e.Types.String,value:i}}get value(){return this.model.value}set value(n){this.model.value=n}get type(){return e.Types.String}get effectiveType(){return e.Types.String}get address(){return this.model.address}set address(n){this.model.address=n}toCsvString(){return`"${this.model.value.replace(/"/g,'""')}"`}release(){}toString(){return this.model.value}}},{t:e.Types.Date,f:class{constructor(n,i){this.model={address:n.address,type:e.Types.Date,value:i}}get value(){return this.model.value}set value(n){this.model.value=n}get type(){return e.Types.Date}get effectiveType(){return e.Types.Date}get address(){return this.model.address}set address(n){this.model.address=n}toCsvString(){return this.model.value.toISOString()}release(){}toString(){return this.model.value.toString()}}},{t:e.Types.Hyperlink,f:class{constructor(n,i){this.model={address:n.address,type:e.Types.Hyperlink,text:i?i.text:void 0,hyperlink:i?i.hyperlink:void 0},i&&i.tooltip&&(this.model.tooltip=i.tooltip)}get value(){const n={text:this.model.text,hyperlink:this.model.hyperlink};return this.model.tooltip&&(n.tooltip=this.model.tooltip),n}set value(n){this.model={text:n.text,hyperlink:n.hyperlink},n.tooltip&&(this.model.tooltip=n.tooltip)}get text(){return this.model.text}set text(n){this.model.text=n}get hyperlink(){return this.model.hyperlink}set hyperlink(n){this.model.hyperlink=n}get type(){return e.Types.Hyperlink}get effectiveType(){return e.Types.Hyperlink}get address(){return this.model.address}set address(n){this.model.address=n}toCsvString(){return this.model.hyperlink}release(){}toString(){return this.model.text}}},{t:e.Types.Formula,f:class{constructor(n,i){this.cell=n,this.model={address:n.address,type:e.Types.Formula,shareType:i?i.shareType:void 0,ref:i?i.ref:void 0,formula:i?i.formula:void 0,sharedFormula:i?i.sharedFormula:void 0,result:i?i.result:void 0}}_copyModel(n){const i={},c=h=>{const u=n[h];u&&(i[h]=u)};return c("formula"),c("result"),c("ref"),c("shareType"),c("sharedFormula"),i}get value(){return this._copyModel(this.model)}set value(n){this.model=this._copyModel(n)}validate(n){switch(l.getType(n)){case e.Types.Null:case e.Types.String:case e.Types.Number:case e.Types.Date:break;case e.Types.Hyperlink:case e.Types.Formula:default:throw new Error("Cannot process that type of result value")}}get dependencies(){return{ranges:this.formula.match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g),cells:this.formula.replace(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g,"").match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}/g)}}get formula(){return this.model.formula||this._getTranslatedFormula()}set formula(n){this.model.formula=n}get formulaType(){return this.model.formula?a.FormulaType.Master:this.model.sharedFormula?a.FormulaType.Shared:a.FormulaType.None}get result(){return this.model.result}set result(n){this.model.result=n}get type(){return e.Types.Formula}get effectiveType(){const n=this.model.result;return n==null?a.ValueType.Null:n instanceof String||typeof n=="string"?a.ValueType.String:typeof n=="number"?a.ValueType.Number:n instanceof Date?a.ValueType.Date:n.text&&n.hyperlink?a.ValueType.Hyperlink:n.formula?a.ValueType.Formula:a.ValueType.Null}get address(){return this.model.address}set address(n){this.model.address=n}_getTranslatedFormula(){if(!this._translatedFormula&&this.model.sharedFormula){const{worksheet:n}=this.cell,i=n.findCell(this.model.sharedFormula);this._translatedFormula=i&&r(i.formula,i.address,this.model.address)}return this._translatedFormula}toCsvString(){return""+(this.model.result||"")}release(){}toString(){return this.model.result?this.model.result.toString():""}}},{t:e.Types.Merge,f:class{constructor(n,i){this.model={address:n.address,type:e.Types.Merge,master:i?i.address:void 0},this._master=i,i&&i.addMergeRef()}get value(){return this._master.value}set value(n){n instanceof e?(this._master&&this._master.releaseMergeRef(),n.addMergeRef(),this._master=n):this._master.value=n}isMergedTo(n){return n===this._master}get master(){return this._master}get type(){return e.Types.Merge}get effectiveType(){return this._master.effectiveType}get address(){return this.model.address}set address(n){this.model.address=n}toCsvString(){return""}release(){this._master.releaseMergeRef()}toString(){return this.value.toString()}}},{t:e.Types.JSON,f:class{constructor(n,i){this.model={address:n.address,type:e.Types.String,value:JSON.stringify(i),rawValue:i}}get value(){return this.model.rawValue}set value(n){this.model.rawValue=n,this.model.value=JSON.stringify(n)}get type(){return e.Types.String}get effectiveType(){return e.Types.String}get address(){return this.model.address}set address(n){this.model.address=n}toCsvString(){return this.model.value}release(){}toString(){return this.model.value}}},{t:e.Types.SharedString,f:class{constructor(n,i){this.model={address:n.address,type:e.Types.SharedString,value:i}}get value(){return this.model.value}set value(n){this.model.value=n}get type(){return e.Types.SharedString}get effectiveType(){return e.Types.SharedString}get address(){return this.model.address}set address(n){this.model.address=n}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}},{t:e.Types.RichText,f:class{constructor(n,i){this.model={address:n.address,type:e.Types.String,value:i}}get value(){return this.model.value}set value(n){this.model.value=n}toString(){return this.model.value.richText.map(n=>n.text).join("")}get type(){return e.Types.RichText}get effectiveType(){return e.Types.RichText}get address(){return this.model.address}set address(n){this.model.address=n}toCsvString(){return`"${this.text.replace(/"/g,'""')}"`}release(){}}},{t:e.Types.Boolean,f:class{constructor(n,i){this.model={address:n.address,type:e.Types.Boolean,value:i}}get value(){return this.model.value}set value(n){this.model.value=n}get type(){return e.Types.Boolean}get effectiveType(){return e.Types.Boolean}get address(){return this.model.address}set address(n){this.model.address=n}toCsvString(){return this.model.value?1:0}release(){}toString(){return this.model.value.toString()}}},{t:e.Types.Error,f:class{constructor(n,i){this.model={address:n.address,type:e.Types.Error,value:i}}get value(){return this.model.value}set value(n){this.model.value=n}get type(){return e.Types.Error}get effectiveType(){return e.Types.Error}get address(){return this.model.address}set address(n){this.model.address=n}toCsvString(){return this.toString()}release(){}toString(){return this.model.value.error.toString()}}}].reduce((n,i)=>(n[i.t]=i.f,n),[]),create(n,i,c){const h=this.types[n];if(!h)throw new Error("Could not create Value of type "+n);return new h(i,c)}};E.exports=e},{"../utils/col-cache":19,"../utils/shared-formula":23,"../utils/under-dash":26,"./enums":7,"./note":9}],4:[function(s,E,S){const m=s("../utils/under-dash"),o=s("./enums"),a=s("../utils/col-cache");class r{constructor(e,l,n){this._worksheet=e,this._number=l,n!==!1&&(this.defn=n)}get number(){return this._number}get worksheet(){return this._worksheet}get letter(){return a.n2l(this._number)}get isCustomWidth(){return this.width!==void 0&&this.width!==9}get defn(){return{header:this._header,key:this.key,width:this.width,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel}}set defn(e){e?(this.key=e.key,this.width=e.width!==void 0?e.width:9,this.outlineLevel=e.outlineLevel,e.style?this.style=e.style:this.style={},this.header=e.header,this._hidden=!!e.hidden):(delete this._header,delete this._key,delete this.width,this.style={},this.outlineLevel=0)}get headers(){return this._header&&this._header instanceof Array?this._header:[this._header]}get header(){return this._header}set header(e){e!==void 0?(this._header=e,this.headers.forEach((l,n)=>{this._worksheet.getCell(n+1,this.number).value=l})):this._header=void 0}get key(){return this._key}set key(e){(this._key&&this._worksheet.getColumnKey(this._key))===this&&this._worksheet.deleteColumnKey(this._key),this._key=e,e&&this._worksheet.setColumnKey(this._key,this)}get hidden(){return!!this._hidden}set hidden(e){this._hidden=e}get outlineLevel(){return this._outlineLevel||0}set outlineLevel(e){this._outlineLevel=e}get collapsed(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelCol)}toString(){return JSON.stringify({key:this.key,width:this.width,headers:this.headers.length?this.headers:void 0})}equivalentTo(e){return this.width===e.width&&this.hidden===e.hidden&&this.outlineLevel===e.outlineLevel&&m.isEqual(this.style,e.style)}get isDefault(){if(this.isCustomWidth||this.hidden||this.outlineLevel)return!1;const e=this.style;return!e||!(e.font||e.numFmt||e.alignment||e.border||e.fill||e.protection)}get headerCount(){return this.headers.length}eachCell(e,l){const n=this.number;l||(l=e,e=null),this._worksheet.eachRow(e,(i,c)=>{l(i.getCell(n),c)})}get values(){const e=[];return this.eachCell((l,n)=>{l&&l.type!==o.ValueType.Null&&(e[n]=l.value)}),e}set values(e){if(!e)return;const l=this.number;let n=0;e.hasOwnProperty("0")&&(n=1),e.forEach((i,c)=>{this._worksheet.getCell(c+n,l).value=i})}_applyStyle(e,l){return this.style[e]=l,this.eachCell(n=>{n[e]=l}),l}get numFmt(){return this.style.numFmt}set numFmt(e){this._applyStyle("numFmt",e)}get font(){return this.style.font}set font(e){this._applyStyle("font",e)}get alignment(){return this.style.alignment}set alignment(e){this._applyStyle("alignment",e)}get protection(){return this.style.protection}set protection(e){this._applyStyle("protection",e)}get border(){return this.style.border}set border(e){this._applyStyle("border",e)}get fill(){return this.style.fill}set fill(e){this._applyStyle("fill",e)}static toModel(e){const l=[];let n=null;return e&&e.forEach((i,c)=>{i.isDefault?n&&(n=null):n&&i.equivalentTo(n)?n.max=c+1:(n={min:c+1,max:c+1,width:i.width!==void 0?i.width:9,style:i.style,isCustomWidth:i.isCustomWidth,hidden:i.hidden,outlineLevel:i.outlineLevel,collapsed:i.collapsed},l.push(n))}),l.length?l:void 0}static fromModel(e,l){const n=[];let i=1,c=0;for(l=(l=l||[]).sort(function(h,u){return h.min-u.min});c{l.removeCellEx(e)})}forEach(e){m.each(this.matrixMap,(l,n)=>{l.forEach(i=>{e(n,i)})})}getNames(e){return this.getNamesEx(o.decodeEx(e))}getNamesEx(e){return m.map(this.matrixMap,(l,n)=>l.findCellEx(e)&&n).filter(Boolean)}_explore(e,l){l.mark=!1;const{sheetName:n}=l,i=new r(l.row,l.col,l.row,l.col,n);let c,h;function u(f,w){const _=e.findCellAt(n,f,l.col);return!(!_||!_.mark)&&(i[w]=f,_.mark=!1,!0)}for(h=l.row-1;u(h,"top");h--);for(h=l.row+1;u(h,"bottom");h++);function d(f,w){const _=[];for(h=i.top;h<=i.bottom;h++){const A=e.findCellAt(n,h,f);if(!A||!A.mark)return!1;_.push(A)}i[w]=f;for(let A=0;A<_.length;A++)_[A].mark=!1;return!0}for(c=l.col-1;d(c,"left");c--);for(c=l.col+1;d(c,"right");c++);return i}getRanges(e,l){return(l=l||this.matrixMap[e])?(l.forEach(n=>{n.mark=!0}),{name:e,ranges:l.map(n=>n.mark&&this._explore(l,n)).filter(Boolean).map(n=>n.$shortRange)}):{name:e,ranges:[]}}normaliseMatrix(e,l){e.forEachInSheet(l,(n,i,c)=>{n&&(n.row===i&&n.col===c||(n.row=i,n.col=c,n.address=o.n2l(c)+i))})}spliceRows(e,l,n,i){m.each(this.matrixMap,c=>{c.spliceRows(e,l,n,i),this.normaliseMatrix(c,e)})}spliceColumns(e,l,n,i){m.each(this.matrixMap,c=>{c.spliceColumns(e,l,n,i),this.normaliseMatrix(c,e)})}get model(){return m.map(this.matrixMap,(e,l)=>this.getRanges(l,e)).filter(e=>e.ranges.length)}set model(e){const l=this.matrixMap={};e.forEach(n=>{const i=l[n.name]=new a;n.ranges.forEach(c=>{t.test(c.split("!").pop()||"")&&i.addCell(c)})})}}},{"../utils/cell-matrix":18,"../utils/col-cache":19,"../utils/under-dash":26,"./range":10}],7:[function(s,E,S){E.exports={ValueType:{Null:0,Merge:1,Number:2,String:3,Date:4,Hyperlink:5,Formula:6,SharedString:7,RichText:8,Boolean:9,Error:10},FormulaType:{None:0,Master:1,Shared:2},RelationshipType:{None:0,OfficeDocument:1,Worksheet:2,CalcChain:3,SharedStrings:4,Styles:5,Theme:6,Hyperlink:7},DocumentType:{Xlsx:1},ReadingOrder:{LeftToRight:1,RightToLeft:2},ErrorValue:{NotApplicable:"#N/A",Ref:"#REF!",Name:"#NAME?",DivZero:"#DIV/0!",Null:"#NULL!",Value:"#VALUE!",Num:"#NUM!"}}},{}],8:[function(s,E,S){const m=s("../utils/col-cache"),o=s("./anchor");E.exports=class{constructor(a,r){this.worksheet=a,this.model=r}get model(){switch(this.type){case"background":return{type:this.type,imageId:this.imageId};case"image":return{type:this.type,imageId:this.imageId,hyperlinks:this.range.hyperlinks,range:{tl:this.range.tl.model,br:this.range.br&&this.range.br.model,ext:this.range.ext,editAs:this.range.editAs}};default:throw new Error("Invalid Image Type")}}set model(a){let{type:r,imageId:t,range:e,hyperlinks:l}=a;if(this.type=r,this.imageId=t,r==="image")if(typeof e=="string"){const n=m.decode(e);this.range={tl:new o(this.worksheet,{col:n.left,row:n.top},-1),br:new o(this.worksheet,{col:n.right,row:n.bottom},0),editAs:"oneCell"}}else this.range={tl:new o(this.worksheet,e.tl,0),br:e.br&&new o(this.worksheet,e.br,0),ext:e.ext,editAs:e.editAs,hyperlinks:l||e.hyperlinks}}}},{"../utils/col-cache":19,"./anchor":2}],9:[function(s,E,S){const m=s("../utils/under-dash");class o{constructor(r){this.note=r}get model(){let r=null;switch(typeof this.note){case"string":r={type:"note",note:{texts:[{text:this.note}]}};break;default:r={type:"note",note:this.note}}return m.deepMerge({},o.DEFAULT_CONFIGS,r)}set model(r){const{note:t}=r,{texts:e}=t;e.length===1&&Object.keys(e[0]).length===1?this.note=e[0].text:this.note=t}static fromModel(r){const t=new o;return t.model=r,t}}o.DEFAULT_CONFIGS={note:{margins:{insetmode:"auto",inset:[.13,.13,.25,.25]},protection:{locked:"True",lockText:"True"},editAs:"absolute"}},E.exports=o},{"../utils/under-dash":26}],10:[function(s,E,S){const m=s("../utils/col-cache");class o{constructor(){this.decode(arguments)}setTLBR(r,t,e,l,n){if(arguments.length<4){const i=m.decodeAddress(r),c=m.decodeAddress(t);this.model={top:Math.min(i.row,c.row),left:Math.min(i.col,c.col),bottom:Math.max(i.row,c.row),right:Math.max(i.col,c.col),sheetName:e},this.setTLBR(i.row,i.col,c.row,c.col,n)}else this.model={top:Math.min(r,e),left:Math.min(t,l),bottom:Math.max(r,e),right:Math.max(t,l),sheetName:n}}decode(r){switch(r.length){case 5:this.setTLBR(r[0],r[1],r[2],r[3],r[4]);break;case 4:this.setTLBR(r[0],r[1],r[2],r[3]);break;case 3:this.setTLBR(r[0],r[1],r[2]);break;case 2:this.setTLBR(r[0],r[1]);break;case 1:{const t=r[0];if(t instanceof o)this.model={top:t.model.top,left:t.model.left,bottom:t.model.bottom,right:t.model.right,sheetName:t.sheetName};else if(t instanceof Array)this.decode(t);else if(t.top&&t.left&&t.bottom&&t.right)this.model={top:t.top,left:t.left,bottom:t.bottom,right:t.right,sheetName:t.sheetName};else{const e=m.decodeEx(t);e.top?this.model={top:e.top,left:e.left,bottom:e.bottom,right:e.right,sheetName:e.sheetName}:this.model={top:e.row,left:e.col,bottom:e.row,right:e.col,sheetName:e.sheetName}}break}case 0:this.model={top:0,left:0,bottom:0,right:0};break;default:throw new Error("Invalid number of arguments to _getDimensions() - "+r.length)}}get top(){return this.model.top||1}set top(r){this.model.top=r}get left(){return this.model.left||1}set left(r){this.model.left=r}get bottom(){return this.model.bottom||1}set bottom(r){this.model.bottom=r}get right(){return this.model.right||1}set right(r){this.model.right=r}get sheetName(){return this.model.sheetName}set sheetName(r){this.model.sheetName=r}get _serialisedSheetName(){const{sheetName:r}=this.model;return r?/^[a-zA-Z0-9]*$/.test(r)?r+"!":`'${r}'!`:""}expand(r,t,e,l){(!this.model.top||rthis.bottom)&&(this.bottom=e),(!this.model.right||l>this.right)&&(this.right=l)}expandRow(r){if(r){const{dimensions:t,number:e}=r;t&&this.expand(e,t.min,e,t.max)}}expandToAddress(r){const t=m.decodeEx(r);this.expand(t.row,t.col,t.row,t.col)}get tl(){return m.n2l(this.left)+this.top}get $t$l(){return`$${m.n2l(this.left)}$${this.top}`}get br(){return m.n2l(this.right)+this.bottom}get $b$r(){return`$${m.n2l(this.right)}$${this.bottom}`}get range(){return`${this._serialisedSheetName+this.tl}:${this.br}`}get $range(){return`${this._serialisedSheetName+this.$t$l}:${this.$b$r}`}get shortRange(){return this.count>1?this.range:this._serialisedSheetName+this.tl}get $shortRange(){return this.count>1?this.$range:this._serialisedSheetName+this.$t$l}get count(){return(1+this.bottom-this.top)*(1+this.right-this.left)}toString(){return this.range}intersects(r){return(!r.sheetName||!this.sheetName||r.sheetName===this.sheetName)&&!(r.bottomthis.bottom)&&!(r.rightthis.right)}contains(r){const t=m.decodeEx(r);return this.containsEx(t)}containsEx(r){return(!r.sheetName||!this.sheetName||r.sheetName===this.sheetName)&&r.row>=this.top&&r.row<=this.bottom&&r.col>=this.left&&r.col<=this.right}forEachAddress(r){for(let t=this.left;t<=this.right;t++)for(let e=this.top;e<=this.bottom;e++)r(m.encodeAddress(e,t),e,t)}}E.exports=o},{"../utils/col-cache":19}],11:[function(s,E,S){const m=s("../utils/under-dash"),o=s("./enums"),a=s("../utils/col-cache"),r=s("./cell");E.exports=class{constructor(t,e){this._worksheet=t,this._number=e,this._cells=[],this.style={},this.outlineLevel=0}get number(){return this._number}get worksheet(){return this._worksheet}commit(){this._worksheet._commitRow(this)}destroy(){delete this._worksheet,delete this._cells,delete this.style}findCell(t){return this._cells[t-1]}getCellEx(t){let e=this._cells[t.col-1];if(!e){const l=this._worksheet.getColumn(t.col);e=new r(this,l,t.address),this._cells[t.col-1]=e}return e}getCell(t){if(typeof t=="string"){const e=this._worksheet.getColumnKey(t);t=e?e.number:a.l2n(t)}return this._cells[t-1]||this.getCellEx({address:a.encodeAddress(this._number,t),row:this._number,col:t})}splice(t,e){const l=t+e;for(var n=arguments.length,i=new Array(n>2?n-2:0),c=2;c0)for(d=u;d>=l;d--)f=this._cells[d-1],f?(w=this.getCell(d+h),w.value=f.value,w.style=f.style,w._comment=f._comment):this._cells[d+h-1]=void 0;for(d=0;d{l&&l.type!==o.ValueType.Null&&e(l,n+1)})}addPageBreak(t,e){const l=this._worksheet,n=Math.max(0,t-1)||0,i=Math.max(0,e-1)||16838,c={id:this._number,max:i,man:1};n&&(c.min=n),l.rowBreaks.push(c)}get values(){const t=[];return this._cells.forEach(e=>{e&&e.type!==o.ValueType.Null&&(t[e.col]=e.value)}),t}set values(t){if(this._cells=[],t)if(t instanceof Array){let e=0;t.hasOwnProperty("0")&&(e=1),t.forEach((l,n)=>{l!==void 0&&(this.getCellEx({address:a.encodeAddress(this._number,n+e),row:this._number,col:n+e}).value=l)})}else this._worksheet.eachColumnKey((e,l)=>{t[l]!==void 0&&(this.getCellEx({address:a.encodeAddress(this._number,e.number),row:this._number,col:e.number}).value=t[l])})}get hasValues(){return m.some(this._cells,t=>t&&t.type!==o.ValueType.Null)}get cellCount(){return this._cells.length}get actualCellCount(){let t=0;return this.eachCell(()=>{t++}),t}get dimensions(){let t=0,e=0;return this._cells.forEach(l=>{l&&l.type!==o.ValueType.Null&&((!t||t>l.col)&&(t=l.col),e0?{min:t,max:e}:null}_applyStyle(t,e){return this.style[t]=e,this._cells.forEach(l=>{l&&(l[t]=e)}),e}get numFmt(){return this.style.numFmt}set numFmt(t){this._applyStyle("numFmt",t)}get font(){return this.style.font}set font(t){this._applyStyle("font",t)}get alignment(){return this.style.alignment}set alignment(t){this._applyStyle("alignment",t)}get protection(){return this.style.protection}set protection(t){this._applyStyle("protection",t)}get border(){return this.style.border}set border(t){this._applyStyle("border",t)}get fill(){return this.style.fill}set fill(t){this._applyStyle("fill",t)}get hidden(){return!!this._hidden}set hidden(t){this._hidden=t}get outlineLevel(){return this._outlineLevel||0}set outlineLevel(t){this._outlineLevel=t}get collapsed(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelRow)}get model(){const t=[];let e=0,l=0;return this._cells.forEach(n=>{if(n){const i=n.model;i&&((!e||e>n.col)&&(e=n.col),l{switch(l.type){case r.Types.Merge:break;default:{let n;if(l.address)n=a.decodeAddress(l.address);else if(e){const{row:i}=e,c=e.col+1;n={row:i,col:c,address:a.encodeAddress(i,c),$col$row:`$${a.n2l(c)}$${i}`}}e=n,this.getCellEx(n).model=l;break}}}),t.height?this.height=t.height:delete this.height,this.hidden=t.hidden,this.outlineLevel=t.outlineLevel||0,this.style=t.style&&JSON.parse(JSON.stringify(t.style))||{}}}},{"../utils/col-cache":19,"../utils/under-dash":26,"./cell":3,"./enums":7}],12:[function(s,E,S){const m=s("../utils/col-cache");class o{constructor(r,t,e){this.table=r,this.column=t,this.index=e}_set(r,t){this.table.cacheState(),this.column[r]=t}get name(){return this.column.name}set name(r){this._set("name",r)}get filterButton(){return this.column.filterButton}set filterButton(r){this.column.filterButton=r}get style(){return this.column.style}set style(r){this.column.style=r}get totalsRowLabel(){return this.column.totalsRowLabel}set totalsRowLabel(r){this._set("totalsRowLabel",r)}get totalsRowFunction(){return this.column.totalsRowFunction}set totalsRowFunction(r){this._set("totalsRowFunction",r)}get totalsRowResult(){return this.column.totalsRowResult}set totalsRowResult(r){this._set("totalsRowResult",r)}get totalsRowFormula(){return this.column.totalsRowFormula}set totalsRowFormula(r){this._set("totalsRowFormula",r)}}E.exports=class{constructor(a,r){this.worksheet=a,r&&(this.table=r,this.validate(),this.store())}getFormula(a){switch(a.totalsRowFunction){case"none":return null;case"average":return`SUBTOTAL(101,${this.table.name}[${a.name}])`;case"countNums":return`SUBTOTAL(102,${this.table.name}[${a.name}])`;case"count":return`SUBTOTAL(103,${this.table.name}[${a.name}])`;case"max":return`SUBTOTAL(104,${this.table.name}[${a.name}])`;case"min":return`SUBTOTAL(105,${this.table.name}[${a.name}])`;case"stdDev":return`SUBTOTAL(106,${this.table.name}[${a.name}])`;case"var":return`SUBTOTAL(107,${this.table.name}[${a.name}])`;case"sum":return`SUBTOTAL(109,${this.table.name}[${a.name}])`;case"custom":return a.totalsRowFormula;default:throw new Error("Invalid Totals Row Function: "+a.totalsRowFunction)}}get width(){return this.table.columns.length}get height(){return this.table.rows.length}get filterHeight(){return this.height+(this.table.headerRow?1:0)}get tableHeight(){return this.filterHeight+(this.table.totalsRow?1:0)}validate(){const{table:a}=this,r=(h,u,d)=>{h[u]===void 0&&(h[u]=d)};r(a,"headerRow",!0),r(a,"totalsRow",!1),r(a,"style",{}),r(a.style,"theme","TableStyleMedium2"),r(a.style,"showFirstColumn",!1),r(a.style,"showLastColumn",!1),r(a.style,"showRowStripes",!1),r(a.style,"showColumnStripes",!1);const t=(h,u)=>{if(!h)throw new Error(u)};t(a.ref,"Table must have ref"),t(a.columns,"Table must have column definitions"),t(a.rows,"Table must have row definitions"),a.tl=m.decodeAddress(a.ref);const{row:e,col:l}=a.tl;t(e>0,"Table must be on valid row"),t(l>0,"Table must be on valid col");const{width:n,filterHeight:i,tableHeight:c}=this;a.autoFilterRef=m.encode(e,l,e+i-1,l+n-1),a.tableRef=m.encode(e,l,e+c-1,l+n-1),a.columns.forEach((h,u)=>{t(h.name,`Column ${u} must have a name`),u===0?r(h,"totalsRowLabel","Total"):(r(h,"totalsRowFunction","none"),h.totalsRowFormula=this.getFormula(h))})}store(){const a=(i,c)=>{c&&Object.keys(c).forEach(h=>{i[h]=c[h]})},{worksheet:r,table:t}=this,{row:e,col:l}=t.tl;let n=0;if(t.headerRow){const i=r.getRow(e+n++);t.columns.forEach((c,h)=>{const{style:u,name:d}=c,f=i.getCell(l+h);f.value=d,a(f,u)})}if(t.rows.forEach(i=>{const c=r.getRow(e+n++);i.forEach((h,u)=>{const d=c.getCell(l+u);d.value=h,a(d,t.columns[u].style)})}),t.totalsRow){const i=r.getRow(e+n++);t.columns.forEach((c,h)=>{const u=i.getCell(l+h);if(h===0)u.value=c.totalsRowLabel;else{const d=this.getFormula(c);u.value=d?{formula:c.totalsRowFormula,result:c.totalsRowResult}:null}a(u,c.style)})}}load(a){const{table:r}=this,{row:t,col:e}=r.tl;let l=0;if(r.headerRow){const n=a.getRow(t+l++);r.columns.forEach((i,c)=>{n.getCell(e+c).value=i.name})}if(r.rows.forEach(n=>{const i=a.getRow(t+l++);n.forEach((c,h)=>{i.getCell(e+h).value=c})}),r.totalsRow){const n=a.getRow(t+l++);r.columns.forEach((i,c)=>{const h=n.getCell(e+c);c===0?h.value=i.totalsRowLabel:this.getFormula(i)&&(h.value={formula:i.totalsRowFormula,result:i.totalsRowResult})})}}get model(){return this.table}set model(a){this.table=a}cacheState(){this._cache||(this._cache={ref:this.ref,width:this.width,tableHeight:this.tableHeight})}commit(){if(!this._cache)return;this.validate();const a=m.decodeAddress(this._cache.ref);if(this.ref!==this._cache.ref)for(let r=0;r1&&arguments[1]!==void 0?arguments[1]:1;this.cacheState(),this.table.rows.splice(a,r)}getColumn(a){const r=this.table.columns[a];return new o(this,r,a)}addColumn(a,r,t){this.cacheState(),t===void 0?(this.table.columns.push(a),this.table.rows.forEach((e,l)=>{e.push(r[l])})):(this.table.columns.splice(t,0,a),this.table.rows.forEach((e,l)=>{e.splice(t,0,r[l])}))}removeColumns(a){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.cacheState(),this.table.columns.splice(a,r),this.table.rows.forEach(t=>{t.splice(a,r)})}_assign(a,r,t){this.cacheState(),a[r]=t}get ref(){return this.table.ref}set ref(a){this._assign(this.table,"ref",a)}get name(){return this.table.name}set name(a){this.table.name=a}get displayName(){return this.table.displyName||this.table.name}set displayNamename(a){this.table.displayName=a}get headerRow(){return this.table.headerRow}set headerRow(a){this._assign(this.table,"headerRow",a)}get totalsRow(){return this.table.totalsRow}set totalsRow(a){this._assign(this.table,"totalsRow",a)}get theme(){return this.table.style.name}set theme(a){this.table.style.name=a}get showFirstColumn(){return this.table.style.showFirstColumn}set showFirstColumn(a){this.table.style.showFirstColumn=a}get showLastColumn(){return this.table.style.showLastColumn}set showLastColumn(a){this.table.style.showLastColumn=a}get showRowStripes(){return this.table.style.showRowStripes}set showRowStripes(a){this.table.style.showRowStripes=a}get showColumnStripes(){return this.table.style.showColumnStripes}set showColumnStripes(a){this.table.style.showColumnStripes=a}}},{"../utils/col-cache":19}],13:[function(s,E,S){const m=s("./worksheet"),o=s("./defined-names"),a=s("../xlsx/xlsx"),r=s("../csv/csv");E.exports=class{constructor(){this.category="",this.company="",this.created=new Date,this.description="",this.keywords="",this.manager="",this.modified=this.created,this.properties={},this.calcProperties={},this._worksheets=[],this.subject="",this.title="",this.views=[],this.media=[],this._definedNames=new o}get xlsx(){return this._xlsx||(this._xlsx=new a(this)),this._xlsx}get csv(){return this._csv||(this._csv=new r(this)),this._csv}get nextId(){for(let t=1;t(u&&u.orderNo)>h?u.orderNo:h,0),i=Object.assign({},e,{id:l,name:t,orderNo:n+1,workbook:this}),c=new m(i);return this._worksheets[l]=c,c}removeWorksheetEx(t){delete this._worksheets[t.id]}removeWorksheet(t){const e=this.getWorksheet(t);e&&e.destroy()}getWorksheet(t){return t===void 0?this._worksheets.find(Boolean):typeof t=="number"?this._worksheets[t]:typeof t=="string"?this._worksheets.find(e=>e&&e.name===t):void 0}get worksheets(){return this._worksheets.slice(1).sort((t,e)=>t.orderNo-e.orderNo).filter(Boolean)}eachSheet(t){this.worksheets.forEach(e=>{t(e,e.id)})}get definedNames(){return this._definedNames}clearThemes(){this._themes=void 0}addImage(t){const e=this.media.length;return this.media.push(Object.assign({},t,{type:"image"})),e}getImage(t){return this.media[t]}get model(){return{creator:this.creator||"Unknown",lastModifiedBy:this.lastModifiedBy||"Unknown",lastPrinted:this.lastPrinted,created:this.created,modified:this.modified,properties:this.properties,worksheets:this.worksheets.map(t=>t.model),sheets:this.worksheets.map(t=>t.model).filter(Boolean),definedNames:this._definedNames.model,views:this.views,company:this.company,manager:this.manager,title:this.title,subject:this.subject,keywords:this.keywords,category:this.category,description:this.description,language:this.language,revision:this.revision,contentStatus:this.contentStatus,themes:this._themes,media:this.media,calcProperties:this.calcProperties}}set model(t){this.creator=t.creator,this.lastModifiedBy=t.lastModifiedBy,this.lastPrinted=t.lastPrinted,this.created=t.created,this.modified=t.modified,this.company=t.company,this.manager=t.manager,this.title=t.title,this.subject=t.subject,this.keywords=t.keywords,this.category=t.category,this.description=t.description,this.language=t.language,this.revision=t.revision,this.contentStatus=t.contentStatus,this.properties=t.properties,this.calcProperties=t.calcProperties,this._worksheets=[],t.worksheets.forEach(e=>{const{id:l,name:n,state:i}=e,c=t.sheets&&t.sheets.findIndex(h=>h.id===l);(this._worksheets[l]=new m({id:l,name:n,orderNo:c,state:i,workbook:this})).model=e}),this._definedNames.model=t.definedNames,this.views=t.views,this._themes=t.themes,this.media=t.media||[]}}},{"../csv/csv":1,"../xlsx/xlsx":144,"./defined-names":6,"./worksheet":14}],14:[function(s,E,S){const m=s("../utils/under-dash"),o=s("../utils/col-cache"),a=s("./range"),r=s("./row"),t=s("./column"),e=s("./enums"),l=s("./image"),n=s("./table"),i=s("./data-validations"),c=s("../utils/encryptor"),{copyStyle:h}=s("../utils/copy-style");E.exports=class{constructor(u){u=u||{},this._workbook=u.workbook,this.id=u.id,this.orderNo=u.orderNo,this.name=u.name,this.state=u.state||"visible",this._rows=[],this._columns=null,this._keys={},this._merges={},this.rowBreaks=[],this.properties=Object.assign({},{defaultRowHeight:15,dyDescent:55,outlineLevelCol:0,outlineLevelRow:0},u.properties),this.pageSetup=Object.assign({},{margins:{left:.7,right:.7,top:.75,bottom:.75,header:.3,footer:.3},orientation:"portrait",horizontalDpi:4294967295,verticalDpi:4294967295,fitToPage:!(!u.pageSetup||!u.pageSetup.fitToWidth&&!u.pageSetup.fitToHeight||u.pageSetup.scale),pageOrder:"downThenOver",blackAndWhite:!1,draft:!1,cellComments:"None",errors:"displayed",scale:100,fitToWidth:1,fitToHeight:1,paperSize:void 0,showRowColHeaders:!1,showGridLines:!1,firstPageNumber:void 0,horizontalCentered:!1,verticalCentered:!1,rowBreaks:null,colBreaks:null},u.pageSetup),this.headerFooter=Object.assign({},{differentFirst:!1,differentOddEven:!1,oddHeader:null,oddFooter:null,evenHeader:null,evenFooter:null,firstHeader:null,firstFooter:null},u.headerFooter),this.dataValidations=new i,this.views=u.views||[],this.autoFilter=u.autoFilter||null,this._media=[],this.sheetProtection=null,this.tables={},this.conditionalFormattings=[]}get name(){return this._name}set name(u){if(u===void 0&&(u="sheet"+this.id),this._name!==u){if(typeof u!="string")throw new Error("The name has to be a string.");if(u==="")throw new Error("The name can't be empty.");if(u==="History")throw new Error('The name "History" is protected. Please use a different name.');if(/[*?:/\\[\]]/.test(u))throw new Error(`Worksheet name ${u} cannot include any of the following characters: * ? : \\ / [ ]`);if(/(^')|('$)/.test(u))throw new Error("The first or last character of worksheet name cannot be a single quotation mark: "+u);if(u&&u.length>31&&(console.warn(`Worksheet name ${u} exceeds 31 chars. This will be truncated`),u=u.substring(0,31)),this._workbook._worksheets.find(d=>d&&d.name.toLowerCase()===u.toLowerCase()))throw new Error("Worksheet name already exists: "+u);this._name=u}}get workbook(){return this._workbook}destroy(){this._workbook.removeWorksheetEx(this)}get dimensions(){const u=new a;return this._rows.forEach(d=>{if(d){const f=d.dimensions;f&&u.expand(d.number,f.min,d.number,f.max)}}),u}get columns(){return this._columns}set columns(u){this._headerRowCount=u.reduce((w,_)=>{const A=(_.header?1:_.headers&&_.headers.length)||0;return Math.max(w,A)},0);let d=1;const f=this._columns=[];u.forEach(w=>{const _=new t(this,d++,!1);f.push(_),_.defn=w})}getColumnKey(u){return this._keys[u]}setColumnKey(u,d){this._keys[u]=d}deleteColumnKey(u){delete this._keys[u]}eachColumnKey(u){m.each(this._keys,u)}getColumn(u){if(typeof u=="string"){const d=this._keys[u];if(d)return d;u=o.l2n(u)}if(this._columns||(this._columns=[]),u>this._columns.length){let d=this._columns.length+1;for(;d<=u;)this._columns.push(new t(this,d++))}return this._columns[u-1]}spliceColumns(u,d){const f=this._rows.length;for(var w=arguments.length,_=new Array(w>2?w-2:0),A=2;A0)for(let P=0;P{D.push(B[P]||null)});const $=this.getRow(P+1);$.splice.apply($,D)}else this._rows.forEach(P=>{P&&P.splice(u,d)});const N=_.length-d,L=u+d,j=this._columns.length;if(N<0)for(let P=u+_.length;P<=j;P++)this.getColumn(P).defn=this.getColumn(P-N).defn;else if(N>0)for(let P=j;P>=L;P--)this.getColumn(P+N).defn=this.getColumn(P).defn;for(let P=u;P{u=Math.max(u,d.cellCount)}),u}get actualColumnCount(){const u=[];let d=0;return this.eachRow(f=>{f.eachCell(w=>{let{col:_}=w;u[_]||(u[_]=!0,d++)})}),d}_commitRow(){}get _lastRowNumber(){const u=this._rows;let d=u.length;for(;d>0&&u[d-1]===void 0;)d--;return d}get _nextRow(){return this._lastRowNumber+1}get lastRow(){if(this._rows.length)return this._rows[this._rows.length-1]}findRow(u){return this._rows[u-1]}findRows(u,d){return this._rows.slice(u-1,u-1+d)}get rowCount(){return this._lastRowNumber}get actualRowCount(){let u=0;return this.eachRow(()=>{u++}),u}getRow(u){let d=this._rows[u-1];return d||(d=this._rows[u-1]=new r(this,u)),d}getRows(u,d){if(d<1)return;const f=[];for(let w=u;w1&&arguments[1]!==void 0?arguments[1]:"n";const f=this._nextRow,w=this.getRow(f);return w.values=u,this._setStyleOption(f,d[0]==="i"?d:"n"),w}addRows(u){let d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n";const f=[];return u.forEach(w=>{f.push(this.addRow(w,d))}),f}insertRow(u,d){let f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"n";return this.spliceRows(u,0,d),this._setStyleOption(u,f),this.getRow(u)}insertRows(u,d){let f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"n";if(this.spliceRows(u,0,...d),f!=="n")for(let w=0;w1&&arguments[1]!==void 0?arguments[1]:"n";d[0]==="o"&&this.findRow(u+1)!==void 0?this._copyStyle(u+1,u,d[1]==="+"):d[0]==="i"&&this.findRow(u-1)!==void 0&&this._copyStyle(u-1,u,d[1]==="+")}_copyStyle(u,d){let f=arguments.length>2&&arguments[2]!==void 0&&arguments[2];const w=this.getRow(u),_=this.getRow(d);_.style=h(w.style),w.eachCell({includeEmpty:f},(A,N)=>{_.getCell(N).style=h(A.style)}),_.height=w.height}duplicateRow(u,d){let f=arguments.length>2&&arguments[2]!==void 0&&arguments[2];const w=this._rows[u-1],_=new Array(d).fill(w.values);this.spliceRows(u+1,f?0:d,..._);for(let A=0;A{N.getCell(j).style=L.style})}}spliceRows(u,d){const f=u+d;for(var w=arguments.length,_=new Array(w>2?w-2:0),A=2;A{$.getCell(x).style=B.style}),this._rows[P-1]=void 0}else this._rows[P+L-1]=void 0;else if(L>0)for(P=j;P>=f;P--)if(D=this._rows[P-1],D){const $=this.getRow(P+L);$.values=D.values,$.style=D.style,$.height=D.height,D.eachCell({includeEmpty:!0},(B,x)=>{if($.getCell(x).style=B.style,B._value.constructor.name==="MergeValue"){const M=this.getRow(B._row._number+N).getCell(x),v=B._value._master,p=this.getRow(v._row._number+N).getCell(v._column._number);M.merge(p)}})}else this._rows[P+L-1]=void 0;for(P=0;P{f&&f.hasValues&&d(f,f.number)})}getSheetValues(){const u=[];return this._rows.forEach(d=>{d&&(u[d.number]=d.values)}),u}findCell(u,d){const f=o.getAddress(u,d),w=this._rows[f.row-1];return w?w.findCell(f.col):void 0}getCell(u,d){const f=o.getAddress(u,d);return this.getRow(f.row).getCellEx(f)}mergeCells(){for(var u=arguments.length,d=new Array(u),f=0;f{if(w.intersects(u))throw new Error("Cannot merge already merged cells")});const f=this.getCell(u.top,u.left);for(let w=u.top;w<=u.bottom;w++)for(let _=u.left;_<=u.right;_++)(w>u.top||_>u.left)&&this.getCell(w,_).merge(f,d);this._merges[f.address]=u}_unMergeMaster(u){const d=this._merges[u.address];if(d){for(let f=d.top;f<=d.bottom;f++)for(let w=d.left;w<=d.right;w++)this.getCell(f,w).unmerge();delete this._merges[u.address]}}get hasMerges(){return m.some(this._merges,Boolean)}unMergeCells(){for(var u=arguments.length,d=new Array(u),f=0;f3&&arguments[3]!==void 0?arguments[3]:"shared";const _=o.decode(u),{top:A,left:N,bottom:L,right:j}=_,P=j-N+1,D=o.encodeAddress(A,N),$=w==="shared";let B;B=typeof f=="function"?f:Array.isArray(f)?Array.isArray(f[0])?(M,v)=>f[M-A][v-N]:(M,v)=>f[(M-A)*P+(v-N)]:()=>{};let x=!0;for(let M=A;M<=L;M++)for(let v=N;v<=j;v++)x?(this.getCell(M,v).value={shareType:w,formula:d,ref:u,result:B(M,v)},x=!1):this.getCell(M,v).value=$?{sharedFormula:D,result:B(M,v)}:B(M,v)}addImage(u,d){const f={type:"image",imageId:u,range:d};this._media.push(new l(this,f))}getImages(){return this._media.filter(u=>u.type==="image")}addBackgroundImage(u){const d={type:"background",imageId:u};this._media.push(new l(this,d))}getBackgroundImageId(){const u=this._media.find(d=>d.type==="background");return u&&u.imageId}protect(u,d){return new Promise(f=>{this.sheetProtection={sheet:!0},d&&"spinCount"in d&&(d.spinCount=Number.isFinite(d.spinCount)?Math.round(Math.max(0,d.spinCount)):1e5),u&&(this.sheetProtection.algorithmName="SHA-512",this.sheetProtection.saltValue=c.randomBytes(16).toString("base64"),this.sheetProtection.spinCount=d&&"spinCount"in d?d.spinCount:1e5,this.sheetProtection.hashValue=c.convertPasswordToHash(u,"SHA512",this.sheetProtection.saltValue,this.sheetProtection.spinCount)),d&&(this.sheetProtection=Object.assign(this.sheetProtection,d),!u&&"spinCount"in d&&delete this.sheetProtection.spinCount),f()})}unprotect(){this.sheetProtection=null}addTable(u){const d=new n(this,u);return this.tables[u.name]=d,d}getTable(u){return this.tables[u]}removeTable(u){delete this.tables[u]}getTables(){return Object.values(this.tables)}addConditionalFormatting(u){this.conditionalFormattings.push(u)}removeConditionalFormatting(u){typeof u=="number"?this.conditionalFormattings.splice(u,1):this.conditionalFormattings=u instanceof Function?this.conditionalFormattings.filter(u):[]}get tabColor(){return console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor}set tabColor(u){console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor=u}get model(){const u={id:this.id,name:this.name,dataValidations:this.dataValidations.model,properties:this.properties,state:this.state,pageSetup:this.pageSetup,headerFooter:this.headerFooter,rowBreaks:this.rowBreaks,views:this.views,autoFilter:this.autoFilter,media:this._media.map(w=>w.model),sheetProtection:this.sheetProtection,tables:Object.values(this.tables).map(w=>w.model),conditionalFormattings:this.conditionalFormattings};u.cols=t.toModel(this.columns);const d=u.rows=[],f=u.dimensions=new a;return this._rows.forEach(w=>{const _=w&&w.model;_&&(f.expand(_.number,_.min,_.number,_.max),d.push(_))}),u.merges=[],m.each(this._merges,w=>{u.merges.push(w.range)}),u}_parseRows(u){this._rows=[],u.rows.forEach(d=>{const f=new r(this,d.number);this._rows[f.number-1]=f,f.model=d})}_parseMergeCells(u){m.each(u.mergeCells,d=>{this.mergeCellsWithoutStyle(d)})}set model(u){this.name=u.name,this._columns=t.fromModel(this,u.cols),this._parseRows(u),this._parseMergeCells(u),this.dataValidations=new i(u.dataValidations),this.properties=u.properties,this.pageSetup=u.pageSetup,this.headerFooter=u.headerFooter,this.views=u.views,this.autoFilter=u.autoFilter,this._media=u.media.map(d=>new l(this,d)),this.sheetProtection=u.sheetProtection,this.tables=u.tables.reduce((d,f)=>{const w=new n;return w.model=f,d[f.name]=w,d},{}),this.conditionalFormattings=u.conditionalFormattings}}},{"../utils/col-cache":19,"../utils/copy-style":20,"../utils/encryptor":21,"../utils/under-dash":26,"./column":4,"./data-validations":5,"./enums":7,"./image":8,"./range":10,"./row":11,"./table":12}],15:[function(s,E,S){s("core-js/modules/es.promise"),s("core-js/modules/es.promise.finally"),s("core-js/modules/es.object.assign"),s("core-js/modules/es.object.keys"),s("core-js/modules/es.object.values"),s("core-js/modules/es.symbol"),s("core-js/modules/es.symbol.async-iterator"),s("core-js/modules/es.array.iterator"),s("core-js/modules/es.array.includes"),s("core-js/modules/es.array.find-index"),s("core-js/modules/es.array.find"),s("core-js/modules/es.string.from-code-point"),s("core-js/modules/es.string.includes"),s("core-js/modules/es.number.is-nan"),s("regenerator-runtime/runtime");const m={Workbook:s("./doc/workbook")},o=s("./doc/enums");Object.keys(o).forEach(a=>{m[a]=o[a]}),E.exports=m},{"./doc/enums":7,"./doc/workbook":13,"core-js/modules/es.array.find":359,"core-js/modules/es.array.find-index":358,"core-js/modules/es.array.includes":360,"core-js/modules/es.array.iterator":361,"core-js/modules/es.number.is-nan":363,"core-js/modules/es.object.assign":364,"core-js/modules/es.object.keys":366,"core-js/modules/es.object.values":367,"core-js/modules/es.promise":372,"core-js/modules/es.promise.finally":371,"core-js/modules/es.string.from-code-point":376,"core-js/modules/es.string.includes":377,"core-js/modules/es.symbol":381,"core-js/modules/es.symbol.async-iterator":378,"regenerator-runtime/runtime":492}],16:[function(s,E,S){const m=typeof TextDecoder>"u"?null:new TextDecoder("utf-8");S.bufferToString=function(o){return typeof o=="string"?o:m?m.decode(o):o.toString()}},{}],17:[function(s,E,S){const m=typeof TextEncoder>"u"?null:new TextEncoder("utf-8"),{Buffer:o}=s("buffer");S.stringToBuffer=function(a){return typeof a!="string"?a:m?o.from(m.encode(a).buffer):o.from(a)}},{buffer:220}],18:[function(s,E,S){const m=s("./under-dash"),o=s("./col-cache");E.exports=class{constructor(a){this.template=a,this.sheets={}}addCell(a){this.addCellEx(o.decodeEx(a))}getCell(a){return this.findCellEx(o.decodeEx(a),!0)}findCell(a){return this.findCellEx(o.decodeEx(a),!1)}findCellAt(a,r,t){const e=this.sheets[a],l=e&&e[r];return l&&l[t]}addCellEx(a){if(a.top)for(let r=a.top;r<=a.bottom;r++)for(let t=a.left;t<=a.right;t++)this.getCellAt(a.sheetName,r,t);else this.findCellEx(a,!0)}getCellEx(a){return this.findCellEx(a,!0)}findCellEx(a,r){const t=this.findSheet(a,r),e=this.findSheetRow(t,a,r);return this.findRowCell(e,a,r)}getCellAt(a,r,t){const e=this.sheets[a]||(this.sheets[a]=[]),l=e[r]||(e[r]=[]);return l[t]||(l[t]={sheetName:a,address:o.n2l(t)+r,row:r,col:t})}removeCellEx(a){const r=this.findSheet(a);if(!r)return;const t=this.findSheetRow(r,a);t&&delete t[a.col]}forEachInSheet(a,r){const t=this.sheets[a];t&&t.forEach((e,l)=>{e&&e.forEach((n,i)=>{n&&r(n,l,i)})})}forEach(a){m.each(this.sheets,(r,t)=>{this.forEachInSheet(t,a)})}map(a){const r=[];return this.forEach(t=>{r.push(a(t))}),r}findSheet(a,r){const t=a.sheetName;return this.sheets[t]?this.sheets[t]:r?this.sheets[t]=[]:void 0}findSheetRow(a,r,t){const{row:e}=r;return a&&a[e]?a[e]:t?a[e]=[]:void 0}findRowCell(a,r,t){const{col:e}=r;return a&&a[e]?a[e]:t?a[e]=this.template?Object.assign(r,JSON.parse(JSON.stringify(this.template))):r:void 0}spliceRows(a,r,t,e){const l=this.sheets[a];if(l){const n=[];for(let i=0;i{i.splice(r,t,...n)})}}}},{"./col-cache":19,"./under-dash":26}],19:[function(s,E,S){const m=/^[A-Z]+\d+$/,o={_dictionary:["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],_l2nFill:0,_l2n:{},_n2l:[],_level:a=>a<=26?1:a<=676?2:3,_fill(a){let r,t,e,l,n,i=1;if(a>=4)throw new Error("Out of bounds. Excel supports columns from 1 to 16384");if(this._l2nFill<1&&a>=1){for(;i<=26;)r=this._dictionary[i-1],this._n2l[i]=r,this._l2n[r]=i,i++;this._l2nFill=1}if(this._l2nFill<2&&a>=2){for(i=27;i<=702;)t=i-27,e=t%26,l=Math.floor(t/26),r=this._dictionary[l]+this._dictionary[e],this._n2l[i]=r,this._l2n[r]=i,i++;this._l2nFill=2}if(this._l2nFill<3&&a>=3){for(i=703;i<=16384;)t=i-703,e=t%26,l=Math.floor(t/26)%26,n=Math.floor(t/676),r=this._dictionary[n]+this._dictionary[l]+this._dictionary[e],this._n2l[i]=r,this._l2n[r]=i,i++;this._l2nFill=3}},l2n(a){if(this._l2n[a]||this._fill(a.length),!this._l2n[a])throw new Error("Out of bounds. Invalid column letter: "+a);return this._l2n[a]},n2l(a){if(a<1||a>16384)throw new Error(a+" is out of bounds. Excel supports columns from 1 to 16384");return this._n2l[a]||this._fill(this._level(a)),this._n2l[a]},_hash:{},validateAddress(a){if(!m.test(a))throw new Error("Invalid Address: "+a);return!0},decodeAddress(a){const r=a.length<5&&this._hash[a];if(r)return r;let t=!1,e="",l=0,n=!1,i="",c=0;for(let u,d=0;d=65&&u<=90)t=!0,e+=a[d],l=26*l+u-64;else if(u>=48&&u<=57)n=!0,i+=a[d],c=10*c+u-48;else if(n&&t&&u!==36)break;if(t){if(l>16384)throw new Error("Out of bounds. Invalid column letter: "+e)}else l=void 0;n||(c=void 0);const h={address:a=e+i,col:l,row:c,$col$row:`$${e}$${i}`};return l<=100&&c<=100&&(this._hash[a]=h,this._hash[h.$col$row]=h),h},getAddress(a,r){if(r){const t=this.n2l(r)+a;return this.decodeAddress(t)}return this.decodeAddress(a)},decode(a){const r=a.split(":");if(r.length===2){const t=this.decodeAddress(r[0]),e=this.decodeAddress(r[1]),l={top:Math.min(t.row,e.row),left:Math.min(t.col,e.col),bottom:Math.max(t.row,e.row),right:Math.max(t.col,e.col)};return l.tl=this.n2l(l.left)+l.top,l.br=this.n2l(l.right)+l.bottom,l.dimensions=`${l.tl}:${l.br}`,l}return this.decodeAddress(a)},decodeEx(a){const r=a.match(/(?:(?:(?:'((?:[^']|'')*)')|([^'^ !]*))!)?(.*)/),t=r[1]||r[2],e=r[3],l=e.split(":");if(l.length>1){let i=this.decodeAddress(l[0]),c=this.decodeAddress(l[1]);const h=Math.min(i.row,c.row),u=Math.min(i.col,c.col),d=Math.max(i.row,c.row),f=Math.max(i.col,c.col);return i=this.n2l(u)+h,c=this.n2l(f)+d,{top:h,left:u,bottom:d,right:f,sheetName:t,tl:{address:i,col:u,row:h,$col$row:`$${this.n2l(u)}$${h}`,sheetName:t},br:{address:c,col:f,row:d,$col$row:`$${this.n2l(f)}$${d}`,sheetName:t},dimensions:`${i}:${c}`}}if(e.startsWith("#"))return t?{sheetName:t,error:e}:{error:e};const n=this.decodeAddress(e);return t?{sheetName:t,...n}:n},encodeAddress:(a,r)=>o.n2l(r)+a,encode(){switch(arguments.length){case 2:return o.encodeAddress(arguments[0],arguments[1]);case 4:return`${o.encodeAddress(arguments[0],arguments[1])}:${o.encodeAddress(arguments[2],arguments[3])}`;default:throw new Error("Can only encode with 2 or 4 arguments")}},inRange(a,r){const[t,e,,l,n]=a,[i,c]=r;return i>=t&&i<=l&&c>=e&&c<=n}};E.exports=o},{}],20:[function(s,E,S){const m=(a,r)=>({...a,...r.reduce((t,e)=>(a[e]&&(t[e]={...a[e]}),t),{})}),o=function(a,r,t){let e=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[];a[t]&&(r[t]=m(a[t],e))};S.copyStyle=a=>{if(!a)return a;if(r=a,Object.keys(r).length===0)return{};var r;const t={...a};return o(a,t,"font",["color"]),o(a,t,"alignment"),o(a,t,"protection"),a.border&&(o(a,t,"border"),o(a.border,t.border,"top",["color"]),o(a.border,t.border,"left",["color"]),o(a.border,t.border,"bottom",["color"]),o(a.border,t.border,"right",["color"]),o(a.border,t.border,"diagonal",["color"])),a.fill&&(o(a,t,"fill",["fgColor","bgColor","center"]),a.fill.stops&&(t.fill.stops=a.fill.stops.map(e=>m(e,["color"])))),t}},{}],21:[function(s,E,S){(function(m){(function(){const o=s("crypto"),a={hash(r){const t=o.createHash(r);for(var e=arguments.length,l=new Array(e>1?e-1:0),n=1;no.randomBytes(r)};E.exports=a}).call(this)}).call(this,s("buffer").Buffer)},{buffer:220,crypto:390}],22:[function(s,E,S){const{SaxesParser:m}=s("saxes"),{PassThrough:o}=s("readable-stream"),{bufferToString:a}=s("./browser-buffer-decode");E.exports=async function*(r){r.pipe&&!r[Symbol.asyncIterator]&&(r=r.pipe(new o));const t=new m;let e;t.on("error",n=>{e=n});let l=[];t.on("opentag",n=>l.push({eventType:"opentag",value:n})),t.on("text",n=>l.push({eventType:"text",value:n})),t.on("closetag",n=>l.push({eventType:"closetag",value:n}));for await(const n of r){if(t.write(a(n)),e)throw e;yield l,l=[]}}},{"./browser-buffer-decode":16,"readable-stream":491,saxes:496}],23:[function(s,E,S){const m=s("./col-cache"),o=/(([a-z_\-0-9]*)!)?([a-z0-9_$]{2,})([(])?/gi,a=/^([$])?([a-z]+)([$])?([1-9][0-9]*)$/i;E.exports={slideFormula:function(r,t,e){const l=m.decode(t),n=m.decode(e);return r.replace(o,(i,c,h,u,d)=>{if(d)return i;const f=a.exec(u);if(f){const w=f[1],_=f[2].toUpperCase(),A=f[3],N=f[4];if(_.length>3||_.length===3&&_>"XFD")return i;let L=m.l2n(_),j=parseInt(N,10);return w||(L+=n.col-l.col),A||(j+=n.row-l.row),(c||"")+(w||"")+m.n2l(L)+(A||"")+j}return i})}}},{"./col-cache":19}],24:[function(s,E,S){(function(m,o){(function(){const a=s("readable-stream"),r=s("./utils"),t=s("./string-buf");class e{constructor(u,d){this._data=u,this._encoding=d}get length(){return this.toBuffer().length}copy(u,d,f,w){return this.toBuffer().copy(u,d,f,w)}toBuffer(){return this._buffer||(this._buffer=o.from(this._data,this._encoding)),this._buffer}}class l{constructor(u){this._data=u}get length(){return this._data.length}copy(u,d,f,w){return this._data._buf.copy(u,d,f,w)}toBuffer(){return this._data.toBuffer()}}class n{constructor(u){this._data=u}get length(){return this._data.length}copy(u,d,f,w){this._data.copy(u,d,f,w)}toBuffer(){return this._data}}class i{constructor(u){this.size=u,this.buffer=o.alloc(u),this.iRead=0,this.iWrite=0}toBuffer(){if(this.iRead===0&&this.iWrite===this.size)return this.buffer;const u=o.alloc(this.iWrite-this.iRead);return this.buffer.copy(u,0,this.iRead,this.iWrite),u}get length(){return this.iWrite-this.iRead}get eod(){return this.iRead===this.iWrite}get full(){return this.iWrite===this.size}read(u){let d;return u===0?null:u===void 0||u>=this.length?(d=this.toBuffer(),this.iRead=this.iWrite,d):(d=o.alloc(u),this.buffer.copy(d,0,this.iRead,u),this.iRead+=u,d)}write(u,d,f){const w=Math.min(f,this.size-this.iWrite);return u.copy(this.buffer,this.iWrite,d,d+w),this.iWrite+=w,w}}const c=function(h){h=h||{},this.bufSize=h.bufSize||1048576,this.buffers=[],this.batch=h.batch||!1,this.corked=!1,this.inPos=0,this.outPos=0,this.pipes=[],this.paused=!1,this.encoding=null};r.inherits(c,a.Duplex,{toBuffer(){switch(this.buffers.length){case 0:return null;case 1:return this.buffers[0].toBuffer();default:return o.concat(this.buffers.map(h=>h.toBuffer()))}},_getWritableBuffer(){if(this.buffers.length){const u=this.buffers[this.buffers.length-1];if(!u.full)return u}const h=new i(this.bufSize);return this.buffers.push(h),h},async _pipe(h){await Promise.all(this.pipes.map(function(u){return new Promise(d=>{u.write(h.toBuffer(),()=>{d()})})}))},_writeToBuffers(h){let u=0;const d=h.length;for(;u1;)this._pipe(this.buffers.shift());else this.corked?(this._writeToBuffers(f),m.nextTick(d)):(await this._pipe(f),d());else this.paused||this.emit("data",f.toBuffer()),this._writeToBuffers(f),this.emit("readable");return!0},cork(){this.corked=!0},_flush(){if(this.pipes.length)for(;this.buffers.length;)this._pipe(this.buffers.shift())},uncork(){this.corked=!1,this._flush()},end(h,u,d){const f=w=>{w?d(w):(this._flush(),this.pipes.forEach(_=>{_.end()}),this.emit("finish"))};h?this.write(h,u,f):f()},read(h){let u;if(h){for(u=[];h&&this.buffers.length&&!this.buffers[0].eod;){const d=this.buffers[0],f=d.read(h);h-=f.length,u.push(f),d.eod&&d.full&&this.buffers.shift()}return o.concat(u)}return u=this.buffers.map(d=>d.toBuffer()).filter(Boolean),this.buffers=[],o.concat(u)},setEncoding(h){this.encoding=h},pause(){this.paused=!0},resume(){this.paused=!1},isPaused(){return!!this.paused},pipe(h){this.pipes.push(h),!this.paused&&this.buffers.length&&this.end()},unpipe(h){this.pipes=this.pipes.filter(u=>u!==h)},unshift(){throw new Error("Not Implemented")},wrap(){throw new Error("Not Implemented")}}),E.exports=c}).call(this)}).call(this,s("_process"),s("buffer").Buffer)},{"./string-buf":25,"./utils":27,_process:467,buffer:220,"readable-stream":491}],25:[function(s,E,S){(function(m){(function(){E.exports=class{constructor(o){this._buf=m.alloc(o&&o.size||16384),this._encoding=o&&o.encoding||"utf8",this._inPos=0,this._buffer=void 0}get length(){return this._inPos}get capacity(){return this._buf.length}get buffer(){return this._buf}toBuffer(){return this._buffer||(this._buffer=m.alloc(this.length),this._buf.copy(this._buffer,0,0,this.length)),this._buffer}reset(o){o=o||0,this._buffer=void 0,this._inPos=o}_grow(o){let a=2*this._buf.length;for(;a=this._buf.length-4;)this._grow(this._inPos+o.length),a=this._inPos+this._buf.write(o,this._inPos,this._encoding);this._inPos=a}addStringBuf(o){o.length&&(this._buffer=void 0,this.length+o.length>this.capacity&&this._grow(this.length+o.length),o._buf.copy(this._buf,this._inPos,0,o.length),this._inPos+=o.length)}}}).call(this)}).call(this,s("buffer").Buffer)},{buffer:220}],26:[function(s,E,S){const{toString:m}=Object.prototype,o=/["&<>]/,a={each:function(r,t){r&&(Array.isArray(r)?r.forEach(t):Object.keys(r).forEach(e=>{t(r[e],e)}))},some:function(r,t){return!!r&&(Array.isArray(r)?r.some(t):Object.keys(r).some(e=>t(r[e],e)))},every:function(r,t){return!r||(Array.isArray(r)?r.every(t):Object.keys(r).every(e=>t(r[e],e)))},map:function(r,t){return r?Array.isArray(r)?r.map(t):Object.keys(r).map(e=>t(r[e],e)):[]},keyBy:(r,t)=>r.reduce((e,l)=>(e[l[t]]=l,e),{}),isEqual:function(r,t){const e=typeof r,l=typeof t,n=Array.isArray(r),i=Array.isArray(t);let c;if(e!==l)return!1;switch(typeof r){case"object":if(n||i)return!(!n||!i)&&r.length===t.length&&r.every((h,u)=>{const d=t[u];return a.isEqual(h,d)});if(r===null||t===null)return r===t;if(c=Object.keys(r),Object.keys(t).length!==c.length)return!1;for(const h of c)if(!t.hasOwnProperty(h))return!1;return a.every(r,(h,u)=>{const d=t[u];return a.isEqual(h,d)});default:return r===t}},escapeHtml(r){const t=o.exec(r);if(!t)return r;let e="",l="",n=0,i=t.index;for(;i":l=">";break;default:continue}n!==i&&(e+=r.substring(n,i)),n=i+1,e+=l}return n!==i?e+r.substring(n,i):e},strcmp:(r,t)=>rt?1:0,isUndefined:r=>m.call(r)==="[object Undefined]",isObject:r=>m.call(r)==="[object Object]",deepMerge(){const r=arguments[0]||{},{length:t}=arguments;let e,l,n;function i(c,h){e=r[h],n=Array.isArray(c),a.isObject(c)||n?(n?(n=!1,l=e&&Array.isArray(e)?e:[]):l=e&&a.isObject(e)?e:{},r[h]=a.deepMerge(l,c)):a.isUndefined(c)||(r[h]=c)}for(let c=0;c&'"\x7F\x00-\x08\x0B-\x0C\x0E-\x1F]/,t={nop(){},promiseImmediate:e=>new Promise(l=>{m.setImmediate?o(()=>{l(e)}):setTimeout(()=>{l(e)},1)}),inherits:function(e,l,n,i){e.super_=l,i||(i=n,n=null),n&&Object.keys(n).forEach(h=>{Object.defineProperty(e,h,Object.getOwnPropertyDescriptor(n,h))});const c={constructor:{value:e,enumerable:!1,writable:!1,configurable:!0}};i&&Object.keys(i).forEach(h=>{c[h]=Object.getOwnPropertyDescriptor(i,h)}),e.prototype=Object.create(l.prototype,c)},dateToExcel:(e,l)=>25569+e.getTime()/864e5-(l?1462:0),excelToDate(e,l){const n=Math.round(24*(e-25569+(l?1462:0))*3600*1e3);return new Date(n)},parsePath(e){const l=e.lastIndexOf("/");return{path:e.substring(0,l),name:e.substring(l+1)}},getRelsPath(e){const l=t.parsePath(e);return`${l.path}/_rels/${l.name}.rels`},xmlEncode(e){const l=r.exec(e);if(!l)return e;let n="",i="",c=0,h=l.index;for(;h=11&&u!==13)){i="";break}continue}c!==h&&(n+=e.substring(c,h)),c=h+1,i&&(n+=i)}return c!==h?n+e.substring(c,h):n},xmlDecode:e=>e.replace(/&([a-z]*);/g,l=>{switch(l){case"<":return"<";case">":return">";case"&":return"&";case"'":return"'";case""":return'"';default:return l}}),validInt(e){const l=parseInt(e,10);return Number.isNaN(l)?0:l},isDateFmt(e){return e?(e=(e=e.replace(/\[[^\]]*]/g,"")).replace(/"[^"]*"/g,"")).match(/[ymdhMsb]+/)!==null:!1},fs:{exists:e=>new Promise(l=>{a.access(e,a.constants.F_OK,n=>{l(!n)})})},toIsoDateString:e=>e.toIsoString().subsstr(0,10),parseBoolean:e=>e===!0||e==="true"||e===1||e==="1"};E.exports=t}).call(this)}).call(this,typeof Kt<"u"?Kt:typeof self<"u"?self:typeof window<"u"?window:{},s("timers").setImmediate)},{fs:216,timers:523}],28:[function(s,E,S){const m=s("./under-dash"),o=s("./utils");function a(e,l,n){e.push(` ${l}="${o.xmlEncode(n.toString())}"`)}function r(e,l){if(l){const n=[];m.each(l,(i,c)=>{i!==void 0&&a(n,c,i)}),e.push(n.join(""))}}class t{constructor(){this._xml=[],this._stack=[],this._rollbacks=[]}get tos(){return this._stack.length?this._stack[this._stack.length-1]:void 0}get cursor(){return this._xml.length}openXml(l){const n=this._xml;n.push(" -`)}openNode(l,n){const i=this.tos,c=this._xml;i&&this.open&&c.push(">"),this._stack.push(l),c.push("<"),c.push(l),r(c,n),this.leaf=!0,this.open=!0}addAttribute(l,n){if(!this.open)throw new Error("Cannot write attributes to node if it is not open");n!==void 0&&a(this._xml,l,n)}addAttributes(l){if(!this.open)throw new Error("Cannot write attributes to node if it is not open");r(this._xml,l)}writeText(l){const n=this._xml;this.open&&(n.push(">"),this.open=!1),this.leaf=!1,n.push(o.xmlEncode(l.toString()))}writeXml(l){this.open&&(this._xml.push(">"),this.open=!1),this.leaf=!1,this._xml.push(l)}closeNode(){const l=this._stack.pop(),n=this._xml;this.leaf?n.push("/>"):(n.push("")),this.open=!1,this.leaf=!1}leafNode(l,n,i){this.openNode(l,n),i!==void 0&&this.writeText(i),this.closeNode()}closeAll(){for(;this._stack.length;)this.closeNode()}addRollback(){return this._rollbacks.push({xml:this._xml.length,stack:this._stack.length,leaf:this.leaf,open:this.open}),this.cursor}commit(){this._rollbacks.pop()}rollback(){const l=this._rollbacks.pop();this._xml.length>l.xml&&this._xml.splice(l.xml,this._xml.length-l.xml),this._stack.length>l.stack&&this._stack.splice(l.stack,this._stack.length-l.stack),this.leaf=l.leaf,this.open=l.open}get xml(){return this.closeAll(),this._xml.join("")}}t.StdDocAttributes={version:"1.0",encoding:"UTF-8",standalone:"yes"},E.exports=t},{"./under-dash":26,"./utils":27}],29:[function(s,E,S){(function(m){(function(){const o=s("events"),a=s("jszip"),r=s("./stream-buf"),{stringToBuffer:t}=s("./browser-buffer-encode");class e extends o.EventEmitter{constructor(n){super(),this.options=Object.assign({type:"nodebuffer",compression:"DEFLATE"},n),this.zip=new a,this.stream=new r}append(n,i){i.hasOwnProperty("base64")&&i.base64?this.zip.file(i.name,n,{base64:!0}):(m.browser&&typeof n=="string"&&(n=t(n)),this.zip.file(i.name,n))}async finalize(){const n=await this.zip.generateAsync(this.options);this.stream.end(n),this.emit("finish")}read(n){return this.stream.read(n)}setEncoding(n){return this.stream.setEncoding(n)}pause(){return this.stream.pause()}resume(){return this.stream.resume()}isPaused(){return this.stream.isPaused()}pipe(n,i){return this.stream.pipe(n,i)}unpipe(n){return this.stream.unpipe(n)}unshift(n){return this.stream.unshift(n)}wrap(n){return this.stream.wrap(n)}}E.exports={ZipWriter:e}}).call(this)}).call(this,s("_process"))},{"./browser-buffer-encode":17,"./stream-buf":24,_process:467,events:422,jszip:441}],30:[function(s,E,S){E.exports={0:{f:"General"},1:{f:"0"},2:{f:"0.00"},3:{f:"#,##0"},4:{f:"#,##0.00"},9:{f:"0%"},10:{f:"0.00%"},11:{f:"0.00E+00"},12:{f:"# ?/?"},13:{f:"# ??/??"},14:{f:"mm-dd-yy"},15:{f:"d-mmm-yy"},16:{f:"d-mmm"},17:{f:"mmm-yy"},18:{f:"h:mm AM/PM"},19:{f:"h:mm:ss AM/PM"},20:{f:"h:mm"},21:{f:"h:mm:ss"},22:{f:'m/d/yy "h":mm'},27:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},28:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},29:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},30:{"zh-tw":"m/d/yy ","zh-cn":"m-d-yy","ja-jp":"m/d/yy","ko-kr":"mm-dd-yy"},31:{"zh-tw":'yyyy"年"m"月"d"日"',"zh-cn":'yyyy"年"m"月"d"日"',"ja-jp":'yyyy"年"m"月"d"日"',"ko-kr":'yyyy"년" mm"월" dd"일"'},32:{"zh-tw":'hh"時"mm"分"',"zh-cn":'h"时"mm"分"',"ja-jp":'h"時"mm"分"',"ko-kr":'h"시" mm"분"'},33:{"zh-tw":'hh"時"mm"分"ss"秒"',"zh-cn":'h"时"mm"分"ss"秒"',"ja-jp":'h"時"mm"分"ss"秒"',"ko-kr":'h"시" mm"분" ss"초"'},34:{"zh-tw":'上午/下午 hh"時"mm"分"',"zh-cn":'上午/下午 h"时"mm"分"',"ja-jp":'yyyy"年"m"月"',"ko-kr":"yyyy-mm-dd"},35:{"zh-tw":'上午/下午 hh"時"mm"分"ss"秒"',"zh-cn":'上午/下午 h"时"mm"分"ss"秒"',"ja-jp":'m"月"d"日"',"ko-kr":"yyyy-mm-dd"},36:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},37:{f:"#,##0 ;(#,##0)"},38:{f:"#,##0 ;[Red](#,##0)"},39:{f:"#,##0.00 ;(#,##0.00)"},40:{f:"#,##0.00 ;[Red](#,##0.00)"},45:{f:"mm:ss"},46:{f:"[h]:mm:ss"},47:{f:"mmss.0"},48:{f:"##0.0E+0"},49:{f:"@"},50:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},51:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},52:{"zh-tw":'上午/下午 hh"時"mm"分"',"zh-cn":'yyyy"年"m"月"',"ja-jp":'yyyy"年"m"月"',"ko-kr":"yyyy-mm-dd"},53:{"zh-tw":'上午/下午 hh"時"mm"分"ss"秒"',"zh-cn":'m"月"d"日"',"ja-jp":'m"月"d"日"',"ko-kr":"yyyy-mm-dd"},54:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},55:{"zh-tw":'上午/下午 hh"時"mm"分"',"zh-cn":'上午/下午 h"时"mm"分"',"ja-jp":'yyyy"年"m"月"',"ko-kr":"yyyy-mm-dd"},56:{"zh-tw":'上午/下午 hh"時"mm"分"ss"秒"',"zh-cn":'上午/下午 h"时"mm"分"ss"秒"',"ja-jp":'m"月"d"日"',"ko-kr":"yyyy-mm-dd"},57:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},58:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},59:{"th-th":"t0"},60:{"th-th":"t0.00"},61:{"th-th":"t#,##0"},62:{"th-th":"t#,##0.00"},67:{"th-th":"t0%"},68:{"th-th":"t0.00%"},69:{"th-th":"t# ?/?"},70:{"th-th":"t# ??/??"},81:{"th-th":"d/m/bb"}}},{}],31:[function(s,E,S){E.exports={OfficeDocument:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",Worksheet:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet",CalcChain:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/calcChain",SharedStrings:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",Styles:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",Theme:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",Hyperlink:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",Image:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",CoreProperties:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",ExtenderProperties:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",Comments:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",VmlDrawing:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",Table:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/table"}},{}],32:[function(s,E,S){const m=s("../../utils/parse-sax"),o=s("../../utils/xml-stream");class a{prepare(){}render(){}parseOpen(t){}parseText(t){}parseClose(t){}reconcile(t,e){}reset(){this.model=null,this.map&&Object.values(this.map).forEach(t=>{t instanceof a?t.reset():t.xform&&t.xform.reset()})}mergeModel(t){this.model=Object.assign(this.model||{},t)}async parse(t){for await(const e of t)for(const{eventType:l,value:n}of e)if(l==="opentag")this.parseOpen(n);else if(l==="text")this.parseText(n);else if(l==="closetag"&&!this.parseClose(n.name))return this.model;return this.model}async parseStream(t){return this.parse(m(t))}get xml(){return this.toXml(this.model)}toXml(t){const e=new o;return this.render(e,t),e.xml}static toAttribute(t,e){let l=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(t===void 0){if(l)return e}else if(l||t!==e)return t.toString()}static toStringAttribute(t,e){let l=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return a.toAttribute(t,e,l)}static toStringValue(t,e){return t===void 0?e:t}static toBoolAttribute(t,e){let l=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(t===void 0){if(l)return e}else if(l||t!==e)return t?"1":"0"}static toBoolValue(t,e){return t===void 0?e:t==="1"}static toIntAttribute(t,e){let l=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return a.toAttribute(t,e,l)}static toIntValue(t,e){return t===void 0?e:parseInt(t,10)}static toFloatAttribute(t,e){let l=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return a.toAttribute(t,e,l)}static toFloatValue(t,e){return t===void 0?e:parseFloat(t)}}E.exports=a},{"../../utils/parse-sax":22,"../../utils/xml-stream":28}],33:[function(s,E,S){const m=s("../base-xform"),o=s("../../../utils/col-cache");function a(t){try{return o.decodeEx(t),!0}catch{return!1}}function r(t){const e=[];let l=!1,n="";return t.split(",").forEach(i=>{if(!i)return;const c=(i.match(/'/g)||[]).length;if(!c)return void(l?n+=i+",":a(i)&&e.push(i));const h=c%2==0;!l&&h&&a(i)?e.push(i):l&&!h?(l=!1,a(n+i)&&e.push(n+i),n=""):(l=!0,n+=i+",")}),e}E.exports=class extends m{render(t,e){t.openNode("definedName",{name:e.name,localSheetId:e.localSheetId}),t.writeText(e.ranges.join(",")),t.closeNode()}parseOpen(t){switch(t.name){case"definedName":return this._parsedName=t.attributes.name,this._parsedLocalSheetId=t.attributes.localSheetId,this._parsedText=[],!0;default:return!1}}parseText(t){this._parsedText.push(t)}parseClose(){return this.model={name:this._parsedName,ranges:r(this._parsedText.join(""))},this._parsedLocalSheetId!==void 0&&(this.model.localSheetId=parseInt(this._parsedLocalSheetId,10)),!1}}},{"../../../utils/col-cache":19,"../base-xform":32}],34:[function(s,E,S){const m=s("../../../utils/utils"),o=s("../base-xform");E.exports=class extends o{render(a,r){a.leafNode("sheet",{sheetId:r.id,name:r.name,state:r.state,"r:id":r.rId})}parseOpen(a){return a.name==="sheet"&&(this.model={name:m.xmlDecode(a.attributes.name),id:parseInt(a.attributes.sheetId,10),state:a.attributes.state,rId:a.attributes["r:id"]},!0)}parseText(){}parseClose(){return!1}}},{"../../../utils/utils":27,"../base-xform":32}],35:[function(s,E,S){const m=s("../base-xform");E.exports=class extends m{render(o,a){o.leafNode("calcPr",{calcId:171027,fullCalcOnLoad:a.fullCalcOnLoad?1:void 0})}parseOpen(o){return o.name==="calcPr"&&(this.model={},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],36:[function(s,E,S){const m=s("../base-xform");E.exports=class extends m{render(o,a){o.leafNode("workbookPr",{date1904:a.date1904?1:void 0,defaultThemeVersion:164011,filterPrivacy:1})}parseOpen(o){return o.name==="workbookPr"&&(this.model={date1904:o.attributes.date1904==="1"},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],37:[function(s,E,S){const m=s("../base-xform");E.exports=class extends m{render(o,a){const r={xWindow:a.x||0,yWindow:a.y||0,windowWidth:a.width||12e3,windowHeight:a.height||24e3,firstSheet:a.firstSheet,activeTab:a.activeTab};a.visibility&&a.visibility!=="visible"&&(r.visibility=a.visibility),o.leafNode("workbookView",r)}parseOpen(o){if(o.name==="workbookView"){const a=this.model={},r=function(e,l,n){const i=l!==void 0?a[e]=l:n;i!==void 0&&(a[e]=i)},t=function(e,l,n){const i=l!==void 0?a[e]=parseInt(l,10):n;i!==void 0&&(a[e]=i)};return t("x",o.attributes.xWindow,0),t("y",o.attributes.yWindow,0),t("width",o.attributes.windowWidth,25e3),t("height",o.attributes.windowHeight,1e4),r("visibility",o.attributes.visibility,"visible"),t("activeTab",o.attributes.activeTab,void 0),t("firstSheet",o.attributes.firstSheet,void 0),!0}return!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],38:[function(s,E,S){const m=s("../../../utils/under-dash"),o=s("../../../utils/col-cache"),a=s("../../../utils/xml-stream"),r=s("../base-xform"),t=s("../static-xform"),e=s("../list-xform"),l=s("./defined-name-xform"),n=s("./sheet-xform"),i=s("./workbook-view-xform"),c=s("./workbook-properties-xform"),h=s("./workbook-calc-properties-xform");class u extends r{constructor(){super(),this.map={fileVersion:u.STATIC_XFORMS.fileVersion,workbookPr:new c,bookViews:new e({tag:"bookViews",count:!1,childXform:new i}),sheets:new e({tag:"sheets",count:!1,childXform:new n}),definedNames:new e({tag:"definedNames",count:!1,childXform:new l}),calcPr:new h}}prepare(f){f.sheets=f.worksheets;const w=[];let _=0;f.sheets.forEach(A=>{if(A.pageSetup&&A.pageSetup.printArea&&A.pageSetup.printArea.split("&&").forEach(N=>{const L=N.split(":"),j={name:"_xlnm.Print_Area",ranges:[`'${A.name}'!$${L[0]}:$${L[1]}`],localSheetId:_};w.push(j)}),A.pageSetup&&(A.pageSetup.printTitlesRow||A.pageSetup.printTitlesColumn)){const N=[];if(A.pageSetup.printTitlesColumn){const j=A.pageSetup.printTitlesColumn.split(":");N.push(`'${A.name}'!$${j[0]}:$${j[1]}`)}if(A.pageSetup.printTitlesRow){const j=A.pageSetup.printTitlesRow.split(":");N.push(`'${A.name}'!$${j[0]}:$${j[1]}`)}const L={name:"_xlnm.Print_Titles",ranges:N,localSheetId:_};w.push(L)}_++}),w.length&&(f.definedNames=f.definedNames.concat(w)),(f.media||[]).forEach((A,N)=>{A.name=A.type+(N+1)})}render(f,w){f.openXml(a.StdDocAttributes),f.openNode("workbook",u.WORKBOOK_ATTRIBUTES),this.map.fileVersion.render(f),this.map.workbookPr.render(f,w.properties),this.map.bookViews.render(f,w.views),this.map.sheets.render(f,w.sheets),this.map.definedNames.render(f,w.definedNames),this.map.calcPr.render(f,w.calcProperties),f.closeNode()}parseOpen(f){if(this.parser)return this.parser.parseOpen(f),!0;switch(f.name){case"workbook":return!0;default:return this.parser=this.map[f.name],this.parser&&this.parser.parseOpen(f),!0}}parseText(f){this.parser&&this.parser.parseText(f)}parseClose(f){if(this.parser)return this.parser.parseClose(f)||(this.parser=void 0),!0;switch(f){case"workbook":return this.model={sheets:this.map.sheets.model,properties:this.map.workbookPr.model||{},views:this.map.bookViews.model,calcProperties:{}},this.map.definedNames.model&&(this.model.definedNames=this.map.definedNames.model),!1;default:return!0}}reconcile(f){const w=(f.workbookRels||[]).reduce((j,P)=>(j[P.Id]=P,j),{}),_=[];let A,N=0;(f.sheets||[]).forEach(j=>{const P=w[j.rId];P&&(A=f.worksheetHash["xl/"+P.Target.replace(/^(\s|\/xl\/)+/,"")],A&&(A.name=j.name,A.id=j.id,A.state=j.state,_[N++]=A))});const L=[];m.each(f.definedNames,j=>{if(j.name==="_xlnm.Print_Area"){if(A=_[j.localSheetId],A){A.pageSetup||(A.pageSetup={});const P=o.decodeEx(j.ranges[0]);A.pageSetup.printArea=A.pageSetup.printArea?`${A.pageSetup.printArea}&&${P.dimensions}`:P.dimensions}}else if(j.name==="_xlnm.Print_Titles"){if(A=_[j.localSheetId],A){A.pageSetup||(A.pageSetup={});const P=j.ranges.join(","),D=/\$/g,$=/\$\d+:\$\d+/,B=P.match($);if(B&&B.length){const v=B[0];A.pageSetup.printTitlesRow=v.replace(D,"")}const x=/\$[A-Z]+:\$[A-Z]+/,M=P.match(x);if(M&&M.length){const v=M[0];A.pageSetup.printTitlesColumn=v.replace(D,"")}}}else L.push(j)}),f.definedNames=L,f.media.forEach((j,P)=>{j.index=P})}}u.WORKBOOK_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x15","xmlns:x15":"http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"},u.STATIC_XFORMS={fileVersion:new t({tag:"fileVersion",$:{appName:"xl",lastEdited:5,lowestEdited:5,rupBuild:9303}})},E.exports=u},{"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"../static-xform":120,"./defined-name-xform":33,"./sheet-xform":34,"./workbook-calc-properties-xform":35,"./workbook-properties-xform":36,"./workbook-view-xform":37}],39:[function(s,E,S){const m=s("../strings/rich-text-xform"),o=s("../../../utils/utils"),a=s("../base-xform"),r=E.exports=function(t){this.model=t};o.inherits(r,a,{get tag(){return"r"},get richTextXform(){return this._richTextXform||(this._richTextXform=new m),this._richTextXform},render(t,e){e=e||this.model,t.openNode("comment",{ref:e.ref,authorId:0}),t.openNode("text"),e&&e.note&&e.note.texts&&e.note.texts.forEach(l=>{this.richTextXform.render(t,l)}),t.closeNode(),t.closeNode()},parseOpen(t){if(this.parser)return this.parser.parseOpen(t),!0;switch(t.name){case"comment":return this.model={type:"note",note:{texts:[]},...t.attributes},!0;case"r":return this.parser=this.richTextXform,this.parser.parseOpen(t),!0;default:return!1}},parseText(t){this.parser&&this.parser.parseText(t)},parseClose(t){switch(t){case"comment":return!1;case"r":return this.model.note.texts.push(this.parser.model),this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(t),!0}}})},{"../../../utils/utils":27,"../base-xform":32,"../strings/rich-text-xform":122}],40:[function(s,E,S){const m=s("../../../utils/xml-stream"),o=s("../../../utils/utils"),a=s("../base-xform"),r=s("./comment-xform"),t=E.exports=function(){this.map={comment:new r}};o.inherits(t,a,{COMMENTS_ATTRIBUTES:{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main"}},{render(e,l){l=l||this.model,e.openXml(m.StdDocAttributes),e.openNode("comments",t.COMMENTS_ATTRIBUTES),e.openNode("authors"),e.leafNode("author",null,"Author"),e.closeNode(),e.openNode("commentList"),l.comments.forEach(n=>{this.map.comment.render(e,n)}),e.closeNode(),e.closeNode()},parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"commentList":return this.model={comments:[]},!0;case"comment":return this.parser=this.map.comment,this.parser.parseOpen(e),!0;default:return!1}},parseText(e){this.parser&&this.parser.parseText(e)},parseClose(e){switch(e){case"commentList":return!1;case"comment":return this.model.comments.push(this.parser.model),this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(e),!0}}})},{"../../../utils/utils":27,"../../../utils/xml-stream":28,"../base-xform":32,"./comment-xform":39}],41:[function(s,E,S){const m=s("../../base-xform");E.exports=class extends m{constructor(o){super(),this._model=o}get tag(){return this._model&&this._model.tag}render(o,a,r){(a===r[2]||this.tag==="x:SizeWithCells"&&a===r[1])&&o.leafNode(this.tag)}parseOpen(o){switch(o.name){case this.tag:return this.model={},this.model[this.tag]=!0,!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../../base-xform":32}],42:[function(s,E,S){const m=s("../../base-xform");E.exports=class extends m{constructor(o){super(),this._model=o}get tag(){return this._model&&this._model.tag}render(o,a){o.leafNode(this.tag,null,a)}parseOpen(o){switch(o.name){case this.tag:return this.text="",!0;default:return!1}}parseText(o){this.text=o}parseClose(){return!1}}},{"../../base-xform":32}],43:[function(s,E,S){const m=s("../base-xform");E.exports=class extends m{get tag(){return"x:Anchor"}getAnchorRect(o){const a=Math.floor(o.left),r=Math.floor(68*(o.left-a)),t=Math.floor(o.top),e=Math.floor(18*(o.top-t)),l=Math.floor(o.right),n=Math.floor(68*(o.right-l)),i=Math.floor(o.bottom);return[a,r,t,e,l,n,i,Math.floor(18*(o.bottom-i))]}getDefaultRect(o){const a=o.col,r=Math.max(o.row-2,0);return[a,6,r,14,a+2,2,r+4,16]}render(o,a){const r=a.anchor?this.getAnchorRect(a.anchor):this.getDefaultRect(a.refAddress);o.leafNode("x:Anchor",null,r.join(", "))}parseOpen(o){switch(o.name){case this.tag:return this.text="",!0;default:return!1}}parseText(o){this.text=o}parseClose(){return!1}}},{"../base-xform":32}],44:[function(s,E,S){const m=s("../base-xform"),o=s("./vml-anchor-xform"),a=s("./style/vml-protection-xform"),r=s("./style/vml-position-xform"),t=["twoCells","oneCells","absolute"];E.exports=class extends m{constructor(){super(),this.map={"x:Anchor":new o,"x:Locked":new a({tag:"x:Locked"}),"x:LockText":new a({tag:"x:LockText"}),"x:SizeWithCells":new r({tag:"x:SizeWithCells"}),"x:MoveWithCells":new r({tag:"x:MoveWithCells"})}}get tag(){return"x:ClientData"}render(e,l){const{protection:n,editAs:i}=l.note;e.openNode(this.tag,{ObjectType:"Note"}),this.map["x:MoveWithCells"].render(e,i,t),this.map["x:SizeWithCells"].render(e,i,t),this.map["x:Anchor"].render(e,l),this.map["x:Locked"].render(e,n.locked),e.leafNode("x:AutoFill",null,"False"),this.map["x:LockText"].render(e,n.lockText),e.leafNode("x:Row",null,l.refAddress.row-1),e.leafNode("x:Column",null,l.refAddress.col-1),e.closeNode()}parseOpen(e){switch(e.name){case this.tag:this.reset(),this.model={anchor:[],protection:{},editAs:""};break;default:this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)}return!0}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;switch(e){case this.tag:return this.normalizeModel(),!1;default:return!0}}normalizeModel(){const e=Object.assign({},this.map["x:MoveWithCells"].model,this.map["x:SizeWithCells"].model),l=Object.keys(e).length;this.model.editAs=t[l],this.model.anchor=this.map["x:Anchor"].text,this.model.protection.locked=this.map["x:Locked"].text,this.model.protection.lockText=this.map["x:LockText"].text}}},{"../base-xform":32,"./style/vml-position-xform":41,"./style/vml-protection-xform":42,"./vml-anchor-xform":43}],45:[function(s,E,S){const m=s("../../../utils/xml-stream"),o=s("../base-xform"),a=s("./vml-shape-xform");class r extends o{constructor(){super(),this.map={"v:shape":new a}}get tag(){return"xml"}render(e,l){e.openXml(m.StdDocAttributes),e.openNode(this.tag,r.DRAWING_ATTRIBUTES),e.openNode("o:shapelayout",{"v:ext":"edit"}),e.leafNode("o:idmap",{"v:ext":"edit",data:1}),e.closeNode(),e.openNode("v:shapetype",{id:"_x0000_t202",coordsize:"21600,21600","o:spt":202,path:"m,l,21600r21600,l21600,xe"}),e.leafNode("v:stroke",{joinstyle:"miter"}),e.leafNode("v:path",{gradientshapeok:"t","o:connecttype":"rect"}),e.closeNode(),l.comments.forEach((n,i)=>{this.map["v:shape"].render(e,n,i)}),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case this.tag:this.reset(),this.model={comments:[]};break;default:this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)}return!0}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.model.comments.push(this.parser.model),this.parser=void 0),!0;switch(e){case this.tag:return!1;default:return!0}}reconcile(e,l){e.anchors.forEach(n=>{n.br?this.map["xdr:twoCellAnchor"].reconcile(n,l):this.map["xdr:oneCellAnchor"].reconcile(n,l)})}}r.DRAWING_ATTRIBUTES={"xmlns:v":"urn:schemas-microsoft-com:vml","xmlns:o":"urn:schemas-microsoft-com:office:office","xmlns:x":"urn:schemas-microsoft-com:office:excel"},E.exports=r},{"../../../utils/xml-stream":28,"../base-xform":32,"./vml-shape-xform":46}],46:[function(s,E,S){const m=s("../base-xform"),o=s("./vml-textbox-xform"),a=s("./vml-client-data-xform");class r extends m{constructor(){super(),this.map={"v:textbox":new o,"x:ClientData":new a}}get tag(){return"v:shape"}render(e,l,n){e.openNode("v:shape",r.V_SHAPE_ATTRIBUTES(l,n)),e.leafNode("v:fill",{color2:"infoBackground [80]"}),e.leafNode("v:shadow",{color:"none [81]",obscured:"t"}),e.leafNode("v:path",{"o:connecttype":"none"}),this.map["v:textbox"].render(e,l),this.map["x:ClientData"].render(e,l),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case this.tag:this.reset(),this.model={margins:{insetmode:e.attributes["o:insetmode"]},anchor:"",editAs:"",protection:{}};break;default:this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)}return!0}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;switch(e){case this.tag:return this.model.margins.inset=this.map["v:textbox"].model&&this.map["v:textbox"].model.inset,this.model.protection=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.protection,this.model.anchor=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.anchor,this.model.editAs=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.editAs,!1;default:return!0}}}r.V_SHAPE_ATTRIBUTES=(t,e)=>({id:"_x0000_s"+(1025+e),type:"#_x0000_t202",style:"position:absolute; margin-left:105.3pt;margin-top:10.5pt;width:97.8pt;height:59.1pt;z-index:1;visibility:hidden",fillcolor:"infoBackground [80]",strokecolor:"none [81]","o:insetmode":t.note.margins&&t.note.margins.insetmode}),E.exports=r},{"../base-xform":32,"./vml-client-data-xform":44,"./vml-textbox-xform":47}],47:[function(s,E,S){const m=s("../base-xform");E.exports=class extends m{get tag(){return"v:textbox"}conversionUnit(o,a,r){return`${parseFloat(o)*a.toFixed(2)}${r}`}reverseConversionUnit(o){return(o||"").split(",").map(a=>Number(parseFloat(this.conversionUnit(parseFloat(a),.1,"")).toFixed(2)))}render(o,a){const r={style:"mso-direction-alt:auto"};if(a&&a.note){let{inset:t}=a.note&&a.note.margins;Array.isArray(t)&&(t=t.map(e=>this.conversionUnit(e,10,"mm")).join(",")),t&&(r.inset=t)}o.openNode("v:textbox",r),o.leafNode("div",{style:"text-align:left"}),o.closeNode()}parseOpen(o){switch(o.name){case this.tag:return this.model={inset:this.reverseConversionUnit(o.attributes.inset)},!0;default:return!0}}parseText(){}parseClose(o){switch(o){case this.tag:return!1;default:return!0}}}},{"../base-xform":32}],48:[function(s,E,S){const m=s("./base-xform");E.exports=class extends m{createNewModel(o){return{}}parseOpen(o){return this.parser=this.parser||this.map[o.name],this.parser?(this.parser.parseOpen(o),!0):o.name===this.tag&&(this.model=this.createNewModel(o),!0)}parseText(o){this.parser&&this.parser.parseText(o)}onParserClose(o,a){this.model[o]=a.model}parseClose(o){return this.parser?(this.parser.parseClose(o)||(this.onParserClose(o,this.parser),this.parser=void 0),!0):o!==this.tag}}},{"./base-xform":32}],49:[function(s,E,S){const m=s("../base-xform");E.exports=class extends m{render(o,a){o.openNode("HeadingPairs"),o.openNode("vt:vector",{size:2,baseType:"variant"}),o.openNode("vt:variant"),o.leafNode("vt:lpstr",void 0,"Worksheets"),o.closeNode(),o.openNode("vt:variant"),o.leafNode("vt:i4",void 0,a.length),o.closeNode(),o.closeNode(),o.closeNode()}parseOpen(o){return o.name==="HeadingPairs"}parseText(){}parseClose(o){return o!=="HeadingPairs"}}},{"../base-xform":32}],50:[function(s,E,S){const m=s("../base-xform");E.exports=class extends m{render(o,a){o.openNode("TitlesOfParts"),o.openNode("vt:vector",{size:a.length,baseType:"lpstr"}),a.forEach(r=>{o.leafNode("vt:lpstr",void 0,r.name)}),o.closeNode(),o.closeNode()}parseOpen(o){return o.name==="TitlesOfParts"}parseText(){}parseClose(o){return o!=="TitlesOfParts"}}},{"../base-xform":32}],51:[function(s,E,S){const m=s("../../../utils/xml-stream"),o=s("../base-xform"),a=s("../simple/string-xform"),r=s("./app-heading-pairs-xform"),t=s("./app-titles-of-parts-xform");class e extends o{constructor(){super(),this.map={Company:new a({tag:"Company"}),Manager:new a({tag:"Manager"}),HeadingPairs:new r,TitleOfParts:new t}}render(n,i){n.openXml(m.StdDocAttributes),n.openNode("Properties",e.PROPERTY_ATTRIBUTES),n.leafNode("Application",void 0,"Microsoft Excel"),n.leafNode("DocSecurity",void 0,"0"),n.leafNode("ScaleCrop",void 0,"false"),this.map.HeadingPairs.render(n,i.worksheets),this.map.TitleOfParts.render(n,i.worksheets),this.map.Company.render(n,i.company||""),this.map.Manager.render(n,i.manager),n.leafNode("LinksUpToDate",void 0,"false"),n.leafNode("SharedDoc",void 0,"false"),n.leafNode("HyperlinksChanged",void 0,"false"),n.leafNode("AppVersion",void 0,"16.0300"),n.closeNode()}parseOpen(n){if(this.parser)return this.parser.parseOpen(n),!0;switch(n.name){case"Properties":return!0;default:return this.parser=this.map[n.name],!!this.parser&&(this.parser.parseOpen(n),!0)}}parseText(n){this.parser&&this.parser.parseText(n)}parseClose(n){if(this.parser)return this.parser.parseClose(n)||(this.parser=void 0),!0;switch(n){case"Properties":return this.model={worksheets:this.map.TitleOfParts.model,company:this.map.Company.model,manager:this.map.Manager.model},!1;default:return!0}}}e.DateFormat=function(l){return l.toISOString().replace(/[.]\d{3,6}/,"")},e.DateAttrs={"xsi:type":"dcterms:W3CDTF"},e.PROPERTY_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties","xmlns:vt":"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"},E.exports=e},{"../../../utils/xml-stream":28,"../base-xform":32,"../simple/string-xform":119,"./app-heading-pairs-xform":49,"./app-titles-of-parts-xform":50}],52:[function(s,E,S){const m=s("../../../utils/xml-stream"),o=s("../base-xform");class a extends o{render(t,e){t.openXml(m.StdDocAttributes),t.openNode("Types",a.PROPERTY_ATTRIBUTES);const l={};(e.media||[]).forEach(n=>{if(n.type==="image"){const i=n.extension;l[i]||(l[i]=!0,t.leafNode("Default",{Extension:i,ContentType:"image/"+i}))}}),t.leafNode("Default",{Extension:"rels",ContentType:"application/vnd.openxmlformats-package.relationships+xml"}),t.leafNode("Default",{Extension:"xml",ContentType:"application/xml"}),t.leafNode("Override",{PartName:"/xl/workbook.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml"}),e.worksheets.forEach(n=>{const i=`/xl/worksheets/sheet${n.id}.xml`;t.leafNode("Override",{PartName:i,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"})}),t.leafNode("Override",{PartName:"/xl/theme/theme1.xml",ContentType:"application/vnd.openxmlformats-officedocument.theme+xml"}),t.leafNode("Override",{PartName:"/xl/styles.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml"}),e.sharedStrings&&e.sharedStrings.count&&t.leafNode("Override",{PartName:"/xl/sharedStrings.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml"}),e.tables&&e.tables.forEach(n=>{t.leafNode("Override",{PartName:"/xl/tables/"+n.target,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml"})}),e.drawings&&e.drawings.forEach(n=>{t.leafNode("Override",{PartName:`/xl/drawings/${n.name}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.drawing+xml"})}),e.commentRefs&&(t.leafNode("Default",{Extension:"vml",ContentType:"application/vnd.openxmlformats-officedocument.vmlDrawing"}),e.commentRefs.forEach(n=>{let{commentName:i}=n;t.leafNode("Override",{PartName:`/xl/${i}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml"})})),t.leafNode("Override",{PartName:"/docProps/core.xml",ContentType:"application/vnd.openxmlformats-package.core-properties+xml"}),t.leafNode("Override",{PartName:"/docProps/app.xml",ContentType:"application/vnd.openxmlformats-officedocument.extended-properties+xml"}),t.closeNode()}parseOpen(){return!1}parseText(){}parseClose(){return!1}}a.PROPERTY_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"},E.exports=a},{"../../../utils/xml-stream":28,"../base-xform":32}],53:[function(s,E,S){const m=s("../../../utils/xml-stream"),o=s("../base-xform"),a=s("../simple/date-xform"),r=s("../simple/string-xform"),t=s("../simple/integer-xform");class e extends o{constructor(){super(),this.map={"dc:creator":new r({tag:"dc:creator"}),"dc:title":new r({tag:"dc:title"}),"dc:subject":new r({tag:"dc:subject"}),"dc:description":new r({tag:"dc:description"}),"dc:identifier":new r({tag:"dc:identifier"}),"dc:language":new r({tag:"dc:language"}),"cp:keywords":new r({tag:"cp:keywords"}),"cp:category":new r({tag:"cp:category"}),"cp:lastModifiedBy":new r({tag:"cp:lastModifiedBy"}),"cp:lastPrinted":new a({tag:"cp:lastPrinted",format:e.DateFormat}),"cp:revision":new t({tag:"cp:revision"}),"cp:version":new r({tag:"cp:version"}),"cp:contentStatus":new r({tag:"cp:contentStatus"}),"cp:contentType":new r({tag:"cp:contentType"}),"dcterms:created":new a({tag:"dcterms:created",attrs:e.DateAttrs,format:e.DateFormat}),"dcterms:modified":new a({tag:"dcterms:modified",attrs:e.DateAttrs,format:e.DateFormat})}}render(n,i){n.openXml(m.StdDocAttributes),n.openNode("cp:coreProperties",e.CORE_PROPERTY_ATTRIBUTES),this.map["dc:creator"].render(n,i.creator),this.map["dc:title"].render(n,i.title),this.map["dc:subject"].render(n,i.subject),this.map["dc:description"].render(n,i.description),this.map["dc:identifier"].render(n,i.identifier),this.map["dc:language"].render(n,i.language),this.map["cp:keywords"].render(n,i.keywords),this.map["cp:category"].render(n,i.category),this.map["cp:lastModifiedBy"].render(n,i.lastModifiedBy),this.map["cp:lastPrinted"].render(n,i.lastPrinted),this.map["cp:revision"].render(n,i.revision),this.map["cp:version"].render(n,i.version),this.map["cp:contentStatus"].render(n,i.contentStatus),this.map["cp:contentType"].render(n,i.contentType),this.map["dcterms:created"].render(n,i.created),this.map["dcterms:modified"].render(n,i.modified),n.closeNode()}parseOpen(n){if(this.parser)return this.parser.parseOpen(n),!0;switch(n.name){case"cp:coreProperties":case"coreProperties":return!0;default:if(this.parser=this.map[n.name],this.parser)return this.parser.parseOpen(n),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(n))}}parseText(n){this.parser&&this.parser.parseText(n)}parseClose(n){if(this.parser)return this.parser.parseClose(n)||(this.parser=void 0),!0;switch(n){case"cp:coreProperties":case"coreProperties":return this.model={creator:this.map["dc:creator"].model,title:this.map["dc:title"].model,subject:this.map["dc:subject"].model,description:this.map["dc:description"].model,identifier:this.map["dc:identifier"].model,language:this.map["dc:language"].model,keywords:this.map["cp:keywords"].model,category:this.map["cp:category"].model,lastModifiedBy:this.map["cp:lastModifiedBy"].model,lastPrinted:this.map["cp:lastPrinted"].model,revision:this.map["cp:revision"].model,contentStatus:this.map["cp:contentStatus"].model,contentType:this.map["cp:contentType"].model,created:this.map["dcterms:created"].model,modified:this.map["dcterms:modified"].model},!1;default:throw new Error("Unexpected xml node in parseClose: "+n)}}}e.DateFormat=function(l){return l.toISOString().replace(/[.]\d{3}/,"")},e.DateAttrs={"xsi:type":"dcterms:W3CDTF"},e.CORE_PROPERTY_ATTRIBUTES={"xmlns:cp":"http://schemas.openxmlformats.org/package/2006/metadata/core-properties","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:dcterms":"http://purl.org/dc/terms/","xmlns:dcmitype":"http://purl.org/dc/dcmitype/","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance"},E.exports=e},{"../../../utils/xml-stream":28,"../base-xform":32,"../simple/date-xform":117,"../simple/integer-xform":118,"../simple/string-xform":119}],54:[function(s,E,S){const m=s("../base-xform");E.exports=class extends m{render(o,a){o.leafNode("Relationship",a)}parseOpen(o){switch(o.name){case"Relationship":return this.model=o.attributes,!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],55:[function(s,E,S){const m=s("../../../utils/xml-stream"),o=s("../base-xform"),a=s("./relationship-xform");class r extends o{constructor(){super(),this.map={Relationship:new a}}render(e,l){l=l||this._values,e.openXml(m.StdDocAttributes),e.openNode("Relationships",r.RELATIONSHIPS_ATTRIBUTES),l.forEach(n=>{this.map.Relationship.render(e,n)}),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"Relationships":return this.model=[],!0;default:if(this.parser=this.map[e.name],this.parser)return this.parser.parseOpen(e),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(e))}}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.model.push(this.parser.model),this.parser=void 0),!0;switch(e){case"Relationships":return!1;default:throw new Error("Unexpected xml node in parseClose: "+e)}}}r.RELATIONSHIPS_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"},E.exports=r},{"../../../utils/xml-stream":28,"../base-xform":32,"./relationship-xform":54}],56:[function(s,E,S){const m=s("../base-xform");E.exports=class extends m{parseOpen(o){if(this.parser)return this.parser.parseOpen(o),!0;switch(o.name){case this.tag:this.reset(),this.model={range:{editAs:o.attributes.editAs||"oneCell"}};break;default:this.parser=this.map[o.name],this.parser&&this.parser.parseOpen(o)}return!0}parseText(o){this.parser&&this.parser.parseText(o)}reconcilePicture(o,a){if(o&&o.rId){const r=a.rels[o.rId].Target.match(/.*\/media\/(.+[.][a-zA-Z]{3,4})/);if(r){const t=r[1],e=a.mediaIndex[t];return a.media[e]}}}}},{"../base-xform":32}],57:[function(s,E,S){const m=s("../base-xform"),o=s("./blip-xform");E.exports=class extends m{constructor(){super(),this.map={"a:blip":new o}}get tag(){return"xdr:blipFill"}render(a,r){a.openNode(this.tag),this.map["a:blip"].render(a,r),a.openNode("a:stretch"),a.leafNode("a:fillRect"),a.closeNode(),a.closeNode()}parseOpen(a){if(this.parser)return this.parser.parseOpen(a),!0;switch(a.name){case this.tag:this.reset();break;default:this.parser=this.map[a.name],this.parser&&this.parser.parseOpen(a)}return!0}parseText(){}parseClose(a){if(this.parser)return this.parser.parseClose(a)||(this.parser=void 0),!0;switch(a){case this.tag:return this.model=this.map["a:blip"].model,!1;default:return!0}}}},{"../base-xform":32,"./blip-xform":58}],58:[function(s,E,S){const m=s("../base-xform");E.exports=class extends m{get tag(){return"a:blip"}render(o,a){o.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:embed":a.rId,cstate:"print"})}parseOpen(o){switch(o.name){case this.tag:return this.model={rId:o.attributes["r:embed"]},!0;default:return!0}}parseText(){}parseClose(o){switch(o){case this.tag:return!1;default:return!0}}}},{"../base-xform":32}],59:[function(s,E,S){const m=s("../base-xform");E.exports=class extends m{get tag(){return"xdr:cNvPicPr"}render(o){o.openNode(this.tag),o.leafNode("a:picLocks",{noChangeAspect:"1"}),o.closeNode()}parseOpen(o){switch(o.name){case this.tag:default:return!0}}parseText(){}parseClose(o){switch(o){case this.tag:return!1;default:return!0}}}},{"../base-xform":32}],60:[function(s,E,S){const m=s("../base-xform"),o=s("./hlink-click-xform"),a=s("./ext-lst-xform");E.exports=class extends m{constructor(){super(),this.map={"a:hlinkClick":new o,"a:extLst":new a}}get tag(){return"xdr:cNvPr"}render(r,t){r.openNode(this.tag,{id:t.index,name:"Picture "+t.index}),this.map["a:hlinkClick"].render(r,t),this.map["a:extLst"].render(r,t),r.closeNode()}parseOpen(r){if(this.parser)return this.parser.parseOpen(r),!0;switch(r.name){case this.tag:this.reset();break;default:this.parser=this.map[r.name],this.parser&&this.parser.parseOpen(r)}return!0}parseText(){}parseClose(r){if(this.parser)return this.parser.parseClose(r)||(this.parser=void 0),!0;switch(r){case this.tag:return this.model=this.map["a:hlinkClick"].model,!1;default:return!0}}}},{"../base-xform":32,"./ext-lst-xform":63,"./hlink-click-xform":65}],61:[function(s,E,S){const m=s("../base-xform"),o=s("../simple/integer-xform");E.exports=class extends m{constructor(a){super(),this.tag=a.tag,this.map={"xdr:col":new o({tag:"xdr:col",zero:!0}),"xdr:colOff":new o({tag:"xdr:colOff",zero:!0}),"xdr:row":new o({tag:"xdr:row",zero:!0}),"xdr:rowOff":new o({tag:"xdr:rowOff",zero:!0})}}render(a,r){a.openNode(this.tag),this.map["xdr:col"].render(a,r.nativeCol),this.map["xdr:colOff"].render(a,r.nativeColOff),this.map["xdr:row"].render(a,r.nativeRow),this.map["xdr:rowOff"].render(a,r.nativeRowOff),a.closeNode()}parseOpen(a){if(this.parser)return this.parser.parseOpen(a),!0;switch(a.name){case this.tag:this.reset();break;default:this.parser=this.map[a.name],this.parser&&this.parser.parseOpen(a)}return!0}parseText(a){this.parser&&this.parser.parseText(a)}parseClose(a){if(this.parser)return this.parser.parseClose(a)||(this.parser=void 0),!0;switch(a){case this.tag:return this.model={nativeCol:this.map["xdr:col"].model,nativeColOff:this.map["xdr:colOff"].model,nativeRow:this.map["xdr:row"].model,nativeRowOff:this.map["xdr:rowOff"].model},!1;default:return!0}}}},{"../base-xform":32,"../simple/integer-xform":118}],62:[function(s,E,S){const m=s("../../../utils/col-cache"),o=s("../../../utils/xml-stream"),a=s("../base-xform"),r=s("./two-cell-anchor-xform"),t=s("./one-cell-anchor-xform");class e extends a{constructor(){super(),this.map={"xdr:twoCellAnchor":new r,"xdr:oneCellAnchor":new t}}prepare(n){n.anchors.forEach((i,c)=>{i.anchorType=function(h){return(typeof h.range=="string"?m.decode(h.range):h.range).br?"xdr:twoCellAnchor":"xdr:oneCellAnchor"}(i),this.map[i.anchorType].prepare(i,{index:c})})}get tag(){return"xdr:wsDr"}render(n,i){n.openXml(o.StdDocAttributes),n.openNode(this.tag,e.DRAWING_ATTRIBUTES),i.anchors.forEach(c=>{this.map[c.anchorType].render(n,c)}),n.closeNode()}parseOpen(n){if(this.parser)return this.parser.parseOpen(n),!0;switch(n.name){case this.tag:this.reset(),this.model={anchors:[]};break;default:this.parser=this.map[n.name],this.parser&&this.parser.parseOpen(n)}return!0}parseText(n){this.parser&&this.parser.parseText(n)}parseClose(n){if(this.parser)return this.parser.parseClose(n)||(this.model.anchors.push(this.parser.model),this.parser=void 0),!0;switch(n){case this.tag:return!1;default:return!0}}reconcile(n,i){n.anchors.forEach(c=>{c.br?this.map["xdr:twoCellAnchor"].reconcile(c,i):this.map["xdr:oneCellAnchor"].reconcile(c,i)})}}e.DRAWING_ATTRIBUTES={"xmlns:xdr":"http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing","xmlns:a":"http://schemas.openxmlformats.org/drawingml/2006/main"},E.exports=e},{"../../../utils/col-cache":19,"../../../utils/xml-stream":28,"../base-xform":32,"./one-cell-anchor-xform":67,"./two-cell-anchor-xform":70}],63:[function(s,E,S){const m=s("../base-xform");E.exports=class extends m{get tag(){return"a:extLst"}render(o){o.openNode(this.tag),o.openNode("a:ext",{uri:"{FF2B5EF4-FFF2-40B4-BE49-F238E27FC236}"}),o.leafNode("a16:creationId",{"xmlns:a16":"http://schemas.microsoft.com/office/drawing/2014/main",id:"{00000000-0008-0000-0000-000002000000}"}),o.closeNode(),o.closeNode()}parseOpen(o){switch(o.name){case this.tag:default:return!0}}parseText(){}parseClose(o){switch(o){case this.tag:return!1;default:return!0}}}},{"../base-xform":32}],64:[function(s,E,S){const m=s("../base-xform");E.exports=class extends m{constructor(o){super(),this.tag=o.tag,this.map={}}render(o,a){o.openNode(this.tag);const r=Math.floor(9525*a.width),t=Math.floor(9525*a.height);o.addAttribute("cx",r),o.addAttribute("cy",t),o.closeNode()}parseOpen(o){return o.name===this.tag&&(this.model={width:parseInt(o.attributes.cx||"0",10)/9525,height:parseInt(o.attributes.cy||"0",10)/9525},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],65:[function(s,E,S){const m=s("../base-xform");E.exports=class extends m{get tag(){return"a:hlinkClick"}render(o,a){a.hyperlinks&&a.hyperlinks.rId&&o.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:id":a.hyperlinks.rId,tooltip:a.hyperlinks.tooltip})}parseOpen(o){switch(o.name){case this.tag:return this.model={hyperlinks:{rId:o.attributes["r:id"],tooltip:o.attributes.tooltip}},!0;default:return!0}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],66:[function(s,E,S){const m=s("../base-xform"),o=s("./c-nv-pr-xform"),a=s("./c-nv-pic-pr-xform");E.exports=class extends m{constructor(){super(),this.map={"xdr:cNvPr":new o,"xdr:cNvPicPr":new a}}get tag(){return"xdr:nvPicPr"}render(r,t){r.openNode(this.tag),this.map["xdr:cNvPr"].render(r,t),this.map["xdr:cNvPicPr"].render(r,t),r.closeNode()}parseOpen(r){if(this.parser)return this.parser.parseOpen(r),!0;switch(r.name){case this.tag:this.reset();break;default:this.parser=this.map[r.name],this.parser&&this.parser.parseOpen(r)}return!0}parseText(){}parseClose(r){if(this.parser)return this.parser.parseClose(r)||(this.parser=void 0),!0;switch(r){case this.tag:return this.model=this.map["xdr:cNvPr"].model,!1;default:return!0}}}},{"../base-xform":32,"./c-nv-pic-pr-xform":59,"./c-nv-pr-xform":60}],67:[function(s,E,S){const m=s("./base-cell-anchor-xform"),o=s("../static-xform"),a=s("./cell-position-xform"),r=s("./ext-xform"),t=s("./pic-xform");E.exports=class extends m{constructor(){super(),this.map={"xdr:from":new a({tag:"xdr:from"}),"xdr:ext":new r({tag:"xdr:ext"}),"xdr:pic":new t,"xdr:clientData":new o({tag:"xdr:clientData"})}}get tag(){return"xdr:oneCellAnchor"}prepare(e,l){this.map["xdr:pic"].prepare(e.picture,l)}render(e,l){e.openNode(this.tag,{editAs:l.range.editAs||"oneCell"}),this.map["xdr:from"].render(e,l.range.tl),this.map["xdr:ext"].render(e,l.range.ext),this.map["xdr:pic"].render(e,l.picture),this.map["xdr:clientData"].render(e,{}),e.closeNode()}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;switch(e){case this.tag:return this.model.range.tl=this.map["xdr:from"].model,this.model.range.ext=this.map["xdr:ext"].model,this.model.picture=this.map["xdr:pic"].model,!1;default:return!0}}reconcile(e,l){e.medium=this.reconcilePicture(e.picture,l)}}},{"../static-xform":120,"./base-cell-anchor-xform":56,"./cell-position-xform":61,"./ext-xform":64,"./pic-xform":68}],68:[function(s,E,S){const m=s("../base-xform"),o=s("../static-xform"),a=s("./blip-fill-xform"),r=s("./nv-pic-pr-xform"),t=s("./sp-pr");E.exports=class extends m{constructor(){super(),this.map={"xdr:nvPicPr":new r,"xdr:blipFill":new a,"xdr:spPr":new o(t)}}get tag(){return"xdr:pic"}prepare(e,l){e.index=l.index+1}render(e,l){e.openNode(this.tag),this.map["xdr:nvPicPr"].render(e,l),this.map["xdr:blipFill"].render(e,l),this.map["xdr:spPr"].render(e,l),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case this.tag:this.reset();break;default:this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)}return!0}parseText(){}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.mergeModel(this.parser.model),this.parser=void 0),!0;switch(e){case this.tag:return!1;default:return!0}}}},{"../base-xform":32,"../static-xform":120,"./blip-fill-xform":57,"./nv-pic-pr-xform":66,"./sp-pr":69}],69:[function(s,E,S){E.exports={tag:"xdr:spPr",c:[{tag:"a:xfrm",c:[{tag:"a:off",$:{x:"0",y:"0"}},{tag:"a:ext",$:{cx:"0",cy:"0"}}]},{tag:"a:prstGeom",$:{prst:"rect"},c:[{tag:"a:avLst"}]}]}},{}],70:[function(s,E,S){const m=s("./base-cell-anchor-xform"),o=s("../static-xform"),a=s("./cell-position-xform"),r=s("./pic-xform");E.exports=class extends m{constructor(){super(),this.map={"xdr:from":new a({tag:"xdr:from"}),"xdr:to":new a({tag:"xdr:to"}),"xdr:pic":new r,"xdr:clientData":new o({tag:"xdr:clientData"})}}get tag(){return"xdr:twoCellAnchor"}prepare(t,e){this.map["xdr:pic"].prepare(t.picture,e)}render(t,e){t.openNode(this.tag,{editAs:e.range.editAs||"oneCell"}),this.map["xdr:from"].render(t,e.range.tl),this.map["xdr:to"].render(t,e.range.br),this.map["xdr:pic"].render(t,e.picture),this.map["xdr:clientData"].render(t,{}),t.closeNode()}parseClose(t){if(this.parser)return this.parser.parseClose(t)||(this.parser=void 0),!0;switch(t){case this.tag:return this.model.range.tl=this.map["xdr:from"].model,this.model.range.br=this.map["xdr:to"].model,this.model.picture=this.map["xdr:pic"].model,!1;default:return!0}}reconcile(t,e){t.medium=this.reconcilePicture(t.picture,e)}}},{"../static-xform":120,"./base-cell-anchor-xform":56,"./cell-position-xform":61,"./pic-xform":68}],71:[function(s,E,S){const m=s("./base-xform");E.exports=class extends m{constructor(o){super(),this.tag=o.tag,this.always=!!o.always,this.count=o.count,this.empty=o.empty,this.$count=o.$count||"count",this.$=o.$,this.childXform=o.childXform,this.maxItems=o.maxItems}prepare(o,a){const{childXform:r}=this;o&&o.forEach((t,e)=>{a.index=e,r.prepare(t,a)})}render(o,a){if(this.always||a&&a.length){o.openNode(this.tag,this.$),this.count&&o.addAttribute(this.$count,a&&a.length||0);const{childXform:r}=this;(a||[]).forEach((t,e)=>{r.render(o,t,e)}),o.closeNode()}else this.empty&&o.leafNode(this.tag)}parseOpen(o){if(this.parser)return this.parser.parseOpen(o),!0;switch(o.name){case this.tag:return this.model=[],!0;default:return!!this.childXform.parseOpen(o)&&(this.parser=this.childXform,!0)}}parseText(o){this.parser&&this.parser.parseText(o)}parseClose(o){if(this.parser){if(!this.parser.parseClose(o)&&(this.model.push(this.parser.model),this.parser=void 0,this.maxItems&&this.model.length>this.maxItems))throw new Error(`Max ${this.childXform.tag} count (${this.maxItems}) exceeded`);return!0}return!1}reconcile(o,a){if(o){const{childXform:r}=this;o.forEach(t=>{r.reconcile(t,a)})}}}},{"./base-xform":32}],72:[function(s,E,S){const m=s("../../../utils/col-cache"),o=s("../base-xform");E.exports=class extends o{get tag(){return"autoFilter"}render(a,r){if(r)if(typeof r=="string")a.leafNode("autoFilter",{ref:r});else{const t=function(n){return typeof n=="string"?n:m.getAddress(n.row,n.column).address},e=t(r.from),l=t(r.to);e&&l&&a.leafNode("autoFilter",{ref:`${e}:${l}`})}}parseOpen(a){a.name==="autoFilter"&&(this.model=a.attributes.ref)}}},{"../../../utils/col-cache":19,"../base-xform":32}],73:[function(s,E,S){const m=s("../../../utils/utils"),o=s("../base-xform"),a=s("../../../doc/range"),r=s("../../../doc/enums"),t=s("../strings/rich-text-xform");function e(l){if(l==null)return r.ValueType.Null;if(l instanceof String||typeof l=="string")return r.ValueType.String;if(typeof l=="number")return r.ValueType.Number;if(typeof l=="boolean")return r.ValueType.Boolean;if(l instanceof Date)return r.ValueType.Date;if(l.text&&l.hyperlink)return r.ValueType.Hyperlink;if(l.formula)return r.ValueType.Formula;if(l.error)return r.ValueType.Error;throw new Error("I could not understand type of value")}E.exports=class extends o{constructor(){super(),this.richTextXForm=new t}get tag(){return"c"}prepare(l,n){const i=n.styles.addStyleModel(l.style||{},function(c){switch(c.type){case r.ValueType.Formula:return e(c.result);default:return c.type}}(l));switch(i&&(l.styleId=i),l.comment&&n.comments.push({...l.comment,ref:l.address}),l.type){case r.ValueType.String:case r.ValueType.RichText:n.sharedStrings&&(l.ssId=n.sharedStrings.add(l.value));break;case r.ValueType.Date:n.date1904&&(l.date1904=!0);break;case r.ValueType.Hyperlink:n.sharedStrings&&l.text!==void 0&&l.text!==null&&(l.ssId=n.sharedStrings.add(l.text)),n.hyperlinks.push({address:l.address,target:l.hyperlink,tooltip:l.tooltip});break;case r.ValueType.Merge:n.merges.add(l);break;case r.ValueType.Formula:if(n.date1904&&(l.date1904=!0),l.shareType==="shared"&&(l.si=n.siFormulae++),l.formula)n.formulae[l.address]=l;else if(l.sharedFormula){const c=n.formulae[l.sharedFormula];if(!c)throw new Error("Shared Formula master must exist above and or left of clone for cell "+l.address);c.si===void 0?(c.shareType="shared",c.si=n.siFormulae++,c.range=new a(c.address,l.address)):c.range&&c.range.expandToAddress(l.address),l.si=c.si}}}renderFormula(l,n){let i=null;switch(n.shareType){case"shared":i={t:"shared",ref:n.ref||n.range.range,si:n.si};break;case"array":i={t:"array",ref:n.ref};break;default:n.si!==void 0&&(i={t:"shared",si:n.si})}switch(e(n.result)){case r.ValueType.Null:l.leafNode("f",i,n.formula);break;case r.ValueType.String:l.addAttribute("t","str"),l.leafNode("f",i,n.formula),l.leafNode("v",null,n.result);break;case r.ValueType.Number:l.leafNode("f",i,n.formula),l.leafNode("v",null,n.result);break;case r.ValueType.Boolean:l.addAttribute("t","b"),l.leafNode("f",i,n.formula),l.leafNode("v",null,n.result?1:0);break;case r.ValueType.Error:l.addAttribute("t","e"),l.leafNode("f",i,n.formula),l.leafNode("v",null,n.result.error);break;case r.ValueType.Date:l.leafNode("f",i,n.formula),l.leafNode("v",null,m.dateToExcel(n.result,n.date1904));break;default:throw new Error("I could not understand type of value")}}render(l,n){if(n.type!==r.ValueType.Null||n.styleId){switch(l.openNode("c"),l.addAttribute("r",n.address),n.styleId&&l.addAttribute("s",n.styleId),n.type){case r.ValueType.Null:break;case r.ValueType.Number:l.leafNode("v",null,n.value);break;case r.ValueType.Boolean:l.addAttribute("t","b"),l.leafNode("v",null,n.value?"1":"0");break;case r.ValueType.Error:l.addAttribute("t","e"),l.leafNode("v",null,n.value.error);break;case r.ValueType.String:case r.ValueType.RichText:n.ssId!==void 0?(l.addAttribute("t","s"),l.leafNode("v",null,n.ssId)):n.value&&n.value.richText?(l.addAttribute("t","inlineStr"),l.openNode("is"),n.value.richText.forEach(i=>{this.richTextXForm.render(l,i)}),l.closeNode("is")):(l.addAttribute("t","str"),l.leafNode("v",null,n.value));break;case r.ValueType.Date:l.leafNode("v",null,m.dateToExcel(n.value,n.date1904));break;case r.ValueType.Hyperlink:n.ssId!==void 0?(l.addAttribute("t","s"),l.leafNode("v",null,n.ssId)):(l.addAttribute("t","str"),l.leafNode("v",null,n.text));break;case r.ValueType.Formula:this.renderFormula(l,n);break;case r.ValueType.Merge:}l.closeNode()}}parseOpen(l){if(this.parser)return this.parser.parseOpen(l),!0;switch(l.name){case"c":return this.model={address:l.attributes.r},this.t=l.attributes.t,l.attributes.s&&(this.model.styleId=parseInt(l.attributes.s,10)),!0;case"f":return this.currentNode="f",this.model.si=l.attributes.si,this.model.shareType=l.attributes.t,this.model.ref=l.attributes.ref,!0;case"v":return this.currentNode="v",!0;case"t":return this.currentNode="t",!0;case"r":return this.parser=this.richTextXForm,this.parser.parseOpen(l),!0;default:return!1}}parseText(l){if(this.parser)this.parser.parseText(l);else switch(this.currentNode){case"f":this.model.formula=this.model.formula?this.model.formula+l:l;break;case"v":case"t":this.model.value&&this.model.value.richText?this.model.value.richText.text=this.model.value.richText.text?this.model.value.richText.text+l:l:this.model.value=this.model.value?this.model.value+l:l}}parseClose(l){switch(l){case"c":{const{model:n}=this;if(n.formula||n.shareType)n.type=r.ValueType.Formula,n.value&&(this.t==="str"?n.result=m.xmlDecode(n.value):this.t==="b"?n.result=parseInt(n.value,10)!==0:this.t==="e"?n.result={error:n.value}:n.result=parseFloat(n.value),n.value=void 0);else if(n.value!==void 0)switch(this.t){case"s":n.type=r.ValueType.String,n.value=parseInt(n.value,10);break;case"str":n.type=r.ValueType.String,n.value=m.xmlDecode(n.value);break;case"inlineStr":n.type=r.ValueType.String;break;case"b":n.type=r.ValueType.Boolean,n.value=parseInt(n.value,10)!==0;break;case"e":n.type=r.ValueType.Error,n.value={error:n.value};break;default:n.type=r.ValueType.Number,n.value=parseFloat(n.value)}else n.styleId?n.type=r.ValueType.Null:n.type=r.ValueType.Merge;return!1}case"f":case"v":case"is":return this.currentNode=void 0,!0;case"t":return this.parser?(this.parser.parseClose(l),!0):(this.currentNode=void 0,!0);case"r":return this.model.value=this.model.value||{},this.model.value.richText=this.model.value.richText||[],this.model.value.richText.push(this.parser.model),this.parser=void 0,this.currentNode=void 0,!0;default:return!!this.parser&&(this.parser.parseClose(l),!0)}}reconcile(l,n){const i=l.styleId&&n.styles&&n.styles.getStyleModel(l.styleId);switch(i&&(l.style=i),l.styleId!==void 0&&(l.styleId=void 0),l.type){case r.ValueType.String:typeof l.value=="number"&&n.sharedStrings&&(l.value=n.sharedStrings.getString(l.value)),l.value.richText&&(l.type=r.ValueType.RichText);break;case r.ValueType.Number:i&&m.isDateFmt(i.numFmt)&&(l.type=r.ValueType.Date,l.value=m.excelToDate(l.value,n.date1904));break;case r.ValueType.Formula:l.result!==void 0&&i&&m.isDateFmt(i.numFmt)&&(l.result=m.excelToDate(l.result,n.date1904)),l.shareType==="shared"&&(l.ref?n.formulae[l.si]=l.address:(l.sharedFormula=n.formulae[l.si],delete l.shareType),delete l.si)}const c=n.hyperlinkMap[l.address];c&&(l.type===r.ValueType.Formula?(l.text=l.result,l.result=void 0):(l.text=l.value,l.value=void 0),l.type=r.ValueType.Hyperlink,l.hyperlink=c);const h=n.commentsMap&&n.commentsMap[l.address];h&&(l.comment=h)}}},{"../../../doc/enums":7,"../../../doc/range":10,"../../../utils/utils":27,"../base-xform":32,"../strings/rich-text-xform":122}],74:[function(s,E,S){const m=s("../../base-xform");E.exports=class extends m{get tag(){return"x14:cfIcon"}render(o,a){o.leafNode(this.tag,{iconSet:a.iconSet,iconId:a.iconId})}parseOpen(o){let{attributes:a}=o;this.model={iconSet:a.iconSet,iconId:m.toIntValue(a.iconId)}}parseClose(o){return o!==this.tag}}},{"../../base-xform":32}],75:[function(s,E,S){const{v4:m}=s("uuid"),o=s("../../base-xform"),a=s("../../composite-xform"),r=s("./databar-ext-xform"),t=s("./icon-set-ext-xform"),e={"3Triangles":!0,"3Stars":!0,"5Boxes":!0};class l extends a{constructor(){super(),this.map={"x14:dataBar":this.databarXform=new r,"x14:iconSet":this.iconSetXform=new t}}get tag(){return"x14:cfRule"}static isExt(i){return i.type==="dataBar"?r.isExt(i):!(i.type!=="iconSet"||!i.custom&&!e[i.iconSet])}prepare(i){l.isExt(i)&&(i.x14Id=`{${m()}}`.toUpperCase())}render(i,c){if(l.isExt(c))switch(c.type){case"dataBar":this.renderDataBar(i,c);break;case"iconSet":this.renderIconSet(i,c)}}renderDataBar(i,c){i.openNode(this.tag,{type:"dataBar",id:c.x14Id}),this.databarXform.render(i,c),i.closeNode()}renderIconSet(i,c){i.openNode(this.tag,{type:"iconSet",priority:c.priority,id:c.x14Id||`{${m()}}`}),this.iconSetXform.render(i,c),i.closeNode()}createNewModel(i){let{attributes:c}=i;return{type:c.type,x14Id:c.id,priority:o.toIntValue(c.priority)}}onParserClose(i,c){Object.assign(this.model,c.model)}}E.exports=l},{"../../base-xform":32,"../../composite-xform":48,"./databar-ext-xform":79,"./icon-set-ext-xform":81,uuid:528}],76:[function(s,E,S){const m=s("../../composite-xform"),o=s("./f-ext-xform");E.exports=class extends m{constructor(){super(),this.map={"xm:f":this.fExtXform=new o}}get tag(){return"x14:cfvo"}render(a,r){a.openNode(this.tag,{type:r.type}),r.value!==void 0&&this.fExtXform.render(a,r.value),a.closeNode()}createNewModel(a){return{type:a.attributes.type}}onParserClose(a,r){switch(a){case"xm:f":this.model.value=r.model?parseFloat(r.model):0}}}},{"../../composite-xform":48,"./f-ext-xform":80}],77:[function(s,E,S){const m=s("../../composite-xform"),o=s("./sqref-ext-xform"),a=s("./cf-rule-ext-xform");E.exports=class extends m{constructor(){super(),this.map={"xm:sqref":this.sqRef=new o,"x14:cfRule":this.cfRule=new a}}get tag(){return"x14:conditionalFormatting"}prepare(r,t){r.rules.forEach(e=>{this.cfRule.prepare(e,t)})}render(r,t){t.rules.some(a.isExt)&&(r.openNode(this.tag,{"xmlns:xm":"http://schemas.microsoft.com/office/excel/2006/main"}),t.rules.filter(a.isExt).forEach(e=>this.cfRule.render(r,e)),this.sqRef.render(r,t.ref),r.closeNode())}createNewModel(){return{rules:[]}}onParserClose(r,t){switch(r){case"xm:sqref":this.model.ref=t.model;break;case"x14:cfRule":this.model.rules.push(t.model)}}}},{"../../composite-xform":48,"./cf-rule-ext-xform":75,"./sqref-ext-xform":82}],78:[function(s,E,S){const m=s("../../composite-xform"),o=s("./cf-rule-ext-xform"),a=s("./conditional-formatting-ext-xform");E.exports=class extends m{constructor(){super(),this.map={"x14:conditionalFormatting":this.cfXform=new a}}get tag(){return"x14:conditionalFormattings"}hasContent(r){return r.hasExtContent===void 0&&(r.hasExtContent=r.some(t=>t.rules.some(o.isExt))),r.hasExtContent}prepare(r,t){r.forEach(e=>{this.cfXform.prepare(e,t)})}render(r,t){this.hasContent(t)&&(r.openNode(this.tag),t.forEach(e=>this.cfXform.render(r,e)),r.closeNode())}createNewModel(){return[]}onParserClose(r,t){this.model.push(t.model)}}},{"../../composite-xform":48,"./cf-rule-ext-xform":75,"./conditional-formatting-ext-xform":77}],79:[function(s,E,S){const m=s("../../base-xform"),o=s("../../composite-xform"),a=s("../../style/color-xform"),r=s("./cfvo-ext-xform");E.exports=class extends o{constructor(){super(),this.map={"x14:cfvo":this.cfvoXform=new r,"x14:borderColor":this.borderColorXform=new a("x14:borderColor"),"x14:negativeBorderColor":this.negativeBorderColorXform=new a("x14:negativeBorderColor"),"x14:negativeFillColor":this.negativeFillColorXform=new a("x14:negativeFillColor"),"x14:axisColor":this.axisColorXform=new a("x14:axisColor")}}static isExt(t){return!t.gradient}get tag(){return"x14:dataBar"}render(t,e){t.openNode(this.tag,{minLength:m.toIntAttribute(e.minLength,0,!0),maxLength:m.toIntAttribute(e.maxLength,100,!0),border:m.toBoolAttribute(e.border,!1),gradient:m.toBoolAttribute(e.gradient,!0),negativeBarColorSameAsPositive:m.toBoolAttribute(e.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:m.toBoolAttribute(e.negativeBarBorderColorSameAsPositive,!0),axisPosition:m.toAttribute(e.axisPosition,"auto"),direction:m.toAttribute(e.direction,"leftToRight")}),e.cfvo.forEach(l=>{this.cfvoXform.render(t,l)}),this.borderColorXform.render(t,e.borderColor),this.negativeBorderColorXform.render(t,e.negativeBorderColor),this.negativeFillColorXform.render(t,e.negativeFillColor),this.axisColorXform.render(t,e.axisColor),t.closeNode()}createNewModel(t){let{attributes:e}=t;return{cfvo:[],minLength:m.toIntValue(e.minLength,0),maxLength:m.toIntValue(e.maxLength,100),border:m.toBoolValue(e.border,!1),gradient:m.toBoolValue(e.gradient,!0),negativeBarColorSameAsPositive:m.toBoolValue(e.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:m.toBoolValue(e.negativeBarBorderColorSameAsPositive,!0),axisPosition:m.toStringValue(e.axisPosition,"auto"),direction:m.toStringValue(e.direction,"leftToRight")}}onParserClose(t,e){const[,l]=t.split(":");switch(l){case"cfvo":this.model.cfvo.push(e.model);break;default:this.model[l]=e.model}}}},{"../../base-xform":32,"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-ext-xform":76}],80:[function(s,E,S){const m=s("../../base-xform");E.exports=class extends m{get tag(){return"xm:f"}render(o,a){o.leafNode(this.tag,null,a)}parseOpen(){this.model=""}parseText(o){this.model+=o}parseClose(o){return o!==this.tag}}},{"../../base-xform":32}],81:[function(s,E,S){const m=s("../../base-xform"),o=s("../../composite-xform"),a=s("./cfvo-ext-xform"),r=s("./cf-icon-ext-xform");E.exports=class extends o{constructor(){super(),this.map={"x14:cfvo":this.cfvoXform=new a,"x14:cfIcon":this.cfIconXform=new r}}get tag(){return"x14:iconSet"}render(t,e){t.openNode(this.tag,{iconSet:m.toStringAttribute(e.iconSet),reverse:m.toBoolAttribute(e.reverse,!1),showValue:m.toBoolAttribute(e.showValue,!0),custom:m.toBoolAttribute(e.icons,!1)}),e.cfvo.forEach(l=>{this.cfvoXform.render(t,l)}),e.icons&&e.icons.forEach((l,n)=>{l.iconId=n,this.cfIconXform.render(t,l)}),t.closeNode()}createNewModel(t){let{attributes:e}=t;return{cfvo:[],iconSet:m.toStringValue(e.iconSet,"3TrafficLights"),reverse:m.toBoolValue(e.reverse,!1),showValue:m.toBoolValue(e.showValue,!0)}}onParserClose(t,e){const[,l]=t.split(":");switch(l){case"cfvo":this.model.cfvo.push(e.model);break;case"cfIcon":this.model.icons||(this.model.icons=[]),this.model.icons.push(e.model);break;default:this.model[l]=e.model}}}},{"../../base-xform":32,"../../composite-xform":48,"./cf-icon-ext-xform":74,"./cfvo-ext-xform":76}],82:[function(s,E,S){const m=s("../../base-xform");E.exports=class extends m{get tag(){return"xm:sqref"}render(o,a){o.leafNode(this.tag,null,a)}parseOpen(){this.model=""}parseText(o){this.model+=o}parseClose(o){return o!==this.tag}}},{"../../base-xform":32}],83:[function(s,E,S){const m=s("../../base-xform"),o=s("../../composite-xform"),a=s("../../../../doc/range"),r=s("./databar-xform"),t=s("./ext-lst-ref-xform"),e=s("./formula-xform"),l=s("./color-scale-xform"),n=s("./icon-set-xform"),i={"3Triangles":!0,"3Stars":!0,"5Boxes":!0},c=u=>{const{type:d,operator:f}=u;switch(d){case"containsText":case"containsBlanks":case"notContainsBlanks":case"containsErrors":case"notContainsErrors":return{type:"containsText",operator:d};default:return{type:d,operator:f}}};class h extends o{constructor(){super(),this.map={dataBar:this.databarXform=new r,extLst:this.extLstRefXform=new t,formula:this.formulaXform=new e,colorScale:this.colorScaleXform=new l,iconSet:this.iconSetXform=new n}}get tag(){return"cfRule"}static isPrimitive(d){return d.type!=="iconSet"||!d.custom&&!i[d.iconSet]}render(d,f){switch(f.type){case"expression":this.renderExpression(d,f);break;case"cellIs":this.renderCellIs(d,f);break;case"top10":this.renderTop10(d,f);break;case"aboveAverage":this.renderAboveAverage(d,f);break;case"dataBar":this.renderDataBar(d,f);break;case"colorScale":this.renderColorScale(d,f);break;case"iconSet":this.renderIconSet(d,f);break;case"containsText":this.renderText(d,f);break;case"timePeriod":this.renderTimePeriod(d,f)}}renderExpression(d,f){d.openNode(this.tag,{type:"expression",dxfId:f.dxfId,priority:f.priority}),this.formulaXform.render(d,f.formulae[0]),d.closeNode()}renderCellIs(d,f){d.openNode(this.tag,{type:"cellIs",dxfId:f.dxfId,priority:f.priority,operator:f.operator}),f.formulae.forEach(w=>{this.formulaXform.render(d,w)}),d.closeNode()}renderTop10(d,f){d.leafNode(this.tag,{type:"top10",dxfId:f.dxfId,priority:f.priority,percent:m.toBoolAttribute(f.percent,!1),bottom:m.toBoolAttribute(f.bottom,!1),rank:m.toIntValue(f.rank,10,!0)})}renderAboveAverage(d,f){d.leafNode(this.tag,{type:"aboveAverage",dxfId:f.dxfId,priority:f.priority,aboveAverage:m.toBoolAttribute(f.aboveAverage,!0)})}renderDataBar(d,f){d.openNode(this.tag,{type:"dataBar",priority:f.priority}),this.databarXform.render(d,f),this.extLstRefXform.render(d,f),d.closeNode()}renderColorScale(d,f){d.openNode(this.tag,{type:"colorScale",priority:f.priority}),this.colorScaleXform.render(d,f),d.closeNode()}renderIconSet(d,f){h.isPrimitive(f)&&(d.openNode(this.tag,{type:"iconSet",priority:f.priority}),this.iconSetXform.render(d,f),d.closeNode())}renderText(d,f){d.openNode(this.tag,{type:f.operator,dxfId:f.dxfId,priority:f.priority,operator:m.toStringAttribute(f.operator,"containsText")});const w=(_=>{if(_.formulae&&_.formulae[0])return _.formulae[0];const A=new a(_.ref),{tl:N}=A;switch(_.operator){case"containsText":return`NOT(ISERROR(SEARCH("${_.text}",${N})))`;case"containsBlanks":return`LEN(TRIM(${N}))=0`;case"notContainsBlanks":return`LEN(TRIM(${N}))>0`;case"containsErrors":return`ISERROR(${N})`;case"notContainsErrors":return`NOT(ISERROR(${N}))`;default:return}})(f);w&&this.formulaXform.render(d,w),d.closeNode()}renderTimePeriod(d,f){d.openNode(this.tag,{type:"timePeriod",dxfId:f.dxfId,priority:f.priority,timePeriod:f.timePeriod});const w=(_=>{if(_.formulae&&_.formulae[0])return _.formulae[0];const A=new a(_.ref),{tl:N}=A;switch(_.timePeriod){case"thisWeek":return`AND(TODAY()-ROUNDDOWN(${N},0)<=WEEKDAY(TODAY())-1,ROUNDDOWN(${N},0)-TODAY()<=7-WEEKDAY(TODAY()))`;case"lastWeek":return`AND(TODAY()-ROUNDDOWN(${N},0)>=(WEEKDAY(TODAY())),TODAY()-ROUNDDOWN(${N},0)<(WEEKDAY(TODAY())+7))`;case"nextWeek":return`AND(ROUNDDOWN(${N},0)-TODAY()>(7-WEEKDAY(TODAY())),ROUNDDOWN(${N},0)-TODAY()<(15-WEEKDAY(TODAY())))`;case"yesterday":return`FLOOR(${N},1)=TODAY()-1`;case"today":return`FLOOR(${N},1)=TODAY()`;case"tomorrow":return`FLOOR(${N},1)=TODAY()+1`;case"last7Days":return`AND(TODAY()-FLOOR(${N},1)<=6,FLOOR(${N},1)<=TODAY())`;case"lastMonth":return`AND(MONTH(${N})=MONTH(EDATE(TODAY(),0-1)),YEAR(${N})=YEAR(EDATE(TODAY(),0-1)))`;case"thisMonth":return`AND(MONTH(${N})=MONTH(TODAY()),YEAR(${N})=YEAR(TODAY()))`;case"nextMonth":return`AND(MONTH(${N})=MONTH(EDATE(TODAY(),0+1)),YEAR(${N})=YEAR(EDATE(TODAY(),0+1)))`;default:return}})(f);w&&this.formulaXform.render(d,w),d.closeNode()}createNewModel(d){let{attributes:f}=d;return{...c(f),dxfId:m.toIntValue(f.dxfId),priority:m.toIntValue(f.priority),timePeriod:f.timePeriod,percent:m.toBoolValue(f.percent),bottom:m.toBoolValue(f.bottom),rank:m.toIntValue(f.rank),aboveAverage:m.toBoolValue(f.aboveAverage)}}onParserClose(d,f){switch(d){case"dataBar":case"extLst":case"colorScale":case"iconSet":Object.assign(this.model,f.model);break;case"formula":this.model.formulae=this.model.formulae||[],this.model.formulae.push(f.model)}}}E.exports=h},{"../../../../doc/range":10,"../../base-xform":32,"../../composite-xform":48,"./color-scale-xform":85,"./databar-xform":88,"./ext-lst-ref-xform":89,"./formula-xform":90,"./icon-set-xform":91}],84:[function(s,E,S){const m=s("../../base-xform");E.exports=class extends m{get tag(){return"cfvo"}render(o,a){o.leafNode(this.tag,{type:a.type,val:a.value})}parseOpen(o){this.model={type:o.attributes.type,value:m.toFloatValue(o.attributes.val)}}parseClose(o){return o!==this.tag}}},{"../../base-xform":32}],85:[function(s,E,S){const m=s("../../composite-xform"),o=s("../../style/color-xform"),a=s("./cfvo-xform");E.exports=class extends m{constructor(){super(),this.map={cfvo:this.cfvoXform=new a,color:this.colorXform=new o}}get tag(){return"colorScale"}render(r,t){r.openNode(this.tag),t.cfvo.forEach(e=>{this.cfvoXform.render(r,e)}),t.color.forEach(e=>{this.colorXform.render(r,e)}),r.closeNode()}createNewModel(r){return{cfvo:[],color:[]}}onParserClose(r,t){this.model[r].push(t.model)}}},{"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-xform":84}],86:[function(s,E,S){const m=s("../../composite-xform"),o=s("./cf-rule-xform");E.exports=class extends m{constructor(){super(),this.map={cfRule:new o}}get tag(){return"conditionalFormatting"}render(a,r){r.rules.some(o.isPrimitive)&&(a.openNode(this.tag,{sqref:r.ref}),r.rules.forEach(t=>{o.isPrimitive(t)&&(t.ref=r.ref,this.map.cfRule.render(a,t))}),a.closeNode())}createNewModel(a){let{attributes:r}=a;return{ref:r.sqref,rules:[]}}onParserClose(a,r){this.model.rules.push(r.model)}}},{"../../composite-xform":48,"./cf-rule-xform":83}],87:[function(s,E,S){const m=s("../../base-xform"),o=s("./conditional-formatting-xform");E.exports=class extends m{constructor(){super(),this.cfXform=new o}get tag(){return"conditionalFormatting"}reset(){this.model=[]}prepare(a,r){let t=a.reduce((e,l)=>Math.max(e,...l.rules.map(n=>n.priority||0)),1);a.forEach(e=>{e.rules.forEach(l=>{l.priority||(l.priority=t++),l.style&&(l.dxfId=r.styles.addDxfStyle(l.style))})})}render(a,r){r.forEach(t=>{this.cfXform.render(a,t)})}parseOpen(a){if(this.parser)return this.parser.parseOpen(a),!0;switch(a.name){case"conditionalFormatting":return this.parser=this.cfXform,this.parser.parseOpen(a),!0;default:return!1}}parseText(a){this.parser&&this.parser.parseText(a)}parseClose(a){return!!this.parser&&(!!this.parser.parseClose(a)||(this.model.push(this.parser.model),this.parser=void 0,!1))}reconcile(a,r){a.forEach(t=>{t.rules.forEach(e=>{e.dxfId!==void 0&&(e.style=r.styles.getDxfStyle(e.dxfId),delete e.dxfId)})})}}},{"../../base-xform":32,"./conditional-formatting-xform":86}],88:[function(s,E,S){const m=s("../../composite-xform"),o=s("../../style/color-xform"),a=s("./cfvo-xform");E.exports=class extends m{constructor(){super(),this.map={cfvo:this.cfvoXform=new a,color:this.colorXform=new o}}get tag(){return"dataBar"}render(r,t){r.openNode(this.tag),t.cfvo.forEach(e=>{this.cfvoXform.render(r,e)}),this.colorXform.render(r,t.color),r.closeNode()}createNewModel(){return{cfvo:[]}}onParserClose(r,t){switch(r){case"cfvo":this.model.cfvo.push(t.model);break;case"color":this.model.color=t.model}}}},{"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-xform":84}],89:[function(s,E,S){const m=s("../../base-xform"),o=s("../../composite-xform");class a extends m{get tag(){return"x14:id"}render(e,l){e.leafNode(this.tag,null,l)}parseOpen(){this.model=""}parseText(e){this.model+=e}parseClose(e){return e!==this.tag}}class r extends o{constructor(){super(),this.map={"x14:id":this.idXform=new a}}get tag(){return"ext"}render(e,l){e.openNode(this.tag,{uri:"{B025F937-C7B1-47D3-B67F-A62EFF666E3E}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"}),this.idXform.render(e,l.x14Id),e.closeNode()}createNewModel(){return{}}onParserClose(e,l){this.model.x14Id=l.model}}E.exports=class extends o{constructor(){super(),this.map={ext:new r}}get tag(){return"extLst"}render(t,e){t.openNode(this.tag),this.map.ext.render(t,e),t.closeNode()}createNewModel(){return{}}onParserClose(t,e){Object.assign(this.model,e.model)}}},{"../../base-xform":32,"../../composite-xform":48}],90:[function(s,E,S){const m=s("../../base-xform");E.exports=class extends m{get tag(){return"formula"}render(o,a){o.leafNode(this.tag,null,a)}parseOpen(){this.model=""}parseText(o){this.model+=o}parseClose(o){return o!==this.tag}}},{"../../base-xform":32}],91:[function(s,E,S){const m=s("../../base-xform"),o=s("../../composite-xform"),a=s("./cfvo-xform");E.exports=class extends o{constructor(){super(),this.map={cfvo:this.cfvoXform=new a}}get tag(){return"iconSet"}render(r,t){r.openNode(this.tag,{iconSet:m.toStringAttribute(t.iconSet,"3TrafficLights"),reverse:m.toBoolAttribute(t.reverse,!1),showValue:m.toBoolAttribute(t.showValue,!0)}),t.cfvo.forEach(e=>{this.cfvoXform.render(r,e)}),r.closeNode()}createNewModel(r){let{attributes:t}=r;return{iconSet:m.toStringValue(t.iconSet,"3TrafficLights"),reverse:m.toBoolValue(t.reverse),showValue:m.toBoolValue(t.showValue),cfvo:[]}}onParserClose(r,t){this.model[r].push(t.model)}}},{"../../base-xform":32,"../../composite-xform":48,"./cfvo-xform":84}],92:[function(s,E,S){const m=s("../../../utils/utils"),o=s("../base-xform");E.exports=class extends o{get tag(){return"col"}prepare(a,r){const t=r.styles.addStyleModel(a.style||{});t&&(a.styleId=t)}render(a,r){a.openNode("col"),a.addAttribute("min",r.min),a.addAttribute("max",r.max),r.width&&a.addAttribute("width",r.width),r.styleId&&a.addAttribute("style",r.styleId),r.hidden&&a.addAttribute("hidden","1"),r.bestFit&&a.addAttribute("bestFit","1"),r.outlineLevel&&a.addAttribute("outlineLevel",r.outlineLevel),r.collapsed&&a.addAttribute("collapsed","1"),a.addAttribute("customWidth","1"),a.closeNode()}parseOpen(a){if(a.name==="col"){const r=this.model={min:parseInt(a.attributes.min||"0",10),max:parseInt(a.attributes.max||"0",10),width:a.attributes.width===void 0?void 0:parseFloat(a.attributes.width||"0")};return a.attributes.style&&(r.styleId=parseInt(a.attributes.style,10)),m.parseBoolean(a.attributes.hidden)&&(r.hidden=!0),m.parseBoolean(a.attributes.bestFit)&&(r.bestFit=!0),a.attributes.outlineLevel&&(r.outlineLevel=parseInt(a.attributes.outlineLevel,10)),m.parseBoolean(a.attributes.collapsed)&&(r.collapsed=!0),!0}return!1}parseText(){}parseClose(){return!1}reconcile(a,r){a.styleId&&(a.style=r.styles.getStyleModel(a.styleId))}}},{"../../../utils/utils":27,"../base-xform":32}],93:[function(s,E,S){const m=s("../../../utils/under-dash"),o=s("../../../utils/utils"),a=s("../../../utils/col-cache"),r=s("../base-xform"),t=s("../../../doc/range");function e(n,i,c,h){const u=i[c];u!==void 0?n[c]=u:h!==void 0&&(n[c]=h)}function l(n,i,c,h){const u=i[c];u!==void 0?n[c]=o.parseBoolean(u):h!==void 0&&(n[c]=h)}E.exports=class extends r{get tag(){return"dataValidations"}render(n,i){const c=function(h){const u=m.map(h,(w,_)=>({address:_,dataValidation:w,marked:!1})).sort((w,_)=>m.strcmp(w.address,_.address)),d=m.keyBy(u,"address"),f=(w,_,A)=>{for(let N=0;N<_;N++){const L=a.encodeAddress(w.row+N,A);if(!h[L]||!m.isEqual(h[w.address],h[L]))return!1}return!0};return u.map(w=>{if(!w.marked){const _=a.decodeEx(w.address);if(_.dimensions)return d[_.dimensions].marked=!0,{...w.dataValidation,sqref:w.address};let A=1,N=a.encodeAddress(_.row+A,_.col);for(;h[N]&&m.isEqual(w.dataValidation,h[N]);)A++,N=a.encodeAddress(_.row+A,_.col);let L=1;for(;f(_,A,_.col+L);)L++;for(let j=0;j1||L>1){const j=_.row+(A-1),P=_.col+(L-1);return{...w.dataValidation,sqref:`${w.address}:${a.encodeAddress(j,P)}`}}return{...w.dataValidation,sqref:w.address}}return null}).filter(Boolean)}(i);c.length&&(n.openNode("dataValidations",{count:c.length}),c.forEach(h=>{n.openNode("dataValidation"),h.type!=="any"&&(n.addAttribute("type",h.type),h.operator&&h.type!=="list"&&h.operator!=="between"&&n.addAttribute("operator",h.operator),h.allowBlank&&n.addAttribute("allowBlank","1")),h.showInputMessage&&n.addAttribute("showInputMessage","1"),h.promptTitle&&n.addAttribute("promptTitle",h.promptTitle),h.prompt&&n.addAttribute("prompt",h.prompt),h.showErrorMessage&&n.addAttribute("showErrorMessage","1"),h.errorStyle&&n.addAttribute("errorStyle",h.errorStyle),h.errorTitle&&n.addAttribute("errorTitle",h.errorTitle),h.error&&n.addAttribute("error",h.error),n.addAttribute("sqref",h.sqref),(h.formulae||[]).forEach((u,d)=>{n.openNode("formula"+(d+1)),h.type==="date"?n.writeText(o.dateToExcel(new Date(u))):n.writeText(u),n.closeNode()}),n.closeNode()}),n.closeNode())}parseOpen(n){switch(n.name){case"dataValidations":return this.model={},!0;case"dataValidation":{this._address=n.attributes.sqref;const i={type:n.attributes.type||"any",formulae:[]};switch(n.attributes.type&&l(i,n.attributes,"allowBlank"),l(i,n.attributes,"showInputMessage"),l(i,n.attributes,"showErrorMessage"),i.type){case"any":case"list":case"custom":break;default:e(i,n.attributes,"operator","between")}return e(i,n.attributes,"promptTitle"),e(i,n.attributes,"prompt"),e(i,n.attributes,"errorStyle"),e(i,n.attributes,"errorTitle"),e(i,n.attributes,"error"),this._dataValidation=i,!0}case"formula1":case"formula2":return this._formula=[],!0;default:return!1}}parseText(n){this._formula&&this._formula.push(n)}parseClose(n){switch(n){case"dataValidations":return!1;case"dataValidation":return this._dataValidation.formulae&&this._dataValidation.formulae.length||(delete this._dataValidation.formulae,delete this._dataValidation.operator),(this._address.split(/\s+/g)||[]).forEach(i=>{i.includes(":")?new t(i).forEachAddress(c=>{this.model[c]=this._dataValidation}):this.model[i]=this._dataValidation}),!0;case"formula1":case"formula2":{let i=this._formula.join("");switch(this._dataValidation.type){case"whole":case"textLength":i=parseInt(i,10);break;case"decimal":i=parseFloat(i);break;case"date":i=o.excelToDate(parseFloat(i))}return this._dataValidation.formulae.push(i),this._formula=void 0,!0}default:return!0}}}},{"../../../doc/range":10,"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/utils":27,"../base-xform":32}],94:[function(s,E,S){const m=s("../base-xform");E.exports=class extends m{get tag(){return"dimension"}render(o,a){a&&o.leafNode("dimension",{ref:a})}parseOpen(o){return o.name==="dimension"&&(this.model=o.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],95:[function(s,E,S){const m=s("../base-xform");E.exports=class extends m{get tag(){return"drawing"}render(o,a){a&&o.leafNode(this.tag,{"r:id":a.rId})}parseOpen(o){switch(o.name){case this.tag:return this.model={rId:o.attributes["r:id"]},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],96:[function(s,E,S){const m=s("../composite-xform"),o=s("./cf-ext/conditional-formattings-ext-xform");class a extends m{constructor(){super(),this.map={"x14:conditionalFormattings":this.conditionalFormattings=new o}}get tag(){return"ext"}hasContent(t){return this.conditionalFormattings.hasContent(t.conditionalFormattings)}prepare(t,e){this.conditionalFormattings.prepare(t.conditionalFormattings,e)}render(t,e){t.openNode("ext",{uri:"{78C0D931-6437-407d-A8EE-F0AAD7539E65}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"}),this.conditionalFormattings.render(t,e.conditionalFormattings),t.closeNode()}createNewModel(){return{}}onParserClose(t,e){this.model[t]=e.model}}E.exports=class extends m{constructor(){super(),this.map={ext:this.ext=new a}}get tag(){return"extLst"}prepare(r,t){this.ext.prepare(r,t)}hasContent(r){return this.ext.hasContent(r)}render(r,t){this.hasContent(t)&&(r.openNode("extLst"),this.ext.render(r,t),r.closeNode())}createNewModel(){return{}}onParserClose(r,t){Object.assign(this.model,t.model)}}},{"../composite-xform":48,"./cf-ext/conditional-formattings-ext-xform":78}],97:[function(s,E,S){const m=s("../base-xform");E.exports=class extends m{get tag(){return"headerFooter"}render(o,a){if(a){o.addRollback();let r=!1;o.openNode("headerFooter"),a.differentFirst&&(o.addAttribute("differentFirst","1"),r=!0),a.differentOddEven&&(o.addAttribute("differentOddEven","1"),r=!0),a.oddHeader&&typeof a.oddHeader=="string"&&(o.leafNode("oddHeader",null,a.oddHeader),r=!0),a.oddFooter&&typeof a.oddFooter=="string"&&(o.leafNode("oddFooter",null,a.oddFooter),r=!0),a.evenHeader&&typeof a.evenHeader=="string"&&(o.leafNode("evenHeader",null,a.evenHeader),r=!0),a.evenFooter&&typeof a.evenFooter=="string"&&(o.leafNode("evenFooter",null,a.evenFooter),r=!0),a.firstHeader&&typeof a.firstHeader=="string"&&(o.leafNode("firstHeader",null,a.firstHeader),r=!0),a.firstFooter&&typeof a.firstFooter=="string"&&(o.leafNode("firstFooter",null,a.firstFooter),r=!0),r?(o.closeNode(),o.commit()):o.rollback()}}parseOpen(o){switch(o.name){case"headerFooter":return this.model={},o.attributes.differentFirst&&(this.model.differentFirst=parseInt(o.attributes.differentFirst,0)===1),o.attributes.differentOddEven&&(this.model.differentOddEven=parseInt(o.attributes.differentOddEven,0)===1),!0;case"oddHeader":return this.currentNode="oddHeader",!0;case"oddFooter":return this.currentNode="oddFooter",!0;case"evenHeader":return this.currentNode="evenHeader",!0;case"evenFooter":return this.currentNode="evenFooter",!0;case"firstHeader":return this.currentNode="firstHeader",!0;case"firstFooter":return this.currentNode="firstFooter",!0;default:return!1}}parseText(o){switch(this.currentNode){case"oddHeader":this.model.oddHeader=o;break;case"oddFooter":this.model.oddFooter=o;break;case"evenHeader":this.model.evenHeader=o;break;case"evenFooter":this.model.evenFooter=o;break;case"firstHeader":this.model.firstHeader=o;break;case"firstFooter":this.model.firstFooter=o}}parseClose(){switch(this.currentNode){case"oddHeader":case"oddFooter":case"evenHeader":case"evenFooter":case"firstHeader":case"firstFooter":return this.currentNode=void 0,!0;default:return!1}}}},{"../base-xform":32}],98:[function(s,E,S){const m=s("../base-xform");E.exports=class extends m{get tag(){return"hyperlink"}render(o,a){this.isInternalLink(a)?o.leafNode("hyperlink",{ref:a.address,"r:id":a.rId,tooltip:a.tooltip,location:a.target}):o.leafNode("hyperlink",{ref:a.address,"r:id":a.rId,tooltip:a.tooltip})}parseOpen(o){return o.name==="hyperlink"&&(this.model={address:o.attributes.ref,rId:o.attributes["r:id"],tooltip:o.attributes.tooltip},o.attributes.location&&(this.model.target=o.attributes.location),!0)}parseText(){}parseClose(){return!1}isInternalLink(o){return o.target&&/^[^!]+![a-zA-Z]+[\d]+$/.test(o.target)}}},{"../base-xform":32}],99:[function(s,E,S){const m=s("../base-xform");E.exports=class extends m{get tag(){return"mergeCell"}render(o,a){o.leafNode("mergeCell",{ref:a})}parseOpen(o){return o.name==="mergeCell"&&(this.model=o.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],100:[function(s,E,S){const m=s("../../../utils/under-dash"),o=s("../../../doc/range"),a=s("../../../utils/col-cache"),r=s("../../../doc/enums");E.exports=class{constructor(){this.merges={}}add(t){if(this.merges[t.master])this.merges[t.master].expandToAddress(t.address);else{const e=`${t.master}:${t.address}`;this.merges[t.master]=new o(e)}}get mergeCells(){return m.map(this.merges,t=>t.range)}reconcile(t,e){m.each(t,l=>{const n=a.decode(l);for(let i=n.top;i<=n.bottom;i++){const c=e[i-1];for(let h=n.left;h<=n.right;h++){const u=c.cells[h-1];u?u.type===r.ValueType.Merge&&(u.master=n.tl):c.cells[h]={type:r.ValueType.Null,address:a.encodeAddress(i,h)}}}})}getMasterAddress(t){const e=this.hash[t];return e&&e.tl}}},{"../../../doc/enums":7,"../../../doc/range":10,"../../../utils/col-cache":19,"../../../utils/under-dash":26}],101:[function(s,E,S){const m=s("../base-xform"),o=a=>a!==void 0;E.exports=class extends m{get tag(){return"outlinePr"}render(a,r){return!(!r||!o(r.summaryBelow)&&!o(r.summaryRight))&&(a.leafNode(this.tag,{summaryBelow:o(r.summaryBelow)?Number(r.summaryBelow):void 0,summaryRight:o(r.summaryRight)?Number(r.summaryRight):void 0}),!0)}parseOpen(a){return a.name===this.tag&&(this.model={summaryBelow:o(a.attributes.summaryBelow)?!!Number(a.attributes.summaryBelow):void 0,summaryRight:o(a.attributes.summaryRight)?!!Number(a.attributes.summaryRight):void 0},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],102:[function(s,E,S){const m=s("../base-xform");E.exports=class extends m{get tag(){return"brk"}render(o,a){o.leafNode("brk",a)}parseOpen(o){return o.name==="brk"&&(this.model=o.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],103:[function(s,E,S){const m=s("../../../utils/under-dash"),o=s("../base-xform");E.exports=class extends o{get tag(){return"pageMargins"}render(a,r){if(r){const t={left:r.left,right:r.right,top:r.top,bottom:r.bottom,header:r.header,footer:r.footer};m.some(t,e=>e!==void 0)&&a.leafNode(this.tag,t)}}parseOpen(a){switch(a.name){case this.tag:return this.model={left:parseFloat(a.attributes.left||.7),right:parseFloat(a.attributes.right||.7),top:parseFloat(a.attributes.top||.75),bottom:parseFloat(a.attributes.bottom||.75),header:parseFloat(a.attributes.header||.3),footer:parseFloat(a.attributes.footer||.3)},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],104:[function(s,E,S){const m=s("../base-xform");E.exports=class extends m{get tag(){return"pageSetUpPr"}render(o,a){return!(!a||!a.fitToPage)&&(o.leafNode(this.tag,{fitToPage:a.fitToPage?"1":void 0}),!0)}parseOpen(o){return o.name===this.tag&&(this.model={fitToPage:o.attributes.fitToPage==="1"},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],105:[function(s,E,S){const m=s("../../../utils/under-dash"),o=s("../base-xform");function a(l){return l?"1":void 0}function r(l){switch(l){case"overThenDown":return l;default:return}}function t(l){switch(l){case"atEnd":case"asDisplyed":return l;default:return}}function e(l){switch(l){case"dash":case"blank":case"NA":return l;default:return}}E.exports=class extends o{get tag(){return"pageSetup"}render(l,n){if(n){const i={paperSize:n.paperSize,orientation:n.orientation,horizontalDpi:n.horizontalDpi,verticalDpi:n.verticalDpi,pageOrder:r(n.pageOrder),blackAndWhite:a(n.blackAndWhite),draft:a(n.draft),cellComments:t(n.cellComments),errors:e(n.errors),scale:n.scale,fitToWidth:n.fitToWidth,fitToHeight:n.fitToHeight,firstPageNumber:n.firstPageNumber,useFirstPageNumber:a(n.firstPageNumber),usePrinterDefaults:a(n.usePrinterDefaults),copies:n.copies};m.some(i,c=>c!==void 0)&&l.leafNode(this.tag,i)}}parseOpen(l){switch(l.name){case this.tag:return this.model={paperSize:(n=l.attributes.paperSize,n!==void 0?parseInt(n,10):void 0),orientation:l.attributes.orientation||"portrait",horizontalDpi:parseInt(l.attributes.horizontalDpi||"4294967295",10),verticalDpi:parseInt(l.attributes.verticalDpi||"4294967295",10),pageOrder:l.attributes.pageOrder||"downThenOver",blackAndWhite:l.attributes.blackAndWhite==="1",draft:l.attributes.draft==="1",cellComments:l.attributes.cellComments||"None",errors:l.attributes.errors||"displayed",scale:parseInt(l.attributes.scale||"100",10),fitToWidth:parseInt(l.attributes.fitToWidth||"1",10),fitToHeight:parseInt(l.attributes.fitToHeight||"1",10),firstPageNumber:parseInt(l.attributes.firstPageNumber||"1",10),useFirstPageNumber:l.attributes.useFirstPageNumber==="1",usePrinterDefaults:l.attributes.usePrinterDefaults==="1",copies:parseInt(l.attributes.copies||"1",10)},!0;default:return!1}var n}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],106:[function(s,E,S){const m=s("../base-xform");E.exports=class extends m{get tag(){return"picture"}render(o,a){a&&o.leafNode(this.tag,{"r:id":a.rId})}parseOpen(o){switch(o.name){case this.tag:return this.model={rId:o.attributes["r:id"]},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],107:[function(s,E,S){const m=s("../../../utils/under-dash"),o=s("../base-xform");function a(r){return r?"1":void 0}E.exports=class extends o{get tag(){return"printOptions"}render(r,t){if(t){const e={headings:a(t.showRowColHeaders),gridLines:a(t.showGridLines),horizontalCentered:a(t.horizontalCentered),verticalCentered:a(t.verticalCentered)};m.some(e,l=>l!==void 0)&&r.leafNode(this.tag,e)}}parseOpen(r){switch(r.name){case this.tag:return this.model={showRowColHeaders:r.attributes.headings==="1",showGridLines:r.attributes.gridLines==="1",horizontalCentered:r.attributes.horizontalCentered==="1",verticalCentered:r.attributes.verticalCentered==="1"},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],108:[function(s,E,S){const m=s("./page-breaks-xform"),o=s("../list-xform");E.exports=class extends o{constructor(){super({tag:"rowBreaks",count:!0,childXform:new m})}render(a,r){if(r&&r.length){a.openNode(this.tag,this.$),this.count&&(a.addAttribute(this.$count,r.length),a.addAttribute("manualBreakCount",r.length));const{childXform:t}=this;r.forEach(e=>{t.render(a,e)}),a.closeNode()}else this.empty&&a.leafNode(this.tag)}}},{"../list-xform":71,"./page-breaks-xform":102}],109:[function(s,E,S){const m=s("../base-xform"),o=s("../../../utils/utils"),a=s("./cell-xform");E.exports=class extends m{constructor(r){super(),this.maxItems=r&&r.maxItems,this.map={c:new a}}get tag(){return"row"}prepare(r,t){const e=t.styles.addStyleModel(r.style);e&&(r.styleId=e);const l=this.map.c;r.cells.forEach(n=>{l.prepare(n,t)})}render(r,t,e){r.openNode("row"),r.addAttribute("r",t.number),t.height&&(r.addAttribute("ht",t.height),r.addAttribute("customHeight","1")),t.hidden&&r.addAttribute("hidden","1"),t.min>0&&t.max>0&&t.min<=t.max&&r.addAttribute("spans",`${t.min}:${t.max}`),t.styleId&&(r.addAttribute("s",t.styleId),r.addAttribute("customFormat","1")),r.addAttribute("x14ac:dyDescent","0.25"),t.outlineLevel&&r.addAttribute("outlineLevel",t.outlineLevel),t.collapsed&&r.addAttribute("collapsed","1");const l=this.map.c;t.cells.forEach(n=>{l.render(r,n,e)}),r.closeNode()}parseOpen(r){if(this.parser)return this.parser.parseOpen(r),!0;if(r.name==="row"){this.numRowsSeen+=1;const t=r.attributes.spans?r.attributes.spans.split(":").map(l=>parseInt(l,10)):[void 0,void 0],e=this.model={number:parseInt(r.attributes.r,10),min:t[0],max:t[1],cells:[]};return r.attributes.s&&(e.styleId=parseInt(r.attributes.s,10)),o.parseBoolean(r.attributes.hidden)&&(e.hidden=!0),o.parseBoolean(r.attributes.bestFit)&&(e.bestFit=!0),r.attributes.ht&&(e.height=parseFloat(r.attributes.ht)),r.attributes.outlineLevel&&(e.outlineLevel=parseInt(r.attributes.outlineLevel,10)),o.parseBoolean(r.attributes.collapsed)&&(e.collapsed=!0),!0}return this.parser=this.map[r.name],!!this.parser&&(this.parser.parseOpen(r),!0)}parseText(r){this.parser&&this.parser.parseText(r)}parseClose(r){if(this.parser){if(!this.parser.parseClose(r)){if(this.model.cells.push(this.parser.model),this.maxItems&&this.model.cells.length>this.maxItems)throw new Error(`Max column count (${this.maxItems}) exceeded`);this.parser=void 0}return!0}return!1}reconcile(r,t){r.style=r.styleId?t.styles.getStyleModel(r.styleId):{},r.styleId!==void 0&&(r.styleId=void 0);const e=this.map.c;r.cells.forEach(l=>{e.reconcile(l,t)})}}},{"../../../utils/utils":27,"../base-xform":32,"./cell-xform":73}],110:[function(s,E,S){const m=s("../../../utils/under-dash"),o=s("../base-xform");E.exports=class extends o{get tag(){return"sheetFormatPr"}render(a,r){if(r){const t={defaultRowHeight:r.defaultRowHeight,outlineLevelRow:r.outlineLevelRow,outlineLevelCol:r.outlineLevelCol,"x14ac:dyDescent":r.dyDescent};r.defaultColWidth&&(t.defaultColWidth=r.defaultColWidth),r.defaultRowHeight&&r.defaultRowHeight===15||(t.customHeight="1"),m.some(t,e=>e!==void 0)&&a.leafNode("sheetFormatPr",t)}}parseOpen(a){return a.name==="sheetFormatPr"&&(this.model={defaultRowHeight:parseFloat(a.attributes.defaultRowHeight||"0"),dyDescent:parseFloat(a.attributes["x14ac:dyDescent"]||"0"),outlineLevelRow:parseInt(a.attributes.outlineLevelRow||"0",10),outlineLevelCol:parseInt(a.attributes.outlineLevelCol||"0",10)},a.attributes.defaultColWidth&&(this.model.defaultColWidth=parseFloat(a.attributes.defaultColWidth)),!0)}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],111:[function(s,E,S){const m=s("../base-xform"),o=s("../style/color-xform"),a=s("./page-setup-properties-xform"),r=s("./outline-properties-xform");E.exports=class extends m{constructor(){super(),this.map={tabColor:new o("tabColor"),pageSetUpPr:new a,outlinePr:new r}}get tag(){return"sheetPr"}render(t,e){if(e){t.addRollback(),t.openNode("sheetPr");let l=!1;l=this.map.tabColor.render(t,e.tabColor)||l,l=this.map.pageSetUpPr.render(t,e.pageSetup)||l,l=this.map.outlinePr.render(t,e.outlineProperties)||l,l?(t.closeNode(),t.commit()):t.rollback()}}parseOpen(t){return this.parser?(this.parser.parseOpen(t),!0):t.name===this.tag?(this.reset(),!0):!!this.map[t.name]&&(this.parser=this.map[t.name],this.parser.parseOpen(t),!0)}parseText(t){return!!this.parser&&(this.parser.parseText(t),!0)}parseClose(t){return this.parser?(this.parser.parseClose(t)||(this.parser=void 0),!0):(this.map.tabColor.model||this.map.pageSetUpPr.model||this.map.outlinePr.model?(this.model={},this.map.tabColor.model&&(this.model.tabColor=this.map.tabColor.model),this.map.pageSetUpPr.model&&(this.model.pageSetup=this.map.pageSetUpPr.model),this.map.outlinePr.model&&(this.model.outlineProperties=this.map.outlinePr.model)):this.model=null,!1)}}},{"../base-xform":32,"../style/color-xform":128,"./outline-properties-xform":101,"./page-setup-properties-xform":104}],112:[function(s,E,S){const m=s("../../../utils/under-dash"),o=s("../base-xform");function a(t,e){return t?e:void 0}function r(t,e){return t===e||void 0}E.exports=class extends o{get tag(){return"sheetProtection"}render(t,e){if(e){const l={sheet:a(e.sheet,"1"),selectLockedCells:e.selectLockedCells===!1?"1":void 0,selectUnlockedCells:e.selectUnlockedCells===!1?"1":void 0,formatCells:a(e.formatCells,"0"),formatColumns:a(e.formatColumns,"0"),formatRows:a(e.formatRows,"0"),insertColumns:a(e.insertColumns,"0"),insertRows:a(e.insertRows,"0"),insertHyperlinks:a(e.insertHyperlinks,"0"),deleteColumns:a(e.deleteColumns,"0"),deleteRows:a(e.deleteRows,"0"),sort:a(e.sort,"0"),autoFilter:a(e.autoFilter,"0"),pivotTables:a(e.pivotTables,"0")};e.sheet&&(l.algorithmName=e.algorithmName,l.hashValue=e.hashValue,l.saltValue=e.saltValue,l.spinCount=e.spinCount,l.objects=a(e.objects===!1,"1"),l.scenarios=a(e.scenarios===!1,"1")),m.some(l,n=>n!==void 0)&&t.leafNode(this.tag,l)}}parseOpen(t){switch(t.name){case this.tag:return this.model={sheet:r(t.attributes.sheet,"1"),objects:t.attributes.objects!=="1"&&void 0,scenarios:t.attributes.scenarios!=="1"&&void 0,selectLockedCells:t.attributes.selectLockedCells!=="1"&&void 0,selectUnlockedCells:t.attributes.selectUnlockedCells!=="1"&&void 0,formatCells:r(t.attributes.formatCells,"0"),formatColumns:r(t.attributes.formatColumns,"0"),formatRows:r(t.attributes.formatRows,"0"),insertColumns:r(t.attributes.insertColumns,"0"),insertRows:r(t.attributes.insertRows,"0"),insertHyperlinks:r(t.attributes.insertHyperlinks,"0"),deleteColumns:r(t.attributes.deleteColumns,"0"),deleteRows:r(t.attributes.deleteRows,"0"),sort:r(t.attributes.sort,"0"),autoFilter:r(t.attributes.autoFilter,"0"),pivotTables:r(t.attributes.pivotTables,"0")},t.attributes.algorithmName&&(this.model.algorithmName=t.attributes.algorithmName,this.model.hashValue=t.attributes.hashValue,this.model.saltValue=t.attributes.saltValue,this.model.spinCount=parseInt(t.attributes.spinCount,10)),!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],113:[function(s,E,S){const m=s("../../../utils/col-cache"),o=s("../base-xform"),a={frozen:"frozen",frozenSplit:"frozen",split:"split"};E.exports=class extends o{get tag(){return"sheetView"}prepare(r){switch(r.state){case"frozen":case"split":break;default:r.state="normal"}}render(r,t){r.openNode("sheetView",{workbookViewId:t.workbookViewId||0});const e=function(h,u,d){d&&r.addAttribute(h,u)};let l,n,i,c;switch(e("rightToLeft","1",t.rightToLeft===!0),e("tabSelected","1",t.tabSelected),e("showRuler","0",t.showRuler===!1),e("showRowColHeaders","0",t.showRowColHeaders===!1),e("showGridLines","0",t.showGridLines===!1),e("zoomScale",t.zoomScale,t.zoomScale),e("zoomScaleNormal",t.zoomScaleNormal,t.zoomScaleNormal),e("view",t.style,t.style),t.state){case"frozen":n=t.xSplit||0,i=t.ySplit||0,l=t.topLeftCell||m.getAddress(i+1,n+1).address,c=(t.xSplit&&t.ySplit?"bottomRight":t.xSplit&&"topRight")||"bottomLeft",r.leafNode("pane",{xSplit:t.xSplit||void 0,ySplit:t.ySplit||void 0,topLeftCell:l,activePane:c,state:"frozen"}),r.leafNode("selection",{pane:c,activeCell:t.activeCell,sqref:t.activeCell});break;case"split":t.activePane==="topLeft"&&(t.activePane=void 0),r.leafNode("pane",{xSplit:t.xSplit||void 0,ySplit:t.ySplit||void 0,topLeftCell:t.topLeftCell,activePane:t.activePane}),r.leafNode("selection",{pane:t.activePane,activeCell:t.activeCell,sqref:t.activeCell});break;case"normal":t.activeCell&&r.leafNode("selection",{activeCell:t.activeCell,sqref:t.activeCell})}r.closeNode()}parseOpen(r){switch(r.name){case"sheetView":return this.sheetView={workbookViewId:parseInt(r.attributes.workbookViewId,10),rightToLeft:r.attributes.rightToLeft==="1",tabSelected:r.attributes.tabSelected==="1",showRuler:r.attributes.showRuler!=="0",showRowColHeaders:r.attributes.showRowColHeaders!=="0",showGridLines:r.attributes.showGridLines!=="0",zoomScale:parseInt(r.attributes.zoomScale||"100",10),zoomScaleNormal:parseInt(r.attributes.zoomScaleNormal||"100",10),style:r.attributes.view},this.pane=void 0,this.selections={},!0;case"pane":return this.pane={xSplit:parseInt(r.attributes.xSplit||"0",10),ySplit:parseInt(r.attributes.ySplit||"0",10),topLeftCell:r.attributes.topLeftCell,activePane:r.attributes.activePane||"topLeft",state:r.attributes.state},!0;case"selection":{const t=r.attributes.pane||"topLeft";return this.selections[t]={pane:t,activeCell:r.attributes.activeCell},!0}default:return!1}}parseText(){}parseClose(r){let t,e;switch(r){case"sheetView":return this.sheetView&&this.pane?(t=this.model={workbookViewId:this.sheetView.workbookViewId,rightToLeft:this.sheetView.rightToLeft,state:a[this.pane.state]||"split",xSplit:this.pane.xSplit,ySplit:this.pane.ySplit,topLeftCell:this.pane.topLeftCell,showRuler:this.sheetView.showRuler,showRowColHeaders:this.sheetView.showRowColHeaders,showGridLines:this.sheetView.showGridLines,zoomScale:this.sheetView.zoomScale,zoomScaleNormal:this.sheetView.zoomScaleNormal},this.model.state==="split"&&(t.activePane=this.pane.activePane),e=this.selections[this.pane.activePane],e&&e.activeCell&&(t.activeCell=e.activeCell),this.sheetView.style&&(t.style=this.sheetView.style)):(t=this.model={workbookViewId:this.sheetView.workbookViewId,rightToLeft:this.sheetView.rightToLeft,state:"normal",showRuler:this.sheetView.showRuler,showRowColHeaders:this.sheetView.showRowColHeaders,showGridLines:this.sheetView.showGridLines,zoomScale:this.sheetView.zoomScale,zoomScaleNormal:this.sheetView.zoomScaleNormal},e=this.selections.topLeft,e&&e.activeCell&&(t.activeCell=e.activeCell),this.sheetView.style&&(t.style=this.sheetView.style)),!1;default:return!0}}reconcile(){}}},{"../../../utils/col-cache":19,"../base-xform":32}],114:[function(s,E,S){const m=s("../base-xform");E.exports=class extends m{get tag(){return"tablePart"}render(o,a){a&&o.leafNode(this.tag,{"r:id":a.rId})}parseOpen(o){switch(o.name){case this.tag:return this.model={rId:o.attributes["r:id"]},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],115:[function(s,E,S){const m=s("../../../utils/under-dash"),o=s("../../../utils/col-cache"),a=s("../../../utils/xml-stream"),r=s("../../rel-type"),t=s("./merges"),e=s("../base-xform"),l=s("../list-xform"),n=s("./row-xform"),i=s("./col-xform"),c=s("./dimension-xform"),h=s("./hyperlink-xform"),u=s("./merge-cell-xform"),d=s("./data-validations-xform"),f=s("./sheet-properties-xform"),w=s("./sheet-format-properties-xform"),_=s("./sheet-view-xform"),A=s("./sheet-protection-xform"),N=s("./page-margins-xform"),L=s("./page-setup-xform"),j=s("./print-options-xform"),P=s("./auto-filter-xform"),D=s("./picture-xform"),$=s("./drawing-xform"),B=s("./table-part-xform"),x=s("./row-breaks-xform"),M=s("./header-footer-xform"),v=s("./cf/conditional-formattings-xform"),p=s("./ext-lst-xform"),b=(y,k)=>{if(!k||!k.length)return y;if(!y||!y.length)return k;const R={},I={};return y.forEach(z=>{R[z.ref]=z,z.rules.forEach(U=>{const{x14Id:q}=U;q&&(I[q]=U)})}),k.forEach(z=>{z.rules.forEach(U=>{const q=I[U.x14Id];q?((O,H)=>{Object.keys(H).forEach(T=>{const C=O[T],F=H[T];C===void 0&&F!==void 0&&(O[T]=F)})})(q,U):R[z.ref]?R[z.ref].rules.push(U):y.push({ref:z.ref,rules:[U]})})}),y};class g extends e{constructor(k){super();const{maxRows:R,maxCols:I,ignoreNodes:z}=k||{};this.ignoreNodes=z||[],this.map={sheetPr:new f,dimension:new c,sheetViews:new l({tag:"sheetViews",count:!1,childXform:new _}),sheetFormatPr:new w,cols:new l({tag:"cols",count:!1,childXform:new i}),sheetData:new l({tag:"sheetData",count:!1,empty:!0,childXform:new n({maxItems:I}),maxItems:R}),autoFilter:new P,mergeCells:new l({tag:"mergeCells",count:!0,childXform:new u}),rowBreaks:new x,hyperlinks:new l({tag:"hyperlinks",count:!1,childXform:new h}),pageMargins:new N,dataValidations:new d,pageSetup:new L,headerFooter:new M,printOptions:new j,picture:new D,drawing:new $,sheetProtection:new A,tableParts:new l({tag:"tableParts",count:!0,childXform:new B}),conditionalFormatting:new v,extLst:new p}}prepare(k,R){R.merges=new t,k.hyperlinks=R.hyperlinks=[],k.comments=R.comments=[],R.formulae={},R.siFormulae=0,this.map.cols.prepare(k.cols,R),this.map.sheetData.prepare(k.rows,R),this.map.conditionalFormatting.prepare(k.conditionalFormattings,R),k.mergeCells=R.merges.mergeCells;const I=k.rels=[];function z(O){return"rId"+(O.length+1)}if(k.hyperlinks.forEach(O=>{const H=z(I);O.rId=H,I.push({Id:H,Type:r.Hyperlink,Target:O.target,TargetMode:"External"})}),k.comments.length>0){const O={Id:z(I),Type:r.Comments,Target:`../comments${k.id}.xml`};I.push(O);const H={Id:z(I),Type:r.VmlDrawing,Target:`../drawings/vmlDrawing${k.id}.vml`};I.push(H),k.comments.forEach(T=>{T.refAddress=o.decodeAddress(T.ref)}),R.commentRefs.push({commentName:"comments"+k.id,vmlDrawing:"vmlDrawing"+k.id})}const U=[];let q;k.media.forEach(O=>{if(O.type==="background"){const H=z(I);q=R.media[O.imageId],I.push({Id:H,Type:r.Image,Target:`../media/${q.name}.${q.extension}`}),k.background={rId:H},k.image=R.media[O.imageId]}else if(O.type==="image"){let{drawing:H}=k;q=R.media[O.imageId],H||(H=k.drawing={rId:z(I),name:"drawing"+ ++R.drawingsCount,anchors:[],rels:[]},R.drawings.push(H),I.push({Id:H.rId,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",Target:`../drawings/${H.name}.xml`}));let T=this.preImageId===O.imageId?U[O.imageId]:U[H.rels.length];T||(T=z(H.rels),U[H.rels.length]=T,H.rels.push({Id:T,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",Target:`../media/${q.name}.${q.extension}`}));const C={picture:{rId:T},range:O.range};if(O.hyperlinks&&O.hyperlinks.hyperlink){const F=z(H.rels);U[H.rels.length]=F,C.picture.hyperlinks={tooltip:O.hyperlinks.tooltip,rId:F},H.rels.push({Id:F,Type:r.Hyperlink,Target:O.hyperlinks.hyperlink,TargetMode:"External"})}this.preImageId=O.imageId,H.anchors.push(C)}}),k.tables.forEach(O=>{const H=z(I);O.rId=H,I.push({Id:H,Type:r.Table,Target:"../tables/"+O.target}),O.columns.forEach(T=>{const{style:C}=T;C&&(T.dxfId=R.styles.addDxfStyle(C))})}),this.map.extLst.prepare(k,R)}render(k,R){k.openXml(a.StdDocAttributes),k.openNode("worksheet",g.WORKSHEET_ATTRIBUTES);const I=R.properties?{defaultRowHeight:R.properties.defaultRowHeight,dyDescent:R.properties.dyDescent,outlineLevelCol:R.properties.outlineLevelCol,outlineLevelRow:R.properties.outlineLevelRow}:void 0;R.properties&&R.properties.defaultColWidth&&(I.defaultColWidth=R.properties.defaultColWidth);const z={outlineProperties:R.properties&&R.properties.outlineProperties,tabColor:R.properties&&R.properties.tabColor,pageSetup:R.pageSetup&&R.pageSetup.fitToPage?{fitToPage:R.pageSetup.fitToPage}:void 0},U=R.pageSetup&&R.pageSetup.margins,q={showRowColHeaders:R.pageSetup&&R.pageSetup.showRowColHeaders,showGridLines:R.pageSetup&&R.pageSetup.showGridLines,horizontalCentered:R.pageSetup&&R.pageSetup.horizontalCentered,verticalCentered:R.pageSetup&&R.pageSetup.verticalCentered},O=R.sheetProtection;this.map.sheetPr.render(k,z),this.map.dimension.render(k,R.dimensions),this.map.sheetViews.render(k,R.views),this.map.sheetFormatPr.render(k,I),this.map.cols.render(k,R.cols),this.map.sheetData.render(k,R.rows),this.map.sheetProtection.render(k,O),this.map.autoFilter.render(k,R.autoFilter),this.map.mergeCells.render(k,R.mergeCells),this.map.conditionalFormatting.render(k,R.conditionalFormattings),this.map.dataValidations.render(k,R.dataValidations),this.map.hyperlinks.render(k,R.hyperlinks),this.map.printOptions.render(k,q),this.map.pageMargins.render(k,U),this.map.pageSetup.render(k,R.pageSetup),this.map.headerFooter.render(k,R.headerFooter),this.map.rowBreaks.render(k,R.rowBreaks),this.map.drawing.render(k,R.drawing),this.map.picture.render(k,R.background),this.map.tableParts.render(k,R.tables),this.map.extLst.render(k,R),R.rels&&R.rels.forEach(H=>{H.Type===r.VmlDrawing&&k.leafNode("legacyDrawing",{"r:id":H.Id})}),k.closeNode()}parseOpen(k){return this.parser?(this.parser.parseOpen(k),!0):k.name==="worksheet"?(m.each(this.map,R=>{R.reset()}),!0):(this.map[k.name]&&!this.ignoreNodes.includes(k.name)&&(this.parser=this.map[k.name],this.parser.parseOpen(k)),!0)}parseText(k){this.parser&&this.parser.parseText(k)}parseClose(k){if(this.parser)return this.parser.parseClose(k)||(this.parser=void 0),!0;switch(k){case"worksheet":{const R=this.map.sheetFormatPr.model||{};this.map.sheetPr.model&&this.map.sheetPr.model.tabColor&&(R.tabColor=this.map.sheetPr.model.tabColor),this.map.sheetPr.model&&this.map.sheetPr.model.outlineProperties&&(R.outlineProperties=this.map.sheetPr.model.outlineProperties);const I={fitToPage:this.map.sheetPr.model&&this.map.sheetPr.model.pageSetup&&this.map.sheetPr.model.pageSetup.fitToPage||!1,margins:this.map.pageMargins.model},z=Object.assign(I,this.map.pageSetup.model,this.map.printOptions.model),U=b(this.map.conditionalFormatting.model,this.map.extLst.model&&this.map.extLst.model["x14:conditionalFormattings"]);return this.model={dimensions:this.map.dimension.model,cols:this.map.cols.model,rows:this.map.sheetData.model,mergeCells:this.map.mergeCells.model,hyperlinks:this.map.hyperlinks.model,dataValidations:this.map.dataValidations.model,properties:R,views:this.map.sheetViews.model,pageSetup:z,headerFooter:this.map.headerFooter.model,background:this.map.picture.model,drawing:this.map.drawing.model,tables:this.map.tableParts.model,conditionalFormattings:U},this.map.autoFilter.model&&(this.model.autoFilter=this.map.autoFilter.model),this.map.sheetProtection.model&&(this.model.sheetProtection=this.map.sheetProtection.model),!1}default:return!0}}reconcile(k,R){const I=(k.relationships||[]).reduce((U,q)=>{if(U[q.Id]=q,q.Type===r.Comments&&(k.comments=R.comments[q.Target].comments),q.Type===r.VmlDrawing&&k.comments&&k.comments.length){const O=R.vmlDrawings[q.Target].comments;k.comments.forEach((H,T)=>{H.note=Object.assign({},H.note,O[T])})}return U},{});if(R.commentsMap=(k.comments||[]).reduce((U,q)=>(q.ref&&(U[q.ref]=q),U),{}),R.hyperlinkMap=(k.hyperlinks||[]).reduce((U,q)=>(q.rId&&(U[q.address]=I[q.rId].Target),U),{}),R.formulae={},k.rows=k.rows&&k.rows.filter(Boolean)||[],k.rows.forEach(U=>{U.cells=U.cells&&U.cells.filter(Boolean)||[]}),this.map.cols.reconcile(k.cols,R),this.map.sheetData.reconcile(k.rows,R),this.map.conditionalFormatting.reconcile(k.conditionalFormattings,R),k.media=[],k.drawing){const U=I[k.drawing.rId].Target.match(/\/drawings\/([a-zA-Z0-9]+)[.][a-zA-Z]{3,4}$/);if(U){const q=U[1];R.drawings[q].anchors.forEach(O=>{if(O.medium){const H={type:"image",imageId:O.medium.index,range:O.range,hyperlinks:O.picture.hyperlinks};k.media.push(H)}})}}const z=k.background&&I[k.background.rId];if(z){const U=z.Target.split("/media/")[1],q=R.mediaIndex&&R.mediaIndex[U];q!==void 0&&k.media.push({type:"background",imageId:q})}k.tables=(k.tables||[]).map(U=>{const q=I[U.rId];return R.tables[q.Target]}),delete k.relationships,delete k.hyperlinks,delete k.comments}}g.WORKSHEET_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x14ac","xmlns:x14ac":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac"},E.exports=g},{"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/xml-stream":28,"../../rel-type":31,"../base-xform":32,"../list-xform":71,"./auto-filter-xform":72,"./cf/conditional-formattings-xform":87,"./col-xform":92,"./data-validations-xform":93,"./dimension-xform":94,"./drawing-xform":95,"./ext-lst-xform":96,"./header-footer-xform":97,"./hyperlink-xform":98,"./merge-cell-xform":99,"./merges":100,"./page-margins-xform":103,"./page-setup-xform":105,"./picture-xform":106,"./print-options-xform":107,"./row-breaks-xform":108,"./row-xform":109,"./sheet-format-properties-xform":110,"./sheet-properties-xform":111,"./sheet-protection-xform":112,"./sheet-view-xform":113,"./table-part-xform":114}],116:[function(s,E,S){const m=s("../base-xform");E.exports=class extends m{constructor(o){super(),this.tag=o.tag,this.attr=o.attr}render(o,a){a&&(o.openNode(this.tag),o.closeNode())}parseOpen(o){o.name===this.tag&&(this.model=!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],117:[function(s,E,S){const m=s("../base-xform");E.exports=class extends m{constructor(o){super(),this.tag=o.tag,this.attr=o.attr,this.attrs=o.attrs,this._format=o.format||function(a){try{return Number.isNaN(a.getTime())?"":a.toISOString()}catch{return""}},this._parse=o.parse||function(a){return new Date(a)}}render(o,a){a&&(o.openNode(this.tag),this.attrs&&o.addAttributes(this.attrs),this.attr?o.addAttribute(this.attr,this._format(a)):o.writeText(this._format(a)),o.closeNode())}parseOpen(o){o.name===this.tag&&(this.attr?this.model=this._parse(o.attributes[this.attr]):this.text=[])}parseText(o){this.attr||this.text.push(o)}parseClose(){return this.attr||(this.model=this._parse(this.text.join(""))),!1}}},{"../base-xform":32}],118:[function(s,E,S){const m=s("../base-xform");E.exports=class extends m{constructor(o){super(),this.tag=o.tag,this.attr=o.attr,this.attrs=o.attrs,this.zero=o.zero}render(o,a){(a||this.zero)&&(o.openNode(this.tag),this.attrs&&o.addAttributes(this.attrs),this.attr?o.addAttribute(this.attr,a):o.writeText(a),o.closeNode())}parseOpen(o){return o.name===this.tag&&(this.attr?this.model=parseInt(o.attributes[this.attr],10):this.text=[],!0)}parseText(o){this.attr||this.text.push(o)}parseClose(){return this.attr||(this.model=parseInt(this.text.join("")||0,10)),!1}}},{"../base-xform":32}],119:[function(s,E,S){const m=s("../base-xform");E.exports=class extends m{constructor(o){super(),this.tag=o.tag,this.attr=o.attr,this.attrs=o.attrs}render(o,a){a!==void 0&&(o.openNode(this.tag),this.attrs&&o.addAttributes(this.attrs),this.attr?o.addAttribute(this.attr,a):o.writeText(a),o.closeNode())}parseOpen(o){o.name===this.tag&&(this.attr?this.model=o.attributes[this.attr]:this.text=[])}parseText(o){this.attr||this.text.push(o)}parseClose(){return this.attr||(this.model=this.text.join("")),!1}}},{"../base-xform":32}],120:[function(s,E,S){const m=s("./base-xform"),o=s("../../utils/xml-stream");E.exports=class extends m{constructor(a){super(),this._model=a}render(a){if(!this._xml){const r=new o;(function t(e,l){e.openNode(l.tag,l.$),l.c&&l.c.forEach(n=>{t(e,n)}),l.t&&e.writeText(l.t),e.closeNode()})(r,this._model),this._xml=r.xml}a.writeXml(this._xml)}parseOpen(){return!0}parseText(){}parseClose(a){switch(a){case this._model.tag:return!1;default:return!0}}}},{"../../utils/xml-stream":28,"./base-xform":32}],121:[function(s,E,S){const m=s("./text-xform"),o=s("./rich-text-xform"),a=s("../base-xform");E.exports=class extends a{constructor(){super(),this.map={r:new o,t:new m}}get tag(){return"rPh"}render(r,t){if(r.openNode(this.tag,{sb:t.sb||0,eb:t.eb||0}),t&&t.hasOwnProperty("richText")&&t.richText){const{r:e}=this.map;t.richText.forEach(l=>{e.render(r,l)})}else t&&this.map.t.render(r,t.text);r.closeNode()}parseOpen(r){const{name:t}=r;return this.parser?(this.parser.parseOpen(r),!0):t===this.tag?(this.model={sb:parseInt(r.attributes.sb,10),eb:parseInt(r.attributes.eb,10)},!0):(this.parser=this.map[t],!!this.parser&&(this.parser.parseOpen(r),!0))}parseText(r){this.parser&&this.parser.parseText(r)}parseClose(r){if(this.parser){if(!this.parser.parseClose(r)){switch(r){case"r":{let t=this.model.richText;t||(t=this.model.richText=[]),t.push(this.parser.model);break}case"t":this.model.text=this.parser.model}this.parser=void 0}return!0}switch(r){case this.tag:return!1;default:return!0}}}},{"../base-xform":32,"./rich-text-xform":122,"./text-xform":125}],122:[function(s,E,S){const m=s("./text-xform"),o=s("../style/font-xform"),a=s("../base-xform");class r extends a{constructor(e){super(),this.model=e}get tag(){return"r"}get textXform(){return this._textXform||(this._textXform=new m)}get fontXform(){return this._fontXform||(this._fontXform=new o(r.FONT_OPTIONS))}render(e,l){l=l||this.model,e.openNode("r"),l.font&&this.fontXform.render(e,l.font),this.textXform.render(e,l.text),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"r":return this.model={},!0;case"t":return this.parser=this.textXform,this.parser.parseOpen(e),!0;case"rPr":return this.parser=this.fontXform,this.parser.parseOpen(e),!0;default:return!1}}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){switch(e){case"r":return!1;case"t":return this.model.text=this.parser.model,this.parser=void 0,!0;case"rPr":return this.model.font=this.parser.model,this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(e),!0}}}r.FONT_OPTIONS={tagName:"rPr",fontNameTag:"rFont"},E.exports=r},{"../base-xform":32,"../style/font-xform":131,"./text-xform":125}],123:[function(s,E,S){const m=s("./text-xform"),o=s("./rich-text-xform"),a=s("./phonetic-text-xform"),r=s("../base-xform");E.exports=class extends r{constructor(t){super(),this.model=t,this.map={r:new o,t:new m,rPh:new a}}get tag(){return"si"}render(t,e){t.openNode(this.tag),e&&e.hasOwnProperty("richText")&&e.richText?e.richText.length?e.richText.forEach(l=>{this.map.r.render(t,l)}):this.map.t.render(t,""):e!=null&&this.map.t.render(t,e),t.closeNode()}parseOpen(t){const{name:e}=t;return this.parser?(this.parser.parseOpen(t),!0):e===this.tag?(this.model={},!0):(this.parser=this.map[e],!!this.parser&&(this.parser.parseOpen(t),!0))}parseText(t){this.parser&&this.parser.parseText(t)}parseClose(t){if(this.parser){if(!this.parser.parseClose(t)){switch(t){case"r":{let e=this.model.richText;e||(e=this.model.richText=[]),e.push(this.parser.model);break}case"t":this.model=this.parser.model}this.parser=void 0}return!0}switch(t){case this.tag:return!1;default:return!0}}}},{"../base-xform":32,"./phonetic-text-xform":121,"./rich-text-xform":122,"./text-xform":125}],124:[function(s,E,S){const m=s("../../../utils/xml-stream"),o=s("../base-xform"),a=s("./shared-string-xform");E.exports=class extends o{constructor(r){super(),this.model=r||{values:[],count:0},this.hash=Object.create(null),this.rich=Object.create(null)}get sharedStringXform(){return this._sharedStringXform||(this._sharedStringXform=new a)}get values(){return this.model.values}get uniqueCount(){return this.model.values.length}get count(){return this.model.count}getString(r){return this.model.values[r]}add(r){return r.richText?this.addRichText(r):this.addText(r)}addText(r){let t=this.hash[r];return t===void 0&&(t=this.hash[r]=this.model.values.length,this.model.values.push(r)),this.model.count++,t}addRichText(r){const t=this.sharedStringXform.toXml(r);let e=this.rich[t];return e===void 0&&(e=this.rich[t]=this.model.values.length,this.model.values.push(r)),this.model.count++,e}render(r,t){t=t||this._values,r.openXml(m.StdDocAttributes),r.openNode("sst",{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main",count:t.count,uniqueCount:t.values.length});const e=this.sharedStringXform;t.values.forEach(l=>{e.render(r,l)}),r.closeNode()}parseOpen(r){if(this.parser)return this.parser.parseOpen(r),!0;switch(r.name){case"sst":return!0;case"si":return this.parser=this.sharedStringXform,this.parser.parseOpen(r),!0;default:throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(r))}}parseText(r){this.parser&&this.parser.parseText(r)}parseClose(r){if(this.parser)return this.parser.parseClose(r)||(this.model.values.push(this.parser.model),this.model.count++,this.parser=void 0),!0;switch(r){case"sst":return!1;default:throw new Error("Unexpected xml node in parseClose: "+r)}}}},{"../../../utils/xml-stream":28,"../base-xform":32,"./shared-string-xform":123}],125:[function(s,E,S){const m=s("../base-xform");E.exports=class extends m{get tag(){return"t"}render(o,a){o.openNode("t"),/^\s|\n|\s$/.test(a)&&o.addAttribute("xml:space","preserve"),o.writeText(a),o.closeNode()}get model(){return this._text.join("").replace(/_x([0-9A-F]{4})_/g,(o,a)=>String.fromCharCode(parseInt(a,16)))}parseOpen(o){switch(o.name){case"t":return this._text=[],!0;default:return!1}}parseText(o){this._text.push(o)}parseClose(){return!1}}},{"../base-xform":32}],126:[function(s,E,S){const m=s("../../../doc/enums"),o=s("../../../utils/utils"),a=s("../base-xform"),r={horizontalValues:["left","center","right","fill","centerContinuous","distributed","justify"].reduce((e,l)=>(e[l]=!0,e),{}),horizontal(e){return this.horizontalValues[e]?e:void 0},verticalValues:["top","middle","bottom","distributed","justify"].reduce((e,l)=>(e[l]=!0,e),{}),vertical(e){return e==="middle"?"center":this.verticalValues[e]?e:void 0},wrapText:e=>!!e||void 0,shrinkToFit:e=>!!e||void 0,textRotation(e){switch(e){case"vertical":return e;default:return(e=o.validInt(e))>=-90&&e<=90?e:void 0}},indent:e=>(e=o.validInt(e),Math.max(0,e)),readingOrder(e){switch(e){case"ltr":return m.ReadingOrder.LeftToRight;case"rtl":return m.ReadingOrder.RightToLeft;default:return}}},t={toXml(e){if(e=r.textRotation(e)){if(e==="vertical")return 255;const l=Math.round(e);if(l>=0&&l<=90)return l;if(l<0&&l>=-90)return 90-l}},toModel(e){const l=o.validInt(e);if(l!==void 0){if(l===255)return"vertical";if(l>=0&&l<=90)return l;if(l>90&&l<=180)return 90-l}}};E.exports=class extends a{get tag(){return"alignment"}render(e,l){e.addRollback(),e.openNode("alignment");let n=!1;function i(c,h){h&&(e.addAttribute(c,h),n=!0)}i("horizontal",r.horizontal(l.horizontal)),i("vertical",r.vertical(l.vertical)),i("wrapText",!!r.wrapText(l.wrapText)&&"1"),i("shrinkToFit",!!r.shrinkToFit(l.shrinkToFit)&&"1"),i("indent",r.indent(l.indent)),i("textRotation",t.toXml(l.textRotation)),i("readingOrder",r.readingOrder(l.readingOrder)),e.closeNode(),n?e.commit():e.rollback()}parseOpen(e){const l={};let n=!1;function i(c,h,u){c&&(l[h]=u,n=!0)}i(e.attributes.horizontal,"horizontal",e.attributes.horizontal),i(e.attributes.vertical,"vertical",e.attributes.vertical==="center"?"middle":e.attributes.vertical),i(e.attributes.wrapText,"wrapText",o.parseBoolean(e.attributes.wrapText)),i(e.attributes.shrinkToFit,"shrinkToFit",o.parseBoolean(e.attributes.shrinkToFit)),i(e.attributes.indent,"indent",parseInt(e.attributes.indent,10)),i(e.attributes.textRotation,"textRotation",t.toModel(e.attributes.textRotation)),i(e.attributes.readingOrder,"readingOrder",e.attributes.readingOrder==="2"?"rtl":"ltr"),this.model=n?l:null}parseText(){}parseClose(){return!1}}},{"../../../doc/enums":7,"../../../utils/utils":27,"../base-xform":32}],127:[function(s,E,S){const m=s("../base-xform"),o=s("../../../utils/utils"),a=s("./color-xform");class r extends m{constructor(e){super(),this.name=e,this.map={color:new a}}get tag(){return this.name}render(e,l,n){const i=l&&l.color||n||this.defaultColor;e.openNode(this.name),l&&l.style&&(e.addAttribute("style",l.style),i&&this.map.color.render(e,i)),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case this.name:{const{style:l}=e.attributes;return this.model=l?{style:l}:void 0,!0}case"color":return this.parser=this.map.color,this.parser.parseOpen(e),!0;default:return!1}}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):(e===this.name&&this.map.color.model&&(this.model||(this.model={}),this.model.color=this.map.color.model),!1)}validStyle(e){return r.validStyleValues[e]}}r.validStyleValues=["thin","dashed","dotted","dashDot","hair","dashDotDot","slantDashDot","mediumDashed","mediumDashDotDot","mediumDashDot","medium","double","thick"].reduce((t,e)=>(t[e]=!0,t),{}),E.exports=class extends m{constructor(){super(),this.map={top:new r("top"),left:new r("left"),bottom:new r("bottom"),right:new r("right"),diagonal:new r("diagonal")}}render(t,e){const{color:l}=e;function n(i,c){i&&!i.color&&e.color&&(i={...i,color:e.color}),c.render(t,i,l)}t.openNode("border"),e.diagonal&&e.diagonal.style&&(e.diagonal.up&&t.addAttribute("diagonalUp","1"),e.diagonal.down&&t.addAttribute("diagonalDown","1")),n(e.left,this.map.left),n(e.right,this.map.right),n(e.top,this.map.top),n(e.bottom,this.map.bottom),n(e.diagonal,this.map.diagonal),t.closeNode()}parseOpen(t){if(this.parser)return this.parser.parseOpen(t),!0;switch(t.name){case"border":return this.reset(),this.diagonalUp=o.parseBoolean(t.attributes.diagonalUp),this.diagonalDown=o.parseBoolean(t.attributes.diagonalDown),!0;default:return this.parser=this.map[t.name],!!this.parser&&(this.parser.parseOpen(t),!0)}}parseText(t){this.parser&&this.parser.parseText(t)}parseClose(t){if(this.parser)return this.parser.parseClose(t)||(this.parser=void 0),!0;if(t==="border"){const e=this.model={},l=function(n,i,c){i&&(c&&Object.assign(i,c),e[n]=i)};l("left",this.map.left.model),l("right",this.map.right.model),l("top",this.map.top.model),l("bottom",this.map.bottom.model),l("diagonal",this.map.diagonal.model,{up:this.diagonalUp,down:this.diagonalDown})}return!1}}},{"../../../utils/utils":27,"../base-xform":32,"./color-xform":128}],128:[function(s,E,S){const m=s("../base-xform");E.exports=class extends m{constructor(o){super(),this.name=o||"color"}get tag(){return this.name}render(o,a){return!!a&&(o.openNode(this.name),a.argb?o.addAttribute("rgb",a.argb):a.theme!==void 0?(o.addAttribute("theme",a.theme),a.tint!==void 0&&o.addAttribute("tint",a.tint)):a.indexed!==void 0?o.addAttribute("indexed",a.indexed):o.addAttribute("auto","1"),o.closeNode(),!0)}parseOpen(o){return o.name===this.name&&(o.attributes.rgb?this.model={argb:o.attributes.rgb}:o.attributes.theme?(this.model={theme:parseInt(o.attributes.theme,10)},o.attributes.tint&&(this.model.tint=parseFloat(o.attributes.tint))):o.attributes.indexed?this.model={indexed:parseInt(o.attributes.indexed,10)}:this.model=void 0,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],129:[function(s,E,S){const m=s("../base-xform"),o=s("./alignment-xform"),a=s("./border-xform"),r=s("./fill-xform"),t=s("./font-xform"),e=s("./numfmt-xform"),l=s("./protection-xform");E.exports=class extends m{constructor(){super(),this.map={alignment:new o,border:new a,fill:new r,font:new t,numFmt:new e,protection:new l}}get tag(){return"dxf"}render(n,i){if(n.openNode(this.tag),i.font&&this.map.font.render(n,i.font),i.numFmt&&i.numFmtId){const c={id:i.numFmtId,formatCode:i.numFmt};this.map.numFmt.render(n,c)}i.fill&&this.map.fill.render(n,i.fill),i.alignment&&this.map.alignment.render(n,i.alignment),i.border&&this.map.border.render(n,i.border),i.protection&&this.map.protection.render(n,i.protection),n.closeNode()}parseOpen(n){if(this.parser)return this.parser.parseOpen(n),!0;switch(n.name){case this.tag:return this.reset(),!0;default:return this.parser=this.map[n.name],this.parser&&this.parser.parseOpen(n),!0}}parseText(n){this.parser&&this.parser.parseText(n)}parseClose(n){return this.parser?(this.parser.parseClose(n)||(this.parser=void 0),!0):n!==this.tag||(this.model={alignment:this.map.alignment.model,border:this.map.border.model,fill:this.map.fill.model,font:this.map.font.model,numFmt:this.map.numFmt.model,protection:this.map.protection.model},!1)}}},{"../base-xform":32,"./alignment-xform":126,"./border-xform":127,"./fill-xform":130,"./font-xform":131,"./numfmt-xform":132,"./protection-xform":133}],130:[function(s,E,S){const m=s("../base-xform"),o=s("./color-xform");class a extends m{constructor(){super(),this.map={color:new o}}get tag(){return"stop"}render(n,i){n.openNode("stop"),n.addAttribute("position",i.position),this.map.color.render(n,i.color),n.closeNode()}parseOpen(n){if(this.parser)return this.parser.parseOpen(n),!0;switch(n.name){case"stop":return this.model={position:parseFloat(n.attributes.position)},!0;case"color":return this.parser=this.map.color,this.parser.parseOpen(n),!0;default:return!1}}parseText(){}parseClose(n){return!!this.parser&&(this.parser.parseClose(n)||(this.model.color=this.parser.model,this.parser=void 0),!0)}}class r extends m{constructor(){super(),this.map={fgColor:new o("fgColor"),bgColor:new o("bgColor")}}get name(){return"pattern"}get tag(){return"patternFill"}render(n,i){n.openNode("patternFill"),n.addAttribute("patternType",i.pattern),i.fgColor&&this.map.fgColor.render(n,i.fgColor),i.bgColor&&this.map.bgColor.render(n,i.bgColor),n.closeNode()}parseOpen(n){if(this.parser)return this.parser.parseOpen(n),!0;switch(n.name){case"patternFill":return this.model={type:"pattern",pattern:n.attributes.patternType},!0;default:return this.parser=this.map[n.name],!!this.parser&&(this.parser.parseOpen(n),!0)}}parseText(n){this.parser&&this.parser.parseText(n)}parseClose(n){return!!this.parser&&(this.parser.parseClose(n)||(this.parser.model&&(this.model[n]=this.parser.model),this.parser=void 0),!0)}}class t extends m{constructor(){super(),this.map={stop:new a}}get name(){return"gradient"}get tag(){return"gradientFill"}render(n,i){switch(n.openNode("gradientFill"),i.gradient){case"angle":n.addAttribute("degree",i.degree);break;case"path":n.addAttribute("type","path"),i.center.left&&(n.addAttribute("left",i.center.left),i.center.right===void 0&&n.addAttribute("right",i.center.left)),i.center.right&&n.addAttribute("right",i.center.right),i.center.top&&(n.addAttribute("top",i.center.top),i.center.bottom===void 0&&n.addAttribute("bottom",i.center.top)),i.center.bottom&&n.addAttribute("bottom",i.center.bottom)}const c=this.map.stop;i.stops.forEach(h=>{c.render(n,h)}),n.closeNode()}parseOpen(n){if(this.parser)return this.parser.parseOpen(n),!0;switch(n.name){case"gradientFill":{const i=this.model={stops:[]};return n.attributes.degree?(i.gradient="angle",i.degree=parseInt(n.attributes.degree,10)):n.attributes.type==="path"&&(i.gradient="path",i.center={left:n.attributes.left?parseFloat(n.attributes.left):0,top:n.attributes.top?parseFloat(n.attributes.top):0},n.attributes.right!==n.attributes.left&&(i.center.right=n.attributes.right?parseFloat(n.attributes.right):0),n.attributes.bottom!==n.attributes.top&&(i.center.bottom=n.attributes.bottom?parseFloat(n.attributes.bottom):0)),!0}case"stop":return this.parser=this.map.stop,this.parser.parseOpen(n),!0;default:return!1}}parseText(n){this.parser&&this.parser.parseText(n)}parseClose(n){return!!this.parser&&(this.parser.parseClose(n)||(this.model.stops.push(this.parser.model),this.parser=void 0),!0)}}class e extends m{constructor(){super(),this.map={patternFill:new r,gradientFill:new t}}get tag(){return"fill"}render(n,i){switch(n.addRollback(),n.openNode("fill"),i.type){case"pattern":this.map.patternFill.render(n,i);break;case"gradient":this.map.gradientFill.render(n,i);break;default:return void n.rollback()}n.closeNode(),n.commit()}parseOpen(n){if(this.parser)return this.parser.parseOpen(n),!0;switch(n.name){case"fill":return this.model={},!0;default:return this.parser=this.map[n.name],!!this.parser&&(this.parser.parseOpen(n),!0)}}parseText(n){this.parser&&this.parser.parseText(n)}parseClose(n){return!!this.parser&&(this.parser.parseClose(n)||(this.model=this.parser.model,this.model.type=this.parser.name,this.parser=void 0),!0)}validStyle(n){return e.validPatternValues[n]}}e.validPatternValues=["none","solid","darkVertical","darkGray","mediumGray","lightGray","gray125","gray0625","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","lightGrid"].reduce((l,n)=>(l[n]=!0,l),{}),e.StopXform=a,e.PatternFillXform=r,e.GradientFillXform=t,E.exports=e},{"../base-xform":32,"./color-xform":128}],131:[function(s,E,S){const m=s("./color-xform"),o=s("../simple/boolean-xform"),a=s("../simple/integer-xform"),r=s("../simple/string-xform"),t=s("./underline-xform"),e=s("../../../utils/under-dash"),l=s("../base-xform");class n extends l{constructor(c){super(),this.options=c||n.OPTIONS,this.map={b:{prop:"bold",xform:new o({tag:"b",attr:"val"})},i:{prop:"italic",xform:new o({tag:"i",attr:"val"})},u:{prop:"underline",xform:new t},charset:{prop:"charset",xform:new a({tag:"charset",attr:"val"})},color:{prop:"color",xform:new m},condense:{prop:"condense",xform:new o({tag:"condense",attr:"val"})},extend:{prop:"extend",xform:new o({tag:"extend",attr:"val"})},family:{prop:"family",xform:new a({tag:"family",attr:"val"})},outline:{prop:"outline",xform:new o({tag:"outline",attr:"val"})},vertAlign:{prop:"vertAlign",xform:new r({tag:"vertAlign",attr:"val"})},scheme:{prop:"scheme",xform:new r({tag:"scheme",attr:"val"})},shadow:{prop:"shadow",xform:new o({tag:"shadow",attr:"val"})},strike:{prop:"strike",xform:new o({tag:"strike",attr:"val"})},sz:{prop:"size",xform:new a({tag:"sz",attr:"val"})}},this.map[this.options.fontNameTag]={prop:"name",xform:new r({tag:this.options.fontNameTag,attr:"val"})}}get tag(){return this.options.tagName}render(c,h){const{map:u}=this;c.openNode(this.options.tagName),e.each(this.map,(d,f)=>{u[f].xform.render(c,h[d.prop])}),c.closeNode()}parseOpen(c){if(this.parser)return this.parser.parseOpen(c),!0;if(this.map[c.name])return this.parser=this.map[c.name].xform,this.parser.parseOpen(c);switch(c.name){case this.options.tagName:return this.model={},!0;default:return!1}}parseText(c){this.parser&&this.parser.parseText(c)}parseClose(c){if(this.parser&&!this.parser.parseClose(c)){const h=this.map[c];return this.parser.model&&(this.model[h.prop]=this.parser.model),this.parser=void 0,!0}switch(c){case this.options.tagName:return!1;default:return!0}}}n.OPTIONS={tagName:"font",fontNameTag:"name"},E.exports=n},{"../../../utils/under-dash":26,"../base-xform":32,"../simple/boolean-xform":116,"../simple/integer-xform":118,"../simple/string-xform":119,"./color-xform":128,"./underline-xform":136}],132:[function(s,E,S){const m=s("../../../utils/under-dash"),o=s("../../defaultnumformats"),a=s("../base-xform"),r=function(){const e={};return m.each(o,(l,n)=>{l.f&&(e[l.f]=parseInt(n,10))}),e}();class t extends a{constructor(l,n){super(),this.id=l,this.formatCode=n}get tag(){return"numFmt"}render(l,n){l.leafNode("numFmt",{numFmtId:n.id,formatCode:n.formatCode})}parseOpen(l){switch(l.name){case"numFmt":return this.model={id:parseInt(l.attributes.numFmtId,10),formatCode:l.attributes.formatCode.replace(/[\\](.)/g,"$1")},!0;default:return!1}}parseText(){}parseClose(){return!1}}t.getDefaultFmtId=function(e){return r[e]},t.getDefaultFmtCode=function(e){return o[e]&&o[e].f},E.exports=t},{"../../../utils/under-dash":26,"../../defaultnumformats":30,"../base-xform":32}],133:[function(s,E,S){const m=s("../base-xform"),o={boolean:(a,r)=>a===void 0?r:a};E.exports=class extends m{get tag(){return"protection"}render(a,r){a.addRollback(),a.openNode("protection");let t=!1;function e(l,n){n!==void 0&&(a.addAttribute(l,n),t=!0)}e("locked",o.boolean(r.locked,!0)?void 0:"0"),e("hidden",o.boolean(r.hidden,!1)?"1":void 0),a.closeNode(),t?a.commit():a.rollback()}parseOpen(a){const r={locked:a.attributes.locked!=="0",hidden:a.attributes.hidden==="1"},t=!r.locked||r.hidden;this.model=t?r:null}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],134:[function(s,E,S){const m=s("../base-xform"),o=s("./alignment-xform"),a=s("./protection-xform");E.exports=class extends m{constructor(r){super(),this.xfId=!(!r||!r.xfId),this.map={alignment:new o,protection:new a}}get tag(){return"xf"}render(r,t){r.openNode("xf",{numFmtId:t.numFmtId||0,fontId:t.fontId||0,fillId:t.fillId||0,borderId:t.borderId||0}),this.xfId&&r.addAttribute("xfId",t.xfId||0),t.numFmtId&&r.addAttribute("applyNumberFormat","1"),t.fontId&&r.addAttribute("applyFont","1"),t.fillId&&r.addAttribute("applyFill","1"),t.borderId&&r.addAttribute("applyBorder","1"),t.alignment&&r.addAttribute("applyAlignment","1"),t.protection&&r.addAttribute("applyProtection","1"),t.alignment&&this.map.alignment.render(r,t.alignment),t.protection&&this.map.protection.render(r,t.protection),r.closeNode()}parseOpen(r){if(this.parser)return this.parser.parseOpen(r),!0;switch(r.name){case"xf":return this.model={numFmtId:parseInt(r.attributes.numFmtId,10),fontId:parseInt(r.attributes.fontId,10),fillId:parseInt(r.attributes.fillId,10),borderId:parseInt(r.attributes.borderId,10)},this.xfId&&(this.model.xfId=parseInt(r.attributes.xfId,10)),!0;case"alignment":return this.parser=this.map.alignment,this.parser.parseOpen(r),!0;case"protection":return this.parser=this.map.protection,this.parser.parseOpen(r),!0;default:return!1}}parseText(r){this.parser&&this.parser.parseText(r)}parseClose(r){return this.parser?(this.parser.parseClose(r)||(this.map.protection===this.parser?this.model.protection=this.parser.model:this.model.alignment=this.parser.model,this.parser=void 0),!0):r!=="xf"}}},{"../base-xform":32,"./alignment-xform":126,"./protection-xform":133}],135:[function(s,E,S){const m=s("../../../doc/enums"),o=s("../../../utils/xml-stream"),a=s("../base-xform"),r=s("../static-xform"),t=s("../list-xform"),e=s("./font-xform"),l=s("./fill-xform"),n=s("./border-xform"),i=s("./numfmt-xform"),c=s("./style-xform"),h=s("./dxf-xform");class u extends a{constructor(f){super(),this.map={numFmts:new t({tag:"numFmts",count:!0,childXform:new i}),fonts:new t({tag:"fonts",count:!0,childXform:new e,$:{"x14ac:knownFonts":1}}),fills:new t({tag:"fills",count:!0,childXform:new l}),borders:new t({tag:"borders",count:!0,childXform:new n}),cellStyleXfs:new t({tag:"cellStyleXfs",count:!0,childXform:new c}),cellXfs:new t({tag:"cellXfs",count:!0,childXform:new c({xfId:!0})}),dxfs:new t({tag:"dxfs",always:!0,count:!0,childXform:new h}),numFmt:new i,font:new e,fill:new l,border:new n,style:new c({xfId:!0}),cellStyles:u.STATIC_XFORMS.cellStyles,tableStyles:u.STATIC_XFORMS.tableStyles,extLst:u.STATIC_XFORMS.extLst},f&&this.init()}initIndex(){this.index={style:{},numFmt:{},numFmtNextId:164,font:{},border:{},fill:{}}}init(){this.model={styles:[],numFmts:[],fonts:[],borders:[],fills:[],dxfs:[]},this.initIndex(),this._addBorder({}),this._addStyle({numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}),this._addFill({type:"pattern",pattern:"none"}),this._addFill({type:"pattern",pattern:"gray125"}),this.weakMap=new WeakMap}render(f,w){w=w||this.model,f.openXml(o.StdDocAttributes),f.openNode("styleSheet",u.STYLESHEET_ATTRIBUTES),this.index?(w.numFmts&&w.numFmts.length&&(f.openNode("numFmts",{count:w.numFmts.length}),w.numFmts.forEach(_=>{f.writeXml(_)}),f.closeNode()),w.fonts.length||this._addFont({size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}),f.openNode("fonts",{count:w.fonts.length,"x14ac:knownFonts":1}),w.fonts.forEach(_=>{f.writeXml(_)}),f.closeNode(),f.openNode("fills",{count:w.fills.length}),w.fills.forEach(_=>{f.writeXml(_)}),f.closeNode(),f.openNode("borders",{count:w.borders.length}),w.borders.forEach(_=>{f.writeXml(_)}),f.closeNode(),this.map.cellStyleXfs.render(f,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]),f.openNode("cellXfs",{count:w.styles.length}),w.styles.forEach(_=>{f.writeXml(_)}),f.closeNode()):(this.map.numFmts.render(f,w.numFmts),this.map.fonts.render(f,w.fonts),this.map.fills.render(f,w.fills),this.map.borders.render(f,w.borders),this.map.cellStyleXfs.render(f,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]),this.map.cellXfs.render(f,w.styles)),u.STATIC_XFORMS.cellStyles.render(f),this.map.dxfs.render(f,w.dxfs),u.STATIC_XFORMS.tableStyles.render(f),u.STATIC_XFORMS.extLst.render(f),f.closeNode()}parseOpen(f){if(this.parser)return this.parser.parseOpen(f),!0;switch(f.name){case"styleSheet":return this.initIndex(),!0;default:return this.parser=this.map[f.name],this.parser&&this.parser.parseOpen(f),!0}}parseText(f){this.parser&&this.parser.parseText(f)}parseClose(f){if(this.parser)return this.parser.parseClose(f)||(this.parser=void 0),!0;switch(f){case"styleSheet":{this.model={};const w=(_,A)=>{A.model&&A.model.length&&(this.model[_]=A.model)};if(w("numFmts",this.map.numFmts),w("fonts",this.map.fonts),w("fills",this.map.fills),w("borders",this.map.borders),w("styles",this.map.cellXfs),w("dxfs",this.map.dxfs),this.index={model:[],numFmt:[]},this.model.numFmts){const _=this.index.numFmt;this.model.numFmts.forEach(A=>{_[A.id]=A.formatCode})}return!1}default:return!0}}addStyleModel(f,w){if(!f)return 0;if(this.model.fonts.length||this._addFont({size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}),this.weakMap&&this.weakMap.has(f))return this.weakMap.get(f);const _={};if(w=w||m.ValueType.Number,f.numFmt)_.numFmtId=this._addNumFmtStr(f.numFmt);else switch(w){case m.ValueType.Number:_.numFmtId=this._addNumFmtStr("General");break;case m.ValueType.Date:_.numFmtId=this._addNumFmtStr("mm-dd-yy")}f.font&&(_.fontId=this._addFont(f.font)),f.border&&(_.borderId=this._addBorder(f.border)),f.fill&&(_.fillId=this._addFill(f.fill)),f.alignment&&(_.alignment=f.alignment),f.protection&&(_.protection=f.protection);const A=this._addStyle(_);return this.weakMap&&this.weakMap.set(f,A),A}getStyleModel(f){const w=this.model.styles[f];if(!w)return null;let _=this.index.model[f];if(_)return _;if(_=this.index.model[f]={},w.numFmtId){const N=this.index.numFmt[w.numFmtId]||i.getDefaultFmtCode(w.numFmtId);N&&(_.numFmt=N)}function A(N,L,j){if(j||j===0){const P=L[j];P&&(_[N]=P)}}return A("font",this.model.fonts,w.fontId),A("border",this.model.borders,w.borderId),A("fill",this.model.fills,w.fillId),w.alignment&&(_.alignment=w.alignment),w.protection&&(_.protection=w.protection),_}addDxfStyle(f){return f.numFmt&&(f.numFmtId=this._addNumFmtStr(f.numFmt)),this.model.dxfs.push(f),this.model.dxfs.length-1}getDxfStyle(f){return this.model.dxfs[f]}_addStyle(f){const w=this.map.style.toXml(f);let _=this.index.style[w];return _===void 0&&(_=this.index.style[w]=this.model.styles.length,this.model.styles.push(w)),_}_addNumFmtStr(f){let w=i.getDefaultFmtId(f);if(w!==void 0||(w=this.index.numFmt[f],w!==void 0))return w;w=this.index.numFmt[f]=164+this.model.numFmts.length;const _=this.map.numFmt.toXml({id:w,formatCode:f});return this.model.numFmts.push(_),w}_addFont(f){const w=this.map.font.toXml(f);let _=this.index.font[w];return _===void 0&&(_=this.index.font[w]=this.model.fonts.length,this.model.fonts.push(w)),_}_addBorder(f){const w=this.map.border.toXml(f);let _=this.index.border[w];return _===void 0&&(_=this.index.border[w]=this.model.borders.length,this.model.borders.push(w)),_}_addFill(f){const w=this.map.fill.toXml(f);let _=this.index.fill[w];return _===void 0&&(_=this.index.fill[w]=this.model.fills.length,this.model.fills.push(w)),_}}u.STYLESHEET_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x14ac x16r2","xmlns:x14ac":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac","xmlns:x16r2":"http://schemas.microsoft.com/office/spreadsheetml/2015/02/main"},u.STATIC_XFORMS={cellStyles:new r({tag:"cellStyles",$:{count:1},c:[{tag:"cellStyle",$:{name:"Normal",xfId:0,builtinId:0}}]}),dxfs:new r({tag:"dxfs",$:{count:0}}),tableStyles:new r({tag:"tableStyles",$:{count:0,defaultTableStyle:"TableStyleMedium2",defaultPivotStyle:"PivotStyleLight16"}}),extLst:new r({tag:"extLst",c:[{tag:"ext",$:{uri:"{EB79DEF2-80B8-43e5-95BD-54CBDDF9020C}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"},c:[{tag:"x14:slicerStyles",$:{defaultSlicerStyle:"SlicerStyleLight1"}}]},{tag:"ext",$:{uri:"{9260A510-F301-46a8-8635-F512D64BE5F5}","xmlns:x15":"http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"},c:[{tag:"x15:timelineStyles",$:{defaultTimelineStyle:"TimeSlicerStyleLight1"}}]}]})},u.Mock=class extends u{constructor(){super(),this.model={styles:[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}],numFmts:[],fonts:[{size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}],borders:[{}],fills:[{type:"pattern",pattern:"none"},{type:"pattern",pattern:"gray125"}]}}parseStream(d){return d.autodrain(),Promise.resolve()}addStyleModel(d,f){switch(f){case m.ValueType.Date:return this.dateStyleId;default:return 0}}get dateStyleId(){if(!this._dateStyleId){const d={numFmtId:i.getDefaultFmtId("mm-dd-yy")};this._dateStyleId=this.model.styles.length,this.model.styles.push(d)}return this._dateStyleId}getStyleModel(){return{}}},E.exports=u},{"../../../doc/enums":7,"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"../static-xform":120,"./border-xform":127,"./dxf-xform":129,"./fill-xform":130,"./font-xform":131,"./numfmt-xform":132,"./style-xform":134}],136:[function(s,E,S){const m=s("../base-xform");class o extends m{constructor(r){super(),this.model=r}get tag(){return"u"}render(r,t){if((t=t||this.model)===!0)r.leafNode("u");else{const e=o.Attributes[t];e&&r.leafNode("u",e)}}parseOpen(r){r.name==="u"&&(this.model=r.attributes.val||!0)}parseText(){}parseClose(){return!1}}o.Attributes={single:{},double:{val:"double"},singleAccounting:{val:"singleAccounting"},doubleAccounting:{val:"doubleAccounting"}},E.exports=o},{"../base-xform":32}],137:[function(s,E,S){const m=s("../base-xform"),o=s("./filter-column-xform");E.exports=class extends m{constructor(){super(),this.map={filterColumn:new o}}get tag(){return"autoFilter"}prepare(a){a.columns.forEach((r,t)=>{this.map.filterColumn.prepare(r,{index:t})})}render(a,r){return a.openNode(this.tag,{ref:r.autoFilterRef}),r.columns.forEach(t=>{this.map.filterColumn.render(a,t)}),a.closeNode(),!0}parseOpen(a){if(this.parser)return this.parser.parseOpen(a),!0;switch(a.name){case this.tag:return this.model={autoFilterRef:a.attributes.ref,columns:[]},!0;default:if(this.parser=this.map[a.name],this.parser)return this.parseOpen(a),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(a))}}parseText(a){this.parser&&this.parser.parseText(a)}parseClose(a){if(this.parser)return this.parser.parseClose(a)||(this.model.columns.push(this.parser.model),this.parser=void 0),!0;switch(a){case this.tag:return!1;default:throw new Error("Unexpected xml node in parseClose: "+a)}}}},{"../base-xform":32,"./filter-column-xform":139}],138:[function(s,E,S){const m=s("../base-xform");E.exports=class extends m{get tag(){return"customFilter"}render(o,a){o.leafNode(this.tag,{val:a.val,operator:a.operator})}parseOpen(o){return o.name===this.tag&&(this.model={val:o.attributes.val,operator:o.attributes.operator},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],139:[function(s,E,S){const m=s("../base-xform"),o=s("../list-xform"),a=s("./custom-filter-xform"),r=s("./filter-xform");E.exports=class extends m{constructor(){super(),this.map={customFilters:new o({tag:"customFilters",count:!1,empty:!0,childXform:new a}),filters:new o({tag:"filters",count:!1,empty:!0,childXform:new r})}}get tag(){return"filterColumn"}prepare(t,e){t.colId=e.index.toString()}render(t,e){return e.customFilters?(t.openNode(this.tag,{colId:e.colId,hiddenButton:e.filterButton?"0":"1"}),this.map.customFilters.render(t,e.customFilters),t.closeNode(),!0):(t.leafNode(this.tag,{colId:e.colId,hiddenButton:e.filterButton?"0":"1"}),!0)}parseOpen(t){if(this.parser)return this.parser.parseOpen(t),!0;const{attributes:e}=t;switch(t.name){case this.tag:return this.model={filterButton:e.hiddenButton==="0"},!0;default:if(this.parser=this.map[t.name],this.parser)return this.parseOpen(t),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(t))}}parseText(){}parseClose(t){if(this.parser)return this.parser.parseClose(t)||(this.parser=void 0),!0;switch(t){case this.tag:return this.model.customFilters=this.map.customFilters.model,!1;default:return!0}}}},{"../base-xform":32,"../list-xform":71,"./custom-filter-xform":138,"./filter-xform":140}],140:[function(s,E,S){const m=s("../base-xform");E.exports=class extends m{get tag(){return"filter"}render(o,a){o.leafNode(this.tag,{val:a.val})}parseOpen(o){return o.name===this.tag&&(this.model={val:o.attributes.val},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],141:[function(s,E,S){const m=s("../base-xform");E.exports=class extends m{get tag(){return"tableColumn"}prepare(o,a){o.id=a.index+1}render(o,a){return o.leafNode(this.tag,{id:a.id.toString(),name:a.name,totalsRowLabel:a.totalsRowLabel,totalsRowFunction:a.totalsRowFunction,dxfId:a.dxfId}),!0}parseOpen(o){if(o.name===this.tag){const{attributes:a}=o;return this.model={name:a.name,totalsRowLabel:a.totalsRowLabel,totalsRowFunction:a.totalsRowFunction,dxfId:a.dxfId},!0}return!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],142:[function(s,E,S){const m=s("../base-xform");E.exports=class extends m{get tag(){return"tableStyleInfo"}render(o,a){return o.leafNode(this.tag,{name:a.theme?a.theme:void 0,showFirstColumn:a.showFirstColumn?"1":"0",showLastColumn:a.showLastColumn?"1":"0",showRowStripes:a.showRowStripes?"1":"0",showColumnStripes:a.showColumnStripes?"1":"0"}),!0}parseOpen(o){if(o.name===this.tag){const{attributes:a}=o;return this.model={theme:a.name?a.name:null,showFirstColumn:a.showFirstColumn==="1",showLastColumn:a.showLastColumn==="1",showRowStripes:a.showRowStripes==="1",showColumnStripes:a.showColumnStripes==="1"},!0}return!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],143:[function(s,E,S){const m=s("../../../utils/xml-stream"),o=s("../base-xform"),a=s("../list-xform"),r=s("./auto-filter-xform"),t=s("./table-column-xform"),e=s("./table-style-info-xform");class l extends o{constructor(){super(),this.map={autoFilter:new r,tableColumns:new a({tag:"tableColumns",count:!0,empty:!0,childXform:new t}),tableStyleInfo:new e}}prepare(i,c){this.map.autoFilter.prepare(i),this.map.tableColumns.prepare(i.columns,c)}get tag(){return"table"}render(i,c){i.openXml(m.StdDocAttributes),i.openNode(this.tag,{...l.TABLE_ATTRIBUTES,id:c.id,name:c.name,displayName:c.displayName||c.name,ref:c.tableRef,totalsRowCount:c.totalsRow?"1":void 0,totalsRowShown:c.totalsRow?void 0:"1",headerRowCount:c.headerRow?"1":"0"}),this.map.autoFilter.render(i,c),this.map.tableColumns.render(i,c.columns),this.map.tableStyleInfo.render(i,c.style),i.closeNode()}parseOpen(i){if(this.parser)return this.parser.parseOpen(i),!0;const{name:c,attributes:h}=i;switch(c){case this.tag:this.reset(),this.model={name:h.name,displayName:h.displayName||h.name,tableRef:h.ref,totalsRow:h.totalsRowCount==="1",headerRow:h.headerRowCount==="1"};break;default:this.parser=this.map[i.name],this.parser&&this.parser.parseOpen(i)}return!0}parseText(i){this.parser&&this.parser.parseText(i)}parseClose(i){if(this.parser)return this.parser.parseClose(i)||(this.parser=void 0),!0;switch(i){case this.tag:return this.model.columns=this.map.tableColumns.model,this.map.autoFilter.model&&(this.model.autoFilterRef=this.map.autoFilter.model.autoFilterRef,this.map.autoFilter.model.columns.forEach((c,h)=>{this.model.columns[h].filterButton=c.filterButton})),this.model.style=this.map.tableStyleInfo.model,!1;default:return!0}}reconcile(i,c){i.columns.forEach(h=>{h.dxfId!==void 0&&(h.style=c.styles.getDxfStyle(h.dxfId))})}}l.TABLE_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"xr xr3","xmlns:xr":"http://schemas.microsoft.com/office/spreadsheetml/2014/revision","xmlns:xr3":"http://schemas.microsoft.com/office/spreadsheetml/2016/revision3"},E.exports=l},{"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"./auto-filter-xform":137,"./table-column-xform":141,"./table-style-info-xform":142}],144:[function(s,E,S){(function(m,o){(function(){const a=s("fs"),r=s("jszip"),{PassThrough:t}=s("readable-stream"),e=s("../utils/zip-stream"),l=s("../utils/stream-buf"),n=s("../utils/utils"),i=s("../utils/xml-stream"),{bufferToString:c}=s("../utils/browser-buffer-decode"),h=s("./xform/style/styles-xform"),u=s("./xform/core/core-xform"),d=s("./xform/strings/shared-strings-xform"),f=s("./xform/core/relationships-xform"),w=s("./xform/core/content-types-xform"),_=s("./xform/core/app-xform"),A=s("./xform/book/workbook-xform"),N=s("./xform/sheet/worksheet-xform"),L=s("./xform/drawing/drawing-xform"),j=s("./xform/table/table-xform"),P=s("./xform/comment/comments-xform"),D=s("./xform/comment/vml-notes-xform"),$=s("./xml/theme1");class B{constructor(M){this.workbook=M}async readFile(M,v){if(!await n.fs.exists(M))throw new Error("File not found: "+M);const p=a.createReadStream(M);try{const b=await this.read(p,v);return p.close(),b}catch(b){throw p.close(),b}}parseRels(M){return new f().parseStream(M)}parseWorkbook(M){return new A().parseStream(M)}parseSharedStrings(M){return new d().parseStream(M)}reconcile(M,v){const p=new A,b=new N(v),g=new L,y=new j;p.reconcile(M);const k={media:M.media,mediaIndex:M.mediaIndex};Object.keys(M.drawings).forEach(z=>{const U=M.drawings[z],q=M.drawingRels[z];q&&(k.rels=q.reduce((O,H)=>(O[H.Id]=H,O),{}),(U.anchors||[]).forEach(O=>{const H=O.picture&&O.picture.hyperlinks;H&&k.rels[H.rId]&&(H.hyperlink=k.rels[H.rId].Target,delete H.rId)}),g.reconcile(U,k))});const R={styles:M.styles};Object.values(M.tables).forEach(z=>{y.reconcile(z,R)});const I={styles:M.styles,sharedStrings:M.sharedStrings,media:M.media,mediaIndex:M.mediaIndex,date1904:M.properties&&M.properties.date1904,drawings:M.drawings,comments:M.comments,tables:M.tables,vmlDrawings:M.vmlDrawings};M.worksheets.forEach(z=>{z.relationships=M.worksheetRels[z.sheetNo],b.reconcile(z,I)}),delete M.worksheetHash,delete M.worksheetRels,delete M.globalRels,delete M.sharedStrings,delete M.workbookRels,delete M.sheetDefs,delete M.styles,delete M.mediaIndex,delete M.drawings,delete M.drawingRels,delete M.vmlDrawings}async _processWorksheetEntry(M,v,p,b,g){const y=new N(b),k=await y.parseStream(M);k.sheetNo=p,v.worksheetHash[g]=k,v.worksheets.push(k)}async _processCommentEntry(M,v,p){const b=new P,g=await b.parseStream(M);v.comments[`../${p}.xml`]=g}async _processTableEntry(M,v,p){const b=new j,g=await b.parseStream(M);v.tables[`../tables/${p}.xml`]=g}async _processWorksheetRelsEntry(M,v,p){const b=new f,g=await b.parseStream(M);v.worksheetRels[p]=g}async _processMediaEntry(M,v,p){const b=p.lastIndexOf(".");if(b>=1){const g=p.substr(b+1),y=p.substr(0,b);await new Promise((k,R)=>{const I=new l;I.on("finish",()=>{v.mediaIndex[p]=v.media.length,v.mediaIndex[y]=v.media.length;const z={type:"image",name:y,extension:g,buffer:I.toBuffer()};v.media.push(z),k()}),M.on("error",z=>{R(z)}),M.pipe(I)})}}async _processDrawingEntry(M,v,p){const b=new L,g=await b.parseStream(M);v.drawings[p]=g}async _processDrawingRelsEntry(M,v,p){const b=new f,g=await b.parseStream(M);v.drawingRels[p]=g}async _processVmlDrawingEntry(M,v,p){const b=new D,g=await b.parseStream(M);v.vmlDrawings[`../drawings/${p}.vml`]=g}async _processThemeEntry(M,v,p){await new Promise((b,g)=>{const y=new l;M.on("error",g),y.on("error",g),y.on("finish",()=>{v.themes[p]=y.read().toString(),b()}),M.pipe(y)})}createInputStream(){throw new Error("`XLSX#createInputStream` is deprecated. You should use `XLSX#read` instead. This method will be removed in version 5.0. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md")}async read(M,v){!M[Symbol.asyncIterator]&&M.pipe&&(M=M.pipe(new t));const p=[];for await(const b of M)p.push(b);return this.load(o.concat(p),v)}async load(M,v){let p;p=v&&v.base64?o.from(M.toString(),"base64"):M;const b={worksheets:[],worksheetHash:{},worksheetRels:[],themes:{},media:[],mediaIndex:{},drawings:{},drawingRels:{},comments:{},tables:{},vmlDrawings:{}},g=await r.loadAsync(p);for(const y of Object.values(g.files))if(!y.dir){let k,R=y.name;if(R[0]==="/"&&(R=R.substr(1)),R.match(/xl\/media\//)||R.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/))k=new t,k.write(await y.async("nodebuffer"));else{let I;k=new t({writableObjectMode:!0,readableObjectMode:!0}),I=m.browser?c(await y.async("nodebuffer")):await y.async("string");const z=16384;for(let U=0;U{if(p.type==="image"){const b=`xl/media/${p.name}.${p.extension}`;if(p.filename){const g=await function(y,k){return new Promise((R,I)=>{a.readFile(y,k,(z,U)=>{z?I(z):R(U)})})}(p.filename);return M.append(g,{name:b})}if(p.buffer)return M.append(p.buffer,{name:b});if(p.base64){const g=p.base64,y=g.substring(g.indexOf(",")+1);return M.append(y,{name:b,base64:!0})}}throw new Error("Unsupported media")}))}addDrawings(M,v){const p=new L,b=new f;v.worksheets.forEach(g=>{const{drawing:y}=g;if(y){p.prepare(y,{});let k=p.toXml(y);M.append(k,{name:`xl/drawings/${y.name}.xml`}),k=b.toXml(y.rels),M.append(k,{name:`xl/drawings/_rels/${y.name}.xml.rels`})}})}addTables(M,v){const p=new j;v.worksheets.forEach(b=>{const{tables:g}=b;g.forEach(y=>{p.prepare(y,{});const k=p.toXml(y);M.append(k,{name:"xl/tables/"+y.target})})})}async addContentTypes(M,v){const p=new w().toXml(v);M.append(p,{name:"[Content_Types].xml"})}async addApp(M,v){const p=new _().toXml(v);M.append(p,{name:"docProps/app.xml"})}async addCore(M,v){const p=new u;M.append(p.toXml(v),{name:"docProps/core.xml"})}async addThemes(M,v){const p=v.themes||{theme1:$};Object.keys(p).forEach(b=>{const g=p[b],y=`xl/theme/${b}.xml`;M.append(g,{name:y})})}async addOfficeRels(M){const v=new f().toXml([{Id:"rId1",Type:B.RelType.OfficeDocument,Target:"xl/workbook.xml"},{Id:"rId2",Type:B.RelType.CoreProperties,Target:"docProps/core.xml"},{Id:"rId3",Type:B.RelType.ExtenderProperties,Target:"docProps/app.xml"}]);M.append(v,{name:"_rels/.rels"})}async addWorkbookRels(M,v){let p=1;const b=[{Id:"rId"+p++,Type:B.RelType.Styles,Target:"styles.xml"},{Id:"rId"+p++,Type:B.RelType.Theme,Target:"theme/theme1.xml"}];v.sharedStrings.count&&b.push({Id:"rId"+p++,Type:B.RelType.SharedStrings,Target:"sharedStrings.xml"}),v.worksheets.forEach(y=>{y.rId="rId"+p++,b.push({Id:y.rId,Type:B.RelType.Worksheet,Target:`worksheets/sheet${y.id}.xml`})});const g=new f().toXml(b);M.append(g,{name:"xl/_rels/workbook.xml.rels"})}async addSharedStrings(M,v){v.sharedStrings&&v.sharedStrings.count&&M.append(v.sharedStrings.xml,{name:"xl/sharedStrings.xml"})}async addStyles(M,v){const{xml:p}=v.styles;p&&M.append(p,{name:"xl/styles.xml"})}async addWorkbook(M,v){const p=new A;M.append(p.toXml(v),{name:"xl/workbook.xml"})}async addWorksheets(M,v){const p=new N,b=new f,g=new P,y=new D;v.worksheets.forEach(k=>{let R=new i;p.render(R,k),M.append(R.xml,{name:`xl/worksheets/sheet${k.id}.xml`}),k.rels&&k.rels.length&&(R=new i,b.render(R,k.rels),M.append(R.xml,{name:`xl/worksheets/_rels/sheet${k.id}.xml.rels`})),k.comments.length>0&&(R=new i,g.render(R,k),M.append(R.xml,{name:`xl/comments${k.id}.xml`}),R=new i,y.render(R,k),M.append(R.xml,{name:`xl/drawings/vmlDrawing${k.id}.vml`}))})}_finalize(M){return new Promise((v,p)=>{M.on("finish",()=>{v(this)}),M.on("error",p),M.finalize()})}prepareModel(M,v){M.creator=M.creator||"ExcelJS",M.lastModifiedBy=M.lastModifiedBy||"ExcelJS",M.created=M.created||new Date,M.modified=M.modified||new Date,M.useSharedStrings=v.useSharedStrings===void 0||v.useSharedStrings,M.useStyles=v.useStyles===void 0||v.useStyles,M.sharedStrings=new d,M.styles=M.useStyles?new h(!0):new h.Mock;const p=new A,b=new N;p.prepare(M);const g={sharedStrings:M.sharedStrings,styles:M.styles,date1904:M.properties.date1904,drawingsCount:0,media:M.media};g.drawings=M.drawings=[],g.commentRefs=M.commentRefs=[];let y=0;M.tables=[],M.worksheets.forEach(k=>{k.tables.forEach(R=>{y++,R.target=`table${y}.xml`,R.id=y,M.tables.push(R)}),b.prepare(k,g)})}async write(M,v){v=v||{};const{model:p}=this.workbook,b=new e.ZipWriter(v.zip);return b.pipe(M),this.prepareModel(p,v),await this.addContentTypes(b,p),await this.addOfficeRels(b,p),await this.addWorkbookRels(b,p),await this.addWorksheets(b,p),await this.addSharedStrings(b,p),await this.addDrawings(b,p),await this.addTables(b,p),await Promise.all([this.addThemes(b,p),this.addStyles(b,p)]),await this.addMedia(b,p),await Promise.all([this.addApp(b,p),this.addCore(b,p)]),await this.addWorkbook(b,p),this._finalize(b)}writeFile(M,v){const p=a.createWriteStream(M);return new Promise((b,g)=>{p.on("finish",()=>{b()}),p.on("error",y=>{g(y)}),this.write(p,v).then(()=>{p.end()}).catch(y=>{g(y)})})}async writeBuffer(M){const v=new l;return await this.write(v,M),v.read()}}B.RelType=s("./rel-type"),E.exports=B}).call(this)}).call(this,s("_process"),s("buffer").Buffer)},{"../utils/browser-buffer-decode":16,"../utils/stream-buf":24,"../utils/utils":27,"../utils/xml-stream":28,"../utils/zip-stream":29,"./rel-type":31,"./xform/book/workbook-xform":38,"./xform/comment/comments-xform":40,"./xform/comment/vml-notes-xform":45,"./xform/core/app-xform":51,"./xform/core/content-types-xform":52,"./xform/core/core-xform":53,"./xform/core/relationships-xform":55,"./xform/drawing/drawing-xform":62,"./xform/sheet/worksheet-xform":115,"./xform/strings/shared-strings-xform":124,"./xform/style/styles-xform":135,"./xform/table/table-xform":143,"./xml/theme1":145,_process:467,buffer:220,fs:216,jszip:441,"readable-stream":491}],145:[function(s,E,S){E.exports=` - `},{}],146:[function(s,E,S){(function(m){(function(){Object.defineProperty(S,"__esModule",{value:!0}),S.CsvFormatterStream=void 0;const o=s("stream"),a=s("./formatter");class r extends o.Transform{constructor(e){super({writableObjectMode:e.objectMode}),this.hasWrittenBOM=!1,this.formatterOptions=e,this.rowFormatter=new a.RowFormatter(e),this.hasWrittenBOM=!e.writeBOM}transform(e){return this.rowFormatter.rowTransform=e,this}_transform(e,l,n){let i=!1;try{this.hasWrittenBOM||(this.push(this.formatterOptions.BOM),this.hasWrittenBOM=!0),this.rowFormatter.format(e,(c,h)=>c?(i=!0,n(c)):(h&&h.forEach(u=>{this.push(m.from(u,"utf8"))}),i=!0,n()))}catch(c){if(i)throw c;n(c)}}_flush(e){this.rowFormatter.finish((l,n)=>l?e(l):(n&&n.forEach(i=>{this.push(m.from(i,"utf8"))}),e()))}}S.CsvFormatterStream=r}).call(this)}).call(this,s("buffer").Buffer)},{"./formatter":150,buffer:220,stream:505}],147:[function(s,E,S){Object.defineProperty(S,"__esModule",{value:!0}),S.FormatterOptions=void 0,S.FormatterOptions=class{constructor(){let m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};var o;this.objectMode=!0,this.delimiter=",",this.rowDelimiter=` -`,this.quote='"',this.escape=this.quote,this.quoteColumns=!1,this.quoteHeaders=this.quoteColumns,this.headers=null,this.includeEndRowDelimiter=!1,this.writeBOM=!1,this.BOM="\uFEFF",this.alwaysWriteHeaders=!1,Object.assign(this,m||{}),m?.quoteHeaders===void 0&&(this.quoteHeaders=this.quoteColumns),m?.quote===!0?this.quote='"':m?.quote===!1&&(this.quote=""),typeof m?.escape!="string"&&(this.escape=this.quote),this.shouldWriteHeaders=!!this.headers&&((o=m.writeHeaders)===null||o===void 0||o),this.headers=Array.isArray(this.headers)?this.headers:null,this.escapedQuote=`${this.escape}${this.quote}`}}},{}],148:[function(s,E,S){var m=function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(S,"__esModule",{value:!0}),S.FieldFormatter=void 0;const o=m(s("lodash.isboolean")),a=m(s("lodash.isnil")),r=m(s("lodash.escaperegexp"));S.FieldFormatter=class{constructor(t){this._headers=null,this.formatterOptions=t,t.headers!==null&&(this.headers=t.headers),this.REPLACE_REGEXP=new RegExp(t.quote,"g");const e=`[${t.delimiter}${r.default(t.rowDelimiter)}|\r| -]`;this.ESCAPE_REGEXP=new RegExp(e)}set headers(t){this._headers=t}shouldQuote(t,e){const l=e?this.formatterOptions.quoteHeaders:this.formatterOptions.quoteColumns;return o.default(l)?l:Array.isArray(l)?l[t]:this._headers!==null&&l[this._headers[t]]}format(t,e,l){const n=(""+(a.default(t)?"":t)).replace(/\0/g,""),{formatterOptions:i}=this;return i.quote!==""&&n.indexOf(i.quote)!==-1?this.quoteField(n.replace(this.REPLACE_REGEXP,i.escapedQuote)):n.search(this.ESCAPE_REGEXP)!==-1||this.shouldQuote(e,l)?this.quoteField(n):n}quoteField(t){const{quote:e}=this.formatterOptions;return`${e}${t}${e}`}}},{"lodash.escaperegexp":442,"lodash.isboolean":444,"lodash.isnil":447}],149:[function(s,E,S){var m=function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(S,"__esModule",{value:!0}),S.RowFormatter=void 0;const o=m(s("lodash.isfunction")),a=m(s("lodash.isequal")),r=s("./FieldFormatter"),t=s("../types");class e{constructor(n){this.rowCount=0,this.formatterOptions=n,this.fieldFormatter=new r.FieldFormatter(n),this.headers=n.headers,this.shouldWriteHeaders=n.shouldWriteHeaders,this.hasWrittenHeaders=!1,this.headers!==null&&(this.fieldFormatter.headers=this.headers),n.transform&&(this.rowTransform=n.transform)}static isRowHashArray(n){return!!Array.isArray(n)&&Array.isArray(n[0])&&n[0].length===2}static isRowArray(n){return Array.isArray(n)&&!this.isRowHashArray(n)}static gatherHeaders(n){return e.isRowHashArray(n)?n.map(i=>i[0]):Array.isArray(n)?n:Object.keys(n)}static createTransform(n){return t.isSyncTransform(n)?(i,c)=>{let h=null;try{h=n(i)}catch(u){return c(u)}return c(null,h)}:(i,c)=>{n(i,c)}}set rowTransform(n){if(!o.default(n))throw new TypeError("The transform should be a function");this._rowTransform=e.createTransform(n)}format(n,i){this.callTransformer(n,(c,h)=>{if(c)return i(c);if(!n)return i(null);const u=[];if(h){const{shouldFormatColumns:d,headers:f}=this.checkHeaders(h);if(this.shouldWriteHeaders&&f&&!this.hasWrittenHeaders&&(u.push(this.formatColumns(f,!0)),this.hasWrittenHeaders=!0),d){const w=this.gatherColumns(h);u.push(this.formatColumns(w,!1))}}return i(null,u)})}finish(n){const i=[];if(this.formatterOptions.alwaysWriteHeaders&&this.rowCount===0){if(!this.headers)return n(new Error("`alwaysWriteHeaders` option is set to true but `headers` option not provided."));i.push(this.formatColumns(this.headers,!0))}return this.formatterOptions.includeEndRowDelimiter&&i.push(this.formatterOptions.rowDelimiter),n(null,i)}checkHeaders(n){if(this.headers)return{shouldFormatColumns:!0,headers:this.headers};const i=e.gatherHeaders(n);return this.headers=i,this.fieldFormatter.headers=i,this.shouldWriteHeaders?{shouldFormatColumns:!a.default(i,n),headers:i}:{shouldFormatColumns:!0,headers:null}}gatherColumns(n){if(this.headers===null)throw new Error("Headers is currently null");return Array.isArray(n)?e.isRowHashArray(n)?this.headers.map((i,c)=>{const h=n[c];return h?h[1]:""}):e.isRowArray(n)&&!this.shouldWriteHeaders?n:this.headers.map((i,c)=>n[c]):this.headers.map(i=>n[i])}callTransformer(n,i){return this._rowTransform?this._rowTransform(n,i):i(null,n)}formatColumns(n,i){const c=n.map((u,d)=>this.fieldFormatter.format(u,d,i)).join(this.formatterOptions.delimiter),{rowCount:h}=this;return this.rowCount+=1,h?[this.formatterOptions.rowDelimiter,c].join(""):c}}S.RowFormatter=e},{"../types":152,"./FieldFormatter":148,"lodash.isequal":445,"lodash.isfunction":446}],150:[function(s,E,S){Object.defineProperty(S,"__esModule",{value:!0}),S.FieldFormatter=S.RowFormatter=void 0;var m=s("./RowFormatter");Object.defineProperty(S,"RowFormatter",{enumerable:!0,get:function(){return m.RowFormatter}});var o=s("./FieldFormatter");Object.defineProperty(S,"FieldFormatter",{enumerable:!0,get:function(){return o.FieldFormatter}})},{"./FieldFormatter":148,"./RowFormatter":149}],151:[function(s,E,S){(function(m){(function(){var o=Object.create?function(d,f,w,_){_===void 0&&(_=w),Object.defineProperty(d,_,{enumerable:!0,get:function(){return f[w]}})}:function(d,f,w,_){_===void 0&&(_=w),d[_]=f[w]},a=Object.create?function(d,f){Object.defineProperty(d,"default",{enumerable:!0,value:f})}:function(d,f){d.default=f},r=function(d){if(d&&d.__esModule)return d;var f={};if(d!=null)for(var w in d)w!=="default"&&Object.prototype.hasOwnProperty.call(d,w)&&o(f,d,w);return a(f,d),f},t=function(d,f){for(var w in d)w==="default"||Object.prototype.hasOwnProperty.call(f,w)||o(f,d,w)};Object.defineProperty(S,"__esModule",{value:!0}),S.writeToPath=S.writeToString=S.writeToBuffer=S.writeToStream=S.write=S.format=S.FormatterOptions=S.CsvFormatterStream=void 0;const e=s("util"),l=s("stream"),n=r(s("fs")),i=s("./FormatterOptions"),c=s("./CsvFormatterStream");t(s("./types"),S);var h=s("./CsvFormatterStream");Object.defineProperty(S,"CsvFormatterStream",{enumerable:!0,get:function(){return h.CsvFormatterStream}});var u=s("./FormatterOptions");Object.defineProperty(S,"FormatterOptions",{enumerable:!0,get:function(){return u.FormatterOptions}}),S.format=d=>new c.CsvFormatterStream(new i.FormatterOptions(d)),S.write=(d,f)=>{const w=S.format(f),_=e.promisify((A,N)=>{w.write(A,void 0,N)});return d.reduce((A,N)=>A.then(()=>_(N)),Promise.resolve()).then(()=>w.end()).catch(A=>{w.emit("error",A)}),w},S.writeToStream=(d,f,w)=>S.write(f,w).pipe(d),S.writeToBuffer=function(d){let f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const w=[],_=new l.Writable({write(A,N,L){w.push(A),L()}});return new Promise((A,N)=>{_.on("error",N).on("finish",()=>A(m.concat(w))),S.write(d,f).pipe(_)})},S.writeToString=(d,f)=>S.writeToBuffer(d,f).then(w=>w.toString()),S.writeToPath=(d,f,w)=>{const _=n.createWriteStream(d,{encoding:"utf8"});return S.write(f,w).pipe(_)}}).call(this)}).call(this,s("buffer").Buffer)},{"./CsvFormatterStream":146,"./FormatterOptions":147,"./types":152,buffer:220,fs:216,stream:505,util:527}],152:[function(s,E,S){Object.defineProperty(S,"__esModule",{value:!0}),S.isSyncTransform=void 0,S.isSyncTransform=m=>m.length===1},{}],153:[function(s,E,S){(function(m){(function(){Object.defineProperty(S,"__esModule",{value:!0}),S.CsvParserStream=void 0;const o=s("string_decoder"),a=s("stream"),r=s("./transforms"),t=s("./parser");class e extends a.Transform{constructor(n){super({objectMode:n.objectMode}),this.lines="",this.rowCount=0,this.parsedRowCount=0,this.parsedLineCount=0,this.endEmitted=!1,this.headersEmitted=!1,this.parserOptions=n,this.parser=new t.Parser(n),this.headerTransformer=new r.HeaderTransformer(n),this.decoder=new o.StringDecoder(n.encoding),this.rowTransformerValidator=new r.RowTransformerValidator}get hasHitRowLimit(){return this.parserOptions.limitRows&&this.rowCount>=this.parserOptions.maxRows}get shouldEmitRows(){return this.parsedRowCount>this.parserOptions.skipRows}get shouldSkipLine(){return this.parsedLineCount<=this.parserOptions.skipLines}transform(n){return this.rowTransformerValidator.rowTransform=n,this}validate(n){return this.rowTransformerValidator.rowValidator=n,this}emit(n){if(n==="end")return this.endEmitted||(this.endEmitted=!0,super.emit("end",this.rowCount)),!1;for(var i=arguments.length,c=new Array(i>1?i-1:0),h=1;h{const d=_=>_?i(_):u%100!=0?h(u+1):void m(()=>h(u+1));if(this.checkAndEmitHeaders(),u>=c||this.hasHitRowLimit)return i();if(this.parsedLineCount+=1,this.shouldSkipLine)return d();const f=n[u];this.rowCount+=1,this.parsedRowCount+=1;const w=this.rowCount;return this.transformRow(f,(_,A)=>{if(_)return this.rowCount-=1,d(_);if(!A)return d(new Error("expected transform result"));if(A.isValid){if(A.row)return this.pushRow(A.row,d)}else this.emit("data-invalid",A.row,w,A.reason);return d()})};h(0)}transformRow(n,i){try{this.headerTransformer.transform(n,(c,h)=>c?i(c):h?h.isValid?h.row?this.shouldEmitRows?this.rowTransformerValidator.transformAndValidate(h.row,i):this.skipRow(i):(this.rowCount-=1,this.parsedRowCount-=1,i(null,{row:null,isValid:!0})):this.shouldEmitRows?i(null,{isValid:!1,row:n}):this.skipRow(i):i(new Error("Expected result from header transform")))}catch(c){i(c)}}checkAndEmitHeaders(){!this.headersEmitted&&this.headerTransformer.headers&&(this.headersEmitted=!0,this.emit("headers",this.headerTransformer.headers))}skipRow(n){return this.rowCount-=1,n(null,{row:null,isValid:!0})}pushRow(n,i){try{this.parserOptions.objectMode?this.push(n):this.push(JSON.stringify(n)),i()}catch(c){i(c)}}static wrapDoneCallback(n){let i=!1;return function(c){if(c){if(i)throw c;return i=!0,void n(c)}for(var h=arguments.length,u=new Array(h>1?h-1:0),d=1;d1)throw new Error("delimiter option must be one character long");this.escapedDelimiter=o.default(this.delimiter),this.escapeChar=(t=this.escape)!==null&&t!==void 0?t:this.quote,this.supportsComments=!a.default(this.comment),this.NEXT_TOKEN_REGEXP=new RegExp(`([^\\s]|\\r\\n|\\n|\\r|${this.escapedDelimiter})`),this.maxRows>0&&(this.limitRows=!0)}}},{"lodash.escaperegexp":442,"lodash.isnil":447}],155:[function(s,E,S){var m=Object.create?function(h,u,d,f){f===void 0&&(f=d),Object.defineProperty(h,f,{enumerable:!0,get:function(){return u[d]}})}:function(h,u,d,f){f===void 0&&(f=d),h[f]=u[d]},o=Object.create?function(h,u){Object.defineProperty(h,"default",{enumerable:!0,value:u})}:function(h,u){h.default=u},a=function(h){if(h&&h.__esModule)return h;var u={};if(h!=null)for(var d in h)d!=="default"&&Object.prototype.hasOwnProperty.call(h,d)&&m(u,h,d);return o(u,h),u},r=function(h,u){for(var d in h)d==="default"||Object.prototype.hasOwnProperty.call(u,d)||m(u,h,d)};Object.defineProperty(S,"__esModule",{value:!0}),S.parseString=S.parseFile=S.parseStream=S.parse=S.ParserOptions=S.CsvParserStream=void 0;const t=a(s("fs")),e=s("stream"),l=s("./ParserOptions"),n=s("./CsvParserStream");r(s("./types"),S);var i=s("./CsvParserStream");Object.defineProperty(S,"CsvParserStream",{enumerable:!0,get:function(){return i.CsvParserStream}});var c=s("./ParserOptions");Object.defineProperty(S,"ParserOptions",{enumerable:!0,get:function(){return c.ParserOptions}}),S.parse=h=>new n.CsvParserStream(new l.ParserOptions(h)),S.parseStream=(h,u)=>h.pipe(new n.CsvParserStream(new l.ParserOptions(u))),S.parseFile=function(h){let u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.createReadStream(h).pipe(new n.CsvParserStream(new l.ParserOptions(u)))},S.parseString=(h,u)=>{const d=new e.Readable;return d.push(h),d.push(null),d.pipe(new n.CsvParserStream(new l.ParserOptions(u)))}},{"./CsvParserStream":153,"./ParserOptions":154,"./types":169,fs:216,stream:505}],156:[function(s,E,S){Object.defineProperty(S,"__esModule",{value:!0}),S.Parser=void 0;const m=s("./Scanner"),o=s("./RowParser"),a=s("./Token");class r{constructor(e){this.parserOptions=e,this.rowParser=new o.RowParser(this.parserOptions)}static removeBOM(e){return e&&e.charCodeAt(0)===65279?e.slice(1):e}parse(e,l){const n=new m.Scanner({line:r.removeBOM(e),parserOptions:this.parserOptions,hasMoreData:l});return this.parserOptions.supportsComments?this.parseWithComments(n):this.parseWithoutComments(n)}parseWithoutComments(e){const l=[];let n=!0;for(;n;)n=this.parseRow(e,l);return{line:e.line,rows:l}}parseWithComments(e){const{parserOptions:l}=this,n=[];for(let i=e.nextCharacterToken;i!==null;i=e.nextCharacterToken)if(a.Token.isTokenComment(i,l)){if(e.advancePastLine()===null)return{line:e.lineFromCursor,rows:n};if(!e.hasMoreCharacters)return{line:e.lineFromCursor,rows:n};e.truncateToCursor()}else if(!this.parseRow(e,n))break;return{line:e.line,rows:n}}parseRow(e,l){if(!e.nextNonSpaceToken)return!1;const n=this.rowParser.parse(e);return n!==null&&(this.parserOptions.ignoreEmpty&&o.RowParser.isEmptyRow(n)||l.push(n),!0)}}S.Parser=r},{"./RowParser":157,"./Scanner":158,"./Token":159}],157:[function(s,E,S){Object.defineProperty(S,"__esModule",{value:!0}),S.RowParser=void 0;const m=s("./column"),o=s("./Token");S.RowParser=class{constructor(a){this.parserOptions=a,this.columnParser=new m.ColumnParser(a)}static isEmptyRow(a){return a.join("").replace(/\s+/g,"")===""}parse(a){const{parserOptions:r}=this,{hasMoreData:t}=a,e=a,l=[];let n=this.getStartToken(e,l);for(;n;){if(o.Token.isTokenRowDelimiter(n))return e.advancePastToken(n),!e.hasMoreCharacters&&o.Token.isTokenCarriageReturn(n,r)&&t?null:(e.truncateToCursor(),l);if(!this.shouldSkipColumnParse(e,n,l)){const i=this.columnParser.parse(e);if(i===null)return null;l.push(i)}n=e.nextNonSpaceToken}return t?null:(e.truncateToCursor(),l)}getStartToken(a,r){const t=a.nextNonSpaceToken;return t!==null&&o.Token.isTokenDelimiter(t,this.parserOptions)?(r.push(""),a.nextNonSpaceToken):t}shouldSkipColumnParse(a,r,t){const{parserOptions:e}=this;if(o.Token.isTokenDelimiter(r,e)){a.advancePastToken(r);const l=a.nextCharacterToken;if(!a.hasMoreCharacters||l!==null&&o.Token.isTokenRowDelimiter(l)||l!==null&&o.Token.isTokenDelimiter(l,e))return t.push(""),!0}return!1}}},{"./Token":159,"./column":164}],158:[function(s,E,S){Object.defineProperty(S,"__esModule",{value:!0}),S.Scanner=void 0;const m=s("./Token"),o=/((?:\r\n)|\n|\r)/;S.Scanner=class{constructor(a){this.cursor=0,this.line=a.line,this.lineLength=this.line.length,this.parserOptions=a.parserOptions,this.hasMoreData=a.hasMoreData,this.cursor=a.cursor||0}get hasMoreCharacters(){return this.lineLength>this.cursor}get nextNonSpaceToken(){const{lineFromCursor:a}=this,r=this.parserOptions.NEXT_TOKEN_REGEXP;if(a.search(r)===-1)return null;const t=r.exec(a);if(t==null)return null;const e=t[1],l=this.cursor+(t.index||0);return new m.Token({token:e,startCursor:l,endCursor:l+e.length-1})}get nextCharacterToken(){const{cursor:a,lineLength:r}=this;return r<=a?null:new m.Token({token:this.line[a],startCursor:a,endCursor:a})}get lineFromCursor(){return this.line.substr(this.cursor)}advancePastLine(){const a=o.exec(this.lineFromCursor);return a?(this.cursor+=(a.index||0)+a[0].length,this):this.hasMoreData?null:(this.cursor=this.lineLength,this)}advanceTo(a){return this.cursor=a,this}advanceToToken(a){return this.cursor=a.startCursor,this}advancePastToken(a){return this.cursor=a.endCursor+1,this}truncateToCursor(){return this.line=this.lineFromCursor,this.lineLength=this.line.length,this.cursor=0,this}}},{"./Token":159}],159:[function(s,E,S){Object.defineProperty(S,"__esModule",{value:!0}),S.Token=void 0,S.Token=class{constructor(m){this.token=m.token,this.startCursor=m.startCursor,this.endCursor=m.endCursor}static isTokenRowDelimiter(m){const o=m.token;return o==="\r"||o===` -`||o===`\r -`}static isTokenCarriageReturn(m,o){return m.token===o.carriageReturn}static isTokenComment(m,o){return o.supportsComments&&!!m&&m.token===o.comment}static isTokenEscapeCharacter(m,o){return m.token===o.escapeChar}static isTokenQuote(m,o){return m.token===o.quote}static isTokenDelimiter(m,o){return m.token===o.delimiter}}},{}],160:[function(s,E,S){Object.defineProperty(S,"__esModule",{value:!0}),S.ColumnFormatter=void 0,S.ColumnFormatter=class{constructor(m){m.trim?this.format=o=>o.trim():m.ltrim?this.format=o=>o.trimLeft():m.rtrim?this.format=o=>o.trimRight():this.format=o=>o}}},{}],161:[function(s,E,S){Object.defineProperty(S,"__esModule",{value:!0}),S.ColumnParser=void 0;const m=s("./NonQuotedColumnParser"),o=s("./QuotedColumnParser"),a=s("../Token");S.ColumnParser=class{constructor(r){this.parserOptions=r,this.quotedColumnParser=new o.QuotedColumnParser(r),this.nonQuotedColumnParser=new m.NonQuotedColumnParser(r)}parse(r){const{nextNonSpaceToken:t}=r;return t!==null&&a.Token.isTokenQuote(t,this.parserOptions)?(r.advanceToToken(t),this.quotedColumnParser.parse(r)):this.nonQuotedColumnParser.parse(r)}}},{"../Token":159,"./NonQuotedColumnParser":162,"./QuotedColumnParser":163}],162:[function(s,E,S){Object.defineProperty(S,"__esModule",{value:!0}),S.NonQuotedColumnParser=void 0;const m=s("./ColumnFormatter"),o=s("../Token");S.NonQuotedColumnParser=class{constructor(a){this.parserOptions=a,this.columnFormatter=new m.ColumnFormatter(a)}parse(a){if(!a.hasMoreCharacters)return null;const{parserOptions:r}=this,t=[];let e=a.nextCharacterToken;for(;e&&!o.Token.isTokenDelimiter(e,r)&&!o.Token.isTokenRowDelimiter(e);e=a.nextCharacterToken)t.push(e.token),a.advancePastToken(e);return this.columnFormatter.format(t.join(""))}}},{"../Token":159,"./ColumnFormatter":160}],163:[function(s,E,S){Object.defineProperty(S,"__esModule",{value:!0}),S.QuotedColumnParser=void 0;const m=s("./ColumnFormatter"),o=s("../Token");S.QuotedColumnParser=class{constructor(a){this.parserOptions=a,this.columnFormatter=new m.ColumnFormatter(a)}parse(a){if(!a.hasMoreCharacters)return null;const r=a.cursor,{foundClosingQuote:t,col:e}=this.gatherDataBetweenQuotes(a);if(!t){if(a.advanceTo(r),!a.hasMoreData)throw new Error(`Parse Error: missing closing: '${this.parserOptions.quote||""}' in line: at '${a.lineFromCursor.replace(/[\r\n]/g,"\\n'")}'`);return null}return this.checkForMalformedColumn(a),e}gatherDataBetweenQuotes(a){const{parserOptions:r}=this;let t=!1,e=!1;const l=[];let n=a.nextCharacterToken;for(;!e&&n!==null;n=a.nextCharacterToken){const i=o.Token.isTokenQuote(n,r);if(!t&&i)t=!0;else if(t)if(o.Token.isTokenEscapeCharacter(n,r)){a.advancePastToken(n);const c=a.nextCharacterToken;c!==null&&(o.Token.isTokenQuote(c,r)||o.Token.isTokenEscapeCharacter(c,r))?(l.push(c.token),n=c):i?e=!0:l.push(n.token)}else i?e=!0:l.push(n.token);a.advancePastToken(n)}return{col:this.columnFormatter.format(l.join("")),foundClosingQuote:e}}checkForMalformedColumn(a){const{parserOptions:r}=this,{nextNonSpaceToken:t}=a;if(t){const e=o.Token.isTokenDelimiter(t,r),l=o.Token.isTokenRowDelimiter(t);if(!e&&!l){const n=a.lineFromCursor.substr(0,10).replace(/[\r\n]/g,"\\n'");throw new Error(`Parse Error: expected: '${r.escapedDelimiter}' OR new line got: '${t.token}'. at '${n}`)}a.advanceToToken(t)}else a.hasMoreData||a.advancePastLine()}}},{"../Token":159,"./ColumnFormatter":160}],164:[function(s,E,S){Object.defineProperty(S,"__esModule",{value:!0}),S.ColumnFormatter=S.QuotedColumnParser=S.NonQuotedColumnParser=S.ColumnParser=void 0;var m=s("./ColumnParser");Object.defineProperty(S,"ColumnParser",{enumerable:!0,get:function(){return m.ColumnParser}});var o=s("./NonQuotedColumnParser");Object.defineProperty(S,"NonQuotedColumnParser",{enumerable:!0,get:function(){return o.NonQuotedColumnParser}});var a=s("./QuotedColumnParser");Object.defineProperty(S,"QuotedColumnParser",{enumerable:!0,get:function(){return a.QuotedColumnParser}});var r=s("./ColumnFormatter");Object.defineProperty(S,"ColumnFormatter",{enumerable:!0,get:function(){return r.ColumnFormatter}})},{"./ColumnFormatter":160,"./ColumnParser":161,"./NonQuotedColumnParser":162,"./QuotedColumnParser":163}],165:[function(s,E,S){Object.defineProperty(S,"__esModule",{value:!0}),S.QuotedColumnParser=S.NonQuotedColumnParser=S.ColumnParser=S.Token=S.Scanner=S.RowParser=S.Parser=void 0;var m=s("./Parser");Object.defineProperty(S,"Parser",{enumerable:!0,get:function(){return m.Parser}});var o=s("./RowParser");Object.defineProperty(S,"RowParser",{enumerable:!0,get:function(){return o.RowParser}});var a=s("./Scanner");Object.defineProperty(S,"Scanner",{enumerable:!0,get:function(){return a.Scanner}});var r=s("./Token");Object.defineProperty(S,"Token",{enumerable:!0,get:function(){return r.Token}});var t=s("./column");Object.defineProperty(S,"ColumnParser",{enumerable:!0,get:function(){return t.ColumnParser}}),Object.defineProperty(S,"NonQuotedColumnParser",{enumerable:!0,get:function(){return t.NonQuotedColumnParser}}),Object.defineProperty(S,"QuotedColumnParser",{enumerable:!0,get:function(){return t.QuotedColumnParser}})},{"./Parser":156,"./RowParser":157,"./Scanner":158,"./Token":159,"./column":164}],166:[function(s,E,S){var m=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(S,"__esModule",{value:!0}),S.HeaderTransformer=void 0;const o=m(s("lodash.isundefined")),a=m(s("lodash.isfunction")),r=m(s("lodash.uniq")),t=m(s("lodash.groupby"));S.HeaderTransformer=class{constructor(e){this.headers=null,this.receivedHeaders=!1,this.shouldUseFirstRow=!1,this.processedFirstRow=!1,this.headersLength=0,this.parserOptions=e,e.headers===!0?this.shouldUseFirstRow=!0:Array.isArray(e.headers)?this.setHeaders(e.headers):a.default(e.headers)&&(this.headersTransform=e.headers)}transform(e,l){return this.shouldMapRow(e)?l(null,this.processRow(e)):l(null,{row:null,isValid:!0})}shouldMapRow(e){const{parserOptions:l}=this;if(!this.headersTransform&&l.renameHeaders&&!this.processedFirstRow){if(!this.receivedHeaders)throw new Error("Error renaming headers: new headers must be provided in an array");return this.processedFirstRow=!0,!1}if(!this.receivedHeaders&&Array.isArray(e)){if(this.headersTransform)this.setHeaders(this.headersTransform(e));else{if(!this.shouldUseFirstRow)return!0;this.setHeaders(e)}return!1}return!0}processRow(e){if(!this.headers)return{row:e,isValid:!0};const{parserOptions:l}=this;if(!l.discardUnmappedColumns&&e.length>this.headersLength){if(!l.strictColumnHandling)throw new Error(`Unexpected Error: column header mismatch expected: ${this.headersLength} columns got: ${e.length}`);return{row:e,isValid:!1,reason:`Column header mismatch expected: ${this.headersLength} columns got: ${e.length}`}}return l.strictColumnHandling&&e.length!!i);if(r.default(n).length!==n.length){const i=t.default(n),c=Object.keys(i).filter(h=>i[h].length>1);throw new Error("Duplicate headers found "+JSON.stringify(c))}this.headers=e,this.receivedHeaders=!0,this.headersLength=((l=this.headers)===null||l===void 0?void 0:l.length)||0}}},{"lodash.groupby":443,"lodash.isfunction":446,"lodash.isundefined":448,"lodash.uniq":449}],167:[function(s,E,S){var m=function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(S,"__esModule",{value:!0}),S.RowTransformerValidator=void 0;const o=m(s("lodash.isfunction")),a=s("../types");class r{constructor(){this._rowTransform=null,this._rowValidator=null}static createTransform(e){return a.isSyncTransform(e)?(l,n)=>{let i=null;try{i=e(l)}catch(c){return n(c)}return n(null,i)}:e}static createValidator(e){return a.isSyncValidate(e)?(l,n)=>{n(null,{row:l,isValid:e(l)})}:(l,n)=>{e(l,(i,c,h)=>i?n(i):n(null,c?{row:l,isValid:c,reason:h}:{row:l,isValid:!1,reason:h}))}}set rowTransform(e){if(!o.default(e))throw new TypeError("The transform should be a function");this._rowTransform=r.createTransform(e)}set rowValidator(e){if(!o.default(e))throw new TypeError("The validate should be a function");this._rowValidator=r.createValidator(e)}transformAndValidate(e,l){return this.callTransformer(e,(n,i)=>n?l(n):i?this.callValidator(i,(c,h)=>c?l(c):h&&!h.isValid?l(null,{row:i,isValid:!1,reason:h.reason}):l(null,{row:i,isValid:!0})):l(null,{row:null,isValid:!0}))}callTransformer(e,l){return this._rowTransform?this._rowTransform(e,l):l(null,e)}callValidator(e,l){return this._rowValidator?this._rowValidator(e,l):l(null,{row:e,isValid:!0})}}S.RowTransformerValidator=r},{"../types":169,"lodash.isfunction":446}],168:[function(s,E,S){Object.defineProperty(S,"__esModule",{value:!0}),S.HeaderTransformer=S.RowTransformerValidator=void 0;var m=s("./RowTransformerValidator");Object.defineProperty(S,"RowTransformerValidator",{enumerable:!0,get:function(){return m.RowTransformerValidator}});var o=s("./HeaderTransformer");Object.defineProperty(S,"HeaderTransformer",{enumerable:!0,get:function(){return o.HeaderTransformer}})},{"./HeaderTransformer":166,"./RowTransformerValidator":167}],169:[function(s,E,S){Object.defineProperty(S,"__esModule",{value:!0}),S.isSyncValidate=S.isSyncTransform=void 0,S.isSyncTransform=m=>m.length===1,S.isSyncValidate=m=>m.length===1},{}],170:[function(s,E,S){const m=S;m.bignum=s("bn.js"),m.define=s("./asn1/api").define,m.base=s("./asn1/base"),m.constants=s("./asn1/constants"),m.decoders=s("./asn1/decoders"),m.encoders=s("./asn1/encoders")},{"./asn1/api":171,"./asn1/base":173,"./asn1/constants":177,"./asn1/decoders":179,"./asn1/encoders":182,"bn.js":184}],171:[function(s,E,S){const m=s("./encoders"),o=s("./decoders"),a=s("inherits");function r(t,e){this.name=t,this.body=e,this.decoders={},this.encoders={}}S.define=function(t,e){return new r(t,e)},r.prototype._createNamed=function(t){const e=this.name;function l(n){this._initNamed(n,e)}return a(l,t),l.prototype._initNamed=function(n,i){t.call(this,n,i)},new l(this)},r.prototype._getDecoder=function(t){return t=t||"der",this.decoders.hasOwnProperty(t)||(this.decoders[t]=this._createNamed(o[t])),this.decoders[t]},r.prototype.decode=function(t,e,l){return this._getDecoder(e).decode(t,l)},r.prototype._getEncoder=function(t){return t=t||"der",this.encoders.hasOwnProperty(t)||(this.encoders[t]=this._createNamed(m[t])),this.encoders[t]},r.prototype.encode=function(t,e,l){return this._getEncoder(e).encode(t,l)}},{"./decoders":179,"./encoders":182,inherits:440}],172:[function(s,E,S){const m=s("inherits"),o=s("../base/reporter").Reporter,a=s("safer-buffer").Buffer;function r(e,l){o.call(this,l),a.isBuffer(e)?(this.base=e,this.offset=0,this.length=e.length):this.error("Input not Buffer")}function t(e,l){if(Array.isArray(e))this.length=0,this.value=e.map(function(n){return t.isEncoderBuffer(n)||(n=new t(n,l)),this.length+=n.length,n},this);else if(typeof e=="number"){if(!(0<=e&&e<=255))return l.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if(typeof e=="string")this.value=e,this.length=a.byteLength(e);else{if(!a.isBuffer(e))return l.error("Unsupported type: "+typeof e);this.value=e,this.length=e.length}}m(r,o),S.DecoderBuffer=r,r.isDecoderBuffer=function(e){return e instanceof r?!0:typeof e=="object"&&a.isBuffer(e.base)&&e.constructor.name==="DecoderBuffer"&&typeof e.offset=="number"&&typeof e.length=="number"&&typeof e.save=="function"&&typeof e.restore=="function"&&typeof e.isEmpty=="function"&&typeof e.readUInt8=="function"&&typeof e.skip=="function"&&typeof e.raw=="function"},r.prototype.save=function(){return{offset:this.offset,reporter:o.prototype.save.call(this)}},r.prototype.restore=function(e){const l=new r(this.base);return l.offset=e.offset,l.length=this.offset,this.offset=e.offset,o.prototype.restore.call(this,e.reporter),l},r.prototype.isEmpty=function(){return this.offset===this.length},r.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")},r.prototype.skip=function(e,l){if(!(this.offset+e<=this.length))return this.error(l||"DecoderBuffer overrun");const n=new r(this.base);return n._reporterState=this._reporterState,n.offset=this.offset,n.length=this.offset+e,this.offset+=e,n},r.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)},S.EncoderBuffer=t,t.isEncoderBuffer=function(e){return e instanceof t?!0:typeof e=="object"&&e.constructor.name==="EncoderBuffer"&&typeof e.length=="number"&&typeof e.join=="function"},t.prototype.join=function(e,l){return e||(e=a.alloc(this.length)),l||(l=0),this.length===0||(Array.isArray(this.value)?this.value.forEach(function(n){n.join(e,l),l+=n.length}):(typeof this.value=="number"?e[l]=this.value:typeof this.value=="string"?e.write(this.value,l):a.isBuffer(this.value)&&this.value.copy(e,l),l+=this.length)),e}},{"../base/reporter":175,inherits:440,"safer-buffer":495}],173:[function(s,E,S){const m=S;m.Reporter=s("./reporter").Reporter,m.DecoderBuffer=s("./buffer").DecoderBuffer,m.EncoderBuffer=s("./buffer").EncoderBuffer,m.Node=s("./node")},{"./buffer":172,"./node":174,"./reporter":175}],174:[function(s,E,S){const m=s("../base/reporter").Reporter,o=s("../base/buffer").EncoderBuffer,a=s("../base/buffer").DecoderBuffer,r=s("minimalistic-assert"),t=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],e=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(t);function l(i,c,h){const u={};this._baseState=u,u.name=h,u.enc=i,u.parent=c||null,u.children=null,u.tag=null,u.args=null,u.reverseArgs=null,u.choice=null,u.optional=!1,u.any=!1,u.obj=!1,u.use=null,u.useDecoder=null,u.key=null,u.default=null,u.explicit=null,u.implicit=null,u.contains=null,u.parent||(u.children=[],this._wrap())}E.exports=l;const n=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];l.prototype.clone=function(){const i=this._baseState,c={};n.forEach(function(u){c[u]=i[u]});const h=new this.constructor(c.parent);return h._baseState=c,h},l.prototype._wrap=function(){const i=this._baseState;e.forEach(function(c){this[c]=function(){const h=new this.constructor(this);return i.children.push(h),h[c].apply(h,arguments)}},this)},l.prototype._init=function(i){const c=this._baseState;r(c.parent===null),i.call(this),c.children=c.children.filter(function(h){return h._baseState.parent===this},this),r.equal(c.children.length,1,"Root node can have only one child")},l.prototype._useArgs=function(i){const c=this._baseState,h=i.filter(function(u){return u instanceof this.constructor},this);i=i.filter(function(u){return!(u instanceof this.constructor)},this),h.length!==0&&(r(c.children===null),c.children=h,h.forEach(function(u){u._baseState.parent=this},this)),i.length!==0&&(r(c.args===null),c.args=i,c.reverseArgs=i.map(function(u){if(typeof u!="object"||u.constructor!==Object)return u;const d={};return Object.keys(u).forEach(function(f){f==(0|f)&&(f|=0);const w=u[f];d[w]=f}),d}))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach(function(i){l.prototype[i]=function(){const c=this._baseState;throw new Error(i+" not implemented for encoding: "+c.enc)}}),t.forEach(function(i){l.prototype[i]=function(){const c=this._baseState,h=Array.prototype.slice.call(arguments);return r(c.tag===null),c.tag=i,this._useArgs(h),this}}),l.prototype.use=function(i){r(i);const c=this._baseState;return r(c.use===null),c.use=i,this},l.prototype.optional=function(){return this._baseState.optional=!0,this},l.prototype.def=function(i){const c=this._baseState;return r(c.default===null),c.default=i,c.optional=!0,this},l.prototype.explicit=function(i){const c=this._baseState;return r(c.explicit===null&&c.implicit===null),c.explicit=i,this},l.prototype.implicit=function(i){const c=this._baseState;return r(c.explicit===null&&c.implicit===null),c.implicit=i,this},l.prototype.obj=function(){const i=this._baseState,c=Array.prototype.slice.call(arguments);return i.obj=!0,c.length!==0&&this._useArgs(c),this},l.prototype.key=function(i){const c=this._baseState;return r(c.key===null),c.key=i,this},l.prototype.any=function(){return this._baseState.any=!0,this},l.prototype.choice=function(i){const c=this._baseState;return r(c.choice===null),c.choice=i,this._useArgs(Object.keys(i).map(function(h){return i[h]})),this},l.prototype.contains=function(i){const c=this._baseState;return r(c.use===null),c.contains=i,this},l.prototype._decode=function(i,c){const h=this._baseState;if(h.parent===null)return i.wrapResult(h.children[0]._decode(i,c));let u,d=h.default,f=!0,w=null;if(h.key!==null&&(w=i.enterKey(h.key)),h.optional){let _=null;if(h.explicit!==null?_=h.explicit:h.implicit!==null?_=h.implicit:h.tag!==null&&(_=h.tag),_!==null||h.any){if(f=this._peekTag(i,_,h.any),i.isError(f))return f}else{const A=i.save();try{h.choice===null?this._decodeGeneric(h.tag,i,c):this._decodeChoice(i,c),f=!0}catch{f=!1}i.restore(A)}}if(h.obj&&f&&(u=i.enterObject()),f){if(h.explicit!==null){const A=this._decodeTag(i,h.explicit);if(i.isError(A))return A;i=A}const _=i.offset;if(h.use===null&&h.choice===null){let A;h.any&&(A=i.save());const N=this._decodeTag(i,h.implicit!==null?h.implicit:h.tag,h.any);if(i.isError(N))return N;h.any?d=i.raw(A):i=N}if(c&&c.track&&h.tag!==null&&c.track(i.path(),_,i.length,"tagged"),c&&c.track&&h.tag!==null&&c.track(i.path(),i.offset,i.length,"content"),h.any||(d=h.choice===null?this._decodeGeneric(h.tag,i,c):this._decodeChoice(i,c)),i.isError(d))return d;if(h.any||h.choice!==null||h.children===null||h.children.forEach(function(A){A._decode(i,c)}),h.contains&&(h.tag==="octstr"||h.tag==="bitstr")){const A=new a(d);d=this._getUse(h.contains,i._reporterState.obj)._decode(A,c)}}return h.obj&&f&&(d=i.leaveObject(u)),h.key===null||d===null&&f!==!0?w!==null&&i.exitKey(w):i.leaveKey(w,h.key,d),d},l.prototype._decodeGeneric=function(i,c,h){const u=this._baseState;return i==="seq"||i==="set"?null:i==="seqof"||i==="setof"?this._decodeList(c,i,u.args[0],h):/str$/.test(i)?this._decodeStr(c,i,h):i==="objid"&&u.args?this._decodeObjid(c,u.args[0],u.args[1],h):i==="objid"?this._decodeObjid(c,null,null,h):i==="gentime"||i==="utctime"?this._decodeTime(c,i,h):i==="null_"?this._decodeNull(c,h):i==="bool"?this._decodeBool(c,h):i==="objDesc"?this._decodeStr(c,i,h):i==="int"||i==="enum"?this._decodeInt(c,u.args&&u.args[0],h):u.use!==null?this._getUse(u.use,c._reporterState.obj)._decode(c,h):c.error("unknown tag: "+i)},l.prototype._getUse=function(i,c){const h=this._baseState;return h.useDecoder=this._use(i,c),r(h.useDecoder._baseState.parent===null),h.useDecoder=h.useDecoder._baseState.children[0],h.implicit!==h.useDecoder._baseState.implicit&&(h.useDecoder=h.useDecoder.clone(),h.useDecoder._baseState.implicit=h.implicit),h.useDecoder},l.prototype._decodeChoice=function(i,c){const h=this._baseState;let u=null,d=!1;return Object.keys(h.choice).some(function(f){const w=i.save(),_=h.choice[f];try{const A=_._decode(i,c);if(i.isError(A))return!1;u={type:f,value:A},d=!0}catch{return i.restore(w),!1}return!0},this),d?u:i.error("Choice not matched")},l.prototype._createEncoderBuffer=function(i){return new o(i,this.reporter)},l.prototype._encode=function(i,c,h){const u=this._baseState;if(u.default!==null&&u.default===i)return;const d=this._encodeValue(i,c,h);return d===void 0||this._skipDefault(d,c,h)?void 0:d},l.prototype._encodeValue=function(i,c,h){const u=this._baseState;if(u.parent===null)return u.children[0]._encode(i,c||new m);let d=null;if(this.reporter=c,u.optional&&i===void 0){if(u.default===null)return;i=u.default}let f=null,w=!1;if(u.any)d=this._createEncoderBuffer(i);else if(u.choice)d=this._encodeChoice(i,c);else if(u.contains)f=this._getUse(u.contains,h)._encode(i,c),w=!0;else if(u.children)f=u.children.map(function(_){if(_._baseState.tag==="null_")return _._encode(null,c,i);if(_._baseState.key===null)return c.error("Child should have a key");const A=c.enterKey(_._baseState.key);if(typeof i!="object")return c.error("Child expected, but input is not object");const N=_._encode(i[_._baseState.key],c,i);return c.leaveKey(A),N},this).filter(function(_){return _}),f=this._createEncoderBuffer(f);else if(u.tag==="seqof"||u.tag==="setof"){if(!u.args||u.args.length!==1)return c.error("Too many args for : "+u.tag);if(!Array.isArray(i))return c.error("seqof/setof, but data is not Array");const _=this.clone();_._baseState.implicit=null,f=this._createEncoderBuffer(i.map(function(A){const N=this._baseState;return this._getUse(N.args[0],i)._encode(A,c)},_))}else u.use!==null?d=this._getUse(u.use,h)._encode(i,c):(f=this._encodePrimitive(u.tag,i),w=!0);if(!u.any&&u.choice===null){const _=u.implicit!==null?u.implicit:u.tag,A=u.implicit===null?"universal":"context";_===null?u.use===null&&c.error("Tag could be omitted only for .use()"):u.use===null&&(d=this._encodeComposite(_,w,A,f))}return u.explicit!==null&&(d=this._encodeComposite(u.explicit,!1,"context",d)),d},l.prototype._encodeChoice=function(i,c){const h=this._baseState,u=h.choice[i.type];return u||r(!1,i.type+" not found in "+JSON.stringify(Object.keys(h.choice))),u._encode(i.value,c)},l.prototype._encodePrimitive=function(i,c){const h=this._baseState;if(/str$/.test(i))return this._encodeStr(c,i);if(i==="objid"&&h.args)return this._encodeObjid(c,h.reverseArgs[0],h.args[1]);if(i==="objid")return this._encodeObjid(c,null,null);if(i==="gentime"||i==="utctime")return this._encodeTime(c,i);if(i==="null_")return this._encodeNull();if(i==="int"||i==="enum")return this._encodeInt(c,h.args&&h.reverseArgs[0]);if(i==="bool")return this._encodeBool(c);if(i==="objDesc")return this._encodeStr(c,i);throw new Error("Unsupported tag: "+i)},l.prototype._isNumstr=function(i){return/^[0-9 ]*$/.test(i)},l.prototype._isPrintstr=function(i){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(i)}},{"../base/buffer":172,"../base/reporter":175,"minimalistic-assert":453}],175:[function(s,E,S){const m=s("inherits");function o(r){this._reporterState={obj:null,path:[],options:r||{},errors:[]}}function a(r,t){this.path=r,this.rethrow(t)}S.Reporter=o,o.prototype.isError=function(r){return r instanceof a},o.prototype.save=function(){const r=this._reporterState;return{obj:r.obj,pathLen:r.path.length}},o.prototype.restore=function(r){const t=this._reporterState;t.obj=r.obj,t.path=t.path.slice(0,r.pathLen)},o.prototype.enterKey=function(r){return this._reporterState.path.push(r)},o.prototype.exitKey=function(r){const t=this._reporterState;t.path=t.path.slice(0,r-1)},o.prototype.leaveKey=function(r,t,e){const l=this._reporterState;this.exitKey(r),l.obj!==null&&(l.obj[t]=e)},o.prototype.path=function(){return this._reporterState.path.join("/")},o.prototype.enterObject=function(){const r=this._reporterState,t=r.obj;return r.obj={},t},o.prototype.leaveObject=function(r){const t=this._reporterState,e=t.obj;return t.obj=r,e},o.prototype.error=function(r){let t;const e=this._reporterState,l=r instanceof a;if(t=l?r:new a(e.path.map(function(n){return"["+JSON.stringify(n)+"]"}).join(""),r.message||r,r.stack),!e.options.partial)throw t;return l||e.errors.push(t),t},o.prototype.wrapResult=function(r){const t=this._reporterState;return t.options.partial?{result:this.isError(r)?null:r,errors:t.errors}:r},m(a,Error),a.prototype.rethrow=function(r){if(this.message=r+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,a),!this.stack)try{throw new Error(this.message)}catch(t){this.stack=t.stack}return this}},{inherits:440}],176:[function(s,E,S){function m(o){const a={};return Object.keys(o).forEach(function(r){(0|r)==r&&(r|=0);const t=o[r];a[t]=r}),a}S.tagClass={0:"universal",1:"application",2:"context",3:"private"},S.tagClassByName=m(S.tagClass),S.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},S.tagByName=m(S.tag)},{}],177:[function(s,E,S){const m=S;m._reverse=function(o){const a={};return Object.keys(o).forEach(function(r){(0|r)==r&&(r|=0);const t=o[r];a[t]=r}),a},m.der=s("./der")},{"./der":176}],178:[function(s,E,S){const m=s("inherits"),o=s("bn.js"),a=s("../base/buffer").DecoderBuffer,r=s("../base/node"),t=s("../constants/der");function e(c){this.enc="der",this.name=c.name,this.entity=c,this.tree=new l,this.tree._init(c.body)}function l(c){r.call(this,"der",c)}function n(c,h){let u=c.readUInt8(h);if(c.isError(u))return u;const d=t.tagClass[u>>6],f=(32&u)==0;if((31&u)==31){let w=u;for(u=0;(128&w)==128;){if(w=c.readUInt8(h),c.isError(w))return w;u<<=7,u|=127&w}}else u&=31;return{cls:d,primitive:f,tag:u,tagStr:t.tag[u]}}function i(c,h,u){let d=c.readUInt8(u);if(c.isError(d))return d;if(!h&&d===128)return null;if(!(128&d))return d;const f=127&d;if(f>4)return c.error("length octect is too long");d=0;for(let w=0;w=31?N.error("Multi-octet tag encoding unsupported"):(_||(L|=32),L|=r.tagClassByName[A||"universal"]<<6,L)}(n,i,c,this.reporter);if(h.length<128){const w=o.alloc(2);return w[0]=u,w[1]=h.length,this._createEncoderBuffer([w,h])}let d=1;for(let w=h.length;w>=256;w>>=8)d++;const f=o.alloc(2+d);f[0]=u,f[1]=128|d;for(let w=1+d,_=h.length;_>0;w--,_>>=8)f[w]=255&_;return this._createEncoderBuffer([f,h])},e.prototype._encodeStr=function(n,i){if(i==="bitstr")return this._createEncoderBuffer([0|n.unused,n.data]);if(i==="bmpstr"){const c=o.alloc(2*n.length);for(let h=0;h=40)return this.reporter.error("Second objid identifier OOB");n.splice(0,2,40*n[0]+n[1])}let h=0;for(let f=0;f=128;w>>=7)h++}const u=o.alloc(h);let d=u.length-1;for(let f=n.length-1;f>=0;f--){let w=n[f];for(u[d--]=127&w;(w>>=7)>0;)u[d--]=128|127&w}return this._createEncoderBuffer(u)},e.prototype._encodeTime=function(n,i){let c;const h=new Date(n);return i==="gentime"?c=[l(h.getUTCFullYear()),l(h.getUTCMonth()+1),l(h.getUTCDate()),l(h.getUTCHours()),l(h.getUTCMinutes()),l(h.getUTCSeconds()),"Z"].join(""):i==="utctime"?c=[l(h.getUTCFullYear()%100),l(h.getUTCMonth()+1),l(h.getUTCDate()),l(h.getUTCHours()),l(h.getUTCMinutes()),l(h.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+i+" time is not supported yet"),this._encodeStr(c,"octstr")},e.prototype._encodeNull=function(){return this._createEncoderBuffer("")},e.prototype._encodeInt=function(n,i){if(typeof n=="string"){if(!i)return this.reporter.error("String int or enum given, but no values map");if(!i.hasOwnProperty(n))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(n));n=i[n]}if(typeof n!="number"&&!o.isBuffer(n)){const u=n.toArray();!n.sign&&128&u[0]&&u.unshift(0),n=o.from(u)}if(o.isBuffer(n)){let u=n.length;n.length===0&&u++;const d=o.alloc(u);return n.copy(d),n.length===0&&(d[0]=0),this._createEncoderBuffer(d)}if(n<128)return this._createEncoderBuffer(n);if(n<256)return this._createEncoderBuffer([0,n]);let c=1;for(let u=n;u>=256;u>>=8)c++;const h=new Array(c);for(let u=h.length-1;u>=0;u--)h[u]=255&n,n>>=8;return 128&h[0]&&h.unshift(0),this._createEncoderBuffer(o.from(h))},e.prototype._encodeBool=function(n){return this._createEncoderBuffer(n?255:0)},e.prototype._use=function(n,i){return typeof n=="function"&&(n=n(i)),n._getEncoder("der").tree},e.prototype._skipDefault=function(n,i,c){const h=this._baseState;let u;if(h.default===null)return!1;const d=n.join();if(h.defaultBuffer===void 0&&(h.defaultBuffer=this._encodeValue(h.default,i,c).join()),d.length!==h.defaultBuffer.length)return!1;for(u=0;u=65&&v<=70?v-55:v>=97&&v<=102?v-87:v-48&15}function n(x,M,v){var p=l(x,v);return v-1>=M&&(p|=l(x,v-1)<<4),p}function i(x,M,v,p){for(var b=0,g=Math.min(x.length,v),y=M;y=49?k-49+10:k>=17?k-17+10:k}return b}t.isBN=function(x){return x instanceof t||x!==null&&typeof x=="object"&&x.constructor.wordSize===t.wordSize&&Array.isArray(x.words)},t.max=function(x,M){return x.cmp(M)>0?x:M},t.min=function(x,M){return x.cmp(M)<0?x:M},t.prototype._init=function(x,M,v){if(typeof x=="number")return this._initNumber(x,M,v);if(typeof x=="object")return this._initArray(x,M,v);M==="hex"&&(M=16),a(M===(0|M)&&M>=2&&M<=36);var p=0;(x=x.toString().replace(/\s+/g,""))[0]==="-"&&(p++,this.negative=1),p=0;p-=3)g=x[p]|x[p-1]<<8|x[p-2]<<16,this.words[b]|=g<>>26-y&67108863,(y+=24)>=26&&(y-=26,b++);else if(v==="le")for(p=0,b=0;p>>26-y&67108863,(y+=24)>=26&&(y-=26,b++);return this.strip()},t.prototype._parseHex=function(x,M,v){this.length=Math.ceil((x.length-M)/6),this.words=new Array(this.length);for(var p=0;p=M;p-=2)b=n(x,M,p)<=18?(g-=18,y+=1,this.words[y]|=b>>>26):g+=8;else for(p=(x.length-M)%2==0?M+1:M;p=18?(g-=18,y+=1,this.words[y]|=b>>>26):g+=8;this.strip()},t.prototype._parseBase=function(x,M,v){this.words=[0],this.length=1;for(var p=0,b=1;b<=67108863;b*=M)p++;p--,b=b/M|0;for(var g=x.length-v,y=g%p,k=Math.min(g,g-y)+v,R=0,I=v;I1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},t.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},t.prototype.inspect=function(){return(this.red?""};var c=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],h=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],u=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function d(x,M,v){v.negative=M.negative^x.negative;var p=x.length+M.length|0;v.length=p,p=p-1|0;var b=0|x.words[0],g=0|M.words[0],y=b*g,k=67108863&y,R=y/67108864|0;v.words[0]=k;for(var I=1;I>>26,U=67108863&R,q=Math.min(I,M.length-1),O=Math.max(0,I-x.length+1);O<=q;O++){var H=I-O|0;z+=(y=(b=0|x.words[H])*(g=0|M.words[O])+U)/67108864|0,U=67108863&y}v.words[I]=0|U,R=0|z}return R!==0?v.words[I]=0|R:v.length--,v.strip()}t.prototype.toString=function(x,M){var v;if(M=0|M||1,(x=x||10)===16||x==="hex"){v="";for(var p=0,b=0,g=0;g>>24-p&16777215)!==0||g!==this.length-1?c[6-k.length]+k+v:k+v,(p+=2)>=26&&(p-=26,g--)}for(b!==0&&(v=b.toString(16)+v);v.length%M!=0;)v="0"+v;return this.negative!==0&&(v="-"+v),v}if(x===(0|x)&&x>=2&&x<=36){var R=h[x],I=u[x];v="";var z=this.clone();for(z.negative=0;!z.isZero();){var U=z.modn(I).toString(x);v=(z=z.idivn(I)).isZero()?U+v:c[R-U.length]+U+v}for(this.isZero()&&(v="0"+v);v.length%M!=0;)v="0"+v;return this.negative!==0&&(v="-"+v),v}a(!1,"Base should be between 2 and 36")},t.prototype.toNumber=function(){var x=this.words[0];return this.length===2?x+=67108864*this.words[1]:this.length===3&&this.words[2]===1?x+=4503599627370496+67108864*this.words[1]:this.length>2&&a(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-x:x},t.prototype.toJSON=function(){return this.toString(16)},t.prototype.toBuffer=function(x,M){return a(e!==void 0),this.toArrayLike(e,x,M)},t.prototype.toArray=function(x,M){return this.toArrayLike(Array,x,M)},t.prototype.toArrayLike=function(x,M,v){var p=this.byteLength(),b=v||Math.max(1,p);a(p<=b,"byte array longer than desired length"),a(b>0,"Requested array length <= 0"),this.strip();var g,y,k=M==="le",R=new x(b),I=this.clone();if(k){for(y=0;!I.isZero();y++)g=I.andln(255),I.iushrn(8),R[y]=g;for(;y=4096&&(v+=13,M>>>=13),M>=64&&(v+=7,M>>>=7),M>=8&&(v+=4,M>>>=4),M>=2&&(v+=2,M>>>=2),v+M},t.prototype._zeroBits=function(x){if(x===0)return 26;var M=x,v=0;return!(8191&M)&&(v+=13,M>>>=13),!(127&M)&&(v+=7,M>>>=7),!(15&M)&&(v+=4,M>>>=4),!(3&M)&&(v+=2,M>>>=2),!(1&M)&&v++,v},t.prototype.bitLength=function(){var x=this.words[this.length-1],M=this._countBits(x);return 26*(this.length-1)+M},t.prototype.zeroBits=function(){if(this.isZero())return 0;for(var x=0,M=0;Mx.length?this.clone().ior(x):x.clone().ior(this)},t.prototype.uor=function(x){return this.length>x.length?this.clone().iuor(x):x.clone().iuor(this)},t.prototype.iuand=function(x){var M;M=this.length>x.length?x:this;for(var v=0;vx.length?this.clone().iand(x):x.clone().iand(this)},t.prototype.uand=function(x){return this.length>x.length?this.clone().iuand(x):x.clone().iuand(this)},t.prototype.iuxor=function(x){var M,v;this.length>x.length?(M=this,v=x):(M=x,v=this);for(var p=0;px.length?this.clone().ixor(x):x.clone().ixor(this)},t.prototype.uxor=function(x){return this.length>x.length?this.clone().iuxor(x):x.clone().iuxor(this)},t.prototype.inotn=function(x){a(typeof x=="number"&&x>=0);var M=0|Math.ceil(x/26),v=x%26;this._expand(M),v>0&&M--;for(var p=0;p0&&(this.words[p]=~this.words[p]&67108863>>26-v),this.strip()},t.prototype.notn=function(x){return this.clone().inotn(x)},t.prototype.setn=function(x,M){a(typeof x=="number"&&x>=0);var v=x/26|0,p=x%26;return this._expand(v+1),this.words[v]=M?this.words[v]|1<x.length?(v=this,p=x):(v=x,p=this);for(var b=0,g=0;g>>26;for(;b!==0&&g>>26;if(this.length=v.length,b!==0)this.words[this.length]=b,this.length++;else if(v!==this)for(;gx.length?this.clone().iadd(x):x.clone().iadd(this)},t.prototype.isub=function(x){if(x.negative!==0){x.negative=0;var M=this.iadd(x);return x.negative=1,M._normSign()}if(this.negative!==0)return this.negative=0,this.iadd(x),this.negative=1,this._normSign();var v,p,b=this.cmp(x);if(b===0)return this.negative=0,this.length=1,this.words[0]=0,this;b>0?(v=this,p=x):(v=x,p=this);for(var g=0,y=0;y>26,this.words[y]=67108863&M;for(;g!==0&&y>26,this.words[y]=67108863&M;if(g===0&&y>>13,O=0|y[1],H=8191&O,T=O>>>13,C=0|y[2],F=8191&C,V=C>>>13,K=0|y[3],W=8191&K,Y=K>>>13,Q=0|y[4],et=8191&Q,X=Q>>>13,J=0|y[5],G=8191&J,nt=J>>>13,rt=0|y[6],st=8191&rt,at=rt>>>13,lt=0|y[7],ht=8191<,wt=lt>>>13,vt=0|y[8],bt=8191&vt,Et=vt>>>13,Mt=0|y[9],Tt=8191&Mt,Rt=Mt>>>13,_t=0|k[0],dt=8191&_t,xt=_t>>>13,Ct=0|k[1],kt=8191&Ct,Xt=Ct>>>13,ee=0|k[2],Ot=8191&ee,Jt=ee>>>13,qt=0|k[3],Lt=8191&qt,oe=qt>>>13,Qt=0|k[4],Pt=8191&Qt,Yt=Qt>>>13,ie=0|k[5],Bt=8191&ie,te=ie>>>13,se=0|k[6],Ut=8191&se,tt=se>>>13,it=0|k[7],ut=8191&it,gt=it>>>13,jt=0|k[8],yt=8191&jt,Dt=jt>>>13,It=0|k[9],At=8191&It,zt=It>>>13;v.negative=x.negative^M.negative,v.length=19;var Ft=(I+(p=Math.imul(U,dt))|0)+((8191&(b=(b=Math.imul(U,xt))+Math.imul(q,dt)|0))<<13)|0;I=((g=Math.imul(q,xt))+(b>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,p=Math.imul(H,dt),b=(b=Math.imul(H,xt))+Math.imul(T,dt)|0,g=Math.imul(T,xt);var Vt=(I+(p=p+Math.imul(U,kt)|0)|0)+((8191&(b=(b=b+Math.imul(U,Xt)|0)+Math.imul(q,kt)|0))<<13)|0;I=((g=g+Math.imul(q,Xt)|0)+(b>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,p=Math.imul(F,dt),b=(b=Math.imul(F,xt))+Math.imul(V,dt)|0,g=Math.imul(V,xt),p=p+Math.imul(H,kt)|0,b=(b=b+Math.imul(H,Xt)|0)+Math.imul(T,kt)|0,g=g+Math.imul(T,Xt)|0;var ce=(I+(p=p+Math.imul(U,Ot)|0)|0)+((8191&(b=(b=b+Math.imul(U,Jt)|0)+Math.imul(q,Ot)|0))<<13)|0;I=((g=g+Math.imul(q,Jt)|0)+(b>>>13)|0)+(ce>>>26)|0,ce&=67108863,p=Math.imul(W,dt),b=(b=Math.imul(W,xt))+Math.imul(Y,dt)|0,g=Math.imul(Y,xt),p=p+Math.imul(F,kt)|0,b=(b=b+Math.imul(F,Xt)|0)+Math.imul(V,kt)|0,g=g+Math.imul(V,Xt)|0,p=p+Math.imul(H,Ot)|0,b=(b=b+Math.imul(H,Jt)|0)+Math.imul(T,Ot)|0,g=g+Math.imul(T,Jt)|0;var ae=(I+(p=p+Math.imul(U,Lt)|0)|0)+((8191&(b=(b=b+Math.imul(U,oe)|0)+Math.imul(q,Lt)|0))<<13)|0;I=((g=g+Math.imul(q,oe)|0)+(b>>>13)|0)+(ae>>>26)|0,ae&=67108863,p=Math.imul(et,dt),b=(b=Math.imul(et,xt))+Math.imul(X,dt)|0,g=Math.imul(X,xt),p=p+Math.imul(W,kt)|0,b=(b=b+Math.imul(W,Xt)|0)+Math.imul(Y,kt)|0,g=g+Math.imul(Y,Xt)|0,p=p+Math.imul(F,Ot)|0,b=(b=b+Math.imul(F,Jt)|0)+Math.imul(V,Ot)|0,g=g+Math.imul(V,Jt)|0,p=p+Math.imul(H,Lt)|0,b=(b=b+Math.imul(H,oe)|0)+Math.imul(T,Lt)|0,g=g+Math.imul(T,oe)|0;var fe=(I+(p=p+Math.imul(U,Pt)|0)|0)+((8191&(b=(b=b+Math.imul(U,Yt)|0)+Math.imul(q,Pt)|0))<<13)|0;I=((g=g+Math.imul(q,Yt)|0)+(b>>>13)|0)+(fe>>>26)|0,fe&=67108863,p=Math.imul(G,dt),b=(b=Math.imul(G,xt))+Math.imul(nt,dt)|0,g=Math.imul(nt,xt),p=p+Math.imul(et,kt)|0,b=(b=b+Math.imul(et,Xt)|0)+Math.imul(X,kt)|0,g=g+Math.imul(X,Xt)|0,p=p+Math.imul(W,Ot)|0,b=(b=b+Math.imul(W,Jt)|0)+Math.imul(Y,Ot)|0,g=g+Math.imul(Y,Jt)|0,p=p+Math.imul(F,Lt)|0,b=(b=b+Math.imul(F,oe)|0)+Math.imul(V,Lt)|0,g=g+Math.imul(V,oe)|0,p=p+Math.imul(H,Pt)|0,b=(b=b+Math.imul(H,Yt)|0)+Math.imul(T,Pt)|0,g=g+Math.imul(T,Yt)|0;var de=(I+(p=p+Math.imul(U,Bt)|0)|0)+((8191&(b=(b=b+Math.imul(U,te)|0)+Math.imul(q,Bt)|0))<<13)|0;I=((g=g+Math.imul(q,te)|0)+(b>>>13)|0)+(de>>>26)|0,de&=67108863,p=Math.imul(st,dt),b=(b=Math.imul(st,xt))+Math.imul(at,dt)|0,g=Math.imul(at,xt),p=p+Math.imul(G,kt)|0,b=(b=b+Math.imul(G,Xt)|0)+Math.imul(nt,kt)|0,g=g+Math.imul(nt,Xt)|0,p=p+Math.imul(et,Ot)|0,b=(b=b+Math.imul(et,Jt)|0)+Math.imul(X,Ot)|0,g=g+Math.imul(X,Jt)|0,p=p+Math.imul(W,Lt)|0,b=(b=b+Math.imul(W,oe)|0)+Math.imul(Y,Lt)|0,g=g+Math.imul(Y,oe)|0,p=p+Math.imul(F,Pt)|0,b=(b=b+Math.imul(F,Yt)|0)+Math.imul(V,Pt)|0,g=g+Math.imul(V,Yt)|0,p=p+Math.imul(H,Bt)|0,b=(b=b+Math.imul(H,te)|0)+Math.imul(T,Bt)|0,g=g+Math.imul(T,te)|0;var me=(I+(p=p+Math.imul(U,Ut)|0)|0)+((8191&(b=(b=b+Math.imul(U,tt)|0)+Math.imul(q,Ut)|0))<<13)|0;I=((g=g+Math.imul(q,tt)|0)+(b>>>13)|0)+(me>>>26)|0,me&=67108863,p=Math.imul(ht,dt),b=(b=Math.imul(ht,xt))+Math.imul(wt,dt)|0,g=Math.imul(wt,xt),p=p+Math.imul(st,kt)|0,b=(b=b+Math.imul(st,Xt)|0)+Math.imul(at,kt)|0,g=g+Math.imul(at,Xt)|0,p=p+Math.imul(G,Ot)|0,b=(b=b+Math.imul(G,Jt)|0)+Math.imul(nt,Ot)|0,g=g+Math.imul(nt,Jt)|0,p=p+Math.imul(et,Lt)|0,b=(b=b+Math.imul(et,oe)|0)+Math.imul(X,Lt)|0,g=g+Math.imul(X,oe)|0,p=p+Math.imul(W,Pt)|0,b=(b=b+Math.imul(W,Yt)|0)+Math.imul(Y,Pt)|0,g=g+Math.imul(Y,Yt)|0,p=p+Math.imul(F,Bt)|0,b=(b=b+Math.imul(F,te)|0)+Math.imul(V,Bt)|0,g=g+Math.imul(V,te)|0,p=p+Math.imul(H,Ut)|0,b=(b=b+Math.imul(H,tt)|0)+Math.imul(T,Ut)|0,g=g+Math.imul(T,tt)|0;var Z=(I+(p=p+Math.imul(U,ut)|0)|0)+((8191&(b=(b=b+Math.imul(U,gt)|0)+Math.imul(q,ut)|0))<<13)|0;I=((g=g+Math.imul(q,gt)|0)+(b>>>13)|0)+(Z>>>26)|0,Z&=67108863,p=Math.imul(bt,dt),b=(b=Math.imul(bt,xt))+Math.imul(Et,dt)|0,g=Math.imul(Et,xt),p=p+Math.imul(ht,kt)|0,b=(b=b+Math.imul(ht,Xt)|0)+Math.imul(wt,kt)|0,g=g+Math.imul(wt,Xt)|0,p=p+Math.imul(st,Ot)|0,b=(b=b+Math.imul(st,Jt)|0)+Math.imul(at,Ot)|0,g=g+Math.imul(at,Jt)|0,p=p+Math.imul(G,Lt)|0,b=(b=b+Math.imul(G,oe)|0)+Math.imul(nt,Lt)|0,g=g+Math.imul(nt,oe)|0,p=p+Math.imul(et,Pt)|0,b=(b=b+Math.imul(et,Yt)|0)+Math.imul(X,Pt)|0,g=g+Math.imul(X,Yt)|0,p=p+Math.imul(W,Bt)|0,b=(b=b+Math.imul(W,te)|0)+Math.imul(Y,Bt)|0,g=g+Math.imul(Y,te)|0,p=p+Math.imul(F,Ut)|0,b=(b=b+Math.imul(F,tt)|0)+Math.imul(V,Ut)|0,g=g+Math.imul(V,tt)|0,p=p+Math.imul(H,ut)|0,b=(b=b+Math.imul(H,gt)|0)+Math.imul(T,ut)|0,g=g+Math.imul(T,gt)|0;var ot=(I+(p=p+Math.imul(U,yt)|0)|0)+((8191&(b=(b=b+Math.imul(U,Dt)|0)+Math.imul(q,yt)|0))<<13)|0;I=((g=g+Math.imul(q,Dt)|0)+(b>>>13)|0)+(ot>>>26)|0,ot&=67108863,p=Math.imul(Tt,dt),b=(b=Math.imul(Tt,xt))+Math.imul(Rt,dt)|0,g=Math.imul(Rt,xt),p=p+Math.imul(bt,kt)|0,b=(b=b+Math.imul(bt,Xt)|0)+Math.imul(Et,kt)|0,g=g+Math.imul(Et,Xt)|0,p=p+Math.imul(ht,Ot)|0,b=(b=b+Math.imul(ht,Jt)|0)+Math.imul(wt,Ot)|0,g=g+Math.imul(wt,Jt)|0,p=p+Math.imul(st,Lt)|0,b=(b=b+Math.imul(st,oe)|0)+Math.imul(at,Lt)|0,g=g+Math.imul(at,oe)|0,p=p+Math.imul(G,Pt)|0,b=(b=b+Math.imul(G,Yt)|0)+Math.imul(nt,Pt)|0,g=g+Math.imul(nt,Yt)|0,p=p+Math.imul(et,Bt)|0,b=(b=b+Math.imul(et,te)|0)+Math.imul(X,Bt)|0,g=g+Math.imul(X,te)|0,p=p+Math.imul(W,Ut)|0,b=(b=b+Math.imul(W,tt)|0)+Math.imul(Y,Ut)|0,g=g+Math.imul(Y,tt)|0,p=p+Math.imul(F,ut)|0,b=(b=b+Math.imul(F,gt)|0)+Math.imul(V,ut)|0,g=g+Math.imul(V,gt)|0,p=p+Math.imul(H,yt)|0,b=(b=b+Math.imul(H,Dt)|0)+Math.imul(T,yt)|0,g=g+Math.imul(T,Dt)|0;var ct=(I+(p=p+Math.imul(U,At)|0)|0)+((8191&(b=(b=b+Math.imul(U,zt)|0)+Math.imul(q,At)|0))<<13)|0;I=((g=g+Math.imul(q,zt)|0)+(b>>>13)|0)+(ct>>>26)|0,ct&=67108863,p=Math.imul(Tt,kt),b=(b=Math.imul(Tt,Xt))+Math.imul(Rt,kt)|0,g=Math.imul(Rt,Xt),p=p+Math.imul(bt,Ot)|0,b=(b=b+Math.imul(bt,Jt)|0)+Math.imul(Et,Ot)|0,g=g+Math.imul(Et,Jt)|0,p=p+Math.imul(ht,Lt)|0,b=(b=b+Math.imul(ht,oe)|0)+Math.imul(wt,Lt)|0,g=g+Math.imul(wt,oe)|0,p=p+Math.imul(st,Pt)|0,b=(b=b+Math.imul(st,Yt)|0)+Math.imul(at,Pt)|0,g=g+Math.imul(at,Yt)|0,p=p+Math.imul(G,Bt)|0,b=(b=b+Math.imul(G,te)|0)+Math.imul(nt,Bt)|0,g=g+Math.imul(nt,te)|0,p=p+Math.imul(et,Ut)|0,b=(b=b+Math.imul(et,tt)|0)+Math.imul(X,Ut)|0,g=g+Math.imul(X,tt)|0,p=p+Math.imul(W,ut)|0,b=(b=b+Math.imul(W,gt)|0)+Math.imul(Y,ut)|0,g=g+Math.imul(Y,gt)|0,p=p+Math.imul(F,yt)|0,b=(b=b+Math.imul(F,Dt)|0)+Math.imul(V,yt)|0,g=g+Math.imul(V,Dt)|0;var ft=(I+(p=p+Math.imul(H,At)|0)|0)+((8191&(b=(b=b+Math.imul(H,zt)|0)+Math.imul(T,At)|0))<<13)|0;I=((g=g+Math.imul(T,zt)|0)+(b>>>13)|0)+(ft>>>26)|0,ft&=67108863,p=Math.imul(Tt,Ot),b=(b=Math.imul(Tt,Jt))+Math.imul(Rt,Ot)|0,g=Math.imul(Rt,Jt),p=p+Math.imul(bt,Lt)|0,b=(b=b+Math.imul(bt,oe)|0)+Math.imul(Et,Lt)|0,g=g+Math.imul(Et,oe)|0,p=p+Math.imul(ht,Pt)|0,b=(b=b+Math.imul(ht,Yt)|0)+Math.imul(wt,Pt)|0,g=g+Math.imul(wt,Yt)|0,p=p+Math.imul(st,Bt)|0,b=(b=b+Math.imul(st,te)|0)+Math.imul(at,Bt)|0,g=g+Math.imul(at,te)|0,p=p+Math.imul(G,Ut)|0,b=(b=b+Math.imul(G,tt)|0)+Math.imul(nt,Ut)|0,g=g+Math.imul(nt,tt)|0,p=p+Math.imul(et,ut)|0,b=(b=b+Math.imul(et,gt)|0)+Math.imul(X,ut)|0,g=g+Math.imul(X,gt)|0,p=p+Math.imul(W,yt)|0,b=(b=b+Math.imul(W,Dt)|0)+Math.imul(Y,yt)|0,g=g+Math.imul(Y,Dt)|0;var St=(I+(p=p+Math.imul(F,At)|0)|0)+((8191&(b=(b=b+Math.imul(F,zt)|0)+Math.imul(V,At)|0))<<13)|0;I=((g=g+Math.imul(V,zt)|0)+(b>>>13)|0)+(St>>>26)|0,St&=67108863,p=Math.imul(Tt,Lt),b=(b=Math.imul(Tt,oe))+Math.imul(Rt,Lt)|0,g=Math.imul(Rt,oe),p=p+Math.imul(bt,Pt)|0,b=(b=b+Math.imul(bt,Yt)|0)+Math.imul(Et,Pt)|0,g=g+Math.imul(Et,Yt)|0,p=p+Math.imul(ht,Bt)|0,b=(b=b+Math.imul(ht,te)|0)+Math.imul(wt,Bt)|0,g=g+Math.imul(wt,te)|0,p=p+Math.imul(st,Ut)|0,b=(b=b+Math.imul(st,tt)|0)+Math.imul(at,Ut)|0,g=g+Math.imul(at,tt)|0,p=p+Math.imul(G,ut)|0,b=(b=b+Math.imul(G,gt)|0)+Math.imul(nt,ut)|0,g=g+Math.imul(nt,gt)|0,p=p+Math.imul(et,yt)|0,b=(b=b+Math.imul(et,Dt)|0)+Math.imul(X,yt)|0,g=g+Math.imul(X,Dt)|0;var pt=(I+(p=p+Math.imul(W,At)|0)|0)+((8191&(b=(b=b+Math.imul(W,zt)|0)+Math.imul(Y,At)|0))<<13)|0;I=((g=g+Math.imul(Y,zt)|0)+(b>>>13)|0)+(pt>>>26)|0,pt&=67108863,p=Math.imul(Tt,Pt),b=(b=Math.imul(Tt,Yt))+Math.imul(Rt,Pt)|0,g=Math.imul(Rt,Yt),p=p+Math.imul(bt,Bt)|0,b=(b=b+Math.imul(bt,te)|0)+Math.imul(Et,Bt)|0,g=g+Math.imul(Et,te)|0,p=p+Math.imul(ht,Ut)|0,b=(b=b+Math.imul(ht,tt)|0)+Math.imul(wt,Ut)|0,g=g+Math.imul(wt,tt)|0,p=p+Math.imul(st,ut)|0,b=(b=b+Math.imul(st,gt)|0)+Math.imul(at,ut)|0,g=g+Math.imul(at,gt)|0,p=p+Math.imul(G,yt)|0,b=(b=b+Math.imul(G,Dt)|0)+Math.imul(nt,yt)|0,g=g+Math.imul(nt,Dt)|0;var mt=(I+(p=p+Math.imul(et,At)|0)|0)+((8191&(b=(b=b+Math.imul(et,zt)|0)+Math.imul(X,At)|0))<<13)|0;I=((g=g+Math.imul(X,zt)|0)+(b>>>13)|0)+(mt>>>26)|0,mt&=67108863,p=Math.imul(Tt,Bt),b=(b=Math.imul(Tt,te))+Math.imul(Rt,Bt)|0,g=Math.imul(Rt,te),p=p+Math.imul(bt,Ut)|0,b=(b=b+Math.imul(bt,tt)|0)+Math.imul(Et,Ut)|0,g=g+Math.imul(Et,tt)|0,p=p+Math.imul(ht,ut)|0,b=(b=b+Math.imul(ht,gt)|0)+Math.imul(wt,ut)|0,g=g+Math.imul(wt,gt)|0,p=p+Math.imul(st,yt)|0,b=(b=b+Math.imul(st,Dt)|0)+Math.imul(at,yt)|0,g=g+Math.imul(at,Dt)|0;var Wt=(I+(p=p+Math.imul(G,At)|0)|0)+((8191&(b=(b=b+Math.imul(G,zt)|0)+Math.imul(nt,At)|0))<<13)|0;I=((g=g+Math.imul(nt,zt)|0)+(b>>>13)|0)+(Wt>>>26)|0,Wt&=67108863,p=Math.imul(Tt,Ut),b=(b=Math.imul(Tt,tt))+Math.imul(Rt,Ut)|0,g=Math.imul(Rt,tt),p=p+Math.imul(bt,ut)|0,b=(b=b+Math.imul(bt,gt)|0)+Math.imul(Et,ut)|0,g=g+Math.imul(Et,gt)|0,p=p+Math.imul(ht,yt)|0,b=(b=b+Math.imul(ht,Dt)|0)+Math.imul(wt,yt)|0,g=g+Math.imul(wt,Dt)|0;var Ht=(I+(p=p+Math.imul(st,At)|0)|0)+((8191&(b=(b=b+Math.imul(st,zt)|0)+Math.imul(at,At)|0))<<13)|0;I=((g=g+Math.imul(at,zt)|0)+(b>>>13)|0)+(Ht>>>26)|0,Ht&=67108863,p=Math.imul(Tt,ut),b=(b=Math.imul(Tt,gt))+Math.imul(Rt,ut)|0,g=Math.imul(Rt,gt),p=p+Math.imul(bt,yt)|0,b=(b=b+Math.imul(bt,Dt)|0)+Math.imul(Et,yt)|0,g=g+Math.imul(Et,Dt)|0;var $t=(I+(p=p+Math.imul(ht,At)|0)|0)+((8191&(b=(b=b+Math.imul(ht,zt)|0)+Math.imul(wt,At)|0))<<13)|0;I=((g=g+Math.imul(wt,zt)|0)+(b>>>13)|0)+($t>>>26)|0,$t&=67108863,p=Math.imul(Tt,yt),b=(b=Math.imul(Tt,Dt))+Math.imul(Rt,yt)|0,g=Math.imul(Rt,Dt);var Nt=(I+(p=p+Math.imul(bt,At)|0)|0)+((8191&(b=(b=b+Math.imul(bt,zt)|0)+Math.imul(Et,At)|0))<<13)|0;I=((g=g+Math.imul(Et,zt)|0)+(b>>>13)|0)+(Nt>>>26)|0,Nt&=67108863;var re=(I+(p=Math.imul(Tt,At))|0)+((8191&(b=(b=Math.imul(Tt,zt))+Math.imul(Rt,At)|0))<<13)|0;return I=((g=Math.imul(Rt,zt))+(b>>>13)|0)+(re>>>26)|0,re&=67108863,R[0]=Ft,R[1]=Vt,R[2]=ce,R[3]=ae,R[4]=fe,R[5]=de,R[6]=me,R[7]=Z,R[8]=ot,R[9]=ct,R[10]=ft,R[11]=St,R[12]=pt,R[13]=mt,R[14]=Wt,R[15]=Ht,R[16]=$t,R[17]=Nt,R[18]=re,I!==0&&(R[19]=I,v.length++),v};function w(x,M,v){return new _().mulp(x,M,v)}function _(x,M){this.x=x,this.y=M}Math.imul||(f=d),t.prototype.mulTo=function(x,M){var v=this.length+x.length;return this.length===10&&x.length===10?f(this,x,M):v<63?d(this,x,M):v<1024?function(p,b,g){g.negative=b.negative^p.negative,g.length=p.length+b.length;for(var y=0,k=0,R=0;R>>26)|0)>>>26,I&=67108863}g.words[R]=z,y=I,I=k}return y!==0?g.words[R]=y:g.length--,g.strip()}(this,x,M):w(this,x,M)},_.prototype.makeRBT=function(x){for(var M=new Array(x),v=t.prototype._countBits(x)-1,p=0;p>=1;return p},_.prototype.permute=function(x,M,v,p,b,g){for(var y=0;y>>=1)b++;return 1<>>=13,v[2*g+1]=8191&b,b>>>=13;for(g=2*M;g>=26,M+=p/67108864|0,M+=b>>>26,this.words[v]=67108863&b}return M!==0&&(this.words[v]=M,this.length++),this},t.prototype.muln=function(x){return this.clone().imuln(x)},t.prototype.sqr=function(){return this.mul(this)},t.prototype.isqr=function(){return this.imul(this.clone())},t.prototype.pow=function(x){var M=function(g){for(var y=new Array(g.bitLength()),k=0;k>>I}return y}(x);if(M.length===0)return new t(1);for(var v=this,p=0;p=0);var M,v=x%26,p=(x-v)/26,b=67108863>>>26-v<<26-v;if(v!==0){var g=0;for(M=0;M>>26-v}g&&(this.words[M]=g,this.length++)}if(p!==0){for(M=this.length-1;M>=0;M--)this.words[M+p]=this.words[M];for(M=0;M=0),p=M?(M-M%26)/26:0;var b=x%26,g=Math.min((x-b)/26,this.length),y=67108863^67108863>>>b<g)for(this.length-=g,R=0;R=0&&(I!==0||R>=p);R--){var z=0|this.words[R];this.words[R]=I<<26-b|z>>>b,I=z&y}return k&&I!==0&&(k.words[k.length++]=I),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},t.prototype.ishrn=function(x,M,v){return a(this.negative===0),this.iushrn(x,M,v)},t.prototype.shln=function(x){return this.clone().ishln(x)},t.prototype.ushln=function(x){return this.clone().iushln(x)},t.prototype.shrn=function(x){return this.clone().ishrn(x)},t.prototype.ushrn=function(x){return this.clone().iushrn(x)},t.prototype.testn=function(x){a(typeof x=="number"&&x>=0);var M=x%26,v=(x-M)/26,p=1<=0);var M=x%26,v=(x-M)/26;if(a(this.negative===0,"imaskn works only with positive numbers"),this.length<=v)return this;if(M!==0&&v++,this.length=Math.min(v,this.length),M!==0){var p=67108863^67108863>>>M<=67108864;M++)this.words[M]-=67108864,M===this.length-1?this.words[M+1]=1:this.words[M+1]++;return this.length=Math.max(this.length,M+1),this},t.prototype.isubn=function(x){if(a(typeof x=="number"),a(x<67108864),x<0)return this.iaddn(-x);if(this.negative!==0)return this.negative=0,this.iaddn(x),this.negative=1,this;if(this.words[0]-=x,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var M=0;M>26)-(k/67108864|0),this.words[p+v]=67108863&b}for(;p>26,this.words[p+v]=67108863&b;if(y===0)return this.strip();for(a(y===-1),y=0,p=0;p>26,this.words[p]=67108863&b;return this.negative=1,this.strip()},t.prototype._wordDiv=function(x,M){var v=(this.length,x.length),p=this.clone(),b=x,g=0|b.words[b.length-1];(v=26-this._countBits(g))!==0&&(b=b.ushln(v),p.iushln(v),g=0|b.words[b.length-1]);var y,k=p.length-b.length;if(M!=="mod"){(y=new t(null)).length=k+1,y.words=new Array(y.length);for(var R=0;R=0;z--){var U=67108864*(0|p.words[b.length+z])+(0|p.words[b.length+z-1]);for(U=Math.min(U/g|0,67108863),p._ishlnsubmul(b,U,z);p.negative!==0;)U--,p.negative=0,p._ishlnsubmul(b,1,z),p.isZero()||(p.negative^=1);y&&(y.words[z]=U)}return y&&y.strip(),p.strip(),M!=="div"&&v!==0&&p.iushrn(v),{div:y||null,mod:p}},t.prototype.divmod=function(x,M,v){return a(!x.isZero()),this.isZero()?{div:new t(0),mod:new t(0)}:this.negative!==0&&x.negative===0?(g=this.neg().divmod(x,M),M!=="mod"&&(p=g.div.neg()),M!=="div"&&(b=g.mod.neg(),v&&b.negative!==0&&b.iadd(x)),{div:p,mod:b}):this.negative===0&&x.negative!==0?(g=this.divmod(x.neg(),M),M!=="mod"&&(p=g.div.neg()),{div:p,mod:g.mod}):this.negative&x.negative?(g=this.neg().divmod(x.neg(),M),M!=="div"&&(b=g.mod.neg(),v&&b.negative!==0&&b.isub(x)),{div:g.div,mod:b}):x.length>this.length||this.cmp(x)<0?{div:new t(0),mod:this}:x.length===1?M==="div"?{div:this.divn(x.words[0]),mod:null}:M==="mod"?{div:null,mod:new t(this.modn(x.words[0]))}:{div:this.divn(x.words[0]),mod:new t(this.modn(x.words[0]))}:this._wordDiv(x,M);var p,b,g},t.prototype.div=function(x){return this.divmod(x,"div",!1).div},t.prototype.mod=function(x){return this.divmod(x,"mod",!1).mod},t.prototype.umod=function(x){return this.divmod(x,"mod",!0).mod},t.prototype.divRound=function(x){var M=this.divmod(x);if(M.mod.isZero())return M.div;var v=M.div.negative!==0?M.mod.isub(x):M.mod,p=x.ushrn(1),b=x.andln(1),g=v.cmp(p);return g<0||b===1&&g===0?M.div:M.div.negative!==0?M.div.isubn(1):M.div.iaddn(1)},t.prototype.modn=function(x){a(x<=67108863);for(var M=(1<<26)%x,v=0,p=this.length-1;p>=0;p--)v=(M*v+(0|this.words[p]))%x;return v},t.prototype.idivn=function(x){a(x<=67108863);for(var M=0,v=this.length-1;v>=0;v--){var p=(0|this.words[v])+67108864*M;this.words[v]=p/x|0,M=p%x}return this.strip()},t.prototype.divn=function(x){return this.clone().idivn(x)},t.prototype.egcd=function(x){a(x.negative===0),a(!x.isZero());var M=this,v=x.clone();M=M.negative!==0?M.umod(x):M.clone();for(var p=new t(1),b=new t(0),g=new t(0),y=new t(1),k=0;M.isEven()&&v.isEven();)M.iushrn(1),v.iushrn(1),++k;for(var R=v.clone(),I=M.clone();!M.isZero();){for(var z=0,U=1;!(M.words[0]&U)&&z<26;++z,U<<=1);if(z>0)for(M.iushrn(z);z-- >0;)(p.isOdd()||b.isOdd())&&(p.iadd(R),b.isub(I)),p.iushrn(1),b.iushrn(1);for(var q=0,O=1;!(v.words[0]&O)&&q<26;++q,O<<=1);if(q>0)for(v.iushrn(q);q-- >0;)(g.isOdd()||y.isOdd())&&(g.iadd(R),y.isub(I)),g.iushrn(1),y.iushrn(1);M.cmp(v)>=0?(M.isub(v),p.isub(g),b.isub(y)):(v.isub(M),g.isub(p),y.isub(b))}return{a:g,b:y,gcd:v.iushln(k)}},t.prototype._invmp=function(x){a(x.negative===0),a(!x.isZero());var M=this,v=x.clone();M=M.negative!==0?M.umod(x):M.clone();for(var p,b=new t(1),g=new t(0),y=v.clone();M.cmpn(1)>0&&v.cmpn(1)>0;){for(var k=0,R=1;!(M.words[0]&R)&&k<26;++k,R<<=1);if(k>0)for(M.iushrn(k);k-- >0;)b.isOdd()&&b.iadd(y),b.iushrn(1);for(var I=0,z=1;!(v.words[0]&z)&&I<26;++I,z<<=1);if(I>0)for(v.iushrn(I);I-- >0;)g.isOdd()&&g.iadd(y),g.iushrn(1);M.cmp(v)>=0?(M.isub(v),b.isub(g)):(v.isub(M),g.isub(b))}return(p=M.cmpn(1)===0?b:g).cmpn(0)<0&&p.iadd(x),p},t.prototype.gcd=function(x){if(this.isZero())return x.abs();if(x.isZero())return this.abs();var M=this.clone(),v=x.clone();M.negative=0,v.negative=0;for(var p=0;M.isEven()&&v.isEven();p++)M.iushrn(1),v.iushrn(1);for(;;){for(;M.isEven();)M.iushrn(1);for(;v.isEven();)v.iushrn(1);var b=M.cmp(v);if(b<0){var g=M;M=v,v=g}else if(b===0||v.cmpn(1)===0)break;M.isub(v)}return v.iushln(p)},t.prototype.invm=function(x){return this.egcd(x).a.umod(x)},t.prototype.isEven=function(){return(1&this.words[0])==0},t.prototype.isOdd=function(){return(1&this.words[0])==1},t.prototype.andln=function(x){return this.words[0]&x},t.prototype.bincn=function(x){a(typeof x=="number");var M=x%26,v=(x-M)/26,p=1<>>26,y&=67108863,this.words[g]=y}return b!==0&&(this.words[g]=b,this.length++),this},t.prototype.isZero=function(){return this.length===1&&this.words[0]===0},t.prototype.cmpn=function(x){var M,v=x<0;if(this.negative!==0&&!v)return-1;if(this.negative===0&&v)return 1;if(this.strip(),this.length>1)M=1;else{v&&(x=-x),a(x<=67108863,"Number is too big");var p=0|this.words[0];M=p===x?0:px.length)return 1;if(this.length=0;v--){var p=0|this.words[v],b=0|x.words[v];if(p!==b){pb&&(M=1);break}}return M},t.prototype.gtn=function(x){return this.cmpn(x)===1},t.prototype.gt=function(x){return this.cmp(x)===1},t.prototype.gten=function(x){return this.cmpn(x)>=0},t.prototype.gte=function(x){return this.cmp(x)>=0},t.prototype.ltn=function(x){return this.cmpn(x)===-1},t.prototype.lt=function(x){return this.cmp(x)===-1},t.prototype.lten=function(x){return this.cmpn(x)<=0},t.prototype.lte=function(x){return this.cmp(x)<=0},t.prototype.eqn=function(x){return this.cmpn(x)===0},t.prototype.eq=function(x){return this.cmp(x)===0},t.red=function(x){return new $(x)},t.prototype.toRed=function(x){return a(!this.red,"Already a number in reduction context"),a(this.negative===0,"red works only with positives"),x.convertTo(this)._forceRed(x)},t.prototype.fromRed=function(){return a(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},t.prototype._forceRed=function(x){return this.red=x,this},t.prototype.forceRed=function(x){return a(!this.red,"Already a number in reduction context"),this._forceRed(x)},t.prototype.redAdd=function(x){return a(this.red,"redAdd works only with red numbers"),this.red.add(this,x)},t.prototype.redIAdd=function(x){return a(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,x)},t.prototype.redSub=function(x){return a(this.red,"redSub works only with red numbers"),this.red.sub(this,x)},t.prototype.redISub=function(x){return a(this.red,"redISub works only with red numbers"),this.red.isub(this,x)},t.prototype.redShl=function(x){return a(this.red,"redShl works only with red numbers"),this.red.shl(this,x)},t.prototype.redMul=function(x){return a(this.red,"redMul works only with red numbers"),this.red._verify2(this,x),this.red.mul(this,x)},t.prototype.redIMul=function(x){return a(this.red,"redMul works only with red numbers"),this.red._verify2(this,x),this.red.imul(this,x)},t.prototype.redSqr=function(){return a(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},t.prototype.redISqr=function(){return a(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},t.prototype.redSqrt=function(){return a(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},t.prototype.redInvm=function(){return a(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},t.prototype.redNeg=function(){return a(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},t.prototype.redPow=function(x){return a(this.red&&!x.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,x)};var A={k256:null,p224:null,p192:null,p25519:null};function N(x,M){this.name=x,this.p=new t(M,16),this.n=this.p.bitLength(),this.k=new t(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function L(){N.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function j(){N.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function P(){N.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function D(){N.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function $(x){if(typeof x=="string"){var M=t._prime(x);this.m=M.p,this.prime=M}else a(x.gtn(1),"modulus must be greater than 1"),this.m=x,this.prime=null}function B(x){$.call(this,x),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new t(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}N.prototype._tmp=function(){var x=new t(null);return x.words=new Array(Math.ceil(this.n/13)),x},N.prototype.ireduce=function(x){var M,v=x;do this.split(v,this.tmp),M=(v=(v=this.imulK(v)).iadd(this.tmp)).bitLength();while(M>this.n);var p=M0?v.isub(this.p):v.strip!==void 0?v.strip():v._strip(),v},N.prototype.split=function(x,M){x.iushrn(this.n,0,M)},N.prototype.imulK=function(x){return x.imul(this.k)},r(L,N),L.prototype.split=function(x,M){for(var v=Math.min(x.length,9),p=0;p>>22,b=g}b>>>=22,x.words[p-10]=b,b===0&&x.length>10?x.length-=10:x.length-=9},L.prototype.imulK=function(x){x.words[x.length]=0,x.words[x.length+1]=0,x.length+=2;for(var M=0,v=0;v>>=26,x.words[v]=b,M=p}return M!==0&&(x.words[x.length++]=M),x},t._prime=function(x){if(A[x])return A[x];var M;if(x==="k256")M=new L;else if(x==="p224")M=new j;else if(x==="p192")M=new P;else{if(x!=="p25519")throw new Error("Unknown prime "+x);M=new D}return A[x]=M,M},$.prototype._verify1=function(x){a(x.negative===0,"red works only with positives"),a(x.red,"red works only with red numbers")},$.prototype._verify2=function(x,M){a((x.negative|M.negative)==0,"red works only with positives"),a(x.red&&x.red===M.red,"red works only with red numbers")},$.prototype.imod=function(x){return this.prime?this.prime.ireduce(x)._forceRed(this):x.umod(this.m)._forceRed(this)},$.prototype.neg=function(x){return x.isZero()?x.clone():this.m.sub(x)._forceRed(this)},$.prototype.add=function(x,M){this._verify2(x,M);var v=x.add(M);return v.cmp(this.m)>=0&&v.isub(this.m),v._forceRed(this)},$.prototype.iadd=function(x,M){this._verify2(x,M);var v=x.iadd(M);return v.cmp(this.m)>=0&&v.isub(this.m),v},$.prototype.sub=function(x,M){this._verify2(x,M);var v=x.sub(M);return v.cmpn(0)<0&&v.iadd(this.m),v._forceRed(this)},$.prototype.isub=function(x,M){this._verify2(x,M);var v=x.isub(M);return v.cmpn(0)<0&&v.iadd(this.m),v},$.prototype.shl=function(x,M){return this._verify1(x),this.imod(x.ushln(M))},$.prototype.imul=function(x,M){return this._verify2(x,M),this.imod(x.imul(M))},$.prototype.mul=function(x,M){return this._verify2(x,M),this.imod(x.mul(M))},$.prototype.isqr=function(x){return this.imul(x,x.clone())},$.prototype.sqr=function(x){return this.mul(x,x)},$.prototype.sqrt=function(x){if(x.isZero())return x.clone();var M=this.m.andln(3);if(a(M%2==1),M===3){var v=this.m.add(new t(1)).iushrn(2);return this.pow(x,v)}for(var p=this.m.subn(1),b=0;!p.isZero()&&p.andln(1)===0;)b++,p.iushrn(1);a(!p.isZero());var g=new t(1).toRed(this),y=g.redNeg(),k=this.m.subn(1).iushrn(1),R=this.m.bitLength();for(R=new t(2*R*R).toRed(this);this.pow(R,k).cmp(y)!==0;)R.redIAdd(y);for(var I=this.pow(R,p),z=this.pow(x,p.addn(1).iushrn(1)),U=this.pow(x,p),q=b;U.cmp(g)!==0;){for(var O=U,H=0;O.cmp(g)!==0;H++)O=O.redSqr();a(H=0;p--){for(var R=M.words[p],I=k-1;I>=0;I--){var z=R>>I&1;b!==v[0]&&(b=this.sqr(b)),z!==0||g!==0?(g<<=1,g|=z,(++y===4||p===0&&I===0)&&(b=this.mul(b,v[g]),y=0,g=0)):y=0}k=26}return b},$.prototype.convertTo=function(x){var M=x.umod(this.m);return M===x?M.clone():M},$.prototype.convertFrom=function(x){var M=x.clone();return M.red=null,M},t.mont=function(x){return new B(x)},r(B,$),B.prototype.convertTo=function(x){return this.imod(x.ushln(this.shift))},B.prototype.convertFrom=function(x){var M=this.imod(x.mul(this.rinv));return M.red=null,M},B.prototype.imul=function(x,M){if(x.isZero()||M.isZero())return x.words[0]=0,x.length=1,x;var v=x.imul(M),p=v.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),b=v.isub(p).iushrn(this.shift),g=b;return b.cmp(this.m)>=0?g=b.isub(this.m):b.cmpn(0)<0&&(g=b.iadd(this.m)),g._forceRed(this)},B.prototype.mul=function(x,M){if(x.isZero()||M.isZero())return new t(0)._forceRed(this);var v=x.mul(M),p=v.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),b=v.isub(p).iushrn(this.shift),g=b;return b.cmp(this.m)>=0?g=b.isub(this.m):b.cmpn(0)<0&&(g=b.iadd(this.m)),g._forceRed(this)},B.prototype.invm=function(x){return this.imod(x._invmp(this.m).mul(this.r2))._forceRed(this)}})(E===void 0||E)},{buffer:188}],185:[function(s,E,S){S.byteLength=function(i){var c=l(i),h=c[0],u=c[1];return 3*(h+u)/4-u},S.toByteArray=function(i){var c,h,u=l(i),d=u[0],f=u[1],w=new a(function(N,L,j){return 3*(L+j)/4-j}(0,d,f)),_=0,A=f>0?d-4:d;for(h=0;h>16&255,w[_++]=c>>8&255,w[_++]=255&c;return f===2&&(c=o[i.charCodeAt(h)]<<2|o[i.charCodeAt(h+1)]>>4,w[_++]=255&c),f===1&&(c=o[i.charCodeAt(h)]<<10|o[i.charCodeAt(h+1)]<<4|o[i.charCodeAt(h+2)]>>2,w[_++]=c>>8&255,w[_++]=255&c),w},S.fromByteArray=function(i){for(var c,h=i.length,u=h%3,d=[],f=0,w=h-u;fw?w:f+16383));return u===1?(c=i[h-1],d.push(m[c>>2]+m[c<<4&63]+"==")):u===2&&(c=(i[h-2]<<8)+i[h-1],d.push(m[c>>10]+m[c>>4&63]+m[c<<2&63]+"=")),d.join("")};for(var m=[],o=[],a=typeof Uint8Array<"u"?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,e=r.length;t0)throw new Error("Invalid string. Length must be a multiple of 4");var h=i.indexOf("=");return h===-1&&(h=c),[h,h===c?0:4-h%4]}function n(i,c,h){for(var u,d,f=[],w=c;w>18&63]+m[d>>12&63]+m[d>>6&63]+m[63&d]);return f.join("")}o[45]=62,o[95]=63},{}],186:[function(s,E,S){(function(m,o){function a(v,p){if(!v)throw new Error(p||"Assertion failed")}function r(v,p){v.super_=p;var b=function(){};b.prototype=p.prototype,v.prototype=new b,v.prototype.constructor=v}function t(v,p,b){if(t.isBN(v))return v;this.negative=0,this.words=null,this.length=0,this.red=null,v!==null&&(p!=="le"&&p!=="be"||(b=p,p=10),this._init(v||0,p||10,b||"be"))}var e;typeof m=="object"?m.exports=t:(void 0).BN=t,t.BN=t,t.wordSize=26;try{e=typeof window<"u"&&window.Buffer!==void 0?window.Buffer:s("buffer").Buffer}catch{}function l(v,p){var b=v.charCodeAt(p);return b>=48&&b<=57?b-48:b>=65&&b<=70?b-55:b>=97&&b<=102?b-87:void a(!1,"Invalid character in "+v)}function n(v,p,b){var g=l(v,b);return b-1>=p&&(g|=l(v,b-1)<<4),g}function i(v,p,b,g){for(var y=0,k=0,R=Math.min(v.length,b),I=p;I=49?z-49+10:z>=17?z-17+10:z,a(z>=0&&k0?v:p},t.min=function(v,p){return v.cmp(p)<0?v:p},t.prototype._init=function(v,p,b){if(typeof v=="number")return this._initNumber(v,p,b);if(typeof v=="object")return this._initArray(v,p,b);p==="hex"&&(p=16),a(p===(0|p)&&p>=2&&p<=36);var g=0;(v=v.toString().replace(/\s+/g,""))[0]==="-"&&(g++,this.negative=1),g=0;g-=3)k=v[g]|v[g-1]<<8|v[g-2]<<16,this.words[y]|=k<>>26-R&67108863,(R+=24)>=26&&(R-=26,y++);else if(b==="le")for(g=0,y=0;g>>26-R&67108863,(R+=24)>=26&&(R-=26,y++);return this._strip()},t.prototype._parseHex=function(v,p,b){this.length=Math.ceil((v.length-p)/6),this.words=new Array(this.length);for(var g=0;g=p;g-=2)y=n(v,p,g)<=18?(k-=18,R+=1,this.words[R]|=y>>>26):k+=8;else for(g=(v.length-p)%2==0?p+1:p;g=18?(k-=18,R+=1,this.words[R]|=y>>>26):k+=8;this._strip()},t.prototype._parseBase=function(v,p,b){this.words=[0],this.length=1;for(var g=0,y=1;y<=67108863;y*=p)g++;g--,y=y/p|0;for(var k=v.length-b,R=k%g,I=Math.min(k,k-R)+b,z=0,U=b;U1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},t.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{t.prototype[Symbol.for("nodejs.util.inspect.custom")]=h}catch{t.prototype.inspect=h}else t.prototype.inspect=h;function h(){return(this.red?""}var u=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],d=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],f=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];t.prototype.toString=function(v,p){var b;if(p=0|p||1,(v=v||10)===16||v==="hex"){b="";for(var g=0,y=0,k=0;k>>24-g&16777215,(g+=2)>=26&&(g-=26,k--),b=y!==0||k!==this.length-1?u[6-I.length]+I+b:I+b}for(y!==0&&(b=y.toString(16)+b);b.length%p!=0;)b="0"+b;return this.negative!==0&&(b="-"+b),b}if(v===(0|v)&&v>=2&&v<=36){var z=d[v],U=f[v];b="";var q=this.clone();for(q.negative=0;!q.isZero();){var O=q.modrn(U).toString(v);b=(q=q.idivn(U)).isZero()?O+b:u[z-O.length]+O+b}for(this.isZero()&&(b="0"+b);b.length%p!=0;)b="0"+b;return this.negative!==0&&(b="-"+b),b}a(!1,"Base should be between 2 and 36")},t.prototype.toNumber=function(){var v=this.words[0];return this.length===2?v+=67108864*this.words[1]:this.length===3&&this.words[2]===1?v+=4503599627370496+67108864*this.words[1]:this.length>2&&a(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-v:v},t.prototype.toJSON=function(){return this.toString(16,2)},e&&(t.prototype.toBuffer=function(v,p){return this.toArrayLike(e,v,p)}),t.prototype.toArray=function(v,p){return this.toArrayLike(Array,v,p)};function w(v,p,b){b.negative=p.negative^v.negative;var g=v.length+p.length|0;b.length=g,g=g-1|0;var y=0|v.words[0],k=0|p.words[0],R=y*k,I=67108863&R,z=R/67108864|0;b.words[0]=I;for(var U=1;U>>26,O=67108863&z,H=Math.min(U,p.length-1),T=Math.max(0,U-v.length+1);T<=H;T++){var C=U-T|0;q+=(R=(y=0|v.words[C])*(k=0|p.words[T])+O)/67108864|0,O=67108863&R}b.words[U]=0|O,z=0|q}return z!==0?b.words[U]=0|z:b.length--,b._strip()}t.prototype.toArrayLike=function(v,p,b){this._strip();var g=this.byteLength(),y=b||Math.max(1,g);a(g<=y,"byte array longer than desired length"),a(y>0,"Requested array length <= 0");var k=function(R,I){return R.allocUnsafe?R.allocUnsafe(I):new R(I)}(v,y);return this["_toArrayLike"+(p==="le"?"LE":"BE")](k,g),k},t.prototype._toArrayLikeLE=function(v,p){for(var b=0,g=0,y=0,k=0;y>8&255),b>16&255),k===6?(b>24&255),g=0,k=0):(g=R>>>24,k+=2)}if(b=0&&(v[b--]=R>>8&255),b>=0&&(v[b--]=R>>16&255),k===6?(b>=0&&(v[b--]=R>>24&255),g=0,k=0):(g=R>>>24,k+=2)}if(b>=0)for(v[b--]=g;b>=0;)v[b--]=0},Math.clz32?t.prototype._countBits=function(v){return 32-Math.clz32(v)}:t.prototype._countBits=function(v){var p=v,b=0;return p>=4096&&(b+=13,p>>>=13),p>=64&&(b+=7,p>>>=7),p>=8&&(b+=4,p>>>=4),p>=2&&(b+=2,p>>>=2),b+p},t.prototype._zeroBits=function(v){if(v===0)return 26;var p=v,b=0;return!(8191&p)&&(b+=13,p>>>=13),!(127&p)&&(b+=7,p>>>=7),!(15&p)&&(b+=4,p>>>=4),!(3&p)&&(b+=2,p>>>=2),!(1&p)&&b++,b},t.prototype.bitLength=function(){var v=this.words[this.length-1],p=this._countBits(v);return 26*(this.length-1)+p},t.prototype.zeroBits=function(){if(this.isZero())return 0;for(var v=0,p=0;pv.length?this.clone().ior(v):v.clone().ior(this)},t.prototype.uor=function(v){return this.length>v.length?this.clone().iuor(v):v.clone().iuor(this)},t.prototype.iuand=function(v){var p;p=this.length>v.length?v:this;for(var b=0;bv.length?this.clone().iand(v):v.clone().iand(this)},t.prototype.uand=function(v){return this.length>v.length?this.clone().iuand(v):v.clone().iuand(this)},t.prototype.iuxor=function(v){var p,b;this.length>v.length?(p=this,b=v):(p=v,b=this);for(var g=0;gv.length?this.clone().ixor(v):v.clone().ixor(this)},t.prototype.uxor=function(v){return this.length>v.length?this.clone().iuxor(v):v.clone().iuxor(this)},t.prototype.inotn=function(v){a(typeof v=="number"&&v>=0);var p=0|Math.ceil(v/26),b=v%26;this._expand(p),b>0&&p--;for(var g=0;g0&&(this.words[g]=~this.words[g]&67108863>>26-b),this._strip()},t.prototype.notn=function(v){return this.clone().inotn(v)},t.prototype.setn=function(v,p){a(typeof v=="number"&&v>=0);var b=v/26|0,g=v%26;return this._expand(b+1),this.words[b]=p?this.words[b]|1<v.length?(b=this,g=v):(b=v,g=this);for(var y=0,k=0;k>>26;for(;y!==0&&k>>26;if(this.length=b.length,y!==0)this.words[this.length]=y,this.length++;else if(b!==this)for(;kv.length?this.clone().iadd(v):v.clone().iadd(this)},t.prototype.isub=function(v){if(v.negative!==0){v.negative=0;var p=this.iadd(v);return v.negative=1,p._normSign()}if(this.negative!==0)return this.negative=0,this.iadd(v),this.negative=1,this._normSign();var b,g,y=this.cmp(v);if(y===0)return this.negative=0,this.length=1,this.words[0]=0,this;y>0?(b=this,g=v):(b=v,g=this);for(var k=0,R=0;R>26,this.words[R]=67108863&p;for(;k!==0&&R>26,this.words[R]=67108863&p;if(k===0&&R>>13,T=0|R[1],C=8191&T,F=T>>>13,V=0|R[2],K=8191&V,W=V>>>13,Y=0|R[3],Q=8191&Y,et=Y>>>13,X=0|R[4],J=8191&X,G=X>>>13,nt=0|R[5],rt=8191&nt,st=nt>>>13,at=0|R[6],lt=8191&at,ht=at>>>13,wt=0|R[7],vt=8191&wt,bt=wt>>>13,Et=0|R[8],Mt=8191&Et,Tt=Et>>>13,Rt=0|R[9],_t=8191&Rt,dt=Rt>>>13,xt=0|I[0],Ct=8191&xt,kt=xt>>>13,Xt=0|I[1],ee=8191&Xt,Ot=Xt>>>13,Jt=0|I[2],qt=8191&Jt,Lt=Jt>>>13,oe=0|I[3],Qt=8191&oe,Pt=oe>>>13,Yt=0|I[4],ie=8191&Yt,Bt=Yt>>>13,te=0|I[5],se=8191&te,Ut=te>>>13,tt=0|I[6],it=8191&tt,ut=tt>>>13,gt=0|I[7],jt=8191>,yt=gt>>>13,Dt=0|I[8],It=8191&Dt,At=Dt>>>13,zt=0|I[9],Ft=8191&zt,Vt=zt>>>13;b.negative=v.negative^p.negative,b.length=19;var ce=(U+(g=Math.imul(O,Ct))|0)+((8191&(y=(y=Math.imul(O,kt))+Math.imul(H,Ct)|0))<<13)|0;U=((k=Math.imul(H,kt))+(y>>>13)|0)+(ce>>>26)|0,ce&=67108863,g=Math.imul(C,Ct),y=(y=Math.imul(C,kt))+Math.imul(F,Ct)|0,k=Math.imul(F,kt);var ae=(U+(g=g+Math.imul(O,ee)|0)|0)+((8191&(y=(y=y+Math.imul(O,Ot)|0)+Math.imul(H,ee)|0))<<13)|0;U=((k=k+Math.imul(H,Ot)|0)+(y>>>13)|0)+(ae>>>26)|0,ae&=67108863,g=Math.imul(K,Ct),y=(y=Math.imul(K,kt))+Math.imul(W,Ct)|0,k=Math.imul(W,kt),g=g+Math.imul(C,ee)|0,y=(y=y+Math.imul(C,Ot)|0)+Math.imul(F,ee)|0,k=k+Math.imul(F,Ot)|0;var fe=(U+(g=g+Math.imul(O,qt)|0)|0)+((8191&(y=(y=y+Math.imul(O,Lt)|0)+Math.imul(H,qt)|0))<<13)|0;U=((k=k+Math.imul(H,Lt)|0)+(y>>>13)|0)+(fe>>>26)|0,fe&=67108863,g=Math.imul(Q,Ct),y=(y=Math.imul(Q,kt))+Math.imul(et,Ct)|0,k=Math.imul(et,kt),g=g+Math.imul(K,ee)|0,y=(y=y+Math.imul(K,Ot)|0)+Math.imul(W,ee)|0,k=k+Math.imul(W,Ot)|0,g=g+Math.imul(C,qt)|0,y=(y=y+Math.imul(C,Lt)|0)+Math.imul(F,qt)|0,k=k+Math.imul(F,Lt)|0;var de=(U+(g=g+Math.imul(O,Qt)|0)|0)+((8191&(y=(y=y+Math.imul(O,Pt)|0)+Math.imul(H,Qt)|0))<<13)|0;U=((k=k+Math.imul(H,Pt)|0)+(y>>>13)|0)+(de>>>26)|0,de&=67108863,g=Math.imul(J,Ct),y=(y=Math.imul(J,kt))+Math.imul(G,Ct)|0,k=Math.imul(G,kt),g=g+Math.imul(Q,ee)|0,y=(y=y+Math.imul(Q,Ot)|0)+Math.imul(et,ee)|0,k=k+Math.imul(et,Ot)|0,g=g+Math.imul(K,qt)|0,y=(y=y+Math.imul(K,Lt)|0)+Math.imul(W,qt)|0,k=k+Math.imul(W,Lt)|0,g=g+Math.imul(C,Qt)|0,y=(y=y+Math.imul(C,Pt)|0)+Math.imul(F,Qt)|0,k=k+Math.imul(F,Pt)|0;var me=(U+(g=g+Math.imul(O,ie)|0)|0)+((8191&(y=(y=y+Math.imul(O,Bt)|0)+Math.imul(H,ie)|0))<<13)|0;U=((k=k+Math.imul(H,Bt)|0)+(y>>>13)|0)+(me>>>26)|0,me&=67108863,g=Math.imul(rt,Ct),y=(y=Math.imul(rt,kt))+Math.imul(st,Ct)|0,k=Math.imul(st,kt),g=g+Math.imul(J,ee)|0,y=(y=y+Math.imul(J,Ot)|0)+Math.imul(G,ee)|0,k=k+Math.imul(G,Ot)|0,g=g+Math.imul(Q,qt)|0,y=(y=y+Math.imul(Q,Lt)|0)+Math.imul(et,qt)|0,k=k+Math.imul(et,Lt)|0,g=g+Math.imul(K,Qt)|0,y=(y=y+Math.imul(K,Pt)|0)+Math.imul(W,Qt)|0,k=k+Math.imul(W,Pt)|0,g=g+Math.imul(C,ie)|0,y=(y=y+Math.imul(C,Bt)|0)+Math.imul(F,ie)|0,k=k+Math.imul(F,Bt)|0;var Z=(U+(g=g+Math.imul(O,se)|0)|0)+((8191&(y=(y=y+Math.imul(O,Ut)|0)+Math.imul(H,se)|0))<<13)|0;U=((k=k+Math.imul(H,Ut)|0)+(y>>>13)|0)+(Z>>>26)|0,Z&=67108863,g=Math.imul(lt,Ct),y=(y=Math.imul(lt,kt))+Math.imul(ht,Ct)|0,k=Math.imul(ht,kt),g=g+Math.imul(rt,ee)|0,y=(y=y+Math.imul(rt,Ot)|0)+Math.imul(st,ee)|0,k=k+Math.imul(st,Ot)|0,g=g+Math.imul(J,qt)|0,y=(y=y+Math.imul(J,Lt)|0)+Math.imul(G,qt)|0,k=k+Math.imul(G,Lt)|0,g=g+Math.imul(Q,Qt)|0,y=(y=y+Math.imul(Q,Pt)|0)+Math.imul(et,Qt)|0,k=k+Math.imul(et,Pt)|0,g=g+Math.imul(K,ie)|0,y=(y=y+Math.imul(K,Bt)|0)+Math.imul(W,ie)|0,k=k+Math.imul(W,Bt)|0,g=g+Math.imul(C,se)|0,y=(y=y+Math.imul(C,Ut)|0)+Math.imul(F,se)|0,k=k+Math.imul(F,Ut)|0;var ot=(U+(g=g+Math.imul(O,it)|0)|0)+((8191&(y=(y=y+Math.imul(O,ut)|0)+Math.imul(H,it)|0))<<13)|0;U=((k=k+Math.imul(H,ut)|0)+(y>>>13)|0)+(ot>>>26)|0,ot&=67108863,g=Math.imul(vt,Ct),y=(y=Math.imul(vt,kt))+Math.imul(bt,Ct)|0,k=Math.imul(bt,kt),g=g+Math.imul(lt,ee)|0,y=(y=y+Math.imul(lt,Ot)|0)+Math.imul(ht,ee)|0,k=k+Math.imul(ht,Ot)|0,g=g+Math.imul(rt,qt)|0,y=(y=y+Math.imul(rt,Lt)|0)+Math.imul(st,qt)|0,k=k+Math.imul(st,Lt)|0,g=g+Math.imul(J,Qt)|0,y=(y=y+Math.imul(J,Pt)|0)+Math.imul(G,Qt)|0,k=k+Math.imul(G,Pt)|0,g=g+Math.imul(Q,ie)|0,y=(y=y+Math.imul(Q,Bt)|0)+Math.imul(et,ie)|0,k=k+Math.imul(et,Bt)|0,g=g+Math.imul(K,se)|0,y=(y=y+Math.imul(K,Ut)|0)+Math.imul(W,se)|0,k=k+Math.imul(W,Ut)|0,g=g+Math.imul(C,it)|0,y=(y=y+Math.imul(C,ut)|0)+Math.imul(F,it)|0,k=k+Math.imul(F,ut)|0;var ct=(U+(g=g+Math.imul(O,jt)|0)|0)+((8191&(y=(y=y+Math.imul(O,yt)|0)+Math.imul(H,jt)|0))<<13)|0;U=((k=k+Math.imul(H,yt)|0)+(y>>>13)|0)+(ct>>>26)|0,ct&=67108863,g=Math.imul(Mt,Ct),y=(y=Math.imul(Mt,kt))+Math.imul(Tt,Ct)|0,k=Math.imul(Tt,kt),g=g+Math.imul(vt,ee)|0,y=(y=y+Math.imul(vt,Ot)|0)+Math.imul(bt,ee)|0,k=k+Math.imul(bt,Ot)|0,g=g+Math.imul(lt,qt)|0,y=(y=y+Math.imul(lt,Lt)|0)+Math.imul(ht,qt)|0,k=k+Math.imul(ht,Lt)|0,g=g+Math.imul(rt,Qt)|0,y=(y=y+Math.imul(rt,Pt)|0)+Math.imul(st,Qt)|0,k=k+Math.imul(st,Pt)|0,g=g+Math.imul(J,ie)|0,y=(y=y+Math.imul(J,Bt)|0)+Math.imul(G,ie)|0,k=k+Math.imul(G,Bt)|0,g=g+Math.imul(Q,se)|0,y=(y=y+Math.imul(Q,Ut)|0)+Math.imul(et,se)|0,k=k+Math.imul(et,Ut)|0,g=g+Math.imul(K,it)|0,y=(y=y+Math.imul(K,ut)|0)+Math.imul(W,it)|0,k=k+Math.imul(W,ut)|0,g=g+Math.imul(C,jt)|0,y=(y=y+Math.imul(C,yt)|0)+Math.imul(F,jt)|0,k=k+Math.imul(F,yt)|0;var ft=(U+(g=g+Math.imul(O,It)|0)|0)+((8191&(y=(y=y+Math.imul(O,At)|0)+Math.imul(H,It)|0))<<13)|0;U=((k=k+Math.imul(H,At)|0)+(y>>>13)|0)+(ft>>>26)|0,ft&=67108863,g=Math.imul(_t,Ct),y=(y=Math.imul(_t,kt))+Math.imul(dt,Ct)|0,k=Math.imul(dt,kt),g=g+Math.imul(Mt,ee)|0,y=(y=y+Math.imul(Mt,Ot)|0)+Math.imul(Tt,ee)|0,k=k+Math.imul(Tt,Ot)|0,g=g+Math.imul(vt,qt)|0,y=(y=y+Math.imul(vt,Lt)|0)+Math.imul(bt,qt)|0,k=k+Math.imul(bt,Lt)|0,g=g+Math.imul(lt,Qt)|0,y=(y=y+Math.imul(lt,Pt)|0)+Math.imul(ht,Qt)|0,k=k+Math.imul(ht,Pt)|0,g=g+Math.imul(rt,ie)|0,y=(y=y+Math.imul(rt,Bt)|0)+Math.imul(st,ie)|0,k=k+Math.imul(st,Bt)|0,g=g+Math.imul(J,se)|0,y=(y=y+Math.imul(J,Ut)|0)+Math.imul(G,se)|0,k=k+Math.imul(G,Ut)|0,g=g+Math.imul(Q,it)|0,y=(y=y+Math.imul(Q,ut)|0)+Math.imul(et,it)|0,k=k+Math.imul(et,ut)|0,g=g+Math.imul(K,jt)|0,y=(y=y+Math.imul(K,yt)|0)+Math.imul(W,jt)|0,k=k+Math.imul(W,yt)|0,g=g+Math.imul(C,It)|0,y=(y=y+Math.imul(C,At)|0)+Math.imul(F,It)|0,k=k+Math.imul(F,At)|0;var St=(U+(g=g+Math.imul(O,Ft)|0)|0)+((8191&(y=(y=y+Math.imul(O,Vt)|0)+Math.imul(H,Ft)|0))<<13)|0;U=((k=k+Math.imul(H,Vt)|0)+(y>>>13)|0)+(St>>>26)|0,St&=67108863,g=Math.imul(_t,ee),y=(y=Math.imul(_t,Ot))+Math.imul(dt,ee)|0,k=Math.imul(dt,Ot),g=g+Math.imul(Mt,qt)|0,y=(y=y+Math.imul(Mt,Lt)|0)+Math.imul(Tt,qt)|0,k=k+Math.imul(Tt,Lt)|0,g=g+Math.imul(vt,Qt)|0,y=(y=y+Math.imul(vt,Pt)|0)+Math.imul(bt,Qt)|0,k=k+Math.imul(bt,Pt)|0,g=g+Math.imul(lt,ie)|0,y=(y=y+Math.imul(lt,Bt)|0)+Math.imul(ht,ie)|0,k=k+Math.imul(ht,Bt)|0,g=g+Math.imul(rt,se)|0,y=(y=y+Math.imul(rt,Ut)|0)+Math.imul(st,se)|0,k=k+Math.imul(st,Ut)|0,g=g+Math.imul(J,it)|0,y=(y=y+Math.imul(J,ut)|0)+Math.imul(G,it)|0,k=k+Math.imul(G,ut)|0,g=g+Math.imul(Q,jt)|0,y=(y=y+Math.imul(Q,yt)|0)+Math.imul(et,jt)|0,k=k+Math.imul(et,yt)|0,g=g+Math.imul(K,It)|0,y=(y=y+Math.imul(K,At)|0)+Math.imul(W,It)|0,k=k+Math.imul(W,At)|0;var pt=(U+(g=g+Math.imul(C,Ft)|0)|0)+((8191&(y=(y=y+Math.imul(C,Vt)|0)+Math.imul(F,Ft)|0))<<13)|0;U=((k=k+Math.imul(F,Vt)|0)+(y>>>13)|0)+(pt>>>26)|0,pt&=67108863,g=Math.imul(_t,qt),y=(y=Math.imul(_t,Lt))+Math.imul(dt,qt)|0,k=Math.imul(dt,Lt),g=g+Math.imul(Mt,Qt)|0,y=(y=y+Math.imul(Mt,Pt)|0)+Math.imul(Tt,Qt)|0,k=k+Math.imul(Tt,Pt)|0,g=g+Math.imul(vt,ie)|0,y=(y=y+Math.imul(vt,Bt)|0)+Math.imul(bt,ie)|0,k=k+Math.imul(bt,Bt)|0,g=g+Math.imul(lt,se)|0,y=(y=y+Math.imul(lt,Ut)|0)+Math.imul(ht,se)|0,k=k+Math.imul(ht,Ut)|0,g=g+Math.imul(rt,it)|0,y=(y=y+Math.imul(rt,ut)|0)+Math.imul(st,it)|0,k=k+Math.imul(st,ut)|0,g=g+Math.imul(J,jt)|0,y=(y=y+Math.imul(J,yt)|0)+Math.imul(G,jt)|0,k=k+Math.imul(G,yt)|0,g=g+Math.imul(Q,It)|0,y=(y=y+Math.imul(Q,At)|0)+Math.imul(et,It)|0,k=k+Math.imul(et,At)|0;var mt=(U+(g=g+Math.imul(K,Ft)|0)|0)+((8191&(y=(y=y+Math.imul(K,Vt)|0)+Math.imul(W,Ft)|0))<<13)|0;U=((k=k+Math.imul(W,Vt)|0)+(y>>>13)|0)+(mt>>>26)|0,mt&=67108863,g=Math.imul(_t,Qt),y=(y=Math.imul(_t,Pt))+Math.imul(dt,Qt)|0,k=Math.imul(dt,Pt),g=g+Math.imul(Mt,ie)|0,y=(y=y+Math.imul(Mt,Bt)|0)+Math.imul(Tt,ie)|0,k=k+Math.imul(Tt,Bt)|0,g=g+Math.imul(vt,se)|0,y=(y=y+Math.imul(vt,Ut)|0)+Math.imul(bt,se)|0,k=k+Math.imul(bt,Ut)|0,g=g+Math.imul(lt,it)|0,y=(y=y+Math.imul(lt,ut)|0)+Math.imul(ht,it)|0,k=k+Math.imul(ht,ut)|0,g=g+Math.imul(rt,jt)|0,y=(y=y+Math.imul(rt,yt)|0)+Math.imul(st,jt)|0,k=k+Math.imul(st,yt)|0,g=g+Math.imul(J,It)|0,y=(y=y+Math.imul(J,At)|0)+Math.imul(G,It)|0,k=k+Math.imul(G,At)|0;var Wt=(U+(g=g+Math.imul(Q,Ft)|0)|0)+((8191&(y=(y=y+Math.imul(Q,Vt)|0)+Math.imul(et,Ft)|0))<<13)|0;U=((k=k+Math.imul(et,Vt)|0)+(y>>>13)|0)+(Wt>>>26)|0,Wt&=67108863,g=Math.imul(_t,ie),y=(y=Math.imul(_t,Bt))+Math.imul(dt,ie)|0,k=Math.imul(dt,Bt),g=g+Math.imul(Mt,se)|0,y=(y=y+Math.imul(Mt,Ut)|0)+Math.imul(Tt,se)|0,k=k+Math.imul(Tt,Ut)|0,g=g+Math.imul(vt,it)|0,y=(y=y+Math.imul(vt,ut)|0)+Math.imul(bt,it)|0,k=k+Math.imul(bt,ut)|0,g=g+Math.imul(lt,jt)|0,y=(y=y+Math.imul(lt,yt)|0)+Math.imul(ht,jt)|0,k=k+Math.imul(ht,yt)|0,g=g+Math.imul(rt,It)|0,y=(y=y+Math.imul(rt,At)|0)+Math.imul(st,It)|0,k=k+Math.imul(st,At)|0;var Ht=(U+(g=g+Math.imul(J,Ft)|0)|0)+((8191&(y=(y=y+Math.imul(J,Vt)|0)+Math.imul(G,Ft)|0))<<13)|0;U=((k=k+Math.imul(G,Vt)|0)+(y>>>13)|0)+(Ht>>>26)|0,Ht&=67108863,g=Math.imul(_t,se),y=(y=Math.imul(_t,Ut))+Math.imul(dt,se)|0,k=Math.imul(dt,Ut),g=g+Math.imul(Mt,it)|0,y=(y=y+Math.imul(Mt,ut)|0)+Math.imul(Tt,it)|0,k=k+Math.imul(Tt,ut)|0,g=g+Math.imul(vt,jt)|0,y=(y=y+Math.imul(vt,yt)|0)+Math.imul(bt,jt)|0,k=k+Math.imul(bt,yt)|0,g=g+Math.imul(lt,It)|0,y=(y=y+Math.imul(lt,At)|0)+Math.imul(ht,It)|0,k=k+Math.imul(ht,At)|0;var $t=(U+(g=g+Math.imul(rt,Ft)|0)|0)+((8191&(y=(y=y+Math.imul(rt,Vt)|0)+Math.imul(st,Ft)|0))<<13)|0;U=((k=k+Math.imul(st,Vt)|0)+(y>>>13)|0)+($t>>>26)|0,$t&=67108863,g=Math.imul(_t,it),y=(y=Math.imul(_t,ut))+Math.imul(dt,it)|0,k=Math.imul(dt,ut),g=g+Math.imul(Mt,jt)|0,y=(y=y+Math.imul(Mt,yt)|0)+Math.imul(Tt,jt)|0,k=k+Math.imul(Tt,yt)|0,g=g+Math.imul(vt,It)|0,y=(y=y+Math.imul(vt,At)|0)+Math.imul(bt,It)|0,k=k+Math.imul(bt,At)|0;var Nt=(U+(g=g+Math.imul(lt,Ft)|0)|0)+((8191&(y=(y=y+Math.imul(lt,Vt)|0)+Math.imul(ht,Ft)|0))<<13)|0;U=((k=k+Math.imul(ht,Vt)|0)+(y>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,g=Math.imul(_t,jt),y=(y=Math.imul(_t,yt))+Math.imul(dt,jt)|0,k=Math.imul(dt,yt),g=g+Math.imul(Mt,It)|0,y=(y=y+Math.imul(Mt,At)|0)+Math.imul(Tt,It)|0,k=k+Math.imul(Tt,At)|0;var re=(U+(g=g+Math.imul(vt,Ft)|0)|0)+((8191&(y=(y=y+Math.imul(vt,Vt)|0)+Math.imul(bt,Ft)|0))<<13)|0;U=((k=k+Math.imul(bt,Vt)|0)+(y>>>13)|0)+(re>>>26)|0,re&=67108863,g=Math.imul(_t,It),y=(y=Math.imul(_t,At))+Math.imul(dt,It)|0,k=Math.imul(dt,At);var le=(U+(g=g+Math.imul(Mt,Ft)|0)|0)+((8191&(y=(y=y+Math.imul(Mt,Vt)|0)+Math.imul(Tt,Ft)|0))<<13)|0;U=((k=k+Math.imul(Tt,Vt)|0)+(y>>>13)|0)+(le>>>26)|0,le&=67108863;var Zt=(U+(g=Math.imul(_t,Ft))|0)+((8191&(y=(y=Math.imul(_t,Vt))+Math.imul(dt,Ft)|0))<<13)|0;return U=((k=Math.imul(dt,Vt))+(y>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,z[0]=ce,z[1]=ae,z[2]=fe,z[3]=de,z[4]=me,z[5]=Z,z[6]=ot,z[7]=ct,z[8]=ft,z[9]=St,z[10]=pt,z[11]=mt,z[12]=Wt,z[13]=Ht,z[14]=$t,z[15]=Nt,z[16]=re,z[17]=le,z[18]=Zt,U!==0&&(z[19]=U,b.length++),b};function A(v,p,b){b.negative=p.negative^v.negative,b.length=v.length+p.length;for(var g=0,y=0,k=0;k>>26)|0)>>>26,R&=67108863}b.words[k]=I,g=R,R=y}return g!==0?b.words[k]=g:b.length--,b._strip()}function N(v,p,b){return A(v,p,b)}Math.imul||(_=w),t.prototype.mulTo=function(v,p){var b=this.length+v.length;return this.length===10&&v.length===10?_(this,v,p):b<63?w(this,v,p):b<1024?A(this,v,p):N(this,v,p)},t.prototype.mul=function(v){var p=new t(null);return p.words=new Array(this.length+v.length),this.mulTo(v,p)},t.prototype.mulf=function(v){var p=new t(null);return p.words=new Array(this.length+v.length),N(this,v,p)},t.prototype.imul=function(v){return this.clone().mulTo(v,this)},t.prototype.imuln=function(v){var p=v<0;p&&(v=-v),a(typeof v=="number"),a(v<67108864);for(var b=0,g=0;g>=26,b+=y/67108864|0,b+=k>>>26,this.words[g]=67108863&k}return b!==0&&(this.words[g]=b,this.length++),p?this.ineg():this},t.prototype.muln=function(v){return this.clone().imuln(v)},t.prototype.sqr=function(){return this.mul(this)},t.prototype.isqr=function(){return this.imul(this.clone())},t.prototype.pow=function(v){var p=function(k){for(var R=new Array(k.bitLength()),I=0;I>>U&1}return R}(v);if(p.length===0)return new t(1);for(var b=this,g=0;g=0);var p,b=v%26,g=(v-b)/26,y=67108863>>>26-b<<26-b;if(b!==0){var k=0;for(p=0;p>>26-b}k&&(this.words[p]=k,this.length++)}if(g!==0){for(p=this.length-1;p>=0;p--)this.words[p+g]=this.words[p];for(p=0;p=0),g=p?(p-p%26)/26:0;var y=v%26,k=Math.min((v-y)/26,this.length),R=67108863^67108863>>>y<k)for(this.length-=k,z=0;z=0&&(U!==0||z>=g);z--){var q=0|this.words[z];this.words[z]=U<<26-y|q>>>y,U=q&R}return I&&U!==0&&(I.words[I.length++]=U),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},t.prototype.ishrn=function(v,p,b){return a(this.negative===0),this.iushrn(v,p,b)},t.prototype.shln=function(v){return this.clone().ishln(v)},t.prototype.ushln=function(v){return this.clone().iushln(v)},t.prototype.shrn=function(v){return this.clone().ishrn(v)},t.prototype.ushrn=function(v){return this.clone().iushrn(v)},t.prototype.testn=function(v){a(typeof v=="number"&&v>=0);var p=v%26,b=(v-p)/26,g=1<=0);var p=v%26,b=(v-p)/26;if(a(this.negative===0,"imaskn works only with positive numbers"),this.length<=b)return this;if(p!==0&&b++,this.length=Math.min(b,this.length),p!==0){var g=67108863^67108863>>>p<=67108864;p++)this.words[p]-=67108864,p===this.length-1?this.words[p+1]=1:this.words[p+1]++;return this.length=Math.max(this.length,p+1),this},t.prototype.isubn=function(v){if(a(typeof v=="number"),a(v<67108864),v<0)return this.iaddn(-v);if(this.negative!==0)return this.negative=0,this.iaddn(v),this.negative=1,this;if(this.words[0]-=v,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var p=0;p>26)-(I/67108864|0),this.words[g+b]=67108863&y}for(;g>26,this.words[g+b]=67108863&y;if(R===0)return this._strip();for(a(R===-1),R=0,g=0;g>26,this.words[g]=67108863&y;return this.negative=1,this._strip()},t.prototype._wordDiv=function(v,p){var b=(this.length,v.length),g=this.clone(),y=v,k=0|y.words[y.length-1];(b=26-this._countBits(k))!==0&&(y=y.ushln(b),g.iushln(b),k=0|y.words[y.length-1]);var R,I=g.length-y.length;if(p!=="mod"){(R=new t(null)).length=I+1,R.words=new Array(R.length);for(var z=0;z=0;q--){var O=67108864*(0|g.words[y.length+q])+(0|g.words[y.length+q-1]);for(O=Math.min(O/k|0,67108863),g._ishlnsubmul(y,O,q);g.negative!==0;)O--,g.negative=0,g._ishlnsubmul(y,1,q),g.isZero()||(g.negative^=1);R&&(R.words[q]=O)}return R&&R._strip(),g._strip(),p!=="div"&&b!==0&&g.iushrn(b),{div:R||null,mod:g}},t.prototype.divmod=function(v,p,b){return a(!v.isZero()),this.isZero()?{div:new t(0),mod:new t(0)}:this.negative!==0&&v.negative===0?(k=this.neg().divmod(v,p),p!=="mod"&&(g=k.div.neg()),p!=="div"&&(y=k.mod.neg(),b&&y.negative!==0&&y.iadd(v)),{div:g,mod:y}):this.negative===0&&v.negative!==0?(k=this.divmod(v.neg(),p),p!=="mod"&&(g=k.div.neg()),{div:g,mod:k.mod}):this.negative&v.negative?(k=this.neg().divmod(v.neg(),p),p!=="div"&&(y=k.mod.neg(),b&&y.negative!==0&&y.isub(v)),{div:k.div,mod:y}):v.length>this.length||this.cmp(v)<0?{div:new t(0),mod:this}:v.length===1?p==="div"?{div:this.divn(v.words[0]),mod:null}:p==="mod"?{div:null,mod:new t(this.modrn(v.words[0]))}:{div:this.divn(v.words[0]),mod:new t(this.modrn(v.words[0]))}:this._wordDiv(v,p);var g,y,k},t.prototype.div=function(v){return this.divmod(v,"div",!1).div},t.prototype.mod=function(v){return this.divmod(v,"mod",!1).mod},t.prototype.umod=function(v){return this.divmod(v,"mod",!0).mod},t.prototype.divRound=function(v){var p=this.divmod(v);if(p.mod.isZero())return p.div;var b=p.div.negative!==0?p.mod.isub(v):p.mod,g=v.ushrn(1),y=v.andln(1),k=b.cmp(g);return k<0||y===1&&k===0?p.div:p.div.negative!==0?p.div.isubn(1):p.div.iaddn(1)},t.prototype.modrn=function(v){var p=v<0;p&&(v=-v),a(v<=67108863);for(var b=(1<<26)%v,g=0,y=this.length-1;y>=0;y--)g=(b*g+(0|this.words[y]))%v;return p?-g:g},t.prototype.modn=function(v){return this.modrn(v)},t.prototype.idivn=function(v){var p=v<0;p&&(v=-v),a(v<=67108863);for(var b=0,g=this.length-1;g>=0;g--){var y=(0|this.words[g])+67108864*b;this.words[g]=y/v|0,b=y%v}return this._strip(),p?this.ineg():this},t.prototype.divn=function(v){return this.clone().idivn(v)},t.prototype.egcd=function(v){a(v.negative===0),a(!v.isZero());var p=this,b=v.clone();p=p.negative!==0?p.umod(v):p.clone();for(var g=new t(1),y=new t(0),k=new t(0),R=new t(1),I=0;p.isEven()&&b.isEven();)p.iushrn(1),b.iushrn(1),++I;for(var z=b.clone(),U=p.clone();!p.isZero();){for(var q=0,O=1;!(p.words[0]&O)&&q<26;++q,O<<=1);if(q>0)for(p.iushrn(q);q-- >0;)(g.isOdd()||y.isOdd())&&(g.iadd(z),y.isub(U)),g.iushrn(1),y.iushrn(1);for(var H=0,T=1;!(b.words[0]&T)&&H<26;++H,T<<=1);if(H>0)for(b.iushrn(H);H-- >0;)(k.isOdd()||R.isOdd())&&(k.iadd(z),R.isub(U)),k.iushrn(1),R.iushrn(1);p.cmp(b)>=0?(p.isub(b),g.isub(k),y.isub(R)):(b.isub(p),k.isub(g),R.isub(y))}return{a:k,b:R,gcd:b.iushln(I)}},t.prototype._invmp=function(v){a(v.negative===0),a(!v.isZero());var p=this,b=v.clone();p=p.negative!==0?p.umod(v):p.clone();for(var g,y=new t(1),k=new t(0),R=b.clone();p.cmpn(1)>0&&b.cmpn(1)>0;){for(var I=0,z=1;!(p.words[0]&z)&&I<26;++I,z<<=1);if(I>0)for(p.iushrn(I);I-- >0;)y.isOdd()&&y.iadd(R),y.iushrn(1);for(var U=0,q=1;!(b.words[0]&q)&&U<26;++U,q<<=1);if(U>0)for(b.iushrn(U);U-- >0;)k.isOdd()&&k.iadd(R),k.iushrn(1);p.cmp(b)>=0?(p.isub(b),y.isub(k)):(b.isub(p),k.isub(y))}return(g=p.cmpn(1)===0?y:k).cmpn(0)<0&&g.iadd(v),g},t.prototype.gcd=function(v){if(this.isZero())return v.abs();if(v.isZero())return this.abs();var p=this.clone(),b=v.clone();p.negative=0,b.negative=0;for(var g=0;p.isEven()&&b.isEven();g++)p.iushrn(1),b.iushrn(1);for(;;){for(;p.isEven();)p.iushrn(1);for(;b.isEven();)b.iushrn(1);var y=p.cmp(b);if(y<0){var k=p;p=b,b=k}else if(y===0||b.cmpn(1)===0)break;p.isub(b)}return b.iushln(g)},t.prototype.invm=function(v){return this.egcd(v).a.umod(v)},t.prototype.isEven=function(){return(1&this.words[0])==0},t.prototype.isOdd=function(){return(1&this.words[0])==1},t.prototype.andln=function(v){return this.words[0]&v},t.prototype.bincn=function(v){a(typeof v=="number");var p=v%26,b=(v-p)/26,g=1<>>26,R&=67108863,this.words[k]=R}return y!==0&&(this.words[k]=y,this.length++),this},t.prototype.isZero=function(){return this.length===1&&this.words[0]===0},t.prototype.cmpn=function(v){var p,b=v<0;if(this.negative!==0&&!b)return-1;if(this.negative===0&&b)return 1;if(this._strip(),this.length>1)p=1;else{b&&(v=-v),a(v<=67108863,"Number is too big");var g=0|this.words[0];p=g===v?0:gv.length)return 1;if(this.length=0;b--){var g=0|this.words[b],y=0|v.words[b];if(g!==y){gy&&(p=1);break}}return p},t.prototype.gtn=function(v){return this.cmpn(v)===1},t.prototype.gt=function(v){return this.cmp(v)===1},t.prototype.gten=function(v){return this.cmpn(v)>=0},t.prototype.gte=function(v){return this.cmp(v)>=0},t.prototype.ltn=function(v){return this.cmpn(v)===-1},t.prototype.lt=function(v){return this.cmp(v)===-1},t.prototype.lten=function(v){return this.cmpn(v)<=0},t.prototype.lte=function(v){return this.cmp(v)<=0},t.prototype.eqn=function(v){return this.cmpn(v)===0},t.prototype.eq=function(v){return this.cmp(v)===0},t.red=function(v){return new x(v)},t.prototype.toRed=function(v){return a(!this.red,"Already a number in reduction context"),a(this.negative===0,"red works only with positives"),v.convertTo(this)._forceRed(v)},t.prototype.fromRed=function(){return a(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},t.prototype._forceRed=function(v){return this.red=v,this},t.prototype.forceRed=function(v){return a(!this.red,"Already a number in reduction context"),this._forceRed(v)},t.prototype.redAdd=function(v){return a(this.red,"redAdd works only with red numbers"),this.red.add(this,v)},t.prototype.redIAdd=function(v){return a(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,v)},t.prototype.redSub=function(v){return a(this.red,"redSub works only with red numbers"),this.red.sub(this,v)},t.prototype.redISub=function(v){return a(this.red,"redISub works only with red numbers"),this.red.isub(this,v)},t.prototype.redShl=function(v){return a(this.red,"redShl works only with red numbers"),this.red.shl(this,v)},t.prototype.redMul=function(v){return a(this.red,"redMul works only with red numbers"),this.red._verify2(this,v),this.red.mul(this,v)},t.prototype.redIMul=function(v){return a(this.red,"redMul works only with red numbers"),this.red._verify2(this,v),this.red.imul(this,v)},t.prototype.redSqr=function(){return a(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},t.prototype.redISqr=function(){return a(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},t.prototype.redSqrt=function(){return a(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},t.prototype.redInvm=function(){return a(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},t.prototype.redNeg=function(){return a(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},t.prototype.redPow=function(v){return a(this.red&&!v.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,v)};var L={k256:null,p224:null,p192:null,p25519:null};function j(v,p){this.name=v,this.p=new t(p,16),this.n=this.p.bitLength(),this.k=new t(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function P(){j.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function D(){j.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function $(){j.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function B(){j.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function x(v){if(typeof v=="string"){var p=t._prime(v);this.m=p.p,this.prime=p}else a(v.gtn(1),"modulus must be greater than 1"),this.m=v,this.prime=null}function M(v){x.call(this,v),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new t(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}j.prototype._tmp=function(){var v=new t(null);return v.words=new Array(Math.ceil(this.n/13)),v},j.prototype.ireduce=function(v){var p,b=v;do this.split(b,this.tmp),p=(b=(b=this.imulK(b)).iadd(this.tmp)).bitLength();while(p>this.n);var g=p0?b.isub(this.p):b.strip!==void 0?b.strip():b._strip(),b},j.prototype.split=function(v,p){v.iushrn(this.n,0,p)},j.prototype.imulK=function(v){return v.imul(this.k)},r(P,j),P.prototype.split=function(v,p){for(var b=Math.min(v.length,9),g=0;g>>22,y=k}y>>>=22,v.words[g-10]=y,y===0&&v.length>10?v.length-=10:v.length-=9},P.prototype.imulK=function(v){v.words[v.length]=0,v.words[v.length+1]=0,v.length+=2;for(var p=0,b=0;b>>=26,v.words[b]=y,p=g}return p!==0&&(v.words[v.length++]=p),v},t._prime=function(v){if(L[v])return L[v];var p;if(v==="k256")p=new P;else if(v==="p224")p=new D;else if(v==="p192")p=new $;else{if(v!=="p25519")throw new Error("Unknown prime "+v);p=new B}return L[v]=p,p},x.prototype._verify1=function(v){a(v.negative===0,"red works only with positives"),a(v.red,"red works only with red numbers")},x.prototype._verify2=function(v,p){a((v.negative|p.negative)==0,"red works only with positives"),a(v.red&&v.red===p.red,"red works only with red numbers")},x.prototype.imod=function(v){return this.prime?this.prime.ireduce(v)._forceRed(this):(c(v,v.umod(this.m)._forceRed(this)),v)},x.prototype.neg=function(v){return v.isZero()?v.clone():this.m.sub(v)._forceRed(this)},x.prototype.add=function(v,p){this._verify2(v,p);var b=v.add(p);return b.cmp(this.m)>=0&&b.isub(this.m),b._forceRed(this)},x.prototype.iadd=function(v,p){this._verify2(v,p);var b=v.iadd(p);return b.cmp(this.m)>=0&&b.isub(this.m),b},x.prototype.sub=function(v,p){this._verify2(v,p);var b=v.sub(p);return b.cmpn(0)<0&&b.iadd(this.m),b._forceRed(this)},x.prototype.isub=function(v,p){this._verify2(v,p);var b=v.isub(p);return b.cmpn(0)<0&&b.iadd(this.m),b},x.prototype.shl=function(v,p){return this._verify1(v),this.imod(v.ushln(p))},x.prototype.imul=function(v,p){return this._verify2(v,p),this.imod(v.imul(p))},x.prototype.mul=function(v,p){return this._verify2(v,p),this.imod(v.mul(p))},x.prototype.isqr=function(v){return this.imul(v,v.clone())},x.prototype.sqr=function(v){return this.mul(v,v)},x.prototype.sqrt=function(v){if(v.isZero())return v.clone();var p=this.m.andln(3);if(a(p%2==1),p===3){var b=this.m.add(new t(1)).iushrn(2);return this.pow(v,b)}for(var g=this.m.subn(1),y=0;!g.isZero()&&g.andln(1)===0;)y++,g.iushrn(1);a(!g.isZero());var k=new t(1).toRed(this),R=k.redNeg(),I=this.m.subn(1).iushrn(1),z=this.m.bitLength();for(z=new t(2*z*z).toRed(this);this.pow(z,I).cmp(R)!==0;)z.redIAdd(R);for(var U=this.pow(z,g),q=this.pow(v,g.addn(1).iushrn(1)),O=this.pow(v,g),H=y;O.cmp(k)!==0;){for(var T=O,C=0;T.cmp(k)!==0;C++)T=T.redSqr();a(C=0;g--){for(var z=p.words[g],U=I-1;U>=0;U--){var q=z>>U&1;y!==b[0]&&(y=this.sqr(y)),q!==0||k!==0?(k<<=1,k|=q,(++R===4||g===0&&U===0)&&(y=this.mul(y,b[k]),R=0,k=0)):R=0}I=26}return y},x.prototype.convertTo=function(v){var p=v.umod(this.m);return p===v?p.clone():p},x.prototype.convertFrom=function(v){var p=v.clone();return p.red=null,p},t.mont=function(v){return new M(v)},r(M,x),M.prototype.convertTo=function(v){return this.imod(v.ushln(this.shift))},M.prototype.convertFrom=function(v){var p=this.imod(v.mul(this.rinv));return p.red=null,p},M.prototype.imul=function(v,p){if(v.isZero()||p.isZero())return v.words[0]=0,v.length=1,v;var b=v.imul(p),g=b.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),y=b.isub(g).iushrn(this.shift),k=y;return y.cmp(this.m)>=0?k=y.isub(this.m):y.cmpn(0)<0&&(k=y.iadd(this.m)),k._forceRed(this)},M.prototype.mul=function(v,p){if(v.isZero()||p.isZero())return new t(0)._forceRed(this);var b=v.mul(p),g=b.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),y=b.isub(g).iushrn(this.shift),k=y;return y.cmp(this.m)>=0?k=y.isub(this.m):y.cmpn(0)<0&&(k=y.iadd(this.m)),k._forceRed(this)},M.prototype.invm=function(v){return this.imod(v._invmp(this.m).mul(this.r2))._forceRed(this)}})(E===void 0||E)},{buffer:188}],187:[function(s,E,S){var m;function o(r){this.rand=r}if(E.exports=function(r){return m||(m=new o(null)),m.generate(r)},E.exports.Rand=o,o.prototype.generate=function(r){return this._rand(r)},o.prototype._rand=function(r){if(this.rand.getBytes)return this.rand.getBytes(r);for(var t=new Uint8Array(r),e=0;e>>24]^N[D>>>16&255]^L[$>>>8&255]^j[255&B]^i[x++],f=A[D>>>24]^N[$>>>16&255]^L[B>>>8&255]^j[255&P]^i[x++],w=A[$>>>24]^N[B>>>16&255]^L[P>>>8&255]^j[255&D]^i[x++],_=A[B>>>24]^N[P>>>16&255]^L[D>>>8&255]^j[255&$]^i[x++],P=d,D=f,$=w,B=_;return d=(h[P>>>24]<<24|h[D>>>16&255]<<16|h[$>>>8&255]<<8|h[255&B])^i[x++],f=(h[D>>>24]<<24|h[$>>>16&255]<<16|h[B>>>8&255]<<8|h[255&P])^i[x++],w=(h[$>>>24]<<24|h[B>>>16&255]<<16|h[P>>>8&255]<<8|h[255&D])^i[x++],_=(h[B>>>24]<<24|h[P>>>16&255]<<16|h[D>>>8&255]<<8|h[255&$])^i[x++],[d>>>=0,f>>>=0,w>>>=0,_>>>=0]}var t=[0,1,2,4,8,16,32,64,128,27,54],e=function(){for(var n=new Array(256),i=0;i<256;i++)n[i]=i<128?i<<1:i<<1^283;for(var c=[],h=[],u=[[],[],[],[]],d=[[],[],[],[]],f=0,w=0,_=0;_<256;++_){var A=w^w<<1^w<<2^w<<3^w<<4;A=A>>>8^255&A^99,c[f]=A,h[A]=f;var N=n[f],L=n[N],j=n[L],P=257*n[A]^16843008*A;u[0][f]=P<<24|P>>>8,u[1][f]=P<<16|P>>>16,u[2][f]=P<<8|P>>>24,u[3][f]=P,P=16843009*j^65537*L^257*N^16843008*f,d[0][A]=P<<24|P>>>8,d[1][A]=P<<16|P>>>16,d[2][A]=P<<8|P>>>24,d[3][A]=P,f===0?f=w=1:(f=N^n[n[n[j^N]]],w^=n[n[w]])}return{SBOX:c,INV_SBOX:h,SUB_MIX:u,INV_SUB_MIX:d}}();function l(n){this._key=o(n),this._reset()}l.blockSize=16,l.keySize=32,l.prototype.blockSize=l.blockSize,l.prototype.keySize=l.keySize,l.prototype._reset=function(){for(var n=this._key,i=n.length,c=i+6,h=4*(c+1),u=[],d=0;d>>24,f=e.SBOX[f>>>24]<<24|e.SBOX[f>>>16&255]<<16|e.SBOX[f>>>8&255]<<8|e.SBOX[255&f],f^=t[d/i|0]<<24):i>6&&d%i==4&&(f=e.SBOX[f>>>24]<<24|e.SBOX[f>>>16&255]<<16|e.SBOX[f>>>8&255]<<8|e.SBOX[255&f]),u[d]=u[d-i]^f}for(var w=[],_=0;_>>24]]^e.INV_SUB_MIX[1][e.SBOX[N>>>16&255]]^e.INV_SUB_MIX[2][e.SBOX[N>>>8&255]]^e.INV_SUB_MIX[3][e.SBOX[255&N]]}this._nRounds=c,this._keySchedule=u,this._invKeySchedule=w},l.prototype.encryptBlockRaw=function(n){return r(n=o(n),this._keySchedule,e.SUB_MIX,e.SBOX,this._nRounds)},l.prototype.encryptBlock=function(n){var i=this.encryptBlockRaw(n),c=m.allocUnsafe(16);return c.writeUInt32BE(i[0],0),c.writeUInt32BE(i[1],4),c.writeUInt32BE(i[2],8),c.writeUInt32BE(i[3],12),c},l.prototype.decryptBlock=function(n){var i=(n=o(n))[1];n[1]=n[3],n[3]=i;var c=r(n,this._invKeySchedule,e.INV_SUB_MIX,e.INV_SBOX,this._nRounds),h=m.allocUnsafe(16);return h.writeUInt32BE(c[0],0),h.writeUInt32BE(c[3],4),h.writeUInt32BE(c[2],8),h.writeUInt32BE(c[1],12),h},l.prototype.scrub=function(){a(this._keySchedule),a(this._invKeySchedule),a(this._key)},E.exports.AES=l},{"safe-buffer":494}],190:[function(s,E,S){var m=s("./aes"),o=s("safe-buffer").Buffer,a=s("cipher-base"),r=s("inherits"),t=s("./ghash"),e=s("buffer-xor"),l=s("./incr32");function n(i,c,h,u){a.call(this);var d=o.alloc(4,0);this._cipher=new m.AES(c);var f=this._cipher.encryptBlock(d);this._ghash=new t(f),h=function(w,_,A){if(_.length===12)return w._finID=o.concat([_,o.from([0,0,0,1])]),o.concat([_,o.from([0,0,0,2])]);var N=new t(A),L=_.length,j=L%16;N.update(_),j&&(j=16-j,N.update(o.alloc(j,0))),N.update(o.alloc(8,0));var P=8*L,D=o.alloc(8);D.writeUIntBE(P,0,8),N.update(D),w._finID=N.state;var $=o.from(w._finID);return l($),$}(this,h,f),this._prev=o.from(h),this._cache=o.allocUnsafe(0),this._secCache=o.allocUnsafe(0),this._decrypt=u,this._alen=0,this._len=0,this._mode=i,this._authTag=null,this._called=!1}r(n,a),n.prototype._update=function(i){if(!this._called&&this._alen){var c=16-this._alen%16;c<16&&(c=o.alloc(c,0),this._ghash.update(c))}this._called=!0;var h=this._mode.encrypt(this,i);return this._decrypt?this._ghash.update(i):this._ghash.update(h),this._len+=i.length,h},n.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var i=e(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(c,h){var u=0;c.length!==h.length&&u++;for(var d=Math.min(c.length,h.length),f=0;f16)throw new Error("unable to decrypt data");for(var f=-1;++f16)return u=this.cache.slice(0,16),this.cache=this.cache.slice(16),u}else if(this.cache.length>=16)return u=this.cache.slice(0,16),this.cache=this.cache.slice(16),u;return null},i.prototype.flush=function(){if(this.cache.length)return this.cache},S.createDecipher=function(h,u){var d=a[h.toLowerCase()];if(!d)throw new TypeError("invalid suite type");var f=l(u,!1,d.key,d.iv);return c(h,f.key,f.iv)},S.createDecipheriv=c},{"./aes":189,"./authCipher":190,"./modes":202,"./streamCipher":205,"cipher-base":221,evp_bytestokey:423,inherits:440,"safe-buffer":494}],193:[function(s,E,S){var m=s("./modes"),o=s("./authCipher"),a=s("safe-buffer").Buffer,r=s("./streamCipher"),t=s("cipher-base"),e=s("./aes"),l=s("evp_bytestokey");function n(u,d,f){t.call(this),this._cache=new c,this._cipher=new e.AES(d),this._prev=a.from(f),this._mode=u,this._autopadding=!0}s("inherits")(n,t),n.prototype._update=function(u){var d,f;this._cache.add(u);for(var w=[];d=this._cache.get();)f=this._mode.encrypt(this,d),w.push(f);return a.concat(w)};var i=a.alloc(16,16);function c(){this.cache=a.allocUnsafe(0)}function h(u,d,f){var w=m[u.toLowerCase()];if(!w)throw new TypeError("invalid suite type");if(typeof d=="string"&&(d=a.from(d)),d.length!==w.key/8)throw new TypeError("invalid key length "+d.length);if(typeof f=="string"&&(f=a.from(f)),w.mode!=="GCM"&&f.length!==w.iv)throw new TypeError("invalid iv length "+f.length);return w.type==="stream"?new r(w.module,d,f):w.type==="auth"?new o(w.module,d,f):new n(w.module,d,f)}n.prototype._final=function(){var u=this._cache.flush();if(this._autopadding)return u=this._mode.encrypt(this,u),this._cipher.scrub(),u;if(!u.equals(i))throw this._cipher.scrub(),new Error("data not multiple of block length")},n.prototype.setAutoPadding=function(u){return this._autopadding=!!u,this},c.prototype.add=function(u){this.cache=a.concat([this.cache,u])},c.prototype.get=function(){if(this.cache.length>15){var u=this.cache.slice(0,16);return this.cache=this.cache.slice(16),u}return null},c.prototype.flush=function(){for(var u=16-this.cache.length,d=a.allocUnsafe(u),f=-1;++f>>0,0),e.writeUInt32BE(t[1]>>>0,4),e.writeUInt32BE(t[2]>>>0,8),e.writeUInt32BE(t[3]>>>0,12),e}function r(t){this.h=t,this.state=m.alloc(16,0),this.cache=m.allocUnsafe(0)}r.prototype.ghash=function(t){for(var e=-1;++e0;e--)n[e]=n[e]>>>1|(1&n[e-1])<<31;n[0]=n[0]>>>1,l&&(n[0]=n[0]^225<<24)}this.state=a(i)},r.prototype.update=function(t){var e;for(this.cache=m.concat([this.cache,t]);this.cache.length>=16;)e=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(e)},r.prototype.final=function(t,e){return this.cache.length&&this.ghash(m.concat([this.cache,o],16)),this.ghash(a([0,t,0,e])),this.state},E.exports=r},{"safe-buffer":494}],195:[function(s,E,S){E.exports=function(m){for(var o,a=m.length;a--;){if((o=m.readUInt8(a))!==255){o++,m.writeUInt8(o,a);break}m.writeUInt8(0,a)}}},{}],196:[function(s,E,S){var m=s("buffer-xor");S.encrypt=function(o,a){var r=m(a,o._prev);return o._prev=o._cipher.encryptBlock(r),o._prev},S.decrypt=function(o,a){var r=o._prev;o._prev=a;var t=o._cipher.decryptBlock(a);return m(t,r)}},{"buffer-xor":219}],197:[function(s,E,S){var m=s("safe-buffer").Buffer,o=s("buffer-xor");function a(r,t,e){var l=t.length,n=o(t,r._cache);return r._cache=r._cache.slice(l),r._prev=m.concat([r._prev,e?t:n]),n}S.encrypt=function(r,t,e){for(var l,n=m.allocUnsafe(0);t.length;){if(r._cache.length===0&&(r._cache=r._cipher.encryptBlock(r._prev),r._prev=m.allocUnsafe(0)),!(r._cache.length<=t.length)){n=m.concat([n,a(r,t,e)]);break}l=r._cache.length,n=m.concat([n,a(r,t.slice(0,l),e)]),t=t.slice(l)}return n}},{"buffer-xor":219,"safe-buffer":494}],198:[function(s,E,S){var m=s("safe-buffer").Buffer;function o(r,t,e){for(var l,n,i=-1,c=0;++i<8;)l=t&1<<7-i?128:0,c+=(128&(n=r._cipher.encryptBlock(r._prev)[0]^l))>>i%8,r._prev=a(r._prev,e?l:n);return c}function a(r,t){var e=r.length,l=-1,n=m.allocUnsafe(r.length);for(r=m.concat([r,m.from([t])]);++l>7;return n}S.encrypt=function(r,t,e){for(var l=t.length,n=m.allocUnsafe(l),i=-1;++i=0||!l.umod(e.prime1)||!l.umod(e.prime2));return l}function t(e,l){var n=function(L){var j=r(L);return{blinder:j.toRed(o.mont(L.modulus)).redPow(new o(L.publicExponent)).fromRed(),unblinder:j.invm(L.modulus)}}(l),i=l.modulus.byteLength(),c=new o(e).mul(n.blinder).umod(l.modulus),h=c.toRed(o.mont(l.prime1)),u=c.toRed(o.mont(l.prime2)),d=l.coefficient,f=l.prime1,w=l.prime2,_=h.redPow(l.exponent1).fromRed(),A=u.redPow(l.exponent2).fromRed(),N=_.isub(A).imul(d).umod(f).imul(w);return A.iadd(N).imul(n.unblinder).umod(l.modulus).toArrayLike(m,"be",i)}t.getr=r,E.exports=t}).call(this)}).call(this,s("buffer").Buffer)},{"bn.js":186,buffer:220,randombytes:475}],210:[function(s,E,S){E.exports=s("./browser/algorithms.json")},{"./browser/algorithms.json":211}],211:[function(s,E,S){E.exports={sha224WithRSAEncryption:{sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:{sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:{sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:{sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:{sign:"ecdsa",hash:"sha256",id:""},sha224:{sign:"ecdsa",hash:"sha224",id:""},sha384:{sign:"ecdsa",hash:"sha384",id:""},sha512:{sign:"ecdsa",hash:"sha512",id:""},"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:{sign:"dsa",hash:"sha1",id:""},"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA:{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}}},{}],212:[function(s,E,S){E.exports={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}},{}],213:[function(s,E,S){var m=s("safe-buffer").Buffer,o=s("create-hash"),a=s("readable-stream"),r=s("inherits"),t=s("./sign"),e=s("./verify"),l=s("./algorithms.json");function n(u){a.Writable.call(this);var d=l[u];if(!d)throw new Error("Unknown message digest");this._hashType=d.hash,this._hash=o(d.hash),this._tag=d.id,this._signType=d.sign}function i(u){a.Writable.call(this);var d=l[u];if(!d)throw new Error("Unknown message digest");this._hash=o(d.hash),this._tag=d.id,this._signType=d.sign}function c(u){return new n(u)}function h(u){return new i(u)}Object.keys(l).forEach(function(u){l[u].id=m.from(l[u].id,"hex"),l[u.toLowerCase()]=l[u]}),r(n,a.Writable),n.prototype._write=function(u,d,f){this._hash.update(u),f()},n.prototype.update=function(u,d){return typeof u=="string"&&(u=m.from(u,d)),this._hash.update(u),this},n.prototype.sign=function(u,d){this.end();var f=this._hash.digest(),w=t(f,u,this._hashType,this._signType,this._tag);return d?w.toString(d):w},r(i,a.Writable),i.prototype._write=function(u,d,f){this._hash.update(u),f()},i.prototype.update=function(u,d){return typeof u=="string"&&(u=m.from(u,d)),this._hash.update(u),this},i.prototype.verify=function(u,d,f){typeof d=="string"&&(d=m.from(d,f)),this.end();var w=this._hash.digest();return e(d,w,u,this._signType,this._tag)},E.exports={Sign:c,Verify:h,createSign:c,createVerify:h}},{"./algorithms.json":211,"./sign":214,"./verify":215,"create-hash":386,inherits:440,"readable-stream":491,"safe-buffer":494}],214:[function(s,E,S){var m=s("safe-buffer").Buffer,o=s("create-hmac"),a=s("browserify-rsa"),r=s("elliptic").ec,t=s("bn.js"),e=s("parse-asn1"),l=s("./curves.json");function n(u,d,f,w){if((u=m.from(u.toArray())).length0&&f.ishrn(w),f}function c(u,d,f){var w,_;do{for(w=m.alloc(0);8*w.length=n)throw new Error("invalid sig")}E.exports=function(l,n,i,c,h){var u=r(i);if(u.type==="ec"){if(c!=="ecdsa"&&c!=="ecdsa/rsa")throw new Error("wrong public key type");return function(L,j,P){var D=t[P.data.algorithm.curve.join(".")];if(!D)throw new Error("unknown curve "+P.data.algorithm.curve.join("."));var $=new a(D),B=P.data.subjectPrivateKey.data;return $.verify(j,L,B)}(l,n,u)}if(u.type==="dsa"){if(c!=="dsa")throw new Error("wrong public key type");return function(L,j,P){var D=P.data.p,$=P.data.q,B=P.data.g,x=P.data.pub_key,M=r.signature.decode(L,"der"),v=M.s,p=M.r;e(v,$),e(p,$);var b=o.mont(D),g=v.invm($);return B.toRed(b).redPow(new o(j).mul(g).mod($)).fromRed().mul(x.toRed(b).redPow(p.mul(g).mod($)).fromRed()).mod(D).mod($).cmp(p)===0}(l,n,u)}if(c!=="rsa"&&c!=="ecdsa/rsa")throw new Error("wrong public key type");n=m.concat([h,n]);for(var d=u.modulus.byteLength(),f=[1],w=0;n.length+f.length+2>5==6?2:u>>4==14?3:u>>3==30?4:u>>6==2?-1:-2}function t(u){var d=this.lastTotal-this.lastNeed,f=function(w,_,A){if((192&_[0])!=128)return w.lastNeed=0,"�";if(w.lastNeed>1&&_.length>1){if((192&_[1])!=128)return w.lastNeed=1,"�";if(w.lastNeed>2&&_.length>2&&(192&_[2])!=128)return w.lastNeed=2,"�"}}(this,u);return f!==void 0?f:this.lastNeed<=u.length?(u.copy(this.lastChar,d,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(u.copy(this.lastChar,d,0,u.length),void(this.lastNeed-=u.length))}function e(u,d){if((u.length-d)%2==0){var f=u.toString("utf16le",d);if(f){var w=f.charCodeAt(f.length-1);if(w>=55296&&w<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=u[u.length-2],this.lastChar[1]=u[u.length-1],f.slice(0,-1)}return f}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=u[u.length-1],u.toString("utf16le",d,u.length-1)}function l(u){var d=u&&u.length?this.write(u):"";if(this.lastNeed){var f=this.lastTotal-this.lastNeed;return d+this.lastChar.toString("utf16le",0,f)}return d}function n(u,d){var f=(u.length-d)%3;return f===0?u.toString("base64",d):(this.lastNeed=3-f,this.lastTotal=3,f===1?this.lastChar[0]=u[u.length-1]:(this.lastChar[0]=u[u.length-2],this.lastChar[1]=u[u.length-1]),u.toString("base64",d,u.length-f))}function i(u){var d=u&&u.length?this.write(u):"";return this.lastNeed?d+this.lastChar.toString("base64",0,3-this.lastNeed):d}function c(u){return u.toString(this.encoding)}function h(u){return u&&u.length?this.write(u):""}S.StringDecoder=a,a.prototype.write=function(u){if(u.length===0)return"";var d,f;if(this.lastNeed){if((d=this.fillLast(u))===void 0)return"";f=this.lastNeed,this.lastNeed=0}else f=0;return f=0?(j>0&&(_.lastNeed=j-1),j):--L=0?(j>0&&(_.lastNeed=j-2),j):--L=0?(j>0&&(j===2?j=0:_.lastNeed=j-3),j):0}(this,u,d);if(!this.lastNeed)return u.toString("utf8",d);this.lastTotal=f;var w=u.length-(f-this.lastNeed);return u.copy(this.lastChar,0,w),u.toString("utf8",d,w)},a.prototype.fillLast=function(u){if(this.lastNeed<=u.length)return u.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);u.copy(this.lastChar,this.lastTotal-this.lastNeed,0,u.length),this.lastNeed-=u.length}},{"safe-buffer":217}],219:[function(s,E,S){(function(m){(function(){E.exports=function(o,a){for(var r=Math.min(o.length,a.length),t=new m(r),e=0;e2147483647)throw new RangeError('The value "'+T+'" is invalid for option "size"');var C=new Uint8Array(T);return C.__proto__=t.prototype,C}function t(T,C,F){if(typeof T=="number"){if(typeof C=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return n(T)}return e(T,C,F)}function e(T,C,F){if(typeof T=="string")return function(W,Y){if(typeof Y=="string"&&Y!==""||(Y="utf8"),!t.isEncoding(Y))throw new TypeError("Unknown encoding: "+Y);var Q=0|h(W,Y),et=r(Q),X=et.write(W,Y);return X!==Q&&(et=et.slice(0,X)),et}(T,C);if(ArrayBuffer.isView(T))return i(T);if(T==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof T);if(O(T,ArrayBuffer)||T&&O(T.buffer,ArrayBuffer))return function(W,Y,Q){if(Y<0||W.byteLength=2147483647)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|T}function h(T,C){if(t.isBuffer(T))return T.length;if(ArrayBuffer.isView(T)||O(T,ArrayBuffer))return T.byteLength;if(typeof T!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof T);var F=T.length,V=arguments.length>2&&arguments[2]===!0;if(!V&&F===0)return 0;for(var K=!1;;)switch(C){case"ascii":case"latin1":case"binary":return F;case"utf8":case"utf-8":return z(T).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*F;case"hex":return F>>>1;case"base64":return U(T).length;default:if(K)return V?-1:z(T).length;C=(""+C).toLowerCase(),K=!0}}function u(T,C,F){var V=!1;if((C===void 0||C<0)&&(C=0),C>this.length||((F===void 0||F>this.length)&&(F=this.length),F<=0)||(F>>>=0)<=(C>>>=0))return"";for(T||(T="utf8");;)switch(T){case"hex":return M(this,C,F);case"utf8":case"utf-8":return $(this,C,F);case"ascii":return B(this,C,F);case"latin1":case"binary":return x(this,C,F);case"base64":return D(this,C,F);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return v(this,C,F);default:if(V)throw new TypeError("Unknown encoding: "+T);T=(T+"").toLowerCase(),V=!0}}function d(T,C,F){var V=T[C];T[C]=T[F],T[F]=V}function f(T,C,F,V,K){if(T.length===0)return-1;if(typeof F=="string"?(V=F,F=0):F>2147483647?F=2147483647:F<-2147483648&&(F=-2147483648),H(F=+F)&&(F=K?0:T.length-1),F<0&&(F=T.length+F),F>=T.length){if(K)return-1;F=T.length-1}else if(F<0){if(!K)return-1;F=0}if(typeof C=="string"&&(C=t.from(C,V)),t.isBuffer(C))return C.length===0?-1:w(T,C,F,V,K);if(typeof C=="number")return C&=255,typeof Uint8Array.prototype.indexOf=="function"?K?Uint8Array.prototype.indexOf.call(T,C,F):Uint8Array.prototype.lastIndexOf.call(T,C,F):w(T,[C],F,V,K);throw new TypeError("val must be string, number or Buffer")}function w(T,C,F,V,K){var W,Y=1,Q=T.length,et=C.length;if(V!==void 0&&((V=String(V).toLowerCase())==="ucs2"||V==="ucs-2"||V==="utf16le"||V==="utf-16le")){if(T.length<2||C.length<2)return-1;Y=2,Q/=2,et/=2,F/=2}function X(rt,st){return Y===1?rt[st]:rt.readUInt16BE(st*Y)}if(K){var J=-1;for(W=F;WQ&&(F=Q-et),W=F;W>=0;W--){for(var G=!0,nt=0;ntK&&(V=K):V=K;var W=C.length;V>W/2&&(V=W/2);for(var Y=0;Y>8,et=Y%256,X.push(et),X.push(Q);return X}(C,T.length-F),T,F,V)}function D(T,C,F){return C===0&&F===T.length?o.fromByteArray(T):o.fromByteArray(T.slice(C,F))}function $(T,C,F){F=Math.min(T.length,F);for(var V=[],K=C;K239?4:X>223?3:X>191?2:1;if(K+G<=F)switch(G){case 1:X<128&&(J=X);break;case 2:(192&(W=T[K+1]))==128&&(et=(31&X)<<6|63&W)>127&&(J=et);break;case 3:W=T[K+1],Y=T[K+2],(192&W)==128&&(192&Y)==128&&(et=(15&X)<<12|(63&W)<<6|63&Y)>2047&&(et<55296||et>57343)&&(J=et);break;case 4:W=T[K+1],Y=T[K+2],Q=T[K+3],(192&W)==128&&(192&Y)==128&&(192&Q)==128&&(et=(15&X)<<18|(63&W)<<12|(63&Y)<<6|63&Q)>65535&&et<1114112&&(J=et)}J===null?(J=65533,G=1):J>65535&&(J-=65536,V.push(J>>>10&1023|55296),J=56320|1023&J),V.push(J),K+=G}return function(nt){var rt=nt.length;if(rt<=4096)return String.fromCharCode.apply(String,nt);for(var st="",at=0;at"u"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(t.prototype,"parent",{enumerable:!0,get:function(){if(t.isBuffer(this))return this.buffer}}),Object.defineProperty(t.prototype,"offset",{enumerable:!0,get:function(){if(t.isBuffer(this))return this.byteOffset}}),typeof Symbol<"u"&&Symbol.species!=null&&t[Symbol.species]===t&&Object.defineProperty(t,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),t.poolSize=8192,t.from=function(T,C,F){return e(T,C,F)},t.prototype.__proto__=Uint8Array.prototype,t.__proto__=Uint8Array,t.alloc=function(T,C,F){return function(V,K,W){return l(V),V<=0?r(V):K!==void 0?typeof W=="string"?r(V).fill(K,W):r(V).fill(K):r(V)}(T,C,F)},t.allocUnsafe=function(T){return n(T)},t.allocUnsafeSlow=function(T){return n(T)},t.isBuffer=function(T){return T!=null&&T._isBuffer===!0&&T!==t.prototype},t.compare=function(T,C){if(O(T,Uint8Array)&&(T=t.from(T,T.offset,T.byteLength)),O(C,Uint8Array)&&(C=t.from(C,C.offset,C.byteLength)),!t.isBuffer(T)||!t.isBuffer(C))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(T===C)return 0;for(var F=T.length,V=C.length,K=0,W=Math.min(F,V);KC&&(T+=" ... "),""},t.prototype.compare=function(T,C,F,V,K){if(O(T,Uint8Array)&&(T=t.from(T,T.offset,T.byteLength)),!t.isBuffer(T))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof T);if(C===void 0&&(C=0),F===void 0&&(F=T?T.length:0),V===void 0&&(V=0),K===void 0&&(K=this.length),C<0||F>T.length||V<0||K>this.length)throw new RangeError("out of range index");if(V>=K&&C>=F)return 0;if(V>=K)return-1;if(C>=F)return 1;if(this===T)return 0;for(var W=(K>>>=0)-(V>>>=0),Y=(F>>>=0)-(C>>>=0),Q=Math.min(W,Y),et=this.slice(V,K),X=T.slice(C,F),J=0;J>>=0,isFinite(F)?(F>>>=0,V===void 0&&(V="utf8")):(V=F,F=void 0)}var K=this.length-C;if((F===void 0||F>K)&&(F=K),T.length>0&&(F<0||C<0)||C>this.length)throw new RangeError("Attempt to write outside buffer bounds");V||(V="utf8");for(var W=!1;;)switch(V){case"hex":return _(this,T,C,F);case"utf8":case"utf-8":return A(this,T,C,F);case"ascii":return N(this,T,C,F);case"latin1":case"binary":return L(this,T,C,F);case"base64":return j(this,T,C,F);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,T,C,F);default:if(W)throw new TypeError("Unknown encoding: "+V);V=(""+V).toLowerCase(),W=!0}},t.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function B(T,C,F){var V="";F=Math.min(T.length,F);for(var K=C;KV)&&(F=V);for(var K="",W=C;WF)throw new RangeError("Trying to access beyond buffer length")}function b(T,C,F,V,K,W){if(!t.isBuffer(T))throw new TypeError('"buffer" argument must be a Buffer instance');if(C>K||CT.length)throw new RangeError("Index out of range")}function g(T,C,F,V,K,W){if(F+V>T.length)throw new RangeError("Index out of range");if(F<0)throw new RangeError("Index out of range")}function y(T,C,F,V,K){return C=+C,F>>>=0,K||g(T,0,F,4),a.write(T,C,F,V,23,4),F+4}function k(T,C,F,V,K){return C=+C,F>>>=0,K||g(T,0,F,8),a.write(T,C,F,V,52,8),F+8}t.prototype.slice=function(T,C){var F=this.length;(T=~~T)<0?(T+=F)<0&&(T=0):T>F&&(T=F),(C=C===void 0?F:~~C)<0?(C+=F)<0&&(C=0):C>F&&(C=F),C>>=0,C>>>=0,F||p(T,C,this.length);for(var V=this[T],K=1,W=0;++W>>=0,C>>>=0,F||p(T,C,this.length);for(var V=this[T+--C],K=1;C>0&&(K*=256);)V+=this[T+--C]*K;return V},t.prototype.readUInt8=function(T,C){return T>>>=0,C||p(T,1,this.length),this[T]},t.prototype.readUInt16LE=function(T,C){return T>>>=0,C||p(T,2,this.length),this[T]|this[T+1]<<8},t.prototype.readUInt16BE=function(T,C){return T>>>=0,C||p(T,2,this.length),this[T]<<8|this[T+1]},t.prototype.readUInt32LE=function(T,C){return T>>>=0,C||p(T,4,this.length),(this[T]|this[T+1]<<8|this[T+2]<<16)+16777216*this[T+3]},t.prototype.readUInt32BE=function(T,C){return T>>>=0,C||p(T,4,this.length),16777216*this[T]+(this[T+1]<<16|this[T+2]<<8|this[T+3])},t.prototype.readIntLE=function(T,C,F){T>>>=0,C>>>=0,F||p(T,C,this.length);for(var V=this[T],K=1,W=0;++W=(K*=128)&&(V-=Math.pow(2,8*C)),V},t.prototype.readIntBE=function(T,C,F){T>>>=0,C>>>=0,F||p(T,C,this.length);for(var V=C,K=1,W=this[T+--V];V>0&&(K*=256);)W+=this[T+--V]*K;return W>=(K*=128)&&(W-=Math.pow(2,8*C)),W},t.prototype.readInt8=function(T,C){return T>>>=0,C||p(T,1,this.length),128&this[T]?-1*(255-this[T]+1):this[T]},t.prototype.readInt16LE=function(T,C){T>>>=0,C||p(T,2,this.length);var F=this[T]|this[T+1]<<8;return 32768&F?4294901760|F:F},t.prototype.readInt16BE=function(T,C){T>>>=0,C||p(T,2,this.length);var F=this[T+1]|this[T]<<8;return 32768&F?4294901760|F:F},t.prototype.readInt32LE=function(T,C){return T>>>=0,C||p(T,4,this.length),this[T]|this[T+1]<<8|this[T+2]<<16|this[T+3]<<24},t.prototype.readInt32BE=function(T,C){return T>>>=0,C||p(T,4,this.length),this[T]<<24|this[T+1]<<16|this[T+2]<<8|this[T+3]},t.prototype.readFloatLE=function(T,C){return T>>>=0,C||p(T,4,this.length),a.read(this,T,!0,23,4)},t.prototype.readFloatBE=function(T,C){return T>>>=0,C||p(T,4,this.length),a.read(this,T,!1,23,4)},t.prototype.readDoubleLE=function(T,C){return T>>>=0,C||p(T,8,this.length),a.read(this,T,!0,52,8)},t.prototype.readDoubleBE=function(T,C){return T>>>=0,C||p(T,8,this.length),a.read(this,T,!1,52,8)},t.prototype.writeUIntLE=function(T,C,F,V){T=+T,C>>>=0,F>>>=0,V||b(this,T,C,F,Math.pow(2,8*F)-1,0);var K=1,W=0;for(this[C]=255&T;++W>>=0,F>>>=0,V||b(this,T,C,F,Math.pow(2,8*F)-1,0);var K=F-1,W=1;for(this[C+K]=255&T;--K>=0&&(W*=256);)this[C+K]=T/W&255;return C+F},t.prototype.writeUInt8=function(T,C,F){return T=+T,C>>>=0,F||b(this,T,C,1,255,0),this[C]=255&T,C+1},t.prototype.writeUInt16LE=function(T,C,F){return T=+T,C>>>=0,F||b(this,T,C,2,65535,0),this[C]=255&T,this[C+1]=T>>>8,C+2},t.prototype.writeUInt16BE=function(T,C,F){return T=+T,C>>>=0,F||b(this,T,C,2,65535,0),this[C]=T>>>8,this[C+1]=255&T,C+2},t.prototype.writeUInt32LE=function(T,C,F){return T=+T,C>>>=0,F||b(this,T,C,4,4294967295,0),this[C+3]=T>>>24,this[C+2]=T>>>16,this[C+1]=T>>>8,this[C]=255&T,C+4},t.prototype.writeUInt32BE=function(T,C,F){return T=+T,C>>>=0,F||b(this,T,C,4,4294967295,0),this[C]=T>>>24,this[C+1]=T>>>16,this[C+2]=T>>>8,this[C+3]=255&T,C+4},t.prototype.writeIntLE=function(T,C,F,V){if(T=+T,C>>>=0,!V){var K=Math.pow(2,8*F-1);b(this,T,C,F,K-1,-K)}var W=0,Y=1,Q=0;for(this[C]=255&T;++W>0)-Q&255;return C+F},t.prototype.writeIntBE=function(T,C,F,V){if(T=+T,C>>>=0,!V){var K=Math.pow(2,8*F-1);b(this,T,C,F,K-1,-K)}var W=F-1,Y=1,Q=0;for(this[C+W]=255&T;--W>=0&&(Y*=256);)T<0&&Q===0&&this[C+W+1]!==0&&(Q=1),this[C+W]=(T/Y>>0)-Q&255;return C+F},t.prototype.writeInt8=function(T,C,F){return T=+T,C>>>=0,F||b(this,T,C,1,127,-128),T<0&&(T=255+T+1),this[C]=255&T,C+1},t.prototype.writeInt16LE=function(T,C,F){return T=+T,C>>>=0,F||b(this,T,C,2,32767,-32768),this[C]=255&T,this[C+1]=T>>>8,C+2},t.prototype.writeInt16BE=function(T,C,F){return T=+T,C>>>=0,F||b(this,T,C,2,32767,-32768),this[C]=T>>>8,this[C+1]=255&T,C+2},t.prototype.writeInt32LE=function(T,C,F){return T=+T,C>>>=0,F||b(this,T,C,4,2147483647,-2147483648),this[C]=255&T,this[C+1]=T>>>8,this[C+2]=T>>>16,this[C+3]=T>>>24,C+4},t.prototype.writeInt32BE=function(T,C,F){return T=+T,C>>>=0,F||b(this,T,C,4,2147483647,-2147483648),T<0&&(T=4294967295+T+1),this[C]=T>>>24,this[C+1]=T>>>16,this[C+2]=T>>>8,this[C+3]=255&T,C+4},t.prototype.writeFloatLE=function(T,C,F){return y(this,T,C,!0,F)},t.prototype.writeFloatBE=function(T,C,F){return y(this,T,C,!1,F)},t.prototype.writeDoubleLE=function(T,C,F){return k(this,T,C,!0,F)},t.prototype.writeDoubleBE=function(T,C,F){return k(this,T,C,!1,F)},t.prototype.copy=function(T,C,F,V){if(!t.isBuffer(T))throw new TypeError("argument should be a Buffer");if(F||(F=0),V||V===0||(V=this.length),C>=T.length&&(C=T.length),C||(C=0),V>0&&V=this.length)throw new RangeError("Index out of range");if(V<0)throw new RangeError("sourceEnd out of bounds");V>this.length&&(V=this.length),T.length-C=0;--W)T[W+C]=this[W+F];else Uint8Array.prototype.set.call(T,this.subarray(F,V),C);return K},t.prototype.fill=function(T,C,F,V){if(typeof T=="string"){if(typeof C=="string"?(V=C,C=0,F=this.length):typeof F=="string"&&(V=F,F=this.length),V!==void 0&&typeof V!="string")throw new TypeError("encoding must be a string");if(typeof V=="string"&&!t.isEncoding(V))throw new TypeError("Unknown encoding: "+V);if(T.length===1){var K=T.charCodeAt(0);(V==="utf8"&&K<128||V==="latin1")&&(T=K)}}else typeof T=="number"&&(T&=255);if(C<0||this.length>>=0,F=F===void 0?this.length:F>>>0,T||(T=0),typeof T=="number")for(W=C;W55295&&F<57344){if(!K){if(F>56319){(C-=3)>-1&&W.push(239,191,189);continue}if(Y+1===V){(C-=3)>-1&&W.push(239,191,189);continue}K=F;continue}if(F<56320){(C-=3)>-1&&W.push(239,191,189),K=F;continue}F=65536+(K-55296<<10|F-56320)}else K&&(C-=3)>-1&&W.push(239,191,189);if(K=null,F<128){if((C-=1)<0)break;W.push(F)}else if(F<2048){if((C-=2)<0)break;W.push(F>>6|192,63&F|128)}else if(F<65536){if((C-=3)<0)break;W.push(F>>12|224,F>>6&63|128,63&F|128)}else{if(!(F<1114112))throw new Error("Invalid code point");if((C-=4)<0)break;W.push(F>>18|240,F>>12&63|128,F>>6&63|128,63&F|128)}}return W}function U(T){return o.toByteArray(function(C){if((C=(C=C.split("=")[0]).trim().replace(R,"")).length<2)return"";for(;C.length%4!=0;)C+="=";return C}(T))}function q(T,C,F,V){for(var K=0;K=C.length||K>=T.length);++K)C[K+F]=T[K];return K}function O(T,C){return T instanceof C||T!=null&&T.constructor!=null&&T.constructor.name!=null&&T.constructor.name===C.name}function H(T){return T!=T}}).call(this)}).call(this,s("buffer").Buffer)},{"base64-js":185,buffer:220,ieee754:439}],221:[function(s,E,S){var m=s("safe-buffer").Buffer,o=s("stream").Transform,a=s("string_decoder").StringDecoder;function r(t){o.call(this),this.hashMode=typeof t=="string",this.hashMode?this[t]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}s("inherits")(r,o),r.prototype.update=function(t,e,l){typeof t=="string"&&(t=m.from(t,e));var n=this._update(t);return this.hashMode?this:(l&&(n=this._toString(n,l)),n)},r.prototype.setAutoPadding=function(){},r.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},r.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},r.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},r.prototype._transform=function(t,e,l){var n;try{this.hashMode?this._update(t):this.push(this._update(t))}catch(i){n=i}finally{l(n)}},r.prototype._flush=function(t){var e;try{this.push(this.__final())}catch(l){e=l}t(e)},r.prototype._finalOrDigest=function(t){var e=this.__final()||m.alloc(0);return t&&(e=this._toString(e,t,!0)),e},r.prototype._toString=function(t,e,l){if(this._decoder||(this._decoder=new a(e),this._encoding=e),this._encoding!==e)throw new Error("can't switch encodings");var n=this._decoder.write(t);return l&&(n+=this._decoder.end()),n},E.exports=r},{inherits:440,"safe-buffer":494,stream:505,string_decoder:218}],222:[function(s,E,S){var m=s("../internals/is-callable"),o=s("../internals/try-to-string"),a=TypeError;E.exports=function(r){if(m(r))return r;throw new a(o(r)+" is not a function")}},{"../internals/is-callable":285,"../internals/try-to-string":349}],223:[function(s,E,S){var m=s("../internals/is-constructor"),o=s("../internals/try-to-string"),a=TypeError;E.exports=function(r){if(m(r))return r;throw new a(o(r)+" is not a constructor")}},{"../internals/is-constructor":286,"../internals/try-to-string":349}],224:[function(s,E,S){var m=s("../internals/is-callable"),o=String,a=TypeError;E.exports=function(r){if(typeof r=="object"||m(r))return r;throw new a("Can't set "+o(r)+" as a prototype")}},{"../internals/is-callable":285}],225:[function(s,E,S){var m=s("../internals/well-known-symbol"),o=s("../internals/object-create"),a=s("../internals/object-define-property").f,r=m("unscopables"),t=Array.prototype;t[r]===void 0&&a(t,r,{configurable:!0,value:o(null)}),E.exports=function(e){t[r][e]=!0}},{"../internals/object-create":306,"../internals/object-define-property":308,"../internals/well-known-symbol":357}],226:[function(s,E,S){var m=s("../internals/object-is-prototype-of"),o=TypeError;E.exports=function(a,r){if(m(r,a))return a;throw new o("Incorrect invocation")}},{"../internals/object-is-prototype-of":314}],227:[function(s,E,S){var m=s("../internals/is-object"),o=String,a=TypeError;E.exports=function(r){if(m(r))return r;throw new a(o(r)+" is not an object")}},{"../internals/is-object":289}],228:[function(s,E,S){var m=s("../internals/to-indexed-object"),o=s("../internals/to-absolute-index"),a=s("../internals/length-of-array-like"),r=function(t){return function(e,l,n){var i,c=m(e),h=a(c),u=o(n,h);if(t&&l!=l){for(;h>u;)if((i=c[u++])!=i)return!0}else for(;h>u;u++)if((t||u in c)&&c[u]===l)return t||u||0;return!t&&-1}};E.exports={includes:r(!0),indexOf:r(!1)}},{"../internals/length-of-array-like":299,"../internals/to-absolute-index":340,"../internals/to-indexed-object":341}],229:[function(s,E,S){var m=s("../internals/function-bind-context"),o=s("../internals/function-uncurry-this"),a=s("../internals/indexed-object"),r=s("../internals/to-object"),t=s("../internals/length-of-array-like"),e=s("../internals/array-species-create"),l=o([].push),n=function(i){var c=i===1,h=i===2,u=i===3,d=i===4,f=i===6,w=i===7,_=i===5||f;return function(A,N,L,j){for(var P,D,$=r(A),B=a($),x=m(N,L),M=t(B),v=0,p=j||e,b=c?p(A,M):h||w?p(A,0):void 0;M>v;v++)if((_||v in B)&&(D=x(P=B[v],v,$),i))if(c)b[v]=D;else if(D)switch(i){case 3:return!0;case 5:return P;case 6:return v;case 2:l(b,P)}else switch(i){case 4:return!1;case 7:l(b,P)}return f?-1:u||d?d:b}};E.exports={forEach:n(0),map:n(1),filter:n(2),some:n(3),every:n(4),find:n(5),findIndex:n(6),filterReject:n(7)}},{"../internals/array-species-create":233,"../internals/function-bind-context":262,"../internals/function-uncurry-this":268,"../internals/indexed-object":280,"../internals/length-of-array-like":299,"../internals/to-object":344}],230:[function(s,E,S){var m=s("../internals/to-absolute-index"),o=s("../internals/length-of-array-like"),a=s("../internals/create-property"),r=Array,t=Math.max;E.exports=function(e,l,n){for(var i=o(e),c=m(l,i),h=m(n===void 0?i:n,i),u=r(t(h-c,0)),d=0;c0&&m[0]<4?1:+(m[0]+m[1])),!o&&r&&(!(m=r.match(/Edge\/(\d+)/))||m[1]>=74)&&(m=r.match(/Chrome\/(\d+)/))&&(o=+m[1]),E.exports=o},{"../internals/engine-user-agent":256,"../internals/global":274}],258:[function(s,E,S){E.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],259:[function(s,E,S){var m=s("../internals/global"),o=s("../internals/object-get-own-property-descriptor").f,a=s("../internals/create-non-enumerable-property"),r=s("../internals/define-built-in"),t=s("../internals/define-global-property"),e=s("../internals/copy-constructor-properties"),l=s("../internals/is-forced");E.exports=function(n,i){var c,h,u,d,f,w=n.target,_=n.global,A=n.stat;if(c=_?m:A?m[w]||t(w,{}):(m[w]||{}).prototype)for(h in i){if(d=i[h],u=n.dontCallGetSet?(f=o(c,h))&&f.value:c[h],!l(_?h:w+(A?".":"#")+h,n.forced)&&u!==void 0){if(typeof d==typeof u)continue;e(d,u)}(n.sham||u&&u.sham)&&a(d,"sham",!0),r(c,h,d,n)}}},{"../internals/copy-constructor-properties":237,"../internals/create-non-enumerable-property":241,"../internals/define-built-in":245,"../internals/define-global-property":246,"../internals/global":274,"../internals/is-forced":287,"../internals/object-get-own-property-descriptor":309}],260:[function(s,E,S){E.exports=function(m){try{return!!m()}catch{return!0}}},{}],261:[function(s,E,S){var m=s("../internals/function-bind-native"),o=Function.prototype,a=o.apply,r=o.call;E.exports=typeof Reflect=="object"&&Reflect.apply||(m?r.bind(a):function(){return r.apply(a,arguments)})},{"../internals/function-bind-native":263}],262:[function(s,E,S){var m=s("../internals/function-uncurry-this-clause"),o=s("../internals/a-callable"),a=s("../internals/function-bind-native"),r=m(m.bind);E.exports=function(t,e){return o(t),e===void 0?t:a?r(t,e):function(){return t.apply(e,arguments)}}},{"../internals/a-callable":222,"../internals/function-bind-native":263,"../internals/function-uncurry-this-clause":267}],263:[function(s,E,S){var m=s("../internals/fails");E.exports=!m(function(){var o=function(){}.bind();return typeof o!="function"||o.hasOwnProperty("prototype")})},{"../internals/fails":260}],264:[function(s,E,S){var m=s("../internals/function-bind-native"),o=Function.prototype.call;E.exports=m?o.bind(o):function(){return o.apply(o,arguments)}},{"../internals/function-bind-native":263}],265:[function(s,E,S){var m=s("../internals/descriptors"),o=s("../internals/has-own-property"),a=Function.prototype,r=m&&Object.getOwnPropertyDescriptor,t=o(a,"name"),e=t&&function(){}.name==="something",l=t&&(!m||m&&r(a,"name").configurable);E.exports={EXISTS:t,PROPER:e,CONFIGURABLE:l}},{"../internals/descriptors":247,"../internals/has-own-property":275}],266:[function(s,E,S){var m=s("../internals/function-uncurry-this"),o=s("../internals/a-callable");E.exports=function(a,r,t){try{return m(o(Object.getOwnPropertyDescriptor(a,r)[t]))}catch{}}},{"../internals/a-callable":222,"../internals/function-uncurry-this":268}],267:[function(s,E,S){var m=s("../internals/classof-raw"),o=s("../internals/function-uncurry-this");E.exports=function(a){if(m(a)==="Function")return o(a)}},{"../internals/classof-raw":235,"../internals/function-uncurry-this":268}],268:[function(s,E,S){var m=s("../internals/function-bind-native"),o=Function.prototype,a=o.call,r=m&&o.bind.bind(a,a);E.exports=m?r:function(t){return function(){return a.apply(t,arguments)}}},{"../internals/function-bind-native":263}],269:[function(s,E,S){var m=s("../internals/global"),o=s("../internals/is-callable"),a=function(r){return o(r)?r:void 0};E.exports=function(r,t){return arguments.length<2?a(m[r]):m[r]&&m[r][t]}},{"../internals/global":274,"../internals/is-callable":285}],270:[function(s,E,S){var m=s("../internals/classof"),o=s("../internals/get-method"),a=s("../internals/is-null-or-undefined"),r=s("../internals/iterators"),t=s("../internals/well-known-symbol")("iterator");E.exports=function(e){if(!a(e))return o(e,t)||o(e,"@@iterator")||r[m(e)]}},{"../internals/classof":236,"../internals/get-method":273,"../internals/is-null-or-undefined":288,"../internals/iterators":298,"../internals/well-known-symbol":357}],271:[function(s,E,S){var m=s("../internals/function-call"),o=s("../internals/a-callable"),a=s("../internals/an-object"),r=s("../internals/try-to-string"),t=s("../internals/get-iterator-method"),e=TypeError;E.exports=function(l,n){var i=arguments.length<2?t(l):n;if(o(i))return a(m(i,l));throw new e(r(l)+" is not iterable")}},{"../internals/a-callable":222,"../internals/an-object":227,"../internals/function-call":264,"../internals/get-iterator-method":270,"../internals/try-to-string":349}],272:[function(s,E,S){var m=s("../internals/function-uncurry-this"),o=s("../internals/is-array"),a=s("../internals/is-callable"),r=s("../internals/classof-raw"),t=s("../internals/to-string"),e=m([].push);E.exports=function(l){if(a(l))return l;if(o(l)){for(var n=l.length,i=[],c=0;cL;L++)if((P=y(f[L]))&&l(d,P))return P;return new u(!1)}A=n(f,N)}for(D=M?f.next:A.next;!($=o(D,A)).done;){try{P=y($.value)}catch(k){c(A,"throw",k)}if(typeof P=="object"&&P&&l(d,P))return P}return new u(!1)}},{"../internals/an-object":227,"../internals/function-bind-context":262,"../internals/function-call":264,"../internals/get-iterator":271,"../internals/get-iterator-method":270,"../internals/is-array-iterator-method":283,"../internals/iterator-close":294,"../internals/length-of-array-like":299,"../internals/object-is-prototype-of":314,"../internals/try-to-string":349}],294:[function(s,E,S){var m=s("../internals/function-call"),o=s("../internals/an-object"),a=s("../internals/get-method");E.exports=function(r,t,e){var l,n;o(r);try{if(!(l=a(r,"return"))){if(t==="throw")throw e;return e}l=m(l,r)}catch(i){n=!0,l=i}if(t==="throw")throw e;if(n)throw l;return o(l),e}},{"../internals/an-object":227,"../internals/function-call":264,"../internals/get-method":273}],295:[function(s,E,S){var m=s("../internals/iterators-core").IteratorPrototype,o=s("../internals/object-create"),a=s("../internals/create-property-descriptor"),r=s("../internals/set-to-string-tag"),t=s("../internals/iterators"),e=function(){return this};E.exports=function(l,n,i,c){var h=n+" Iterator";return l.prototype=o(m,{next:a(+!c,i)}),r(l,h,!1,!0),t[h]=e,l}},{"../internals/create-property-descriptor":242,"../internals/iterators":298,"../internals/iterators-core":297,"../internals/object-create":306,"../internals/set-to-string-tag":331}],296:[function(s,E,S){var m=s("../internals/export"),o=s("../internals/function-call"),a=s("../internals/is-pure"),r=s("../internals/function-name"),t=s("../internals/is-callable"),e=s("../internals/iterator-create-constructor"),l=s("../internals/object-get-prototype-of"),n=s("../internals/object-set-prototype-of"),i=s("../internals/set-to-string-tag"),c=s("../internals/create-non-enumerable-property"),h=s("../internals/define-built-in"),u=s("../internals/well-known-symbol"),d=s("../internals/iterators"),f=s("../internals/iterators-core"),w=r.PROPER,_=r.CONFIGURABLE,A=f.IteratorPrototype,N=f.BUGGY_SAFARI_ITERATORS,L=u("iterator"),j=function(){return this};E.exports=function(P,D,$,B,x,M,v){e($,D,B);var p,b,g,y=function(O){if(O===x&&U)return U;if(!N&&O&&O in I)return I[O];switch(O){case"keys":case"values":case"entries":return function(){return new $(this,O)}}return function(){return new $(this)}},k=D+" Iterator",R=!1,I=P.prototype,z=I[L]||I["@@iterator"]||x&&I[x],U=!N&&z||y(x),q=D==="Array"&&I.entries||z;if(q&&(p=l(q.call(new P)))!==Object.prototype&&p.next&&(a||l(p)===A||(n?n(p,A):t(p[L])||h(p,L,j)),i(p,k,!0,!0),a&&(d[k]=j)),w&&x==="values"&&z&&z.name!=="values"&&(!a&&_?c(I,"name","values"):(R=!0,U=function(){return o(z,this)})),x)if(b={values:y("values"),keys:M?U:y("keys"),entries:y("entries")},v)for(g in b)(N||R||!(g in I))&&h(I,g,b[g]);else m({target:D,proto:!0,forced:N||R},b);return a&&!v||I[L]===U||h(I,L,U,{name:x}),d[D]=U,b}},{"../internals/create-non-enumerable-property":241,"../internals/define-built-in":245,"../internals/export":259,"../internals/function-call":264,"../internals/function-name":265,"../internals/is-callable":285,"../internals/is-pure":290,"../internals/iterator-create-constructor":295,"../internals/iterators":298,"../internals/iterators-core":297,"../internals/object-get-prototype-of":313,"../internals/object-set-prototype-of":318,"../internals/set-to-string-tag":331,"../internals/well-known-symbol":357}],297:[function(s,E,S){var m,o,a,r=s("../internals/fails"),t=s("../internals/is-callable"),e=s("../internals/is-object"),l=s("../internals/object-create"),n=s("../internals/object-get-prototype-of"),i=s("../internals/define-built-in"),c=s("../internals/well-known-symbol"),h=s("../internals/is-pure"),u=c("iterator"),d=!1;[].keys&&("next"in(a=[].keys())?(o=n(n(a)))!==Object.prototype&&(m=o):d=!0),!e(m)||r(function(){var f={};return m[u].call(f)!==f})?m={}:h&&(m=l(m)),t(m[u])||i(m,u,function(){return this}),E.exports={IteratorPrototype:m,BUGGY_SAFARI_ITERATORS:d}},{"../internals/define-built-in":245,"../internals/fails":260,"../internals/is-callable":285,"../internals/is-object":289,"../internals/is-pure":290,"../internals/object-create":306,"../internals/object-get-prototype-of":313,"../internals/well-known-symbol":357}],298:[function(s,E,S){arguments[4][276][0].apply(S,arguments)},{dup:276}],299:[function(s,E,S){var m=s("../internals/to-length");E.exports=function(o){return m(o.length)}},{"../internals/to-length":343}],300:[function(s,E,S){var m=s("../internals/function-uncurry-this"),o=s("../internals/fails"),a=s("../internals/is-callable"),r=s("../internals/has-own-property"),t=s("../internals/descriptors"),e=s("../internals/function-name").CONFIGURABLE,l=s("../internals/inspect-source"),n=s("../internals/internal-state"),i=n.enforce,c=n.get,h=String,u=Object.defineProperty,d=m("".slice),f=m("".replace),w=m([].join),_=t&&!o(function(){return u(function(){},"length",{value:8}).length!==8}),A=String(String).split("String"),N=E.exports=function(L,j,P){d(h(j),0,7)==="Symbol("&&(j="["+f(h(j),/^Symbol\(([^)]*)\)/,"$1")+"]"),P&&P.getter&&(j="get "+j),P&&P.setter&&(j="set "+j),(!r(L,"name")||e&&L.name!==j)&&(t?u(L,"name",{value:j,configurable:!0}):L.name=j),_&&P&&r(P,"arity")&&L.length!==P.arity&&u(L,"length",{value:P.arity});try{P&&r(P,"constructor")&&P.constructor?t&&u(L,"prototype",{writable:!1}):L.prototype&&(L.prototype=void 0)}catch{}var D=i(L);return r(D,"source")||(D.source=w(A,typeof j=="string"?j:"")),L};Function.prototype.toString=N(function(){return a(this)&&c(this).source||l(this)},"toString")},{"../internals/descriptors":247,"../internals/fails":260,"../internals/function-name":265,"../internals/function-uncurry-this":268,"../internals/has-own-property":275,"../internals/inspect-source":281,"../internals/internal-state":282,"../internals/is-callable":285}],301:[function(s,E,S){var m=Math.ceil,o=Math.floor;E.exports=Math.trunc||function(a){var r=+a;return(r>0?o:m)(r)}},{}],302:[function(s,E,S){var m,o,a,r,t,e=s("../internals/global"),l=s("../internals/function-bind-context"),n=s("../internals/object-get-own-property-descriptor").f,i=s("../internals/task").set,c=s("../internals/queue"),h=s("../internals/engine-is-ios"),u=s("../internals/engine-is-ios-pebble"),d=s("../internals/engine-is-webos-webkit"),f=s("../internals/engine-is-node"),w=e.MutationObserver||e.WebKitMutationObserver,_=e.document,A=e.process,N=e.Promise,L=n(e,"queueMicrotask"),j=L&&L.value;if(!j){var P=new c,D=function(){var $,B;for(f&&($=A.domain)&&$.exit();B=P.get();)try{B()}catch(x){throw P.head&&m(),x}$&&$.enter()};h||f||d||!w||!_?!u&&N&&N.resolve?((r=N.resolve(void 0)).constructor=N,t=l(r.then,r),m=function(){t(D)}):f?m=function(){A.nextTick(D)}:(i=l(i,e),m=function(){i(D)}):(o=!0,a=_.createTextNode(""),new w(D).observe(a,{characterData:!0}),m=function(){a.data=o=!o}),j=function($){P.head||m(),P.add($)}}E.exports=j},{"../internals/engine-is-ios":253,"../internals/engine-is-ios-pebble":252,"../internals/engine-is-node":254,"../internals/engine-is-webos-webkit":255,"../internals/function-bind-context":262,"../internals/global":274,"../internals/object-get-own-property-descriptor":309,"../internals/queue":328,"../internals/task":339}],303:[function(s,E,S){var m=s("../internals/a-callable"),o=TypeError,a=function(r){var t,e;this.promise=new r(function(l,n){if(t!==void 0||e!==void 0)throw new o("Bad Promise constructor");t=l,e=n}),this.resolve=m(t),this.reject=m(e)};E.exports.f=function(r){return new a(r)}},{"../internals/a-callable":222}],304:[function(s,E,S){var m=s("../internals/is-regexp"),o=TypeError;E.exports=function(a){if(m(a))throw new o("The method doesn't accept regular expressions");return a}},{"../internals/is-regexp":291}],305:[function(s,E,S){var m=s("../internals/descriptors"),o=s("../internals/function-uncurry-this"),a=s("../internals/function-call"),r=s("../internals/fails"),t=s("../internals/object-keys"),e=s("../internals/object-get-own-property-symbols"),l=s("../internals/object-property-is-enumerable"),n=s("../internals/to-object"),i=s("../internals/indexed-object"),c=Object.assign,h=Object.defineProperty,u=o([].concat);E.exports=!c||r(function(){if(m&&c({b:1},c(h({},"a",{enumerable:!0,get:function(){h(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var d={},f={},w=Symbol("assign detection");return d[w]=7,"abcdefghijklmnopqrst".split("").forEach(function(_){f[_]=_}),c({},d)[w]!==7||t(c({},f)).join("")!=="abcdefghijklmnopqrst"})?function(d,f){for(var w=n(d),_=arguments.length,A=1,N=e.f,L=l.f;_>A;)for(var j,P=i(arguments[A++]),D=N?u(t(P),N(P)):t(P),$=D.length,B=0;$>B;)j=D[B++],m&&!a(L,P,j)||(w[j]=P[j]);return w}:c},{"../internals/descriptors":247,"../internals/fails":260,"../internals/function-call":264,"../internals/function-uncurry-this":268,"../internals/indexed-object":280,"../internals/object-get-own-property-symbols":312,"../internals/object-keys":316,"../internals/object-property-is-enumerable":317,"../internals/to-object":344}],306:[function(s,E,S){var m,o=s("../internals/an-object"),a=s("../internals/object-define-properties"),r=s("../internals/enum-bug-keys"),t=s("../internals/hidden-keys"),e=s("../internals/html"),l=s("../internals/document-create-element"),n=s("../internals/shared-key"),i=n("IE_PROTO"),c=function(){},h=function(f){return"