From 0447b8a97e6908cf2395f2cfb8ed3117842b5ea1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Sko=C4=8D=C3=ADk?= Date: Tue, 16 Jan 2024 16:16:37 +0100 Subject: [PATCH] v5.2.1 --- docs/_app/immutable/assets/0.2f1f2e10.css | 1 - docs/_app/immutable/assets/0.bfb7888c.css | 1 + .../assets/SveltyPicker.60a34377.css | 1 + .../assets/SveltyPicker.c6e238a8.css | 1 - .../immutable/assets/_layout.2f1f2e10.css | 1 - .../immutable/assets/_layout.bfb7888c.css | 1 + .../chunks/{4.ae3ce863.js => 4.cfac87d8.js} | 4 +- .../immutable/chunks/Markdown.6ab83375.js | 1 + .../immutable/chunks/Markdown.9ba80254.js | 1 - .../immutable/chunks/SveltyPicker.69e34b19.js | 4 -- .../immutable/chunks/SveltyPicker.6ef9562c.js | 4 ++ ...37.js => basic-setup-BJSL5TOQ.3bdbf0b2.js} | 2 +- .../{data.96bdd225.js => data.9fbe07b0.js} | 2 +- .../{each.514658f0.js => each.31dbf577.js} | 2 +- .../{index.a81527e7.js => index.3f5bb107.js} | 2 +- .../{index.5b2a27d5.js => index.4cde5aa3.js} | 2 +- .../{index.147cc472.js => index.81a2dd23.js} | 2 +- .../{index.d6de77cf.js => index.93a0d223.js} | 2 +- .../{index.6cc8f837.js => index.9f5669ea.js} | 2 +- .../{index.0c21269a.js => index.a242dc73.js} | 2 +- docs/_app/immutable/chunks/index.a4c1e395.js | 1 + docs/_app/immutable/chunks/index.ae80b773.js | 1 - .../{index.363a4bc7.js => index.b1c4f1af.js} | 2 +- docs/_app/immutable/chunks/index.bf4ded2a.js | 4 -- .../{index.7be10aca.js => index.c6f70c56.js} | 2 +- docs/_app/immutable/chunks/index.cf31950d.js | 4 ++ .../{index.3480e68f.js => index.db8309a6.js} | 2 +- .../{index.e545d957.js => index.f562a38b.js} | 2 +- ....js => minimal-setup-Y523JPZT.80ed6916.js} | 2 +- .../{page.7b242bcf.js => page.1d064d61.js} | 2 +- .../{page.c6ce9501.js => page.23b23b85.js} | 2 +- .../{page.41ff9a24.js => page.242d2811.js} | 2 +- .../{page.38472c6d.js => page.33941c4f.js} | 2 +- .../{page.f88fb71b.js => page.5c14cbc7.js} | 2 +- .../{page.964a6cee.js => page.5c2f0afa.js} | 2 +- .../{page.9214c512.js => page.5f2a88df.js} | 2 +- .../{page.a5676280.js => page.8183975a.js} | 6 +-- .../{page.11069e80.js => page.a0172ab0.js} | 2 +- .../{page.b7be5d05.js => page.a042392f.js} | 2 +- .../{page.393f2aab.js => page.dac8ab59.js} | 2 +- ...uler.3ecd3668.js => scheduler.6381a9b9.js} | 2 +- .../immutable/chunks/singletons.52689373.js | 1 + .../immutable/chunks/singletons.6cd333b4.js | 1 - ...{stores.a33f95b2.js => stores.dfe68f11.js} | 2 +- .../{app.58842c82.js => app.19fab36e.js} | 2 +- .../{start.81e29d46.js => start.9ff1c55d.js} | 2 +- .../nodes/{0.05370f58.js => 0.1c7ca14e.js} | 2 +- .../nodes/{1.26078cad.js => 1.4cce06a5.js} | 2 +- .../nodes/{2.05461cab.js => 2.fe13ae76.js} | 2 +- docs/_app/immutable/nodes/3.24cae4c8.js | 1 + docs/_app/immutable/nodes/3.dcf18480.js | 1 - docs/_app/immutable/nodes/4.0d8571e5.js | 1 + docs/_app/immutable/nodes/4.77de847a.js | 1 - docs/_app/version.json | 2 +- docs/auto-commit.html | 34 ++++++++--------- docs/disabling-dates.html | 34 ++++++++--------- docs/events.html | 34 ++++++++--------- docs/formatting.html | 34 ++++++++--------- docs/global-config.html | 34 ++++++++--------- docs/index.html | 32 ++++++++-------- docs/localization.html | 34 ++++++++--------- docs/principles.html | 34 ++++++++--------- docs/properties.html | 34 ++++++++--------- docs/slots.html | 34 ++++++++--------- docs/test.html | 38 +++++++++---------- docs/theme.html | 34 ++++++++--------- package.json | 2 +- 67 files changed, 259 insertions(+), 259 deletions(-) delete mode 100644 docs/_app/immutable/assets/0.2f1f2e10.css create mode 100644 docs/_app/immutable/assets/0.bfb7888c.css create mode 100644 docs/_app/immutable/assets/SveltyPicker.60a34377.css delete mode 100644 docs/_app/immutable/assets/SveltyPicker.c6e238a8.css delete mode 100644 docs/_app/immutable/assets/_layout.2f1f2e10.css create mode 100644 docs/_app/immutable/assets/_layout.bfb7888c.css rename docs/_app/immutable/chunks/{4.ae3ce863.js => 4.cfac87d8.js} (99%) create mode 100644 docs/_app/immutable/chunks/Markdown.6ab83375.js delete mode 100644 docs/_app/immutable/chunks/Markdown.9ba80254.js delete mode 100644 docs/_app/immutable/chunks/SveltyPicker.69e34b19.js create mode 100644 docs/_app/immutable/chunks/SveltyPicker.6ef9562c.js rename docs/_app/immutable/chunks/{basic-setup-BJSL5TOQ.fa6d6137.js => basic-setup-BJSL5TOQ.3bdbf0b2.js} (99%) rename docs/_app/immutable/chunks/{data.96bdd225.js => data.9fbe07b0.js} (99%) rename docs/_app/immutable/chunks/{each.514658f0.js => each.31dbf577.js} (72%) rename docs/_app/immutable/chunks/{index.a81527e7.js => index.3f5bb107.js} (99%) rename docs/_app/immutable/chunks/{index.5b2a27d5.js => index.4cde5aa3.js} (99%) rename docs/_app/immutable/chunks/{index.147cc472.js => index.81a2dd23.js} (99%) rename docs/_app/immutable/chunks/{index.d6de77cf.js => index.93a0d223.js} (93%) rename docs/_app/immutable/chunks/{index.6cc8f837.js => index.9f5669ea.js} (99%) rename docs/_app/immutable/chunks/{index.0c21269a.js => index.a242dc73.js} (94%) create mode 100644 docs/_app/immutable/chunks/index.a4c1e395.js delete mode 100644 docs/_app/immutable/chunks/index.ae80b773.js rename docs/_app/immutable/chunks/{index.363a4bc7.js => index.b1c4f1af.js} (99%) delete mode 100644 docs/_app/immutable/chunks/index.bf4ded2a.js rename docs/_app/immutable/chunks/{index.7be10aca.js => index.c6f70c56.js} (99%) create mode 100644 docs/_app/immutable/chunks/index.cf31950d.js rename docs/_app/immutable/chunks/{index.3480e68f.js => index.db8309a6.js} (99%) rename docs/_app/immutable/chunks/{index.e545d957.js => index.f562a38b.js} (99%) rename docs/_app/immutable/chunks/{minimal-setup-Y523JPZT.40173fa4.js => minimal-setup-Y523JPZT.80ed6916.js} (68%) rename docs/_app/immutable/chunks/{page.7b242bcf.js => page.1d064d61.js} (98%) rename docs/_app/immutable/chunks/{page.c6ce9501.js => page.23b23b85.js} (84%) rename docs/_app/immutable/chunks/{page.41ff9a24.js => page.242d2811.js} (97%) rename docs/_app/immutable/chunks/{page.38472c6d.js => page.33941c4f.js} (96%) rename docs/_app/immutable/chunks/{page.f88fb71b.js => page.5c14cbc7.js} (94%) rename docs/_app/immutable/chunks/{page.964a6cee.js => page.5c2f0afa.js} (98%) rename docs/_app/immutable/chunks/{page.9214c512.js => page.5f2a88df.js} (94%) rename docs/_app/immutable/chunks/{page.a5676280.js => page.8183975a.js} (94%) rename docs/_app/immutable/chunks/{page.11069e80.js => page.a0172ab0.js} (95%) rename docs/_app/immutable/chunks/{page.b7be5d05.js => page.a042392f.js} (97%) rename docs/_app/immutable/chunks/{page.393f2aab.js => page.dac8ab59.js} (98%) rename docs/_app/immutable/chunks/{scheduler.3ecd3668.js => scheduler.6381a9b9.js} (99%) create mode 100644 docs/_app/immutable/chunks/singletons.52689373.js delete mode 100644 docs/_app/immutable/chunks/singletons.6cd333b4.js rename docs/_app/immutable/chunks/{stores.a33f95b2.js => stores.dfe68f11.js} (61%) rename docs/_app/immutable/entry/{app.58842c82.js => app.19fab36e.js} (70%) rename docs/_app/immutable/entry/{start.81e29d46.js => start.9ff1c55d.js} (99%) rename docs/_app/immutable/nodes/{0.05370f58.js => 0.1c7ca14e.js} (96%) rename docs/_app/immutable/nodes/{1.26078cad.js => 1.4cce06a5.js} (84%) rename docs/_app/immutable/nodes/{2.05461cab.js => 2.fe13ae76.js} (74%) create mode 100644 docs/_app/immutable/nodes/3.24cae4c8.js delete mode 100644 docs/_app/immutable/nodes/3.dcf18480.js create mode 100644 docs/_app/immutable/nodes/4.0d8571e5.js delete mode 100644 docs/_app/immutable/nodes/4.77de847a.js diff --git a/docs/_app/immutable/assets/0.2f1f2e10.css b/docs/_app/immutable/assets/0.2f1f2e10.css deleted file mode 100644 index 46fc7dd..0000000 --- a/docs/_app/immutable/assets/0.2f1f2e10.css +++ /dev/null @@ -1 +0,0 @@ -.visible{visibility:visible}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.z-10{z-index:10}.my-10{margin-top:2.5rem;margin-bottom:2.5rem}.my-4{margin-top:1rem;margin-bottom:1rem}.mt-2{margin-top:.5rem}.mt-5{margin-top:1.25rem}.block{display:block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.w-full{width:100%}.flex-1{flex:1 1 0%}.flex-auto{flex:1 1 auto}.border-collapse{border-collapse:collapse}.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))}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-stretch{align-items:stretch}.justify-end{justify-content:flex-end}.gap-10{gap:2.5rem}.gap-4{gap:1rem}.gap-8{gap:2rem}.overflow-hidden{overflow:hidden}.rounded{border-radius:.25rem}.border{border-width:1px}.p-2{padding:.5rem}.p-4{padding:1rem}.pt-5{padding-top:1.25rem}.text-center{text-align:center}.text-xl{font-size:1.25rem;line-height:1.75rem}.leading-4{line-height:1rem}.underline{text-decoration-line:underline}.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)}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{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}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}h1{font-size:var(--font-size-5);font-weight:var(--font-weight-bold);margin-bottom:var(--spacing-12)}h2{font-size:var(--font-size-4);font-weight:var(--font-weight-semibold)}body{margin:0;font-weight:var(--font-weight-normal);background-color:var(--colour-brand)}code{counter-reset:step;counter-increment:step 0}.shiki{border-radius:var(--spacing-1);padding:var(--spacing-6) var(--spacing-4);margin:var(--spacing-4) auto var(--spacing-18);box-shadow:var(--shadow-elevation-medium);overflow-x:auto;max-width:var(--max-width-full)}.highlight-line{display:inline-block;background-color:var(--colour-code-background-highlighted);width:calc(var(--max-width-full) + var(--spacing-4));border-left:var(--spacing-1) solid var(--colour-code-line-highlight);margin-left:calc(-1 * var(--spacing-1))}:root{--colour-brand: hsl(193 67% 34%);--colour-light: hsl(7 53% 97%);--colour-code-line-numbers: hsl(219 14% 71% / .8);--colour-code-line-highlight: hsl(34 96% 55%);--colour-code-background-hue: 220;--colour-code-background-saturation: 13%;--colour-code-background-lightness: 18%;--colour-code-background-highlighted: hsl( var(--colour-code-background-hue) var(--colour-code-background-saturation) calc(var(--colour-code-background-lightness) + 5%) );--spacing-px: 1px;--spacing-px-2: 2px;--spacing-0: 0;--spacing-1: .25rem;--spacing-2: .5rem;--spacing-4: 1rem;--spacing-6: 1.5rem;--spacing-12: 3rem;--spacing-18: 4.5rem;--max-width-wrapper: 48rem;--max-width-full: 100%;--font-size-root: 16px;--font-size-3: 1.563rem;--font-size-4: 1.953rem;--font-size-5: 2.441rem;--font-size-6: 3.052rem;--font-weight-normal: 400;--font-weight-semibold: 600;--font-weight-bold: 700;--line-height-normal: 1.5;--shadow-color: 194deg 84% 18%;--shadow-elevation-medium: -1px 1px 1.6px hsl(var(--shadow-color) / .36), -3.3px 3.3px 5.3px -.8px hsl(var(--shadow-color) / .36), -8.2px 8.2px 13px -1.7px hsl(var(--shadow-color) / .36), -20px 20px 31.8px -2.5px hsl(var(--shadow-color) / .36)}code .line:before{display:inline-block;content:counter(step);counter-increment:step;width:var(--spacing-6);margin-right:var(--spacing-6);text-align:right;font-variant-numeric:tabular-nums;color:var(--colour-line-numbers)}input{padding:6px;border-radius:4px}@media (min-width: 640px){.sm\:block{display:block}.sm\:inline{display:inline}}@media (min-width: 1024px){.lg\:hidden{display:none}.lg\:flex-none{flex:none}.lg\:p-10{padding:2.5rem}.lg\:text-left{text-align:left}}:root{--sk-back-h: 206;--sk-selection-color: hsla(204, 100%, 63%, .3);--sk-focus-outline: 0 0 0 2px hsla(var(--sk-theme-1-hsl), .6);--sk-theme-1: var(--sk-theme-1-hsl);--sk-theme-2: var(--sk-theme-2-hsl);--sk-theme-3: var(--sk-theme-3-hsl);--sk-text-warning: hsl(var(--sk-text-warning-hsl));--sk-nav-height: 6rem;--sk-page-padding-top: 6rem;--sk-page-padding-bottom: 6rem;--sk-page-padding-side: 2.4rem;--sk-thick-border-width: .3rem;--sk-border-radius: .4rem;--sk-page-main-width: 80rem;--sk-font: "Overpass", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;--sk-font-mono: "Fira Mono", monospace;--sk-text-xxl: 3.6rem;--sk-text-xl: 3rem;--sk-text-l: 2.4rem;--sk-text-m: 2rem;--sk-text-s: 1.6rem;--sk-text-xs: 1.3rem;--sk-line-max-width: 84rem;--m: 10px}@media only screen and (prefers-color-scheme: dark){:root{color-scheme:dark;--sk-back-1: hsl(0, 0%, 10%);--sk-back-2: hsl(0, 0%, 18%);--sk-back-3: hsl(var(--sk-back-3-hsl));--sk-back-4: hsl(0, 0%, 22%);--sk-back-5: hsl(0, 0%, 40%);--sk-back-translucent: hsla(0, 0%, 100%, .1);--sk-theme-1-hsl: hsl(38.77deg 71.8% 58.64%);--sk-theme-2-hsl: 240, 8%, 44%;--sk-theme-3-hsl: 204, 100%, 63%;--sk-text-1: hsl(0, 0%, 90%);--sk-text-2: hsl(0, 0%, 80%);--sk-text-3: hsl(0, 0%, 65%);--sk-text-4: hsl(0, 0%, 45%);--sk-text-translucent: hsla(0, 0%, 100%, .9);--sk-scrollbar: rgba(255, 255, 255, .3);--sk-back-3-hsl: 0, 0%, 14%;--sk-theme-1-variant: hsl(202, 88%, 66%);--sk-theme-2-variant: hsl(240, 8%, 35%);--sk-theme-3-variant: hsl(204, 100%, 50%);--sk-text-warning-hsl: 32, 67%, 56%;--sk-code-ts-bg: var(--sk-back-2);--sk-code-bg: var(--sk-back-3);--sk-code-base: hsl(45, 7%, 75%);--sk-code-comment: hsl(0, 0%, 55%);--sk-code-keyword: hsl(204, 88%, 65%);--sk-code-function: hsl(19, 67%, 75%);--sk-code-string: hsl(41, 37%, 68%);--sk-code-number: hsl(120, 100%, 25%);--sk-code-template-string: hsl(2, 80%, 47%);--sk-code-tags: var(--sk-code-function);--sk-code-important: var(--sk-code-string);--sk-code-diff-base: hsla(0, 0%, 100%, .5);--sk-code-diff-inserted: hsl(120, 46%, 48%);--sk-code-diff-removed: hsl(2, 64%, 70%);--toggle-dark: block;--toggle-light: none;--sdt-bg-main: #585858;--sdt-shadow-color: #333;--sdt-color: #eee;--sdt-clock-color: var(--sdt-color);--sdt-clock-color-hover: var(--sdt-color);--sdt-clock-time-bg: transparent;--sdt-clock-time-bg-hover: transparent;--sdt-clock-disabled: #b22222;--sdt-clock-disabled-bg: var(--sdt-bg-main);--sdt-clock-selected-bg: var(--sdt-bg-selected);--sdt-header-color: #eee;--sdt-bg-selected: #e1ac4a;--sdt-table-disabled-date: #b22222;--sdt-table-disabled-date-bg: var(--sdt-bg-main);--sdt-table-data-bg-hover: #777;--sdt-table-selected-bg: var(--sdt-bg-selected);--sdt-header-btn-bg-hover: #777;--sdt-color-selected: #fff;--sdt-table-today-indicator: #ccc;--sdt-clock-bg: #999;--sdt-today-bg: #e4a124;--sdt-today-color: #fff;--sdt-clear-color: #666;--sdt-clear-bg: #ddd;--sdt-clear-hover-color: #fff;--sdt-clear-hover-bg: #dc3545}html.light{color-scheme:light;--sk-back-3-hsl: 206, 64%, 98%;--sk-back-1: hsl(0, 0%, 100%);--sk-back-2: hsl(0, 0%, 100%);--sk-back-3: hsl(var(--sk-back-3-hsl));--sk-back-4: hsl(206, 44%, 93%);--sk-back-5: hsl(206, 20%, 80%);--sk-theme-1-hsl: 15, 100%, 50%;--sk-theme-2-hsl: 240, 8%, 44%;--sk-theme-3-hsl: 204, 100%, 63%;--sk-text-1: hsl(0, 0%, 13%);--sk-text-2: hsl(0, 0%, 27%);--sk-text-3: var(--sk-theme-2);--sk-text-4: hsl(0, 0%, 65%);--sk-scrollbar: rgba(0, 0, 0, .3);--sk-theme-1-variant: hsl(202, 100%, 40%);--sk-theme-2-variant: hsl(240, 8%, 44%);--sk-theme-3-variant: hsl(204, 100%, 63%);--sk-code-bg: var(--sk-back-3);--sk-code-ts-bg: var(--sk-back-1);--sk-code-base: hsl(45, 7%, 35%);--sk-code-comment: hsl(0, 0%, 41%);--sk-code-keyword: hsl(204, 88%, 35%);--sk-code-function: hsl(19, 67%, 44%);--sk-code-string: hsl(41, 37%, 38%);--sk-code-number: hsl(120, 100%, 25%);--sk-code-template-string: hsl(2, 80%, 47%);--sk-code-tags: var(--sk-code-function);--sk-code-important: var(--sk-code-string);--sk-code-diff-base: hsla(0, 0%, 0%, .6);--sk-code-diff-inserted: hsl(120, 100%, 25%);--sk-code-diff-removed: hsl(2, 80%, 47%);--sk-text-warning-hsl: 32, 95%, 44%;--sk-back-translucent: hsla(0, 0%, 0%, .1);--sk-text-translucent: hsla(0, 0%, 0%, .7);--toggle-dark: none;--toggle-light: block;--sdt-bg-main: #fff;--sdt-shadow-color: #ccc;--sdt-color: inherit;--sdt-clock-color: var(--sdt-color);--sdt-clock-color-hover: var(--sdt-color);--sdt-clock-time-bg: transparent;--sdt-clock-time-bg-hover: transparent;--sdt-clock-disabled: #b22222;--sdt-clock-disabled-bg: var(--sdt-bg-main);--sdt-header-color: #000;--sdt-bg-selected: #286090;--sdt-clock-selected-bg: var(--sdt-bg-selected);--sdt-table-disabled-date: #b22222;--sdt-table-disabled-date-bg: var(--sdt-bg-main);--sdt-table-data-bg-hover: #eee;--sdt-table-selected-bg: var(--sdt-bg-selected);--sdt-header-btn-bg-hover: #dfdfdf;--sdt-color-selected: #fff;--sdt-table-today-indicator: #ccc;--sdt-clock-bg: #eeeded;--sdt-today-bg: #1e486d;--sdt-today-color: #fff;--sdt-clear-color: #dc3545;--sdt-clear-bg: #fff;--sdt-clear-hover-color: #fff;--sdt-clear-hover-bg: #dc3545}}@media screen and (min-width: 480px){:root{--sk-page-padding-side: 3.2rem}}@media screen and (min-width: 768px){:root{--sk-text-xxl: 5.4rem;--sk-text-xl: 3.6rem;--sk-page-padding-top: 8rem;--sk-page-padding-side: 4.8rem}}@media screen and (prefers-color-scheme: light){:root{color-scheme:light;--sk-back-3-hsl: 206, 64%, 98%;--sk-back-1: hsl(0, 0%, 100%);--sk-back-2: hsl(0, 0%, 100%);--sk-back-3: hsl(var(--sk-back-3-hsl));--sk-back-4: hsl(206, 44%, 93%);--sk-back-5: hsl(206, 20%, 80%);--sk-theme-1-hsl: 15, 100%, 50%;--sk-theme-2-hsl: 240, 8%, 44%;--sk-theme-3-hsl: 204, 100%, 63%;--sk-text-1: hsl(0, 0%, 13%);--sk-text-2: hsl(0, 0%, 27%);--sk-text-3: var(--sk-theme-2);--sk-text-4: hsl(0, 0%, 65%);--sk-scrollbar: rgba(0, 0, 0, .3);--sk-theme-1-variant: hsl(202, 100%, 40%);--sk-theme-2-variant: hsl(240, 8%, 44%);--sk-theme-3-variant: hsl(204, 100%, 63%);--sk-code-bg: var(--sk-back-3);--sk-code-ts-bg: var(--sk-back-1);--sk-code-base: hsl(45, 7%, 35%);--sk-code-comment: hsl(0, 0%, 41%);--sk-code-keyword: hsl(204, 88%, 35%);--sk-code-function: hsl(19, 67%, 44%);--sk-code-string: hsl(41, 37%, 38%);--sk-code-number: hsl(120, 100%, 25%);--sk-code-template-string: hsl(2, 80%, 47%);--sk-code-tags: var(--sk-code-function);--sk-code-important: var(--sk-code-string);--sk-code-diff-base: hsla(0, 0%, 0%, .4);--sk-code-diff-inserted: hsl(120, 100%, 25%);--sk-code-diff-removed: hsl(2, 80%, 47%);--sk-text-warning-hsl: 32, 95%, 44%;--sk-back-translucent: hsla(0, 0%, 0%, .1);--sk-text-translucent: hsla(0, 0%, 0%, .7);--toggle-dark: none;--toggle-light: block;--sdt-bg-main: #fff;--sdt-shadow-color: #ccc;--sdt-color: inherit;--sdt-clock-color: var(--sdt-color);--sdt-clock-color-hover: var(--sdt-color);--sdt-clock-time-bg: transparent;--sdt-clock-time-bg-hover: transparent;--sdt-clock-disabled: #b22222;--sdt-clock-disabled-bg: var(--sdt-bg-main);--sdt-header-color: inherit;--sdt-bg-selected: #286090;--sdt-clock-selected-bg: var(--sdt-bg-selected);--sdt-table-disabled-date: #b22222;--sdt-table-disabled-date-bg: var(--sdt-bg-main);--sdt-table-data-bg-hover: #eee;--sdt-table-selected-bg: var(--sdt-bg-selected);--sdt-header-btn-bg-hover: #dfdfdf;--sdt-color-selected: #fff;--sdt-table-today-indicator: #ccc;--sdt-clock-bg: #eeeded;--sdt-today-bg: #1e486d;--sdt-today-color: #fff;--sdt-clear-color: #dc3545;--sdt-clear-bg: #fff;--sdt-clear-hover-color: #fff;--sdt-clear-hover-bg: #dc3545}html.dark{color-scheme:dark;--sk-back-1: hsl(0, 0%, 10%);--sk-back-2: hsl(0, 0%, 18%);--sk-back-3: hsl(var(--sk-back-3-hsl));--sk-back-4: hsl(0, 0%, 22%);--sk-back-5: hsl(0, 0%, 40%);--sk-back-translucent: hsla(0, 0%, 100%, .1);--sk-theme-1-hsl: 15, 100%, 55%;--sk-theme-2-hsl: 240, 8%, 44%;--sk-theme-3-hsl: 204, 100%, 63%;--sk-text-1: hsl(0, 0%, 90%);--sk-text-2: hsl(0, 0%, 80%);--sk-text-3: hsl(0, 0%, 65%);--sk-text-4: hsl(0, 0%, 45%);--sk-text-translucent: hsla(0, 0%, 100%, .9);--sk-scrollbar: rgba(255, 255, 255, .3);--sk-back-3-hsl: 0, 0%, 14%;--sk-theme-1-variant: hsl(202, 100%, 40%);--sk-theme-2-variant: hsl(240, 8%, 35%);--sk-theme-3-variant: hsl(204, 100%, 50%);--sk-text-warning-hsl: 32, 67%, 56%;--sk-code-ts-bg: var(--sk-back-2);--sk-code-bg: var(--sk-back-3);--sk-code-base: hsl(45, 7%, 75%);--sk-code-comment: hsl(0, 0%, 55%);--sk-code-keyword: hsl(204, 88%, 65%);--sk-code-function: hsl(19, 67%, 75%);--sk-code-string: hsl(41, 37%, 68%);--sk-code-number: hsl(120, 100%, 25%);--sk-code-template-string: hsl(2, 80%, 47%);--sk-code-tags: var(--sk-code-function);--sk-code-important: var(--sk-code-string);--sk-code-diff-base: hsla(0, 0%, 100%, .5);--sk-code-diff-inserted: hsl(120, 46%, 48%);--sk-code-diff-removed: hsl(2, 64%, 70%);--toggle-dark: block;--toggle-light: none;--sdt-bg-main: #585858;--sdt-shadow-color: #ccc;--sdt-color: #eee;--sdt-clock-color: var(--sdt-color);--sdt-clock-color-hover: var(--sdt-color);--sdt-clock-time-bg: transparent;--sdt-clock-time-bg-hover: transparent;--sdt-clock-disabled: #b22222;--sdt-clock-disabled-bg: var(--sdt-bg-main);--sdt-header-color: #eee;--sdt-bg-selected: #126cbb;--sdt-clock-selected-bg: var(--sdt-bg-selected);--sdt-table-disabled-date: #b22222;--sdt-table-disabled-date-bg: var(--sdt-bg-main);--sdt-table-data-bg-hover: #777;--sdt-table-selected-bg: var(--sdt-bg-selected);--sdt-header-btn-bg-hover: #777;--sdt-color-selected: #fff;--sdt-table-today-indicator: #ccc;--sdt-clock-bg: #999;--sdt-today-bg: #1e486d;--sdt-today-color: #fff;--sdt-clear-color: #666;--sdt-clear-bg: #ddd;--sdt-clear-hover-color: #fff;--sdt-clear-hover-bg: #dc3545}}.light-toggle{display:var(--toggle-light)}.dark-toggle{display:var(--toggle-dark)}@font-face{font-family:Overpass;font-style:normal;font-weight:300;src:local("Overpass Light "),local("Overpass-Light"),url(/svelty-picker/_app/immutable/assets/overpass-latin-300.3782c01a.woff2) format("woff2")}@font-face{font-family:Overpass;font-style:normal;font-weight:600;src:local("Overpass Bold "),local("Overpass-Bold"),url(/svelty-picker/_app/immutable/assets/overpass-latin-600.0ca25556.woff2) format("woff2")}@font-face{font-family:Fira Mono;font-style:normal;font-weight:400;src:local("Fira Mono Regular "),local("Fira Mono-Regular"),url(/svelty-picker/_app/immutable/assets/fira-mono-latin-400.8d4e0c52.woff2) format("woff2")}html{font-size:62.5%;-webkit-text-size-adjust:100%;-ms-overflow-style:-ms-autohiding-scrollbar;box-sizing:border-box;border-collapse:collapse}body{font-size:1.6rem;font-family:var(--sk-font);line-height:1.618;color:var(--sk-text-2);background-color:var(--sk-back-1);width:100%;-o-tab-size:2;tab-size:2;-moz-tab-size:2}*{box-sizing:inherit;margin:0;padding:0;scrollbar-width:thin;scrollbar-color:var(--sk-scrollbar) transparent;-webkit-overflow-scrolling:touch}*:focus-visible{outline:2px solid hsla(var(--sk-theme-1-hsl),.6);transition:.1s ease}p,ul,ol{margin:1em 0}a{position:relative;text-decoration:none;cursor:pointer;color:inherit}a:hover{text-decoration:underline}h6{font-size:var(--sk-text-xs)}h5,h4{font-size:var(--sk-text-s)}h3{font-size:var(--sk-text-m)}h2{font-size:var(--sk-text-l)}h1{font-size:var(--sk-text-xxl)}h1,h2,h3,h4,h5,h6{position:relative;font-weight:400;line-height:1.35;color:var(--sk-text-1)}strong{font-weight:600}code,kbd{font-size:var(--sk-text-xs);font-family:var(--sk-font-mono);line-height:1.7}code{position:relative;border-radius:.3em;white-space:nowrap;color:var(--sk-text-2);-webkit-font-smoothing:initial;padding:.4rem;margin:0 .2rem;top:-.1rem;background:var(--sk-back-4)}pre{overflow-x:auto}pre code{white-space:inherit;background-color:transparent;padding:0;margin:0;top:0;background:transparent}::-moz-selection{background:var(--sk-selection-color)}::selection{background:var(--sk-selection-color)}blockquote{position:relative;margin:1.6rem 0 2.4rem;padding:2rem 2.4rem 1.8rem;max-width:var(--sk-line-max-width)}blockquote p,blockquote ul{font-size:var(--sk-text-s)}blockquote :last-child{margin:0}button{font-family:inherit;font-size:inherit;background-color:transparent;border:none;color:currentColor;cursor:pointer}button[disabled]{opacity:.55;pointer-events:none}button>svg{position:relative;top:-.1rem;width:2rem!important;height:2rem!important;stroke:currentColor!important}a{position:relative;padding:0 0 1px;color:var(--sk-theme-1);color:color-mix(in hwb,var(--sk-theme-1) 100%,var(--sk-text-1) 25%)}table{width:100%;font-size:var(--sk-text-s)}td,th{text-align:left;border-bottom:1px solid #eee;padding:.4rem .8rem .4rem 0}table code,table span{white-space:pre}figcaption,.post aside{max-width:none;margin:0 auto;padding:1.6rem 0 0 .8rem;font:1.2rem/1.6 var(--sk-font-mono)}.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}.text h2{margin-top:7rem;border-bottom:1px solid var(--sk-back-4)}.text h3{margin-top:5rem}.text p,.text ol,.text ul{margin:1em 0}.text section{max-width:var(--sk-line-max-width);padding:0 0 0 1rem}.text section h2,.text section h3,.text section h4{margin-left:-1rem}.text code{padding:.2rem .4rem;margin:0 .2rem;top:-.1rem;background:var(--sk-back-4)}.text .code-block{position:relative}.text pre{margin:1em 0;width:100%;padding:1rem;box-shadow:inset 1px 1px 6px #1d56800f;box-sizing:border-box;background-color:var(--sk-code-bg);color:var(--sk-code-base);border-radius:var(--sk-border-radius);font-size:var(--sk-text-s);overflow-x:auto}.text pre code{padding:0;margin:0;top:0;background:transparent}.text p code{max-width:100%;display:inline-flex;overflow-x:auto;padding-top:0;padding-bottom:0}.text .code-block .filename{content:attr(data-file);display:block;width:100%;font-family:var(--sk-font-mono);font-size:1.2rem;font-weight:400;padding:1rem 1rem .8rem;color:var(--sk-text-2);background:var(--sk-back-4);border-radius:var(--sk-border-radius) var(--sk-border-radius) 0 0;box-sizing:border-box}.text .code-block pre{margin-top:0;border-radius:0 0 var(--sk-border-radius) var(--sk-border-radius)}.text a:where(:not(.permalink)){--color: hsla(var(--primary-hsl, var(--sk-theme-1-hsl)));color:var(--color);box-shadow:inset 0 -1px 0 0 var(--color);transition:box-shadow .1s ease-in-out}.text a:where(:not(.permalink)):hover{text-decoration:none;box-shadow:inset 0 -2px 0 0 var(--color)}.text a:where(:not(.permalink)) code{all:unset!important;color:inherit;background-color:transparent!important}.text pre a:hover{border-bottom:1px solid var(--sk-theme-1);text-decoration:none!important}.text pre.border{border-left:5px solid var(--sk-theme-2)}.text pre.language-diff code{color:var(--sk-code-diff-base)}.language-diff .inserted,.language-diff .deleted{position:relative}.language-diff .inserted{color:var(--sk-code-diff-inserted)}.language-diff .deleted{color:var(--sk-code-diff-removed);-webkit-user-select:none;-moz-user-select:none;user-select:none}.language-diff .inserted:before,.language-diff .deleted:before{position:absolute;left:-.6rem;top:-.2rem;font-size:1.2rem}.language-diff .inserted:before{content:"+"}.language-diff .deleted:before{content:"-"}.token.comment.wrapped{display:block;white-space:pre-wrap;padding-left:calc(var(--indent) + 2ch);text-indent:calc(-1 * var(--indent) - 2ch);min-height:1.35em}.api-section{background:var(--sk-back-4);padding:1rem;margin-bottom:1rem;max-width:var(--sk-line-max-width);border-radius:var(--sk-border-radius)}.ts-block{margin:1em 0;max-width:var(--sk-line-max-width);background:var(--sk-code-ts-bg);border-radius:var(--sk-border-radius);filter:drop-shadow(2px 2px 8px rgba(0,0,0,.08));overflow:hidden}.ts-block>pre{--shiki-color-background: var(--sk-code-ts-bg);margin:0;border-radius:0;box-shadow:none;background:var(--sk-code-ts-bg)}.ts-block .ts-block-property p,.ts-block-property pre{margin:1rem 0}.ts-block-property>pre{margin:0;padding-left:1rem;border-radius:0;box-shadow:none;border-top:1px solid var(--sk-back-4)}.ts-block-property-details{padding:0 1rem 0 2rem}.ts-block-property-details blockquote{margin:1rem 0}.ts-block-property-children{margin:0rem -1rem 0rem 1rem}.ts-block-property-bullets .tag{font-size:1.4rem;text-transform:uppercase;color:#666}.ts-block-property ul:last-child{margin-bottom:0}.text [id]{scroll-margin-top:calc(var(--sk-nav-height) + 4rem)}.text a.permalink{position:absolute!important;display:block;background:url(../icons/link.svg) 0 50% no-repeat;background-size:1em 1em;width:1.4em;height:1em;left:-1.3em;opacity:0;transition:opacity .2s;bottom:.25em}@media (min-width: 768px){.text a.permalink:focus,.text h2:hover a.permalink,.text h3:hover a.permalink,.text h4:hover a.permalink,.text h5:hover a.permalink,.text h6:hover a.permalink{opacity:1}}@media (max-width: 768px){.text a.permalink{transform:scale(.6);opacity:1;left:-1em}}.text ol,.text ul{--list-padding: 3rem;margin-left:var(--list-padding)}.text ul{list-style:none}.text ol{list-style:decimal}.text li{position:relative;max-width:calc(var(--sk-line-max-width) - var(--list-padding));line-height:1.5;margin:0 0 .5em}.text ul li:before{content:"";position:absolute;margin-top:.8rem;margin-left:-1.8rem;background-color:var(--sk-back-5);width:.6rem;height:.6rem;border-radius:2px;opacity:.7}.text table{margin:1em 0}.text small{font-size:var(--sk-text-s);float:right;pointer-events:all;color:var(--sk-theme-1);cursor:pointer}.text blockquote{--primary-hsl: var(--sk-theme-1-hsl);background-color:hsla(var(--primary-hsl),.02);color:var(--sk-text-1);border:1px solid hsl(var(--primary-hsl));border-radius:var(--sk-border-radius);padding:1rem;filter:drop-shadow(2px 2px 6px hsla(var(--primary-hsl),.2))}.text blockquote:before{content:"note";display:block;font-size:1.2rem;font-weight:600;text-transform:uppercase;color:hsl(var(--primary-hsl));margin-bottom:.5rem}.text blockquote :first-child{margin-top:0}.text blockquote :last-child{margin-bottom:0}.text blockquote.deprecated{--primary-hsl: var(--sk-text-warning-hsl)}.text blockquote.deprecated:before{content:"Deprecated"}.text section a:hover{text-decoration:underline}.text section a code{color:inherit;background:rgba(255,62,0,.1)!important}.text ul ul{margin-bottom:0}body{--shiki-color-text: var(--sk-code-base);--shiki-color-background: var(--sk-back-3);--shiki-token-constant: var(--sk-code-base);--shiki-token-string: var(--sk-code-string);--shiki-token-comment: var(--sk-code-comment);--shiki-token-keyword: var(--sk-code-keyword);--shiki-token-parameter: var(--sk-code-base);--shiki-token-function: var(--sk-code-function);--shiki-token-string-expression: var(--sk-code-string);--shiki-token-punctuation: var(--sk-code-base);--shiki-token-link: var(--sk-code-keyword)}.token{color:var(--sk-code-base)}.token.tag,.token.attr-value .attr-equals{color:var(--sk-code-function)}.token.string,.token.interpolation-punctuation,.token.attr-value,.token.inserted{color:var(--sk-code-string)}.token.builtin,.token.function{color:var(--sk-code-function)}.token.keyword,.token.boolean{color:var(--sk-code-keyword)}.token.comment{color:var(--sk-code-comment)}.token.deleted{color:#fc9b9b}.token.template-string .interpolation-punctuation,.token.template-string .string{color:var(--sk-code-template-string)}.language-id,pre.twoslash .error,pre.twoslash .error-behind{display:none}pre.twoslash data-lsp{transition:border-color .3s;border-bottom:1px dotted transparent}pre.twoslash:hover data-lsp{border-color:var(--sk-back-5)}.flex{display:flex;gap:16px}.inline-flex{display:inline-flex;gap:8px}.items-center{align-items:center}.toc.svelte-1iuyc2v.svelte-1iuyc2v{padding-left:0}.toc.svelte-1iuyc2v li.svelte-1iuyc2v{display:block;line-height:1.2;margin:0 0 1em}div.svelte-1iuyc2v.svelte-1iuyc2v{display:flex;flex-direction:row;padding:.2rem 3rem;margin:0 -3rem}div.active.svelte-1iuyc2v.svelte-1iuyc2v{color:#fff;text-decoration:underline}a.svelte-1iuyc2v.svelte-1iuyc2v{display:flex;flex:1 1 auto;position:relative;color:var(--sk-text-2);border-bottom:none;font-size:1.6rem;align-items:center;justify-content:flex-start;padding:0}div.active.svelte-1iuyc2v a.svelte-1iuyc2v{color:orange}a.svelte-1iuyc2v.svelte-1iuyc2v:hover{color:var(--sk-text-1)}.svelte-progress-bar.svelte-1rjlpd{position:fixed;top:0;left:0;height:3px;transition:width .21s ease-in-out}.svelte-progress-bar-hiding.svelte-1rjlpd{transition:top .8s ease;top:-8px}.svelte-progress-bar-leader.svelte-1rjlpd{position:absolute;top:0;right:0;height:5px;width:100px;transform:rotate(2.5deg) translateY(-4px);box-shadow:0 0 8px}.theme-toggle.svelte-13r8zzi>svg.svelte-13r8zzi{width:32px;height:32px}aside.svelte-1tdygp0{padding:32px;background-color:var(--sk-back-1);transition:transform .3s ease-in-out,box-shadow .3s ease-in-out}aside.opened.svelte-1tdygp0{transform:translate(0)}@media screen and (max-width: 1023px){aside.svelte-1tdygp0{z-index:15;top:0;position:absolute;transform:translate(-100%);bottom:0;overflow-y:auto}aside.opened.svelte-1tdygp0{box-shadow:0 20px 20px #ccc}}main.svelte-1tdygp0{flex:1 1 0}.home-link.svelte-1tdygp0{font-size:24px;font-weight:700}.header.svelte-1tdygp0{padding:16px;justify-content:space-between;border-bottom:2px solid var(--sk-back-3)}.fullbody.svelte-1tdygp0{min-height:100vh;display:flex;flex-flow:column} diff --git a/docs/_app/immutable/assets/0.bfb7888c.css b/docs/_app/immutable/assets/0.bfb7888c.css new file mode 100644 index 0000000..6dca998 --- /dev/null +++ b/docs/_app/immutable/assets/0.bfb7888c.css @@ -0,0 +1 @@ +.visible{visibility:visible}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.z-10{z-index:10}.my-10{margin-top:2.5rem;margin-bottom:2.5rem}.my-4{margin-top:1rem;margin-bottom:1rem}.mt-2{margin-top:.5rem}.block{display:block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.w-full{width:100%}.flex-1{flex:1 1 0%}.flex-auto{flex:1 1 auto}.border-collapse{border-collapse:collapse}.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))}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-stretch{align-items:stretch}.justify-end{justify-content:flex-end}.gap-10{gap:2.5rem}.gap-4{gap:1rem}.gap-8{gap:2rem}.border{border-width:1px}.p-2{padding:.5rem}.p-4{padding:1rem}.text-center{text-align:center}.text-xl{font-size:1.25rem;line-height:1.75rem}.leading-4{line-height:1rem}.underline{text-decoration-line:underline}.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)}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{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}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}h1{font-size:var(--font-size-5);font-weight:var(--font-weight-bold);margin-bottom:var(--spacing-12)}h2{font-size:var(--font-size-4);font-weight:var(--font-weight-semibold)}body{margin:0;font-weight:var(--font-weight-normal);background-color:var(--colour-brand)}code{counter-reset:step;counter-increment:step 0}.shiki{border-radius:var(--spacing-1);padding:var(--spacing-6) var(--spacing-4);margin:var(--spacing-4) auto var(--spacing-18);box-shadow:var(--shadow-elevation-medium);overflow-x:auto;max-width:var(--max-width-full)}.highlight-line{display:inline-block;background-color:var(--colour-code-background-highlighted);width:calc(var(--max-width-full) + var(--spacing-4));border-left:var(--spacing-1) solid var(--colour-code-line-highlight);margin-left:calc(-1 * var(--spacing-1))}:root{--colour-brand: hsl(193 67% 34%);--colour-light: hsl(7 53% 97%);--colour-code-line-numbers: hsl(219 14% 71% / .8);--colour-code-line-highlight: hsl(34 96% 55%);--colour-code-background-hue: 220;--colour-code-background-saturation: 13%;--colour-code-background-lightness: 18%;--colour-code-background-highlighted: hsl( var(--colour-code-background-hue) var(--colour-code-background-saturation) calc(var(--colour-code-background-lightness) + 5%) );--spacing-px: 1px;--spacing-px-2: 2px;--spacing-0: 0;--spacing-1: .25rem;--spacing-2: .5rem;--spacing-4: 1rem;--spacing-6: 1.5rem;--spacing-12: 3rem;--spacing-18: 4.5rem;--max-width-wrapper: 48rem;--max-width-full: 100%;--font-size-root: 16px;--font-size-3: 1.563rem;--font-size-4: 1.953rem;--font-size-5: 2.441rem;--font-size-6: 3.052rem;--font-weight-normal: 400;--font-weight-semibold: 600;--font-weight-bold: 700;--line-height-normal: 1.5;--shadow-color: 194deg 84% 18%;--shadow-elevation-medium: -1px 1px 1.6px hsl(var(--shadow-color) / .36), -3.3px 3.3px 5.3px -.8px hsl(var(--shadow-color) / .36), -8.2px 8.2px 13px -1.7px hsl(var(--shadow-color) / .36), -20px 20px 31.8px -2.5px hsl(var(--shadow-color) / .36)}code .line:before{display:inline-block;content:counter(step);counter-increment:step;width:var(--spacing-6);margin-right:var(--spacing-6);text-align:right;font-variant-numeric:tabular-nums;color:var(--colour-line-numbers)}input{padding:6px;border-radius:4px}@media (min-width: 640px){.sm\:block{display:block}.sm\:inline{display:inline}}@media (min-width: 1024px){.lg\:hidden{display:none}.lg\:flex-none{flex:none}.lg\:p-10{padding:2.5rem}.lg\:text-left{text-align:left}}:root{--sk-back-h: 206;--sk-selection-color: hsla(204, 100%, 63%, .3);--sk-focus-outline: 0 0 0 2px hsla(var(--sk-theme-1-hsl), .6);--sk-theme-1: var(--sk-theme-1-hsl);--sk-theme-2: var(--sk-theme-2-hsl);--sk-theme-3: var(--sk-theme-3-hsl);--sk-text-warning: hsl(var(--sk-text-warning-hsl));--sk-nav-height: 6rem;--sk-page-padding-top: 6rem;--sk-page-padding-bottom: 6rem;--sk-page-padding-side: 2.4rem;--sk-thick-border-width: .3rem;--sk-border-radius: .4rem;--sk-page-main-width: 80rem;--sk-font: "Overpass", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;--sk-font-mono: "Fira Mono", monospace;--sk-text-xxl: 3.6rem;--sk-text-xl: 3rem;--sk-text-l: 2.4rem;--sk-text-m: 2rem;--sk-text-s: 1.6rem;--sk-text-xs: 1.3rem;--sk-line-max-width: 84rem;--m: 10px}@media only screen and (prefers-color-scheme: dark){:root{color-scheme:dark;--sk-back-1: hsl(0, 0%, 10%);--sk-back-2: hsl(0, 0%, 18%);--sk-back-3: hsl(var(--sk-back-3-hsl));--sk-back-4: hsl(0, 0%, 22%);--sk-back-5: hsl(0, 0%, 40%);--sk-back-translucent: hsla(0, 0%, 100%, .1);--sk-theme-1-hsl: hsl(38.77deg 71.8% 58.64%);--sk-theme-2-hsl: 240, 8%, 44%;--sk-theme-3-hsl: 204, 100%, 63%;--sk-text-1: hsl(0, 0%, 90%);--sk-text-2: hsl(0, 0%, 80%);--sk-text-3: hsl(0, 0%, 65%);--sk-text-4: hsl(0, 0%, 45%);--sk-text-translucent: hsla(0, 0%, 100%, .9);--sk-scrollbar: rgba(255, 255, 255, .3);--sk-back-3-hsl: 0, 0%, 14%;--sk-theme-1-variant: hsl(202, 88%, 66%);--sk-theme-2-variant: hsl(240, 8%, 35%);--sk-theme-3-variant: hsl(204, 100%, 50%);--sk-text-warning-hsl: 32, 67%, 56%;--sk-code-ts-bg: var(--sk-back-2);--sk-code-bg: var(--sk-back-3);--sk-code-base: hsl(45, 7%, 75%);--sk-code-comment: hsl(0, 0%, 55%);--sk-code-keyword: hsl(204, 88%, 65%);--sk-code-function: hsl(19, 67%, 75%);--sk-code-string: hsl(41, 37%, 68%);--sk-code-number: hsl(120, 100%, 25%);--sk-code-template-string: hsl(2, 80%, 47%);--sk-code-tags: var(--sk-code-function);--sk-code-important: var(--sk-code-string);--sk-code-diff-base: hsla(0, 0%, 100%, .5);--sk-code-diff-inserted: hsl(120, 46%, 48%);--sk-code-diff-removed: hsl(2, 64%, 70%);--toggle-dark: block;--toggle-light: none;--sdt-bg-main: #585858;--sdt-shadow-color: #333;--sdt-color: #eee;--sdt-clock-color: var(--sdt-color);--sdt-clock-color-hover: var(--sdt-color);--sdt-clock-time-bg: transparent;--sdt-clock-time-bg-hover: transparent;--sdt-clock-disabled: #b22222;--sdt-clock-disabled-bg: var(--sdt-bg-main);--sdt-clock-selected-bg: var(--sdt-bg-selected);--sdt-header-color: #eee;--sdt-bg-selected: #e1ac4a;--sdt-table-disabled-date: #b22222;--sdt-table-disabled-date-bg: var(--sdt-bg-main);--sdt-table-data-bg-hover: #777;--sdt-table-selected-bg: var(--sdt-bg-selected);--sdt-header-btn-bg-hover: #777;--sdt-color-selected: #fff;--sdt-table-today-indicator: #ccc;--sdt-clock-bg: #999;--sdt-today-bg: #e4a124;--sdt-today-color: #fff;--sdt-clear-color: #666;--sdt-clear-bg: #ddd;--sdt-clear-hover-color: #fff;--sdt-clear-hover-bg: #dc3545}html.light{color-scheme:light;--sk-back-3-hsl: 206, 64%, 98%;--sk-back-1: hsl(0, 0%, 100%);--sk-back-2: hsl(0, 0%, 100%);--sk-back-3: hsl(var(--sk-back-3-hsl));--sk-back-4: hsl(206, 44%, 93%);--sk-back-5: hsl(206, 20%, 80%);--sk-theme-1-hsl: 15, 100%, 50%;--sk-theme-2-hsl: 240, 8%, 44%;--sk-theme-3-hsl: 204, 100%, 63%;--sk-text-1: hsl(0, 0%, 13%);--sk-text-2: hsl(0, 0%, 27%);--sk-text-3: var(--sk-theme-2);--sk-text-4: hsl(0, 0%, 65%);--sk-scrollbar: rgba(0, 0, 0, .3);--sk-theme-1-variant: hsl(202, 100%, 40%);--sk-theme-2-variant: hsl(240, 8%, 44%);--sk-theme-3-variant: hsl(204, 100%, 63%);--sk-code-bg: var(--sk-back-3);--sk-code-ts-bg: var(--sk-back-1);--sk-code-base: hsl(45, 7%, 35%);--sk-code-comment: hsl(0, 0%, 41%);--sk-code-keyword: hsl(204, 88%, 35%);--sk-code-function: hsl(19, 67%, 44%);--sk-code-string: hsl(41, 37%, 38%);--sk-code-number: hsl(120, 100%, 25%);--sk-code-template-string: hsl(2, 80%, 47%);--sk-code-tags: var(--sk-code-function);--sk-code-important: var(--sk-code-string);--sk-code-diff-base: hsla(0, 0%, 0%, .6);--sk-code-diff-inserted: hsl(120, 100%, 25%);--sk-code-diff-removed: hsl(2, 80%, 47%);--sk-text-warning-hsl: 32, 95%, 44%;--sk-back-translucent: hsla(0, 0%, 0%, .1);--sk-text-translucent: hsla(0, 0%, 0%, .7);--toggle-dark: none;--toggle-light: block;--sdt-bg-main: #fff;--sdt-shadow-color: #ccc;--sdt-color: inherit;--sdt-clock-color: var(--sdt-color);--sdt-clock-color-hover: var(--sdt-color);--sdt-clock-time-bg: transparent;--sdt-clock-time-bg-hover: transparent;--sdt-clock-disabled: #b22222;--sdt-clock-disabled-bg: var(--sdt-bg-main);--sdt-header-color: #000;--sdt-bg-selected: #286090;--sdt-clock-selected-bg: var(--sdt-bg-selected);--sdt-table-disabled-date: #b22222;--sdt-table-disabled-date-bg: var(--sdt-bg-main);--sdt-table-data-bg-hover: #eee;--sdt-table-selected-bg: var(--sdt-bg-selected);--sdt-header-btn-bg-hover: #dfdfdf;--sdt-color-selected: #fff;--sdt-table-today-indicator: #ccc;--sdt-clock-bg: #eeeded;--sdt-today-bg: #1e486d;--sdt-today-color: #fff;--sdt-clear-color: #dc3545;--sdt-clear-bg: #fff;--sdt-clear-hover-color: #fff;--sdt-clear-hover-bg: #dc3545}}@media screen and (min-width: 480px){:root{--sk-page-padding-side: 3.2rem}}@media screen and (min-width: 768px){:root{--sk-text-xxl: 5.4rem;--sk-text-xl: 3.6rem;--sk-page-padding-top: 8rem;--sk-page-padding-side: 4.8rem}}@media screen and (prefers-color-scheme: light){:root{color-scheme:light;--sk-back-3-hsl: 206, 64%, 98%;--sk-back-1: hsl(0, 0%, 100%);--sk-back-2: hsl(0, 0%, 100%);--sk-back-3: hsl(var(--sk-back-3-hsl));--sk-back-4: hsl(206, 44%, 93%);--sk-back-5: hsl(206, 20%, 80%);--sk-theme-1-hsl: 15, 100%, 50%;--sk-theme-2-hsl: 240, 8%, 44%;--sk-theme-3-hsl: 204, 100%, 63%;--sk-text-1: hsl(0, 0%, 13%);--sk-text-2: hsl(0, 0%, 27%);--sk-text-3: var(--sk-theme-2);--sk-text-4: hsl(0, 0%, 65%);--sk-scrollbar: rgba(0, 0, 0, .3);--sk-theme-1-variant: hsl(202, 100%, 40%);--sk-theme-2-variant: hsl(240, 8%, 44%);--sk-theme-3-variant: hsl(204, 100%, 63%);--sk-code-bg: var(--sk-back-3);--sk-code-ts-bg: var(--sk-back-1);--sk-code-base: hsl(45, 7%, 35%);--sk-code-comment: hsl(0, 0%, 41%);--sk-code-keyword: hsl(204, 88%, 35%);--sk-code-function: hsl(19, 67%, 44%);--sk-code-string: hsl(41, 37%, 38%);--sk-code-number: hsl(120, 100%, 25%);--sk-code-template-string: hsl(2, 80%, 47%);--sk-code-tags: var(--sk-code-function);--sk-code-important: var(--sk-code-string);--sk-code-diff-base: hsla(0, 0%, 0%, .4);--sk-code-diff-inserted: hsl(120, 100%, 25%);--sk-code-diff-removed: hsl(2, 80%, 47%);--sk-text-warning-hsl: 32, 95%, 44%;--sk-back-translucent: hsla(0, 0%, 0%, .1);--sk-text-translucent: hsla(0, 0%, 0%, .7);--toggle-dark: none;--toggle-light: block;--sdt-bg-main: #fff;--sdt-shadow-color: #ccc;--sdt-color: inherit;--sdt-clock-color: var(--sdt-color);--sdt-clock-color-hover: var(--sdt-color);--sdt-clock-time-bg: transparent;--sdt-clock-time-bg-hover: transparent;--sdt-clock-disabled: #b22222;--sdt-clock-disabled-bg: var(--sdt-bg-main);--sdt-header-color: inherit;--sdt-bg-selected: #286090;--sdt-clock-selected-bg: var(--sdt-bg-selected);--sdt-table-disabled-date: #b22222;--sdt-table-disabled-date-bg: var(--sdt-bg-main);--sdt-table-data-bg-hover: #eee;--sdt-table-selected-bg: var(--sdt-bg-selected);--sdt-header-btn-bg-hover: #dfdfdf;--sdt-color-selected: #fff;--sdt-table-today-indicator: #ccc;--sdt-clock-bg: #eeeded;--sdt-today-bg: #1e486d;--sdt-today-color: #fff;--sdt-clear-color: #dc3545;--sdt-clear-bg: #fff;--sdt-clear-hover-color: #fff;--sdt-clear-hover-bg: #dc3545}html.dark{color-scheme:dark;--sk-back-1: hsl(0, 0%, 10%);--sk-back-2: hsl(0, 0%, 18%);--sk-back-3: hsl(var(--sk-back-3-hsl));--sk-back-4: hsl(0, 0%, 22%);--sk-back-5: hsl(0, 0%, 40%);--sk-back-translucent: hsla(0, 0%, 100%, .1);--sk-theme-1-hsl: 15, 100%, 55%;--sk-theme-2-hsl: 240, 8%, 44%;--sk-theme-3-hsl: 204, 100%, 63%;--sk-text-1: hsl(0, 0%, 90%);--sk-text-2: hsl(0, 0%, 80%);--sk-text-3: hsl(0, 0%, 65%);--sk-text-4: hsl(0, 0%, 45%);--sk-text-translucent: hsla(0, 0%, 100%, .9);--sk-scrollbar: rgba(255, 255, 255, .3);--sk-back-3-hsl: 0, 0%, 14%;--sk-theme-1-variant: hsl(202, 100%, 40%);--sk-theme-2-variant: hsl(240, 8%, 35%);--sk-theme-3-variant: hsl(204, 100%, 50%);--sk-text-warning-hsl: 32, 67%, 56%;--sk-code-ts-bg: var(--sk-back-2);--sk-code-bg: var(--sk-back-3);--sk-code-base: hsl(45, 7%, 75%);--sk-code-comment: hsl(0, 0%, 55%);--sk-code-keyword: hsl(204, 88%, 65%);--sk-code-function: hsl(19, 67%, 75%);--sk-code-string: hsl(41, 37%, 68%);--sk-code-number: hsl(120, 100%, 25%);--sk-code-template-string: hsl(2, 80%, 47%);--sk-code-tags: var(--sk-code-function);--sk-code-important: var(--sk-code-string);--sk-code-diff-base: hsla(0, 0%, 100%, .5);--sk-code-diff-inserted: hsl(120, 46%, 48%);--sk-code-diff-removed: hsl(2, 64%, 70%);--toggle-dark: block;--toggle-light: none;--sdt-bg-main: #585858;--sdt-shadow-color: #ccc;--sdt-color: #eee;--sdt-clock-color: var(--sdt-color);--sdt-clock-color-hover: var(--sdt-color);--sdt-clock-time-bg: transparent;--sdt-clock-time-bg-hover: transparent;--sdt-clock-disabled: #b22222;--sdt-clock-disabled-bg: var(--sdt-bg-main);--sdt-header-color: #eee;--sdt-bg-selected: #126cbb;--sdt-clock-selected-bg: var(--sdt-bg-selected);--sdt-table-disabled-date: #b22222;--sdt-table-disabled-date-bg: var(--sdt-bg-main);--sdt-table-data-bg-hover: #777;--sdt-table-selected-bg: var(--sdt-bg-selected);--sdt-header-btn-bg-hover: #777;--sdt-color-selected: #fff;--sdt-table-today-indicator: #ccc;--sdt-clock-bg: #999;--sdt-today-bg: #1e486d;--sdt-today-color: #fff;--sdt-clear-color: #666;--sdt-clear-bg: #ddd;--sdt-clear-hover-color: #fff;--sdt-clear-hover-bg: #dc3545}}.light-toggle{display:var(--toggle-light)}.dark-toggle{display:var(--toggle-dark)}@font-face{font-family:Overpass;font-style:normal;font-weight:300;src:local("Overpass Light "),local("Overpass-Light"),url(/svelty-picker/_app/immutable/assets/overpass-latin-300.3782c01a.woff2) format("woff2")}@font-face{font-family:Overpass;font-style:normal;font-weight:600;src:local("Overpass Bold "),local("Overpass-Bold"),url(/svelty-picker/_app/immutable/assets/overpass-latin-600.0ca25556.woff2) format("woff2")}@font-face{font-family:Fira Mono;font-style:normal;font-weight:400;src:local("Fira Mono Regular "),local("Fira Mono-Regular"),url(/svelty-picker/_app/immutable/assets/fira-mono-latin-400.8d4e0c52.woff2) format("woff2")}html{font-size:62.5%;-webkit-text-size-adjust:100%;-ms-overflow-style:-ms-autohiding-scrollbar;box-sizing:border-box;border-collapse:collapse}body{font-size:1.6rem;font-family:var(--sk-font);line-height:1.618;color:var(--sk-text-2);background-color:var(--sk-back-1);width:100%;-o-tab-size:2;tab-size:2;-moz-tab-size:2}*{box-sizing:inherit;margin:0;padding:0;scrollbar-width:thin;scrollbar-color:var(--sk-scrollbar) transparent;-webkit-overflow-scrolling:touch}*:focus-visible{outline:2px solid hsla(var(--sk-theme-1-hsl),.6);transition:.1s ease}p,ul,ol{margin:1em 0}a{position:relative;text-decoration:none;cursor:pointer;color:inherit}a:hover{text-decoration:underline}h6{font-size:var(--sk-text-xs)}h5,h4{font-size:var(--sk-text-s)}h3{font-size:var(--sk-text-m)}h2{font-size:var(--sk-text-l)}h1{font-size:var(--sk-text-xxl)}h1,h2,h3,h4,h5,h6{position:relative;font-weight:400;line-height:1.35;color:var(--sk-text-1)}strong{font-weight:600}code,kbd{font-size:var(--sk-text-xs);font-family:var(--sk-font-mono);line-height:1.7}code{position:relative;border-radius:.3em;white-space:nowrap;color:var(--sk-text-2);-webkit-font-smoothing:initial;padding:.4rem;margin:0 .2rem;top:-.1rem;background:var(--sk-back-4)}pre{overflow-x:auto}pre code{white-space:inherit;background-color:transparent;padding:0;margin:0;top:0;background:transparent}::-moz-selection{background:var(--sk-selection-color)}::selection{background:var(--sk-selection-color)}blockquote{position:relative;margin:1.6rem 0 2.4rem;padding:2rem 2.4rem 1.8rem;max-width:var(--sk-line-max-width)}blockquote p,blockquote ul{font-size:var(--sk-text-s)}blockquote :last-child{margin:0}button{font-family:inherit;font-size:inherit;background-color:transparent;border:none;color:currentColor;cursor:pointer}button[disabled]{opacity:.55;pointer-events:none}button>svg{position:relative;top:-.1rem;width:2rem!important;height:2rem!important;stroke:currentColor!important}a{position:relative;padding:0 0 1px;color:var(--sk-theme-1);color:color-mix(in hwb,var(--sk-theme-1) 100%,var(--sk-text-1) 25%)}table{width:100%;font-size:var(--sk-text-s)}td,th{text-align:left;border-bottom:1px solid #eee;padding:.4rem .8rem .4rem 0}table code,table span{white-space:pre}figcaption,.post aside{max-width:none;margin:0 auto;padding:1.6rem 0 0 .8rem;font:1.2rem/1.6 var(--sk-font-mono)}.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}.text h2{margin-top:7rem;border-bottom:1px solid var(--sk-back-4)}.text h3{margin-top:5rem}.text p,.text ol,.text ul{margin:1em 0}.text section{max-width:var(--sk-line-max-width);padding:0 0 0 1rem}.text section h2,.text section h3,.text section h4{margin-left:-1rem}.text code{padding:.2rem .4rem;margin:0 .2rem;top:-.1rem;background:var(--sk-back-4)}.text .code-block{position:relative}.text pre{margin:1em 0;width:100%;padding:1rem;box-shadow:inset 1px 1px 6px #1d56800f;box-sizing:border-box;background-color:var(--sk-code-bg);color:var(--sk-code-base);border-radius:var(--sk-border-radius);font-size:var(--sk-text-s);overflow-x:auto}.text pre code{padding:0;margin:0;top:0;background:transparent}.text p code{max-width:100%;display:inline-flex;overflow-x:auto;padding-top:0;padding-bottom:0}.text .code-block .filename{content:attr(data-file);display:block;width:100%;font-family:var(--sk-font-mono);font-size:1.2rem;font-weight:400;padding:1rem 1rem .8rem;color:var(--sk-text-2);background:var(--sk-back-4);border-radius:var(--sk-border-radius) var(--sk-border-radius) 0 0;box-sizing:border-box}.text .code-block pre{margin-top:0;border-radius:0 0 var(--sk-border-radius) var(--sk-border-radius)}.text a:where(:not(.permalink)){--color: hsla(var(--primary-hsl, var(--sk-theme-1-hsl)));color:var(--color);box-shadow:inset 0 -1px 0 0 var(--color);transition:box-shadow .1s ease-in-out}.text a:where(:not(.permalink)):hover{text-decoration:none;box-shadow:inset 0 -2px 0 0 var(--color)}.text a:where(:not(.permalink)) code{all:unset!important;color:inherit;background-color:transparent!important}.text pre a:hover{border-bottom:1px solid var(--sk-theme-1);text-decoration:none!important}.text pre.border{border-left:5px solid var(--sk-theme-2)}.text pre.language-diff code{color:var(--sk-code-diff-base)}.language-diff .inserted,.language-diff .deleted{position:relative}.language-diff .inserted{color:var(--sk-code-diff-inserted)}.language-diff .deleted{color:var(--sk-code-diff-removed);-webkit-user-select:none;-moz-user-select:none;user-select:none}.language-diff .inserted:before,.language-diff .deleted:before{position:absolute;left:-.6rem;top:-.2rem;font-size:1.2rem}.language-diff .inserted:before{content:"+"}.language-diff .deleted:before{content:"-"}.token.comment.wrapped{display:block;white-space:pre-wrap;padding-left:calc(var(--indent) + 2ch);text-indent:calc(-1 * var(--indent) - 2ch);min-height:1.35em}.api-section{background:var(--sk-back-4);padding:1rem;margin-bottom:1rem;max-width:var(--sk-line-max-width);border-radius:var(--sk-border-radius)}.ts-block{margin:1em 0;max-width:var(--sk-line-max-width);background:var(--sk-code-ts-bg);border-radius:var(--sk-border-radius);filter:drop-shadow(2px 2px 8px rgba(0,0,0,.08));overflow:hidden}.ts-block>pre{--shiki-color-background: var(--sk-code-ts-bg);margin:0;border-radius:0;box-shadow:none;background:var(--sk-code-ts-bg)}.ts-block .ts-block-property p,.ts-block-property pre{margin:1rem 0}.ts-block-property>pre{margin:0;padding-left:1rem;border-radius:0;box-shadow:none;border-top:1px solid var(--sk-back-4)}.ts-block-property-details{padding:0 1rem 0 2rem}.ts-block-property-details blockquote{margin:1rem 0}.ts-block-property-children{margin:0rem -1rem 0rem 1rem}.ts-block-property-bullets .tag{font-size:1.4rem;text-transform:uppercase;color:#666}.ts-block-property ul:last-child{margin-bottom:0}.text [id]{scroll-margin-top:calc(var(--sk-nav-height) + 4rem)}.text a.permalink{position:absolute!important;display:block;background:url(../icons/link.svg) 0 50% no-repeat;background-size:1em 1em;width:1.4em;height:1em;left:-1.3em;opacity:0;transition:opacity .2s;bottom:.25em}@media (min-width: 768px){.text a.permalink:focus,.text h2:hover a.permalink,.text h3:hover a.permalink,.text h4:hover a.permalink,.text h5:hover a.permalink,.text h6:hover a.permalink{opacity:1}}@media (max-width: 768px){.text a.permalink{transform:scale(.6);opacity:1;left:-1em}}.text ol,.text ul{--list-padding: 3rem;margin-left:var(--list-padding)}.text ul{list-style:none}.text ol{list-style:decimal}.text li{position:relative;max-width:calc(var(--sk-line-max-width) - var(--list-padding));line-height:1.5;margin:0 0 .5em}.text ul li:before{content:"";position:absolute;margin-top:.8rem;margin-left:-1.8rem;background-color:var(--sk-back-5);width:.6rem;height:.6rem;border-radius:2px;opacity:.7}.text table{margin:1em 0}.text small{font-size:var(--sk-text-s);float:right;pointer-events:all;color:var(--sk-theme-1);cursor:pointer}.text blockquote{--primary-hsl: var(--sk-theme-1-hsl);background-color:hsla(var(--primary-hsl),.02);color:var(--sk-text-1);border:1px solid hsl(var(--primary-hsl));border-radius:var(--sk-border-radius);padding:1rem;filter:drop-shadow(2px 2px 6px hsla(var(--primary-hsl),.2))}.text blockquote:before{content:"note";display:block;font-size:1.2rem;font-weight:600;text-transform:uppercase;color:hsl(var(--primary-hsl));margin-bottom:.5rem}.text blockquote :first-child{margin-top:0}.text blockquote :last-child{margin-bottom:0}.text blockquote.deprecated{--primary-hsl: var(--sk-text-warning-hsl)}.text blockquote.deprecated:before{content:"Deprecated"}.text section a:hover{text-decoration:underline}.text section a code{color:inherit;background:rgba(255,62,0,.1)!important}.text ul ul{margin-bottom:0}body{--shiki-color-text: var(--sk-code-base);--shiki-color-background: var(--sk-back-3);--shiki-token-constant: var(--sk-code-base);--shiki-token-string: var(--sk-code-string);--shiki-token-comment: var(--sk-code-comment);--shiki-token-keyword: var(--sk-code-keyword);--shiki-token-parameter: var(--sk-code-base);--shiki-token-function: var(--sk-code-function);--shiki-token-string-expression: var(--sk-code-string);--shiki-token-punctuation: var(--sk-code-base);--shiki-token-link: var(--sk-code-keyword)}.token{color:var(--sk-code-base)}.token.tag,.token.attr-value .attr-equals{color:var(--sk-code-function)}.token.string,.token.interpolation-punctuation,.token.attr-value,.token.inserted{color:var(--sk-code-string)}.token.builtin,.token.function{color:var(--sk-code-function)}.token.keyword,.token.boolean{color:var(--sk-code-keyword)}.token.comment{color:var(--sk-code-comment)}.token.deleted{color:#fc9b9b}.token.template-string .interpolation-punctuation,.token.template-string .string{color:var(--sk-code-template-string)}.language-id,pre.twoslash .error,pre.twoslash .error-behind{display:none}pre.twoslash data-lsp{transition:border-color .3s;border-bottom:1px dotted transparent}pre.twoslash:hover data-lsp{border-color:var(--sk-back-5)}.flex{display:flex;gap:16px}.inline-flex{display:inline-flex;gap:8px}.items-center{align-items:center}.toc.svelte-1iuyc2v.svelte-1iuyc2v{padding-left:0}.toc.svelte-1iuyc2v li.svelte-1iuyc2v{display:block;line-height:1.2;margin:0 0 1em}div.svelte-1iuyc2v.svelte-1iuyc2v{display:flex;flex-direction:row;padding:.2rem 3rem;margin:0 -3rem}div.active.svelte-1iuyc2v.svelte-1iuyc2v{color:#fff;text-decoration:underline}a.svelte-1iuyc2v.svelte-1iuyc2v{display:flex;flex:1 1 auto;position:relative;color:var(--sk-text-2);border-bottom:none;font-size:1.6rem;align-items:center;justify-content:flex-start;padding:0}div.active.svelte-1iuyc2v a.svelte-1iuyc2v{color:orange}a.svelte-1iuyc2v.svelte-1iuyc2v:hover{color:var(--sk-text-1)}.svelte-progress-bar.svelte-1rjlpd{position:fixed;top:0;left:0;height:3px;transition:width .21s ease-in-out}.svelte-progress-bar-hiding.svelte-1rjlpd{transition:top .8s ease;top:-8px}.svelte-progress-bar-leader.svelte-1rjlpd{position:absolute;top:0;right:0;height:5px;width:100px;transform:rotate(2.5deg) translateY(-4px);box-shadow:0 0 8px}.theme-toggle.svelte-13r8zzi>svg.svelte-13r8zzi{width:32px;height:32px}aside.svelte-1tdygp0{padding:32px;background-color:var(--sk-back-1);transition:transform .3s ease-in-out,box-shadow .3s ease-in-out}aside.opened.svelte-1tdygp0{transform:translate(0)}@media screen and (max-width: 1023px){aside.svelte-1tdygp0{z-index:15;top:0;position:absolute;transform:translate(-100%);bottom:0;overflow-y:auto}aside.opened.svelte-1tdygp0{box-shadow:0 20px 20px #ccc}}main.svelte-1tdygp0{flex:1 1 0}.home-link.svelte-1tdygp0{font-size:24px;font-weight:700}.header.svelte-1tdygp0{padding:16px;justify-content:space-between;border-bottom:2px solid var(--sk-back-3)}.fullbody.svelte-1tdygp0{min-height:100vh;display:flex;flex-flow:column} diff --git a/docs/_app/immutable/assets/SveltyPicker.60a34377.css b/docs/_app/immutable/assets/SveltyPicker.60a34377.css new file mode 100644 index 0000000..f73278a --- /dev/null +++ b/docs/_app/immutable/assets/SveltyPicker.60a34377.css @@ -0,0 +1 @@ +td.svelte-hexbpx.svelte-hexbpx.svelte-hexbpx,th.svelte-hexbpx.svelte-hexbpx.svelte-hexbpx{padding:0;border-width:0}.sdt-cal-td.svelte-hexbpx.svelte-hexbpx.svelte-hexbpx{padding:0;font-size:90%;text-align:center}.sdt-cal-th.svelte-hexbpx.svelte-hexbpx.svelte-hexbpx{text-align:center;height:24px}.sdt-calendar.svelte-hexbpx.svelte-hexbpx.svelte-hexbpx{height:221px;overflow:hidden}.sdt-calendar.is-grid.svelte-hexbpx.svelte-hexbpx.svelte-hexbpx{display:grid}.sdt-calendar.is-grid.svelte-hexbpx .sdt-table.svelte-hexbpx.svelte-hexbpx{grid-column:1/2;grid-row:1/2}.sdt-table.svelte-hexbpx.svelte-hexbpx.svelte-hexbpx{width:100%;border-collapse:collapse;margin:0;background-color:var(--sdt-table-bg, transparent)}.sdt-table-height.svelte-hexbpx.svelte-hexbpx.svelte-hexbpx{height:222px}.animate-transition.svelte-hexbpx.svelte-hexbpx.svelte-hexbpx{will-change:transform;transition:transform .3s ease}.not-current.svelte-hexbpx.svelte-hexbpx.svelte-hexbpx{opacity:.3}.not-current.svelte-hexbpx.svelte-hexbpx.svelte-hexbpx:hover{opacity:.55}.std-btn.svelte-hexbpx.svelte-hexbpx.svelte-hexbpx{margin:0;border:0;background:transparent;text-align:center;width:100%;border-radius:4px;cursor:pointer;padding:.3rem;box-sizing:border-box;color:var(--sdt-color, initial)}.sdt-btn-day.svelte-hexbpx.svelte-hexbpx.svelte-hexbpx{max-height:32px;height:32px}.std-btn[disabled].svelte-hexbpx.svelte-hexbpx.svelte-hexbpx{cursor:not-allowed;opacity:.5;color:var(--sdt-table-disabled-date, #b22222);background-color:var(--sdt-table-disabled-date-bg, var(--sdt-bg-main, #fff))}.std-btn-header.svelte-hexbpx.svelte-hexbpx.svelte-hexbpx{width:auto;font-weight:700;padding:.375em .5em;color:var(--sdt-header-color, var(--sdt-color, initial))}.std-btn-header.icon-btn.svelte-hexbpx.svelte-hexbpx.svelte-hexbpx:first-of-type{padding-left:.375em;padding-right:.375em}.std-btn-header.icon-btn.svelte-hexbpx.svelte-hexbpx.svelte-hexbpx{padding-left:.25em;padding-right:.25em}.std-btn.svelte-hexbpx.svelte-hexbpx.svelte-hexbpx:hover{background-color:var(--sdt-table-data-bg-hover, #eee)}.is-selected.in-range.svelte-hexbpx .std-btn.svelte-hexbpx.svelte-hexbpx{border-radius:4px 0 0 4px}.in-range.svelte-hexbpx .std-btn.svelte-hexbpx.svelte-hexbpx,.in-range-hover.svelte-hexbpx:not(.is-selected) .std-btn.svelte-hexbpx.svelte-hexbpx{background-color:color-mix(in srgb,transparent 75%,var(--sdt-bg-selected, #286090));border-radius:0}.in-range-hover.is-selected.svelte-hexbpx:has(+.in-range-hover) .std-btn.svelte-hexbpx.svelte-hexbpx{border-top-right-radius:0;border-bottom-right-radius:0}.in-range-hover.svelte-hexbpx+.in-range-hover.is-selected .std-btn.svelte-hexbpx.svelte-hexbpx{border-top-left-radius:0;border-bottom-left-radius:0}.in-range.svelte-hexbpx:not(.is-selected) .std-btn.svelte-hexbpx.svelte-hexbpx:hover{background-color:color-mix(in srgb,var(--sdt-table-data-bg-hover, #eee) 75%,var(--sdt-bg-selected, #286090))}.in-range.svelte-hexbpx+.is-selected.svelte-hexbpx .std-btn.svelte-hexbpx,.is-selected.svelte-hexbpx+.is-selected .std-btn.svelte-hexbpx.svelte-hexbpx{border-top-left-radius:0;border-bottom-left-radius:0}.is-selected.svelte-hexbpx+.is-selected .std-btn.svelte-hexbpx.svelte-hexbpx{border-left:1px solid color-mix(in srgb,white 75%,var(--sdt-table-selected-bg, var(--sdt-bg-selected, #286090)));margin-left:-1px}.is-selected.svelte-hexbpx .std-btn.svelte-hexbpx.svelte-hexbpx,.is-selected.in-range.svelte-hexbpx .std-btn.svelte-hexbpx.svelte-hexbpx{background-color:var(--sdt-table-selected-bg, var(--sdt-bg-selected, #286090));color:var(--sdt-color-selected, var(--sdt-bg-main, #fff));opacity:.9}.std-btn-header.svelte-hexbpx.svelte-hexbpx.svelte-hexbpx:hover{background-color:var(--sdt-header-btn-bg-hover, #dfdfdf)}.sdt-time-icon.svelte-hexbpx.svelte-hexbpx.svelte-hexbpx{display:inline-flex;align-items:center;padding:.375em!important}.sdt-time-icon.svelte-hexbpx svg.svelte-hexbpx.svelte-hexbpx{height:1em!important;stroke:initial!important}.sdt-tbody-lg.svelte-hexbpx.svelte-hexbpx.svelte-hexbpx{background-color:var(--sdt-bg-main, #fff)}.sdt-tbody-lg.svelte-hexbpx .std-btn.svelte-hexbpx.svelte-hexbpx{height:74px}.sdt-thead-nav.svelte-hexbpx.svelte-hexbpx.svelte-hexbpx{display:flex;margin-bottom:.25em;align-items:stretch}.sdt-nav-btns.svelte-hexbpx.svelte-hexbpx.svelte-hexbpx{white-space:nowrap}.sdt-toggle-btn.svelte-hexbpx.svelte-hexbpx.svelte-hexbpx{width:100%;text-align:left}.sdt-today.svelte-hexbpx.svelte-hexbpx.svelte-hexbpx{position:relative}.sdt-today.svelte-hexbpx.svelte-hexbpx.svelte-hexbpx:before{box-sizing:border-box;position:absolute;content:"";margin-left:4px;margin-top:4px;border-left:4px solid var(--sdt-table-today-indicator, #ccc);border-top:4px solid var(--sdt-table-today-indicator, #ccc);border-bottom:4px solid transparent;border-right:4px solid transparent;border-radius:2px;height:4px;z-index:2}.sdt-svg.svelte-hexbpx.svelte-hexbpx.svelte-hexbpx{fill:var(--sdt-header-color, initial)}.sdt-today.svelte-hexbpx.svelte-hexbpx.svelte-hexbpx:hover:before,.in-range.sdt-today.svelte-hexbpx.svelte-hexbpx.svelte-hexbpx:before{border-left-color:var(--sdt-bg-selected, #286090);border-top-color:var(--sdt-bg-selected, #286090)}.is-selected.sdt-today.svelte-hexbpx.svelte-hexbpx.svelte-hexbpx:before{border-left-color:#eee;border-top-color:#eee}.sdt-timer.svelte-bn8ebp.svelte-bn8ebp{position:relative;--sdt-clock-size:220px}.sdt-time-head.svelte-bn8ebp.svelte-bn8ebp{position:relative;display:flex;justify-content:center;align-items:center;margin-bottom:4px;color:var(--sdt-header-color, initial)}.sdt-time-figure.svelte-bn8ebp.svelte-bn8ebp{font-size:1.5em;font-weight:700;padding:0 .375em}.sdt-time-figure.svelte-bn8ebp+.sdt-time-figure.svelte-bn8ebp{margin-left:-12px}.sdt-clock.svelte-bn8ebp.svelte-bn8ebp{margin:auto;position:relative;width:var(--sdt-clock-size);height:var(--sdt-clock-size);background-color:var(--sdt-clock-bg, #eeeded);border-radius:50%;transition:background-color .3s;overflow:hidden}.sdt-time-btn.svelte-bn8ebp.svelte-bn8ebp{border:0;background:transparent;text-align:center;border-radius:4px;cursor:pointer;height:38px;padding:0 .375em;color:var(--sdt-header-color, initial)}.sdt-time-btn.svelte-bn8ebp>svg.svelte-bn8ebp{stroke:initial!important}.sdt-svg.svelte-bn8ebp.svelte-bn8ebp{fill:var(--sdt-header-color, initial)}.sdt-time-btn.svelte-bn8ebp.svelte-bn8ebp:not(.is-active){opacity:.5}.sdt-time-btn.svelte-bn8ebp.svelte-bn8ebp:hover{background-color:var(--sdt-header-btn-bg-hover, #dfdfdf)}.sdt-back-btn.svelte-bn8ebp.svelte-bn8ebp{position:absolute;top:0;left:0;padding:.3em;opacity:1!important}.sdt-meridian.svelte-bn8ebp.svelte-bn8ebp{position:absolute;top:0;right:0;display:flex}.sdt-meridian.svelte-bn8ebp .sdt-time-btn.svelte-bn8ebp{width:56px;font-weight:700}.sdt-middle-dot.svelte-bn8ebp.svelte-bn8ebp{left:50%;top:50%;width:6px;height:6px;position:absolute;transform:translate(-50%,-50%);background-color:var(--sdt-clock-selected-bg, var(--sdt-bg-selected, #286090));border-radius:50%}.sdt-hand-pointer.svelte-bn8ebp.svelte-bn8ebp{width:2px;height:calc(40% - 3px);bottom:50%;left:calc(50% - 1px);position:absolute;background-color:var(--sdt-clock-selected-bg, var(--sdt-bg-selected, #286090));transform-origin:center bottom 0;transition:transform .3s ease,height .15s ease}.sdt-hand-circle.svelte-bn8ebp.svelte-bn8ebp{left:-15px;top:-21px;position:relative;width:4px;height:4px;background-color:transparent;border:14px solid var(--sdt-clock-selected-bg, var(--sdt-bg-selected, #286090));border-radius:50%;box-sizing:content-box}.sdt-tick.svelte-bn8ebp.svelte-bn8ebp{position:absolute;width:30px;height:30px;border-width:0;transform:translate(-50%,-50%);text-align:center;border-radius:50%;line-height:20px;cursor:pointer;background-color:var(--sdt-clock-time-bg);transition:all .3s;color:var(--sdt-clock-color, inherit)}.sdt-tick.svelte-bn8ebp.svelte-bn8ebp:hover{color:var(--sdt-clock-color-hover);background-color:var(--sdt-clock-time-bg-hover)}.sdt-tick[disabled].svelte-bn8ebp.svelte-bn8ebp{cursor:not-allowed;color:var(--sdt-clock-disabled, #b22222);background-color:var(--sdt-clock-disabled-bg, var(--sdt-clock-bg,#eeeded))}.sdt-tick.outer-tick.svelte-bn8ebp.svelte-bn8ebp{opacity:0}.sdt-tick.is-selected.svelte-bn8ebp.svelte-bn8ebp{animation:svelte-bn8ebp-tick-selection 0s .175s ease-out forwards}@keyframes svelte-bn8ebp-tick-selection{0%{color:initial;background-color:transparent}to{background-color:var(--sdt-clock-selected-bg, var(--sdt-bg-selected, #286090));color:var(--sdt-color-selected, var(--sdt-bg-main, #fff))}}.std-component-wrap.svelte-ergyxs.svelte-ergyxs{position:relative;display:inline}.std-calendar-wrap.svelte-ergyxs.svelte-ergyxs{width:280px;background-color:var(--sdt-bg-main, #fff);box-shadow:var(--sdt-wrap-shadow, 0 1px 6px var(--sdt-shadow-color, #ccc));border-radius:var(--sdt-radius, 4px);padding:.5em;color:var(--sdt-color, initial)}.std-calendar-wrap.is-range-wrap.svelte-ergyxs.svelte-ergyxs{width:560px}.sdt-widget-wrap.svelte-ergyxs.svelte-ergyxs{display:flex;gap:.5rem;justify-content:stretch;position:relative}.sdt-widget.svelte-ergyxs.svelte-ergyxs{flex:1;min-width:264px}.value-dirty.svelte-ergyxs.svelte-ergyxs{color:color-mix(in srgb,black 20%,white)}.std-calendar-wrap.is-popup.svelte-ergyxs.svelte-ergyxs{position:absolute;box-shadow:0 1px 6px var(--sdt-shadow-color, #ccc);z-index:100}.sdt-btn-row.svelte-ergyxs.svelte-ergyxs{margin-top:.5rem;display:flex;gap:.5rem;justify-content:space-between;flex-flow:row-reverse}.sdt-action-btn.svelte-ergyxs.svelte-ergyxs{padding:.25em .5em;font-size:.875em;border-radius:.2em}.sdt-today-btn.svelte-ergyxs.svelte-ergyxs{background-color:var(--sdt-bg-selected, #286090);color:var(--sdt-today-color, var(--sdt-bg-main, #fff));padding:.25em .5em;font-size:.875em;border-radius:.2em;border:1px solid var(--sdt-today-bg, #286090)}.sdt-today-btn[disabled].svelte-ergyxs.svelte-ergyxs{opacity:.5;cursor:not-allowed}.sdt-today-btn.svelte-ergyxs.svelte-ergyxs:focus,.sdt-today-btn.svelte-ergyxs.svelte-ergyxs:active,.sdt-today-btn.svelte-ergyxs.svelte-ergyxs:hover:not([disabled]){background-color:var(--sdt-today-bg, #286090)}.sdt-clear-btn.svelte-ergyxs.svelte-ergyxs{border:1px solid var(--sdt-clear-color, #dc3545);background-color:var(--sdt-clear-bg, transparent);color:var(--sdt-clear-color, #dc3545)}.sdt-clear-btn.svelte-ergyxs.svelte-ergyxs:focus,.sdt-clear-btn.svelte-ergyxs.svelte-ergyxs:active:not([disabled]),.sdt-clear-btn.svelte-ergyxs.svelte-ergyxs:hover:not([disabled]){background-color:var(--sdt-clear-hover-bg, #dc3545);color:var(--sdt-clear-hover-color, var(--sdt-bg-main, #fff))}.sdt-widget.svelte-ergyxs+.sdt-widget.svelte-ergyxs:before{content:"";position:absolute;top:0;bottom:0;left:50%;width:1px;background-color:#eee}@media screen and (max-width: 560px){.std-calendar-wrap.std-calendar-wrap.is-range-wrap.svelte-ergyxs.svelte-ergyxs{width:280px}.sdt-widget-wrap.svelte-ergyxs.svelte-ergyxs{flex-wrap:wrap}.sdt-widget.svelte-ergyxs+.sdt-widget.svelte-ergyxs:before{content:none}} diff --git a/docs/_app/immutable/assets/SveltyPicker.c6e238a8.css b/docs/_app/immutable/assets/SveltyPicker.c6e238a8.css deleted file mode 100644 index 0aa579b..0000000 --- a/docs/_app/immutable/assets/SveltyPicker.c6e238a8.css +++ /dev/null @@ -1 +0,0 @@ -td.svelte-s34iof.svelte-s34iof.svelte-s34iof,th.svelte-s34iof.svelte-s34iof.svelte-s34iof{padding:0;border-width:0}.sdt-cal-td.svelte-s34iof.svelte-s34iof.svelte-s34iof{padding:0;font-size:90%;text-align:center}.sdt-cal-th.svelte-s34iof.svelte-s34iof.svelte-s34iof{text-align:center;height:24px}.sdt-calendar.svelte-s34iof.svelte-s34iof.svelte-s34iof{height:221px;overflow:hidden}.sdt-calendar.is-grid.svelte-s34iof.svelte-s34iof.svelte-s34iof{display:grid}.sdt-calendar.is-grid.svelte-s34iof .sdt-table.svelte-s34iof.svelte-s34iof{grid-column:1/2;grid-row:1/2}.sdt-table.svelte-s34iof.svelte-s34iof.svelte-s34iof{width:100%;border-collapse:collapse;margin:0;background-color:var(--sdt-table-bg, transparent)}.sdt-table-height.svelte-s34iof.svelte-s34iof.svelte-s34iof{height:222px}.animate-transition.svelte-s34iof.svelte-s34iof.svelte-s34iof{will-change:transform;transition:transform .3s ease}.not-current.svelte-s34iof.svelte-s34iof.svelte-s34iof{opacity:.3}.not-current.svelte-s34iof.svelte-s34iof.svelte-s34iof:hover{opacity:.55}.std-btn.svelte-s34iof.svelte-s34iof.svelte-s34iof{margin:0;border:0;background:transparent;text-align:center;width:100%;border-radius:4px;cursor:pointer;padding:.3rem;box-sizing:border-box;color:var(--sdt-color, initial)}.sdt-btn-day.svelte-s34iof.svelte-s34iof.svelte-s34iof{max-height:32px;height:32px}.std-btn[disabled].svelte-s34iof.svelte-s34iof.svelte-s34iof{cursor:not-allowed;opacity:.5;color:var(--sdt-table-disabled-date, #b22222);background-color:var(--sdt-table-disabled-date-bg, var(--sdt-bg-main, #fff))}.std-btn-header.svelte-s34iof.svelte-s34iof.svelte-s34iof{width:auto;font-weight:700;padding:.375em .5em;color:var(--sdt-header-color, var(--sdt-color, initial))}.std-btn-header.icon-btn.svelte-s34iof.svelte-s34iof.svelte-s34iof:first-of-type{padding-left:.375em;padding-right:.375em}.std-btn-header.icon-btn.svelte-s34iof.svelte-s34iof.svelte-s34iof{padding-left:.25em;padding-right:.25em}.std-btn.svelte-s34iof.svelte-s34iof.svelte-s34iof:hover{background-color:var(--sdt-table-data-bg-hover, #eee)}.is-selected.in-range.svelte-s34iof .std-btn.svelte-s34iof.svelte-s34iof{border-radius:4px 0 0 4px}.in-range.svelte-s34iof .std-btn.svelte-s34iof.svelte-s34iof,.in-range-hover.svelte-s34iof:not(.is-selected) .std-btn.svelte-s34iof.svelte-s34iof{background-color:color-mix(in srgb,transparent 75%,var(--sdt-bg-selected, #286090));border-radius:0}.in-range-hover.is-selected.svelte-s34iof:has(+.in-range-hover) .std-btn.svelte-s34iof.svelte-s34iof{border-top-right-radius:0;border-bottom-right-radius:0}.in-range-hover.svelte-s34iof+.in-range-hover.is-selected .std-btn.svelte-s34iof.svelte-s34iof{border-top-left-radius:0;border-bottom-left-radius:0}.in-range.svelte-s34iof:not(.is-selected) .std-btn.svelte-s34iof.svelte-s34iof:hover{background-color:color-mix(in srgb,var(--sdt-table-data-bg-hover, #eee) 75%,var(--sdt-bg-selected, #286090))}.in-range.svelte-s34iof+.is-selected.svelte-s34iof .std-btn.svelte-s34iof,.is-selected.svelte-s34iof+.is-selected .std-btn.svelte-s34iof.svelte-s34iof{border-top-left-radius:0;border-bottom-left-radius:0}.is-selected.svelte-s34iof+.is-selected .std-btn.svelte-s34iof.svelte-s34iof{border-left:1px solid color-mix(in srgb,white 75%,var(--sdt-table-selected-bg, #286090));margin-left:-1px}.is-selected.svelte-s34iof .std-btn.svelte-s34iof.svelte-s34iof,.is-selected.in-range.svelte-s34iof .std-btn.svelte-s34iof.svelte-s34iof{background-color:var(--sdt-table-selected-bg, #286090);color:var(--sdt-color-selected, var(--sdt-bg-main, #fff));opacity:.9}.std-btn-header.svelte-s34iof.svelte-s34iof.svelte-s34iof:hover{background-color:var(--sdt-header-btn-bg-hover, #dfdfdf)}.sdt-time-icon.svelte-s34iof.svelte-s34iof.svelte-s34iof{display:inline-flex;align-items:center;padding:.375em!important}.sdt-time-icon.svelte-s34iof svg.svelte-s34iof.svelte-s34iof{height:1em!important;stroke:initial!important}.sdt-tbody-lg.svelte-s34iof.svelte-s34iof.svelte-s34iof{background-color:var(--sdt-bg-main, #fff)}.sdt-tbody-lg.svelte-s34iof .std-btn.svelte-s34iof.svelte-s34iof{height:74px}.sdt-thead-nav.svelte-s34iof.svelte-s34iof.svelte-s34iof{display:flex;margin-bottom:.25em;align-items:stretch}.sdt-nav-btns.svelte-s34iof.svelte-s34iof.svelte-s34iof{white-space:nowrap}.sdt-toggle-btn.svelte-s34iof.svelte-s34iof.svelte-s34iof{width:100%;text-align:left}.sdt-today.svelte-s34iof.svelte-s34iof.svelte-s34iof{position:relative}.sdt-today.svelte-s34iof.svelte-s34iof.svelte-s34iof:before{box-sizing:border-box;position:absolute;content:"";margin-left:4px;margin-top:4px;border-left:4px solid var(--sdt-table-today-indicator, #ccc);border-top:4px solid var(--sdt-table-today-indicator, #ccc);border-bottom:4px solid transparent;border-right:4px solid transparent;border-radius:2px;height:4px;z-index:2}.sdt-svg.svelte-s34iof.svelte-s34iof.svelte-s34iof{fill:var(--sdt-header-color, initial)}.sdt-today.svelte-s34iof.svelte-s34iof.svelte-s34iof:hover:before,.in-range.sdt-today.svelte-s34iof.svelte-s34iof.svelte-s34iof:before{border-left-color:var(--sdt-bg-selected, #286090);border-top-color:var(--sdt-bg-selected, #286090)}.is-selected.sdt-today.svelte-s34iof.svelte-s34iof.svelte-s34iof:before{border-left-color:#eee;border-top-color:#eee}.sdt-timer.svelte-88z0zt.svelte-88z0zt{position:relative;--sdt-clock-size:220px}.sdt-time-head.svelte-88z0zt.svelte-88z0zt{position:relative;display:flex;justify-content:center;align-items:center;margin-bottom:4px;color:var(--sdt-header-color, initial)}.sdt-time-figure.svelte-88z0zt.svelte-88z0zt{font-size:1.5em;font-weight:700;padding:0 .375em}.sdt-time-figure.svelte-88z0zt+.sdt-time-figure.svelte-88z0zt{margin-left:-12px}.sdt-clock.svelte-88z0zt.svelte-88z0zt{margin:auto;position:relative;width:var(--sdt-clock-size);height:var(--sdt-clock-size);background-color:var(--sdt-clock-bg, #eeeded);border-radius:50%;transition:background-color .3s;overflow:hidden}.sdt-time-btn.svelte-88z0zt.svelte-88z0zt{border:0;background:transparent;text-align:center;border-radius:4px;cursor:pointer;height:38px;padding:0 .375em;color:var(--sdt-header-color, initial)}.sdt-time-btn.svelte-88z0zt>svg.svelte-88z0zt{stroke:initial!important}.sdt-svg.svelte-88z0zt.svelte-88z0zt{fill:var(--sdt-header-color, initial)}.sdt-time-btn.svelte-88z0zt.svelte-88z0zt:not(.is-active){opacity:.5}.sdt-time-btn.svelte-88z0zt.svelte-88z0zt:hover{background-color:var(--sdt-header-btn-bg-hover, #dfdfdf)}.sdt-back-btn.svelte-88z0zt.svelte-88z0zt{position:absolute;top:0;left:0;padding:.3em;opacity:1!important}.sdt-meridian.svelte-88z0zt.svelte-88z0zt{position:absolute;top:0;right:0;display:flex}.sdt-meridian.svelte-88z0zt .sdt-time-btn.svelte-88z0zt{width:56px;font-weight:700}.sdt-middle-dot.svelte-88z0zt.svelte-88z0zt{left:50%;top:50%;width:6px;height:6px;position:absolute;transform:translate(-50%,-50%);background-color:var(--sdt-clock-selected-bg, #286090);border-radius:50%}.sdt-hand-pointer.svelte-88z0zt.svelte-88z0zt{width:2px;height:calc(40% - 3px);bottom:50%;left:calc(50% - 1px);position:absolute;background-color:var(--sdt-clock-selected-bg, #286090);transform-origin:center bottom 0;transition:transform .3s ease,height .15s ease}.sdt-hand-circle.svelte-88z0zt.svelte-88z0zt{left:-15px;top:-21px;position:relative;width:4px;height:4px;background-color:transparent;border:14px solid var(--sdt-clock-selected-bg, #286090);border-radius:50%;box-sizing:content-box}.sdt-tick.svelte-88z0zt.svelte-88z0zt{position:absolute;width:30px;height:30px;border-width:0;transform:translate(-50%,-50%);text-align:center;border-radius:50%;line-height:20px;cursor:pointer;background-color:var(--sdt-clock-time-bg);transition:all .3s;color:var(--sdt-clock-color, inherit)}.sdt-tick.svelte-88z0zt.svelte-88z0zt:hover{color:var(--sdt-clock-color-hover);background-color:var(--sdt-clock-time-bg-hover)}.sdt-tick[disabled].svelte-88z0zt.svelte-88z0zt{cursor:not-allowed;color:var(--sdt-clock-disabled, #b22222);background-color:var(--sdt-clock-disabled-bg, var(--sdt-clock-bg,#eeeded))}.sdt-tick.outer-tick.svelte-88z0zt.svelte-88z0zt{opacity:0}.sdt-tick.is-selected.svelte-88z0zt.svelte-88z0zt{animation:svelte-88z0zt-tick-selection 0s .175s ease-out forwards}@keyframes svelte-88z0zt-tick-selection{0%{color:initial;background-color:transparent}to{background-color:var(--sdt-clock-selected-bg, #286090);color:var(--sdt-color-selected, var(--sdt-bg-main, #fff))}}.std-component-wrap.svelte-ergyxs.svelte-ergyxs{position:relative;display:inline}.std-calendar-wrap.svelte-ergyxs.svelte-ergyxs{width:280px;background-color:var(--sdt-bg-main, #fff);box-shadow:var(--sdt-wrap-shadow, 0 1px 6px var(--sdt-shadow-color, #ccc));border-radius:var(--sdt-radius, 4px);padding:.5em;color:var(--sdt-color, initial)}.std-calendar-wrap.is-range-wrap.svelte-ergyxs.svelte-ergyxs{width:560px}.sdt-widget-wrap.svelte-ergyxs.svelte-ergyxs{display:flex;gap:.5rem;justify-content:stretch;position:relative}.sdt-widget.svelte-ergyxs.svelte-ergyxs{flex:1;min-width:264px}.value-dirty.svelte-ergyxs.svelte-ergyxs{color:color-mix(in srgb,black 20%,white)}.std-calendar-wrap.is-popup.svelte-ergyxs.svelte-ergyxs{position:absolute;box-shadow:0 1px 6px var(--sdt-shadow-color, #ccc);z-index:100}.sdt-btn-row.svelte-ergyxs.svelte-ergyxs{margin-top:.5rem;display:flex;gap:.5rem;justify-content:space-between;flex-flow:row-reverse}.sdt-action-btn.svelte-ergyxs.svelte-ergyxs{padding:.25em .5em;font-size:.875em;border-radius:.2em}.sdt-today-btn.svelte-ergyxs.svelte-ergyxs{background-color:var(--sdt-bg-selected, #286090);color:var(--sdt-today-color, var(--sdt-bg-main, #fff));padding:.25em .5em;font-size:.875em;border-radius:.2em;border:1px solid var(--sdt-today-bg, #286090)}.sdt-today-btn[disabled].svelte-ergyxs.svelte-ergyxs{opacity:.5;cursor:not-allowed}.sdt-today-btn.svelte-ergyxs.svelte-ergyxs:focus,.sdt-today-btn.svelte-ergyxs.svelte-ergyxs:active,.sdt-today-btn.svelte-ergyxs.svelte-ergyxs:hover:not([disabled]){background-color:var(--sdt-today-bg, #286090)}.sdt-clear-btn.svelte-ergyxs.svelte-ergyxs{border:1px solid var(--sdt-clear-color, #dc3545);background-color:var(--sdt-clear-bg, transparent);color:var(--sdt-clear-color, #dc3545)}.sdt-clear-btn.svelte-ergyxs.svelte-ergyxs:focus,.sdt-clear-btn.svelte-ergyxs.svelte-ergyxs:active:not([disabled]),.sdt-clear-btn.svelte-ergyxs.svelte-ergyxs:hover:not([disabled]){background-color:var(--sdt-clear-hover-bg, #dc3545);color:var(--sdt-clear-hover-color, var(--sdt-bg-main, #fff))}.sdt-widget.svelte-ergyxs+.sdt-widget.svelte-ergyxs:before{content:"";position:absolute;top:0;bottom:0;left:50%;width:1px;background-color:#eee}@media screen and (max-width: 560px){.std-calendar-wrap.std-calendar-wrap.is-range-wrap.svelte-ergyxs.svelte-ergyxs{width:280px}.sdt-widget-wrap.svelte-ergyxs.svelte-ergyxs{flex-wrap:wrap}.sdt-widget.svelte-ergyxs+.sdt-widget.svelte-ergyxs:before{content:none}} diff --git a/docs/_app/immutable/assets/_layout.2f1f2e10.css b/docs/_app/immutable/assets/_layout.2f1f2e10.css deleted file mode 100644 index 46fc7dd..0000000 --- a/docs/_app/immutable/assets/_layout.2f1f2e10.css +++ /dev/null @@ -1 +0,0 @@ -.visible{visibility:visible}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.z-10{z-index:10}.my-10{margin-top:2.5rem;margin-bottom:2.5rem}.my-4{margin-top:1rem;margin-bottom:1rem}.mt-2{margin-top:.5rem}.mt-5{margin-top:1.25rem}.block{display:block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.w-full{width:100%}.flex-1{flex:1 1 0%}.flex-auto{flex:1 1 auto}.border-collapse{border-collapse:collapse}.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))}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-stretch{align-items:stretch}.justify-end{justify-content:flex-end}.gap-10{gap:2.5rem}.gap-4{gap:1rem}.gap-8{gap:2rem}.overflow-hidden{overflow:hidden}.rounded{border-radius:.25rem}.border{border-width:1px}.p-2{padding:.5rem}.p-4{padding:1rem}.pt-5{padding-top:1.25rem}.text-center{text-align:center}.text-xl{font-size:1.25rem;line-height:1.75rem}.leading-4{line-height:1rem}.underline{text-decoration-line:underline}.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)}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{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}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}h1{font-size:var(--font-size-5);font-weight:var(--font-weight-bold);margin-bottom:var(--spacing-12)}h2{font-size:var(--font-size-4);font-weight:var(--font-weight-semibold)}body{margin:0;font-weight:var(--font-weight-normal);background-color:var(--colour-brand)}code{counter-reset:step;counter-increment:step 0}.shiki{border-radius:var(--spacing-1);padding:var(--spacing-6) var(--spacing-4);margin:var(--spacing-4) auto var(--spacing-18);box-shadow:var(--shadow-elevation-medium);overflow-x:auto;max-width:var(--max-width-full)}.highlight-line{display:inline-block;background-color:var(--colour-code-background-highlighted);width:calc(var(--max-width-full) + var(--spacing-4));border-left:var(--spacing-1) solid var(--colour-code-line-highlight);margin-left:calc(-1 * var(--spacing-1))}:root{--colour-brand: hsl(193 67% 34%);--colour-light: hsl(7 53% 97%);--colour-code-line-numbers: hsl(219 14% 71% / .8);--colour-code-line-highlight: hsl(34 96% 55%);--colour-code-background-hue: 220;--colour-code-background-saturation: 13%;--colour-code-background-lightness: 18%;--colour-code-background-highlighted: hsl( var(--colour-code-background-hue) var(--colour-code-background-saturation) calc(var(--colour-code-background-lightness) + 5%) );--spacing-px: 1px;--spacing-px-2: 2px;--spacing-0: 0;--spacing-1: .25rem;--spacing-2: .5rem;--spacing-4: 1rem;--spacing-6: 1.5rem;--spacing-12: 3rem;--spacing-18: 4.5rem;--max-width-wrapper: 48rem;--max-width-full: 100%;--font-size-root: 16px;--font-size-3: 1.563rem;--font-size-4: 1.953rem;--font-size-5: 2.441rem;--font-size-6: 3.052rem;--font-weight-normal: 400;--font-weight-semibold: 600;--font-weight-bold: 700;--line-height-normal: 1.5;--shadow-color: 194deg 84% 18%;--shadow-elevation-medium: -1px 1px 1.6px hsl(var(--shadow-color) / .36), -3.3px 3.3px 5.3px -.8px hsl(var(--shadow-color) / .36), -8.2px 8.2px 13px -1.7px hsl(var(--shadow-color) / .36), -20px 20px 31.8px -2.5px hsl(var(--shadow-color) / .36)}code .line:before{display:inline-block;content:counter(step);counter-increment:step;width:var(--spacing-6);margin-right:var(--spacing-6);text-align:right;font-variant-numeric:tabular-nums;color:var(--colour-line-numbers)}input{padding:6px;border-radius:4px}@media (min-width: 640px){.sm\:block{display:block}.sm\:inline{display:inline}}@media (min-width: 1024px){.lg\:hidden{display:none}.lg\:flex-none{flex:none}.lg\:p-10{padding:2.5rem}.lg\:text-left{text-align:left}}:root{--sk-back-h: 206;--sk-selection-color: hsla(204, 100%, 63%, .3);--sk-focus-outline: 0 0 0 2px hsla(var(--sk-theme-1-hsl), .6);--sk-theme-1: var(--sk-theme-1-hsl);--sk-theme-2: var(--sk-theme-2-hsl);--sk-theme-3: var(--sk-theme-3-hsl);--sk-text-warning: hsl(var(--sk-text-warning-hsl));--sk-nav-height: 6rem;--sk-page-padding-top: 6rem;--sk-page-padding-bottom: 6rem;--sk-page-padding-side: 2.4rem;--sk-thick-border-width: .3rem;--sk-border-radius: .4rem;--sk-page-main-width: 80rem;--sk-font: "Overpass", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;--sk-font-mono: "Fira Mono", monospace;--sk-text-xxl: 3.6rem;--sk-text-xl: 3rem;--sk-text-l: 2.4rem;--sk-text-m: 2rem;--sk-text-s: 1.6rem;--sk-text-xs: 1.3rem;--sk-line-max-width: 84rem;--m: 10px}@media only screen and (prefers-color-scheme: dark){:root{color-scheme:dark;--sk-back-1: hsl(0, 0%, 10%);--sk-back-2: hsl(0, 0%, 18%);--sk-back-3: hsl(var(--sk-back-3-hsl));--sk-back-4: hsl(0, 0%, 22%);--sk-back-5: hsl(0, 0%, 40%);--sk-back-translucent: hsla(0, 0%, 100%, .1);--sk-theme-1-hsl: hsl(38.77deg 71.8% 58.64%);--sk-theme-2-hsl: 240, 8%, 44%;--sk-theme-3-hsl: 204, 100%, 63%;--sk-text-1: hsl(0, 0%, 90%);--sk-text-2: hsl(0, 0%, 80%);--sk-text-3: hsl(0, 0%, 65%);--sk-text-4: hsl(0, 0%, 45%);--sk-text-translucent: hsla(0, 0%, 100%, .9);--sk-scrollbar: rgba(255, 255, 255, .3);--sk-back-3-hsl: 0, 0%, 14%;--sk-theme-1-variant: hsl(202, 88%, 66%);--sk-theme-2-variant: hsl(240, 8%, 35%);--sk-theme-3-variant: hsl(204, 100%, 50%);--sk-text-warning-hsl: 32, 67%, 56%;--sk-code-ts-bg: var(--sk-back-2);--sk-code-bg: var(--sk-back-3);--sk-code-base: hsl(45, 7%, 75%);--sk-code-comment: hsl(0, 0%, 55%);--sk-code-keyword: hsl(204, 88%, 65%);--sk-code-function: hsl(19, 67%, 75%);--sk-code-string: hsl(41, 37%, 68%);--sk-code-number: hsl(120, 100%, 25%);--sk-code-template-string: hsl(2, 80%, 47%);--sk-code-tags: var(--sk-code-function);--sk-code-important: var(--sk-code-string);--sk-code-diff-base: hsla(0, 0%, 100%, .5);--sk-code-diff-inserted: hsl(120, 46%, 48%);--sk-code-diff-removed: hsl(2, 64%, 70%);--toggle-dark: block;--toggle-light: none;--sdt-bg-main: #585858;--sdt-shadow-color: #333;--sdt-color: #eee;--sdt-clock-color: var(--sdt-color);--sdt-clock-color-hover: var(--sdt-color);--sdt-clock-time-bg: transparent;--sdt-clock-time-bg-hover: transparent;--sdt-clock-disabled: #b22222;--sdt-clock-disabled-bg: var(--sdt-bg-main);--sdt-clock-selected-bg: var(--sdt-bg-selected);--sdt-header-color: #eee;--sdt-bg-selected: #e1ac4a;--sdt-table-disabled-date: #b22222;--sdt-table-disabled-date-bg: var(--sdt-bg-main);--sdt-table-data-bg-hover: #777;--sdt-table-selected-bg: var(--sdt-bg-selected);--sdt-header-btn-bg-hover: #777;--sdt-color-selected: #fff;--sdt-table-today-indicator: #ccc;--sdt-clock-bg: #999;--sdt-today-bg: #e4a124;--sdt-today-color: #fff;--sdt-clear-color: #666;--sdt-clear-bg: #ddd;--sdt-clear-hover-color: #fff;--sdt-clear-hover-bg: #dc3545}html.light{color-scheme:light;--sk-back-3-hsl: 206, 64%, 98%;--sk-back-1: hsl(0, 0%, 100%);--sk-back-2: hsl(0, 0%, 100%);--sk-back-3: hsl(var(--sk-back-3-hsl));--sk-back-4: hsl(206, 44%, 93%);--sk-back-5: hsl(206, 20%, 80%);--sk-theme-1-hsl: 15, 100%, 50%;--sk-theme-2-hsl: 240, 8%, 44%;--sk-theme-3-hsl: 204, 100%, 63%;--sk-text-1: hsl(0, 0%, 13%);--sk-text-2: hsl(0, 0%, 27%);--sk-text-3: var(--sk-theme-2);--sk-text-4: hsl(0, 0%, 65%);--sk-scrollbar: rgba(0, 0, 0, .3);--sk-theme-1-variant: hsl(202, 100%, 40%);--sk-theme-2-variant: hsl(240, 8%, 44%);--sk-theme-3-variant: hsl(204, 100%, 63%);--sk-code-bg: var(--sk-back-3);--sk-code-ts-bg: var(--sk-back-1);--sk-code-base: hsl(45, 7%, 35%);--sk-code-comment: hsl(0, 0%, 41%);--sk-code-keyword: hsl(204, 88%, 35%);--sk-code-function: hsl(19, 67%, 44%);--sk-code-string: hsl(41, 37%, 38%);--sk-code-number: hsl(120, 100%, 25%);--sk-code-template-string: hsl(2, 80%, 47%);--sk-code-tags: var(--sk-code-function);--sk-code-important: var(--sk-code-string);--sk-code-diff-base: hsla(0, 0%, 0%, .6);--sk-code-diff-inserted: hsl(120, 100%, 25%);--sk-code-diff-removed: hsl(2, 80%, 47%);--sk-text-warning-hsl: 32, 95%, 44%;--sk-back-translucent: hsla(0, 0%, 0%, .1);--sk-text-translucent: hsla(0, 0%, 0%, .7);--toggle-dark: none;--toggle-light: block;--sdt-bg-main: #fff;--sdt-shadow-color: #ccc;--sdt-color: inherit;--sdt-clock-color: var(--sdt-color);--sdt-clock-color-hover: var(--sdt-color);--sdt-clock-time-bg: transparent;--sdt-clock-time-bg-hover: transparent;--sdt-clock-disabled: #b22222;--sdt-clock-disabled-bg: var(--sdt-bg-main);--sdt-header-color: #000;--sdt-bg-selected: #286090;--sdt-clock-selected-bg: var(--sdt-bg-selected);--sdt-table-disabled-date: #b22222;--sdt-table-disabled-date-bg: var(--sdt-bg-main);--sdt-table-data-bg-hover: #eee;--sdt-table-selected-bg: var(--sdt-bg-selected);--sdt-header-btn-bg-hover: #dfdfdf;--sdt-color-selected: #fff;--sdt-table-today-indicator: #ccc;--sdt-clock-bg: #eeeded;--sdt-today-bg: #1e486d;--sdt-today-color: #fff;--sdt-clear-color: #dc3545;--sdt-clear-bg: #fff;--sdt-clear-hover-color: #fff;--sdt-clear-hover-bg: #dc3545}}@media screen and (min-width: 480px){:root{--sk-page-padding-side: 3.2rem}}@media screen and (min-width: 768px){:root{--sk-text-xxl: 5.4rem;--sk-text-xl: 3.6rem;--sk-page-padding-top: 8rem;--sk-page-padding-side: 4.8rem}}@media screen and (prefers-color-scheme: light){:root{color-scheme:light;--sk-back-3-hsl: 206, 64%, 98%;--sk-back-1: hsl(0, 0%, 100%);--sk-back-2: hsl(0, 0%, 100%);--sk-back-3: hsl(var(--sk-back-3-hsl));--sk-back-4: hsl(206, 44%, 93%);--sk-back-5: hsl(206, 20%, 80%);--sk-theme-1-hsl: 15, 100%, 50%;--sk-theme-2-hsl: 240, 8%, 44%;--sk-theme-3-hsl: 204, 100%, 63%;--sk-text-1: hsl(0, 0%, 13%);--sk-text-2: hsl(0, 0%, 27%);--sk-text-3: var(--sk-theme-2);--sk-text-4: hsl(0, 0%, 65%);--sk-scrollbar: rgba(0, 0, 0, .3);--sk-theme-1-variant: hsl(202, 100%, 40%);--sk-theme-2-variant: hsl(240, 8%, 44%);--sk-theme-3-variant: hsl(204, 100%, 63%);--sk-code-bg: var(--sk-back-3);--sk-code-ts-bg: var(--sk-back-1);--sk-code-base: hsl(45, 7%, 35%);--sk-code-comment: hsl(0, 0%, 41%);--sk-code-keyword: hsl(204, 88%, 35%);--sk-code-function: hsl(19, 67%, 44%);--sk-code-string: hsl(41, 37%, 38%);--sk-code-number: hsl(120, 100%, 25%);--sk-code-template-string: hsl(2, 80%, 47%);--sk-code-tags: var(--sk-code-function);--sk-code-important: var(--sk-code-string);--sk-code-diff-base: hsla(0, 0%, 0%, .4);--sk-code-diff-inserted: hsl(120, 100%, 25%);--sk-code-diff-removed: hsl(2, 80%, 47%);--sk-text-warning-hsl: 32, 95%, 44%;--sk-back-translucent: hsla(0, 0%, 0%, .1);--sk-text-translucent: hsla(0, 0%, 0%, .7);--toggle-dark: none;--toggle-light: block;--sdt-bg-main: #fff;--sdt-shadow-color: #ccc;--sdt-color: inherit;--sdt-clock-color: var(--sdt-color);--sdt-clock-color-hover: var(--sdt-color);--sdt-clock-time-bg: transparent;--sdt-clock-time-bg-hover: transparent;--sdt-clock-disabled: #b22222;--sdt-clock-disabled-bg: var(--sdt-bg-main);--sdt-header-color: inherit;--sdt-bg-selected: #286090;--sdt-clock-selected-bg: var(--sdt-bg-selected);--sdt-table-disabled-date: #b22222;--sdt-table-disabled-date-bg: var(--sdt-bg-main);--sdt-table-data-bg-hover: #eee;--sdt-table-selected-bg: var(--sdt-bg-selected);--sdt-header-btn-bg-hover: #dfdfdf;--sdt-color-selected: #fff;--sdt-table-today-indicator: #ccc;--sdt-clock-bg: #eeeded;--sdt-today-bg: #1e486d;--sdt-today-color: #fff;--sdt-clear-color: #dc3545;--sdt-clear-bg: #fff;--sdt-clear-hover-color: #fff;--sdt-clear-hover-bg: #dc3545}html.dark{color-scheme:dark;--sk-back-1: hsl(0, 0%, 10%);--sk-back-2: hsl(0, 0%, 18%);--sk-back-3: hsl(var(--sk-back-3-hsl));--sk-back-4: hsl(0, 0%, 22%);--sk-back-5: hsl(0, 0%, 40%);--sk-back-translucent: hsla(0, 0%, 100%, .1);--sk-theme-1-hsl: 15, 100%, 55%;--sk-theme-2-hsl: 240, 8%, 44%;--sk-theme-3-hsl: 204, 100%, 63%;--sk-text-1: hsl(0, 0%, 90%);--sk-text-2: hsl(0, 0%, 80%);--sk-text-3: hsl(0, 0%, 65%);--sk-text-4: hsl(0, 0%, 45%);--sk-text-translucent: hsla(0, 0%, 100%, .9);--sk-scrollbar: rgba(255, 255, 255, .3);--sk-back-3-hsl: 0, 0%, 14%;--sk-theme-1-variant: hsl(202, 100%, 40%);--sk-theme-2-variant: hsl(240, 8%, 35%);--sk-theme-3-variant: hsl(204, 100%, 50%);--sk-text-warning-hsl: 32, 67%, 56%;--sk-code-ts-bg: var(--sk-back-2);--sk-code-bg: var(--sk-back-3);--sk-code-base: hsl(45, 7%, 75%);--sk-code-comment: hsl(0, 0%, 55%);--sk-code-keyword: hsl(204, 88%, 65%);--sk-code-function: hsl(19, 67%, 75%);--sk-code-string: hsl(41, 37%, 68%);--sk-code-number: hsl(120, 100%, 25%);--sk-code-template-string: hsl(2, 80%, 47%);--sk-code-tags: var(--sk-code-function);--sk-code-important: var(--sk-code-string);--sk-code-diff-base: hsla(0, 0%, 100%, .5);--sk-code-diff-inserted: hsl(120, 46%, 48%);--sk-code-diff-removed: hsl(2, 64%, 70%);--toggle-dark: block;--toggle-light: none;--sdt-bg-main: #585858;--sdt-shadow-color: #ccc;--sdt-color: #eee;--sdt-clock-color: var(--sdt-color);--sdt-clock-color-hover: var(--sdt-color);--sdt-clock-time-bg: transparent;--sdt-clock-time-bg-hover: transparent;--sdt-clock-disabled: #b22222;--sdt-clock-disabled-bg: var(--sdt-bg-main);--sdt-header-color: #eee;--sdt-bg-selected: #126cbb;--sdt-clock-selected-bg: var(--sdt-bg-selected);--sdt-table-disabled-date: #b22222;--sdt-table-disabled-date-bg: var(--sdt-bg-main);--sdt-table-data-bg-hover: #777;--sdt-table-selected-bg: var(--sdt-bg-selected);--sdt-header-btn-bg-hover: #777;--sdt-color-selected: #fff;--sdt-table-today-indicator: #ccc;--sdt-clock-bg: #999;--sdt-today-bg: #1e486d;--sdt-today-color: #fff;--sdt-clear-color: #666;--sdt-clear-bg: #ddd;--sdt-clear-hover-color: #fff;--sdt-clear-hover-bg: #dc3545}}.light-toggle{display:var(--toggle-light)}.dark-toggle{display:var(--toggle-dark)}@font-face{font-family:Overpass;font-style:normal;font-weight:300;src:local("Overpass Light "),local("Overpass-Light"),url(/svelty-picker/_app/immutable/assets/overpass-latin-300.3782c01a.woff2) format("woff2")}@font-face{font-family:Overpass;font-style:normal;font-weight:600;src:local("Overpass Bold "),local("Overpass-Bold"),url(/svelty-picker/_app/immutable/assets/overpass-latin-600.0ca25556.woff2) format("woff2")}@font-face{font-family:Fira Mono;font-style:normal;font-weight:400;src:local("Fira Mono Regular "),local("Fira Mono-Regular"),url(/svelty-picker/_app/immutable/assets/fira-mono-latin-400.8d4e0c52.woff2) format("woff2")}html{font-size:62.5%;-webkit-text-size-adjust:100%;-ms-overflow-style:-ms-autohiding-scrollbar;box-sizing:border-box;border-collapse:collapse}body{font-size:1.6rem;font-family:var(--sk-font);line-height:1.618;color:var(--sk-text-2);background-color:var(--sk-back-1);width:100%;-o-tab-size:2;tab-size:2;-moz-tab-size:2}*{box-sizing:inherit;margin:0;padding:0;scrollbar-width:thin;scrollbar-color:var(--sk-scrollbar) transparent;-webkit-overflow-scrolling:touch}*:focus-visible{outline:2px solid hsla(var(--sk-theme-1-hsl),.6);transition:.1s ease}p,ul,ol{margin:1em 0}a{position:relative;text-decoration:none;cursor:pointer;color:inherit}a:hover{text-decoration:underline}h6{font-size:var(--sk-text-xs)}h5,h4{font-size:var(--sk-text-s)}h3{font-size:var(--sk-text-m)}h2{font-size:var(--sk-text-l)}h1{font-size:var(--sk-text-xxl)}h1,h2,h3,h4,h5,h6{position:relative;font-weight:400;line-height:1.35;color:var(--sk-text-1)}strong{font-weight:600}code,kbd{font-size:var(--sk-text-xs);font-family:var(--sk-font-mono);line-height:1.7}code{position:relative;border-radius:.3em;white-space:nowrap;color:var(--sk-text-2);-webkit-font-smoothing:initial;padding:.4rem;margin:0 .2rem;top:-.1rem;background:var(--sk-back-4)}pre{overflow-x:auto}pre code{white-space:inherit;background-color:transparent;padding:0;margin:0;top:0;background:transparent}::-moz-selection{background:var(--sk-selection-color)}::selection{background:var(--sk-selection-color)}blockquote{position:relative;margin:1.6rem 0 2.4rem;padding:2rem 2.4rem 1.8rem;max-width:var(--sk-line-max-width)}blockquote p,blockquote ul{font-size:var(--sk-text-s)}blockquote :last-child{margin:0}button{font-family:inherit;font-size:inherit;background-color:transparent;border:none;color:currentColor;cursor:pointer}button[disabled]{opacity:.55;pointer-events:none}button>svg{position:relative;top:-.1rem;width:2rem!important;height:2rem!important;stroke:currentColor!important}a{position:relative;padding:0 0 1px;color:var(--sk-theme-1);color:color-mix(in hwb,var(--sk-theme-1) 100%,var(--sk-text-1) 25%)}table{width:100%;font-size:var(--sk-text-s)}td,th{text-align:left;border-bottom:1px solid #eee;padding:.4rem .8rem .4rem 0}table code,table span{white-space:pre}figcaption,.post aside{max-width:none;margin:0 auto;padding:1.6rem 0 0 .8rem;font:1.2rem/1.6 var(--sk-font-mono)}.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}.text h2{margin-top:7rem;border-bottom:1px solid var(--sk-back-4)}.text h3{margin-top:5rem}.text p,.text ol,.text ul{margin:1em 0}.text section{max-width:var(--sk-line-max-width);padding:0 0 0 1rem}.text section h2,.text section h3,.text section h4{margin-left:-1rem}.text code{padding:.2rem .4rem;margin:0 .2rem;top:-.1rem;background:var(--sk-back-4)}.text .code-block{position:relative}.text pre{margin:1em 0;width:100%;padding:1rem;box-shadow:inset 1px 1px 6px #1d56800f;box-sizing:border-box;background-color:var(--sk-code-bg);color:var(--sk-code-base);border-radius:var(--sk-border-radius);font-size:var(--sk-text-s);overflow-x:auto}.text pre code{padding:0;margin:0;top:0;background:transparent}.text p code{max-width:100%;display:inline-flex;overflow-x:auto;padding-top:0;padding-bottom:0}.text .code-block .filename{content:attr(data-file);display:block;width:100%;font-family:var(--sk-font-mono);font-size:1.2rem;font-weight:400;padding:1rem 1rem .8rem;color:var(--sk-text-2);background:var(--sk-back-4);border-radius:var(--sk-border-radius) var(--sk-border-radius) 0 0;box-sizing:border-box}.text .code-block pre{margin-top:0;border-radius:0 0 var(--sk-border-radius) var(--sk-border-radius)}.text a:where(:not(.permalink)){--color: hsla(var(--primary-hsl, var(--sk-theme-1-hsl)));color:var(--color);box-shadow:inset 0 -1px 0 0 var(--color);transition:box-shadow .1s ease-in-out}.text a:where(:not(.permalink)):hover{text-decoration:none;box-shadow:inset 0 -2px 0 0 var(--color)}.text a:where(:not(.permalink)) code{all:unset!important;color:inherit;background-color:transparent!important}.text pre a:hover{border-bottom:1px solid var(--sk-theme-1);text-decoration:none!important}.text pre.border{border-left:5px solid var(--sk-theme-2)}.text pre.language-diff code{color:var(--sk-code-diff-base)}.language-diff .inserted,.language-diff .deleted{position:relative}.language-diff .inserted{color:var(--sk-code-diff-inserted)}.language-diff .deleted{color:var(--sk-code-diff-removed);-webkit-user-select:none;-moz-user-select:none;user-select:none}.language-diff .inserted:before,.language-diff .deleted:before{position:absolute;left:-.6rem;top:-.2rem;font-size:1.2rem}.language-diff .inserted:before{content:"+"}.language-diff .deleted:before{content:"-"}.token.comment.wrapped{display:block;white-space:pre-wrap;padding-left:calc(var(--indent) + 2ch);text-indent:calc(-1 * var(--indent) - 2ch);min-height:1.35em}.api-section{background:var(--sk-back-4);padding:1rem;margin-bottom:1rem;max-width:var(--sk-line-max-width);border-radius:var(--sk-border-radius)}.ts-block{margin:1em 0;max-width:var(--sk-line-max-width);background:var(--sk-code-ts-bg);border-radius:var(--sk-border-radius);filter:drop-shadow(2px 2px 8px rgba(0,0,0,.08));overflow:hidden}.ts-block>pre{--shiki-color-background: var(--sk-code-ts-bg);margin:0;border-radius:0;box-shadow:none;background:var(--sk-code-ts-bg)}.ts-block .ts-block-property p,.ts-block-property pre{margin:1rem 0}.ts-block-property>pre{margin:0;padding-left:1rem;border-radius:0;box-shadow:none;border-top:1px solid var(--sk-back-4)}.ts-block-property-details{padding:0 1rem 0 2rem}.ts-block-property-details blockquote{margin:1rem 0}.ts-block-property-children{margin:0rem -1rem 0rem 1rem}.ts-block-property-bullets .tag{font-size:1.4rem;text-transform:uppercase;color:#666}.ts-block-property ul:last-child{margin-bottom:0}.text [id]{scroll-margin-top:calc(var(--sk-nav-height) + 4rem)}.text a.permalink{position:absolute!important;display:block;background:url(../icons/link.svg) 0 50% no-repeat;background-size:1em 1em;width:1.4em;height:1em;left:-1.3em;opacity:0;transition:opacity .2s;bottom:.25em}@media (min-width: 768px){.text a.permalink:focus,.text h2:hover a.permalink,.text h3:hover a.permalink,.text h4:hover a.permalink,.text h5:hover a.permalink,.text h6:hover a.permalink{opacity:1}}@media (max-width: 768px){.text a.permalink{transform:scale(.6);opacity:1;left:-1em}}.text ol,.text ul{--list-padding: 3rem;margin-left:var(--list-padding)}.text ul{list-style:none}.text ol{list-style:decimal}.text li{position:relative;max-width:calc(var(--sk-line-max-width) - var(--list-padding));line-height:1.5;margin:0 0 .5em}.text ul li:before{content:"";position:absolute;margin-top:.8rem;margin-left:-1.8rem;background-color:var(--sk-back-5);width:.6rem;height:.6rem;border-radius:2px;opacity:.7}.text table{margin:1em 0}.text small{font-size:var(--sk-text-s);float:right;pointer-events:all;color:var(--sk-theme-1);cursor:pointer}.text blockquote{--primary-hsl: var(--sk-theme-1-hsl);background-color:hsla(var(--primary-hsl),.02);color:var(--sk-text-1);border:1px solid hsl(var(--primary-hsl));border-radius:var(--sk-border-radius);padding:1rem;filter:drop-shadow(2px 2px 6px hsla(var(--primary-hsl),.2))}.text blockquote:before{content:"note";display:block;font-size:1.2rem;font-weight:600;text-transform:uppercase;color:hsl(var(--primary-hsl));margin-bottom:.5rem}.text blockquote :first-child{margin-top:0}.text blockquote :last-child{margin-bottom:0}.text blockquote.deprecated{--primary-hsl: var(--sk-text-warning-hsl)}.text blockquote.deprecated:before{content:"Deprecated"}.text section a:hover{text-decoration:underline}.text section a code{color:inherit;background:rgba(255,62,0,.1)!important}.text ul ul{margin-bottom:0}body{--shiki-color-text: var(--sk-code-base);--shiki-color-background: var(--sk-back-3);--shiki-token-constant: var(--sk-code-base);--shiki-token-string: var(--sk-code-string);--shiki-token-comment: var(--sk-code-comment);--shiki-token-keyword: var(--sk-code-keyword);--shiki-token-parameter: var(--sk-code-base);--shiki-token-function: var(--sk-code-function);--shiki-token-string-expression: var(--sk-code-string);--shiki-token-punctuation: var(--sk-code-base);--shiki-token-link: var(--sk-code-keyword)}.token{color:var(--sk-code-base)}.token.tag,.token.attr-value .attr-equals{color:var(--sk-code-function)}.token.string,.token.interpolation-punctuation,.token.attr-value,.token.inserted{color:var(--sk-code-string)}.token.builtin,.token.function{color:var(--sk-code-function)}.token.keyword,.token.boolean{color:var(--sk-code-keyword)}.token.comment{color:var(--sk-code-comment)}.token.deleted{color:#fc9b9b}.token.template-string .interpolation-punctuation,.token.template-string .string{color:var(--sk-code-template-string)}.language-id,pre.twoslash .error,pre.twoslash .error-behind{display:none}pre.twoslash data-lsp{transition:border-color .3s;border-bottom:1px dotted transparent}pre.twoslash:hover data-lsp{border-color:var(--sk-back-5)}.flex{display:flex;gap:16px}.inline-flex{display:inline-flex;gap:8px}.items-center{align-items:center}.toc.svelte-1iuyc2v.svelte-1iuyc2v{padding-left:0}.toc.svelte-1iuyc2v li.svelte-1iuyc2v{display:block;line-height:1.2;margin:0 0 1em}div.svelte-1iuyc2v.svelte-1iuyc2v{display:flex;flex-direction:row;padding:.2rem 3rem;margin:0 -3rem}div.active.svelte-1iuyc2v.svelte-1iuyc2v{color:#fff;text-decoration:underline}a.svelte-1iuyc2v.svelte-1iuyc2v{display:flex;flex:1 1 auto;position:relative;color:var(--sk-text-2);border-bottom:none;font-size:1.6rem;align-items:center;justify-content:flex-start;padding:0}div.active.svelte-1iuyc2v a.svelte-1iuyc2v{color:orange}a.svelte-1iuyc2v.svelte-1iuyc2v:hover{color:var(--sk-text-1)}.svelte-progress-bar.svelte-1rjlpd{position:fixed;top:0;left:0;height:3px;transition:width .21s ease-in-out}.svelte-progress-bar-hiding.svelte-1rjlpd{transition:top .8s ease;top:-8px}.svelte-progress-bar-leader.svelte-1rjlpd{position:absolute;top:0;right:0;height:5px;width:100px;transform:rotate(2.5deg) translateY(-4px);box-shadow:0 0 8px}.theme-toggle.svelte-13r8zzi>svg.svelte-13r8zzi{width:32px;height:32px}aside.svelte-1tdygp0{padding:32px;background-color:var(--sk-back-1);transition:transform .3s ease-in-out,box-shadow .3s ease-in-out}aside.opened.svelte-1tdygp0{transform:translate(0)}@media screen and (max-width: 1023px){aside.svelte-1tdygp0{z-index:15;top:0;position:absolute;transform:translate(-100%);bottom:0;overflow-y:auto}aside.opened.svelte-1tdygp0{box-shadow:0 20px 20px #ccc}}main.svelte-1tdygp0{flex:1 1 0}.home-link.svelte-1tdygp0{font-size:24px;font-weight:700}.header.svelte-1tdygp0{padding:16px;justify-content:space-between;border-bottom:2px solid var(--sk-back-3)}.fullbody.svelte-1tdygp0{min-height:100vh;display:flex;flex-flow:column} diff --git a/docs/_app/immutable/assets/_layout.bfb7888c.css b/docs/_app/immutable/assets/_layout.bfb7888c.css new file mode 100644 index 0000000..6dca998 --- /dev/null +++ b/docs/_app/immutable/assets/_layout.bfb7888c.css @@ -0,0 +1 @@ +.visible{visibility:visible}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.z-10{z-index:10}.my-10{margin-top:2.5rem;margin-bottom:2.5rem}.my-4{margin-top:1rem;margin-bottom:1rem}.mt-2{margin-top:.5rem}.block{display:block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.w-full{width:100%}.flex-1{flex:1 1 0%}.flex-auto{flex:1 1 auto}.border-collapse{border-collapse:collapse}.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))}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-stretch{align-items:stretch}.justify-end{justify-content:flex-end}.gap-10{gap:2.5rem}.gap-4{gap:1rem}.gap-8{gap:2rem}.border{border-width:1px}.p-2{padding:.5rem}.p-4{padding:1rem}.text-center{text-align:center}.text-xl{font-size:1.25rem;line-height:1.75rem}.leading-4{line-height:1rem}.underline{text-decoration-line:underline}.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)}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{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}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}h1{font-size:var(--font-size-5);font-weight:var(--font-weight-bold);margin-bottom:var(--spacing-12)}h2{font-size:var(--font-size-4);font-weight:var(--font-weight-semibold)}body{margin:0;font-weight:var(--font-weight-normal);background-color:var(--colour-brand)}code{counter-reset:step;counter-increment:step 0}.shiki{border-radius:var(--spacing-1);padding:var(--spacing-6) var(--spacing-4);margin:var(--spacing-4) auto var(--spacing-18);box-shadow:var(--shadow-elevation-medium);overflow-x:auto;max-width:var(--max-width-full)}.highlight-line{display:inline-block;background-color:var(--colour-code-background-highlighted);width:calc(var(--max-width-full) + var(--spacing-4));border-left:var(--spacing-1) solid var(--colour-code-line-highlight);margin-left:calc(-1 * var(--spacing-1))}:root{--colour-brand: hsl(193 67% 34%);--colour-light: hsl(7 53% 97%);--colour-code-line-numbers: hsl(219 14% 71% / .8);--colour-code-line-highlight: hsl(34 96% 55%);--colour-code-background-hue: 220;--colour-code-background-saturation: 13%;--colour-code-background-lightness: 18%;--colour-code-background-highlighted: hsl( var(--colour-code-background-hue) var(--colour-code-background-saturation) calc(var(--colour-code-background-lightness) + 5%) );--spacing-px: 1px;--spacing-px-2: 2px;--spacing-0: 0;--spacing-1: .25rem;--spacing-2: .5rem;--spacing-4: 1rem;--spacing-6: 1.5rem;--spacing-12: 3rem;--spacing-18: 4.5rem;--max-width-wrapper: 48rem;--max-width-full: 100%;--font-size-root: 16px;--font-size-3: 1.563rem;--font-size-4: 1.953rem;--font-size-5: 2.441rem;--font-size-6: 3.052rem;--font-weight-normal: 400;--font-weight-semibold: 600;--font-weight-bold: 700;--line-height-normal: 1.5;--shadow-color: 194deg 84% 18%;--shadow-elevation-medium: -1px 1px 1.6px hsl(var(--shadow-color) / .36), -3.3px 3.3px 5.3px -.8px hsl(var(--shadow-color) / .36), -8.2px 8.2px 13px -1.7px hsl(var(--shadow-color) / .36), -20px 20px 31.8px -2.5px hsl(var(--shadow-color) / .36)}code .line:before{display:inline-block;content:counter(step);counter-increment:step;width:var(--spacing-6);margin-right:var(--spacing-6);text-align:right;font-variant-numeric:tabular-nums;color:var(--colour-line-numbers)}input{padding:6px;border-radius:4px}@media (min-width: 640px){.sm\:block{display:block}.sm\:inline{display:inline}}@media (min-width: 1024px){.lg\:hidden{display:none}.lg\:flex-none{flex:none}.lg\:p-10{padding:2.5rem}.lg\:text-left{text-align:left}}:root{--sk-back-h: 206;--sk-selection-color: hsla(204, 100%, 63%, .3);--sk-focus-outline: 0 0 0 2px hsla(var(--sk-theme-1-hsl), .6);--sk-theme-1: var(--sk-theme-1-hsl);--sk-theme-2: var(--sk-theme-2-hsl);--sk-theme-3: var(--sk-theme-3-hsl);--sk-text-warning: hsl(var(--sk-text-warning-hsl));--sk-nav-height: 6rem;--sk-page-padding-top: 6rem;--sk-page-padding-bottom: 6rem;--sk-page-padding-side: 2.4rem;--sk-thick-border-width: .3rem;--sk-border-radius: .4rem;--sk-page-main-width: 80rem;--sk-font: "Overpass", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;--sk-font-mono: "Fira Mono", monospace;--sk-text-xxl: 3.6rem;--sk-text-xl: 3rem;--sk-text-l: 2.4rem;--sk-text-m: 2rem;--sk-text-s: 1.6rem;--sk-text-xs: 1.3rem;--sk-line-max-width: 84rem;--m: 10px}@media only screen and (prefers-color-scheme: dark){:root{color-scheme:dark;--sk-back-1: hsl(0, 0%, 10%);--sk-back-2: hsl(0, 0%, 18%);--sk-back-3: hsl(var(--sk-back-3-hsl));--sk-back-4: hsl(0, 0%, 22%);--sk-back-5: hsl(0, 0%, 40%);--sk-back-translucent: hsla(0, 0%, 100%, .1);--sk-theme-1-hsl: hsl(38.77deg 71.8% 58.64%);--sk-theme-2-hsl: 240, 8%, 44%;--sk-theme-3-hsl: 204, 100%, 63%;--sk-text-1: hsl(0, 0%, 90%);--sk-text-2: hsl(0, 0%, 80%);--sk-text-3: hsl(0, 0%, 65%);--sk-text-4: hsl(0, 0%, 45%);--sk-text-translucent: hsla(0, 0%, 100%, .9);--sk-scrollbar: rgba(255, 255, 255, .3);--sk-back-3-hsl: 0, 0%, 14%;--sk-theme-1-variant: hsl(202, 88%, 66%);--sk-theme-2-variant: hsl(240, 8%, 35%);--sk-theme-3-variant: hsl(204, 100%, 50%);--sk-text-warning-hsl: 32, 67%, 56%;--sk-code-ts-bg: var(--sk-back-2);--sk-code-bg: var(--sk-back-3);--sk-code-base: hsl(45, 7%, 75%);--sk-code-comment: hsl(0, 0%, 55%);--sk-code-keyword: hsl(204, 88%, 65%);--sk-code-function: hsl(19, 67%, 75%);--sk-code-string: hsl(41, 37%, 68%);--sk-code-number: hsl(120, 100%, 25%);--sk-code-template-string: hsl(2, 80%, 47%);--sk-code-tags: var(--sk-code-function);--sk-code-important: var(--sk-code-string);--sk-code-diff-base: hsla(0, 0%, 100%, .5);--sk-code-diff-inserted: hsl(120, 46%, 48%);--sk-code-diff-removed: hsl(2, 64%, 70%);--toggle-dark: block;--toggle-light: none;--sdt-bg-main: #585858;--sdt-shadow-color: #333;--sdt-color: #eee;--sdt-clock-color: var(--sdt-color);--sdt-clock-color-hover: var(--sdt-color);--sdt-clock-time-bg: transparent;--sdt-clock-time-bg-hover: transparent;--sdt-clock-disabled: #b22222;--sdt-clock-disabled-bg: var(--sdt-bg-main);--sdt-clock-selected-bg: var(--sdt-bg-selected);--sdt-header-color: #eee;--sdt-bg-selected: #e1ac4a;--sdt-table-disabled-date: #b22222;--sdt-table-disabled-date-bg: var(--sdt-bg-main);--sdt-table-data-bg-hover: #777;--sdt-table-selected-bg: var(--sdt-bg-selected);--sdt-header-btn-bg-hover: #777;--sdt-color-selected: #fff;--sdt-table-today-indicator: #ccc;--sdt-clock-bg: #999;--sdt-today-bg: #e4a124;--sdt-today-color: #fff;--sdt-clear-color: #666;--sdt-clear-bg: #ddd;--sdt-clear-hover-color: #fff;--sdt-clear-hover-bg: #dc3545}html.light{color-scheme:light;--sk-back-3-hsl: 206, 64%, 98%;--sk-back-1: hsl(0, 0%, 100%);--sk-back-2: hsl(0, 0%, 100%);--sk-back-3: hsl(var(--sk-back-3-hsl));--sk-back-4: hsl(206, 44%, 93%);--sk-back-5: hsl(206, 20%, 80%);--sk-theme-1-hsl: 15, 100%, 50%;--sk-theme-2-hsl: 240, 8%, 44%;--sk-theme-3-hsl: 204, 100%, 63%;--sk-text-1: hsl(0, 0%, 13%);--sk-text-2: hsl(0, 0%, 27%);--sk-text-3: var(--sk-theme-2);--sk-text-4: hsl(0, 0%, 65%);--sk-scrollbar: rgba(0, 0, 0, .3);--sk-theme-1-variant: hsl(202, 100%, 40%);--sk-theme-2-variant: hsl(240, 8%, 44%);--sk-theme-3-variant: hsl(204, 100%, 63%);--sk-code-bg: var(--sk-back-3);--sk-code-ts-bg: var(--sk-back-1);--sk-code-base: hsl(45, 7%, 35%);--sk-code-comment: hsl(0, 0%, 41%);--sk-code-keyword: hsl(204, 88%, 35%);--sk-code-function: hsl(19, 67%, 44%);--sk-code-string: hsl(41, 37%, 38%);--sk-code-number: hsl(120, 100%, 25%);--sk-code-template-string: hsl(2, 80%, 47%);--sk-code-tags: var(--sk-code-function);--sk-code-important: var(--sk-code-string);--sk-code-diff-base: hsla(0, 0%, 0%, .6);--sk-code-diff-inserted: hsl(120, 100%, 25%);--sk-code-diff-removed: hsl(2, 80%, 47%);--sk-text-warning-hsl: 32, 95%, 44%;--sk-back-translucent: hsla(0, 0%, 0%, .1);--sk-text-translucent: hsla(0, 0%, 0%, .7);--toggle-dark: none;--toggle-light: block;--sdt-bg-main: #fff;--sdt-shadow-color: #ccc;--sdt-color: inherit;--sdt-clock-color: var(--sdt-color);--sdt-clock-color-hover: var(--sdt-color);--sdt-clock-time-bg: transparent;--sdt-clock-time-bg-hover: transparent;--sdt-clock-disabled: #b22222;--sdt-clock-disabled-bg: var(--sdt-bg-main);--sdt-header-color: #000;--sdt-bg-selected: #286090;--sdt-clock-selected-bg: var(--sdt-bg-selected);--sdt-table-disabled-date: #b22222;--sdt-table-disabled-date-bg: var(--sdt-bg-main);--sdt-table-data-bg-hover: #eee;--sdt-table-selected-bg: var(--sdt-bg-selected);--sdt-header-btn-bg-hover: #dfdfdf;--sdt-color-selected: #fff;--sdt-table-today-indicator: #ccc;--sdt-clock-bg: #eeeded;--sdt-today-bg: #1e486d;--sdt-today-color: #fff;--sdt-clear-color: #dc3545;--sdt-clear-bg: #fff;--sdt-clear-hover-color: #fff;--sdt-clear-hover-bg: #dc3545}}@media screen and (min-width: 480px){:root{--sk-page-padding-side: 3.2rem}}@media screen and (min-width: 768px){:root{--sk-text-xxl: 5.4rem;--sk-text-xl: 3.6rem;--sk-page-padding-top: 8rem;--sk-page-padding-side: 4.8rem}}@media screen and (prefers-color-scheme: light){:root{color-scheme:light;--sk-back-3-hsl: 206, 64%, 98%;--sk-back-1: hsl(0, 0%, 100%);--sk-back-2: hsl(0, 0%, 100%);--sk-back-3: hsl(var(--sk-back-3-hsl));--sk-back-4: hsl(206, 44%, 93%);--sk-back-5: hsl(206, 20%, 80%);--sk-theme-1-hsl: 15, 100%, 50%;--sk-theme-2-hsl: 240, 8%, 44%;--sk-theme-3-hsl: 204, 100%, 63%;--sk-text-1: hsl(0, 0%, 13%);--sk-text-2: hsl(0, 0%, 27%);--sk-text-3: var(--sk-theme-2);--sk-text-4: hsl(0, 0%, 65%);--sk-scrollbar: rgba(0, 0, 0, .3);--sk-theme-1-variant: hsl(202, 100%, 40%);--sk-theme-2-variant: hsl(240, 8%, 44%);--sk-theme-3-variant: hsl(204, 100%, 63%);--sk-code-bg: var(--sk-back-3);--sk-code-ts-bg: var(--sk-back-1);--sk-code-base: hsl(45, 7%, 35%);--sk-code-comment: hsl(0, 0%, 41%);--sk-code-keyword: hsl(204, 88%, 35%);--sk-code-function: hsl(19, 67%, 44%);--sk-code-string: hsl(41, 37%, 38%);--sk-code-number: hsl(120, 100%, 25%);--sk-code-template-string: hsl(2, 80%, 47%);--sk-code-tags: var(--sk-code-function);--sk-code-important: var(--sk-code-string);--sk-code-diff-base: hsla(0, 0%, 0%, .4);--sk-code-diff-inserted: hsl(120, 100%, 25%);--sk-code-diff-removed: hsl(2, 80%, 47%);--sk-text-warning-hsl: 32, 95%, 44%;--sk-back-translucent: hsla(0, 0%, 0%, .1);--sk-text-translucent: hsla(0, 0%, 0%, .7);--toggle-dark: none;--toggle-light: block;--sdt-bg-main: #fff;--sdt-shadow-color: #ccc;--sdt-color: inherit;--sdt-clock-color: var(--sdt-color);--sdt-clock-color-hover: var(--sdt-color);--sdt-clock-time-bg: transparent;--sdt-clock-time-bg-hover: transparent;--sdt-clock-disabled: #b22222;--sdt-clock-disabled-bg: var(--sdt-bg-main);--sdt-header-color: inherit;--sdt-bg-selected: #286090;--sdt-clock-selected-bg: var(--sdt-bg-selected);--sdt-table-disabled-date: #b22222;--sdt-table-disabled-date-bg: var(--sdt-bg-main);--sdt-table-data-bg-hover: #eee;--sdt-table-selected-bg: var(--sdt-bg-selected);--sdt-header-btn-bg-hover: #dfdfdf;--sdt-color-selected: #fff;--sdt-table-today-indicator: #ccc;--sdt-clock-bg: #eeeded;--sdt-today-bg: #1e486d;--sdt-today-color: #fff;--sdt-clear-color: #dc3545;--sdt-clear-bg: #fff;--sdt-clear-hover-color: #fff;--sdt-clear-hover-bg: #dc3545}html.dark{color-scheme:dark;--sk-back-1: hsl(0, 0%, 10%);--sk-back-2: hsl(0, 0%, 18%);--sk-back-3: hsl(var(--sk-back-3-hsl));--sk-back-4: hsl(0, 0%, 22%);--sk-back-5: hsl(0, 0%, 40%);--sk-back-translucent: hsla(0, 0%, 100%, .1);--sk-theme-1-hsl: 15, 100%, 55%;--sk-theme-2-hsl: 240, 8%, 44%;--sk-theme-3-hsl: 204, 100%, 63%;--sk-text-1: hsl(0, 0%, 90%);--sk-text-2: hsl(0, 0%, 80%);--sk-text-3: hsl(0, 0%, 65%);--sk-text-4: hsl(0, 0%, 45%);--sk-text-translucent: hsla(0, 0%, 100%, .9);--sk-scrollbar: rgba(255, 255, 255, .3);--sk-back-3-hsl: 0, 0%, 14%;--sk-theme-1-variant: hsl(202, 100%, 40%);--sk-theme-2-variant: hsl(240, 8%, 35%);--sk-theme-3-variant: hsl(204, 100%, 50%);--sk-text-warning-hsl: 32, 67%, 56%;--sk-code-ts-bg: var(--sk-back-2);--sk-code-bg: var(--sk-back-3);--sk-code-base: hsl(45, 7%, 75%);--sk-code-comment: hsl(0, 0%, 55%);--sk-code-keyword: hsl(204, 88%, 65%);--sk-code-function: hsl(19, 67%, 75%);--sk-code-string: hsl(41, 37%, 68%);--sk-code-number: hsl(120, 100%, 25%);--sk-code-template-string: hsl(2, 80%, 47%);--sk-code-tags: var(--sk-code-function);--sk-code-important: var(--sk-code-string);--sk-code-diff-base: hsla(0, 0%, 100%, .5);--sk-code-diff-inserted: hsl(120, 46%, 48%);--sk-code-diff-removed: hsl(2, 64%, 70%);--toggle-dark: block;--toggle-light: none;--sdt-bg-main: #585858;--sdt-shadow-color: #ccc;--sdt-color: #eee;--sdt-clock-color: var(--sdt-color);--sdt-clock-color-hover: var(--sdt-color);--sdt-clock-time-bg: transparent;--sdt-clock-time-bg-hover: transparent;--sdt-clock-disabled: #b22222;--sdt-clock-disabled-bg: var(--sdt-bg-main);--sdt-header-color: #eee;--sdt-bg-selected: #126cbb;--sdt-clock-selected-bg: var(--sdt-bg-selected);--sdt-table-disabled-date: #b22222;--sdt-table-disabled-date-bg: var(--sdt-bg-main);--sdt-table-data-bg-hover: #777;--sdt-table-selected-bg: var(--sdt-bg-selected);--sdt-header-btn-bg-hover: #777;--sdt-color-selected: #fff;--sdt-table-today-indicator: #ccc;--sdt-clock-bg: #999;--sdt-today-bg: #1e486d;--sdt-today-color: #fff;--sdt-clear-color: #666;--sdt-clear-bg: #ddd;--sdt-clear-hover-color: #fff;--sdt-clear-hover-bg: #dc3545}}.light-toggle{display:var(--toggle-light)}.dark-toggle{display:var(--toggle-dark)}@font-face{font-family:Overpass;font-style:normal;font-weight:300;src:local("Overpass Light "),local("Overpass-Light"),url(/svelty-picker/_app/immutable/assets/overpass-latin-300.3782c01a.woff2) format("woff2")}@font-face{font-family:Overpass;font-style:normal;font-weight:600;src:local("Overpass Bold "),local("Overpass-Bold"),url(/svelty-picker/_app/immutable/assets/overpass-latin-600.0ca25556.woff2) format("woff2")}@font-face{font-family:Fira Mono;font-style:normal;font-weight:400;src:local("Fira Mono Regular "),local("Fira Mono-Regular"),url(/svelty-picker/_app/immutable/assets/fira-mono-latin-400.8d4e0c52.woff2) format("woff2")}html{font-size:62.5%;-webkit-text-size-adjust:100%;-ms-overflow-style:-ms-autohiding-scrollbar;box-sizing:border-box;border-collapse:collapse}body{font-size:1.6rem;font-family:var(--sk-font);line-height:1.618;color:var(--sk-text-2);background-color:var(--sk-back-1);width:100%;-o-tab-size:2;tab-size:2;-moz-tab-size:2}*{box-sizing:inherit;margin:0;padding:0;scrollbar-width:thin;scrollbar-color:var(--sk-scrollbar) transparent;-webkit-overflow-scrolling:touch}*:focus-visible{outline:2px solid hsla(var(--sk-theme-1-hsl),.6);transition:.1s ease}p,ul,ol{margin:1em 0}a{position:relative;text-decoration:none;cursor:pointer;color:inherit}a:hover{text-decoration:underline}h6{font-size:var(--sk-text-xs)}h5,h4{font-size:var(--sk-text-s)}h3{font-size:var(--sk-text-m)}h2{font-size:var(--sk-text-l)}h1{font-size:var(--sk-text-xxl)}h1,h2,h3,h4,h5,h6{position:relative;font-weight:400;line-height:1.35;color:var(--sk-text-1)}strong{font-weight:600}code,kbd{font-size:var(--sk-text-xs);font-family:var(--sk-font-mono);line-height:1.7}code{position:relative;border-radius:.3em;white-space:nowrap;color:var(--sk-text-2);-webkit-font-smoothing:initial;padding:.4rem;margin:0 .2rem;top:-.1rem;background:var(--sk-back-4)}pre{overflow-x:auto}pre code{white-space:inherit;background-color:transparent;padding:0;margin:0;top:0;background:transparent}::-moz-selection{background:var(--sk-selection-color)}::selection{background:var(--sk-selection-color)}blockquote{position:relative;margin:1.6rem 0 2.4rem;padding:2rem 2.4rem 1.8rem;max-width:var(--sk-line-max-width)}blockquote p,blockquote ul{font-size:var(--sk-text-s)}blockquote :last-child{margin:0}button{font-family:inherit;font-size:inherit;background-color:transparent;border:none;color:currentColor;cursor:pointer}button[disabled]{opacity:.55;pointer-events:none}button>svg{position:relative;top:-.1rem;width:2rem!important;height:2rem!important;stroke:currentColor!important}a{position:relative;padding:0 0 1px;color:var(--sk-theme-1);color:color-mix(in hwb,var(--sk-theme-1) 100%,var(--sk-text-1) 25%)}table{width:100%;font-size:var(--sk-text-s)}td,th{text-align:left;border-bottom:1px solid #eee;padding:.4rem .8rem .4rem 0}table code,table span{white-space:pre}figcaption,.post aside{max-width:none;margin:0 auto;padding:1.6rem 0 0 .8rem;font:1.2rem/1.6 var(--sk-font-mono)}.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}.text h2{margin-top:7rem;border-bottom:1px solid var(--sk-back-4)}.text h3{margin-top:5rem}.text p,.text ol,.text ul{margin:1em 0}.text section{max-width:var(--sk-line-max-width);padding:0 0 0 1rem}.text section h2,.text section h3,.text section h4{margin-left:-1rem}.text code{padding:.2rem .4rem;margin:0 .2rem;top:-.1rem;background:var(--sk-back-4)}.text .code-block{position:relative}.text pre{margin:1em 0;width:100%;padding:1rem;box-shadow:inset 1px 1px 6px #1d56800f;box-sizing:border-box;background-color:var(--sk-code-bg);color:var(--sk-code-base);border-radius:var(--sk-border-radius);font-size:var(--sk-text-s);overflow-x:auto}.text pre code{padding:0;margin:0;top:0;background:transparent}.text p code{max-width:100%;display:inline-flex;overflow-x:auto;padding-top:0;padding-bottom:0}.text .code-block .filename{content:attr(data-file);display:block;width:100%;font-family:var(--sk-font-mono);font-size:1.2rem;font-weight:400;padding:1rem 1rem .8rem;color:var(--sk-text-2);background:var(--sk-back-4);border-radius:var(--sk-border-radius) var(--sk-border-radius) 0 0;box-sizing:border-box}.text .code-block pre{margin-top:0;border-radius:0 0 var(--sk-border-radius) var(--sk-border-radius)}.text a:where(:not(.permalink)){--color: hsla(var(--primary-hsl, var(--sk-theme-1-hsl)));color:var(--color);box-shadow:inset 0 -1px 0 0 var(--color);transition:box-shadow .1s ease-in-out}.text a:where(:not(.permalink)):hover{text-decoration:none;box-shadow:inset 0 -2px 0 0 var(--color)}.text a:where(:not(.permalink)) code{all:unset!important;color:inherit;background-color:transparent!important}.text pre a:hover{border-bottom:1px solid var(--sk-theme-1);text-decoration:none!important}.text pre.border{border-left:5px solid var(--sk-theme-2)}.text pre.language-diff code{color:var(--sk-code-diff-base)}.language-diff .inserted,.language-diff .deleted{position:relative}.language-diff .inserted{color:var(--sk-code-diff-inserted)}.language-diff .deleted{color:var(--sk-code-diff-removed);-webkit-user-select:none;-moz-user-select:none;user-select:none}.language-diff .inserted:before,.language-diff .deleted:before{position:absolute;left:-.6rem;top:-.2rem;font-size:1.2rem}.language-diff .inserted:before{content:"+"}.language-diff .deleted:before{content:"-"}.token.comment.wrapped{display:block;white-space:pre-wrap;padding-left:calc(var(--indent) + 2ch);text-indent:calc(-1 * var(--indent) - 2ch);min-height:1.35em}.api-section{background:var(--sk-back-4);padding:1rem;margin-bottom:1rem;max-width:var(--sk-line-max-width);border-radius:var(--sk-border-radius)}.ts-block{margin:1em 0;max-width:var(--sk-line-max-width);background:var(--sk-code-ts-bg);border-radius:var(--sk-border-radius);filter:drop-shadow(2px 2px 8px rgba(0,0,0,.08));overflow:hidden}.ts-block>pre{--shiki-color-background: var(--sk-code-ts-bg);margin:0;border-radius:0;box-shadow:none;background:var(--sk-code-ts-bg)}.ts-block .ts-block-property p,.ts-block-property pre{margin:1rem 0}.ts-block-property>pre{margin:0;padding-left:1rem;border-radius:0;box-shadow:none;border-top:1px solid var(--sk-back-4)}.ts-block-property-details{padding:0 1rem 0 2rem}.ts-block-property-details blockquote{margin:1rem 0}.ts-block-property-children{margin:0rem -1rem 0rem 1rem}.ts-block-property-bullets .tag{font-size:1.4rem;text-transform:uppercase;color:#666}.ts-block-property ul:last-child{margin-bottom:0}.text [id]{scroll-margin-top:calc(var(--sk-nav-height) + 4rem)}.text a.permalink{position:absolute!important;display:block;background:url(../icons/link.svg) 0 50% no-repeat;background-size:1em 1em;width:1.4em;height:1em;left:-1.3em;opacity:0;transition:opacity .2s;bottom:.25em}@media (min-width: 768px){.text a.permalink:focus,.text h2:hover a.permalink,.text h3:hover a.permalink,.text h4:hover a.permalink,.text h5:hover a.permalink,.text h6:hover a.permalink{opacity:1}}@media (max-width: 768px){.text a.permalink{transform:scale(.6);opacity:1;left:-1em}}.text ol,.text ul{--list-padding: 3rem;margin-left:var(--list-padding)}.text ul{list-style:none}.text ol{list-style:decimal}.text li{position:relative;max-width:calc(var(--sk-line-max-width) - var(--list-padding));line-height:1.5;margin:0 0 .5em}.text ul li:before{content:"";position:absolute;margin-top:.8rem;margin-left:-1.8rem;background-color:var(--sk-back-5);width:.6rem;height:.6rem;border-radius:2px;opacity:.7}.text table{margin:1em 0}.text small{font-size:var(--sk-text-s);float:right;pointer-events:all;color:var(--sk-theme-1);cursor:pointer}.text blockquote{--primary-hsl: var(--sk-theme-1-hsl);background-color:hsla(var(--primary-hsl),.02);color:var(--sk-text-1);border:1px solid hsl(var(--primary-hsl));border-radius:var(--sk-border-radius);padding:1rem;filter:drop-shadow(2px 2px 6px hsla(var(--primary-hsl),.2))}.text blockquote:before{content:"note";display:block;font-size:1.2rem;font-weight:600;text-transform:uppercase;color:hsl(var(--primary-hsl));margin-bottom:.5rem}.text blockquote :first-child{margin-top:0}.text blockquote :last-child{margin-bottom:0}.text blockquote.deprecated{--primary-hsl: var(--sk-text-warning-hsl)}.text blockquote.deprecated:before{content:"Deprecated"}.text section a:hover{text-decoration:underline}.text section a code{color:inherit;background:rgba(255,62,0,.1)!important}.text ul ul{margin-bottom:0}body{--shiki-color-text: var(--sk-code-base);--shiki-color-background: var(--sk-back-3);--shiki-token-constant: var(--sk-code-base);--shiki-token-string: var(--sk-code-string);--shiki-token-comment: var(--sk-code-comment);--shiki-token-keyword: var(--sk-code-keyword);--shiki-token-parameter: var(--sk-code-base);--shiki-token-function: var(--sk-code-function);--shiki-token-string-expression: var(--sk-code-string);--shiki-token-punctuation: var(--sk-code-base);--shiki-token-link: var(--sk-code-keyword)}.token{color:var(--sk-code-base)}.token.tag,.token.attr-value .attr-equals{color:var(--sk-code-function)}.token.string,.token.interpolation-punctuation,.token.attr-value,.token.inserted{color:var(--sk-code-string)}.token.builtin,.token.function{color:var(--sk-code-function)}.token.keyword,.token.boolean{color:var(--sk-code-keyword)}.token.comment{color:var(--sk-code-comment)}.token.deleted{color:#fc9b9b}.token.template-string .interpolation-punctuation,.token.template-string .string{color:var(--sk-code-template-string)}.language-id,pre.twoslash .error,pre.twoslash .error-behind{display:none}pre.twoslash data-lsp{transition:border-color .3s;border-bottom:1px dotted transparent}pre.twoslash:hover data-lsp{border-color:var(--sk-back-5)}.flex{display:flex;gap:16px}.inline-flex{display:inline-flex;gap:8px}.items-center{align-items:center}.toc.svelte-1iuyc2v.svelte-1iuyc2v{padding-left:0}.toc.svelte-1iuyc2v li.svelte-1iuyc2v{display:block;line-height:1.2;margin:0 0 1em}div.svelte-1iuyc2v.svelte-1iuyc2v{display:flex;flex-direction:row;padding:.2rem 3rem;margin:0 -3rem}div.active.svelte-1iuyc2v.svelte-1iuyc2v{color:#fff;text-decoration:underline}a.svelte-1iuyc2v.svelte-1iuyc2v{display:flex;flex:1 1 auto;position:relative;color:var(--sk-text-2);border-bottom:none;font-size:1.6rem;align-items:center;justify-content:flex-start;padding:0}div.active.svelte-1iuyc2v a.svelte-1iuyc2v{color:orange}a.svelte-1iuyc2v.svelte-1iuyc2v:hover{color:var(--sk-text-1)}.svelte-progress-bar.svelte-1rjlpd{position:fixed;top:0;left:0;height:3px;transition:width .21s ease-in-out}.svelte-progress-bar-hiding.svelte-1rjlpd{transition:top .8s ease;top:-8px}.svelte-progress-bar-leader.svelte-1rjlpd{position:absolute;top:0;right:0;height:5px;width:100px;transform:rotate(2.5deg) translateY(-4px);box-shadow:0 0 8px}.theme-toggle.svelte-13r8zzi>svg.svelte-13r8zzi{width:32px;height:32px}aside.svelte-1tdygp0{padding:32px;background-color:var(--sk-back-1);transition:transform .3s ease-in-out,box-shadow .3s ease-in-out}aside.opened.svelte-1tdygp0{transform:translate(0)}@media screen and (max-width: 1023px){aside.svelte-1tdygp0{z-index:15;top:0;position:absolute;transform:translate(-100%);bottom:0;overflow-y:auto}aside.opened.svelte-1tdygp0{box-shadow:0 20px 20px #ccc}}main.svelte-1tdygp0{flex:1 1 0}.home-link.svelte-1tdygp0{font-size:24px;font-weight:700}.header.svelte-1tdygp0{padding:16px;justify-content:space-between;border-bottom:2px solid var(--sk-back-3)}.fullbody.svelte-1tdygp0{min-height:100vh;display:flex;flex-flow:column} diff --git a/docs/_app/immutable/chunks/4.ae3ce863.js b/docs/_app/immutable/chunks/4.cfac87d8.js similarity index 99% rename from docs/_app/immutable/chunks/4.ae3ce863.js rename to docs/_app/immutable/chunks/4.cfac87d8.js index 8c90c27..e9c9d23 100644 --- a/docs/_app/immutable/chunks/4.ae3ce863.js +++ b/docs/_app/immutable/chunks/4.cfac87d8.js @@ -1,4 +1,4 @@ -var Cp=Object.defineProperty;var Mp=(s,e,t)=>e in s?Cp(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t;var qe=(s,e,t)=>(Mp(s,typeof e!="symbol"?e+"":e,t),t),Tp=(s,e,t)=>{if(!e.has(s))throw TypeError("Cannot "+t)};var nl=(s,e,t)=>{if(e.has(s))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(s):e.set(s,t)};var As=(s,e,t)=>(Tp(s,e,"access private method"),t);import{a as Ep,d as Dp,s as Op}from"./data.96bdd225.js";import{s as be,f as A,g as C,h as P,d as b,j as k,i as x,r as de,u as pt,l as R,a as X,m as I,c as Z,v as ne,w as y,y as ue,n as re,C as Mt,e as he,k as it,K as Cr,L as vo,E as Tt,F as Et,G as Dt,M as Mr,N as Pf,p as Xe,H as $f,z as yo,A as Ce,x as Me,O as Dn,D as Tr,P as ia,B as ze,t as ns,Q as ei,R as Bf,J as rn,S as sa,T as Nf,o as wo,U as tr,q as ra,V as Pp,W as la}from"./scheduler.3ecd3668.js";import{S as _e,i as ke,a as S,t as M,g as we,c as Se,h as oa,b as W,d as K,m as q,e as U,f as ln,n as aa,l as $p}from"./index.bf4ded2a.js";import{M as Bp,f as Np}from"./Markdown.9ba80254.js";import{n as Lp}from"./stores.a33f95b2.js";import{e as Te,u as Rp,d as Ip}from"./each.514658f0.js";import{w as lt,r as zp,k as jp}from"./singletons.6cd333b4.js";import{_ as Cn}from"./preload-helper.07ba51e7.js";import{s as ha}from"./index.d6de77cf.js";function ca(s,e){const t={},n={},i={$$scope:1};let r=s.length;for(;r--;){const l=s[r],o=e[r];if(o){for(const a in l)a in o||(n[a]=1);for(const a in o)i[a]||(t[a]=o[a],i[a]=1);s[r]=o}else for(const a in l)i[a]=1}for(const l in n)l in t||(t[l]=void 0);return t}function fa(s){return typeof s=="object"&&s!==null?s:{}}async function Vp({params:s}){const e=Ep(Dp,s.slug);return{title:e.title,slug:s.slug,repl:e.files}}const $w=Object.freeze(Object.defineProperty({__proto__:null,load:Vp},Symbol.toStringTag,{value:"Module"}));function ua(s,e,t){const n=s.slice();return n[3]=e[t],n[5]=t,n}function da(s){let e,t=s[3]+"",n,i,r,l;function o(){return s[2](s[5])}return{c(){e=A("button"),n=R(t),i=X(),this.h()},l(a){e=C(a,"BUTTON",{class:!0});var h=P(e);n=I(h,t),i=Z(h),h.forEach(b),this.h()},h(){k(e,"class","svelte-o6j61a"),ne(e,"selected",s[0]===s[5])},m(a,h){x(a,e,h),y(e,n),y(e,i),r||(l=ue(e,"click",o),r=!0)},p(a,h){s=a,h&2&&t!==(t=s[3]+"")&&re(n,t),h&1&&ne(e,"selected",s[0]===s[5])},d(a){a&&b(e),r=!1,l()}}}function Hp(s){let e,t=Te(s[1]),n=[];for(let i=0;it(0,i=l);return s.$$set=l=>{"labels"in l&&t(1,n=l.labels),"offset"in l&&t(0,i=l.offset)},[i,n,r]}class Wp extends _e{constructor(e){super(),ke(this,e,Fp,Hp,be,{labels:1,offset:0})}}class De{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,n){let i=[];return this.decompose(0,e,i,2),n.length&&n.decompose(0,n.length,i,3),this.decompose(t,this.length,i,1),on.from(i,this.length-(t-e)+n.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){let n=[];return this.decompose(e,t,n,0),on.from(n,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),n=this.length-this.scanIdentical(e,-1),i=new Yi(this),r=new Yi(e);for(let l=t,o=t;;){if(i.next(l),r.next(l),l=0,i.lineBreak!=r.lineBreak||i.done!=r.done||i.value!=r.value)return!1;if(o+=i.value.length,i.done||o>=n)return!0}}iter(e=1){return new Yi(this,e)}iterRange(e,t=this.length){return new Lf(this,e,t)}iterLines(e,t){let n;if(e==null)n=this.iter();else{t==null&&(t=this.lines+1);let i=this.line(e).from;n=this.iterRange(i,Math.max(i,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new Rf(n)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?De.empty:e.length<=32?new Je(e):on.from(Je.split(e,[]))}}class Je extends De{constructor(e,t=qp(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,n,i){for(let r=0;;r++){let l=this.text[r],o=i+l.length;if((t?n:o)>=e)return new Up(i,o,n,l);i=o+1,n++}}decompose(e,t,n,i){let r=e<=0&&t>=this.length?this:new Je(pa(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(i&1){let l=n.pop(),o=qs(r.text,l.text.slice(),0,r.length);if(o.length<=32)n.push(new Je(o,l.length+r.length));else{let a=o.length>>1;n.push(new Je(o.slice(0,a)),new Je(o.slice(a)))}}else n.push(r)}replace(e,t,n){if(!(n instanceof Je))return super.replace(e,t,n);let i=qs(this.text,qs(n.text,pa(this.text,0,e)),t),r=this.length+n.length-(t-e);return i.length<=32?new Je(i,r):on.from(Je.split(i,[]),r)}sliceString(e,t=this.length,n=` +var Cp=Object.defineProperty;var Mp=(s,e,t)=>e in s?Cp(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t;var qe=(s,e,t)=>(Mp(s,typeof e!="symbol"?e+"":e,t),t),Tp=(s,e,t)=>{if(!e.has(s))throw TypeError("Cannot "+t)};var nl=(s,e,t)=>{if(e.has(s))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(s):e.set(s,t)};var As=(s,e,t)=>(Tp(s,e,"access private method"),t);import{a as Ep,d as Dp,s as Op}from"./data.9fbe07b0.js";import{s as be,f as A,g as C,h as P,d as b,j as k,i as x,r as de,u as pt,l as R,a as X,m as I,c as Z,v as ne,w as y,y as ue,n as re,C as Mt,e as he,k as it,J as Cr,K as vo,E as Tt,F as Et,G as Dt,L as Mr,M as Pf,p as Xe,H as $f,z as yo,A as Ce,x as Me,N as Dn,D as Tr,O as ia,B as ze,t as ns,P as ei,Q as Bf,R as rn,S as sa,T as Nf,o as wo,U as tr,q as ra,V as Pp,W as la}from"./scheduler.6381a9b9.js";import{S as _e,i as ke,a as S,t as M,g as we,c as Se,f as oa,b as W,d as K,m as q,e as U,h as ln,n as aa,l as $p}from"./index.cf31950d.js";import{M as Bp,f as Np}from"./Markdown.6ab83375.js";import{n as Lp}from"./stores.dfe68f11.js";import{e as Te,u as Rp,d as Ip}from"./each.31dbf577.js";import{w as lt,r as zp,k as jp}from"./singletons.52689373.js";import{_ as Cn}from"./preload-helper.07ba51e7.js";import{s as ha}from"./index.93a0d223.js";function ca(s,e){const t={},n={},i={$$scope:1};let r=s.length;for(;r--;){const l=s[r],o=e[r];if(o){for(const a in l)a in o||(n[a]=1);for(const a in o)i[a]||(t[a]=o[a],i[a]=1);s[r]=o}else for(const a in l)i[a]=1}for(const l in n)l in t||(t[l]=void 0);return t}function fa(s){return typeof s=="object"&&s!==null?s:{}}async function Vp({params:s}){const e=Ep(Dp,s.slug);return{title:e.title,slug:s.slug,repl:e.files}}const $w=Object.freeze(Object.defineProperty({__proto__:null,load:Vp},Symbol.toStringTag,{value:"Module"}));function ua(s,e,t){const n=s.slice();return n[3]=e[t],n[5]=t,n}function da(s){let e,t=s[3]+"",n,i,r,l;function o(){return s[2](s[5])}return{c(){e=A("button"),n=R(t),i=X(),this.h()},l(a){e=C(a,"BUTTON",{class:!0});var h=P(e);n=I(h,t),i=Z(h),h.forEach(b),this.h()},h(){k(e,"class","svelte-o6j61a"),ne(e,"selected",s[0]===s[5])},m(a,h){x(a,e,h),y(e,n),y(e,i),r||(l=ue(e,"click",o),r=!0)},p(a,h){s=a,h&2&&t!==(t=s[3]+"")&&re(n,t),h&1&&ne(e,"selected",s[0]===s[5])},d(a){a&&b(e),r=!1,l()}}}function Hp(s){let e,t=Te(s[1]),n=[];for(let i=0;it(0,i=l);return s.$$set=l=>{"labels"in l&&t(1,n=l.labels),"offset"in l&&t(0,i=l.offset)},[i,n,r]}class Wp extends _e{constructor(e){super(),ke(this,e,Fp,Hp,be,{labels:1,offset:0})}}class De{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,n){let i=[];return this.decompose(0,e,i,2),n.length&&n.decompose(0,n.length,i,3),this.decompose(t,this.length,i,1),on.from(i,this.length-(t-e)+n.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){let n=[];return this.decompose(e,t,n,0),on.from(n,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),n=this.length-this.scanIdentical(e,-1),i=new Yi(this),r=new Yi(e);for(let l=t,o=t;;){if(i.next(l),r.next(l),l=0,i.lineBreak!=r.lineBreak||i.done!=r.done||i.value!=r.value)return!1;if(o+=i.value.length,i.done||o>=n)return!0}}iter(e=1){return new Yi(this,e)}iterRange(e,t=this.length){return new Lf(this,e,t)}iterLines(e,t){let n;if(e==null)n=this.iter();else{t==null&&(t=this.lines+1);let i=this.line(e).from;n=this.iterRange(i,Math.max(i,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new Rf(n)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?De.empty:e.length<=32?new Je(e):on.from(Je.split(e,[]))}}class Je extends De{constructor(e,t=qp(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,n,i){for(let r=0;;r++){let l=this.text[r],o=i+l.length;if((t?n:o)>=e)return new Up(i,o,n,l);i=o+1,n++}}decompose(e,t,n,i){let r=e<=0&&t>=this.length?this:new Je(pa(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(i&1){let l=n.pop(),o=qs(r.text,l.text.slice(),0,r.length);if(o.length<=32)n.push(new Je(o,l.length+r.length));else{let a=o.length>>1;n.push(new Je(o.slice(0,a)),new Je(o.slice(a)))}}else n.push(r)}replace(e,t,n){if(!(n instanceof Je))return super.replace(e,t,n);let i=qs(this.text,qs(n.text,pa(this.text,0,e)),t),r=this.length+n.length-(t-e);return i.length<=32?new Je(i,r):on.from(Je.split(i,[]),r)}sliceString(e,t=this.length,n=` `){let i="";for(let r=0,l=0;r<=t&&le&&l&&(i+=n),er&&(i+=o.slice(Math.max(0,e-r),t-r)),r=a+1}return i}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let n=[],i=-1;for(let r of e)n.push(r),i+=r.length+1,n.length==32&&(t.push(new Je(n,i)),n=[],i=-1);return i>-1&&t.push(new Je(n,i)),t}}class on extends De{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let n of e)this.lines+=n.lines}lineInner(e,t,n,i){for(let r=0;;r++){let l=this.children[r],o=i+l.length,a=n+l.lines-1;if((t?a:o)>=e)return l.lineInner(e,t,n,i);i=o+1,n=a+1}}decompose(e,t,n,i){for(let r=0,l=0;l<=t&&r=l){let h=i&((l<=e?1:0)|(a>=t?2:0));l>=e&&a<=t&&!h?n.push(o):o.decompose(e-l,t-l,n,h)}l=a+1}}replace(e,t,n){if(n.lines=r&&t<=o){let a=l.replace(e-r,t-r,n),h=this.lines-l.lines+a.lines;if(a.lines>5-1&&a.lines>h>>5+1){let c=this.children.slice();return c[i]=a,new on(c,this.length-(t-e)+n.length)}return super.replace(r,o,a)}r=o+1}return super.replace(e,t,n)}sliceString(e,t=this.length,n=` `){let i="";for(let r=0,l=0;re&&r&&(i+=n),el&&(i+=o.sliceString(e-l,t-l,n)),l=a+1}return i}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof on))return 0;let n=0,[i,r,l,o]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;i+=t,r+=t){if(i==l||r==o)return n;let a=this.children[i],h=e.children[r];if(a!=h)return n+a.scanIdentical(h,t);n+=a.length+1}}static from(e,t=e.reduce((n,i)=>n+i.length+1,-1)){let n=0;for(let d of e)n+=d.lines;if(n<32){let d=[];for(let p of e)p.flatten(d);return new Je(d,t)}let i=Math.max(32,n>>5),r=i<<1,l=i>>1,o=[],a=0,h=-1,c=[];function f(d){let p;if(d.lines>r&&d instanceof on)for(let g of d.children)f(g);else d.lines>l&&(a>l||!a)?(u(),o.push(d)):d instanceof Je&&a&&(p=c[c.length-1])instanceof Je&&d.lines+p.lines<=32?(a+=d.lines,h+=d.length+1,c[c.length-1]=new Je(p.text.concat(d.text),p.length+1+d.length)):(a+d.lines>i&&u(),a+=d.lines,h+=d.length+1,c.push(d))}function u(){a!=0&&(o.push(c.length==1?c[0]:on.from(c,h)),h=-1,a=c.length=0)}for(let d of e)f(d);return u(),o.length==1?o[0]:new on(o,t)}}De.empty=new Je([""],0);function qp(s){let e=-1;for(let t of s)e+=t.length+1;return e}function qs(s,e,t=0,n=1e9){for(let i=0,r=0,l=!0;r=t&&(a>n&&(o=o.slice(0,n-i)),i0?1:(e instanceof Je?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let n=this.nodes.length-1,i=this.nodes[n],r=this.offsets[n],l=r>>1,o=i instanceof Je?i.text.length:i.children.length;if(l==(t>0?o:0)){if(n==0)return this.done=!0,this.value="",this;t>0&&this.offsets[n-1]++,this.nodes.pop(),this.offsets.pop()}else if((r&1)==(t>0?0:1)){if(this.offsets[n]+=t,e==0)return this.lineBreak=!0,this.value=` `,this;e--}else if(i instanceof Je){let a=i.text[l+(t<0?-1:0)];if(this.offsets[n]+=t,a.length>Math.max(0,e))return this.value=e==0?a:t>0?a.slice(e):a.slice(0,a.length-e),this;e-=a.length}else{let a=i.children[l+(t<0?-1:0)];e>a.length?(e-=a.length,this.offsets[n]+=t):(t<0&&this.offsets[n]--,this.nodes.push(a),this.offsets.push(t>0?1:(a instanceof Je?a.text.length:a.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class Lf{constructor(e,t,n){this.value="",this.done=!1,this.cursor=new Yi(e,t>n?-1:1),this.pos=t>n?e.length:0,this.from=Math.min(t,n),this.to=Math.max(t,n)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let n=t<0?this.pos-this.from:this.to-this.pos;e>n&&(e=n),n-=e;let{value:i}=this.cursor.next(e);return this.pos+=(i.length+e)*t,this.value=i.length<=n?i:t<0?i.slice(i.length-n):i.slice(0,n),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class Rf{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:n,value:i}=this.inner.next(e);return t?(this.done=!0,this.value=""):n?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=i,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(De.prototype[Symbol.iterator]=function(){return this.iter()},Yi.prototype[Symbol.iterator]=Lf.prototype[Symbol.iterator]=Rf.prototype[Symbol.iterator]=function(){return this});class Up{constructor(e,t,n,i){this.from=e,this.to=t,this.number=n,this.text=i}get length(){return this.to-this.from}}let vi="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,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,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(s=>s?parseInt(s,36):1);for(let s=1;ss)return vi[e-1]<=s;return!1}function ga(s){return s>=127462&&s<=127487}const ma=8205;function Ct(s,e,t=!0,n=!0){return(t?If:Jp)(s,e,n)}function If(s,e,t){if(e==s.length)return e;e&&zf(s.charCodeAt(e))&&jf(s.charCodeAt(e-1))&&e--;let n=Xi(s,e);for(e+=Cl(n);e=0&&ga(Xi(s,l));)r++,l-=2;if(r%2==0)break;e+=2}else break}return e}function Jp(s,e,t){for(;e>0;){let n=If(s,e-2,t);if(n=56320&&s<57344}function jf(s){return s>=55296&&s<56320}function Xi(s,e){let t=s.charCodeAt(e);if(!jf(t)||e+1==s.length)return t;let n=s.charCodeAt(e+1);return zf(n)?(t-55296<<10)+(n-56320)+65536:t}function Bw(s){return s<=65535?String.fromCharCode(s):(s-=65536,String.fromCharCode((s>>10)+55296,(s&1023)+56320))}function Cl(s){return s<65536?1:2}const Ml=/\r\n?|\n/;var bt=function(s){return s[s.Simple=0]="Simple",s[s.TrackDel=1]="TrackDel",s[s.TrackBefore=2]="TrackBefore",s[s.TrackAfter=3]="TrackAfter",s}(bt||(bt={}));class pn{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;te)return r+(e-i);r+=o}else{if(n!=bt.Simple&&h>=e&&(n==bt.TrackDel&&ie||n==bt.TrackBefore&&ie))return null;if(h>e||h==e&&t<0&&!o)return e==i||t<0?r:r+a;r+=a}i=h}if(e>i)throw new RangeError(`Position ${e} is out of range for changeset of length ${i}`);return r}touchesRange(e,t=e){for(let n=0,i=0;n=0&&i<=t&&o>=e)return it?"cover":!0;i=o}return!1}toString(){let e="";for(let t=0;t=0?":"+i:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(t=>typeof t!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new pn(e)}static create(e){return new pn(e)}}class Ye extends pn{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return Tl(this,(t,n,i,r,l)=>e=e.replace(i,i+(n-t),l),!1),e}mapDesc(e,t=!1){return El(this,e,t,!0)}invert(e){let t=this.sections.slice(),n=[];for(let i=0,r=0;i=0){t[i]=o,t[i+1]=l;let a=i>>1;for(;n.length0&&In(n,t,r.text),r.forward(c),o+=c}let h=e[l++];for(;o>1].toJSON()))}return e}static of(e,t,n){let i=[],r=[],l=0,o=null;function a(c=!1){if(!c&&!i.length)return;lu||f<0||u>t)throw new RangeError(`Invalid change range ${f} to ${u} (in doc of length ${t})`);let p=d?typeof d=="string"?De.of(d.split(n||Ml)):d:De.empty,g=p.length;if(f==u&&g==0)return;fl&&at(i,f-l,-1),at(i,u-f,g),In(r,i,p),l=u}}return h(e),a(!o),o}static empty(e){return new Ye(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let t=[],n=[];for(let i=0;io&&typeof l!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(r.length==1)t.push(r[0],0);else{for(;n.length=0&&t<=0&&t==s[i+1]?s[i]+=e:e==0&&s[i]==0?s[i+1]+=t:n?(s[i]+=e,s[i+1]+=t):s.push(e,t)}function In(s,e,t){if(t.length==0)return;let n=e.length-2>>1;if(n>1])),!(t||l==s.sections.length||s.sections[l+1]<0);)o=s.sections[l++],a=s.sections[l++];e(i,h,r,c,f),i=h,r=c}}}function El(s,e,t,n=!1){let i=[],r=n?[]:null,l=new is(s),o=new is(e);for(let a=-1;;)if(l.ins==-1&&o.ins==-1){let h=Math.min(l.len,o.len);at(i,h,-1),l.forward(h),o.forward(h)}else if(o.ins>=0&&(l.ins<0||a==l.i||l.off==0&&(o.len=0&&a=0){let h=0,c=l.len;for(;c;)if(o.ins==-1){let f=Math.min(c,o.len);h+=f,c-=f,o.forward(f)}else if(o.ins==0&&o.lena||l.ins>=0&&l.len>a)&&(o||n.length>h),r.forward2(a),l.forward(a)}}}}class is{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i>1;return t>=e.length?De.empty:e[t]}textBit(e){let{inserted:t}=this.set,n=this.i-2>>1;return n>=t.length&&!e?De.empty:t[n].slice(this.off,e==null?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){this.ins==-1?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class ni{constructor(e,t,n){this.from=e,this.to=t,this.flags=n}get anchor(){return this.flags&16?this.to:this.from}get head(){return this.flags&16?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&4?-1:this.flags&8?1:0}get bidiLevel(){let e=this.flags&3;return e==3?null:e}get goalColumn(){let e=this.flags>>5;return e==33554431?void 0:e}map(e,t=-1){let n,i;return this.empty?n=i=e.mapPos(this.from,t):(n=e.mapPos(this.from,1),i=e.mapPos(this.to,-1)),n==this.from&&i==this.to?this:new ni(n,i,this.flags)}extend(e,t=e){if(e<=this.anchor&&t>=this.anchor)return F.range(e,t);let n=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return F.range(this.anchor,n)}eq(e){return this.anchor==e.anchor&&this.head==e.head}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||typeof e.anchor!="number"||typeof e.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return F.range(e.anchor,e.head)}static create(e,t,n){return new ni(e,t,n)}}class F{constructor(e,t){this.ranges=e,this.mainIndex=t}map(e,t=-1){return e.empty?this:F.create(this.ranges.map(n=>n.map(e,t)),this.mainIndex)}eq(e){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let t=0;te.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||typeof e.main!="number"||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new F(e.ranges.map(t=>ni.fromJSON(t)),e.main)}static single(e,t=e){return new F([F.range(e,t)],0)}static create(e,t=0){if(e.length==0)throw new RangeError("A selection needs at least one range");for(let n=0,i=0;ie?4:0)|r)}static normalized(e,t=0){let n=e[t];e.sort((i,r)=>i.from-r.from),t=e.indexOf(n);for(let i=1;ir.head?F.range(a,o):F.range(o,a))}}return new F(e,t)}}function Hf(s,e){for(let t of s.ranges)if(t.to>e)throw new RangeError("Selection points outside of document")}let So=0;class le{constructor(e,t,n,i,r){this.combine=e,this.compareInput=t,this.compare=n,this.isStatic=i,this.id=So++,this.default=e([]),this.extensions=typeof r=="function"?r(this):r}static define(e={}){return new le(e.combine||(t=>t),e.compareInput||((t,n)=>t===n),e.compare||(e.combine?(t,n)=>t===n:xo),!!e.static,e.enables)}of(e){return new Us([],this,0,e)}compute(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new Us(e,this,1,t)}computeN(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new Us(e,this,2,t)}from(e,t){return t||(t=n=>n),this.compute([e],n=>t(n.field(e)))}}function xo(s,e){return s==e||s.length==e.length&&s.every((t,n)=>t===e[n])}class Us{constructor(e,t,n,i){this.dependencies=e,this.facet=t,this.type=n,this.value=i,this.id=So++}dynamicSlot(e){var t;let n=this.value,i=this.facet.compareInput,r=this.id,l=e[r]>>1,o=this.type==2,a=!1,h=!1,c=[];for(let f of this.dependencies)f=="doc"?a=!0:f=="selection"?h=!0:((t=e[f.id])!==null&&t!==void 0?t:1)&1||c.push(e[f.id]);return{create(f){return f.values[l]=n(f),1},update(f,u){if(a&&u.docChanged||h&&(u.docChanged||u.selection)||Dl(f,c)){let d=n(f);if(o?!ba(d,f.values[l],i):!i(d,f.values[l]))return f.values[l]=d,1}return 0},reconfigure:(f,u)=>{let d,p=u.config.address[r];if(p!=null){let g=ir(u,p);if(this.dependencies.every(m=>m instanceof le?u.facet(m)===f.facet(m):m instanceof Pt?u.field(m,!1)==f.field(m,!1):!0)||(o?ba(d=n(f),g,i):i(d=n(f),g)))return f.values[l]=g,0}else d=n(f);return f.values[l]=d,1}}}}function ba(s,e,t){if(s.length!=e.length)return!1;for(let n=0;ns[a.id]),i=t.map(a=>a.type),r=n.filter(a=>!(a&1)),l=s[e.id]>>1;function o(a){let h=[];for(let c=0;cn===i),e);return e.provide&&(t.provides=e.provide(t)),t}create(e){let t=e.facet(_a).find(n=>n.field==this);return((t==null?void 0:t.create)||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:n=>(n.values[t]=this.create(n),1),update:(n,i)=>{let r=n.values[t],l=this.updateF(r,i);return this.compareF(r,l)?0:(n.values[t]=l,1)},reconfigure:(n,i)=>i.config.address[this.id]!=null?(n.values[t]=i.field(this),0):(n.values[t]=this.create(n),1)}}init(e){return[this,_a.of({field:this,create:e})]}get extension(){return this}}const ti={lowest:4,low:3,default:2,high:1,highest:0};function Vi(s){return e=>new Ff(e,s)}const Er={highest:Vi(ti.highest),high:Vi(ti.high),default:Vi(ti.default),low:Vi(ti.low),lowest:Vi(ti.lowest)};class Ff{constructor(e,t){this.inner=e,this.prec=t}}class Nt{of(e){return new Ol(this,e)}reconfigure(e){return Nt.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class Ol{constructor(e,t){this.compartment=e,this.inner=t}}class nr{constructor(e,t,n,i,r,l){for(this.base=e,this.compartments=t,this.dynamicSlots=n,this.address=i,this.staticValues=r,this.facets=l,this.statusTemplate=[];this.statusTemplate.length>1]}static resolve(e,t,n){let i=[],r=Object.create(null),l=new Map;for(let u of Yp(e,t,l))u instanceof Pt?i.push(u):(r[u.facet.id]||(r[u.facet.id]=[])).push(u);let o=Object.create(null),a=[],h=[];for(let u of i)o[u.id]=h.length<<1,h.push(d=>u.slot(d));let c=n==null?void 0:n.config.facets;for(let u in r){let d=r[u],p=d[0].facet,g=c&&c[u]||[];if(d.every(m=>m.type==0))if(o[p.id]=a.length<<1|1,xo(g,d))a.push(n.facet(p));else{let m=p.combine(d.map(_=>_.value));a.push(n&&p.compare(m,n.facet(p))?n.facet(p):m)}else{for(let m of d)m.type==0?(o[m.id]=a.length<<1|1,a.push(m.value)):(o[m.id]=h.length<<1,h.push(_=>m.dynamicSlot(_)));o[p.id]=h.length<<1,h.push(m=>Gp(m,p,d))}}let f=h.map(u=>u(o));return new nr(e,l,f,o,a,r)}}function Yp(s,e,t){let n=[[],[],[],[],[]],i=new Map;function r(l,o){let a=i.get(l);if(a!=null){if(a<=o)return;let h=n[a].indexOf(l);h>-1&&n[a].splice(h,1),l instanceof Ol&&t.delete(l.compartment)}if(i.set(l,o),Array.isArray(l))for(let h of l)r(h,o);else if(l instanceof Ol){if(t.has(l.compartment))throw new RangeError("Duplicate use of compartment in extensions");let h=e.get(l.compartment)||l.inner;t.set(l.compartment,h),r(h,o)}else if(l instanceof Ff)r(l.inner,l.prec);else if(l instanceof Pt)n[o].push(l),l.provides&&r(l.provides,o);else if(l instanceof Us)n[o].push(l),l.facet.extensions&&r(l.facet.extensions,ti.default);else{let h=l.extension;if(!h)throw new Error(`Unrecognized extension value in extension set (${l}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);r(h,o)}}return r(s,ti.default),n.reduce((l,o)=>l.concat(o))}function Zi(s,e){if(e&1)return 2;let t=e>>1,n=s.status[t];if(n==4)throw new Error("Cyclic dependency between fields and/or facets");if(n&2)return n;s.status[t]=4;let i=s.computeSlot(s,s.config.dynamicSlots[t]);return s.status[t]=2|i}function ir(s,e){return e&1?s.config.staticValues[e>>1]:s.values[e>>1]}const Wf=le.define(),qf=le.define({combine:s=>s.some(e=>e),static:!0}),Uf=le.define({combine:s=>s.length?s[0]:void 0,static:!0}),Kf=le.define(),Jf=le.define(),Gf=le.define(),Yf=le.define({combine:s=>s.length?s[0]:!1});class qn{constructor(e,t){this.type=e,this.value=t}static define(){return new Xp}}class Xp{of(e){return new qn(this,e)}}class Zp{constructor(e){this.map=e}of(e){return new Pe(this,e)}}class Pe{constructor(e,t){this.type=e,this.value=t}map(e){let t=this.type.map(this.value,e);return t===void 0?void 0:t==this.value?this:new Pe(this.type,t)}is(e){return this.type==e}static define(e={}){return new Zp(e.map||(t=>t))}static mapEffects(e,t){if(!e.length)return e;let n=[];for(let i of e){let r=i.map(t);r&&n.push(r)}return n}}Pe.reconfigure=Pe.define();Pe.appendConfig=Pe.define();class Ze{constructor(e,t,n,i,r,l){this.startState=e,this.changes=t,this.selection=n,this.effects=i,this.annotations=r,this.scrollIntoView=l,this._doc=null,this._state=null,n&&Hf(n,t.newLength),r.some(o=>o.type==Ze.time)||(this.annotations=r.concat(Ze.time.of(Date.now())))}static create(e,t,n,i,r,l){return new Ze(e,t,n,i,r,l)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let t=this.annotation(Ze.userEvent);return!!(t&&(t==e||t.length>e.length&&t.slice(0,e.length)==e&&t[e.length]=="."))}}Ze.time=qn.define();Ze.userEvent=qn.define();Ze.addToHistory=qn.define();Ze.remote=qn.define();function Qp(s,e){let t=[];for(let n=0,i=0;;){let r,l;if(n=s[n]))r=s[n++],l=s[n++];else if(i=0;i--){let r=n[i](s);r instanceof Ze?s=r:Array.isArray(r)&&r.length==1&&r[0]instanceof Ze?s=r[0]:s=Zf(e,yi(r),!1)}return s}function tg(s){let e=s.startState,t=e.facet(Gf),n=s;for(let i=t.length-1;i>=0;i--){let r=t[i](s);r&&Object.keys(r).length&&(n=Xf(n,Pl(e,r,s.changes.newLength),!0))}return n==s?s:Ze.create(e,s.changes,s.selection,n.effects,n.annotations,n.scrollIntoView)}const ng=[];function yi(s){return s==null?ng:Array.isArray(s)?s:[s]}var Sn=function(s){return s[s.Word=0]="Word",s[s.Space=1]="Space",s[s.Other=2]="Other",s}(Sn||(Sn={}));const ig=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let $l;try{$l=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function sg(s){if($l)return $l.test(s);for(let e=0;e"€"&&(t.toUpperCase()!=t.toLowerCase()||ig.test(t)))return!0}return!1}function rg(s){return e=>{if(!/\S/.test(e))return Sn.Space;if(sg(e))return Sn.Word;for(let t=0;t-1)return Sn.Word;return Sn.Other}}class ye{constructor(e,t,n,i,r,l){this.config=e,this.doc=t,this.selection=n,this.values=i,this.status=e.statusTemplate.slice(),this.computeSlot=r,l&&(l._state=this);for(let o=0;oi.set(a,o)),t=null),i.set(l.value.compartment,l.value.extension)):l.is(Pe.reconfigure)?(t=null,n=l.value):l.is(Pe.appendConfig)&&(t=null,n=yi(n).concat(l.value));let r;t?r=e.startState.values.slice():(t=nr.resolve(n,i,this),r=new ye(t,this.doc,this.selection,t.dynamicSlots.map(()=>null),(o,a)=>a.reconfigure(o,this),null).values),new ye(t,e.newDoc,e.newSelection,r,(l,o)=>o.update(l,e),e)}replaceSelection(e){return typeof e=="string"&&(e=this.toText(e)),this.changeByRange(t=>({changes:{from:t.from,to:t.to,insert:e},range:F.cursor(t.from+e.length)}))}changeByRange(e){let t=this.selection,n=e(t.ranges[0]),i=this.changes(n.changes),r=[n.range],l=yi(n.effects);for(let o=1;ol.spec.fromJSON(o,a)))}}return ye.create({doc:e.doc,selection:F.fromJSON(e.selection),extensions:t.extensions?i.concat([t.extensions]):i})}static create(e={}){let t=nr.resolve(e.extensions||[],new Map),n=e.doc instanceof De?e.doc:De.of((e.doc||"").split(t.staticFacet(ye.lineSeparator)||Ml)),i=e.selection?e.selection instanceof F?e.selection:F.single(e.selection.anchor,e.selection.head):F.single(0);return Hf(i,n.length),t.staticFacet(qf)||(i=i.asSingle()),new ye(t,n,i,t.dynamicSlots.map(()=>null),(r,l)=>l.create(r),null)}get tabSize(){return this.facet(ye.tabSize)}get lineBreak(){return this.facet(ye.lineSeparator)||` @@ -7,7 +7,7 @@ var Cp=Object.defineProperty;var Mp=(s,e,t)=>e in s?Cp(s,e,{enumerable:!0,config `;this.styleTag.textContent=r}}}var Vn={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},rs={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},Sg=typeof navigator<"u"&&/Mac/.test(navigator.platform),xg=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var st=0;st<10;st++)Vn[48+st]=Vn[96+st]=String(st);for(var st=1;st<=24;st++)Vn[st+111]="F"+st;for(var st=65;st<=90;st++)Vn[st]=String.fromCharCode(st+32),rs[st]=String.fromCharCode(st);for(var ol in Vn)rs.hasOwnProperty(ol)||(rs[ol]=Vn[ol]);function Ag(s){var e=Sg&&s.metaKey&&s.shiftKey&&!s.ctrlKey&&!s.altKey||xg&&s.shiftKey&&s.key&&s.key.length==1||s.key=="Unidentified",t=!e&&s.key||(s.shiftKey?rs:Vn)[s.keyCode]||s.key||"Unidentified";return t=="Esc"&&(t="Escape"),t=="Del"&&(t="Delete"),t=="Left"&&(t="ArrowLeft"),t=="Up"&&(t="ArrowUp"),t=="Right"&&(t="ArrowRight"),t=="Down"&&(t="ArrowDown"),t}function sr(s){let e;return s.nodeType==11?e=s.getSelection?s:s.ownerDocument:e=s,e.getSelection()}function jl(s,e){return e?s==e||s.contains(e.nodeType!=1?e.parentNode:e):!1}function Cg(s){let e=s.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function Ks(s,e){if(!e.anchorNode)return!1;try{return jl(s,e.anchorNode)}catch{return!1}}function ls(s){return s.nodeType==3?Ai(s,0,s.nodeValue.length).getClientRects():s.nodeType==1?s.getClientRects():[]}function rr(s,e,t,n){return t?La(s,e,t,n,-1)||La(s,e,t,n,1):!1}function lr(s){for(var e=0;;e++)if(s=s.previousSibling,!s)return e}function La(s,e,t,n,i){for(;;){if(s==t&&e==n)return!0;if(e==(i<0?0:Hn(s))){if(s.nodeName=="DIV")return!1;let r=s.parentNode;if(!r||r.nodeType!=1)return!1;e=lr(s)+(i<0?0:1),s=r}else if(s.nodeType==1){if(s=s.childNodes[e+(i<0?-1:0)],s.nodeType==1&&s.contentEditable=="false")return!1;e=i<0?Hn(s):0}else return!1}}function Hn(s){return s.nodeType==3?s.nodeValue.length:s.childNodes.length}function Co(s,e){let t=e?s.left:s.right;return{left:t,right:t,top:s.top,bottom:s.bottom}}function Mg(s){return{left:0,right:s.innerWidth,top:0,bottom:s.innerHeight}}function Tg(s,e,t,n,i,r,l,o){let a=s.ownerDocument,h=a.defaultView||window;for(let c=s,f=!1;c&&!f;)if(c.nodeType==1){let u,d=c==a.body;if(d)u=Mg(h);else{if(/^(fixed|sticky)$/.test(getComputedStyle(c).position)&&(f=!0),c.scrollHeight<=c.clientHeight&&c.scrollWidth<=c.clientWidth){c=c.assignedSlot||c.parentNode;continue}let m=c.getBoundingClientRect();u={left:m.left,right:m.left+c.clientWidth,top:m.top,bottom:m.top+c.clientHeight}}let p=0,g=0;if(i=="nearest")e.top0&&e.bottom>u.bottom+g&&(g=e.bottom-u.bottom+g+l)):e.bottom>u.bottom&&(g=e.bottom-u.bottom+l,t<0&&e.top-g0&&e.right>u.right+p&&(p=e.right-u.right+p+r)):e.right>u.right&&(p=e.right-u.right+r,t<0&&e.leftt.clientHeight||t.scrollWidth>t.clientWidth)return t;t=t.assignedSlot||t.parentNode}else if(t.nodeType==11)t=t.host;else break;return null}class Dg{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){let{anchorNode:t,focusNode:n}=e;this.set(t,Math.min(e.anchorOffset,t?Hn(t):0),n,Math.min(e.focusOffset,n?Hn(n):0))}set(e,t,n,i){this.anchorNode=e,this.anchorOffset=t,this.focusNode=n,this.focusOffset=i}}let pi=null;function iu(s){if(s.setActive)return s.setActive();if(pi)return s.focus(pi);let e=[];for(let t=s;t&&(e.push(t,t.scrollTop,t.scrollLeft),t!=t.ownerDocument);t=t.parentNode);if(s.focus(pi==null?{get preventScroll(){return pi={preventScroll:!0},!0}}:void 0),!pi){pi=!1;for(let t=0;tMath.max(1,s.scrollHeight-s.clientHeight-4)}class ut{constructor(e,t,n=!0){this.node=e,this.offset=t,this.precise=n}static before(e,t){return new ut(e.parentNode,lr(e),t)}static after(e,t){return new ut(e.parentNode,lr(e)+1,t)}}const Mo=[];class Le{constructor(){this.parent=null,this.dom=null,this.flags=2}get overrideDOMText(){return null}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(e){let t=this.posAtStart;for(let n of this.children){if(n==e)return t;t+=n.length+n.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(e){return this.posBefore(e)+e.length}sync(e,t){if(this.flags&2){let n=this.dom,i=null,r;for(let l of this.children){if(l.flags&7){if(!l.dom&&(r=i?i.nextSibling:n.firstChild)){let o=Le.get(r);(!o||!o.parent&&o.canReuseDOM(l))&&l.reuseDOM(r)}l.sync(e,t),l.flags&=-8}if(r=i?i.nextSibling:n.firstChild,t&&!t.written&&t.node==n&&r!=l.dom&&(t.written=!0),l.dom.parentNode==n)for(;r&&r!=l.dom;)r=Ia(r);else n.insertBefore(l.dom,r);i=l.dom}for(r=i?i.nextSibling:n.firstChild,r&&t&&t.node==n&&(t.written=!0);r;)r=Ia(r)}else if(this.flags&1)for(let n of this.children)n.flags&7&&(n.sync(e,t),n.flags&=-8)}reuseDOM(e){}localPosFromDOM(e,t){let n;if(e==this.dom)n=this.dom.childNodes[t];else{let i=Hn(e)==0?0:t==0?-1:1;for(;;){let r=e.parentNode;if(r==this.dom)break;i==0&&r.firstChild!=r.lastChild&&(e==r.firstChild?i=-1:i=1),e=r}i<0?n=e:n=e.nextSibling}if(n==this.dom.firstChild)return 0;for(;n&&!Le.get(n);)n=n.nextSibling;if(!n)return this.length;for(let i=0,r=0;;i++){let l=this.children[i];if(l.dom==n)return r;r+=l.length+l.breakAfter}}domBoundsAround(e,t,n=0){let i=-1,r=-1,l=-1,o=-1;for(let a=0,h=n,c=n;at)return f.domBoundsAround(e,t,h);if(u>=e&&i==-1&&(i=a,r=h),h>t&&f.dom.parentNode==this.dom){l=a,o=c;break}c=u,h=u+f.breakAfter}return{from:r,to:o<0?n+this.length:o,startDOM:(i?this.children[i-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:l=0?this.children[l].dom:null}}markDirty(e=!1){this.flags|=2,this.markParentsDirty(e)}markParentsDirty(e){for(let t=this.parent;t;t=t.parent){if(e&&(t.flags|=2),t.flags&1)return;t.flags|=1,e=!1}}setParent(e){this.parent!=e&&(this.parent=e,this.flags&7&&this.markParentsDirty(!0))}setDOM(e){this.dom&&(this.dom.cmView=null),this.dom=e,e.cmView=this}get rootView(){for(let e=this;;){let t=e.parent;if(!t)return e;e=t}}replaceChildren(e,t,n=Mo){this.markDirty();for(let i=e;ithis.pos||e==this.pos&&(t>0||this.i==0||this.children[this.i-1].breakAfter))return this.off=e-this.pos,this;let n=this.children[--this.i];this.pos-=n.length+n.breakAfter}}}function ou(s,e,t,n,i,r,l,o,a){let{children:h}=s,c=h.length?h[e]:null,f=r.length?r[r.length-1]:null,u=f?f.breakAfter:l;if(!(e==n&&c&&!l&&!u&&r.length<2&&c.merge(t,i,r.length?f:null,t==0,o,a))){if(n0&&(!l&&r.length&&c.merge(t,c.length,r[0],!1,o,0)?c.breakAfter=r.shift().breakAfter:(tr)&&this.lineBreak(),i=l}return this.findPointBefore(n,t),this}readTextNode(e){let t=e.nodeValue;for(let n of this.points)n.node==e&&(n.pos=this.text.length+Math.min(n.offset,t.length));for(let n=0,i=this.lineSeparator?null:/\r\n?|\n/g;;){let r=-1,l=1,o;if(this.lineSeparator?(r=t.indexOf(this.lineSeparator,n),l=this.lineSeparator.length):(o=i.exec(t))&&(r=o.index,l=o[0].length),this.append(t.slice(n,r<0?t.length:r)),r<0)break;if(this.lineBreak(),l>1)for(let a of this.points)a.node==e&&a.pos>this.text.length&&(a.pos-=l-1);n=r+l}}readNode(e){if(e.cmIgnore)return;let t=Le.get(e),n=t&&t.overrideDOMText;if(n!=null){this.findPointInside(e,n.length);for(let i=n.iter();!i.next().done;)i.lineBreak?this.lineBreak():this.append(i.value)}else e.nodeType==3?this.readTextNode(e):e.nodeName=="BR"?e.nextSibling&&this.lineBreak():e.nodeType==1&&this.readRange(e.firstChild,null)}findPointBefore(e,t){for(let n of this.points)n.node==e&&e.childNodes[n.offset]==t&&(n.pos=this.text.length)}findPointInside(e,t){for(let n of this.points)(e.nodeType==3?n.node==e:e.contains(n.node))&&(n.pos=this.text.length+Math.min(t,n.offset))}}function za(s){return s.nodeType==1&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(s.nodeName)}class ja{constructor(e,t){this.node=e,this.offset=t,this.pos=-1}}let At=typeof navigator<"u"?navigator:{userAgent:"",vendor:"",platform:""},Vl=typeof document<"u"?document:{documentElement:{style:{}}};const Hl=/Edge\/(\d+)/.exec(At.userAgent),cu=/MSIE \d/.test(At.userAgent),Fl=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(At.userAgent),Dr=!!(cu||Fl||Hl),Va=!Dr&&/gecko\/(\d+)/i.test(At.userAgent),al=!Dr&&/Chrome\/(\d+)/.exec(At.userAgent),Ha="webkitFontSmoothing"in Vl.documentElement.style,fu=!Dr&&/Apple Computer/.test(At.vendor),Fa=fu&&(/Mobile\/\w+/.test(At.userAgent)||At.maxTouchPoints>2);var se={mac:Fa||/Mac/.test(At.platform),windows:/Win/.test(At.platform),linux:/Linux|X11/.test(At.platform),ie:Dr,ie_version:cu?Vl.documentMode||6:Fl?+Fl[1]:Hl?+Hl[1]:0,gecko:Va,gecko_version:Va?+(/Firefox\/(\d+)/.exec(At.userAgent)||[0,0])[1]:0,chrome:!!al,chrome_version:al?+al[1]:0,ios:Fa,android:/Android\b/.test(At.userAgent),webkit:Ha,safari:fu,webkit_version:Ha?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:Vl.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};const $g=256;class Mn extends Le{constructor(e){super(),this.text=e}get length(){return this.text.length}createDOM(e){this.setDOM(e||document.createTextNode(this.text))}sync(e,t){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(t&&t.node==this.dom&&(t.written=!0),this.dom.nodeValue=this.text)}reuseDOM(e){e.nodeType==3&&this.createDOM(e)}merge(e,t,n){return this.flags&8||n&&(!(n instanceof Mn)||this.length-(t-e)+n.length>$g||n.flags&8)?!1:(this.text=this.text.slice(0,e)+(n?n.text:"")+this.text.slice(t),this.markDirty(),!0)}split(e){let t=new Mn(this.text.slice(e));return this.text=this.text.slice(0,e),this.markDirty(),t.flags|=this.flags&8,t}localPosFromDOM(e,t){return e==this.dom?t:t?this.text.length:0}domAtPos(e){return new ut(this.dom,e)}domBoundsAround(e,t,n){return{from:n,to:n+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(e,t){return Bg(this.dom,e,t)}}class Tn extends Le{constructor(e,t=[],n=0){super(),this.mark=e,this.children=t,this.length=n;for(let i of t)i.setParent(this)}setAttrs(e){if(su(e),this.mark.class&&(e.className=this.mark.class),this.mark.attrs)for(let t in this.mark.attrs)e.setAttribute(t,this.mark.attrs[t]);return e}canReuseDOM(e){return super.canReuseDOM(e)&&!((this.flags|e.flags)&8)}reuseDOM(e){e.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(e),this.flags|=6)}sync(e,t){this.dom?this.flags&4&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(e,t)}merge(e,t,n,i,r,l){return n&&(!(n instanceof Tn&&n.mark.eq(this.mark))||e&&r<=0||te&&t.push(n=e&&(i=r),n=a,r++}let l=this.length-e;return this.length=e,i>-1&&(this.children.length=i,this.markDirty()),new Tn(this.mark,t,l)}domAtPos(e){return uu(this,e)}coordsAt(e,t){return pu(this,e,t)}}function Bg(s,e,t){let n=s.nodeValue.length;e>n&&(e=n);let i=e,r=e,l=0;e==0&&t<0||e==n&&t>=0?se.chrome||se.gecko||(e?(i--,l=1):r=0)?0:o.length-1];return se.safari&&!l&&a.width==0&&(a=Array.prototype.find.call(o,h=>h.width)||a),l?Co(a,l<0):a||null}class ii extends Le{constructor(e,t,n){super(),this.widget=e,this.length=t,this.side=n,this.prevWidget=null}static create(e,t,n){return new ii(e,t,n)}split(e){let t=ii.create(this.widget,this.length-e,this.side);return this.length-=e,t}sync(e){(!this.dom||!this.widget.updateDOM(this.dom,e))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.dom.contentEditable="false")}getSide(){return this.side}merge(e,t,n,i,r,l){return n&&(!(n instanceof ii)||!this.widget.compare(n.widget)||e>0&&r<=0||t0)?ut.before(this.dom):ut.after(this.dom,e==this.length)}domBoundsAround(){return null}coordsAt(e,t){let n=this.widget.coordsAt(this.dom,e,t);if(n)return n;let i=this.dom.getClientRects(),r=null;if(!i.length)return null;let l=this.side?this.side<0:e>0;for(let o=l?i.length-1:0;r=i[o],!(e>0?o==0:o==i.length-1||r.top0?ut.before(this.dom):ut.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(e){return this.dom.getBoundingClientRect()}get overrideDOMText(){return De.empty}get isHidden(){return!0}}Mn.prototype.children=ii.prototype.children=Ci.prototype.children=Mo;function uu(s,e){let t=s.dom,{children:n}=s,i=0;for(let r=0;ir&&e0;r--){let l=n[r-1];if(l.dom.parentNode==t)return l.domAtPos(l.length)}for(let r=i;r0&&e instanceof Tn&&i.length&&(n=i[i.length-1])instanceof Tn&&n.mark.eq(e.mark)?du(n,e.children[0],t-1):(i.push(e),e.setParent(s)),s.length+=e.length}function pu(s,e,t){let n=null,i=-1,r=null,l=-1;function o(h,c){for(let f=0,u=0;f=c&&(d.children.length?o(d,c-u):(!r||r.isHidden&&t>0)&&(p>c||u==p&&d.getSide()>0)?(r=d,l=c-u):(u-1?1:0)!=i.length-(t&&i.indexOf(t)>-1?1:0))return!1;for(let r of n)if(r!=t&&(i.indexOf(r)==-1||s[r]!==e[r]))return!1;return!0}function ql(s,e,t){let n=null;if(e)for(let i in e)t&&i in t||s.removeAttribute(n=i);if(t)for(let i in t)e&&e[i]==t[i]||s.setAttribute(n=i,t[i]);return!!n}function Lg(s){let e=Object.create(null);for(let t=0;t0?3e8:-4e8:t>0?1e8:-1e8,new Fn(e,t,t,n,e.widget||null,!1)}static replace(e){let t=!!e.block,n,i;if(e.isBlockGap)n=-5e8,i=4e8;else{let{start:r,end:l}=gu(e,t);n=(r?t?-3e8:-1:5e8)-1,i=(l?t?2e8:1:-6e8)+1}return new Fn(e,n,i,t,e.widget||null,!0)}static line(e){return new bs(e)}static set(e,t=!1){return Ne.of(e,t)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}}Re.none=Ne.empty;class ms extends Re{constructor(e){let{start:t,end:n}=gu(e);super(t?-1:5e8,n?1:-6e8,null,e),this.tagName=e.tagName||"span",this.class=e.class||"",this.attrs=e.attributes||null}eq(e){var t,n;return this==e||e instanceof ms&&this.tagName==e.tagName&&(this.class||((t=this.attrs)===null||t===void 0?void 0:t.class))==(e.class||((n=e.attrs)===null||n===void 0?void 0:n.class))&&To(this.attrs,e.attrs,"class")}range(e,t=e){if(e>=t)throw new RangeError("Mark decorations may not be empty");return super.range(e,t)}}ms.prototype.point=!1;class bs extends Re{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof bs&&this.spec.class==e.spec.class&&To(this.spec.attributes,e.spec.attributes)}range(e,t=e){if(t!=e)throw new RangeError("Line decoration ranges must be zero-length");return super.range(e,t)}}bs.prototype.mapMode=bt.TrackBefore;bs.prototype.point=!0;class Fn extends Re{constructor(e,t,n,i,r,l){super(t,n,r,e),this.block=i,this.isReplace=l,this.mapMode=i?t<=0?bt.TrackBefore:bt.TrackAfter:bt.TrackDel}get type(){return this.startSide=5||this.widget.lineBreaks>0)}eq(e){return e instanceof Fn&&Rg(this.widget,e.widget)&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide}range(e,t=e){if(this.isReplace&&(e>t||e==t&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&t!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(e,t)}}Fn.prototype.point=!0;function gu(s,e=!1){let{inclusiveStart:t,inclusiveEnd:n}=s;return t==null&&(t=s.inclusive),n==null&&(n=s.inclusive),{start:t??e,end:n??e}}function Rg(s,e){return s==e||!!(s&&e&&s.compare(e))}function Ul(s,e,t,n=0){let i=t.length-1;i>=0&&t[i]+n>=s?t[i]=Math.max(t[i],e):t.push(s,e)}class _t extends Le{constructor(){super(...arguments),this.children=[],this.length=0,this.prevAttrs=void 0,this.attrs=null,this.breakAfter=0}merge(e,t,n,i,r,l){if(n){if(!(n instanceof _t))return!1;this.dom||n.transferDOM(this)}return i&&this.setDeco(n?n.attrs:null),au(this,e,t,n?n.children:[],r,l),!0}split(e){let t=new _t;if(t.breakAfter=this.breakAfter,this.length==0)return t;let{i:n,off:i}=this.childPos(e);i&&(t.append(this.children[n].split(i),0),this.children[n].merge(i,this.children[n].length,null,!1,0,0),n++);for(let r=n;r0&&this.children[n-1].length==0;)this.children[--n].destroy();return this.children.length=n,this.markDirty(),this.length=e,t}transferDOM(e){this.dom&&(this.markDirty(),e.setDOM(this.dom),e.prevAttrs=this.prevAttrs===void 0?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(e){To(this.attrs,e)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=e)}append(e,t){du(this,e,t)}addLineDeco(e){let t=e.spec.attributes,n=e.spec.class;t&&(this.attrs=Wl(t,this.attrs||{})),n&&(this.attrs=Wl({class:n},this.attrs||{}))}domAtPos(e){return uu(this,e)}reuseDOM(e){e.nodeName=="DIV"&&(this.setDOM(e),this.flags|=6)}sync(e,t){var n;this.dom?this.flags&4&&(su(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),this.prevAttrs!==void 0&&(ql(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(e,t);let i=this.dom.lastChild;for(;i&&Le.get(i)instanceof Tn;)i=i.lastChild;if(!i||!this.length||i.nodeName!="BR"&&((n=Le.get(i))===null||n===void 0?void 0:n.isEditable)==!1&&(!se.ios||!this.children.some(r=>r instanceof Mn))){let r=document.createElement("BR");r.cmIgnore=!0,this.dom.appendChild(r)}}measureTextSize(){if(this.children.length==0||this.length>20)return null;let e=0,t;for(let n of this.children){if(!(n instanceof Mn)||/[^ -~]/.test(n.text))return null;let i=ls(n.dom);if(i.length!=1)return null;e+=i[0].width,t=i[0].height}return e?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:e/this.length,textHeight:t}:null}coordsAt(e,t){let n=pu(this,e,t);if(!this.children.length&&n&&this.parent){let{heightOracle:i}=this.parent.view.viewState,r=n.bottom-n.top;if(Math.abs(r-i.lineHeight)<2&&i.textHeight=t){if(r instanceof _t)return r;if(l>t)break}i=l+r.breakAfter}return null}}class si extends Le{constructor(e,t,n){super(),this.widget=e,this.length=t,this.type=n,this.breakAfter=0,this.prevWidget=null}merge(e,t,n,i,r,l){return n&&(!(n instanceof si)||!this.widget.compare(n.widget)||e>0&&r<=0||t0;){if(this.textOff==this.text.length){let{value:r,lineBreak:l,done:o}=this.cursor.next(this.skip);if(this.skip=0,o)throw new Error("Ran out of text content when drawing inline views");if(l){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,e--;continue}else this.text=r,this.textOff=0}let i=Math.min(this.text.length-this.textOff,e,512);this.flushBuffer(t.slice(t.length-n)),this.getLine().append(Ts(new Mn(this.text.slice(this.textOff,this.textOff+i)),t),n),this.atCursorPos=!0,this.textOff+=i,e-=i,n=0}}span(e,t,n,i){this.buildText(t-e,n,i),this.pos=t,this.openStart<0&&(this.openStart=i)}point(e,t,n,i,r,l){if(this.disallowBlockEffectsFor[l]&&n instanceof Fn){if(n.block)throw new RangeError("Block decorations may not be specified via plugins");if(t>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let o=t-e;if(n instanceof Fn)if(n.block){let{type:a}=n;a==Fe.WidgetAfter&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new si(n.widget||new qa("div"),o,a))}else{let a=ii.create(n.widget||new qa("span"),o,o?0:n.startSide),h=this.atCursorPos&&!a.isEditable&&r<=i.length&&(e0),c=!a.isEditable&&(ei.length||n.startSide<=0),f=this.getLine();this.pendingBuffer==2&&!h&&!a.isEditable&&(this.pendingBuffer=0),this.flushBuffer(i),h&&(f.append(Ts(new Ci(1),i),r),r=i.length+Math.max(0,r-i.length)),f.append(Ts(a,i),r),this.atCursorPos=c,this.pendingBuffer=c?ei.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=i.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(n);o&&(this.textOff+o<=this.text.length?this.textOff+=o:(this.skip+=o-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=t),this.openStart<0&&(this.openStart=r)}static build(e,t,n,i,r){let l=new Qi(e,t,n,r);return l.openEnd=Ne.spans(i,t,n,l),l.openStart<0&&(l.openStart=l.openEnd),l.finish(l.openEnd),l}}function Ts(s,e){for(let t of e)s=new Tn(t,[s],s.length);return s}class qa extends Di{constructor(e){super(),this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}const mu=le.define(),bu=le.define(),_u=le.define(),ku=le.define(),Kl=le.define(),vu=le.define(),yu=le.define(),wu=le.define({combine:s=>s.some(e=>e)}),Su=le.define({combine:s=>s.some(e=>e)});class or{constructor(e,t="nearest",n="nearest",i=5,r=5){this.range=e,this.y=t,this.x=n,this.yMargin=i,this.xMargin=r}map(e){return e.empty?this:new or(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin)}}const Ua=Pe.define({map:(s,e)=>s.map(e)});function xn(s,e,t){let n=s.facet(ku);n.length?n[0](e):window.onerror?window.onerror(String(e),t,void 0,void 0,e):t?console.error(t+":",e):console.error(e)}const Or=le.define({combine:s=>s.length?s[0]:!0});let Ig=0;const Ui=le.define();class ht{constructor(e,t,n,i){this.id=e,this.create=t,this.domEventHandlers=n,this.extension=i(this)}static define(e,t){const{eventHandlers:n,provide:i,decorations:r}=t||{};return new ht(Ig++,e,n,l=>{let o=[Ui.of(l)];return r&&o.push(os.of(a=>{let h=a.plugin(l);return h?r(h):Re.none})),i&&o.push(i(l)),o})}static fromClass(e,t){return ht.define(n=>new e(n),t)}}class hl{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}update(e){if(this.value){if(this.mustUpdate){let t=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(t)}catch(n){if(xn(t.state,n,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(e)}catch(t){xn(e.state,t,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var t;if(!((t=this.value)===null||t===void 0)&&t.destroy)try{this.value.destroy()}catch(n){xn(e.state,n,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const xu=le.define(),Eo=le.define(),os=le.define(),Do=le.define(),Au=le.define();function Cu(s){let e=0,t=0,n=0,i=0;for(let r of s.state.facet(Au)){let l=r(s);l&&(l.left!=null&&(e=Math.max(e,l.left)),l.right!=null&&(t=Math.max(t,l.right)),l.top!=null&&(n=Math.max(n,l.top)),l.bottom!=null&&(i=Math.max(i,l.bottom)))}return{left:e,right:t,top:n,bottom:i}}const Ki=le.define();class It{constructor(e,t,n,i){this.fromA=e,this.toA=t,this.fromB=n,this.toB=i}join(e){return new It(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let t=e.length,n=this;for(;t>0;t--){let i=e[t-1];if(!(i.fromA>n.toA)){if(i.toAc)break;r+=2}if(!a)return n;new It(a.fromA,a.toA,a.fromB,a.toB).addToSet(n),l=a.toA,o=a.toB}}}class ar{constructor(e,t,n){this.view=e,this.state=t,this.transactions=n,this.flags=0,this.startState=e.state,this.changes=Ye.empty(this.startState.doc.length);for(let r of n)this.changes=this.changes.compose(r.changes);let i=[];this.changes.iterChangedRanges((r,l,o,a)=>i.push(new It(r,l,o,a))),this.changedRanges=i}static create(e,t,n){return new ar(e,t,n)}get viewportChanged(){return(this.flags&4)>0}get heightChanged(){return(this.flags&2)>0}get geometryChanged(){return this.docChanged||(this.flags&10)>0}get focusChanged(){return(this.flags&1)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(e=>e.selection)}get empty(){return this.flags==0&&this.transactions.length==0}}var Ue=function(s){return s[s.LTR=0]="LTR",s[s.RTL=1]="RTL",s}(Ue||(Ue={}));const Jl=Ue.LTR,zg=Ue.RTL;function Mu(s){let e=[];for(let t=0;t=t){if(o.level==n)return l;(r<0||(i!=0?i<0?o.fromt:e[r].level>o.level))&&(r=l)}}if(r<0)throw new RangeError("Index out of range");return r}}const Ve=[];function Wg(s,e){let t=s.length,n=e==Jl?1:2,i=e==Jl?2:1;if(!s||n==1&&!Fg.test(s))return Tu(t);for(let l=0,o=n,a=n;l=0;u-=3)if(Qt[u+1]==-c){let d=Qt[u+2],p=d&2?n:d&4?d&1?i:n:0;p&&(Ve[l]=Ve[Qt[u]]=p),o=u;break}}else{if(Qt.length==189)break;Qt[o++]=l,Qt[o++]=h,Qt[o++]=a}else if((f=Ve[l])==2||f==1){let u=f==n;a=u?0:1;for(let d=o-3;d>=0;d-=3){let p=Qt[d+2];if(p&2)break;if(u)Qt[d+2]|=2;else{if(p&4)break;Qt[d+2]|=4}}}for(let l=0;lo;){let c=h,f=Ve[--h]!=2;for(;h>o&&f==(Ve[h-1]!=2);)h--;r.push(new Si(h,c,f?2:1))}else r.push(new Si(o,l,0))}else for(let l=0;l0&&t.length&&(t.every(({fromA:o,toA:a})=>athis.minWidthTo)?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0);let n=this.view.inputState.composing<0?null:Kg(this.view,e.changes);if(this.hasComposition){this.markedForComposition.clear();let{from:o,to:a}=this.hasComposition;t=new It(o,a,e.changes.mapPos(o,-1),e.changes.mapPos(a,1)).addToSet(t.slice())}this.hasComposition=n?{from:n.range.fromB,to:n.range.toB}:null,(se.ie||se.chrome)&&!n&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let i=this.decorations,r=this.updateDeco(),l=Yg(i,r,e.changes);return t=It.extendWithRanges(t,l),!(this.flags&7)&&t.length==0?!1:(this.updateInner(t,e.startState.doc.length,n),e.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(e,t,n){this.view.viewState.mustMeasureContent=!0,this.updateChildren(e,t,n);let{observer:i}=this.view;i.ignore(()=>{this.dom.style.height=this.view.viewState.contentHeight+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let l=se.chrome||se.ios?{node:i.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,l),this.flags&=-8,l&&(l.written||i.selectionRange.focusNode!=l.node)&&(this.forceSelection=!0),this.dom.style.height=""}),this.markedForComposition.forEach(l=>l.flags&=-9);let r=[];if(this.view.viewport.from||this.view.viewport.to=0?i[l]:null;if(!o)break;let{fromA:a,toA:h,fromB:c,toB:f}=o,u,d,p,g;if(n&&n.range.fromBc){let w=Qi.build(this.view.state.doc,c,n.range.fromB,this.decorations,this.dynamicDecorationMap),B=Qi.build(this.view.state.doc,n.range.toB,f,this.decorations,this.dynamicDecorationMap);d=w.breakAtStart,p=w.openStart,g=B.openEnd;let D=this.compositionView(n);B.breakAtStart?D.breakAfter=1:B.content.length&&D.merge(D.length,D.length,B.content[0],!1,B.openStart,0)&&(D.breakAfter=B.content[0].breakAfter,B.content.shift()),w.content.length&&D.merge(0,0,w.content[w.content.length-1],!0,0,w.openEnd)&&w.content.pop(),u=w.content.concat(D).concat(B.content)}else({content:u,breakAtStart:d,openStart:p,openEnd:g}=Qi.build(this.view.state.doc,c,f,this.decorations,this.dynamicDecorationMap));let{i:m,off:_}=r.findPos(h,1),{i:v,off:E}=r.findPos(a,-1);ou(this,v,E,m,_,u,d,p,g)}n&&this.fixCompositionDOM(n)}compositionView(e){let t=new Mn(e.text.nodeValue);t.flags|=8;for(let{deco:i}of e.marks)t=new Tn(i,[t],t.length);let n=new _t;return n.append(t,0),n}fixCompositionDOM(e){let t=(r,l)=>{l.flags|=8,this.markedForComposition.add(l);let o=Le.get(r);o!=l&&(o&&(o.dom=null),l.setDOM(r))},n=this.childPos(e.range.fromB,1),i=this.children[n.i];t(e.line,i);for(let r=e.marks.length-1;r>=-1;r--)n=i.childPos(n.off,1),i=i.children[n.i],t(r>=0?e.marks[r].node:e.text,i)}updateSelection(e=!1,t=!1){(e||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange();let n=this.view.root.activeElement,i=n==this.dom,r=!i&&Ks(this.dom,this.view.observer.selectionRange)&&!(n&&this.dom.contains(n));if(!(i||t||r))return;let l=this.forceSelection;this.forceSelection=!1;let o=this.view.state.selection.main,a=this.domAtPos(o.anchor),h=o.empty?a:this.domAtPos(o.head);if(se.gecko&&o.empty&&!this.hasComposition&&Ug(a)){let f=document.createTextNode("");this.view.observer.ignore(()=>a.node.insertBefore(f,a.node.childNodes[a.offset]||null)),a=h=new ut(f,0),l=!0}let c=this.view.observer.selectionRange;(l||!c.focusNode||!rr(a.node,a.offset,c.anchorNode,c.anchorOffset)||!rr(h.node,h.offset,c.focusNode,c.focusOffset))&&(this.view.observer.ignore(()=>{se.android&&se.chrome&&this.dom.contains(c.focusNode)&&Xg(c.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let f=sr(this.view.root);if(f)if(o.empty){if(se.gecko){let u=Jg(a.node,a.offset);if(u&&u!=3){let d=Ou(a.node,a.offset,u==1?1:-1);d&&(a=new ut(d,u==1?0:d.nodeValue.length))}}f.collapse(a.node,a.offset),o.bidiLevel!=null&&c.cursorBidiLevel!=null&&(c.cursorBidiLevel=o.bidiLevel)}else if(f.extend){f.collapse(a.node,a.offset);try{f.extend(h.node,h.offset)}catch{}}else{let u=document.createRange();o.anchor>o.head&&([a,h]=[h,a]),u.setEnd(h.node,h.offset),u.setStart(a.node,a.offset),f.removeAllRanges(),f.addRange(u)}r&&this.view.root.activeElement==this.dom&&(this.dom.blur(),n&&n.focus())}),this.view.observer.setSelectionRange(a,h)),this.impreciseAnchor=a.precise?null:new ut(c.anchorNode,c.anchorOffset),this.impreciseHead=h.precise?null:new ut(c.focusNode,c.focusOffset)}enforceCursorAssoc(){if(this.hasComposition)return;let{view:e}=this,t=e.state.selection.main,n=sr(e.root),{anchorNode:i,anchorOffset:r}=e.observer.selectionRange;if(!n||!t.empty||!t.assoc||!n.modify)return;let l=_t.find(this,t.head);if(!l)return;let o=l.posAtStart;if(t.head==o||t.head==o+l.length)return;let a=this.coordsAt(t.head,-1),h=this.coordsAt(t.head,1);if(!a||!h||a.bottom>h.top)return;let c=this.domAtPos(t.head+t.assoc);n.collapse(c.node,c.offset),n.modify("move",t.assoc<0?"forward":"backward","lineboundary"),e.observer.readSelectionRange();let f=e.observer.selectionRange;e.docView.posFromDOM(f.anchorNode,f.anchorOffset)!=t.from&&n.collapse(i,r)}nearest(e){for(let t=e;t;){let n=Le.get(t);if(n&&n.rootView==this)return n;t=t.parentNode}return null}posFromDOM(e,t){let n=this.nearest(e);if(!n)throw new RangeError("Trying to find position for a DOM position outside of the document");return n.localPosFromDOM(e,t)+n.posAtStart}domAtPos(e){let{i:t,off:n}=this.childCursor().findPos(e,-1);for(;tl||e==l&&r.type!=Fe.WidgetBefore&&r.type!=Fe.WidgetAfter&&(!i||t==2||this.children[i-1].breakAfter||this.children[i-1].type==Fe.WidgetBefore&&t>-2))return r.coordsAt(e-l,t);n=l}}measureVisibleLineHeights(e){let t=[],{from:n,to:i}=e,r=this.view.contentDOM.clientWidth,l=r>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,o=-1,a=this.view.textDirection==Ue.LTR;for(let h=0,c=0;ci)break;if(h>=n){let d=f.dom.getBoundingClientRect();if(t.push(d.height),l){let p=f.dom.lastChild,g=p?ls(p):[];if(g.length){let m=g[g.length-1],_=a?m.right-d.left:d.right-m.left;_>o&&(o=_,this.minWidth=r,this.minWidthFrom=h,this.minWidthTo=u)}}}h=u+f.breakAfter}return t}textDirectionAt(e){let{i:t}=this.childPos(e,1);return getComputedStyle(this.children[t].dom).direction=="rtl"?Ue.RTL:Ue.LTR}measureTextSize(){for(let r of this.children)if(r instanceof _t){let l=r.measureTextSize();if(l)return l}let e=document.createElement("div"),t,n,i;return e.className="cm-line",e.style.width="99999px",e.style.position="absolute",e.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.dom.appendChild(e);let r=ls(e.firstChild)[0];t=e.getBoundingClientRect().height,n=r?r.width/27:7,i=r?r.height:t,e.remove()}),{lineHeight:t,charWidth:n,textHeight:i}}childCursor(e=this.length){let t=this.children.length;return t&&(e-=this.children[--t].length),new lu(this.children,e,t)}computeBlockGapDeco(){let e=[],t=this.view.viewState;for(let n=0,i=0;;i++){let r=i==t.viewports.length?null:t.viewports[i],l=r?r.from-1:this.length;if(l>n){let o=t.lineBlockAt(l).bottom-t.lineBlockAt(n).top;e.push(Re.replace({widget:new Ja(o),block:!0,inclusive:!0,isBlockGap:!0}).range(n,l))}if(!r)break;n=r.to+1}return Re.set(e)}updateDeco(){let e=this.view.state.facet(os).map((t,n)=>(this.dynamicDecorationMap[n]=typeof t=="function")?t(this.view):t);for(let t=e.length;tt.anchor?-1:1),i;if(!n)return;!t.empty&&(i=this.coordsAt(t.anchor,t.anchor>t.head?-1:1))&&(n={left:Math.min(n.left,i.left),top:Math.min(n.top,i.top),right:Math.max(n.right,i.right),bottom:Math.max(n.bottom,i.bottom)});let r=Cu(this.view),l={left:n.left-r.left,top:n.top-r.top,right:n.right+r.right,bottom:n.bottom+r.bottom};Tg(this.view.scrollDOM,l,t.head-1)return null;l+=f.text.length}if(o=o.parentNode,!o)return null;let a=Le.get(o);if(a){i=r=a.posAtStart+l;break}}return{from:i,to:r,node:t}}function Kg(s,e){let t=Du(s);if(!t)return null;let{from:n,to:i,node:r}=t,l=e.mapPos(n,-1),o=e.mapPos(i,1),a=r.nodeValue;if(/[\n\r]/.test(a))return null;if(o-l!=a.length){let u=e.mapPos(n,1),d=e.mapPos(i,-1);if(d-u==a.length)l=u,o=d;else if(s.state.doc.sliceString(o-a.length,o)==a)l=o-a.length;else if(s.state.doc.sliceString(l,l+a.length)==a)o=l+a.length;else return null}let{main:h}=s.state.selection;if(s.state.doc.sliceString(l,o)!=a||l>h.head||o0)n=n.childNodes[i-1],i=Hn(n);else break}if(t>=0)for(let n=s,i=e;;){if(n.nodeType==3)return n;if(n.nodeType==1&&i=0)n=n.childNodes[i],i=0;else break}return null}function Jg(s,e){return s.nodeType!=1?0:(e&&s.childNodes[e-1].contentEditable=="false"?1:0)|(e0;){let h=Ct(i.text,l,!1);if(n(i.text.slice(h,l))!=a)break;l=h}for(;os?e.left-s:Math.max(0,s-e.right)}function em(s,e){return e.top>s?e.top-s:Math.max(0,s-e.bottom)}function cl(s,e){return s.tope.top+1}function Ga(s,e){return es.bottom?{top:s.top,left:s.left,right:s.right,bottom:e}:s}function Yl(s,e,t){let n,i,r,l,o=!1,a,h,c,f;for(let p=s.firstChild;p;p=p.nextSibling){let g=ls(p);for(let m=0;mE||l==E&&r>v){n=p,i=_,r=v,l=E;let w=E?t<_.top?-1:1:v?e<_.left?-1:1:0;o=!w||(w>0?m0)}v==0?t>_.bottom&&(!c||c.bottom<_.bottom)?(a=p,c=_):t<_.top&&(!f||f.top>_.top)&&(h=p,f=_):c&&cl(c,_)?c=Ya(c,_.bottom):f&&cl(f,_)&&(f=Ga(f,_.top))}}if(c&&c.bottom>=t?(n=a,i=c):f&&f.top<=t&&(n=h,i=f),!n)return{node:s,offset:0};let u=Math.max(i.left,Math.min(i.right,e));if(n.nodeType==3)return Xa(n,u,t);if(o&&n.contentEditable!="false")return Yl(n,u,t);let d=Array.prototype.indexOf.call(s.childNodes,n)+(e>=(i.left+i.right)/2?1:0);return{node:s,offset:d}}function Xa(s,e,t){let n=s.nodeValue.length,i=-1,r=1e9,l=0;for(let o=0;ot?c.top-t:t-c.bottom)-1;if(c.left-1<=e&&c.right+1>=e&&f=(c.left+c.right)/2,d=u;if((se.chrome||se.gecko)&&Ai(s,o).getBoundingClientRect().left==c.right&&(d=!u),f<=0)return{node:s,offset:o+(d?1:0)};i=o+(d?1:0),r=f}}}return{node:s,offset:i>-1?i:l>0?s.nodeValue.length:0}}function Pu(s,e,t,n=-1){var i,r;let l=s.contentDOM.getBoundingClientRect(),o=l.top+s.viewState.paddingTop,a,{docHeight:h}=s.viewState,{x:c,y:f}=e,u=f-o;if(u<0)return 0;if(u>h)return s.state.doc.length;for(let w=s.viewState.heightOracle.textHeight/2,B=!1;a=s.elementAtHeight(u),a.type!=Fe.Text;)for(;u=n>0?a.bottom+w:a.top-w,!(u>=0&&u<=h);){if(B)return t?null:0;B=!0,n=-n}f=o+u;let d=a.from;if(ds.viewport.to)return s.viewport.to==s.state.doc.length?s.state.doc.length:t?null:Za(s,l,a,c,f);let p=s.dom.ownerDocument,g=s.root.elementFromPoint?s.root:p,m=g.elementFromPoint(c,f);m&&!s.contentDOM.contains(m)&&(m=null),m||(c=Math.max(l.left+1,Math.min(l.right-1,c)),m=g.elementFromPoint(c,f),m&&!s.contentDOM.contains(m)&&(m=null));let _,v=-1;if(m&&((i=s.docView.nearest(m))===null||i===void 0?void 0:i.isEditable)!=!1){if(p.caretPositionFromPoint){let w=p.caretPositionFromPoint(c,f);w&&({offsetNode:_,offset:v}=w)}else if(p.caretRangeFromPoint){let w=p.caretRangeFromPoint(c,f);w&&({startContainer:_,startOffset:v}=w,(!s.contentDOM.contains(_)||se.safari&&tm(_,v,c)||se.chrome&&nm(_,v,c))&&(_=void 0))}}if(!_||!s.docView.dom.contains(_)){let w=_t.find(s.docView,d);if(!w)return u>a.top+a.height/2?a.to:a.from;({node:_,offset:v}=Yl(w.dom,c,f))}let E=s.docView.nearest(_);if(!E)return null;if(E.isWidget&&((r=E.dom)===null||r===void 0?void 0:r.nodeType)==1){let w=E.dom.getBoundingClientRect();return e.ys.defaultLineHeight*1.5){let o=s.viewState.heightOracle.textHeight,a=Math.floor((i-t.top-(s.defaultLineHeight-o)*.5)/o);r+=a*s.viewState.heightOracle.lineLength}let l=s.state.sliceDoc(t.from,t.to);return t.from+Rl(l,r,s.state.tabSize)}function tm(s,e,t){let n;if(s.nodeType!=3||e!=(n=s.nodeValue.length))return!1;for(let i=s.nextSibling;i;i=i.nextSibling)if(i.nodeType!=1||i.nodeName!="BR")return!1;return Ai(s,n-1,n).getBoundingClientRect().left>t}function nm(s,e,t){if(e!=0)return!1;for(let i=s;;){let r=i.parentNode;if(!r||r.nodeType!=1||r.firstChild!=i)return!1;if(r.classList.contains("cm-line"))break;i=r}let n=s.nodeType==1?s.getBoundingClientRect():Ai(s,0,Math.max(s.nodeValue.length,1)).getBoundingClientRect();return t-n.left>5}function Xl(s,e){let t=s.lineBlockAt(e);if(Array.isArray(t.type)){for(let n of t.type)if(n.to>e||n.to==e&&(n.to==t.to||n.type==Fe.Text))return n}return t}function im(s,e,t,n){let i=Xl(s,e.head),r=!n||i.type!=Fe.Text||!(s.lineWrapping||i.widgetLineBreaks)?null:s.coordsAtPos(e.assoc<0&&e.head>i.from?e.head-1:e.head);if(r){let l=s.dom.getBoundingClientRect(),o=s.textDirectionAt(i.from),a=s.posAtCoords({x:t==(o==Ue.LTR)?l.right-1:l.left+1,y:(r.top+r.bottom)/2});if(a!=null)return F.cursor(a,t?-1:1)}return F.cursor(t?i.to:i.from,t?-1:1)}function Qa(s,e,t,n){let i=s.state.doc.lineAt(e.head),r=s.bidiSpans(i),l=s.textDirectionAt(i.from);for(let o=e,a=null;;){let h=qg(i,r,l,o,t),c=Eu;if(!h){if(i.number==(t?s.state.doc.lines:1))return o;c=` `,i=s.state.doc.line(i.number+(t?1:-1)),r=s.bidiSpans(i),h=F.cursor(t?i.from:i.to)}if(a){if(!a(c))return o}else{if(!n)return h;a=n(c)}o=h}}function sm(s,e,t){let n=s.state.charCategorizer(e),i=n(t);return r=>{let l=n(r);return i==Sn.Space&&(i=l),i==l}}function rm(s,e,t,n){let i=e.head,r=t?1:-1;if(i==(t?s.state.doc.length:0))return F.cursor(i,e.assoc);let l=e.goalColumn,o,a=s.contentDOM.getBoundingClientRect(),h=s.coordsAtPos(i),c=s.documentTop;if(h)l==null&&(l=h.left-a.left),o=r<0?h.top:h.bottom;else{let d=s.viewState.lineBlockAt(i);l==null&&(l=Math.min(a.right-a.left,s.defaultCharacterWidth*(i-d.from))),o=(r<0?d.top:d.bottom)+c}let f=a.left+l,u=n??s.viewState.heightOracle.textHeight>>1;for(let d=0;;d+=10){let p=o+(u+d)*r,g=Pu(s,{x:f,y:p},!1,r);if(pa.bottom||(r<0?gi))return F.cursor(g,e.assoc,void 0,l)}}function Js(s,e,t){for(;;){let n=0;for(let i of s)i.between(e-1,e+1,(r,l,o)=>{if(e>r&&ei(s)),t.from,e.head>t.from?-1:1);return n==t.from?t:F.cursor(n,n{this.ignoreDuringComposition(i)||i.type=="keydown"&&this.keydown(e,i)||(this.mustFlushObserver(i)&&e.observer.forceFlush(),this.runCustomHandlers(i.type,e,i)?i.preventDefault():n(e,i))};for(let n in Ge){let i=Ge[n];e.contentDOM.addEventListener(n,r=>{eh(e,r)&&t(i,r)},Zl[n]),this.registeredEvents.push(n)}e.scrollDOM.addEventListener("mousedown",n=>{if(n.target==e.scrollDOM&&n.clientY>e.contentDOM.getBoundingClientRect().bottom&&(t(Ge.mousedown,n),!n.defaultPrevented&&n.button==2)){let i=e.contentDOM.style.minHeight;e.contentDOM.style.minHeight="100%",setTimeout(()=>e.contentDOM.style.minHeight=i,200)}}),e.scrollDOM.addEventListener("drop",n=>{n.target==e.scrollDOM&&n.clientY>e.contentDOM.getBoundingClientRect().bottom&&t(Ge.drop,n)}),se.chrome&&se.chrome_version==102&&e.scrollDOM.addEventListener("wheel",()=>{this.chromeScrollHack<0?e.contentDOM.style.pointerEvents="none":window.clearTimeout(this.chromeScrollHack),this.chromeScrollHack=setTimeout(()=>{this.chromeScrollHack=-1,e.contentDOM.style.pointerEvents=""},100)},{passive:!0}),this.notifiedFocused=e.hasFocus,se.safari&&e.contentDOM.addEventListener("input",()=>null)}setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}ensureHandlers(e,t){var n;let i;this.customHandlers=[];for(let r of t)if(i=(n=r.update(e).spec)===null||n===void 0?void 0:n.domEventHandlers){this.customHandlers.push({plugin:r.value,handlers:i});for(let l in i)this.registeredEvents.indexOf(l)<0&&l!="scroll"&&(this.registeredEvents.push(l),e.contentDOM.addEventListener(l,o=>{eh(e,o)&&this.runCustomHandlers(l,e,o)&&o.preventDefault()}))}}runCustomHandlers(e,t,n){for(let i of this.customHandlers){let r=i.handlers[e];if(r)try{if(r.call(i.plugin,n,t)||n.defaultPrevented)return!0}catch(l){xn(t.state,l)}}return!1}runScrollHandlers(e,t){this.lastScrollTop=e.scrollDOM.scrollTop,this.lastScrollLeft=e.scrollDOM.scrollLeft;for(let n of this.customHandlers){let i=n.handlers.scroll;if(i)try{i.call(n.plugin,t,e)}catch(r){xn(e.state,r)}}}keydown(e,t){if(this.lastKeyCode=t.keyCode,this.lastKeyTime=Date.now(),t.keyCode==9&&Date.now()i.keyCode==t.keyCode))&&!t.ctrlKey||om.indexOf(t.key)>-1&&t.ctrlKey&&!t.shiftKey)?(this.pendingIOSKey=n||t,setTimeout(()=>this.flushIOSKey(e),250),!0):!1}flushIOSKey(e){let t=this.pendingIOSKey;return t?(this.pendingIOSKey=void 0,wi(e.contentDOM,t.key,t.keyCode)):!1}ignoreDuringComposition(e){return/^key/.test(e.type)?this.composing>0?!0:se.safari&&!se.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100?(this.compositionPendingKey=!1,!0):!1:!1}mustFlushObserver(e){return e.type=="keydown"&&e.keyCode!=229}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.mouseSelection&&this.mouseSelection.update(e),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}const $u=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],om="dthko",Bu=[16,17,18,20,91,92,224,225],Es=6;function Ds(s){return Math.max(0,s)*.7+8}function am(s,e){return Math.max(Math.abs(s.clientX-e.clientX),Math.abs(s.clientY-e.clientY))}class hm{constructor(e,t,n,i){this.view=e,this.startEvent=t,this.style=n,this.mustSelect=i,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=t,this.scrollParent=Eg(e.contentDOM),this.atoms=e.state.facet(Do).map(l=>l(e));let r=e.contentDOM.ownerDocument;r.addEventListener("mousemove",this.move=this.move.bind(this)),r.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=t.shiftKey,this.multiple=e.state.facet(ye.allowMultipleSelections)&&cm(e,t),this.dragging=um(e,t)&&Iu(t)==1?null:!1}start(e){this.dragging===!1&&(e.preventDefault(),this.select(e))}move(e){var t;if(e.buttons==0)return this.destroy();if(this.dragging||this.dragging==null&&am(this.startEvent,e)<10)return;this.select(this.lastEvent=e);let n=0,i=0,r=((t=this.scrollParent)===null||t===void 0?void 0:t.getBoundingClientRect())||{left:0,top:0,right:this.view.win.innerWidth,bottom:this.view.win.innerHeight},l=Cu(this.view);e.clientX-l.left<=r.left+Es?n=-Ds(r.left-e.clientX):e.clientX+l.right>=r.right-Es&&(n=Ds(e.clientX-r.right)),e.clientY-l.top<=r.top+Es?i=-Ds(r.top-e.clientY):e.clientY+l.bottom>=r.bottom-Es&&(i=Ds(e.clientY-r.bottom)),this.setScrollSpeed(n,i)}up(e){this.dragging==null&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=null}setScrollSpeed(e,t){this.scrollSpeed={x:e,y:t},e||t?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){this.scrollParent?(this.scrollParent.scrollLeft+=this.scrollSpeed.x,this.scrollParent.scrollTop+=this.scrollSpeed.y):this.view.win.scrollBy(this.scrollSpeed.x,this.scrollSpeed.y),this.dragging===!1&&this.select(this.lastEvent)}skipAtoms(e){let t=null;for(let n=0;nthis.select(this.lastEvent),20)}}function cm(s,e){let t=s.state.facet(mu);return t.length?t[0](e):se.mac?e.metaKey:e.ctrlKey}function fm(s,e){let t=s.state.facet(bu);return t.length?t[0](e):se.mac?!e.altKey:!e.ctrlKey}function um(s,e){let{main:t}=s.state.selection;if(t.empty)return!1;let n=sr(s.root);if(!n||n.rangeCount==0)return!0;let i=n.getRangeAt(0).getClientRects();for(let r=0;r=e.clientX&&l.top<=e.clientY&&l.bottom>=e.clientY)return!0}return!1}function eh(s,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let t=e.target,n;t!=s.contentDOM;t=t.parentNode)if(!t||t.nodeType==11||(n=Le.get(t))&&n.ignoreEvent(e))return!1;return!0}const Ge=Object.create(null),Zl=Object.create(null),Nu=se.ie&&se.ie_version<15||se.ios&&se.webkit_version<604;function dm(s){let e=s.dom.parentNode;if(!e)return;let t=e.appendChild(document.createElement("textarea"));t.style.cssText="position: fixed; left: -10000px; top: 10px",t.focus(),setTimeout(()=>{s.focus(),t.remove(),Lu(s,t.value)},50)}function Lu(s,e){let{state:t}=s,n,i=1,r=t.toText(e),l=r.lines==t.selection.ranges.length;if(Ql!=null&&t.selection.ranges.every(a=>a.empty)&&Ql==r.toString()){let a=-1;n=t.changeByRange(h=>{let c=t.doc.lineAt(h.from);if(c.from==a)return{range:h};a=c.from;let f=t.toText((l?r.line(i++).text:e)+t.lineBreak);return{changes:{from:c.from,insert:f},range:F.cursor(h.from+f.length)}})}else l?n=t.changeByRange(a=>{let h=r.line(i++);return{changes:{from:a.from,to:a.to,insert:h.text},range:F.cursor(a.from+h.length)}}):n=t.replaceSelection(r);s.dispatch(n,{userEvent:"input.paste",scrollIntoView:!0})}Ge.keydown=(s,e)=>{s.inputState.setSelectionOrigin("select"),e.keyCode==27&&(s.inputState.lastEscPress=Date.now())};Ge.touchstart=(s,e)=>{s.inputState.lastTouchTime=Date.now(),s.inputState.setSelectionOrigin("select.pointer")};Ge.touchmove=s=>{s.inputState.setSelectionOrigin("select.pointer")};Zl.touchstart=Zl.touchmove={passive:!0};Ge.mousedown=(s,e)=>{if(s.observer.flush(),s.inputState.lastTouchTime>Date.now()-2e3)return;let t=null;for(let n of s.state.facet(_u))if(t=n(s,e),t)break;if(!t&&e.button==0&&(t=mm(s,e)),t){let n=!s.hasFocus;s.inputState.startMouseSelection(new hm(s,e,t,n)),n&&s.observer.ignore(()=>iu(s.contentDOM)),s.inputState.mouseSelection&&s.inputState.mouseSelection.start(e)}};function th(s,e,t,n){if(n==1)return F.cursor(e,t);if(n==2)return Zg(s.state,e,t);{let i=_t.find(s.docView,e),r=s.state.doc.lineAt(i?i.posAtEnd:e),l=i?i.posAtStart:r.from,o=i?i.posAtEnd:r.to;return os>=e.top&&s<=e.bottom,nh=(s,e,t)=>Ru(e,t)&&s>=t.left&&s<=t.right;function pm(s,e,t,n){let i=_t.find(s.docView,e);if(!i)return 1;let r=e-i.posAtStart;if(r==0)return 1;if(r==i.length)return-1;let l=i.coordsAt(r,-1);if(l&&nh(t,n,l))return-1;let o=i.coordsAt(r,1);return o&&nh(t,n,o)?1:l&&Ru(n,l)?-1:1}function ih(s,e){let t=s.posAtCoords({x:e.clientX,y:e.clientY},!1);return{pos:t,bias:pm(s,t,e.clientX,e.clientY)}}const gm=se.ie&&se.ie_version<=11;let sh=null,rh=0,lh=0;function Iu(s){if(!gm)return s.detail;let e=sh,t=lh;return sh=s,lh=Date.now(),rh=!e||t>Date.now()-400&&Math.abs(e.clientX-s.clientX)<2&&Math.abs(e.clientY-s.clientY)<2?(rh+1)%3:1}function mm(s,e){let t=ih(s,e),n=Iu(e),i=s.state.selection;return{update(r){r.docChanged&&(t.pos=r.changes.mapPos(t.pos),i=i.map(r.changes))},get(r,l,o){let a=ih(s,r),h,c=th(s,a.pos,a.bias,n);if(t.pos!=a.pos&&!l){let f=th(s,t.pos,t.bias,n),u=Math.min(f.from,c.from),d=Math.max(f.to,c.to);c=u1&&(h=bm(i,a.pos))?h:o?i.addRange(c):F.create([c])}}}function bm(s,e){for(let t=0;t=e)return F.create(s.ranges.slice(0,t).concat(s.ranges.slice(t+1)),s.mainIndex==t?0:s.mainIndex-(s.mainIndex>t?1:0))}return null}Ge.dragstart=(s,e)=>{let{selection:{main:t}}=s.state,{mouseSelection:n}=s.inputState;n&&(n.dragging=t),e.dataTransfer&&(e.dataTransfer.setData("Text",s.state.sliceDoc(t.from,t.to)),e.dataTransfer.effectAllowed="copyMove")};function oh(s,e,t,n){if(!t)return;let i=s.posAtCoords({x:e.clientX,y:e.clientY},!1);e.preventDefault();let{mouseSelection:r}=s.inputState,l=n&&r&&r.dragging&&fm(s,e)?{from:r.dragging.from,to:r.dragging.to}:null,o={from:i,insert:t},a=s.state.changes(l?[l,o]:o);s.focus(),s.dispatch({changes:a,selection:{anchor:a.mapPos(i,-1),head:a.mapPos(i,1)},userEvent:l?"move.drop":"input.drop"})}Ge.drop=(s,e)=>{if(!e.dataTransfer)return;if(s.state.readOnly)return e.preventDefault();let t=e.dataTransfer.files;if(t&&t.length){e.preventDefault();let n=Array(t.length),i=0,r=()=>{++i==t.length&&oh(s,e,n.filter(l=>l!=null).join(s.state.lineBreak),!1)};for(let l=0;l{/[\x00-\x08\x0e-\x1f]{2}/.test(o.result)||(n[l]=o.result),r()},o.readAsText(t[l])}}else oh(s,e,e.dataTransfer.getData("Text"),!0)};Ge.paste=(s,e)=>{if(s.state.readOnly)return e.preventDefault();s.observer.flush();let t=Nu?null:e.clipboardData;t?(Lu(s,t.getData("text/plain")||t.getData("text/uri-text")),e.preventDefault()):dm(s)};function _m(s,e){let t=s.dom.parentNode;if(!t)return;let n=t.appendChild(document.createElement("textarea"));n.style.cssText="position: fixed; left: -10000px; top: 10px",n.value=e,n.focus(),n.selectionEnd=e.length,n.selectionStart=0,setTimeout(()=>{n.remove(),s.focus()},50)}function km(s){let e=[],t=[],n=!1;for(let i of s.selection.ranges)i.empty||(e.push(s.sliceDoc(i.from,i.to)),t.push(i));if(!e.length){let i=-1;for(let{from:r}of s.selection.ranges){let l=s.doc.lineAt(r);l.number>i&&(e.push(l.text),t.push({from:l.from,to:Math.min(s.doc.length,l.to+1)})),i=l.number}n=!0}return{text:e.join(s.lineBreak),ranges:t,linewise:n}}let Ql=null;Ge.copy=Ge.cut=(s,e)=>{let{text:t,ranges:n,linewise:i}=km(s.state);if(!t&&!i)return;Ql=i?t:null;let r=Nu?null:e.clipboardData;r?(e.preventDefault(),r.clearData(),r.setData("text/plain",t)):_m(s,t),e.type=="cut"&&!s.state.readOnly&&s.dispatch({changes:n,scrollIntoView:!0,userEvent:"delete.cut"})};const zu=qn.define();function ju(s,e){let t=[];for(let n of s.facet(yu)){let i=n(s,e);i&&t.push(i)}return t?s.update({effects:t,annotations:zu.of(!0)}):null}function Vu(s){setTimeout(()=>{let e=s.hasFocus;if(e!=s.inputState.notifiedFocused){let t=ju(s.state,e);t?s.dispatch(t):s.update([])}},10)}Ge.focus=s=>{s.inputState.lastFocusTime=Date.now(),!s.scrollDOM.scrollTop&&(s.inputState.lastScrollTop||s.inputState.lastScrollLeft)&&(s.scrollDOM.scrollTop=s.inputState.lastScrollTop,s.scrollDOM.scrollLeft=s.inputState.lastScrollLeft),Vu(s)};Ge.blur=s=>{s.observer.clearSelectionRange(),Vu(s)};Ge.compositionstart=Ge.compositionupdate=s=>{s.inputState.compositionFirstChange==null&&(s.inputState.compositionFirstChange=!0),s.inputState.composing<0&&(s.inputState.composing=0)};Ge.compositionend=s=>{s.inputState.composing=-1,s.inputState.compositionEndedAt=Date.now(),s.inputState.compositionPendingKey=!0,s.inputState.compositionPendingChange=s.observer.pendingRecords().length>0,s.inputState.compositionFirstChange=null,se.chrome&&se.android?s.observer.flushSoon():s.inputState.compositionPendingChange?Promise.resolve().then(()=>s.observer.flush()):setTimeout(()=>{s.inputState.composing<0&&s.docView.hasComposition&&s.update([])},50)};Ge.contextmenu=s=>{s.inputState.lastContextMenu=Date.now()};Ge.beforeinput=(s,e)=>{var t;let n;if(se.chrome&&se.android&&(n=$u.find(i=>i.inputType==e.inputType))&&(s.observer.delayAndroidKey(n.key,n.keyCode),n.key=="Backspace"||n.key=="Delete")){let i=((t=window.visualViewport)===null||t===void 0?void 0:t.height)||0;setTimeout(()=>{var r;(((r=window.visualViewport)===null||r===void 0?void 0:r.height)||0)>i+10&&s.hasFocus&&(s.contentDOM.blur(),s.focus())},100)}};const ah=["pre-wrap","normal","pre-line","break-spaces"];class vm{constructor(e){this.lineWrapping=e,this.doc=De.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30,this.heightChanged=!1}heightForGap(e,t){let n=this.doc.lineAt(t).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(n+=Math.max(0,Math.ceil((t-e-n*this.lineLength*.5)/this.lineLength))),this.lineHeight*n}heightForLine(e){return this.lineWrapping?(1+Math.max(0,Math.ceil((e-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return ah.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let t=!1;for(let n=0;n-1,a=Math.round(t)!=Math.round(this.lineHeight)||this.lineWrapping!=o;if(this.lineWrapping=o,this.lineHeight=t,this.charWidth=n,this.textHeight=i,this.lineLength=r,a){this.heightSamples={};for(let h=0;h0}set outdated(e){this.flags=(e?2:0)|this.flags&-3}setHeight(e,t){this.height!=t&&(Math.abs(this.height-t)>Gs&&(e.heightChanged=!0),this.height=t)}replace(e,t,n){return dt.of(n)}decomposeLeft(e,t){t.push(this)}decomposeRight(e,t){t.push(this)}applyChanges(e,t,n,i){let r=this,l=n.doc;for(let o=i.length-1;o>=0;o--){let{fromA:a,toA:h,fromB:c,toB:f}=i[o],u=r.lineAt(a,Ie.ByPosNoHeight,n.setDoc(t),0,0),d=u.to>=h?u:r.lineAt(h,Ie.ByPosNoHeight,n,0,0);for(f+=d.to-h,h=d.to;o>0&&u.from<=i[o-1].toA;)a=i[o-1].fromA,c=i[o-1].fromB,o--,ar*2){let o=e[t-1];o.break?e.splice(--t,1,o.left,null,o.right):e.splice(--t,1,o.left,o.right),n+=1+o.break,i-=o.size}else if(r>i*2){let o=e[n];o.break?e.splice(n,1,o.left,null,o.right):e.splice(n,1,o.left,o.right),n+=2+o.break,r-=o.size}else break;else if(i=r&&l(this.blockAt(0,n,i,r))}updateHeight(e,t=0,n=!1,i){return i&&i.from<=t&&i.more&&this.setHeight(e,i.heights[i.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class xt extends Hu{constructor(e,t){super(e,t,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(e,t,n,i){return new an(i,this.length,n,this.height,this.breaks)}replace(e,t,n){let i=n[0];return n.length==1&&(i instanceof xt||i instanceof nt&&i.flags&4)&&Math.abs(this.length-i.length)<10?(i instanceof nt?i=new xt(i.length,this.height):i.height=this.height,this.outdated||(i.outdated=!1),i):dt.of(n)}updateHeight(e,t=0,n=!1,i){return i&&i.from<=t&&i.more?this.setHeight(e,i.heights[i.index++]):(n||this.outdated)&&this.setHeight(e,Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))+this.breaks*e.lineHeight),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class nt extends dt{constructor(e){super(e,0)}heightMetrics(e,t){let n=e.doc.lineAt(t).number,i=e.doc.lineAt(t+this.length).number,r=i-n+1,l,o=0;if(e.lineWrapping){let a=Math.min(this.height,e.lineHeight*r);l=a/r,this.length>r+1&&(o=(this.height-a)/(this.length-r-1))}else l=this.height/r;return{firstLine:n,lastLine:i,perLine:l,perChar:o}}blockAt(e,t,n,i){let{firstLine:r,lastLine:l,perLine:o,perChar:a}=this.heightMetrics(t,i);if(t.lineWrapping){let h=i+Math.round(Math.max(0,Math.min(1,(e-n)/this.height))*this.length),c=t.doc.lineAt(h),f=o+c.length*a,u=Math.max(n,e-f/2);return new an(c.from,c.length,u,f,0)}else{let h=Math.max(0,Math.min(l-r,Math.floor((e-n)/o))),{from:c,length:f}=t.doc.line(r+h);return new an(c,f,n+o*h,o,0)}}lineAt(e,t,n,i,r){if(t==Ie.ByHeight)return this.blockAt(e,n,i,r);if(t==Ie.ByPosNoHeight){let{from:d,to:p}=n.doc.lineAt(e);return new an(d,p-d,0,0,0)}let{firstLine:l,perLine:o,perChar:a}=this.heightMetrics(n,r),h=n.doc.lineAt(e),c=o+h.length*a,f=h.number-l,u=i+o*f+a*(h.from-r-f);return new an(h.from,h.length,Math.max(i,Math.min(u,i+this.height-c)),c,0)}forEachLine(e,t,n,i,r,l){e=Math.max(e,r),t=Math.min(t,r+this.length);let{firstLine:o,perLine:a,perChar:h}=this.heightMetrics(n,r);for(let c=e,f=i;c<=t;){let u=n.doc.lineAt(c);if(c==e){let p=u.number-o;f+=a*p+h*(e-r-p)}let d=a+h*u.length;l(new an(u.from,u.length,f,d,0)),f+=d,c=u.to+1}}replace(e,t,n){let i=this.length-t;if(i>0){let r=n[n.length-1];r instanceof nt?n[n.length-1]=new nt(r.length+i):n.push(null,new nt(i-1))}if(e>0){let r=n[0];r instanceof nt?n[0]=new nt(e+r.length):n.unshift(new nt(e-1),null)}return dt.of(n)}decomposeLeft(e,t){t.push(new nt(e-1),null)}decomposeRight(e,t){t.push(null,new nt(this.length-e-1))}updateHeight(e,t=0,n=!1,i){let r=t+this.length;if(i&&i.from<=t+this.length&&i.more){let l=[],o=Math.max(t,i.from),a=-1;for(i.from>t&&l.push(new nt(i.from-t-1).updateHeight(e,t));o<=r&&i.more;){let c=e.doc.lineAt(o).length;l.length&&l.push(null);let f=i.heights[i.index++];a==-1?a=f:Math.abs(f-a)>=Gs&&(a=-2);let u=new xt(c,f);u.outdated=!1,l.push(u),o+=c+1}o<=r&&l.push(null,new nt(r-o).updateHeight(e,o));let h=dt.of(l);return(a<0||Math.abs(h.height-this.height)>=Gs||Math.abs(a-this.heightMetrics(e,t).perLine)>=Gs)&&(e.heightChanged=!0),h}else(n||this.outdated)&&(this.setHeight(e,e.heightForGap(t,t+this.length)),this.outdated=!1);return this}toString(){return`gap(${this.length})`}}class wm extends dt{constructor(e,t,n){super(e.length+t+n.length,e.height+n.height,t|(e.outdated||n.outdated?2:0)),this.left=e,this.right=n,this.size=e.size+n.size}get break(){return this.flags&1}blockAt(e,t,n,i){let r=n+this.left.height;return eo))return h;let c=t==Ie.ByPosNoHeight?Ie.ByPosNoHeight:Ie.ByPos;return a?h.join(this.right.lineAt(o,c,n,l,o)):this.left.lineAt(o,c,n,i,r).join(h)}forEachLine(e,t,n,i,r,l){let o=i+this.left.height,a=r+this.left.length+this.break;if(this.break)e=a&&this.right.forEachLine(e,t,n,o,a,l);else{let h=this.lineAt(a,Ie.ByPos,n,i,r);e=e&&h.from<=t&&l(h),t>h.to&&this.right.forEachLine(h.to+1,t,n,o,a,l)}}replace(e,t,n){let i=this.left.length+this.break;if(tthis.left.length)return this.balanced(this.left,this.right.replace(e-i,t-i,n));let r=[];e>0&&this.decomposeLeft(e,r);let l=r.length;for(let o of n)r.push(o);if(e>0&&hh(r,l-1),t=n&&t.push(null)),e>n&&this.right.decomposeLeft(e-n,t)}decomposeRight(e,t){let n=this.left.length,i=n+this.break;if(e>=i)return this.right.decomposeRight(e-i,t);e2*t.size||t.size>2*e.size?dt.of(this.break?[e,null,t]:[e,t]):(this.left=e,this.right=t,this.height=e.height+t.height,this.outdated=e.outdated||t.outdated,this.size=e.size+t.size,this.length=e.length+this.break+t.length,this)}updateHeight(e,t=0,n=!1,i){let{left:r,right:l}=this,o=t+r.length+this.break,a=null;return i&&i.from<=t+r.length&&i.more?a=r=r.updateHeight(e,t,n,i):r.updateHeight(e,t,n),i&&i.from<=o+l.length&&i.more?a=l=l.updateHeight(e,o,n,i):l.updateHeight(e,o,n),a?this.balanced(r,l):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function hh(s,e){let t,n;s[e]==null&&(t=s[e-1])instanceof nt&&(n=s[e+1])instanceof nt&&s.splice(e-1,3,new nt(t.length+1+n.length))}const Sm=5;class Oo{constructor(e,t){this.pos=e,this.oracle=t,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,t){if(this.lineStart>-1){let n=Math.min(t,this.lineEnd),i=this.nodes[this.nodes.length-1];i instanceof xt?i.length+=n-this.pos:(n>this.pos||!this.isCovered)&&this.nodes.push(new xt(n-this.pos,-1)),this.writtenTo=n,t>n&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=t}point(e,t,n){if(e=Sm)&&this.addLineDeco(i,r,l)}else t>e&&this.span(e,t);this.lineEnd>-1&&this.lineEnd-1)return;let{from:e,to:t}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=t,this.writtenToe&&this.nodes.push(new xt(this.pos-e,-1)),this.writtenTo=this.pos}blankContent(e,t){let n=new nt(t-e);return this.oracle.doc.lineAt(e).to==t&&(n.flags|=4),n}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof xt)return e;let t=new xt(0,-1);return this.nodes.push(t),t}addBlock(e){var t;this.enterLine();let n=(t=e.deco)===null||t===void 0?void 0:t.type;n==Fe.WidgetAfter&&!this.isCovered&&this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,n!=Fe.WidgetBefore&&(this.covering=e)}addLineDeco(e,t,n){let i=this.ensureLine();i.length+=n,i.collapsed+=n,i.widgetHeight=Math.max(i.widgetHeight,e),i.breaks+=t,this.writtenTo=this.pos=this.pos+n}finish(e){let t=this.nodes.length==0?null:this.nodes[this.nodes.length-1];this.lineStart>-1&&!(t instanceof xt)&&!this.isCovered?this.nodes.push(new xt(0,-1)):(this.writtenToc.clientHeight||c.scrollWidth>c.clientWidth)&&f.overflow!="visible"){let u=c.getBoundingClientRect();r=Math.max(r,u.left),l=Math.min(l,u.right),o=Math.max(o,u.top),a=h==s.parentNode?u.bottom:Math.min(a,u.bottom)}h=f.position=="absolute"||f.position=="fixed"?c.offsetParent:c.parentNode}else if(h.nodeType==11)h=h.host;else break;return{left:r-t.left,right:Math.max(r,l)-t.left,top:o-(t.top+e),bottom:Math.max(o,a)-(t.top+e)}}function Mm(s,e){let t=s.getBoundingClientRect();return{left:0,right:t.right-t.left,top:e,bottom:t.bottom-(t.top+e)}}class ul{constructor(e,t,n){this.from=e,this.to=t,this.size=n}static same(e,t){if(e.length!=t.length)return!1;for(let n=0;ntypeof n!="function"&&n.class=="cm-lineWrapping");this.heightOracle=new vm(t),this.stateDeco=e.facet(os).filter(n=>typeof n!="function"),this.heightMap=dt.empty().applyChanges(this.stateDeco,De.empty,this.heightOracle.setDoc(e.doc),[new It(0,0,0,e.doc.length)]),this.viewport=this.getViewport(0,null),this.updateViewportLines(),this.updateForViewport(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=Re.set(this.lineGaps.map(n=>n.draw(!1))),this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:t}=this.state.selection;for(let n=0;n<=1;n++){let i=n?t.head:t.anchor;if(!e.some(({from:r,to:l})=>i>=r&&i<=l)){let{from:r,to:l}=this.lineBlockAt(i);e.push(new Os(r,l))}}this.viewports=e.sort((n,i)=>n.from-i.from),this.scaler=this.heightMap.height<=7e6?fh:new Om(this.heightOracle,this.heightMap,this.viewports)}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,e=>{this.viewportLines.push(this.scaler.scale==1?e:Ji(e,this.scaler))})}update(e,t=null){this.state=e.state;let n=this.stateDeco;this.stateDeco=this.state.facet(os).filter(c=>typeof c!="function");let i=e.changedRanges,r=It.extendWithRanges(i,xm(n,this.stateDeco,e?e.changes:Ye.empty(this.state.doc.length))),l=this.heightMap.height,o=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),r),this.heightMap.height!=l&&(e.flags|=2),o?(this.scrollAnchorPos=e.changes.mapPos(o.from,-1),this.scrollAnchorHeight=o.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=this.heightMap.height);let a=r.length?this.mapViewport(this.viewport,e.changes):this.viewport;(t&&(t.range.heada.to)||!this.viewportIsAppropriate(a))&&(a=this.getViewport(0,t));let h=!e.changes.empty||e.flags&2||a.from!=this.viewport.from||a.to!=this.viewport.to;this.viewport=a,this.updateForViewport(),h&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(),t&&(this.scrollTarget=t),!this.mustEnforceCursorAssoc&&e.selectionSet&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(Su)&&(this.mustEnforceCursorAssoc=!0)}measure(e){let t=e.contentDOM,n=window.getComputedStyle(t),i=this.heightOracle,r=n.whiteSpace;this.defaultTextDirection=n.direction=="rtl"?Ue.RTL:Ue.LTR;let l=this.heightOracle.mustRefreshForWrapping(r),o=t.getBoundingClientRect(),a=l||this.mustMeasureContent||this.contentDOMHeight!=o.height;this.contentDOMHeight=o.height,this.mustMeasureContent=!1;let h=0,c=0,f=parseInt(n.paddingTop)||0,u=parseInt(n.paddingBottom)||0;(this.paddingTop!=f||this.paddingBottom!=u)&&(this.paddingTop=f,this.paddingBottom=u,h|=10),this.editorWidth!=e.scrollDOM.clientWidth&&(i.lineWrapping&&(a=!0),this.editorWidth=e.scrollDOM.clientWidth,h|=8),this.scrollTop!=e.scrollDOM.scrollTop&&(this.scrollAnchorHeight=-1,this.scrollTop=e.scrollDOM.scrollTop),this.scrolledToBottom=ru(e.scrollDOM);let d=(this.printing?Mm:Cm)(t,this.paddingTop),p=d.top-this.pixelViewport.top,g=d.bottom-this.pixelViewport.bottom;this.pixelViewport=d;let m=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(m!=this.inView&&(this.inView=m,m&&(a=!0)),!this.inView&&!this.scrollTarget)return 0;let _=o.width;if((this.contentDOMWidth!=_||this.editorHeight!=e.scrollDOM.clientHeight)&&(this.contentDOMWidth=o.width,this.editorHeight=e.scrollDOM.clientHeight,h|=8),a){let E=e.docView.measureVisibleLineHeights(this.viewport);if(i.mustRefreshForHeights(E)&&(l=!0),l||i.lineWrapping&&Math.abs(_-this.contentDOMWidth)>i.charWidth){let{lineHeight:w,charWidth:B,textHeight:D}=e.docView.measureTextSize();l=w>0&&i.refresh(r,w,B,D,_/B,E),l&&(e.docView.minWidth=0,h|=8)}p>0&&g>0?c=Math.max(p,g):p<0&&g<0&&(c=Math.min(p,g)),i.heightChanged=!1;for(let w of this.viewports){let B=w.from==this.viewport.from?E:e.docView.measureVisibleLineHeights(w);this.heightMap=(l?dt.empty().applyChanges(this.stateDeco,De.empty,this.heightOracle,[new It(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(i,0,l,new ym(w.from,B))}i.heightChanged&&(h|=2)}let v=!this.viewportIsAppropriate(this.viewport,c)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return v&&(this.viewport=this.getViewport(c,this.scrollTarget)),this.updateForViewport(),(h&2||v)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(l?[]:this.lineGaps,e)),h|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),h}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,t){let n=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),i=this.heightMap,r=this.heightOracle,{visibleTop:l,visibleBottom:o}=this,a=new Os(i.lineAt(l-n*1e3,Ie.ByHeight,r,0,0).from,i.lineAt(o+(1-n)*1e3,Ie.ByHeight,r,0,0).to);if(t){let{head:h}=t.range;if(ha.to){let c=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),f=i.lineAt(h,Ie.ByPos,r,0,0),u;t.y=="center"?u=(f.top+f.bottom)/2-c/2:t.y=="start"||t.y=="nearest"&&h=o+Math.max(10,Math.min(n,250)))&&i>l-2*1e3&&r>1,l=i<<1;if(this.defaultTextDirection!=Ue.LTR&&!n)return[];let o=[],a=(h,c,f,u)=>{if(c-hh&&mm.from>=f.from&&m.to<=f.to&&Math.abs(m.from-h)m.from<_&&m.to>_));if(!g){if(cm.from<=c&&m.to>=c)){let m=t.moveToLineBoundary(F.cursor(c),!1,!0).head;m>h&&(c=m)}g=new ul(h,c,this.gapSize(f,h,c,u))}o.push(g)};for(let h of this.viewportLines){if(h.lengthh.from&&a(h.from,u,h,c),dt.draw(this.heightOracle.lineWrapping))))}computeVisibleRanges(){let e=this.stateDeco;this.lineGaps.length&&(e=e.concat(this.lineGapDeco));let t=[];Ne.spans(e,this.viewport.from,this.viewport.to,{span(i,r){t.push({from:i,to:r})},point(){}},20);let n=t.length!=this.visibleRanges.length||this.visibleRanges.some((i,r)=>i.from!=t[r].from||i.to!=t[r].to);return this.visibleRanges=t,n?4:0}lineBlockAt(e){return e>=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find(t=>t.from<=e&&t.to>=e)||Ji(this.heightMap.lineAt(e,Ie.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return Ji(this.heightMap.lineAt(this.scaler.fromDOM(e),Ie.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(e){let t=this.lineBlockAtHeight(e+8);return t.from>=this.viewport.from||this.viewportLines[0].top-e>200?t:this.viewportLines[0]}elementAtHeight(e){return Ji(this.heightMap.blockAt(this.scaler.fromDOM(e),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class Os{constructor(e,t){this.from=e,this.to=t}}function Em(s,e,t){let n=[],i=s,r=0;return Ne.spans(t,s,e,{span(){},point(l,o){l>i&&(n.push({from:i,to:l}),r+=l-i),i=o}},20),i=1)return e[e.length-1].to;let n=Math.floor(s*t);for(let i=0;;i++){let{from:r,to:l}=e[i],o=l-r;if(n<=o)return r+n;n-=o}}function $s(s,e){let t=0;for(let{from:n,to:i}of s.ranges){if(e<=i){t+=e-n;break}t+=i-n}return t/s.total}function Dm(s,e){for(let t of s)if(e(t))return t}const fh={toDOM(s){return s},fromDOM(s){return s},scale:1};class Om{constructor(e,t,n){let i=0,r=0,l=0;this.viewports=n.map(({from:o,to:a})=>{let h=t.lineAt(o,Ie.ByPos,e,0,0).top,c=t.lineAt(a,Ie.ByPos,e,0,0).bottom;return i+=c-h,{from:o,to:a,top:h,bottom:c,domTop:0,domBottom:0}}),this.scale=(7e6-i)/(t.height-i);for(let o of this.viewports)o.domTop=l+(o.top-r)*this.scale,l=o.domBottom=o.domTop+(o.bottom-o.top),r=o.bottom}toDOM(e){for(let t=0,n=0,i=0;;t++){let r=tJi(i,e)):s._content)}const Bs=le.define({combine:s=>s.join(" ")}),eo=le.define({combine:s=>s.indexOf(!0)>-1}),to=jn.newName(),Fu=jn.newName(),Wu=jn.newName(),qu={"&light":"."+Fu,"&dark":"."+Wu};function no(s,e,t){return new jn(e,{finish(n){return/&/.test(n)?n.replace(/&\w*/,i=>{if(i=="&")return s;if(!t||!t[i])throw new RangeError(`Unsupported selector: ${i}`);return t[i]}):s+" "+n}})}const Pm=no("."+to,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",left:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".cm-highlightTab":{backgroundImage:`url('data:image/svg+xml,')`,backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},qu);class $m{constructor(e,t,n,i){this.typeOver=i,this.bounds=null,this.text="";let{impreciseHead:r,impreciseAnchor:l}=e.docView;if(e.state.readOnly&&t>-1)this.newSel=null;else if(t>-1&&(this.bounds=e.docView.domBoundsAround(t,n,0))){let o=r||l?[]:Nm(e),a=new hu(o,e.state);a.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=a.text,this.newSel=Lm(o,this.bounds.from)}else{let o=e.observer.selectionRange,a=r&&r.node==o.focusNode&&r.offset==o.focusOffset||!jl(e.contentDOM,o.focusNode)?e.state.selection.main.head:e.docView.posFromDOM(o.focusNode,o.focusOffset),h=l&&l.node==o.anchorNode&&l.offset==o.anchorOffset||!jl(e.contentDOM,o.anchorNode)?e.state.selection.main.anchor:e.docView.posFromDOM(o.anchorNode,o.anchorOffset);this.newSel=F.single(h,a)}}}function Uu(s,e){let t,{newSel:n}=e,i=s.state.selection.main,r=s.inputState.lastKeyTime>Date.now()-100?s.inputState.lastKeyCode:-1;if(e.bounds){let{from:l,to:o}=e.bounds,a=i.from,h=null;(r===8||se.android&&e.text.length=i.from&&t.to<=i.to&&(t.from!=i.from||t.to!=i.to)&&i.to-i.from-(t.to-t.from)<=4?t={from:i.from,to:i.to,insert:s.state.doc.slice(i.from,t.from).append(t.insert).append(s.state.doc.slice(t.to,i.to))}:(se.mac||se.android)&&t&&t.from==t.to&&t.from==i.head-1&&/^\. ?$/.test(t.insert.toString())&&s.contentDOM.getAttribute("autocorrect")=="off"?(n&&t.insert.length==2&&(n=F.single(n.main.anchor-1,n.main.head-1)),t={from:i.from,to:i.to,insert:De.of([" "])}):se.chrome&&t&&t.from==t.to&&t.from==i.head&&t.insert.toString()==` `&&s.lineWrapping&&(n&&(n=F.single(n.main.anchor-1,n.main.head-1)),t={from:i.from,to:i.to,insert:De.of([" "])}),t){let l=s.state;if(se.ios&&s.inputState.flushIOSKey(s)||se.android&&(t.from==i.from&&t.to==i.to&&t.insert.length==1&&t.insert.lines==2&&wi(s.contentDOM,"Enter",13)||(t.from==i.from-1&&t.to==i.to&&t.insert.length==0||r==8&&t.insert.lengthc(s,t.from,t.to,o)))return!0;s.inputState.composing>=0&&s.inputState.composing++;let a;if(t.from>=i.from&&t.to<=i.to&&t.to-t.from>=(i.to-i.from)/3&&(!n||n.main.empty&&n.main.from==t.from+t.insert.length)&&s.inputState.composing<0){let c=i.fromt.to?l.sliceDoc(t.to,i.to):"";a=l.replaceSelection(s.state.toText(c+t.insert.sliceString(0,void 0,s.state.lineBreak)+f))}else{let c=l.changes(t),f=n&&n.main.to<=c.newLength?n.main:void 0;if(l.selection.ranges.length>1&&s.inputState.composing>=0&&t.to<=i.to&&t.to>=i.to-10){let u=s.state.sliceDoc(t.from,t.to),d=Du(s)||s.state.doc.lineAt(i.head),p=i.to-t.to,g=i.to-i.from;a=l.changeByRange(m=>{if(m.from==i.from&&m.to==i.to)return{changes:c,range:f||m.map(c)};let _=m.to-p,v=_-u.length;if(m.to-m.from!=g||s.state.sliceDoc(v,_)!=u||d&&m.to>=d.from&&m.from<=d.to)return{range:m};let E=l.changes({from:v,to:_,insert:t.insert}),w=m.to-i.to;return{changes:E,range:f?F.range(Math.max(0,f.anchor+w),Math.max(0,f.head+w)):m.map(E)}})}else a={changes:c,selection:f&&l.selection.replaceRange(f)}}let h="input.type";return(s.composing||s.inputState.compositionPendingChange&&s.inputState.compositionEndedAt>Date.now()-50)&&(s.inputState.compositionPendingChange=!1,h+=".compose",s.inputState.compositionFirstChange&&(h+=".start",s.inputState.compositionFirstChange=!1)),s.dispatch(a,{scrollIntoView:!0,userEvent:h}),!0}else if(n&&!n.main.eq(i)){let l=!1,o="select";return s.inputState.lastSelectionTime>Date.now()-50&&(s.inputState.lastSelectionOrigin=="select"&&(l=!0),o=s.inputState.lastSelectionOrigin),s.dispatch({selection:n,scrollIntoView:l,userEvent:o}),!0}else return!1}function Bm(s,e,t,n){let i=Math.min(s.length,e.length),r=0;for(;r0&&o>0&&s.charCodeAt(l-1)==e.charCodeAt(o-1);)l--,o--;if(n=="end"){let a=Math.max(0,r-Math.min(l,o));t-=l+a-r}if(l=l?r-t:0;r-=a,o=r+(o-l),l=r}else if(o=o?r-t:0;r-=a,l=r+(l-o),o=r}return{from:r,toA:l,toB:o}}function Nm(s){let e=[];if(s.root.activeElement!=s.contentDOM)return e;let{anchorNode:t,anchorOffset:n,focusNode:i,focusOffset:r}=s.observer.selectionRange;return t&&(e.push(new ja(t,n)),(i!=t||r!=n)&&e.push(new ja(i,r))),e}function Lm(s,e){if(s.length==0)return null;let t=s[0].pos,n=s.length==2?s[1].pos:t;return t>-1&&n>-1?F.single(t+e,n+e):null}const Rm={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},dl=se.ie&&se.ie_version<=11;class Im{constructor(e){this.view=e,this.active=!1,this.selectionRange=new Dg,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.resizeContent=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver(t=>{for(let n of t)this.queue.push(n);(se.ie&&se.ie_version<=11||se.ios&&e.composing)&&t.some(n=>n.type=="childList"&&n.removedNodes.length||n.type=="characterData"&&n.oldValue.length>n.target.nodeValue.length)?this.flushSoon():this.flush()}),dl&&(this.onCharData=t=>{this.queue.push({target:t.target,type:"characterData",oldValue:t.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),typeof ResizeObserver=="function"&&(this.resizeScroll=new ResizeObserver(()=>{var t;((t=this.view.docView)===null||t===void 0?void 0:t.lastUpdate)this.view.requestMeasure()),this.resizeContent.observe(e.contentDOM)),this.addWindowListeners(this.win=e.win),this.start(),typeof IntersectionObserver=="function"&&(this.intersection=new IntersectionObserver(t=>{this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),t.length>0&&t[t.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(t=>{t.length>0&&t[t.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(e){this.view.inputState.runScrollHandlers(this.view,e),this.intersecting&&this.view.measure()}onScroll(e){this.intersecting&&this.flush(!1),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(){this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500)}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some((t,n)=>t!=e[n]))){this.gapIntersection.disconnect();for(let t of e)this.gapIntersection.observe(t);this.gaps=e}}onSelectionChange(e){let t=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:n}=this,i=this.selectionRange;if(n.state.facet(Or)?n.root.activeElement!=this.dom:!Ks(n.dom,i))return;let r=i.anchorNode&&n.docView.nearest(i.anchorNode);if(r&&r.ignoreEvent(e)){t||(this.selectionChanged=!1);return}(se.ie&&se.ie_version<=11||se.android&&se.chrome)&&!n.state.selection.main.empty&&i.focusNode&&rr(i.focusNode,i.focusOffset,i.anchorNode,i.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,t=se.safari&&e.root.nodeType==11&&Cg(this.dom.ownerDocument)==this.dom&&zm(this.view)||sr(e.root);if(!t||this.selectionRange.eq(t))return!1;let n=Ks(this.dom,t);return n&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime{let r=this.delayedAndroidKey;r&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=r.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&r.force&&wi(this.dom,r.key,r.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(i)}(!this.delayedAndroidKey||e=="Enter")&&(this.delayedAndroidKey={key:e,keyCode:t,force:this.lastChange{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}processRecords(){let e=this.pendingRecords();e.length&&(this.queue=[]);let t=-1,n=-1,i=!1;for(let r of e){let l=this.readMutation(r);l&&(l.typeOver&&(i=!0),t==-1?{from:t,to:n}=l:(t=Math.min(l.from,t),n=Math.max(l.to,n)))}return{from:t,to:n,typeOver:i}}readChange(){let{from:e,to:t,typeOver:n}=this.processRecords(),i=this.selectionChanged&&Ks(this.dom,this.selectionRange);return e<0&&!i?null:(e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1,new $m(this.view,e,t,n))}flush(e=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;e&&this.readSelectionRange();let t=this.readChange();if(!t)return!1;let n=this.view.state,i=Uu(this.view,t);return this.view.state==n&&this.view.update([]),i}readMutation(e){let t=this.view.docView.nearest(e.target);if(!t||t.ignoreMutation(e))return null;if(t.markDirty(e.type=="attributes"),e.type=="attributes"&&(t.flags|=4),e.type=="childList"){let n=uh(t,e.previousSibling||e.target.previousSibling,-1),i=uh(t,e.nextSibling||e.target.nextSibling,1);return{from:n?t.posAfter(n):t.posAtStart,to:i?t.posBefore(i):t.posAtEnd,typeOver:!1}}else return e.type=="characterData"?{from:t.posAtStart,to:t.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}addWindowListeners(e){e.addEventListener("resize",this.onResize),e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}destroy(){var e,t,n,i;this.stop(),(e=this.intersection)===null||e===void 0||e.disconnect(),(t=this.gapIntersection)===null||t===void 0||t.disconnect(),(n=this.resizeScroll)===null||n===void 0||n.disconnect(),(i=this.resizeContent)===null||i===void 0||i.disconnect();for(let r of this.scrollTargets)r.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey)}}function uh(s,e,t){for(;e;){let n=Le.get(e);if(n&&n.parent==s)return n;let i=e.parentNode;e=i!=s.dom?i:t>0?e.nextSibling:e.previousSibling}return null}function zm(s){let e=null;function t(a){a.preventDefault(),a.stopImmediatePropagation(),e=a.getTargetRanges()[0]}if(s.contentDOM.addEventListener("beforeinput",t,!0),s.dom.ownerDocument.execCommand("indent"),s.contentDOM.removeEventListener("beforeinput",t,!0),!e)return null;let n=e.startContainer,i=e.startOffset,r=e.endContainer,l=e.endOffset,o=s.docView.domAtPos(s.state.selection.main.anchor);return rr(o.node,o.offset,r,l)&&([n,i,r,l]=[r,l,n,i]),{anchorNode:n,anchorOffset:i,focusNode:r,focusOffset:l}}class ce{constructor(e={}){this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.style.cssText="position: fixed; top: -10000px",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),this._dispatch=e.dispatch||(t=>this.update([t])),this.dispatch=this.dispatch.bind(this),this._root=e.root||Og(e.parent)||document,this.viewState=new ch(e.state||ye.create(e)),this.plugins=this.state.facet(Ui).map(t=>new hl(t));for(let t of this.plugins)t.update(this);this.observer=new Im(this),this.inputState=new lm(this),this.inputState.ensureHandlers(this,this.plugins),this.docView=new Ka(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),e.parent&&e.parent.appendChild(this.dom)}get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}dispatch(...e){let t=e.length==1&&e[0]instanceof Ze?e[0]:this.state.update(...e);this._dispatch(t,this)}update(e){if(this.updateState!=0)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let t=!1,n=!1,i,r=this.state;for(let u of e){if(u.startState!=r)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");r=u.state}if(this.destroyed){this.viewState.state=r;return}let l=this.hasFocus,o=0,a=null;e.some(u=>u.annotation(zu))?(this.inputState.notifiedFocused=l,o=1):l!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=l,a=ju(r,l),a||(o=1));let h=this.observer.delayedAndroidKey,c=null;if(h?(this.observer.clearDelayedAndroidKey(),c=this.observer.readChange(),(c&&!this.state.doc.eq(r.doc)||!this.state.selection.eq(r.selection))&&(c=null)):this.observer.clear(),r.facet(ye.phrases)!=this.state.facet(ye.phrases))return this.setState(r);i=ar.create(this,r,e),i.flags|=o;let f=this.viewState.scrollTarget;try{this.updateState=2;for(let u of e){if(f&&(f=f.map(u.changes)),u.scrollIntoView){let{main:d}=u.state.selection;f=new or(d.empty?d:F.cursor(d.head,d.head>d.anchor?-1:1))}for(let d of u.effects)d.is(Ua)&&(f=d.value)}this.viewState.update(i,f),this.bidiCache=hr.update(this.bidiCache,i.changes),i.empty||(this.updatePlugins(i),this.inputState.update(i)),t=this.docView.update(i),this.state.facet(Ki)!=this.styleModules&&this.mountStyles(),n=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(t,e.some(u=>u.isUserEvent("select.pointer")))}finally{this.updateState=0}if(i.startState.facet(Bs)!=i.state.facet(Bs)&&(this.viewState.mustMeasureContent=!0),(t||n||f||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),!i.empty)for(let u of this.state.facet(Kl))u(i);(a||c)&&Promise.resolve().then(()=>{a&&this.state==a.startState&&this.dispatch(a),c&&!Uu(this,c)&&h.force&&wi(this.contentDOM,h.key,h.keyCode)})}setState(e){if(this.updateState!=0)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=e;return}this.updateState=2;let t=this.hasFocus;try{for(let n of this.plugins)n.destroy(this);this.viewState=new ch(e),this.plugins=e.facet(Ui).map(n=>new hl(n)),this.pluginMap.clear();for(let n of this.plugins)n.update(this);this.docView=new Ka(this),this.inputState.ensureHandlers(this,this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}t&&this.focus(),this.requestMeasure()}updatePlugins(e){let t=e.startState.facet(Ui),n=e.state.facet(Ui);if(t!=n){let i=[];for(let r of n){let l=t.indexOf(r);if(l<0)i.push(new hl(r));else{let o=this.plugins[l];o.mustUpdate=e,i.push(o)}}for(let r of this.plugins)r.mustUpdate!=e&&r.destroy(this);this.plugins=i,this.pluginMap.clear(),this.inputState.ensureHandlers(this,this.plugins)}else for(let i of this.plugins)i.mustUpdate=e;for(let i=0;i-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.measureScheduled=0,e&&this.observer.forceFlush();let t=null,n=this.scrollDOM,{scrollTop:i}=n,{scrollAnchorPos:r,scrollAnchorHeight:l}=this.viewState;i!=this.viewState.scrollTop&&(l=-1),this.viewState.scrollAnchorHeight=-1;try{for(let o=0;;o++){if(l<0)if(ru(n))r=-1,l=this.viewState.heightMap.height;else{let d=this.viewState.scrollAnchorAt(i);r=d.from,l=d.top}this.updateState=1;let a=this.viewState.measure(this);if(!a&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(o>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let h=[];a&4||([this.measureRequests,h]=[h,this.measureRequests]);let c=h.map(d=>{try{return d.read(this)}catch(p){return xn(this.state,p),dh}}),f=ar.create(this,this.state,[]),u=!1;f.flags|=a,t?t.flags|=a:t=f,this.updateState=2,f.empty||(this.updatePlugins(f),this.inputState.update(f),this.updateAttrs(),u=this.docView.update(f));for(let d=0;d1||p<-1){i=n.scrollTop=i+p,l=-1;continue}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(t&&!t.empty)for(let o of this.state.facet(Kl))o(t)}get themeClasses(){return to+" "+(this.state.facet(eo)?Wu:Fu)+" "+this.state.facet(Bs)}updateAttrs(){let e=ph(this,xu,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),t={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(Or)?"true":"false",class:"cm-content",style:`${se.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(t["aria-readonly"]="true"),ph(this,Eo,t);let n=this.observer.ignore(()=>{let i=ql(this.contentDOM,this.contentAttrs,t),r=ql(this.dom,this.editorAttrs,e);return i||r});return this.editorAttrs=e,this.contentAttrs=t,n}showAnnouncements(e){let t=!0;for(let n of e)for(let i of n.effects)if(i.is(ce.announce)){t&&(this.announceDOM.textContent=""),t=!1;let r=this.announceDOM.appendChild(document.createElement("div"));r.textContent=i.value}}mountStyles(){this.styleModules=this.state.facet(Ki),jn.mount(this.root,this.styleModules.concat(Pm).reverse())}readMeasured(){if(this.updateState==2)throw new Error("Reading the editor layout isn't allowed during an update");this.updateState==0&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(e){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),e){if(this.measureRequests.indexOf(e)>-1)return;if(e.key!=null){for(let t=0;tn.spec==e)||null),t&&t.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,t,n){return fl(this,e,Qa(this,e,t,n))}moveByGroup(e,t){return fl(this,e,Qa(this,e,t,n=>sm(this,e.head,n)))}moveToLineBoundary(e,t,n=!0){return im(this,e,t,n)}moveVertically(e,t,n){return fl(this,e,rm(this,e,t,n))}domAtPos(e){return this.docView.domAtPos(e)}posAtDOM(e,t=0){return this.docView.posFromDOM(e,t)}posAtCoords(e,t=!0){return this.readMeasured(),Pu(this,e,t)}coordsAtPos(e,t=1){this.readMeasured();let n=this.docView.coordsAt(e,t);if(!n||n.left==n.right)return n;let i=this.state.doc.lineAt(e),r=this.bidiSpans(i),l=r[Si.find(r,e-i.from,-1,t)];return Co(n,l.dir==Ue.LTR==t>0)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){return!this.state.facet(wu)||ethis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>jm)return Tu(e.length);let t=this.textDirectionAt(e.from);for(let i of this.bidiCache)if(i.from==e.from&&i.dir==t)return i.order;let n=Wg(e.text,t);return this.bidiCache.push(new hr(e.from,e.to,t,n)),n}get hasFocus(){var e;return(this.dom.ownerDocument.hasFocus()||se.safari&&((e=this.inputState)===null||e===void 0?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{iu(this.contentDOM),this.docView.updateSelection()})}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((e.nodeType==9?e:e.ownerDocument).defaultView||window),this.mountStyles())}destroy(){for(let e of this.plugins)e.destroy(this);this.plugins=[],this.inputState.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e,t={}){return Ua.of(new or(typeof e=="number"?F.cursor(e):e,t.y,t.x,t.yMargin,t.xMargin))}static domEventHandlers(e){return ht.define(()=>({}),{eventHandlers:e})}static theme(e,t){let n=jn.newName(),i=[Bs.of(n),Ki.of(no(`.${n}`,e))];return t&&t.dark&&i.push(eo.of(!0)),i}static baseTheme(e){return Er.lowest(Ki.of(no("."+to,e,qu)))}static findFromDOM(e){var t;let n=e.querySelector(".cm-content"),i=n&&Le.get(n)||Le.get(e);return((t=i==null?void 0:i.rootView)===null||t===void 0?void 0:t.view)||null}}ce.styleModule=Ki;ce.inputHandler=vu;ce.focusChangeEffect=yu;ce.perLineTextDirection=wu;ce.exceptionSink=ku;ce.updateListener=Kl;ce.editable=Or;ce.mouseSelectionStyle=_u;ce.dragMovesSelection=bu;ce.clickAddsSelectionRange=mu;ce.decorations=os;ce.atomicRanges=Do;ce.scrollMargins=Au;ce.darkTheme=eo;ce.contentAttributes=Eo;ce.editorAttributes=xu;ce.lineWrapping=ce.contentAttributes.of({class:"cm-lineWrapping"});ce.announce=Pe.define();const jm=4096,dh={};class hr{constructor(e,t,n,i){this.from=e,this.to=t,this.dir=n,this.order=i}static update(e,t){if(t.empty)return e;let n=[],i=e.length?e[e.length-1].dir:Ue.LTR;for(let r=Math.max(0,e.length-10);r=0;i--){let r=n[i],l=typeof r=="function"?r(s):r;l&&Wl(l,t)}return t}const Vm=se.mac?"mac":se.windows?"win":se.linux?"linux":"key";function Hm(s,e){const t=s.split(/-(?!$)/);let n=t[t.length-1];n=="Space"&&(n=" ");let i,r,l,o;for(let a=0;an.concat(i),[]))),t}function Nw(s,e,t){return Gu(Ju(s.state),e,s,t)}let Rn=null;const Wm=4e3;function qm(s,e=Vm){let t=Object.create(null),n=Object.create(null),i=(l,o)=>{let a=n[l];if(a==null)n[l]=o;else if(a!=o)throw new Error("Key binding "+l+" is used both as a regular binding and as a multi-stroke prefix")},r=(l,o,a,h,c)=>{var f,u;let d=t[l]||(t[l]=Object.create(null)),p=o.split(/ (?!$)/).map(_=>Hm(_,e));for(let _=1;_{let w=Rn={view:E,prefix:v,scope:l};return setTimeout(()=>{Rn==w&&(Rn=null)},Wm),!0}]})}let g=p.join(" ");i(g,!1);let m=d[g]||(d[g]={preventDefault:!1,stopPropagation:!1,run:((u=(f=d._any)===null||f===void 0?void 0:f.run)===null||u===void 0?void 0:u.slice())||[]});a&&m.run.push(a),h&&(m.preventDefault=!0),c&&(m.stopPropagation=!0)};for(let l of s){let o=l.scope?l.scope.split(" "):["editor"];if(l.any)for(let h of o){let c=t[h]||(t[h]=Object.create(null));c._any||(c._any={preventDefault:!1,stopPropagation:!1,run:[]});for(let f in c)c[f].run.push(l.any)}let a=l[e]||l.key;if(a)for(let h of o)r(h,a,l.run,l.preventDefault,l.stopPropagation),l.shift&&r(h,"Shift-"+a,l.shift,l.preventDefault,l.stopPropagation)}return t}function Gu(s,e,t,n){let i=Ag(e),r=Xi(i,0),l=Cl(r)==i.length&&i!=" ",o="",a=!1,h=!1,c=!1;Rn&&Rn.view==t&&Rn.scope==n&&(o=Rn.prefix+" ",Bu.indexOf(e.keyCode)<0&&(h=!0,Rn=null));let f=new Set,u=m=>{if(m){for(let _ of m.run)if(!f.has(_)&&(f.add(_),_(t,e)))return m.stopPropagation&&(c=!0),!0;m.preventDefault&&(m.stopPropagation&&(c=!0),h=!0)}return!1},d=s[n],p,g;return d&&(u(d[o+Ns(i,e,!l)])?a=!0:l&&(e.altKey||e.metaKey||e.ctrlKey)&&!(se.windows&&e.ctrlKey&&e.altKey)&&(p=Vn[e.keyCode])&&p!=i?(u(d[o+Ns(p,e,!0)])||e.shiftKey&&(g=rs[e.keyCode])!=i&&g!=p&&u(d[o+Ns(g,e,!1)]))&&(a=!0):l&&e.shiftKey&&u(d[o+Ns(i,e,!0)])&&(a=!0),!a&&u(d._any)&&(a=!0)),h&&(a=!0),a&&c&&e.stopPropagation(),a}class _s{constructor(e,t,n,i,r){this.className=e,this.left=t,this.top=n,this.width=i,this.height=r}draw(){let e=document.createElement("div");return e.className=this.className,this.adjust(e),e}update(e,t){return t.className!=this.className?!1:(this.adjust(e),!0)}adjust(e){e.style.left=this.left+"px",e.style.top=this.top+"px",this.width!=null&&(e.style.width=this.width+"px"),e.style.height=this.height+"px"}eq(e){return this.left==e.left&&this.top==e.top&&this.width==e.width&&this.height==e.height&&this.className==e.className}static forRange(e,t,n){if(n.empty){let i=e.coordsAtPos(n.head,n.assoc||1);if(!i)return[];let r=Yu(e);return[new _s(t,i.left-r.left,i.top-r.top,null,i.bottom-i.top)]}else return Um(e,t,n)}}function Yu(s){let e=s.scrollDOM.getBoundingClientRect();return{left:(s.textDirection==Ue.LTR?e.left:e.right-s.scrollDOM.clientWidth)-s.scrollDOM.scrollLeft,top:e.top-s.scrollDOM.scrollTop}}function mh(s,e,t){let n=F.cursor(e);return{from:Math.max(t.from,s.moveToLineBoundary(n,!1,!0).from),to:Math.min(t.to,s.moveToLineBoundary(n,!0,!0).from),type:Fe.Text}}function Um(s,e,t){if(t.to<=s.viewport.from||t.from>=s.viewport.to)return[];let n=Math.max(t.from,s.viewport.from),i=Math.min(t.to,s.viewport.to),r=s.textDirection==Ue.LTR,l=s.contentDOM,o=l.getBoundingClientRect(),a=Yu(s),h=l.querySelector(".cm-line"),c=h&&window.getComputedStyle(h),f=o.left+(c?parseInt(c.paddingLeft)+Math.min(0,parseInt(c.textIndent)):0),u=o.right-(c?parseInt(c.paddingRight):0),d=Xl(s,n),p=Xl(s,i),g=d.type==Fe.Text?d:null,m=p.type==Fe.Text?p:null;if(g&&(s.lineWrapping||d.widgetLineBreaks)&&(g=mh(s,n,g)),m&&(s.lineWrapping||p.widgetLineBreaks)&&(m=mh(s,i,m)),g&&m&&g.from==m.from)return v(E(t.from,t.to,g));{let B=g?E(t.from,null,g):w(d,!1),D=m?E(null,t.to,m):w(p,!0),$=[];return(g||d).to<(m||p).from-(g&&m?1:0)||d.widgetLineBreaks>1&&B.bottom+s.defaultLineHeight/2O&&Q.from=J)break;ge>ie&&H(Math.max(oe,ie),B==null&&oe<=O,Math.min(ge,J),D==null&&ge>=T,z.dir)}if(ie=fe.to+1,ie>=J)break}return V.length==0&&H(O,B==null,T,D==null,s.textDirection),{top:G,bottom:L,horizontal:V}}function w(B,D){let $=o.top+(D?B.top:B.bottom);return{top:$,bottom:$,horizontal:[]}}}function Km(s,e){return s.constructor==e.constructor&&s.eq(e)}class Jm{constructor(e,t){this.view=e,this.layer=t,this.drawn=[],this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=e.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),t.above&&this.dom.classList.add("cm-layer-above"),t.class&&this.dom.classList.add(t.class),this.dom.setAttribute("aria-hidden","true"),this.setOrder(e.state),e.requestMeasure(this.measureReq),t.mount&&t.mount(this.dom,e)}update(e){e.startState.facet(Ys)!=e.state.facet(Ys)&&this.setOrder(e.state),(this.layer.update(e,this.dom)||e.geometryChanged)&&e.view.requestMeasure(this.measureReq)}setOrder(e){let t=0,n=e.facet(Ys);for(;t!Km(t,this.drawn[n]))){let t=this.dom.firstChild,n=0;for(let i of e)i.update&&t&&i.constructor&&this.drawn[n].constructor&&i.update(t,this.drawn[n])?(t=t.nextSibling,n++):this.dom.insertBefore(i.draw(),t);for(;t;){let i=t.nextSibling;t.remove(),t=i}this.drawn=e}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}}const Ys=le.define();function Xu(s){return[ht.define(e=>new Jm(e,s)),Ys.of(s)]}const Zu=!se.ios,as=le.define({combine(s){return Ei(s,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(e,t)=>Math.min(e,t),drawRangeCursor:(e,t)=>e||t})}});function Lw(s={}){return[as.of(s),Gm,Ym,Xm,Su.of(!0)]}function Qu(s){return s.startState.facet(as)!=s.state.facet(as)}const Gm=Xu({above:!0,markers(s){let{state:e}=s,t=e.facet(as),n=[];for(let i of e.selection.ranges){let r=i==e.selection.main;if(i.empty?!r||Zu:t.drawRangeCursor){let l=r?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",o=i.empty?i:F.cursor(i.head,i.head>i.anchor?-1:1);for(let a of _s.forRange(s,l,o))n.push(a)}}return n},update(s,e){s.transactions.some(n=>n.selection)&&(e.style.animationName=e.style.animationName=="cm-blink"?"cm-blink2":"cm-blink");let t=Qu(s);return t&&bh(s.state,e),s.docChanged||s.selectionSet||t},mount(s,e){bh(e.state,s)},class:"cm-cursorLayer"});function bh(s,e){e.style.animationDuration=s.facet(as).cursorBlinkRate+"ms"}const Ym=Xu({above:!1,markers(s){return s.state.selection.ranges.map(e=>e.empty?[]:_s.forRange(s,"cm-selectionBackground",e)).reduce((e,t)=>e.concat(t))},update(s,e){return s.docChanged||s.selectionSet||s.viewportChanged||Qu(s)},class:"cm-selectionLayer"}),ed={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};Zu&&(ed[".cm-line"].caretColor="transparent !important");const Xm=Er.highest(ce.theme(ed)),td=Pe.define({map(s,e){return s==null?null:e.mapPos(s)}}),Gi=Pt.define({create(){return null},update(s,e){return s!=null&&(s=e.changes.mapPos(s)),e.effects.reduce((t,n)=>n.is(td)?n.value:t,s)}}),Zm=ht.fromClass(class{constructor(s){this.view=s,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(s){var e;let t=s.state.field(Gi);t==null?this.cursor!=null&&((e=this.cursor)===null||e===void 0||e.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(s.startState.field(Gi)!=t||s.docChanged||s.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let s=this.view.state.field(Gi),e=s!=null&&this.view.coordsAtPos(s);if(!e)return null;let t=this.view.scrollDOM.getBoundingClientRect();return{left:e.left-t.left+this.view.scrollDOM.scrollLeft,top:e.top-t.top+this.view.scrollDOM.scrollTop,height:e.bottom-e.top}}drawCursor(s){this.cursor&&(s?(this.cursor.style.left=s.left+"px",this.cursor.style.top=s.top+"px",this.cursor.style.height=s.height+"px"):this.cursor.style.left="-100000px")}destroy(){this.cursor&&this.cursor.remove()}setDropPos(s){this.view.state.field(Gi)!=s&&this.view.dispatch({effects:td.of(s)})}},{eventHandlers:{dragover(s){this.setDropPos(this.view.posAtCoords({x:s.clientX,y:s.clientY}))},dragleave(s){(s.target==this.view.contentDOM||!this.view.contentDOM.contains(s.relatedTarget))&&this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function Rw(){return[Gi,Zm]}function _h(s,e,t,n,i){e.lastIndex=0;for(let r=s.iterRange(t,n),l=t,o;!r.next().done;l+=r.value.length)if(!r.lineBreak)for(;o=e.exec(r.value);)i(l+o.index,o)}function Qm(s,e){let t=s.visibleRanges;if(t.length==1&&t[0].from==s.viewport.from&&t[0].to==s.viewport.to)return t;let n=[];for(let{from:i,to:r}of t)i=Math.max(s.state.doc.lineAt(i).from,i-e),r=Math.min(s.state.doc.lineAt(r).to,r+e),n.length&&n[n.length-1].to>=i?n[n.length-1].to=r:n.push({from:i,to:r});return n}class e0{constructor(e){const{regexp:t,decoration:n,decorate:i,boundary:r,maxLength:l=1e3}=e;if(!t.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=t,i)this.addMatch=(o,a,h,c)=>i(c,h,h+o[0].length,o,a);else if(typeof n=="function")this.addMatch=(o,a,h,c)=>{let f=n(o,a,h);f&&c(h,h+o[0].length,f)};else if(n)this.addMatch=(o,a,h,c)=>c(h,h+o[0].length,n);else throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.boundary=r,this.maxLength=l}createDeco(e){let t=new ri,n=t.add.bind(t);for(let{from:i,to:r}of Qm(e,this.maxLength))_h(e.state.doc,this.regexp,i,r,(l,o)=>this.addMatch(o,e,l,n));return t.finish()}updateDeco(e,t){let n=1e9,i=-1;return e.docChanged&&e.changes.iterChanges((r,l,o,a)=>{a>e.view.viewport.from&&o1e3?this.createDeco(e.view):i>-1?this.updateRange(e.view,t.map(e.changes),n,i):t}updateRange(e,t,n,i){for(let r of e.visibleRanges){let l=Math.max(r.from,n),o=Math.min(r.to,i);if(o>l){let a=e.state.doc.lineAt(l),h=a.toa.from;l--)if(this.boundary.test(a.text[l-1-a.from])){c=l;break}for(;ou.push(_.range(g,m));if(a==h)for(this.regexp.lastIndex=c-a.from;(d=this.regexp.exec(a.text))&&d.indexthis.addMatch(m,e,g,p));t=t.update({filterFrom:c,filterTo:f,filter:(g,m)=>gf,add:u})}}return t}}const io=/x/.unicode!=null?"gu":"g",t0=new RegExp(`[\0-\b ---Ÿ­؜​‎‏\u2028\u2029‭‮⁦⁧⁩\uFEFF-]`,io),n0={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let pl=null;function i0(){var s;if(pl==null&&typeof document<"u"&&document.body){let e=document.body.style;pl=((s=e.tabSize)!==null&&s!==void 0?s:e.MozTabSize)!=null}return pl||!1}const Xs=le.define({combine(s){let e=Ei(s,{render:null,specialChars:t0,addSpecialChars:null});return(e.replaceTabs=!i0())&&(e.specialChars=new RegExp(" |"+e.specialChars.source,io)),e.addSpecialChars&&(e.specialChars=new RegExp(e.specialChars.source+"|"+e.addSpecialChars.source,io)),e}});function Iw(s={}){return[Xs.of(s),s0()]}let kh=null;function s0(){return kh||(kh=ht.fromClass(class{constructor(s){this.view=s,this.decorations=Re.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(s.state.facet(Xs)),this.decorations=this.decorator.createDeco(s)}makeDecorator(s){return new e0({regexp:s.specialChars,decoration:(e,t,n)=>{let{doc:i}=t.state,r=Xi(e[0],0);if(r==9){let l=i.lineAt(n),o=t.state.tabSize,a=gs(l.text,o,n-l.from);return Re.replace({widget:new a0((o-a%o)*this.view.defaultCharacterWidth)})}return this.decorationCache[r]||(this.decorationCache[r]=Re.replace({widget:new o0(s,r)}))},boundary:s.replaceTabs?void 0:/[^]/})}update(s){let e=s.state.facet(Xs);s.startState.facet(Xs)!=e?(this.decorator=this.makeDecorator(e),this.decorations=this.decorator.createDeco(s.view)):this.decorations=this.decorator.updateDeco(s,this.decorations)}},{decorations:s=>s.decorations}))}const r0="•";function l0(s){return s>=32?r0:s==10?"␤":String.fromCharCode(9216+s)}class o0 extends Di{constructor(e,t){super(),this.options=e,this.code=t}eq(e){return e.code==this.code}toDOM(e){let t=l0(this.code),n=e.state.phrase("Control character")+" "+(n0[this.code]||"0x"+this.code.toString(16)),i=this.options.render&&this.options.render(this.code,n,t);if(i)return i;let r=document.createElement("span");return r.textContent=t,r.title=n,r.setAttribute("aria-label",n),r.className="cm-specialChar",r}ignoreEvent(){return!1}}class a0 extends Di{constructor(e){super(),this.width=e}eq(e){return e.width==this.width}toDOM(){let e=document.createElement("span");return e.textContent=" ",e.className="cm-tab",e.style.width=this.width+"px",e}ignoreEvent(){return!1}}function zw(){return c0}const h0=Re.line({class:"cm-activeLine"}),c0=ht.fromClass(class{constructor(s){this.decorations=this.getDeco(s)}update(s){(s.docChanged||s.selectionSet)&&(this.decorations=this.getDeco(s.view))}getDeco(s){let e=-1,t=[];for(let n of s.state.selection.ranges){let i=s.lineBlockAt(n.head);i.from>e&&(t.push(h0.range(i.from)),e=i.from)}return Re.set(t)}},{decorations:s=>s.decorations}),so=2e3;function f0(s,e,t){let n=Math.min(e.line,t.line),i=Math.max(e.line,t.line),r=[];if(e.off>so||t.off>so||e.col<0||t.col<0){let l=Math.min(e.off,t.off),o=Math.max(e.off,t.off);for(let a=n;a<=i;a++){let h=s.doc.line(a);h.length<=o&&r.push(F.range(h.from+l,h.to+o))}}else{let l=Math.min(e.col,t.col),o=Math.max(e.col,t.col);for(let a=n;a<=i;a++){let h=s.doc.line(a),c=Rl(h.text,l,s.tabSize,!0);if(c<0)r.push(F.cursor(h.to));else{let f=Rl(h.text,o,s.tabSize);r.push(F.range(h.from+c,h.from+f))}}}return r}function u0(s,e){let t=s.coordsAtPos(s.viewport.from);return t?Math.round(Math.abs((t.left-e)/s.defaultCharacterWidth)):-1}function vh(s,e){let t=s.posAtCoords({x:e.clientX,y:e.clientY},!1),n=s.state.doc.lineAt(t),i=t-n.from,r=i>so?-1:i==n.length?u0(s,e.clientX):gs(n.text,s.state.tabSize,t-n.from);return{line:n.number,col:r,off:i}}function d0(s,e){let t=vh(s,e),n=s.state.selection;return t?{update(i){if(i.docChanged){let r=i.changes.mapPos(i.startState.doc.line(t.line).from),l=i.state.doc.lineAt(r);t={line:l.number,col:t.col,off:Math.min(t.off,l.length)},n=n.map(i.changes)}},get(i,r,l){let o=vh(s,i);if(!o)return n;let a=f0(s.state,t,o);return a.length?l?F.create(a.concat(n.ranges)):F.create(a):n}}:null}function jw(s){let e=(s==null?void 0:s.eventFilter)||(t=>t.altKey&&t.button==0);return ce.mouseSelectionStyle.of((t,n)=>e(n)?d0(t,n):null)}const p0={Alt:[18,s=>!!s.altKey],Control:[17,s=>!!s.ctrlKey],Shift:[16,s=>!!s.shiftKey],Meta:[91,s=>!!s.metaKey]},g0={style:"cursor: crosshair"};function Vw(s={}){let[e,t]=p0[s.key||"Alt"],n=ht.fromClass(class{constructor(i){this.view=i,this.isDown=!1}set(i){this.isDown!=i&&(this.isDown=i,this.view.update([]))}},{eventHandlers:{keydown(i){this.set(i.keyCode==e||t(i))},keyup(i){(i.keyCode==e||!t(i))&&this.set(!1)},mousemove(i){this.set(t(i))}}});return[n,ce.contentAttributes.of(i=>{var r;return!((r=i.plugin(n))===null||r===void 0)&&r.isDown?g0:null})]}const Ls="-10000px";class nd{constructor(e,t,n){this.facet=t,this.createTooltipView=n,this.input=e.state.facet(t),this.tooltips=this.input.filter(i=>i),this.tooltipViews=this.tooltips.map(n)}update(e){var t;let n=e.state.facet(this.facet),i=n.filter(l=>l);if(n===this.input){for(let l of this.tooltipViews)l.update&&l.update(e);return!1}let r=[];for(let l=0;l{var e,t,n;return{position:se.ios?"absolute":((e=s.find(i=>i.position))===null||e===void 0?void 0:e.position)||"fixed",parent:((t=s.find(i=>i.parent))===null||t===void 0?void 0:t.parent)||null,tooltipSpace:((n=s.find(i=>i.tooltipSpace))===null||n===void 0?void 0:n.tooltipSpace)||m0}}}),yh=new WeakMap,id=ht.fromClass(class{constructor(s){this.view=s,this.inView=!0,this.lastTransaction=0,this.measureTimeout=-1;let e=s.state.facet(gl);this.position=e.position,this.parent=e.parent,this.classes=s.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.manager=new nd(s,sd,t=>this.createTooltip(t)),this.intersectionObserver=typeof IntersectionObserver=="function"?new IntersectionObserver(t=>{Date.now()>this.lastTransaction-50&&t.length>0&&t[t.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),s.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let s of this.manager.tooltipViews)this.intersectionObserver.observe(s.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(s){s.transactions.length&&(this.lastTransaction=Date.now());let e=this.manager.update(s);e&&this.observeIntersection();let t=e||s.geometryChanged,n=s.state.facet(gl);if(n.position!=this.position){this.position=n.position;for(let i of this.manager.tooltipViews)i.dom.style.position=this.position;t=!0}if(n.parent!=this.parent){this.parent&&this.container.remove(),this.parent=n.parent,this.createContainer();for(let i of this.manager.tooltipViews)this.container.appendChild(i.dom);t=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);t&&this.maybeMeasure()}createTooltip(s){let e=s.create(this.view);if(e.dom.classList.add("cm-tooltip"),s.arrow&&!e.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let t=document.createElement("div");t.className="cm-tooltip-arrow",e.dom.appendChild(t)}return e.dom.style.position=this.position,e.dom.style.top=Ls,this.container.appendChild(e.dom),e.mount&&e.mount(this.view),e}destroy(){var s,e;this.view.win.removeEventListener("resize",this.measureSoon);for(let t of this.manager.tooltipViews)t.dom.remove(),(s=t.destroy)===null||s===void 0||s.call(t);(e=this.intersectionObserver)===null||e===void 0||e.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let s=this.view.dom.getBoundingClientRect();return{editor:s,parent:this.parent?this.container.getBoundingClientRect():s,pos:this.manager.tooltips.map((e,t)=>{let n=this.manager.tooltipViews[t];return n.getCoords?n.getCoords(e.pos):this.view.coordsAtPos(e.pos)}),size:this.manager.tooltipViews.map(({dom:e})=>e.getBoundingClientRect()),space:this.view.state.facet(gl).tooltipSpace(this.view)}}writeMeasure(s){var e;let{editor:t,space:n}=s,i=[];for(let r=0;r=Math.min(t.bottom,n.bottom)||h.rightMath.min(t.right,n.right)+.1){a.style.top=Ls;continue}let f=l.arrow?o.dom.querySelector(".cm-tooltip-arrow"):null,u=f?7:0,d=c.right-c.left,p=(e=yh.get(o))!==null&&e!==void 0?e:c.bottom-c.top,g=o.offset||_0,m=this.view.textDirection==Ue.LTR,_=c.width>n.right-n.left?m?n.left:n.right-c.width:m?Math.min(h.left-(f?14:0)+g.x,n.right-d):Math.max(n.left,h.left-d+(f?14:0)-g.x),v=!!l.above;!l.strictSide&&(v?h.top-(c.bottom-c.top)-g.yn.bottom)&&v==n.bottom-h.bottom>h.top-n.top&&(v=!v);let E=(v?h.top-n.top:n.bottom-h.bottom)-u;if(E_&&D.topw&&(w=v?D.top-p-2-u:D.bottom+u+2);this.position=="absolute"?(a.style.top=w-s.parent.top+"px",a.style.left=_-s.parent.left+"px"):(a.style.top=w+"px",a.style.left=_+"px"),f&&(f.style.left=`${h.left+(m?g.x:-g.x)-(_+14-7)}px`),o.overlap!==!0&&i.push({left:_,top:w,right:B,bottom:w+p}),a.classList.toggle("cm-tooltip-above",v),a.classList.toggle("cm-tooltip-below",!v),o.positioned&&o.positioned(s.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let s of this.manager.tooltipViews)s.dom.style.top=Ls}},{eventHandlers:{scroll(){this.maybeMeasure()}}}),b0=ce.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:`${7*2}px`,position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),_0={x:0,y:0},sd=le.define({enables:[id,b0]}),cr=le.define();class Po{constructor(e){this.view=e,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new nd(e,cr,t=>this.createHostedView(t))}static create(e){return new Po(e)}createHostedView(e){let t=e.create(this.view);return t.dom.classList.add("cm-tooltip-section"),this.dom.appendChild(t.dom),this.mounted&&t.mount&&t.mount(this.view),t}mount(e){for(let t of this.manager.tooltipViews)t.mount&&t.mount(e);this.mounted=!0}positioned(e){for(let t of this.manager.tooltipViews)t.positioned&&t.positioned(e)}update(e){this.manager.update(e)}destroy(){var e;for(let t of this.manager.tooltipViews)(e=t.destroy)===null||e===void 0||e.call(t)}}const k0=sd.compute([cr],s=>{let e=s.facet(cr).filter(t=>t);return e.length===0?null:{pos:Math.min(...e.map(t=>t.pos)),end:Math.max(...e.filter(t=>t.end!=null).map(t=>t.end)),create:Po.create,above:e[0].above,arrow:e.some(t=>t.arrow)}});class v0{constructor(e,t,n,i,r){this.view=e,this.source=t,this.field=n,this.setHover=i,this.hoverTime=r,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:e.dom,time:0},this.checkHover=this.checkHover.bind(this),e.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),e.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(()=>this.startHover(),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active)return;let e=Date.now()-this.lastMove.time;en.bottom||e.xn.right+this.view.defaultCharacterWidth)return;let i=this.view.bidiSpans(this.view.state.doc.lineAt(t)).find(o=>o.from<=t&&o.to>=t),r=i&&i.dir==Ue.RTL?-1:1,l=this.source(this.view,t,e.x{this.pending==o&&(this.pending=null,a&&this.view.dispatch({effects:this.setHover.of(a)}))},a=>xn(this.view.state,a,"hover tooltip"))}else l&&this.view.dispatch({effects:this.setHover.of(l)})}mousemove(e){var t;this.lastMove={x:e.clientX,y:e.clientY,target:e.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let n=this.active;if(n&&!wh(this.lastMove.target)||this.pending){let{pos:i}=n||this.pending,r=(t=n==null?void 0:n.end)!==null&&t!==void 0?t:i;(i==r?this.view.posAtCoords(this.lastMove)!=i:!y0(this.view,i,r,e.clientX,e.clientY,6))&&(this.view.dispatch({effects:this.setHover.of(null)}),this.pending=null)}}mouseleave(e){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1,this.active&&!wh(e.relatedTarget)&&this.view.dispatch({effects:this.setHover.of(null)})}destroy(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}function wh(s){for(let e=s;e;e=e.parentNode)if(e.nodeType==1&&e.classList.contains("cm-tooltip"))return!0;return!1}function y0(s,e,t,n,i,r){let l=document.createRange(),o=s.domAtPos(e),a=s.domAtPos(t);l.setEnd(a.node,a.offset),l.setStart(o.node,o.offset);let h=l.getClientRects();l.detach();for(let c=0;ccr.from(i)});return[n,ht.define(i=>new v0(i,s,n,t,e.hoverTime||300)),k0]}function Fw(s,e){let t=s.plugin(id);if(!t)return null;let n=t.manager.tooltips.indexOf(e);return n<0?null:t.manager.tooltipViews[n]}const w0=Pe.define(),Sh=le.define({combine(s){let e,t;for(let n of s)e=e||n.topContainer,t=t||n.bottomContainer;return{topContainer:e,bottomContainer:t}}});function Ww(s,e){let t=s.plugin(rd),n=t?t.specs.indexOf(e):-1;return n>-1?t.panels[n]:null}const rd=ht.fromClass(class{constructor(s){this.input=s.state.facet(Ah),this.specs=this.input.filter(t=>t),this.panels=this.specs.map(t=>t(s));let e=s.state.facet(Sh);this.top=new Rs(s,!0,e.topContainer),this.bottom=new Rs(s,!1,e.bottomContainer),this.top.sync(this.panels.filter(t=>t.top)),this.bottom.sync(this.panels.filter(t=>!t.top));for(let t of this.panels)t.dom.classList.add("cm-panel"),t.mount&&t.mount()}update(s){let e=s.state.facet(Sh);this.top.container!=e.topContainer&&(this.top.sync([]),this.top=new Rs(s.view,!0,e.topContainer)),this.bottom.container!=e.bottomContainer&&(this.bottom.sync([]),this.bottom=new Rs(s.view,!1,e.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let t=s.state.facet(Ah);if(t!=this.input){let n=t.filter(a=>a),i=[],r=[],l=[],o=[];for(let a of n){let h=this.specs.indexOf(a),c;h<0?(c=a(s.view),o.push(c)):(c=this.panels[h],c.update&&c.update(s)),i.push(c),(c.top?r:l).push(c)}this.specs=n,this.panels=i,this.top.sync(r),this.bottom.sync(l);for(let a of o)a.dom.classList.add("cm-panel"),a.mount&&a.mount()}else for(let n of this.panels)n.update&&n.update(s)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:s=>ce.scrollMargins.of(e=>{let t=e.plugin(s);return t&&{top:t.top.scrollMargin(),bottom:t.bottom.scrollMargin()}})});class Rs{constructor(e,t,n){this.view=e,this.top=t,this.container=n,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(e){for(let t of this.panels)t.destroy&&e.indexOf(t)<0&&t.destroy();this.panels=e,this.syncDOM()}syncDOM(){if(this.panels.length==0){this.dom&&(this.dom.remove(),this.dom=void 0);return}if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let t=this.container||this.view.dom;t.insertBefore(this.dom,this.top?t.firstChild:null)}let e=this.dom.firstChild;for(let t of this.panels)if(t.dom.parentNode==this.dom){for(;e!=t.dom;)e=xh(e);e=e.nextSibling}else this.dom.insertBefore(t.dom,e);for(;e;)e=xh(e)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(!(!this.container||this.classes==this.view.themeClasses)){for(let e of this.classes.split(" "))e&&this.container.classList.remove(e);for(let e of(this.classes=this.view.themeClasses).split(" "))e&&this.container.classList.add(e)}}}function xh(s){let e=s.nextSibling;return s.remove(),e}const Ah=le.define({enables:rd});class En extends xi{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}}En.prototype.elementClass="";En.prototype.toDOM=void 0;En.prototype.mapMode=bt.TrackBefore;En.prototype.startSide=En.prototype.endSide=-1;En.prototype.point=!0;const Zs=le.define(),S0={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>Ne.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},es=le.define();function x0(s){return[ld(),es.of(Object.assign(Object.assign({},S0),s))]}const ro=le.define({combine:s=>s.some(e=>e)});function ld(s){let e=[A0];return s&&s.fixed===!1&&e.push(ro.of(!0)),e}const A0=ht.fromClass(class{constructor(s){this.view=s,this.prevViewport=s.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight+"px",this.gutters=s.state.facet(es).map(e=>new Mh(s,e));for(let e of this.gutters)this.dom.appendChild(e.dom);this.fixed=!s.state.facet(ro),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),s.scrollDOM.insertBefore(this.dom,s.contentDOM)}update(s){if(this.updateGutters(s)){let e=this.prevViewport,t=s.view.viewport,n=Math.min(e.to,t.to)-Math.max(e.from,t.from);this.syncGutters(n<(t.to-t.from)*.8)}s.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight+"px"),this.view.state.facet(ro)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=s.view.viewport}syncGutters(s){let e=this.dom.nextSibling;s&&this.dom.remove();let t=Ne.iter(this.view.state.facet(Zs),this.view.viewport.from),n=[],i=this.gutters.map(r=>new C0(r,this.view.viewport,-this.view.documentPadding.top));for(let r of this.view.viewportLineBlocks)if(n.length&&(n=[]),Array.isArray(r.type)){let l=!0;for(let o of r.type)if(o.type==Fe.Text&&l){lo(t,n,o.from);for(let a of i)a.line(this.view,o,n);l=!1}else if(o.widget)for(let a of i)a.widget(this.view,o)}else if(r.type==Fe.Text){lo(t,n,r.from);for(let l of i)l.line(this.view,r,n)}for(let r of i)r.finish();s&&this.view.scrollDOM.insertBefore(this.dom,e)}updateGutters(s){let e=s.startState.facet(es),t=s.state.facet(es),n=s.docChanged||s.heightChanged||s.viewportChanged||!Ne.eq(s.startState.facet(Zs),s.state.facet(Zs),s.view.viewport.from,s.view.viewport.to);if(e==t)for(let i of this.gutters)i.update(s)&&(n=!0);else{n=!0;let i=[];for(let r of t){let l=e.indexOf(r);l<0?i.push(new Mh(this.view,r)):(this.gutters[l].update(s),i.push(this.gutters[l]))}for(let r of this.gutters)r.dom.remove(),i.indexOf(r)<0&&r.destroy();for(let r of i)this.dom.appendChild(r.dom);this.gutters=i}return n}destroy(){for(let s of this.gutters)s.destroy();this.dom.remove()}},{provide:s=>ce.scrollMargins.of(e=>{let t=e.plugin(s);return!t||t.gutters.length==0||!t.fixed?null:e.textDirection==Ue.LTR?{left:t.dom.offsetWidth}:{right:t.dom.offsetWidth}})});function Ch(s){return Array.isArray(s)?s:[s]}function lo(s,e,t){for(;s.value&&s.from<=t;)s.from==t&&e.push(s.value),s.next()}class C0{constructor(e,t,n){this.gutter=e,this.height=n,this.i=0,this.cursor=Ne.iter(e.markers,t.from)}addElement(e,t,n){let{gutter:i}=this,r=t.top-this.height;if(this.i==i.elements.length){let l=new od(e,t.height,r,n);i.elements.push(l),i.dom.appendChild(l.dom)}else i.elements[this.i].update(e,t.height,r,n);this.height=t.bottom,this.i++}line(e,t,n){let i=[];lo(this.cursor,i,t.from),n.length&&(i=i.concat(n));let r=this.gutter.config.lineMarker(e,t,i);r&&i.unshift(r);let l=this.gutter;i.length==0&&!l.config.renderEmptyElements||this.addElement(e,t,i)}widget(e,t){let n=this.gutter.config.widgetMarker(e,t.widget,t);n&&this.addElement(e,t,[n])}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let t=e.elements.pop();e.dom.removeChild(t.dom),t.destroy()}}}class Mh{constructor(e,t){this.view=e,this.config=t,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let n in t.domEventHandlers)this.dom.addEventListener(n,i=>{let r=i.target,l;if(r!=this.dom&&this.dom.contains(r)){for(;r.parentNode!=this.dom;)r=r.parentNode;let a=r.getBoundingClientRect();l=(a.top+a.bottom)/2}else l=i.clientY;let o=e.lineBlockAtHeight(l-e.documentTop);t.domEventHandlers[n](e,o,i)&&i.preventDefault()});this.markers=Ch(t.markers(e)),t.initialSpacer&&(this.spacer=new od(e,0,0,[t.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(e){let t=this.markers;if(this.markers=Ch(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let i=this.config.updateSpacer(this.spacer.markers[0],e);i!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[i])}let n=e.view.viewport;return!Ne.eq(this.markers,t,n.from,n.to)||(this.config.lineMarkerChange?this.config.lineMarkerChange(e):!1)}destroy(){for(let e of this.elements)e.destroy()}}class od{constructor(e,t,n,i){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(e,t,n,i)}update(e,t,n,i){this.height!=t&&(this.dom.style.height=(this.height=t)+"px"),this.above!=n&&(this.dom.style.marginTop=(this.above=n)?n+"px":""),M0(this.markers,i)||this.setMarkers(e,i)}setMarkers(e,t){let n="cm-gutterElement",i=this.dom.firstChild;for(let r=0,l=0;;){let o=l,a=rr(o,a,h)||l(o,a,h):l}return n}})}});class ml extends En{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}}function bl(s,e){return s.state.facet(_i).formatNumber(e,s.state)}const E0=es.compute([_i],s=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers(e){return e.state.facet(T0)},lineMarker(e,t,n){return n.some(i=>i.toDOM)?null:new ml(bl(e,e.state.doc.lineAt(t.from).number))},widgetMarker:()=>null,lineMarkerChange:e=>e.startState.facet(_i)!=e.state.facet(_i),initialSpacer(e){return new ml(bl(e,Th(e.state.doc.lines)))},updateSpacer(e,t){let n=bl(t.view,Th(t.view.state.doc.lines));return n==e.number?e:new ml(n)},domEventHandlers:s.facet(_i).domEventHandlers}));function qw(s={}){return[_i.of(s),ld(),E0]}function Th(s){let e=9;for(;e{let e=[],t=-1;for(let n of s.selection.ranges){let i=s.doc.lineAt(n.head).from;i>t&&(t=i,e.push(D0.range(i)))}return Ne.of(e)});function Uw(){return O0}const P0=1024;let $0=0;class Lt{constructor(e,t){this.from=e,this.to=t}}class ve{constructor(e={}){this.id=$0++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof e!="function"&&(e=vt.match(e)),t=>{let n=e(t);return n===void 0?null:[this,n]}}}ve.closedBy=new ve({deserialize:s=>s.split(" ")});ve.openedBy=new ve({deserialize:s=>s.split(" ")});ve.group=new ve({deserialize:s=>s.split(" ")});ve.contextHash=new ve({perNode:!0});ve.lookAhead=new ve({perNode:!0});ve.mounted=new ve({perNode:!0});class B0{constructor(e,t,n){this.tree=e,this.overlay=t,this.parser=n}}const N0=Object.create(null);class vt{constructor(e,t,n,i=0){this.name=e,this.props=t,this.id=n,this.flags=i}static define(e){let t=e.props&&e.props.length?Object.create(null):N0,n=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(e.name==null?8:0),i=new vt(e.name||"",t,e.id,n);if(e.props){for(let r of e.props)if(Array.isArray(r)||(r=r(i)),r){if(r[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");t[r[0].id]=r[1]}}return i}prop(e){return this.props[e.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(e){if(typeof e=="string"){if(this.name==e)return!0;let t=this.prop(ve.group);return t?t.indexOf(e)>-1:!1}return this.id==e}static match(e){let t=Object.create(null);for(let n in e)for(let i of n.split(" "))t[i]=e[n];return n=>{for(let i=n.prop(ve.group),r=-1;r<(i?i.length:0);r++){let l=t[r<0?n.name:i[r]];if(l)return l}}}}vt.none=new vt("",Object.create(null),0,8);class ad{constructor(e){this.types=e;for(let t=0;t0;for(let a=this.cursor(l|He.IncludeAnonymous);;){let h=!1;if(a.from<=r&&a.to>=i&&(!o&&a.type.isAnonymous||t(a)!==!1)){if(a.firstChild())continue;h=!0}for(;h&&n&&(o||!a.type.isAnonymous)&&n(a),!a.nextSibling();){if(!a.parent())return;h=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let t in this.props)e.push([+t,this.props[t]]);return e}balance(e={}){return this.children.length<=8?this:No(vt.none,this.children,this.positions,0,this.children.length,0,this.length,(t,n,i)=>new Qe(this.type,t,n,i,this.propValues),e.makeTree||((t,n,i)=>new Qe(vt.none,t,n,i)))}static build(e){return R0(e)}}Qe.empty=new Qe(vt.none,[],[],0);class $o{constructor(e,t){this.buffer=e,this.index=t}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new $o(this.buffer,this.index)}}class hi{constructor(e,t,n){this.buffer=e,this.length=t,this.set=n}get type(){return vt.none}toString(){let e=[];for(let t=0;t0));a=l[a+3]);return o}slice(e,t,n){let i=this.buffer,r=new Uint16Array(t-e),l=0;for(let o=e,a=0;o=e&&te;case 1:return t<=e&&n>e;case 2:return n>e;case 4:return!0}}function cd(s,e){let t=s.childBefore(e);for(;t;){let n=t.lastChild;if(!n||n.to!=t.to)break;n.type.isError&&n.from==n.to?(s=t,t=n.prevSibling):t=n}return s}function Mi(s,e,t,n){for(var i;s.from==s.to||(t<1?s.from>=e:s.from>e)||(t>-1?s.to<=e:s.to0?o.length:-1;e!=h;e+=t){let c=o[e],f=a[e]+l.from;if(hd(i,n,f,f+c.length)){if(c instanceof hi){if(r&He.ExcludeBuffers)continue;let u=c.findChild(0,c.buffer.length,t,n-f,i);if(u>-1)return new hn(new L0(l,c,e,f),null,u)}else if(r&He.IncludeAnonymous||!c.type.isAnonymous||Bo(c)){let u;if(!(r&He.IgnoreMounts)&&c.props&&(u=c.prop(ve.mounted))&&!u.overlay)return new zt(u.tree,f,e,l);let d=new zt(c,f,e,l);return r&He.IncludeAnonymous||!d.type.isAnonymous?d:d.nextChild(t<0?c.children.length-1:0,t,n,i)}}}if(r&He.IncludeAnonymous||!l.type.isAnonymous||(l.index>=0?e=l.index+t:e=t<0?-1:l._parent._tree.children.length,l=l._parent,!l))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}enter(e,t,n=0){let i;if(!(n&He.IgnoreOverlays)&&(i=this._tree.prop(ve.mounted))&&i.overlay){let r=e-this.from;for(let{from:l,to:o}of i.overlay)if((t>0?l<=r:l=r:o>r))return new zt(i.tree,i.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,t,n)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}cursor(e=0){return new hs(this,e)}get tree(){return this._tree}toTree(){return this._tree}resolve(e,t=0){return Mi(this,e,t,!1)}resolveInner(e,t=0){return Mi(this,e,t,!0)}enterUnfinishedNodesBefore(e){return cd(this,e)}getChild(e,t=null,n=null){let i=fr(this,e,t,n);return i.length?i[0]:null}getChildren(e,t=null,n=null){return fr(this,e,t,n)}toString(){return this._tree.toString()}get node(){return this}matchContext(e){return ur(this,e)}}function fr(s,e,t,n){let i=s.cursor(),r=[];if(!i.firstChild())return r;if(t!=null){for(;!i.type.is(t);)if(!i.nextSibling())return r}for(;;){if(n!=null&&i.type.is(n))return r;if(i.type.is(e)&&r.push(i.node),!i.nextSibling())return n==null?r:[]}}function ur(s,e,t=e.length-1){for(let n=s.parent;t>=0;n=n.parent){if(!n)return!1;if(!n.type.isAnonymous){if(e[t]&&e[t]!=n.name)return!1;t--}}return!0}class L0{constructor(e,t,n,i){this.parent=e,this.buffer=t,this.index=n,this.start=i}}class hn{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,t,n){this.context=e,this._parent=t,this.index=n,this.type=e.buffer.set.types[e.buffer.buffer[n]]}child(e,t,n){let{buffer:i}=this.context,r=i.findChild(this.index+4,i.buffer[this.index+3],e,t-this.context.start,n);return r<0?null:new hn(this.context,this,r)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,t,n=0){if(n&He.ExcludeBuffers)return null;let{buffer:i}=this.context,r=i.findChild(this.index+4,i.buffer[this.index+3],t>0?1:-1,e-this.context.start,t);return r<0?null:new hn(this.context,this,r)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,t=e.buffer[this.index+3];return t<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new hn(this.context,this._parent,t):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,t=this._parent?this._parent.index+4:0;return this.index==t?this.externalSibling(-1):new hn(this.context,this._parent,e.findChild(t,this.index,-1,0,4))}cursor(e=0){return new hs(this,e)}get tree(){return null}toTree(){let e=[],t=[],{buffer:n}=this.context,i=this.index+4,r=n.buffer[this.index+3];if(r>i){let l=n.buffer[this.index+1];e.push(n.slice(i,r,l)),t.push(0)}return new Qe(this.type,e,t,this.to-this.from)}resolve(e,t=0){return Mi(this,e,t,!1)}resolveInner(e,t=0){return Mi(this,e,t,!0)}enterUnfinishedNodesBefore(e){return cd(this,e)}toString(){return this.context.buffer.childString(this.index)}getChild(e,t=null,n=null){let i=fr(this,e,t,n);return i.length?i[0]:null}getChildren(e,t=null,n=null){return fr(this,e,t,n)}get node(){return this}matchContext(e){return ur(this,e)}}class hs{get name(){return this.type.name}constructor(e,t=0){if(this.mode=t,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,e instanceof zt)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let n=e._parent;n;n=n._parent)this.stack.unshift(n.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return e?(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0):!1}yieldBuf(e,t){this.index=e;let{start:n,buffer:i}=this.buffer;return this.type=t||i.set.types[i.buffer[e]],this.from=n+i.buffer[e+1],this.to=n+i.buffer[e+2],!0}yield(e){return e?e instanceof zt?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,t,n){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,t,n,this.mode));let{buffer:i}=this.buffer,r=i.findChild(this.index+4,i.buffer[this.index+3],e,t-this.buffer.start,n);return r<0?!1:(this.stack.push(this.index),this.yieldBuf(r))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,t,n=this.mode){return this.buffer?n&He.ExcludeBuffers?!1:this.enterChild(1,e,t):this.yield(this._tree.enter(e,t,n))}parent(){if(!this.buffer)return this.yieldNode(this.mode&He.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&He.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode)):!1;let{buffer:t}=this.buffer,n=this.stack.length-1;if(e<0){let i=n<0?0:this.stack[n]+4;if(this.index!=i)return this.yieldBuf(t.findChild(i,this.index,-1,0,4))}else{let i=t.buffer[this.index+3];if(i<(n<0?t.buffer.length:t.buffer[this.stack[n]+3]))return this.yieldBuf(i)}return n<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let t,n,{buffer:i}=this;if(i){if(e>0){if(this.index-1)for(let r=t+e,l=e<0?-1:n._tree.children.length;r!=l;r+=e){let o=n._tree.children[r];if(this.mode&He.IncludeAnonymous||o instanceof hi||!o.type.isAnonymous||Bo(o))return!1}return!0}move(e,t){if(t&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,t=0){for(;(this.from==this.to||(t<1?this.from>=e:this.from>e)||(t>-1?this.to<=e:this.to=0;){for(let l=e;l;l=l._parent)if(l.index==i){if(i==this.index)return l;t=l,n=r+1;break e}i=this.stack[--r]}for(let i=n;i=0;r--){if(r<0)return ur(this.node,e,i);let l=n[t.buffer[this.stack[r]]];if(!l.isAnonymous){if(e[i]&&e[i]!=l.name)return!1;i--}}return!0}}function Bo(s){return s.children.some(e=>e instanceof hi||!e.type.isAnonymous||Bo(e))}function R0(s){var e;let{buffer:t,nodeSet:n,maxBufferLength:i=P0,reused:r=[],minRepeatType:l=n.types.length}=s,o=Array.isArray(t)?new $o(t,t.length):t,a=n.types,h=0,c=0;function f(w,B,D,$,G){let{id:L,start:V,end:H,size:O}=o,T=c;for(;O<0;)if(o.next(),O==-1){let z=r[L];D.push(z),$.push(V-w);return}else if(O==-3){h=L;return}else if(O==-4){c=L;return}else throw new RangeError(`Unrecognized record size: ${O}`);let Q=a[L],ie,J,fe=V-w;if(H-V<=i&&(J=g(o.pos-B,G))){let z=new Uint16Array(J.size-J.skip),oe=o.pos-J.size,ge=z.length;for(;o.pos>oe;)ge=m(J.start,z,ge);ie=new hi(z,H-J.start,n),fe=J.start-w}else{let z=o.pos-O;o.next();let oe=[],ge=[],We=L>=l?L:-1,Ee=0,$t=H;for(;o.pos>z;)We>=0&&o.id==We&&o.size>=0?(o.end<=$t-i&&(d(oe,ge,V,Ee,o.end,$t,We,T),Ee=oe.length,$t=o.end),o.next()):f(V,z,oe,ge,We);if(We>=0&&Ee>0&&Ee-1&&Ee>0){let ee=u(Q);ie=No(Q,oe,ge,0,oe.length,0,H-V,ee,ee)}else ie=p(Q,oe,ge,H-V,T-H)}D.push(ie),$.push(fe)}function u(w){return(B,D,$)=>{let G=0,L=B.length-1,V,H;if(L>=0&&(V=B[L])instanceof Qe){if(!L&&V.type==w&&V.length==$)return V;(H=V.prop(ve.lookAhead))&&(G=D[L]+V.length+H)}return p(w,B,D,$,G)}}function d(w,B,D,$,G,L,V,H){let O=[],T=[];for(;w.length>$;)O.push(w.pop()),T.push(B.pop()+D-G);w.push(p(n.types[V],O,T,L-G,H-L)),B.push(G-D)}function p(w,B,D,$,G=0,L){if(h){let V=[ve.contextHash,h];L=L?[V].concat(L):[V]}if(G>25){let V=[ve.lookAhead,G];L=L?[V].concat(L):[V]}return new Qe(w,B,D,$,L)}function g(w,B){let D=o.fork(),$=0,G=0,L=0,V=D.end-i,H={size:0,start:0,skip:0};e:for(let O=D.pos-w;D.pos>O;){let T=D.size;if(D.id==B&&T>=0){H.size=$,H.start=G,H.skip=L,L+=4,$+=4,D.next();continue}let Q=D.pos-T;if(T<0||Q=l?4:0,J=D.start;for(D.next();D.pos>Q;){if(D.size<0)if(D.size==-3)ie+=4;else break e;else D.id>=l&&(ie+=4);D.next()}G=J,$+=T,L+=ie}return(B<0||$==w)&&(H.size=$,H.start=G,H.skip=L),H.size>4?H:void 0}function m(w,B,D){let{id:$,start:G,end:L,size:V}=o;if(o.next(),V>=0&&$4){let O=o.pos-(V-4);for(;o.pos>O;)D=m(w,B,D)}B[--D]=H,B[--D]=L-w,B[--D]=G-w,B[--D]=$}else V==-3?h=$:V==-4&&(c=$);return D}let _=[],v=[];for(;o.pos>0;)f(s.start||0,s.bufferStart||0,_,v,-1);let E=(e=s.length)!==null&&e!==void 0?e:_.length?v[0]+_[0].length:0;return new Qe(a[s.topID],_.reverse(),v.reverse(),E)}const Dh=new WeakMap;function Qs(s,e){if(!s.isAnonymous||e instanceof hi||e.type!=s)return 1;let t=Dh.get(e);if(t==null){t=1;for(let n of e.children){if(n.type!=s||!(n instanceof Qe)){t=1;break}t+=Qs(s,n)}Dh.set(e,t)}return t}function No(s,e,t,n,i,r,l,o,a){let h=0;for(let p=n;p=c)break;D+=$}if(E==w+1){if(D>c){let $=p[w];d($.children,$.positions,0,$.children.length,g[w]+v);continue}f.push(p[w])}else{let $=g[E-1]+p[E-1].length-B;f.push(No(s,p,g,w,E,B,$,null,a))}u.push(B+v-r)}}return d(e,t,n,i,0),(o||a)(f,u,l)}class Kw{constructor(){this.map=new WeakMap}setBuffer(e,t,n){let i=this.map.get(e);i||this.map.set(e,i=new Map),i.set(t,n)}getBuffer(e,t){let n=this.map.get(e);return n&&n.get(t)}set(e,t){e instanceof hn?this.setBuffer(e.context.buffer,e.index,t):e instanceof zt&&this.map.set(e.tree,t)}get(e){return e instanceof hn?this.getBuffer(e.context.buffer,e.index):e instanceof zt?this.map.get(e.tree):void 0}cursorSet(e,t){e.buffer?this.setBuffer(e.buffer.buffer,e.index,t):this.map.set(e.tree,t)}cursorGet(e){return e.buffer?this.getBuffer(e.buffer.buffer,e.index):this.map.get(e.tree)}}class An{constructor(e,t,n,i,r=!1,l=!1){this.from=e,this.to=t,this.tree=n,this.offset=i,this.open=(r?1:0)|(l?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(e,t=[],n=!1){let i=[new An(0,e.length,e,0,!1,n)];for(let r of t)r.to>e.length&&i.push(r);return i}static applyChanges(e,t,n=128){if(!t.length)return e;let i=[],r=1,l=e.length?e[0]:null;for(let o=0,a=0,h=0;;o++){let c=o=n)for(;l&&l.from=u.from||f<=u.to||h){let d=Math.max(u.from,a)-h,p=Math.min(u.to,f)-h;u=d>=p?null:new An(d,p,u.tree,u.offset+h,o>0,!!c)}if(u&&i.push(u),l.to>f)break;l=rnew Lt(i.from,i.to)):[new Lt(0,0)]:[new Lt(0,e.length)],this.createParse(e,t||[],n)}parse(e,t,n){let i=this.startParse(e,t,n);for(;;){let r=i.advance();if(r)return r}}};class z0{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,t){return this.string.slice(e,t)}}function Gw(s){return(e,t,n,i)=>new V0(e,s,t,n,i)}class Oh{constructor(e,t,n,i,r){if(this.parser=e,this.parse=t,this.overlay=n,this.target=i,this.ranges=r,!r.length||r.some(l=>l.from>=l.to))throw new RangeError("Invalid inner parse ranges given: "+JSON.stringify(r))}}class j0{constructor(e,t,n,i,r,l,o){this.parser=e,this.predicate=t,this.mounts=n,this.index=i,this.start=r,this.target=l,this.prev=o,this.depth=0,this.ranges=[]}}const oo=new ve({perNode:!0});class V0{constructor(e,t,n,i,r){this.nest=t,this.input=n,this.fragments=i,this.ranges=r,this.inner=[],this.innerDone=0,this.baseTree=null,this.stoppedAt=null,this.baseParse=e}advance(){if(this.baseParse){let n=this.baseParse.advance();if(!n)return null;if(this.baseParse=null,this.baseTree=n,this.startInner(),this.stoppedAt!=null)for(let i of this.inner)i.parse.stopAt(this.stoppedAt)}if(this.innerDone==this.inner.length){let n=this.baseTree;return this.stoppedAt!=null&&(n=new Qe(n.type,n.children,n.positions,n.length,n.propValues.concat([[oo,this.stoppedAt]]))),n}let e=this.inner[this.innerDone],t=e.parse.advance();if(t){this.innerDone++;let n=Object.assign(Object.create(null),e.target.props);n[ve.mounted.id]=new B0(t,e.overlay,e.parser),e.target.props=n}return null}get parsedPos(){if(this.baseParse)return 0;let e=this.input.length;for(let t=this.innerDone;tc.frag.from<=i.from&&c.frag.to>=i.to&&c.mount.overlay);if(h)for(let c of h.mount.overlay){let f=c.from+h.pos,u=c.to+h.pos;f>=i.from&&u<=i.to&&!t.ranges.some(d=>d.fromf)&&t.ranges.push({from:f,to:u})}}o=!1}else if(n&&(l=H0(n.ranges,i.from,i.to)))o=l!=2;else if(!i.type.isAnonymous&&i.fromnew Lt(f.from-i.from,f.to-i.from)):null,i.tree,c)),r.overlay?c.length&&(n={ranges:c,depth:0,prev:n}):o=!1}}else t&&(a=t.predicate(i))&&(a===!0&&(a=new Lt(i.from,i.to)),a.fromnew Lt(c.from-t.start,c.to-t.start)),t.target,h)),t=t.prev}n&&!--n.depth&&(n=n.prev)}}}}function H0(s,e,t){for(let n of s){if(n.from>=t)break;if(n.to>e)return n.from<=e&&n.to>=t?2:1}return 0}function Ph(s,e,t,n,i,r){if(e=e.to);n++);let l=i.children[n],o=l.buffer;function a(h,c,f,u,d){let p=h;for(;o[p+2]+r<=e.from;)p=o[p+3];let g=[],m=[];Ph(l,h,p,g,m,u);let _=o[p+1],v=o[p+2],E=_+r==e.from&&v+r==e.to&&o[p]==e.type.id;return g.push(E?e.toTree():a(p+4,o[p+3],l.set.types[o[p]],_,v-_)),m.push(_-u),Ph(l,o[p+3],c,g,m,u),new Qe(f,g,m,d)}i.children[n]=a(0,o.length,vt.none,0,l.length);for(let h=0;h<=t;h++)s.childAfter(e.from)}class $h{constructor(e,t){this.offset=t,this.done=!1,this.cursor=e.cursor(He.IncludeAnonymous|He.IgnoreMounts)}moveTo(e){let{cursor:t}=this,n=e-this.offset;for(;!this.done&&t.from=e&&t.enter(n,1,He.IgnoreOverlays|He.ExcludeBuffers)||t.next(!1)||(this.done=!0)}hasNode(e){if(this.moveTo(e.from),!this.done&&this.cursor.from+this.offset==e.from&&this.cursor.tree)for(let t=this.cursor.tree;;){if(t==e.tree)return!0;if(t.children.length&&t.positions[0]==0&&t.children[0]instanceof Qe)t=t.children[0];else break}return!1}}class W0{constructor(e){var t;if(this.fragments=e,this.curTo=0,this.fragI=0,e.length){let n=this.curFrag=e[0];this.curTo=(t=n.tree.prop(oo))!==null&&t!==void 0?t:n.to,this.inner=new $h(n.tree,-n.offset)}else this.curFrag=this.inner=null}hasNode(e){for(;this.curFrag&&e.from>=this.curTo;)this.nextFrag();return this.curFrag&&this.curFrag.from<=e.from&&this.curTo>=e.to&&this.inner.hasNode(e)}nextFrag(){var e;if(this.fragI++,this.fragI==this.fragments.length)this.curFrag=this.inner=null;else{let t=this.curFrag=this.fragments[this.fragI];this.curTo=(e=t.tree.prop(oo))!==null&&e!==void 0?e:t.to,this.inner=new $h(t.tree,-t.offset)}}findMounts(e,t){var n;let i=[];if(this.inner){this.inner.cursor.moveTo(e,1);for(let r=this.inner.cursor.node;r;r=r.parent){let l=(n=r.tree)===null||n===void 0?void 0:n.prop(ve.mounted);if(l&&l.parser==t)for(let o=this.fragI;o=r.to)break;a.tree==this.curFrag.tree&&i.push({frag:a,pos:r.from-a.offset,mount:l})}}}return i}}function Bh(s,e){let t=null,n=e;for(let i=1,r=0;i=o)break;a.to<=l||(t||(n=t=e.slice()),a.fromo&&t.splice(r+1,0,new Lt(o,a.to))):a.to>o?t[r--]=new Lt(o,a.to):t.splice(r--,1))}}return n}function q0(s,e,t,n){let i=0,r=0,l=!1,o=!1,a=-1e9,h=[];for(;;){let c=i==s.length?1e9:l?s[i].to:s[i].from,f=r==e.length?1e9:o?e[r].to:e[r].from;if(l!=o){let u=Math.max(a,t),d=Math.min(c,f,n);unew Lt(u.from+n,u.to+n)),f=q0(e,c,a,h);for(let u=0,d=a;;u++){let p=u==f.length,g=p?h:f[u].from;if(g>d&&t.push(new An(d,g,i.tree,-l,r.from>=d||r.openStart,r.to<=g||r.openEnd)),p)break;d=f[u].to}}else t.push(new An(a,h,i.tree,-l,r.from>=l||r.openStart,r.to<=o||r.openEnd))}return t}let U0=0;class sn{constructor(e,t,n){this.set=e,this.base=t,this.modified=n,this.id=U0++}static define(e){if(e!=null&&e.base)throw new Error("Can not derive from a modified tag");let t=new sn([],null,[]);if(t.set.push(t),e)for(let n of e.set)t.set.push(n);return t}static defineModifier(){let e=new dr;return t=>t.modified.indexOf(e)>-1?t:dr.get(t.base||t,t.modified.concat(e).sort((n,i)=>n.id-i.id))}}let K0=0;class dr{constructor(){this.instances=[],this.id=K0++}static get(e,t){if(!t.length)return e;let n=t[0].instances.find(o=>o.base==e&&J0(t,o.modified));if(n)return n;let i=[],r=new sn(i,e,t);for(let o of t)o.instances.push(r);let l=G0(t);for(let o of e.set)if(!o.modified.length)for(let a of l)i.push(dr.get(o,a));return r}}function J0(s,e){return s.length==e.length&&s.every((t,n)=>t==e[n])}function G0(s){let e=[[]];for(let t=0;tn.length-t.length)}function Y0(s){let e=Object.create(null);for(let t in s){let n=s[t];Array.isArray(n)||(n=[n]);for(let i of t.split(" "))if(i){let r=[],l=2,o=i;for(let f=0;;){if(o=="..."&&f>0&&f+3==i.length){l=1;break}let u=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(o);if(!u)throw new RangeError("Invalid path: "+i);if(r.push(u[0]=="*"?"":u[0][0]=='"'?JSON.parse(u[0]):u[0]),f+=u[0].length,f==i.length)break;let d=i[f++];if(f==i.length&&d=="!"){l=0;break}if(d!="/")throw new RangeError("Invalid path: "+i);o=i.slice(f)}let a=r.length-1,h=r[a];if(!h)throw new RangeError("Invalid path: "+i);let c=new pr(n,l,a>0?r.slice(0,a):null);e[h]=c.sort(e[h])}}return fd.add(e)}const fd=new ve;class pr{constructor(e,t,n,i){this.tags=e,this.mode=t,this.context=n,this.next=i}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(e){return!e||e.depth{let l=i;for(let o of r)for(let a of o.set){let h=t[a.id];if(h){l=l?l+" "+h:h;break}}return l},scope:n}}function X0(s,e){let t=null;for(let n of s){let i=n.style(e);i&&(t=t?t+" "+i:i)}return t}function Z0(s,e,t,n=0,i=s.length){let r=new Q0(n,Array.isArray(e)?e:[e],t);r.highlightRange(s.cursor(),n,i,"",r.highlighters),r.flush(i)}class Q0{constructor(e,t,n){this.at=e,this.highlighters=t,this.span=n,this.class=""}startSpan(e,t){t!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=t)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,t,n,i,r){let{type:l,from:o,to:a}=e;if(o>=n||a<=t)return;l.isTop&&(r=this.highlighters.filter(d=>!d.scope||d.scope(l)));let h=i,c=e1(e)||pr.empty,f=X0(r,c.tags);if(f&&(h&&(h+=" "),h+=f,c.mode==1&&(i+=(i?" ":"")+f)),this.startSpan(Math.max(t,o),h),c.opaque)return;let u=e.tree&&e.tree.prop(ve.mounted);if(u&&u.overlay){let d=e.node.enter(u.overlay[0].from+o,1),p=this.highlighters.filter(m=>!m.scope||m.scope(u.tree.type)),g=e.firstChild();for(let m=0,_=o;;m++){let v=m=E||!e.nextSibling())););if(!v||E>n)break;_=v.to+o,_>t&&(this.highlightRange(d.cursor(),Math.max(t,v.from+o),Math.min(n,_),"",p),this.startSpan(Math.min(n,_),h))}g&&e.parent()}else if(e.firstChild()){u&&(i="");do if(!(e.to<=t)){if(e.from>=n)break;this.highlightRange(e,t,n,i,r),this.startSpan(Math.min(n,e.to),h)}while(e.nextSibling());e.parent()}}}function e1(s){let e=s.type.prop(fd);for(;e&&e.context&&!s.matchContext(e.context);)e=e.next;return e||null}const Y=sn.define,zs=Y(),Nn=Y(),Lh=Y(Nn),Rh=Y(Nn),Ln=Y(),js=Y(Ln),_l=Y(Ln),nn=Y(),Zn=Y(nn),en=Y(),tn=Y(),ao=Y(),Fi=Y(ao),Vs=Y(),N={comment:zs,lineComment:Y(zs),blockComment:Y(zs),docComment:Y(zs),name:Nn,variableName:Y(Nn),typeName:Lh,tagName:Y(Lh),propertyName:Rh,attributeName:Y(Rh),className:Y(Nn),labelName:Y(Nn),namespace:Y(Nn),macroName:Y(Nn),literal:Ln,string:js,docString:Y(js),character:Y(js),attributeValue:Y(js),number:_l,integer:Y(_l),float:Y(_l),bool:Y(Ln),regexp:Y(Ln),escape:Y(Ln),color:Y(Ln),url:Y(Ln),keyword:en,self:Y(en),null:Y(en),atom:Y(en),unit:Y(en),modifier:Y(en),operatorKeyword:Y(en),controlKeyword:Y(en),definitionKeyword:Y(en),moduleKeyword:Y(en),operator:tn,derefOperator:Y(tn),arithmeticOperator:Y(tn),logicOperator:Y(tn),bitwiseOperator:Y(tn),compareOperator:Y(tn),updateOperator:Y(tn),definitionOperator:Y(tn),typeOperator:Y(tn),controlOperator:Y(tn),punctuation:ao,separator:Y(ao),bracket:Fi,angleBracket:Y(Fi),squareBracket:Y(Fi),paren:Y(Fi),brace:Y(Fi),content:nn,heading:Zn,heading1:Y(Zn),heading2:Y(Zn),heading3:Y(Zn),heading4:Y(Zn),heading5:Y(Zn),heading6:Y(Zn),contentSeparator:Y(nn),list:Y(nn),quote:Y(nn),emphasis:Y(nn),strong:Y(nn),link:Y(nn),monospace:Y(nn),strikethrough:Y(nn),inserted:Y(),deleted:Y(),changed:Y(),invalid:Y(),meta:Vs,documentMeta:Y(Vs),annotation:Y(Vs),processingInstruction:Y(Vs),definition:sn.defineModifier(),constant:sn.defineModifier(),function:sn.defineModifier(),standard:sn.defineModifier(),local:sn.defineModifier(),special:sn.defineModifier()};ud([{tag:N.link,class:"tok-link"},{tag:N.heading,class:"tok-heading"},{tag:N.emphasis,class:"tok-emphasis"},{tag:N.strong,class:"tok-strong"},{tag:N.keyword,class:"tok-keyword"},{tag:N.atom,class:"tok-atom"},{tag:N.bool,class:"tok-bool"},{tag:N.url,class:"tok-url"},{tag:N.labelName,class:"tok-labelName"},{tag:N.inserted,class:"tok-inserted"},{tag:N.deleted,class:"tok-deleted"},{tag:N.literal,class:"tok-literal"},{tag:N.string,class:"tok-string"},{tag:N.number,class:"tok-number"},{tag:[N.regexp,N.escape,N.special(N.string)],class:"tok-string2"},{tag:N.variableName,class:"tok-variableName"},{tag:N.local(N.variableName),class:"tok-variableName tok-local"},{tag:N.definition(N.variableName),class:"tok-variableName tok-definition"},{tag:N.special(N.variableName),class:"tok-variableName2"},{tag:N.definition(N.propertyName),class:"tok-propertyName tok-definition"},{tag:N.typeName,class:"tok-typeName"},{tag:N.namespace,class:"tok-namespace"},{tag:N.className,class:"tok-className"},{tag:N.macroName,class:"tok-macroName"},{tag:N.propertyName,class:"tok-propertyName"},{tag:N.operator,class:"tok-operator"},{tag:N.comment,class:"tok-comment"},{tag:N.meta,class:"tok-meta"},{tag:N.invalid,class:"tok-invalid"},{tag:N.punctuation,class:"tok-punctuation"}]);var kl;const ki=new ve;function t1(s){return le.define({combine:s?e=>e.concat(s):void 0})}const n1=new ve;class Ut{constructor(e,t,n=[],i=""){this.data=e,this.name=i,ye.prototype.hasOwnProperty("tree")||Object.defineProperty(ye.prototype,"tree",{get(){return Ot(this)}}),this.parser=t,this.extension=[Wn.of(this),ye.languageData.of((r,l,o)=>{let a=Ih(r,l,o),h=a.type.prop(ki);if(!h)return[];let c=r.facet(h),f=a.type.prop(n1);if(f){let u=a.resolve(l-a.from,o);for(let d of f)if(d.test(u,r)){let p=r.facet(d.facet);return d.type=="replace"?p:p.concat(c)}}return c})].concat(n)}isActiveAt(e,t,n=-1){return Ih(e,t,n).type.prop(ki)==this.data}findRegions(e){let t=e.facet(Wn);if((t==null?void 0:t.data)==this.data)return[{from:0,to:e.doc.length}];if(!t||!t.allowsNesting)return[];let n=[],i=(r,l)=>{if(r.prop(ki)==this.data){n.push({from:l,to:l+r.length});return}let o=r.prop(ve.mounted);if(o){if(o.tree.prop(ki)==this.data){if(o.overlay)for(let a of o.overlay)n.push({from:a.from+l,to:a.to+l});else n.push({from:l,to:l+r.length});return}else if(o.overlay){let a=n.length;if(i(o.tree,o.overlay[0].from+l),n.length>a)return}}for(let a=0;an.isTop?t:void 0)]}),e.name)}configure(e,t){return new ho(this.data,this.parser.configure(e),t||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function Ot(s){let e=s.field(Ut.state,!1);return e?e.tree:Qe.empty}class i1{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,t){let n=this.cursorPos-this.string.length;return e=this.cursorPos?this.doc.sliceString(e,t):this.string.slice(e-n,t-n)}}let Wi=null;class gr{constructor(e,t,n=[],i,r,l,o,a){this.parser=e,this.state=t,this.fragments=n,this.tree=i,this.treeLen=r,this.viewport=l,this.skipped=o,this.scheduleOn=a,this.parse=null,this.tempSkipped=[]}static create(e,t,n){return new gr(e,t,[],Qe.empty,0,n,[],null)}startParse(){return this.parser.startParse(new i1(this.state.doc),this.fragments)}work(e,t){return t!=null&&t>=this.state.doc.length&&(t=void 0),this.tree!=Qe.empty&&this.isDone(t??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var n;if(typeof e=="number"){let i=Date.now()+e;e=()=>Date.now()>i}for(this.parse||(this.parse=this.startParse()),t!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>t)&&t=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext(()=>{for(;!(t=this.parse.advance()););}),this.treeLen=e,this.tree=t,this.fragments=this.withoutTempSkipped(An.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let t=Wi;Wi=this;try{return e()}finally{Wi=t}}withoutTempSkipped(e){for(let t;t=this.tempSkipped.pop();)e=zh(e,t.from,t.to);return e}changes(e,t){let{fragments:n,tree:i,treeLen:r,viewport:l,skipped:o}=this;if(this.takeTree(),!e.empty){let a=[];if(e.iterChangedRanges((h,c,f,u)=>a.push({fromA:h,toA:c,fromB:f,toB:u})),n=An.applyChanges(n,a),i=Qe.empty,r=0,l={from:e.mapPos(l.from,-1),to:e.mapPos(l.to,1)},this.skipped.length){o=[];for(let h of this.skipped){let c=e.mapPos(h.from,1),f=e.mapPos(h.to,-1);ce.from&&(this.fragments=zh(this.fragments,i,r),this.skipped.splice(n--,1))}return this.skipped.length>=t?!1:(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,t){this.skipped.push({from:e,to:t})}static getSkippingParser(e){return new class extends I0{createParse(t,n,i){let r=i[0].from,l=i[i.length-1].to;return{parsedPos:r,advance(){let a=Wi;if(a){for(let h of i)a.tempSkipped.push(h);e&&(a.scheduleOn=a.scheduleOn?Promise.all([a.scheduleOn,e]):e)}return this.parsedPos=l,new Qe(vt.none,[],[],l-r)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let t=this.fragments;return this.treeLen>=e&&t.length&&t[0].from==0&&t[0].to>=e}static get(){return Wi}}function zh(s,e,t){return An.applyChanges(s,[{fromA:e,toA:t,fromB:e,toB:t}])}class Ti{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let t=this.context.changes(e.changes,e.state),n=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),t.viewport.to);return t.work(20,n)||t.takeTree(),new Ti(t)}static init(e){let t=Math.min(3e3,e.doc.length),n=gr.create(e.facet(Wn).parser,e,{from:0,to:t});return n.work(20,t)||n.takeTree(),new Ti(n)}}Ut.state=Pt.define({create:Ti.init,update(s,e){for(let t of e.effects)if(t.is(Ut.setState))return t.value;return e.startState.facet(Wn)!=e.state.facet(Wn)?Ti.init(e.state):s.apply(e)}});let dd=s=>{let e=setTimeout(()=>s(),500);return()=>clearTimeout(e)};typeof requestIdleCallback<"u"&&(dd=s=>{let e=-1,t=setTimeout(()=>{e=requestIdleCallback(s,{timeout:500-100})},100);return()=>e<0?clearTimeout(t):cancelIdleCallback(e)});const vl=typeof navigator<"u"&&(!((kl=navigator.scheduling)===null||kl===void 0)&&kl.isInputPending)?()=>navigator.scheduling.isInputPending():null,s1=ht.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let t=this.view.state.field(Ut.state).context;(t.updateViewport(e.view.viewport)||this.view.viewport.to>t.treeLen)&&this.scheduleWork(),e.docChanged&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(t)}scheduleWork(){if(this.working)return;let{state:e}=this.view,t=e.field(Ut.state);(t.tree!=t.context.tree||!t.context.isDone(e.doc.length))&&(this.working=dd(this.work))}work(e){this.working=null;let t=Date.now();if(this.chunkEndi+1e3,a=r.context.work(()=>vl&&vl()||Date.now()>l,i+(o?0:1e5));this.chunkBudget-=Date.now()-t,(a||this.chunkBudget<=0)&&(r.context.takeTree(),this.view.dispatch({effects:Ut.setState.of(new Ti(r.context))})),this.chunkBudget>0&&!(a&&!o)&&this.scheduleWork(),this.checkAsyncSchedule(r.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(t=>xn(this.view.state,t)).then(()=>this.workScheduled--),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),Wn=le.define({combine(s){return s.length?s[0]:null},enables:s=>[Ut.state,s1,ce.contentAttributes.compute([s],e=>{let t=e.facet(s);return t&&t.name?{"data-language":t.name}:{}})]});class Xw{constructor(e,t=[]){this.language=e,this.support=t,this.extension=[e,t]}}class pd{constructor(e,t,n,i,r,l=void 0){this.name=e,this.alias=t,this.extensions=n,this.filename=i,this.loadFunc=r,this.support=l,this.loading=null}load(){return this.loading||(this.loading=this.loadFunc().then(e=>this.support=e,e=>{throw this.loading=null,e}))}static of(e){let{load:t,support:n}=e;if(!t){if(!n)throw new RangeError("Must pass either 'load' or 'support' to LanguageDescription.of");t=()=>Promise.resolve(n)}return new pd(e.name,(e.alias||[]).concat(e.name).map(i=>i.toLowerCase()),e.extensions||[],e.filename,t,n)}static matchFilename(e,t){for(let i of e)if(i.filename&&i.filename.test(t))return i;let n=/\.([^.]+)$/.exec(t);if(n){for(let i of e)if(i.extensions.indexOf(n[1])>-1)return i}return null}static matchLanguageName(e,t,n=!0){t=t.toLowerCase();for(let i of e)if(i.alias.some(r=>r==t))return i;if(n)for(let i of e)for(let r of i.alias){let l=t.indexOf(r);if(l>-1&&(r.length>2||!/\w/.test(t[l-1])&&!/\w/.test(t[l+r.length])))return i}return null}}const r1=le.define(),Pr=le.define({combine:s=>{if(!s.length)return" ";let e=s[0];if(!e||/\S/.test(e)||Array.from(e).some(t=>t!=e[0]))throw new Error("Invalid indent unit: "+JSON.stringify(s[0]));return e}});function mr(s){let e=s.facet(Pr);return e.charCodeAt(0)==9?s.tabSize*e.length:e.length}function cs(s,e){let t="",n=s.tabSize,i=s.facet(Pr)[0];if(i==" "){for(;e>=n;)t+=" ",e-=n;i=" "}for(let r=0;r=n.from&&i<=n.to?r&&i==e?{text:"",from:e}:(t<0?i-1&&(r+=l-this.countColumn(n,n.search(/\S|$/))),r}countColumn(e,t=e.length){return gs(e,this.state.tabSize,t)}lineIndent(e,t=1){let{text:n,from:i}=this.lineAt(e,t),r=this.options.overrideIndentation;if(r){let l=r(i);if(l>-1)return l}return this.countColumn(n,n.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const l1=new ve;function o1(s,e,t){return gd(e.resolveInner(t).enterUnfinishedNodesBefore(t),t,s)}function a1(s){return s.pos==s.options.simulateBreak&&s.options.simulateDoubleBreak}function h1(s){let e=s.type.prop(l1);if(e)return e;let t=s.firstChild,n;if(t&&(n=t.type.prop(ve.closedBy))){let i=s.lastChild,r=i&&n.indexOf(i.name)>-1;return l=>md(l,!0,1,void 0,r&&!a1(l)?i.from:void 0)}return s.parent==null?c1:null}function gd(s,e,t){for(;s;s=s.parent){let n=h1(s);if(n)return n(Ro.create(t,e,s))}return null}function c1(){return 0}class Ro extends $r{constructor(e,t,n){super(e.state,e.options),this.base=e,this.pos=t,this.node=n}static create(e,t,n){return new Ro(e,t,n)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(e){let t=this.state.doc.lineAt(e.from);for(;;){let n=e.resolve(t.from);for(;n.parent&&n.parent.from==n.from;)n=n.parent;if(f1(n,e))break;t=this.state.doc.lineAt(n.from)}return this.lineIndent(t.from)}continue(){let e=this.node.parent;return e?gd(e,this.pos,this.base):0}}function f1(s,e){for(let t=e;t;t=t.parent)if(s==t)return!0;return!1}function u1(s){let e=s.node,t=e.childAfter(e.from),n=e.lastChild;if(!t)return null;let i=s.options.simulateBreak,r=s.state.doc.lineAt(t.from),l=i==null||i<=r.from?r.to:Math.min(r.to,i);for(let o=t.to;;){let a=e.childAfter(o);if(!a||a==n)return null;if(!a.type.isSkipped)return a.frommd(n,e,t,s)}function md(s,e,t,n,i){let r=s.textAfter,l=r.match(/^\s*/)[0].length,o=n&&r.slice(l,l+n.length)==n||i==s.pos+l,a=e?u1(s):null;return a?o?s.column(a.from):s.column(a.to):s.baseIndent+(o?0:s.unit*t)}const Qw=s=>s.baseIndent;function eS({except:s,units:e=1}={}){return t=>{let n=s&&s.test(t.textAfter);return t.baseIndent+(n?0:e*t.unit)}}const d1=200;function tS(){return ye.transactionFilter.of(s=>{if(!s.docChanged||!s.isUserEvent("input.type")&&!s.isUserEvent("input.complete"))return s;let e=s.startState.languageDataAt("indentOnInput",s.startState.selection.main.head);if(!e.length)return s;let t=s.newDoc,{head:n}=s.newSelection.main,i=t.lineAt(n);if(n>i.from+d1)return s;let r=t.sliceString(i.from,n);if(!e.some(h=>h.test(r)))return s;let{state:l}=s,o=-1,a=[];for(let{head:h}of l.selection.ranges){let c=l.doc.lineAt(h);if(c.from==o)continue;o=c.from;let f=Lo(l,c.from);if(f==null)continue;let u=/^\s*/.exec(c.text)[0],d=cs(l,f);u!=d&&a.push({from:c.from,to:c.from+u.length,insert:d})}return a.length?[s,{changes:a,sequential:!0}]:s})}const p1=le.define(),g1=new ve;function nS(s){let e=s.firstChild,t=s.lastChild;return e&&e.tot)continue;if(r&&l.from=e&&a.to>t&&(r=a)}}return r}function b1(s){let e=s.lastChild;return e&&e.to==s.to&&e.type.isError}function br(s,e,t){for(let n of s.facet(p1)){let i=n(s,e,t);if(i)return i}return m1(s,e,t)}function bd(s,e){let t=e.mapPos(s.from,1),n=e.mapPos(s.to,-1);return t>=n?void 0:{from:t,to:n}}const Br=Pe.define({map:bd}),ks=Pe.define({map:bd});function _d(s){let e=[];for(let{head:t}of s.state.selection.ranges)e.some(n=>n.from<=t&&n.to>=t)||e.push(s.lineBlockAt(t));return e}const li=Pt.define({create(){return Re.none},update(s,e){s=s.map(e.changes);for(let t of e.effects)t.is(Br)&&!_1(s,t.value.from,t.value.to)?s=s.update({add:[jh.range(t.value.from,t.value.to)]}):t.is(ks)&&(s=s.update({filter:(n,i)=>t.value.from!=n||t.value.to!=i,filterFrom:t.value.from,filterTo:t.value.to}));if(e.selection){let t=!1,{head:n}=e.selection.main;s.between(n,n,(i,r)=>{in&&(t=!0)}),t&&(s=s.update({filterFrom:n,filterTo:n,filter:(i,r)=>r<=n||i>=n}))}return s},provide:s=>ce.decorations.from(s),toJSON(s,e){let t=[];return s.between(0,e.doc.length,(n,i)=>{t.push(n,i)}),t},fromJSON(s){if(!Array.isArray(s)||s.length%2)throw new RangeError("Invalid JSON for fold state");let e=[];for(let t=0;t{(!i||i.from>r)&&(i={from:r,to:l})}),i}function _1(s,e,t){let n=!1;return s.between(e,e,(i,r)=>{i==e&&r==t&&(n=!0)}),n}function kd(s,e){return s.field(li,!1)?e:e.concat(Pe.appendConfig.of(wd()))}const k1=s=>{for(let e of _d(s)){let t=br(s.state,e.from,e.to);if(t)return s.dispatch({effects:kd(s.state,[Br.of(t),vd(s,t)])}),!0}return!1},v1=s=>{if(!s.state.field(li,!1))return!1;let e=[];for(let t of _d(s)){let n=_r(s.state,t.from,t.to);n&&e.push(ks.of(n),vd(s,n,!1))}return e.length&&s.dispatch({effects:e}),e.length>0};function vd(s,e,t=!0){let n=s.state.doc.lineAt(e.from).number,i=s.state.doc.lineAt(e.to).number;return ce.announce.of(`${s.state.phrase(t?"Folded lines":"Unfolded lines")} ${n} ${s.state.phrase("to")} ${i}.`)}const y1=s=>{let{state:e}=s,t=[];for(let n=0;n{let e=s.state.field(li,!1);if(!e||!e.size)return!1;let t=[];return e.between(0,s.state.doc.length,(n,i)=>{t.push(ks.of({from:n,to:i}))}),s.dispatch({effects:t}),!0},iS=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:k1},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:v1},{key:"Ctrl-Alt-[",run:y1},{key:"Ctrl-Alt-]",run:w1}],S1={placeholderDOM:null,placeholderText:"…"},yd=le.define({combine(s){return Ei(s,S1)}});function wd(s){let e=[li,A1];return s&&e.push(yd.of(s)),e}const jh=Re.replace({widget:new class extends Di{toDOM(s){let{state:e}=s,t=e.facet(yd),n=r=>{let l=s.lineBlockAt(s.posAtDOM(r.target)),o=_r(s.state,l.from,l.to);o&&s.dispatch({effects:ks.of(o)}),r.preventDefault()};if(t.placeholderDOM)return t.placeholderDOM(s,n);let i=document.createElement("span");return i.textContent=t.placeholderText,i.setAttribute("aria-label",e.phrase("folded code")),i.title=e.phrase("unfold"),i.className="cm-foldPlaceholder",i.onclick=n,i}}}),x1={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class yl extends En{constructor(e,t){super(),this.config=e,this.open=t}eq(e){return this.config==e.config&&this.open==e.open}toDOM(e){if(this.config.markerDOM)return this.config.markerDOM(this.open);let t=document.createElement("span");return t.textContent=this.open?this.config.openText:this.config.closedText,t.title=e.state.phrase(this.open?"Fold line":"Unfold line"),t}}function sS(s={}){let e=Object.assign(Object.assign({},x1),s),t=new yl(e,!0),n=new yl(e,!1),i=ht.fromClass(class{constructor(l){this.from=l.viewport.from,this.markers=this.buildMarkers(l)}update(l){(l.docChanged||l.viewportChanged||l.startState.facet(Wn)!=l.state.facet(Wn)||l.startState.field(li,!1)!=l.state.field(li,!1)||Ot(l.startState)!=Ot(l.state)||e.foldingChanged(l))&&(this.markers=this.buildMarkers(l.view))}buildMarkers(l){let o=new ri;for(let a of l.viewportLineBlocks){let h=_r(l.state,a.from,a.to)?n:br(l.state,a.from,a.to)?t:null;h&&o.add(a.from,a.from,h)}return o.finish()}}),{domEventHandlers:r}=e;return[i,x0({class:"cm-foldGutter",markers(l){var o;return((o=l.plugin(i))===null||o===void 0?void 0:o.markers)||Ne.empty},initialSpacer(){return new yl(e,!1)},domEventHandlers:Object.assign(Object.assign({},r),{click:(l,o,a)=>{if(r.click&&r.click(l,o,a))return!0;let h=_r(l.state,o.from,o.to);if(h)return l.dispatch({effects:ks.of(h)}),!0;let c=br(l.state,o.from,o.to);return c?(l.dispatch({effects:Br.of(c)}),!0):!1}})}),wd()]}const A1=ce.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class vs{constructor(e,t){this.specs=e;let n;function i(o){let a=jn.newName();return(n||(n=Object.create(null)))["."+a]=o,a}const r=typeof t.all=="string"?t.all:t.all?i(t.all):void 0,l=t.scope;this.scope=l instanceof Ut?o=>o.prop(ki)==l.data:l?o=>o==l:void 0,this.style=ud(e.map(o=>({tag:o.tag,class:o.class||i(Object.assign({},o,{tag:null}))})),{all:r}).style,this.module=n?new jn(n):null,this.themeType=t.themeType}static define(e,t){return new vs(e,t||{})}}const co=le.define(),Sd=le.define({combine(s){return s.length?[s[0]]:null}});function wl(s){let e=s.facet(co);return e.length?e:s.facet(Sd)}function C1(s,e){let t=[T1],n;return s instanceof vs&&(s.module&&t.push(ce.styleModule.of(s.module)),n=s.themeType),e!=null&&e.fallback?t.push(Sd.of(s)):n?t.push(co.computeN([ce.darkTheme],i=>i.facet(ce.darkTheme)==(n=="dark")?[s]:[])):t.push(co.of(s)),t}class M1{constructor(e){this.markCache=Object.create(null),this.tree=Ot(e.state),this.decorations=this.buildDeco(e,wl(e.state))}update(e){let t=Ot(e.state),n=wl(e.state),i=n!=wl(e.startState);t.length{n.add(l,o,this.markCache[a]||(this.markCache[a]=Re.mark({class:a})))},i,r);return n.finish()}}const T1=Er.high(ht.fromClass(M1,{decorations:s=>s.decorations})),rS=vs.define([{tag:N.meta,color:"#404740"},{tag:N.link,textDecoration:"underline"},{tag:N.heading,textDecoration:"underline",fontWeight:"bold"},{tag:N.emphasis,fontStyle:"italic"},{tag:N.strong,fontWeight:"bold"},{tag:N.strikethrough,textDecoration:"line-through"},{tag:N.keyword,color:"#708"},{tag:[N.atom,N.bool,N.url,N.contentSeparator,N.labelName],color:"#219"},{tag:[N.literal,N.inserted],color:"#164"},{tag:[N.string,N.deleted],color:"#a11"},{tag:[N.regexp,N.escape,N.special(N.string)],color:"#e40"},{tag:N.definition(N.variableName),color:"#00f"},{tag:N.local(N.variableName),color:"#30a"},{tag:[N.typeName,N.namespace],color:"#085"},{tag:N.className,color:"#167"},{tag:[N.special(N.variableName),N.macroName],color:"#256"},{tag:N.definition(N.propertyName),color:"#00c"},{tag:N.comment,color:"#940"},{tag:N.invalid,color:"#f00"}]),E1=ce.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),xd=1e4,Ad="()[]{}",Cd=le.define({combine(s){return Ei(s,{afterCursor:!0,brackets:Ad,maxScanDistance:xd,renderMatch:P1})}}),D1=Re.mark({class:"cm-matchingBracket"}),O1=Re.mark({class:"cm-nonmatchingBracket"});function P1(s){let e=[],t=s.matched?D1:O1;return e.push(t.range(s.start.from,s.start.to)),s.end&&e.push(t.range(s.end.from,s.end.to)),e}const $1=Pt.define({create(){return Re.none},update(s,e){if(!e.docChanged&&!e.selection)return s;let t=[],n=e.state.facet(Cd);for(let i of e.state.selection.ranges){if(!i.empty)continue;let r=cn(e.state,i.head,-1,n)||i.head>0&&cn(e.state,i.head-1,1,n)||n.afterCursor&&(cn(e.state,i.head,1,n)||i.headce.decorations.from(s)}),B1=[$1,E1];function lS(s={}){return[Cd.of(s),B1]}const N1=new ve;function fo(s,e,t){let n=s.prop(e<0?ve.openedBy:ve.closedBy);if(n)return n;if(s.name.length==1){let i=t.indexOf(s.name);if(i>-1&&i%2==(e<0?1:0))return[t[i+e]]}return null}function uo(s){let e=s.type.prop(N1);return e?e(s.node):s}function cn(s,e,t,n={}){let i=n.maxScanDistance||xd,r=n.brackets||Ad,l=Ot(s),o=l.resolveInner(e,t);for(let a=o;a;a=a.parent){let h=fo(a.type,t,r);if(h&&a.from0?e>=c.from&&ec.from&&e<=c.to))return L1(s,e,t,a,c,h,r)}}return R1(s,e,t,l,o.type,i,r)}function L1(s,e,t,n,i,r,l){let o=n.parent,a={from:i.from,to:i.to},h=0,c=o==null?void 0:o.cursor();if(c&&(t<0?c.childBefore(n.from):c.childAfter(n.to)))do if(t<0?c.to<=n.from:c.from>=n.to){if(h==0&&r.indexOf(c.type.name)>-1&&c.from0)return null;let h={from:t<0?e-1:e,to:t>0?e+1:e},c=s.doc.iterRange(e,t>0?s.doc.length:0),f=0;for(let u=0;!c.next().done&&u<=r;){let d=c.value;t<0&&(u+=d.length);let p=e+u*t;for(let g=t>0?0:d.length-1,m=t>0?d.length:-1;g!=m;g+=t){let _=l.indexOf(d[g]);if(!(_<0||n.resolveInner(p+g,1).type!=i))if(_%2==0==t>0)f++;else{if(f==1)return{start:h,end:{from:p+g,to:p+g+1},matched:_>>1==a>>1};f--}}t>0&&(u+=d.length)}return c.done?{start:h,matched:!1}:null}const I1=Object.create(null),Vh=[vt.none],Hh=[],z1=Object.create(null);for(let[s,e]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])z1[s]=j1(I1,e);function Sl(s,e){Hh.indexOf(s)>-1||(Hh.push(s),console.warn(e))}function j1(s,e){let t=null;for(let r of e.split(".")){let l=s[r]||N[r];l?typeof l=="function"?t?t=l(t):Sl(r,`Modifier ${r} used at start of tag`):t?Sl(r,`Tag ${r} used as modifier`):t=l:Sl(r,`Unknown highlighting tag ${r}`)}if(!t)return 0;let n=e.replace(/ /g,"_"),i=vt.define({id:Vh.length,name:n,props:[Y0({[n]:t})]});return Vh.push(i),i.id}const V1=s=>{let{state:e}=s,t=e.doc.lineAt(e.selection.main.from),n=zo(s.state,t.from);return n.line?H1(s):n.block?W1(s):!1};function Io(s,e){return({state:t,dispatch:n})=>{if(t.readOnly)return!1;let i=s(e,t);return i?(n(t.update(i)),!0):!1}}const H1=Io(K1,0),F1=Io(Md,0),W1=Io((s,e)=>Md(s,e,U1(e)),0);function zo(s,e){let t=s.languageDataAt("commentTokens",e);return t.length?t[0]:{}}const qi=50;function q1(s,{open:e,close:t},n,i){let r=s.sliceDoc(n-qi,n),l=s.sliceDoc(i,i+qi),o=/\s*$/.exec(r)[0].length,a=/^\s*/.exec(l)[0].length,h=r.length-o;if(r.slice(h-e.length,h)==e&&l.slice(a,a+t.length)==t)return{open:{pos:n-o,margin:o&&1},close:{pos:i+a,margin:a&&1}};let c,f;i-n<=2*qi?c=f=s.sliceDoc(n,i):(c=s.sliceDoc(n,n+qi),f=s.sliceDoc(i-qi,i));let u=/^\s*/.exec(c)[0].length,d=/\s*$/.exec(f)[0].length,p=f.length-d-t.length;return c.slice(u,u+e.length)==e&&f.slice(p,p+t.length)==t?{open:{pos:n+u+e.length,margin:/\s/.test(c.charAt(u+e.length))?1:0},close:{pos:i-d-t.length,margin:/\s/.test(f.charAt(p-1))?1:0}}:null}function U1(s){let e=[];for(let t of s.selection.ranges){let n=s.doc.lineAt(t.from),i=t.to<=n.to?n:s.doc.lineAt(t.to),r=e.length-1;r>=0&&e[r].to>n.from?e[r].to=i.to:e.push({from:n.from+/^\s*/.exec(n.text)[0].length,to:i.to})}return e}function Md(s,e,t=e.selection.ranges){let n=t.map(r=>zo(e,r.from).block);if(!n.every(r=>r))return null;let i=t.map((r,l)=>q1(e,n[l],r.from,r.to));if(s!=2&&!i.every(r=>r))return{changes:e.changes(t.map((r,l)=>i[l]?[]:[{from:r.from,insert:n[l].open+" "},{from:r.to,insert:" "+n[l].close}]))};if(s!=1&&i.some(r=>r)){let r=[];for(let l=0,o;li&&(r==l||l>f.from)){i=f.from;let u=/^\s*/.exec(f.text)[0].length,d=u==f.length,p=f.text.slice(u,u+h.length)==h?u:-1;ur.comment<0&&(!r.empty||r.single))){let r=[];for(let{line:o,token:a,indent:h,empty:c,single:f}of n)(f||!c)&&r.push({from:o.from+h,insert:a+" "});let l=e.changes(r);return{changes:l,selection:e.selection.map(l,1)}}else if(s!=1&&n.some(r=>r.comment>=0)){let r=[];for(let{line:l,comment:o,token:a}of n)if(o>=0){let h=l.from+o,c=h+a.length;l.text[c-l.from]==" "&&c++,r.push({from:h,to:c})}return{changes:r}}return null}const po=qn.define(),J1=qn.define(),G1=le.define(),Td=le.define({combine(s){return Ei(s,{minDepth:100,newGroupDelay:500,joinToEvent:(e,t)=>t},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,t)=>(n,i)=>e(n,i)||t(n,i)})}});function Y1(s){let e=0;return s.iterChangedRanges((t,n)=>e=n),e}const jo=Pt.define({create(){return fn.empty},update(s,e){let t=e.state.facet(Td),n=e.annotation(po);if(n){let a=e.docChanged?F.single(Y1(e.changes)):void 0,h=kt.fromTransaction(e,a),c=n.side,f=c==0?s.undone:s.done;return h?f=kr(f,f.length,t.minDepth,h):f=Od(f,e.startState.selection),new fn(c==0?n.rest:f,c==0?f:n.rest)}let i=e.annotation(J1);if((i=="full"||i=="before")&&(s=s.isolate()),e.annotation(Ze.addToHistory)===!1)return e.changes.empty?s:s.addMapping(e.changes.desc);let r=kt.fromTransaction(e),l=e.annotation(Ze.time),o=e.annotation(Ze.userEvent);return r?s=s.addChanges(r,l,o,t,e):e.selection&&(s=s.addSelection(e.startState.selection,l,o,t.newGroupDelay)),(i=="full"||i=="after")&&(s=s.isolate()),s},toJSON(s){return{done:s.done.map(e=>e.toJSON()),undone:s.undone.map(e=>e.toJSON())}},fromJSON(s){return new fn(s.done.map(kt.fromJSON),s.undone.map(kt.fromJSON))}});function oS(s={}){return[jo,Td.of(s),ce.domEventHandlers({beforeinput(e,t){let n=e.inputType=="historyUndo"?Ed:e.inputType=="historyRedo"?go:null;return n?(e.preventDefault(),n(t)):!1}})]}const Fh=jo;function Nr(s,e){return function({state:t,dispatch:n}){if(!e&&t.readOnly)return!1;let i=t.field(jo,!1);if(!i)return!1;let r=i.pop(s,t,e);return r?(n(r),!0):!1}}const Ed=Nr(0,!1),go=Nr(1,!1),X1=Nr(0,!0),Z1=Nr(1,!0);class kt{constructor(e,t,n,i,r){this.changes=e,this.effects=t,this.mapped=n,this.startSelection=i,this.selectionsAfter=r}setSelAfter(e){return new kt(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,t,n;return{changes:(e=this.changes)===null||e===void 0?void 0:e.toJSON(),mapped:(t=this.mapped)===null||t===void 0?void 0:t.toJSON(),startSelection:(n=this.startSelection)===null||n===void 0?void 0:n.toJSON(),selectionsAfter:this.selectionsAfter.map(i=>i.toJSON())}}static fromJSON(e){return new kt(e.changes&&Ye.fromJSON(e.changes),[],e.mapped&&pn.fromJSON(e.mapped),e.startSelection&&F.fromJSON(e.startSelection),e.selectionsAfter.map(F.fromJSON))}static fromTransaction(e,t){let n=Rt;for(let i of e.startState.facet(G1)){let r=i(e);r.length&&(n=n.concat(r))}return!n.length&&e.changes.empty?null:new kt(e.changes.invert(e.startState.doc),n,void 0,t||e.startState.selection,Rt)}static selection(e){return new kt(void 0,Rt,void 0,void 0,e)}}function kr(s,e,t,n){let i=e+1>t+20?e-t-1:0,r=s.slice(i,e);return r.push(n),r}function Q1(s,e){let t=[],n=!1;return s.iterChangedRanges((i,r)=>t.push(i,r)),e.iterChangedRanges((i,r,l,o)=>{for(let a=0;a=h&&l<=c&&(n=!0)}}),n}function eb(s,e){return s.ranges.length==e.ranges.length&&s.ranges.filter((t,n)=>t.empty!=e.ranges[n].empty).length===0}function Dd(s,e){return s.length?e.length?s.concat(e):s:e}const Rt=[],tb=200;function Od(s,e){if(s.length){let t=s[s.length-1],n=t.selectionsAfter.slice(Math.max(0,t.selectionsAfter.length-tb));return n.length&&n[n.length-1].eq(e)?s:(n.push(e),kr(s,s.length-1,1e9,t.setSelAfter(n)))}else return[kt.selection([e])]}function nb(s){let e=s[s.length-1],t=s.slice();return t[s.length-1]=e.setSelAfter(e.selectionsAfter.slice(0,e.selectionsAfter.length-1)),t}function xl(s,e){if(!s.length)return s;let t=s.length,n=Rt;for(;t;){let i=ib(s[t-1],e,n);if(i.changes&&!i.changes.empty||i.effects.length){let r=s.slice(0,t);return r[t-1]=i,r}else e=i.mapped,t--,n=i.selectionsAfter}return n.length?[kt.selection(n)]:Rt}function ib(s,e,t){let n=Dd(s.selectionsAfter.length?s.selectionsAfter.map(o=>o.map(e)):Rt,t);if(!s.changes)return kt.selection(n);let i=s.changes.map(e),r=e.mapDesc(s.changes,!0),l=s.mapped?s.mapped.composeDesc(r):r;return new kt(i,Pe.mapEffects(s.effects,e),l,s.startSelection.map(r),n)}const sb=/^(input\.type|delete)($|\.)/;class fn{constructor(e,t,n=0,i=void 0){this.done=e,this.undone=t,this.prevTime=n,this.prevUserEvent=i}isolate(){return this.prevTime?new fn(this.done,this.undone):this}addChanges(e,t,n,i,r){let l=this.done,o=l[l.length-1];return o&&o.changes&&!o.changes.empty&&e.changes&&(!n||sb.test(n))&&(!o.selectionsAfter.length&&t-this.prevTime0&&t-this.prevTimet.empty?s.moveByChar(t,e):Lr(t,e))}function ct(s){return s.textDirectionAt(s.state.selection.main.head)==Ue.LTR}const $d=s=>Pd(s,!ct(s)),Bd=s=>Pd(s,ct(s));function Nd(s,e){return Kt(s,t=>t.empty?s.moveByGroup(t,e):Lr(t,e))}const rb=s=>Nd(s,!ct(s)),lb=s=>Nd(s,ct(s));function ob(s,e,t){if(e.type.prop(t))return!0;let n=e.to-e.from;return n&&(n>2||/[^\s,.;:]/.test(s.sliceDoc(e.from,e.to)))||e.firstChild}function Rr(s,e,t){let n=Ot(s).resolveInner(e.head),i=t?ve.closedBy:ve.openedBy;for(let a=e.head;;){let h=t?n.childAfter(a):n.childBefore(a);if(!h)break;ob(s,h,i)?n=h:a=t?h.to:h.from}let r=n.type.prop(i),l,o;return r&&(l=t?cn(s,n.from,1):cn(s,n.to,-1))&&l.matched?o=t?l.end.to:l.end.from:o=t?n.to:n.from,F.cursor(o,t?-1:1)}const ab=s=>Kt(s,e=>Rr(s.state,e,!ct(s))),hb=s=>Kt(s,e=>Rr(s.state,e,ct(s)));function Ld(s,e){return Kt(s,t=>{if(!t.empty)return Lr(t,e);let n=s.moveVertically(t,e);return n.head!=t.head?n:s.moveToLineBoundary(t,e)})}const Rd=s=>Ld(s,!1),Id=s=>Ld(s,!0);function zd(s){let e=s.scrollDOM.clientHeightl.empty?s.moveVertically(l,e,t.height):Lr(l,e));if(i.eq(n.selection))return!1;let r;if(t.selfScroll){let l=s.coordsAtPos(n.selection.main.head),o=s.scrollDOM.getBoundingClientRect(),a=o.top+t.marginTop,h=o.bottom-t.marginBottom;l&&l.top>a&&l.bottomjd(s,!1),mo=s=>jd(s,!0);function Un(s,e,t){let n=s.lineBlockAt(e.head),i=s.moveToLineBoundary(e,t);if(i.head==e.head&&i.head!=(t?n.to:n.from)&&(i=s.moveToLineBoundary(e,t,!1)),!t&&i.head==n.from&&n.length){let r=/^\s*/.exec(s.state.sliceDoc(n.from,Math.min(n.from+100,n.to)))[0].length;r&&e.head!=n.from+r&&(i=F.cursor(n.from+r))}return i}const cb=s=>Kt(s,e=>Un(s,e,!0)),fb=s=>Kt(s,e=>Un(s,e,!1)),ub=s=>Kt(s,e=>Un(s,e,!ct(s))),db=s=>Kt(s,e=>Un(s,e,ct(s))),pb=s=>Kt(s,e=>F.cursor(s.lineBlockAt(e.head).from,1)),gb=s=>Kt(s,e=>F.cursor(s.lineBlockAt(e.head).to,-1));function mb(s,e,t){let n=!1,i=Oi(s.selection,r=>{let l=cn(s,r.head,-1)||cn(s,r.head,1)||r.head>0&&cn(s,r.head-1,1)||r.headmb(s,e,!1);function jt(s,e){let t=Oi(s.state.selection,n=>{let i=e(n);return F.range(n.anchor,i.head,i.goalColumn,i.bidiLevel||void 0)});return t.eq(s.state.selection)?!1:(s.dispatch(gn(s.state,t)),!0)}function Vd(s,e){return jt(s,t=>s.moveByChar(t,e))}const Hd=s=>Vd(s,!ct(s)),Fd=s=>Vd(s,ct(s));function Wd(s,e){return jt(s,t=>s.moveByGroup(t,e))}const _b=s=>Wd(s,!ct(s)),kb=s=>Wd(s,ct(s)),vb=s=>jt(s,e=>Rr(s.state,e,!ct(s))),yb=s=>jt(s,e=>Rr(s.state,e,ct(s)));function qd(s,e){return jt(s,t=>s.moveVertically(t,e))}const Ud=s=>qd(s,!1),Kd=s=>qd(s,!0);function Jd(s,e){return jt(s,t=>s.moveVertically(t,e,zd(s).height))}const qh=s=>Jd(s,!1),Uh=s=>Jd(s,!0),wb=s=>jt(s,e=>Un(s,e,!0)),Sb=s=>jt(s,e=>Un(s,e,!1)),xb=s=>jt(s,e=>Un(s,e,!ct(s))),Ab=s=>jt(s,e=>Un(s,e,ct(s))),Cb=s=>jt(s,e=>F.cursor(s.lineBlockAt(e.head).from)),Mb=s=>jt(s,e=>F.cursor(s.lineBlockAt(e.head).to)),Kh=({state:s,dispatch:e})=>(e(gn(s,{anchor:0})),!0),Jh=({state:s,dispatch:e})=>(e(gn(s,{anchor:s.doc.length})),!0),Gh=({state:s,dispatch:e})=>(e(gn(s,{anchor:s.selection.main.anchor,head:0})),!0),Yh=({state:s,dispatch:e})=>(e(gn(s,{anchor:s.selection.main.anchor,head:s.doc.length})),!0),Tb=({state:s,dispatch:e})=>(e(s.update({selection:{anchor:0,head:s.doc.length},userEvent:"select"})),!0),Eb=({state:s,dispatch:e})=>{let t=zr(s).map(({from:n,to:i})=>F.range(n,Math.min(i+1,s.doc.length)));return e(s.update({selection:F.create(t),userEvent:"select"})),!0},Db=({state:s,dispatch:e})=>{let t=Oi(s.selection,n=>{var i;let r=Ot(s).resolveInner(n.head,1);for(;!(r.from=n.to||r.to>n.to&&r.from<=n.from||!(!((i=r.parent)===null||i===void 0)&&i.parent));)r=r.parent;return F.range(r.to,r.from)});return e(gn(s,t)),!0},Ob=({state:s,dispatch:e})=>{let t=s.selection,n=null;return t.ranges.length>1?n=F.create([t.main]):t.main.empty||(n=F.create([F.cursor(t.main.head)])),n?(e(gn(s,n)),!0):!1};function Ir(s,e){if(s.state.readOnly)return!1;let t="delete.selection",{state:n}=s,i=n.changeByRange(r=>{let{from:l,to:o}=r;if(l==o){let a=e(l);al&&(t="delete.forward",a=Hs(s,a,!0)),l=Math.min(l,a),o=Math.max(o,a)}else l=Hs(s,l,!1),o=Hs(s,o,!0);return l==o?{range:r}:{changes:{from:l,to:o},range:F.cursor(l)}});return i.changes.empty?!1:(s.dispatch(n.update(i,{scrollIntoView:!0,userEvent:t,effects:t=="delete.selection"?ce.announce.of(n.phrase("Selection deleted")):void 0})),!0)}function Hs(s,e,t){if(s instanceof ce)for(let n of s.state.facet(ce.atomicRanges).map(i=>i(s)))n.between(e,e,(i,r)=>{ie&&(e=t?r:i)});return e}const Gd=(s,e)=>Ir(s,t=>{let{state:n}=s,i=n.doc.lineAt(t),r,l;if(!e&&t>i.from&&tGd(s,!1),Yd=s=>Gd(s,!0),Xd=(s,e)=>Ir(s,t=>{let n=t,{state:i}=s,r=i.doc.lineAt(n),l=i.charCategorizer(n);for(let o=null;;){if(n==(e?r.to:r.from)){n==t&&r.number!=(e?i.doc.lines:1)&&(n+=e?1:-1);break}let a=Ct(r.text,n-r.from,e)+r.from,h=r.text.slice(Math.min(n,a)-r.from,Math.max(n,a)-r.from),c=l(h);if(o!=null&&c!=o)break;(h!=" "||n!=t)&&(o=c),n=a}return n}),Zd=s=>Xd(s,!1),Pb=s=>Xd(s,!0),Qd=s=>Ir(s,e=>{let t=s.lineBlockAt(e).to;return eIr(s,e=>{let t=s.lineBlockAt(e).from;return e>t?t:Math.max(0,e-1)}),Bb=({state:s,dispatch:e})=>{if(s.readOnly)return!1;let t=s.changeByRange(n=>({changes:{from:n.from,to:n.to,insert:De.of(["",""])},range:F.cursor(n.from)}));return e(s.update(t,{scrollIntoView:!0,userEvent:"input"})),!0},Nb=({state:s,dispatch:e})=>{if(s.readOnly)return!1;let t=s.changeByRange(n=>{if(!n.empty||n.from==0||n.from==s.doc.length)return{range:n};let i=n.from,r=s.doc.lineAt(i),l=i==r.from?i-1:Ct(r.text,i-r.from,!1)+r.from,o=i==r.to?i+1:Ct(r.text,i-r.from,!0)+r.from;return{changes:{from:l,to:o,insert:s.doc.slice(i,o).append(s.doc.slice(l,i))},range:F.cursor(o)}});return t.changes.empty?!1:(e(s.update(t,{scrollIntoView:!0,userEvent:"move.character"})),!0)};function zr(s){let e=[],t=-1;for(let n of s.selection.ranges){let i=s.doc.lineAt(n.from),r=s.doc.lineAt(n.to);if(!n.empty&&n.to==r.from&&(r=s.doc.lineAt(n.to-1)),t>=i.number){let l=e[e.length-1];l.to=r.to,l.ranges.push(n)}else e.push({from:i.from,to:r.to,ranges:[n]});t=r.number+1}return e}function ep(s,e,t){if(s.readOnly)return!1;let n=[],i=[];for(let r of zr(s)){if(t?r.to==s.doc.length:r.from==0)continue;let l=s.doc.lineAt(t?r.to+1:r.from-1),o=l.length+1;if(t){n.push({from:r.to,to:l.to},{from:r.from,insert:l.text+s.lineBreak});for(let a of r.ranges)i.push(F.range(Math.min(s.doc.length,a.anchor+o),Math.min(s.doc.length,a.head+o)))}else{n.push({from:l.from,to:r.from},{from:r.to,insert:s.lineBreak+l.text});for(let a of r.ranges)i.push(F.range(a.anchor-o,a.head-o))}}return n.length?(e(s.update({changes:n,scrollIntoView:!0,selection:F.create(i,s.selection.mainIndex),userEvent:"move.line"})),!0):!1}const Lb=({state:s,dispatch:e})=>ep(s,e,!1),Rb=({state:s,dispatch:e})=>ep(s,e,!0);function tp(s,e,t){if(s.readOnly)return!1;let n=[];for(let i of zr(s))t?n.push({from:i.from,insert:s.doc.slice(i.from,i.to)+s.lineBreak}):n.push({from:i.to,insert:s.lineBreak+s.doc.slice(i.from,i.to)});return e(s.update({changes:n,scrollIntoView:!0,userEvent:"input.copyline"})),!0}const Ib=({state:s,dispatch:e})=>tp(s,e,!1),zb=({state:s,dispatch:e})=>tp(s,e,!0),jb=s=>{if(s.state.readOnly)return!1;let{state:e}=s,t=e.changes(zr(e).map(({from:i,to:r})=>(i>0?i--:rs.moveVertically(i,!0)).map(t);return s.dispatch({changes:t,selection:n,scrollIntoView:!0,userEvent:"delete.line"}),!0};function Vb(s,e){if(/\(\)|\[\]|\{\}/.test(s.sliceDoc(e-1,e+1)))return{from:e,to:e};let t=Ot(s).resolveInner(e),n=t.childBefore(e),i=t.childAfter(e),r;return n&&i&&n.to<=e&&i.from>=e&&(r=n.type.prop(ve.closedBy))&&r.indexOf(i.name)>-1&&s.doc.lineAt(n.to).from==s.doc.lineAt(i.from).from?{from:n.to,to:i.from}:null}const Hb=np(!1),Fb=np(!0);function np(s){return({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange(i=>{let{from:r,to:l}=i,o=e.doc.lineAt(r),a=!s&&r==l&&Vb(e,r);s&&(r=l=(l<=o.to?o:e.doc.lineAt(l)).to);let h=new $r(e,{simulateBreak:r,simulateDoubleBreak:!!a}),c=Lo(h,r);for(c==null&&(c=/^\s*/.exec(e.doc.lineAt(r).text)[0].length);lo.from&&r{let i=[];for(let l=n.from;l<=n.to;){let o=s.doc.lineAt(l);o.number>t&&(n.empty||n.to>o.from)&&(e(o,i,n),t=o.number),l=o.to+1}let r=s.changes(i);return{changes:i,range:F.range(r.mapPos(n.anchor,1),r.mapPos(n.head,1))}})}const Wb=({state:s,dispatch:e})=>{if(s.readOnly)return!1;let t=Object.create(null),n=new $r(s,{overrideIndentation:r=>{let l=t[r];return l??-1}}),i=Vo(s,(r,l,o)=>{let a=Lo(n,r.from);if(a==null)return;/\S/.test(r.text)||(a=0);let h=/^\s*/.exec(r.text)[0],c=cs(s,a);(h!=c||o.froms.readOnly?!1:(e(s.update(Vo(s,(t,n)=>{n.push({from:t.from,insert:s.facet(Pr)})}),{userEvent:"input.indent"})),!0),sp=({state:s,dispatch:e})=>s.readOnly?!1:(e(s.update(Vo(s,(t,n)=>{let i=/^\s*/.exec(t.text)[0];if(!i)return;let r=gs(i,s.tabSize),l=0,o=cs(s,Math.max(0,r-mr(s)));for(;l({mac:s.key,run:s.run,shift:s.shift}))),Kb=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:ab,shift:vb},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:hb,shift:yb},{key:"Alt-ArrowUp",run:Lb},{key:"Shift-Alt-ArrowUp",run:Ib},{key:"Alt-ArrowDown",run:Rb},{key:"Shift-Alt-ArrowDown",run:zb},{key:"Escape",run:Ob},{key:"Mod-Enter",run:Fb},{key:"Alt-l",mac:"Ctrl-l",run:Eb},{key:"Mod-i",run:Db,preventDefault:!0},{key:"Mod-[",run:sp},{key:"Mod-]",run:ip},{key:"Mod-Alt-\\",run:Wb},{key:"Shift-Mod-k",run:jb},{key:"Shift-Mod-\\",run:bb},{key:"Mod-/",run:V1},{key:"Alt-A",run:F1}].concat(Ub),Jb={key:"Tab",run:ip,shift:sp};let ft=[],Gb=(s,e)=>{let t,n=[],i={lc:0,l:e||0,value:s,set(r){i.value=r,i.notify()},get(){return i.lc||i.listen(()=>{})(),i.value},notify(r){t=n;let l=!ft.length;for(let o=0;o{n===t&&(n=n.slice());let o=n.indexOf(r);~o&&(n.splice(o,2),i.lc--,i.lc||i.off())}},subscribe(r,l){let o=i.listen(r,l);return r(i.value),o},off(){}};return i},Yb=(s={})=>{let e=Gb(s);return e.setKey=function(t,n){typeof n>"u"?t in e.value&&(e.value={...e.value},delete e.value[t],e.notify(t)):e.value[t]!==n&&(e.value={...e.value,[t]:n},e.notify(t))},e};var Xb=()=>Yb({view:null,extensions:null,value:null}),Zb=(s,e)=>{if(zn(e))throw new Error("No options provided. At least `value` is required.");let{value:t,instanceStore:n,onChangeBehavior:i={kind:"debounce",duration:50}}=e,r,l=new Promise($=>r=$),o,a=[];const h=new Nt,c=new Nt,f=new Nt,u=new Nt,d=new Nt,p=new Nt,g=new Nt,m=new Nt,_=ce.updateListener.of($=>D($));async function v($){return Promise.all([_,p.of(ic($)),g.of(await tc($)),h.of(await Xh($)??[]),Ku.of([...Kb,...$.useTabs?[Jb]:[]]),c.of(await Zh($)),f.of(Qh($)),u.of(await ec($)),d.of(nc($)),m.of(await sc($))])}function E($){const G=o.state.doc.toString();gi(G,t)||(t=G,s.dispatchEvent(new CustomEvent("codemirror:textChange",{detail:t}))),n==null||n.set({value:t,view:o,extensions:a}),s.dispatchEvent(new CustomEvent("codemirror:change",{detail:$}))}const{kind:w="debounce",duration:B=50}=i;let D=w==="debounce"?rc(E,B):lc(E,B);return(async()=>{a=await v(e);const $=ye.create({doc:t,extensions:a,selection:{anchor:e.cursorPos??0,head:e.cursorPos??0}});o=new ce({state:$,parent:s}),zn(e.cursorPos)||o.focus(),r()})(),{async update($){var O,T;await l;const G={};gi(t,$.value)||(t=$.value,G.changes={from:0,to:o.state.doc.length,insert:t}),!zn($.cursorPos)&&!gi(e.cursorPos,$.cursorPos)&&(G.selection={anchor:$.cursorPos??0,head:$.cursorPos??0},o.focus());async function L(Q,ie,J){G.effects=G.effects??[];const fe=G.effects;let z=!0;for(const oe of ie){const ge=$[oe],We=e[oe];if(!zn(ge)&&(z=!1,!gi(ge,We)))return fe.push(Q.reconfigure(await J($)))}z&&fe.push(Q.reconfigure([]))}await Promise.all([L(h,["setup"],Xh),L(c,["lang"],Zh),L(u,["useTabs","tabSize"],ec),L(f,["theme"],Qh),L(p,["extensions"],ic),L(d,["readonly"],nc),L(g,["autocomplete"],tc),L(m,["lint","lintOptions"],sc)]),o.dispatch(G);const{kind:V="debounce",duration:H=50}=$.onChangeBehavior??{kind:"debounce",duration:50};(!gi((O=e.onChangeBehavior)==null?void 0:O.kind,V)||!gi((T=e.onChangeBehavior)==null?void 0:T.duration,H))&&(D=V==="debounce"?rc(E,H):lc(E,H)),e=$,a=await v($)},destroy(){l.then(()=>o==null?void 0:o.destroy())}}};async function Xh(s){const{setup:e}=s;if(zn(e))return[];if(e==="basic")return(await Cn(()=>import("./basic-setup-BJSL5TOQ.fa6d6137.js"),["_app/immutable/chunks/basic-setup-BJSL5TOQ.fa6d6137.js","_app/immutable/chunks/index.3480e68f.js","_app/immutable/chunks/index.147cc472.js"])).default(s);if(e==="minimal")return(await Cn(()=>import("./minimal-setup-Y523JPZT.40173fa4.js"),[])).default(s);throw new Error("`setup` can only be `basic` or `minimal`. If you wish to provide another setup, pass through `extensions` prop.")}async function Zh({lang:s,langMap:e}){if(zn(s))return[];if(typeof s=="string"){if(!e)throw new Error("`langMap` is required when `lang` is a string.");if(!(s in e))throw new Error(`Language "${s}" is not defined in \`langMap\`.`);return await e[s]()}return s}function Qh({theme:s,styles:e}){return[s,e&&ce.theme(e)].filter(Boolean)}async function ec({useTabs:s=!1,tabSize:e=2}){return[ye.tabSize.of(e),Pr.of(s?" ":" ".repeat(e))]}async function tc({autocomplete:s}){if(zn(s))return[];const{autocompletion:e}=await Cn(()=>import("./index.3480e68f.js"),[]);return e(typeof s=="object"&&s?s:{})}function nc({readonly:s}){return ye.readOnly.of(!!s)}function ic({extensions:s}){return s??[]}async function sc({lint:s,lintOptions:e={}}){if(zn(s))return[];if(!Qb(s))throw new Error("`lint` must be a function.");const{linter:t}=await Cn(()=>import("./index.147cc472.js").then(n=>n.i),[]);return t(s,e)}var gi=(s,e)=>s===e,zn=s=>typeof s>"u",Qb=s=>typeof s=="function";function rc(s,e,t=!1){let n;return function(...r){const l=this;n?clearTimeout(n):t&&s.apply(l,r),n=setTimeout(o,e||100);function o(){t||s.apply(l,r),n=null}}}function lc(s,e){let t,n=!1;function i(r){if(t){s.apply(r,t),setTimeout(i,e,r),t=null;return}n=!1}return function(...l){const o=this;if(n){t=l;return}s.apply(o,l),n=!0,setTimeout(i,e,o)}}function e_(s){let e;const t=s[7].default,n=Mt(t,s,s[6],null);return{c(){n&&n.c()},l(i){n&&n.l(i)},m(i,r){n&&n.m(i,r),e=!0},p(i,r){n&&n.p&&(!e||r&64)&&Tt(n,t,i,i[6],e?Dt(t,i[6],r,null):Et(i[6]),null)},i(i){e||(S(n,i),e=!0)},o(i){M(n,i),e=!1},d(i){n&&n.d(i)}}}function t_(s){let e,t=s[4](s[1])+"",n,i,r;return{c(){e=A("button"),n=R(t),this.h()},l(l){e=C(l,"BUTTON",{class:!0});var o=P(e);n=I(o,t),o.forEach(b),this.h()},h(){k(e,"class","svelte-1w145fq"),ne(e,"navigable",s[1].filename)},m(l,o){x(l,e,o),y(e,n),i||(r=[ue(e,"click",s[8]),ue(e,"keyup",s[9])],i=!0)},p(l,o){o&2&&t!==(t=l[4](l[1])+"")&&re(n,t),o&2&&ne(e,"navigable",l[1].filename)},i:de,o:de,d(l){l&&b(e),i=!1,Dn(r)}}}function n_(s){let e,t,n,i,r,l;const o=[t_,e_],a=[];function h(c,f){return c[1]?0:1}return t=h(s),n=a[t]=o[t](s),{c(){e=A("div"),n.c(),this.h()},l(c){e=C(c,"DIV",{class:!0});var f=P(e);n.l(f),f.forEach(b),this.h()},h(){k(e,"class",i="message "+s[0]+" svelte-1w145fq"),ne(e,"truncate",s[2])},m(c,f){x(c,e,f),a[t].m(e,null),l=!0},p(c,[f]){let u=t;t=h(c),t===u?a[t].p(c,f):(we(),M(a[u],1,1,()=>{a[u]=null}),Se(),n=a[t],n?n.p(c,f):(n=a[t]=o[t](c),n.c()),S(n,1),n.m(e,null)),(!l||f&1&&i!==(i="message "+c[0]+" svelte-1w145fq"))&&k(e,"class",i),(!l||f&5)&&ne(e,"truncate",c[2])},i(c){l||(S(n),c&&Cr(()=>{l&&(r||(r=oa(e,ha,{duration:100},!0)),r.run(1))}),l=!0)},o(c){M(n),c&&(r||(r=oa(e,ha,{duration:100},!1)),r.run(0)),l=!1},d(c){c&&b(e),a[t].d(),c&&r&&r.end()}}}function i_(s,e,t){let{$$slots:n={},$$scope:i}=e,{kind:r="info"}=e,{details:l=void 0}=e,{filename:o=void 0}=e,{truncate:a=!1}=e;const{go_to_warning_pos:h}=ai();function c(d){let p=d.message||"[missing message]",g=[];return d.filename&&d.filename!==o&&g.push(d.filename),d.start&&g.push(d.start.line,d.start.column),p+(g.length?` (${g.join(":")})`:"")}const f=()=>h(l),u=d=>d.key===" "&&h(l);return s.$$set=d=>{"kind"in d&&t(0,r=d.kind),"details"in d&&t(1,l=d.details),"filename"in d&&t(5,o=d.filename),"truncate"in d&&t(2,a=d.truncate),"$$scope"in d&&t(6,i=d.$$scope)},[r,l,a,h,c,o,i,n,f,u]}class Pi extends _e{constructor(e){super(),ke(this,e,i_,n_,be,{kind:0,details:1,filename:5,truncate:2})}}const s_=ce.theme({"&":{color:"var(--sk-code-base)",backgroundColor:"transparent"},".cm-content":{caretColor:"var(--sk-theme-3)"},".cm-cursor, .cm-dropCursor":{borderLeftColor:"var(--sk-theme-3)"},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:"var(--sk-selection-color)"},".cm-panels":{backgroundColor:"var(--sk-back-2)",color:"var(--sk-text-2)"},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"var(--sk-theme-2)"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#6699ff0b"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:"var(--sk-back-3)",border:"none"},".cm-activeLineGutter":{backgroundColor:"var(--sk-back-4)"},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:"var(--sk-back-3)"},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:"var(--sk-back-3)",borderBottomColor:"var(--sk-back-3)"},".cm-tooltip-autocomplete":{color:"var(--sk-text-2) !important",perspective:"1px","& > ul > li[aria-selected]":{backgroundColor:"var(--sk-back-4)",color:"var(--sk-text-1) !important"}}},{dark:!0}),r_=vs.define([{tag:N.keyword,color:"var(--sk-code-keyword)"},{tag:[N.name,N.deleted,N.character,N.propertyName,N.macroName],color:"var(--sk-code-base)"},{tag:[N.function(N.variableName),N.labelName],color:"var(--sk-code-tags)"},{tag:[N.color,N.constant(N.name),N.standard(N.name)],color:"var(--sk-code-base)"},{tag:[N.definition(N.name),N.separator],color:"var(--sk-code-base)"},{tag:[N.typeName,N.className,N.number,N.changed,N.annotation,N.modifier,N.self,N.namespace],color:"var(--sk-code-tags)"},{tag:[N.operator,N.operatorKeyword,N.url,N.escape,N.regexp,N.link,N.special(N.string)],color:"var(--sk-code-base)"},{tag:[N.meta,N.comment],color:"var(--sk-code-comment)"},{tag:N.strong,fontWeight:"bold"},{tag:N.emphasis,fontStyle:"italic"},{tag:N.strikethrough,textDecoration:"line-through"},{tag:N.link,color:"var(--sk-code-base)",textDecoration:"underline"},{tag:N.heading,fontWeight:"bold",color:"var(--sk-text-1)"},{tag:[N.atom,N.bool],color:"var(--sk-code-atom)"},{tag:[N.processingInstruction,N.string,N.inserted],color:"var(--sk-code-string)"},{tag:N.invalid,color:"#ff008c"}]),oc=[s_,C1(r_)];function ac(s){let e,t,n,i,r,l;return r=new Pi({props:{kind:"info",$$slots:{default:[l_]},$$scope:{ctx:s}}}),{c(){e=A("pre"),t=R(s[5]),n=X(),i=A("div"),W(r.$$.fragment),this.h()},l(o){e=C(o,"PRE",{style:!0,class:!0});var a=P(e);t=I(a,s[5]),a.forEach(b),n=Z(o),i=C(o,"DIV",{style:!0});var h=P(i);K(r.$$.fragment,h),h.forEach(b),this.h()},h(){it(e,"position","absolute"),it(e,"left","0"),it(e,"top","0"),k(e,"class","svelte-1s16tri"),it(i,"position","absolute"),it(i,"width","100%"),it(i,"bottom","0")},m(o,a){x(o,e,a),y(e,t),x(o,n,a),x(o,i,a),q(r,i,null),l=!0},p(o,a){(!l||a[0]&32)&&re(t,o[5]);const h={};a[1]&4&&(h.$$scope={dirty:a,ctx:o}),r.$set(h)},i(o){l||(S(r.$$.fragment,o),l=!0)},o(o){M(r.$$.fragment,o),l=!1},d(o){o&&(b(e),b(n),b(i)),U(r)}}}function l_(s){let e;return{c(){e=R("loading editor...")},l(t){e=I(t,"loading editor...")},m(t,n){x(t,e,n)},d(t){t&&b(e)}}}function o_(s){let e,t,n,i,r,l=!s[4].view&&ac(s);return{c(){e=A("div"),l&&l.c(),this.h()},l(o){e=C(o,"DIV",{class:!0});var a=P(e);l&&l.l(a),a.forEach(b),this.h()},h(){k(e,"class","codemirror-container svelte-1s16tri")},m(o,a){x(o,e,a),l&&l.m(e,null),n=!0,i||(r=[Pf(t=Zb.call(null,e,{value:s[5],setup:"basic",useTabs:s[2],tabSize:2,theme:oc,readonly:s[1],cursorPos:s[7],lang:s[6],langMap:{js:hc,json:cc,md:fc,css:uc,svelte:dc},lint:s[0],lintOptions:{delay:200},autocomplete:s[3],extensions:[s[10]],instanceStore:s[9]})),ue(e,"codemirror:textChange",s[25])],i=!0)},p(o,a){o[4].view?l&&(we(),M(l,1,1,()=>{l=null}),Se()):l?(l.p(o,a),a[0]&16&&S(l,1)):(l=ac(o),l.c(),S(l,1),l.m(e,null)),t&&Bf(t.update)&&a[0]&239&&t.update.call(null,{value:o[5],setup:"basic",useTabs:o[2],tabSize:2,theme:oc,readonly:o[1],cursorPos:o[7],lang:o[6],langMap:{js:hc,json:cc,md:fc,css:uc,svelte:dc},lint:o[0],lintOptions:{delay:200},autocomplete:o[3],extensions:[o[10]],instanceStore:o[9]})},i(o){n||(S(l),n=!0)},o(o){M(l),n=!1},d(o){o&&b(e),l&&l.d(),i=!1,Dn(r)}}}const rp=lt(0),hc=()=>Cn(()=>import("./index.a81527e7.js").then(s=>s.i),["_app/immutable/chunks/index.a81527e7.js","_app/immutable/chunks/index.e545d957.js","_app/immutable/chunks/scheduler.3ecd3668.js","_app/immutable/chunks/index.3480e68f.js"]).then(s=>s.javascript()),cc=()=>Cn(()=>import("./index.0c21269a.js"),["_app/immutable/chunks/index.0c21269a.js","_app/immutable/chunks/index.e545d957.js","_app/immutable/chunks/scheduler.3ecd3668.js"]).then(s=>s.json()),fc=()=>Cn(()=>import("./index.5b2a27d5.js"),["_app/immutable/chunks/index.5b2a27d5.js","_app/immutable/chunks/index.3480e68f.js","_app/immutable/chunks/index.7be10aca.js","_app/immutable/chunks/index.e545d957.js","_app/immutable/chunks/scheduler.3ecd3668.js","_app/immutable/chunks/index.363a4bc7.js","_app/immutable/chunks/index.a81527e7.js"]).then(s=>s.markdown()),uc=()=>Cn(()=>import("./index.363a4bc7.js"),["_app/immutable/chunks/index.363a4bc7.js","_app/immutable/chunks/index.e545d957.js","_app/immutable/chunks/scheduler.3ecd3668.js"]).then(s=>s.css()),dc=()=>Cn(()=>import("./index.6cc8f837.js"),["_app/immutable/chunks/index.6cc8f837.js","_app/immutable/chunks/index.e545d957.js","_app/immutable/chunks/scheduler.3ecd3668.js","_app/immutable/chunks/index.363a4bc7.js","_app/immutable/chunks/index.a81527e7.js","_app/immutable/chunks/index.3480e68f.js","_app/immutable/chunks/index.7be10aca.js"]).then(s=>s.svelte());function a_(s,e,t){let n,{errorLoc:i=null}=e,{diagnostics:r=void 0}=e,{readonly:l=!1}=e,{tab:o=!0}=e,{autocomplete:a=!0}=e;const h=Mr();let c="",f="svelte";async function u(z){d(z)}async function d(z){if(n.view&&(await ns(),z.lang&&z.lang!==f&&t(6,f=z.lang),z.code!==void 0)){const{scrollLeft:oe,scrollTop:ge}=n.view.scrollDOM;t(5,c=z.code),ze(V,n.view.scrollDOM.scrollTop=ge,n),ze(V,n.view.scrollDOM.scrollLeft=oe,n)}}function p(z){t(7,ie=z)}let g;const m=new Promise(z=>t(23,g=z));function _(){var z;(z=n.view)==null||z.requestMeasure()}function v(){var z;(z=n.view)==null||z.focus()}function E(){var z;return(z=n.view)==null?void 0:z.state.toJSON({history:Fh})}function w(z){var oe;n.view&&(n.view.setState(ye.fromJSON(z,{extensions:Q,doc:z.doc},{history:Fh})),(oe=n.view)==null||oe.dispatch({changes:{from:0,to:n.view.state.doc.length,insert:z.doc},effects:[Pe.reconfigure.of(n.extensions??[])]}))}async function B(){var z,oe;await ns(),(z=n.view)==null||z.setState(ye.create({extensions:Q,doc:""})),(oe=n.view)==null||oe.dispatch({changes:{from:0,to:n.view.state.doc.length,insert:""},effects:[Pe.reconfigure.of(n.extensions??[])]})}const D=Pe.define(),$=Pt.define({create(){return Re.none},update(z,oe){z=z.map(oe.changes);for(let ge of oe.effects)ge.is(D)&&(z=z.update({add:ge.value,sort:!0}));return z},provide:z=>ce.decorations.from(z)});function G({from:z,to:oe,className:ge="mark-text"}){var Ee;const We=Re.mark({class:ge});(Ee=n.view)==null||Ee.dispatch({effects:[Pe.appendConfig.of($),D.of([We.range(z,oe)])]})}function L(){var z;(z=n.view)==null||z.dispatch({effects:Pe.reconfigure.of(n.extensions??[])})}const V=Xb();Ce(s,V,z=>t(4,n=z));let H,O,T=!1,Q=[],ie=0;const J=ce.updateListener.of(z=>{z.selectionSet&&rp.set(z.state.selection.main.head)}),fe=({detail:z})=>{t(5,c=z),h("change",{value:c})};return s.$$set=z=>{"errorLoc"in z&&t(11,i=z.errorLoc),"diagnostics"in z&&t(0,r=z.diagnostics),"readonly"in z&&t(1,l=z.readonly),"tab"in z&&t(2,o=z.tab),"autocomplete"in z&&t(3,a=z.autocomplete)},s.$$.update=()=>{s.$$.dirty[0]&8388624&&n.view&&g(),s.$$.dirty[0]&16&&n.view&&H&&O&&_(),s.$$.dirty[0]&16779264&&i&&(G({from:i.character,to:i.character+1,className:"error-loc"}),i.line)},[r,l,o,a,n,c,f,ie,h,V,J,i,u,d,p,m,_,v,E,w,B,G,L,g,T,fe]}class jr extends _e{constructor(e){super(),ke(this,e,a_,o_,be,{errorLoc:11,diagnostics:0,readonly:1,tab:2,autocomplete:3,set:12,update:13,setCursor:14,isReady:15,resize:16,focus:17,getEditorState:18,setEditorState:19,clearEditorState:20,markText:21,unmarkText:22},null,[-1,-1])}get set(){return this.$$.ctx[12]}get update(){return this.$$.ctx[13]}get setCursor(){return this.$$.ctx[14]}get isReady(){return this.$$.ctx[15]}get resize(){return this.$$.ctx[16]}get focus(){return this.$$.ctx[17]}get getEditorState(){return this.$$.ctx[18]}get setEditorState(){return this.$$.ctx[19]}get clearEditorState(){return this.$$.ctx[20]}get markText(){return this.$$.ctx[21]}get unmarkText(){return this.$$.ctx[22]}}function pc(s,e,t){const n=s.slice();return n[17]=e[t],n}function h_(s){let e,t,n=Te(s[3]),i=[];for(let l=0;lM(i[l],1,1,()=>{i[l]=null});return{c(){for(let l=0;l0?1:-1}return~(l=u(s))&&(o=f[l]=c[l](s)),{c(){e=A("div"),t=A("div"),W(n.$$.fragment),i=X(),r=A("div"),o&&o.c(),this.h()},l(d){e=C(d,"DIV",{class:!0});var p=P(e);t=C(p,"DIV",{class:!0,translate:!0});var g=P(t);K(n.$$.fragment,g),g.forEach(b),i=Z(p),r=C(p,"DIV",{class:!0});var m=P(r);o&&o.l(m),m.forEach(b),p.forEach(b),this.h()},h(){k(t,"class","editor notranslate svelte-62nfk2"),k(t,"translate","no"),k(r,"class","info svelte-62nfk2"),k(e,"class","editor-wrapper svelte-62nfk2")},m(d,p){x(d,e,p),y(e,t),q(n,t,null),y(e,i),y(e,r),~l&&f[l].m(r,null),a=!0},p(d,[p]){const g={};p&1&&(g.errorLoc=d[0]),p&2&&(g.autocomplete=d[1]),n.$set(g);let m=l;l=u(d),l===m?~l&&f[l].p(d,p):(o&&(we(),M(f[m],1,1,()=>{f[m]=null}),Se()),~l?(o=f[l],o?o.p(d,p):(o=f[l]=c[l](d),o.c()),S(o,1),o.m(r,null)):o=null)},i(d){a||(S(n.$$.fragment,d),S(o),a=!0)},o(d){M(n.$$.fragment,d),M(o),a=!1},d(d){d&&b(e),s[15](null),U(n),~l&&f[l].d()}}}function u_(s,e,t){let n,i,r,l,o,{errorLoc:a=null}=e,{autocomplete:h}=e;function c(){o==null||o.focus()}const{bundle:f,handle_change:u,module_editor:d,selected:p,bundling:g}=ai();Ce(s,f,w=>t(14,l=w)),Ce(s,d,w=>t(5,o=w)),Ce(s,p,w=>t(13,i=w)),Ce(s,g,w=>t(16,r=w));let m=null,_=[];async function v(){return await r,[...i&&(m==null?void 0:m.filename)===Be(i)?[{from:m.start.character,to:m.end.character,severity:"error",message:m.message}]:[],..._.filter(w=>i&&w.filename===Be(i)).map(w=>({from:w.start.character,to:w.end.character,severity:"warning",message:w.message}))]}function E(w){Xe[w?"unshift":"push"](()=>{o=w,d.set(o)})}return s.$$set=w=>{"errorLoc"in w&&t(0,a=w.errorLoc),"autocomplete"in w&&t(1,h=w.autocomplete)},s.$$.update=()=>{s.$$.dirty&8192&&t(4,n=(i==null?void 0:i.name)+"."+(i==null?void 0:i.type)),s.$$.dirty&16384&&l&&(t(2,m=l==null?void 0:l.error),t(3,_=(l==null?void 0:l.warnings)??[]))},[a,h,m,_,n,o,f,u,d,p,g,v,c,i,l,E]}class d_ extends _e{constructor(e){super(),ke(this,e,u_,f_,be,{errorLoc:0,autocomplete:1,focus:12})}get focus(){return this.$$.ctx[12]}}function p_(s){let e,t,n;return{c(){e=A("input"),this.h()},l(i){e=C(i,"INPUT",{type:!0,class:!0}),this.h()},h(){k(e,"type","checkbox"),k(e,"class","svelte-1ja98dc")},m(i,r){x(i,e,r),e.checked=s[0],t||(n=ue(e,"change",s[1]),t=!0)},p(i,[r]){r&1&&(e.checked=i[0])},i:de,o:de,d(i){i&&b(e),t=!1,n()}}}function g_(s,e,t){let{checked:n=!1}=e;function i(){n=this.checked,t(0,n)}return s.$$set=r=>{"checked"in r&&t(0,n=r.checked)},[n,i]}class mi extends _e{constructor(e){super(),ke(this,e,g_,p_,be,{checked:0})}}function m_(s){let e,t,n="input",i,r,l,o,a,h,c="output",f;function u(p){s[1](p)}let d={};return s[0]!==void 0&&(d.checked=s[0]),l=new mi({props:d}),Xe.push(()=>ln(l,"checked",u)),{c(){e=A("label"),t=A("span"),t.textContent=n,i=X(),r=A("span"),W(l.$$.fragment),a=X(),h=A("span"),h.textContent=c,this.h()},l(p){e=C(p,"LABEL",{class:!0});var g=P(e);t=C(g,"SPAN",{style:!0,class:!0,"data-svelte-h":!0}),Me(t)!=="svelte-iwcvz2"&&(t.textContent=n),i=Z(g),r=C(g,"SPAN",{style:!0,class:!0});var m=P(r);K(l.$$.fragment,m),m.forEach(b),a=Z(g),h=C(g,"SPAN",{class:!0,"data-svelte-h":!0}),Me(h)!=="svelte-4pjs0t"&&(h.textContent=c),g.forEach(b),this.h()},h(){it(t,"text-align","right"),k(t,"class","svelte-l6oyfu"),ne(t,"active",!s[0]),it(r,"display","grid"),it(r,"place-items","center"),k(r,"class","svelte-l6oyfu"),k(h,"class","svelte-l6oyfu"),ne(h,"active",s[0]),k(e,"class","input-output-toggle svelte-l6oyfu")},m(p,g){x(p,e,g),y(e,t),y(e,i),y(e,r),q(l,r,null),y(e,a),y(e,h),f=!0},p(p,[g]){(!f||g&1)&&ne(t,"active",!p[0]);const m={};!o&&g&1&&(o=!0,m.checked=p[0],rn(()=>o=!1)),l.$set(m),(!f||g&1)&&ne(h,"active",p[0])},i(p){f||(S(l.$$.fragment,p),f=!0)},o(p){M(l.$$.fragment,p),f=!1},d(p){p&&b(e),U(l)}}}function b_(s,e,t){let{checked:n=!1}=e;function i(r){n=r,t(0,n)}return s.$$set=r=>{"checked"in r&&t(0,n=r.checked)},[n,i]}class __ extends _e{constructor(e){super(),ke(this,e,b_,m_,be,{checked:0})}}function Ho(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}let Kn=Ho();function lp(s){Kn=s}const op=/[&<>"']/,k_=new RegExp(op.source,"g"),ap=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,v_=new RegExp(ap.source,"g"),y_={"&":"&","<":"<",">":">",'"':""","'":"'"},mc=s=>y_[s];function ot(s,e){if(e){if(op.test(s))return s.replace(k_,mc)}else if(ap.test(s))return s.replace(v_,mc);return s}const w_=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function hp(s){return s.replace(w_,(e,t)=>(t=t.toLowerCase(),t==="colon"?":":t.charAt(0)==="#"?t.charAt(1)==="x"?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""))}const S_=/(^|[^\[])\^/g;function $e(s,e){s=typeof s=="string"?s:s.source,e=e||"";const t={replace:(n,i)=>(i=i.source||i,i=i.replace(S_,"$1"),s=s.replace(n,i),t),getRegex:()=>new RegExp(s,e)};return t}const x_=/[^\w:]/g,A_=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function bc(s,e,t){if(s){let n;try{n=decodeURIComponent(hp(t)).replace(x_,"").toLowerCase()}catch{return null}if(n.indexOf("javascript:")===0||n.indexOf("vbscript:")===0||n.indexOf("data:")===0)return null}e&&!A_.test(t)&&(t=E_(e,t));try{t=encodeURI(t).replace(/%25/g,"%")}catch{return null}return t}const Fs={},C_=/^[^:]+:\/*[^/]*$/,M_=/^([^:]+:)[\s\S]*$/,T_=/^([^:]+:\/*[^/]*)[\s\S]*$/;function E_(s,e){Fs[" "+s]||(C_.test(s)?Fs[" "+s]=s+"/":Fs[" "+s]=er(s,"/",!0)),s=Fs[" "+s];const t=s.indexOf(":")===-1;return e.substring(0,2)==="//"?t?e:s.replace(M_,"$1")+e:e.charAt(0)==="/"?t?e:s.replace(T_,"$1")+e:s+e}const vr={exec:function(){}};function _c(s,e){const t=s.replace(/\|/g,(r,l,o)=>{let a=!1,h=l;for(;--h>=0&&o[h]==="\\";)a=!a;return a?"|":" |"}),n=t.split(/ \|/);let i=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),n.length>e)n.splice(e);else for(;n.length{let{doc:i}=t.state,r=Xi(e[0],0);if(r==9){let l=i.lineAt(n),o=t.state.tabSize,a=gs(l.text,o,n-l.from);return Re.replace({widget:new a0((o-a%o)*this.view.defaultCharacterWidth)})}return this.decorationCache[r]||(this.decorationCache[r]=Re.replace({widget:new o0(s,r)}))},boundary:s.replaceTabs?void 0:/[^]/})}update(s){let e=s.state.facet(Xs);s.startState.facet(Xs)!=e?(this.decorator=this.makeDecorator(e),this.decorations=this.decorator.createDeco(s.view)):this.decorations=this.decorator.updateDeco(s,this.decorations)}},{decorations:s=>s.decorations}))}const r0="•";function l0(s){return s>=32?r0:s==10?"␤":String.fromCharCode(9216+s)}class o0 extends Di{constructor(e,t){super(),this.options=e,this.code=t}eq(e){return e.code==this.code}toDOM(e){let t=l0(this.code),n=e.state.phrase("Control character")+" "+(n0[this.code]||"0x"+this.code.toString(16)),i=this.options.render&&this.options.render(this.code,n,t);if(i)return i;let r=document.createElement("span");return r.textContent=t,r.title=n,r.setAttribute("aria-label",n),r.className="cm-specialChar",r}ignoreEvent(){return!1}}class a0 extends Di{constructor(e){super(),this.width=e}eq(e){return e.width==this.width}toDOM(){let e=document.createElement("span");return e.textContent=" ",e.className="cm-tab",e.style.width=this.width+"px",e}ignoreEvent(){return!1}}function zw(){return c0}const h0=Re.line({class:"cm-activeLine"}),c0=ht.fromClass(class{constructor(s){this.decorations=this.getDeco(s)}update(s){(s.docChanged||s.selectionSet)&&(this.decorations=this.getDeco(s.view))}getDeco(s){let e=-1,t=[];for(let n of s.state.selection.ranges){let i=s.lineBlockAt(n.head);i.from>e&&(t.push(h0.range(i.from)),e=i.from)}return Re.set(t)}},{decorations:s=>s.decorations}),so=2e3;function f0(s,e,t){let n=Math.min(e.line,t.line),i=Math.max(e.line,t.line),r=[];if(e.off>so||t.off>so||e.col<0||t.col<0){let l=Math.min(e.off,t.off),o=Math.max(e.off,t.off);for(let a=n;a<=i;a++){let h=s.doc.line(a);h.length<=o&&r.push(F.range(h.from+l,h.to+o))}}else{let l=Math.min(e.col,t.col),o=Math.max(e.col,t.col);for(let a=n;a<=i;a++){let h=s.doc.line(a),c=Rl(h.text,l,s.tabSize,!0);if(c<0)r.push(F.cursor(h.to));else{let f=Rl(h.text,o,s.tabSize);r.push(F.range(h.from+c,h.from+f))}}}return r}function u0(s,e){let t=s.coordsAtPos(s.viewport.from);return t?Math.round(Math.abs((t.left-e)/s.defaultCharacterWidth)):-1}function vh(s,e){let t=s.posAtCoords({x:e.clientX,y:e.clientY},!1),n=s.state.doc.lineAt(t),i=t-n.from,r=i>so?-1:i==n.length?u0(s,e.clientX):gs(n.text,s.state.tabSize,t-n.from);return{line:n.number,col:r,off:i}}function d0(s,e){let t=vh(s,e),n=s.state.selection;return t?{update(i){if(i.docChanged){let r=i.changes.mapPos(i.startState.doc.line(t.line).from),l=i.state.doc.lineAt(r);t={line:l.number,col:t.col,off:Math.min(t.off,l.length)},n=n.map(i.changes)}},get(i,r,l){let o=vh(s,i);if(!o)return n;let a=f0(s.state,t,o);return a.length?l?F.create(a.concat(n.ranges)):F.create(a):n}}:null}function jw(s){let e=(s==null?void 0:s.eventFilter)||(t=>t.altKey&&t.button==0);return ce.mouseSelectionStyle.of((t,n)=>e(n)?d0(t,n):null)}const p0={Alt:[18,s=>!!s.altKey],Control:[17,s=>!!s.ctrlKey],Shift:[16,s=>!!s.shiftKey],Meta:[91,s=>!!s.metaKey]},g0={style:"cursor: crosshair"};function Vw(s={}){let[e,t]=p0[s.key||"Alt"],n=ht.fromClass(class{constructor(i){this.view=i,this.isDown=!1}set(i){this.isDown!=i&&(this.isDown=i,this.view.update([]))}},{eventHandlers:{keydown(i){this.set(i.keyCode==e||t(i))},keyup(i){(i.keyCode==e||!t(i))&&this.set(!1)},mousemove(i){this.set(t(i))}}});return[n,ce.contentAttributes.of(i=>{var r;return!((r=i.plugin(n))===null||r===void 0)&&r.isDown?g0:null})]}const Ls="-10000px";class nd{constructor(e,t,n){this.facet=t,this.createTooltipView=n,this.input=e.state.facet(t),this.tooltips=this.input.filter(i=>i),this.tooltipViews=this.tooltips.map(n)}update(e){var t;let n=e.state.facet(this.facet),i=n.filter(l=>l);if(n===this.input){for(let l of this.tooltipViews)l.update&&l.update(e);return!1}let r=[];for(let l=0;l{var e,t,n;return{position:se.ios?"absolute":((e=s.find(i=>i.position))===null||e===void 0?void 0:e.position)||"fixed",parent:((t=s.find(i=>i.parent))===null||t===void 0?void 0:t.parent)||null,tooltipSpace:((n=s.find(i=>i.tooltipSpace))===null||n===void 0?void 0:n.tooltipSpace)||m0}}}),yh=new WeakMap,id=ht.fromClass(class{constructor(s){this.view=s,this.inView=!0,this.lastTransaction=0,this.measureTimeout=-1;let e=s.state.facet(gl);this.position=e.position,this.parent=e.parent,this.classes=s.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.manager=new nd(s,sd,t=>this.createTooltip(t)),this.intersectionObserver=typeof IntersectionObserver=="function"?new IntersectionObserver(t=>{Date.now()>this.lastTransaction-50&&t.length>0&&t[t.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),s.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let s of this.manager.tooltipViews)this.intersectionObserver.observe(s.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(s){s.transactions.length&&(this.lastTransaction=Date.now());let e=this.manager.update(s);e&&this.observeIntersection();let t=e||s.geometryChanged,n=s.state.facet(gl);if(n.position!=this.position){this.position=n.position;for(let i of this.manager.tooltipViews)i.dom.style.position=this.position;t=!0}if(n.parent!=this.parent){this.parent&&this.container.remove(),this.parent=n.parent,this.createContainer();for(let i of this.manager.tooltipViews)this.container.appendChild(i.dom);t=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);t&&this.maybeMeasure()}createTooltip(s){let e=s.create(this.view);if(e.dom.classList.add("cm-tooltip"),s.arrow&&!e.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let t=document.createElement("div");t.className="cm-tooltip-arrow",e.dom.appendChild(t)}return e.dom.style.position=this.position,e.dom.style.top=Ls,this.container.appendChild(e.dom),e.mount&&e.mount(this.view),e}destroy(){var s,e;this.view.win.removeEventListener("resize",this.measureSoon);for(let t of this.manager.tooltipViews)t.dom.remove(),(s=t.destroy)===null||s===void 0||s.call(t);(e=this.intersectionObserver)===null||e===void 0||e.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let s=this.view.dom.getBoundingClientRect();return{editor:s,parent:this.parent?this.container.getBoundingClientRect():s,pos:this.manager.tooltips.map((e,t)=>{let n=this.manager.tooltipViews[t];return n.getCoords?n.getCoords(e.pos):this.view.coordsAtPos(e.pos)}),size:this.manager.tooltipViews.map(({dom:e})=>e.getBoundingClientRect()),space:this.view.state.facet(gl).tooltipSpace(this.view)}}writeMeasure(s){var e;let{editor:t,space:n}=s,i=[];for(let r=0;r=Math.min(t.bottom,n.bottom)||h.rightMath.min(t.right,n.right)+.1){a.style.top=Ls;continue}let f=l.arrow?o.dom.querySelector(".cm-tooltip-arrow"):null,u=f?7:0,d=c.right-c.left,p=(e=yh.get(o))!==null&&e!==void 0?e:c.bottom-c.top,g=o.offset||_0,m=this.view.textDirection==Ue.LTR,_=c.width>n.right-n.left?m?n.left:n.right-c.width:m?Math.min(h.left-(f?14:0)+g.x,n.right-d):Math.max(n.left,h.left-d+(f?14:0)-g.x),v=!!l.above;!l.strictSide&&(v?h.top-(c.bottom-c.top)-g.yn.bottom)&&v==n.bottom-h.bottom>h.top-n.top&&(v=!v);let E=(v?h.top-n.top:n.bottom-h.bottom)-u;if(E_&&D.topw&&(w=v?D.top-p-2-u:D.bottom+u+2);this.position=="absolute"?(a.style.top=w-s.parent.top+"px",a.style.left=_-s.parent.left+"px"):(a.style.top=w+"px",a.style.left=_+"px"),f&&(f.style.left=`${h.left+(m?g.x:-g.x)-(_+14-7)}px`),o.overlap!==!0&&i.push({left:_,top:w,right:B,bottom:w+p}),a.classList.toggle("cm-tooltip-above",v),a.classList.toggle("cm-tooltip-below",!v),o.positioned&&o.positioned(s.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let s of this.manager.tooltipViews)s.dom.style.top=Ls}},{eventHandlers:{scroll(){this.maybeMeasure()}}}),b0=ce.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:`${7*2}px`,position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),_0={x:0,y:0},sd=le.define({enables:[id,b0]}),cr=le.define();class Po{constructor(e){this.view=e,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new nd(e,cr,t=>this.createHostedView(t))}static create(e){return new Po(e)}createHostedView(e){let t=e.create(this.view);return t.dom.classList.add("cm-tooltip-section"),this.dom.appendChild(t.dom),this.mounted&&t.mount&&t.mount(this.view),t}mount(e){for(let t of this.manager.tooltipViews)t.mount&&t.mount(e);this.mounted=!0}positioned(e){for(let t of this.manager.tooltipViews)t.positioned&&t.positioned(e)}update(e){this.manager.update(e)}destroy(){var e;for(let t of this.manager.tooltipViews)(e=t.destroy)===null||e===void 0||e.call(t)}}const k0=sd.compute([cr],s=>{let e=s.facet(cr).filter(t=>t);return e.length===0?null:{pos:Math.min(...e.map(t=>t.pos)),end:Math.max(...e.filter(t=>t.end!=null).map(t=>t.end)),create:Po.create,above:e[0].above,arrow:e.some(t=>t.arrow)}});class v0{constructor(e,t,n,i,r){this.view=e,this.source=t,this.field=n,this.setHover=i,this.hoverTime=r,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:e.dom,time:0},this.checkHover=this.checkHover.bind(this),e.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),e.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(()=>this.startHover(),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active)return;let e=Date.now()-this.lastMove.time;en.bottom||e.xn.right+this.view.defaultCharacterWidth)return;let i=this.view.bidiSpans(this.view.state.doc.lineAt(t)).find(o=>o.from<=t&&o.to>=t),r=i&&i.dir==Ue.RTL?-1:1,l=this.source(this.view,t,e.x{this.pending==o&&(this.pending=null,a&&this.view.dispatch({effects:this.setHover.of(a)}))},a=>xn(this.view.state,a,"hover tooltip"))}else l&&this.view.dispatch({effects:this.setHover.of(l)})}mousemove(e){var t;this.lastMove={x:e.clientX,y:e.clientY,target:e.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let n=this.active;if(n&&!wh(this.lastMove.target)||this.pending){let{pos:i}=n||this.pending,r=(t=n==null?void 0:n.end)!==null&&t!==void 0?t:i;(i==r?this.view.posAtCoords(this.lastMove)!=i:!y0(this.view,i,r,e.clientX,e.clientY,6))&&(this.view.dispatch({effects:this.setHover.of(null)}),this.pending=null)}}mouseleave(e){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1,this.active&&!wh(e.relatedTarget)&&this.view.dispatch({effects:this.setHover.of(null)})}destroy(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}function wh(s){for(let e=s;e;e=e.parentNode)if(e.nodeType==1&&e.classList.contains("cm-tooltip"))return!0;return!1}function y0(s,e,t,n,i,r){let l=document.createRange(),o=s.domAtPos(e),a=s.domAtPos(t);l.setEnd(a.node,a.offset),l.setStart(o.node,o.offset);let h=l.getClientRects();l.detach();for(let c=0;ccr.from(i)});return[n,ht.define(i=>new v0(i,s,n,t,e.hoverTime||300)),k0]}function Fw(s,e){let t=s.plugin(id);if(!t)return null;let n=t.manager.tooltips.indexOf(e);return n<0?null:t.manager.tooltipViews[n]}const w0=Pe.define(),Sh=le.define({combine(s){let e,t;for(let n of s)e=e||n.topContainer,t=t||n.bottomContainer;return{topContainer:e,bottomContainer:t}}});function Ww(s,e){let t=s.plugin(rd),n=t?t.specs.indexOf(e):-1;return n>-1?t.panels[n]:null}const rd=ht.fromClass(class{constructor(s){this.input=s.state.facet(Ah),this.specs=this.input.filter(t=>t),this.panels=this.specs.map(t=>t(s));let e=s.state.facet(Sh);this.top=new Rs(s,!0,e.topContainer),this.bottom=new Rs(s,!1,e.bottomContainer),this.top.sync(this.panels.filter(t=>t.top)),this.bottom.sync(this.panels.filter(t=>!t.top));for(let t of this.panels)t.dom.classList.add("cm-panel"),t.mount&&t.mount()}update(s){let e=s.state.facet(Sh);this.top.container!=e.topContainer&&(this.top.sync([]),this.top=new Rs(s.view,!0,e.topContainer)),this.bottom.container!=e.bottomContainer&&(this.bottom.sync([]),this.bottom=new Rs(s.view,!1,e.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let t=s.state.facet(Ah);if(t!=this.input){let n=t.filter(a=>a),i=[],r=[],l=[],o=[];for(let a of n){let h=this.specs.indexOf(a),c;h<0?(c=a(s.view),o.push(c)):(c=this.panels[h],c.update&&c.update(s)),i.push(c),(c.top?r:l).push(c)}this.specs=n,this.panels=i,this.top.sync(r),this.bottom.sync(l);for(let a of o)a.dom.classList.add("cm-panel"),a.mount&&a.mount()}else for(let n of this.panels)n.update&&n.update(s)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:s=>ce.scrollMargins.of(e=>{let t=e.plugin(s);return t&&{top:t.top.scrollMargin(),bottom:t.bottom.scrollMargin()}})});class Rs{constructor(e,t,n){this.view=e,this.top=t,this.container=n,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(e){for(let t of this.panels)t.destroy&&e.indexOf(t)<0&&t.destroy();this.panels=e,this.syncDOM()}syncDOM(){if(this.panels.length==0){this.dom&&(this.dom.remove(),this.dom=void 0);return}if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let t=this.container||this.view.dom;t.insertBefore(this.dom,this.top?t.firstChild:null)}let e=this.dom.firstChild;for(let t of this.panels)if(t.dom.parentNode==this.dom){for(;e!=t.dom;)e=xh(e);e=e.nextSibling}else this.dom.insertBefore(t.dom,e);for(;e;)e=xh(e)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(!(!this.container||this.classes==this.view.themeClasses)){for(let e of this.classes.split(" "))e&&this.container.classList.remove(e);for(let e of(this.classes=this.view.themeClasses).split(" "))e&&this.container.classList.add(e)}}}function xh(s){let e=s.nextSibling;return s.remove(),e}const Ah=le.define({enables:rd});class En extends xi{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}}En.prototype.elementClass="";En.prototype.toDOM=void 0;En.prototype.mapMode=bt.TrackBefore;En.prototype.startSide=En.prototype.endSide=-1;En.prototype.point=!0;const Zs=le.define(),S0={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>Ne.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},es=le.define();function x0(s){return[ld(),es.of(Object.assign(Object.assign({},S0),s))]}const ro=le.define({combine:s=>s.some(e=>e)});function ld(s){let e=[A0];return s&&s.fixed===!1&&e.push(ro.of(!0)),e}const A0=ht.fromClass(class{constructor(s){this.view=s,this.prevViewport=s.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight+"px",this.gutters=s.state.facet(es).map(e=>new Mh(s,e));for(let e of this.gutters)this.dom.appendChild(e.dom);this.fixed=!s.state.facet(ro),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),s.scrollDOM.insertBefore(this.dom,s.contentDOM)}update(s){if(this.updateGutters(s)){let e=this.prevViewport,t=s.view.viewport,n=Math.min(e.to,t.to)-Math.max(e.from,t.from);this.syncGutters(n<(t.to-t.from)*.8)}s.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight+"px"),this.view.state.facet(ro)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=s.view.viewport}syncGutters(s){let e=this.dom.nextSibling;s&&this.dom.remove();let t=Ne.iter(this.view.state.facet(Zs),this.view.viewport.from),n=[],i=this.gutters.map(r=>new C0(r,this.view.viewport,-this.view.documentPadding.top));for(let r of this.view.viewportLineBlocks)if(n.length&&(n=[]),Array.isArray(r.type)){let l=!0;for(let o of r.type)if(o.type==Fe.Text&&l){lo(t,n,o.from);for(let a of i)a.line(this.view,o,n);l=!1}else if(o.widget)for(let a of i)a.widget(this.view,o)}else if(r.type==Fe.Text){lo(t,n,r.from);for(let l of i)l.line(this.view,r,n)}for(let r of i)r.finish();s&&this.view.scrollDOM.insertBefore(this.dom,e)}updateGutters(s){let e=s.startState.facet(es),t=s.state.facet(es),n=s.docChanged||s.heightChanged||s.viewportChanged||!Ne.eq(s.startState.facet(Zs),s.state.facet(Zs),s.view.viewport.from,s.view.viewport.to);if(e==t)for(let i of this.gutters)i.update(s)&&(n=!0);else{n=!0;let i=[];for(let r of t){let l=e.indexOf(r);l<0?i.push(new Mh(this.view,r)):(this.gutters[l].update(s),i.push(this.gutters[l]))}for(let r of this.gutters)r.dom.remove(),i.indexOf(r)<0&&r.destroy();for(let r of i)this.dom.appendChild(r.dom);this.gutters=i}return n}destroy(){for(let s of this.gutters)s.destroy();this.dom.remove()}},{provide:s=>ce.scrollMargins.of(e=>{let t=e.plugin(s);return!t||t.gutters.length==0||!t.fixed?null:e.textDirection==Ue.LTR?{left:t.dom.offsetWidth}:{right:t.dom.offsetWidth}})});function Ch(s){return Array.isArray(s)?s:[s]}function lo(s,e,t){for(;s.value&&s.from<=t;)s.from==t&&e.push(s.value),s.next()}class C0{constructor(e,t,n){this.gutter=e,this.height=n,this.i=0,this.cursor=Ne.iter(e.markers,t.from)}addElement(e,t,n){let{gutter:i}=this,r=t.top-this.height;if(this.i==i.elements.length){let l=new od(e,t.height,r,n);i.elements.push(l),i.dom.appendChild(l.dom)}else i.elements[this.i].update(e,t.height,r,n);this.height=t.bottom,this.i++}line(e,t,n){let i=[];lo(this.cursor,i,t.from),n.length&&(i=i.concat(n));let r=this.gutter.config.lineMarker(e,t,i);r&&i.unshift(r);let l=this.gutter;i.length==0&&!l.config.renderEmptyElements||this.addElement(e,t,i)}widget(e,t){let n=this.gutter.config.widgetMarker(e,t.widget,t);n&&this.addElement(e,t,[n])}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let t=e.elements.pop();e.dom.removeChild(t.dom),t.destroy()}}}class Mh{constructor(e,t){this.view=e,this.config=t,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let n in t.domEventHandlers)this.dom.addEventListener(n,i=>{let r=i.target,l;if(r!=this.dom&&this.dom.contains(r)){for(;r.parentNode!=this.dom;)r=r.parentNode;let a=r.getBoundingClientRect();l=(a.top+a.bottom)/2}else l=i.clientY;let o=e.lineBlockAtHeight(l-e.documentTop);t.domEventHandlers[n](e,o,i)&&i.preventDefault()});this.markers=Ch(t.markers(e)),t.initialSpacer&&(this.spacer=new od(e,0,0,[t.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(e){let t=this.markers;if(this.markers=Ch(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let i=this.config.updateSpacer(this.spacer.markers[0],e);i!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[i])}let n=e.view.viewport;return!Ne.eq(this.markers,t,n.from,n.to)||(this.config.lineMarkerChange?this.config.lineMarkerChange(e):!1)}destroy(){for(let e of this.elements)e.destroy()}}class od{constructor(e,t,n,i){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(e,t,n,i)}update(e,t,n,i){this.height!=t&&(this.dom.style.height=(this.height=t)+"px"),this.above!=n&&(this.dom.style.marginTop=(this.above=n)?n+"px":""),M0(this.markers,i)||this.setMarkers(e,i)}setMarkers(e,t){let n="cm-gutterElement",i=this.dom.firstChild;for(let r=0,l=0;;){let o=l,a=rr(o,a,h)||l(o,a,h):l}return n}})}});class ml extends En{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}}function bl(s,e){return s.state.facet(_i).formatNumber(e,s.state)}const E0=es.compute([_i],s=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers(e){return e.state.facet(T0)},lineMarker(e,t,n){return n.some(i=>i.toDOM)?null:new ml(bl(e,e.state.doc.lineAt(t.from).number))},widgetMarker:()=>null,lineMarkerChange:e=>e.startState.facet(_i)!=e.state.facet(_i),initialSpacer(e){return new ml(bl(e,Th(e.state.doc.lines)))},updateSpacer(e,t){let n=bl(t.view,Th(t.view.state.doc.lines));return n==e.number?e:new ml(n)},domEventHandlers:s.facet(_i).domEventHandlers}));function qw(s={}){return[_i.of(s),ld(),E0]}function Th(s){let e=9;for(;e{let e=[],t=-1;for(let n of s.selection.ranges){let i=s.doc.lineAt(n.head).from;i>t&&(t=i,e.push(D0.range(i)))}return Ne.of(e)});function Uw(){return O0}const P0=1024;let $0=0;class Lt{constructor(e,t){this.from=e,this.to=t}}class ve{constructor(e={}){this.id=$0++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof e!="function"&&(e=vt.match(e)),t=>{let n=e(t);return n===void 0?null:[this,n]}}}ve.closedBy=new ve({deserialize:s=>s.split(" ")});ve.openedBy=new ve({deserialize:s=>s.split(" ")});ve.group=new ve({deserialize:s=>s.split(" ")});ve.contextHash=new ve({perNode:!0});ve.lookAhead=new ve({perNode:!0});ve.mounted=new ve({perNode:!0});class B0{constructor(e,t,n){this.tree=e,this.overlay=t,this.parser=n}}const N0=Object.create(null);class vt{constructor(e,t,n,i=0){this.name=e,this.props=t,this.id=n,this.flags=i}static define(e){let t=e.props&&e.props.length?Object.create(null):N0,n=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(e.name==null?8:0),i=new vt(e.name||"",t,e.id,n);if(e.props){for(let r of e.props)if(Array.isArray(r)||(r=r(i)),r){if(r[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");t[r[0].id]=r[1]}}return i}prop(e){return this.props[e.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(e){if(typeof e=="string"){if(this.name==e)return!0;let t=this.prop(ve.group);return t?t.indexOf(e)>-1:!1}return this.id==e}static match(e){let t=Object.create(null);for(let n in e)for(let i of n.split(" "))t[i]=e[n];return n=>{for(let i=n.prop(ve.group),r=-1;r<(i?i.length:0);r++){let l=t[r<0?n.name:i[r]];if(l)return l}}}}vt.none=new vt("",Object.create(null),0,8);class ad{constructor(e){this.types=e;for(let t=0;t0;for(let a=this.cursor(l|He.IncludeAnonymous);;){let h=!1;if(a.from<=r&&a.to>=i&&(!o&&a.type.isAnonymous||t(a)!==!1)){if(a.firstChild())continue;h=!0}for(;h&&n&&(o||!a.type.isAnonymous)&&n(a),!a.nextSibling();){if(!a.parent())return;h=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let t in this.props)e.push([+t,this.props[t]]);return e}balance(e={}){return this.children.length<=8?this:No(vt.none,this.children,this.positions,0,this.children.length,0,this.length,(t,n,i)=>new Qe(this.type,t,n,i,this.propValues),e.makeTree||((t,n,i)=>new Qe(vt.none,t,n,i)))}static build(e){return R0(e)}}Qe.empty=new Qe(vt.none,[],[],0);class $o{constructor(e,t){this.buffer=e,this.index=t}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new $o(this.buffer,this.index)}}class hi{constructor(e,t,n){this.buffer=e,this.length=t,this.set=n}get type(){return vt.none}toString(){let e=[];for(let t=0;t0));a=l[a+3]);return o}slice(e,t,n){let i=this.buffer,r=new Uint16Array(t-e),l=0;for(let o=e,a=0;o=e&&te;case 1:return t<=e&&n>e;case 2:return n>e;case 4:return!0}}function cd(s,e){let t=s.childBefore(e);for(;t;){let n=t.lastChild;if(!n||n.to!=t.to)break;n.type.isError&&n.from==n.to?(s=t,t=n.prevSibling):t=n}return s}function Mi(s,e,t,n){for(var i;s.from==s.to||(t<1?s.from>=e:s.from>e)||(t>-1?s.to<=e:s.to0?o.length:-1;e!=h;e+=t){let c=o[e],f=a[e]+l.from;if(hd(i,n,f,f+c.length)){if(c instanceof hi){if(r&He.ExcludeBuffers)continue;let u=c.findChild(0,c.buffer.length,t,n-f,i);if(u>-1)return new hn(new L0(l,c,e,f),null,u)}else if(r&He.IncludeAnonymous||!c.type.isAnonymous||Bo(c)){let u;if(!(r&He.IgnoreMounts)&&c.props&&(u=c.prop(ve.mounted))&&!u.overlay)return new zt(u.tree,f,e,l);let d=new zt(c,f,e,l);return r&He.IncludeAnonymous||!d.type.isAnonymous?d:d.nextChild(t<0?c.children.length-1:0,t,n,i)}}}if(r&He.IncludeAnonymous||!l.type.isAnonymous||(l.index>=0?e=l.index+t:e=t<0?-1:l._parent._tree.children.length,l=l._parent,!l))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}enter(e,t,n=0){let i;if(!(n&He.IgnoreOverlays)&&(i=this._tree.prop(ve.mounted))&&i.overlay){let r=e-this.from;for(let{from:l,to:o}of i.overlay)if((t>0?l<=r:l=r:o>r))return new zt(i.tree,i.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,t,n)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}cursor(e=0){return new hs(this,e)}get tree(){return this._tree}toTree(){return this._tree}resolve(e,t=0){return Mi(this,e,t,!1)}resolveInner(e,t=0){return Mi(this,e,t,!0)}enterUnfinishedNodesBefore(e){return cd(this,e)}getChild(e,t=null,n=null){let i=fr(this,e,t,n);return i.length?i[0]:null}getChildren(e,t=null,n=null){return fr(this,e,t,n)}toString(){return this._tree.toString()}get node(){return this}matchContext(e){return ur(this,e)}}function fr(s,e,t,n){let i=s.cursor(),r=[];if(!i.firstChild())return r;if(t!=null){for(;!i.type.is(t);)if(!i.nextSibling())return r}for(;;){if(n!=null&&i.type.is(n))return r;if(i.type.is(e)&&r.push(i.node),!i.nextSibling())return n==null?r:[]}}function ur(s,e,t=e.length-1){for(let n=s.parent;t>=0;n=n.parent){if(!n)return!1;if(!n.type.isAnonymous){if(e[t]&&e[t]!=n.name)return!1;t--}}return!0}class L0{constructor(e,t,n,i){this.parent=e,this.buffer=t,this.index=n,this.start=i}}class hn{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,t,n){this.context=e,this._parent=t,this.index=n,this.type=e.buffer.set.types[e.buffer.buffer[n]]}child(e,t,n){let{buffer:i}=this.context,r=i.findChild(this.index+4,i.buffer[this.index+3],e,t-this.context.start,n);return r<0?null:new hn(this.context,this,r)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,t,n=0){if(n&He.ExcludeBuffers)return null;let{buffer:i}=this.context,r=i.findChild(this.index+4,i.buffer[this.index+3],t>0?1:-1,e-this.context.start,t);return r<0?null:new hn(this.context,this,r)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,t=e.buffer[this.index+3];return t<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new hn(this.context,this._parent,t):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,t=this._parent?this._parent.index+4:0;return this.index==t?this.externalSibling(-1):new hn(this.context,this._parent,e.findChild(t,this.index,-1,0,4))}cursor(e=0){return new hs(this,e)}get tree(){return null}toTree(){let e=[],t=[],{buffer:n}=this.context,i=this.index+4,r=n.buffer[this.index+3];if(r>i){let l=n.buffer[this.index+1];e.push(n.slice(i,r,l)),t.push(0)}return new Qe(this.type,e,t,this.to-this.from)}resolve(e,t=0){return Mi(this,e,t,!1)}resolveInner(e,t=0){return Mi(this,e,t,!0)}enterUnfinishedNodesBefore(e){return cd(this,e)}toString(){return this.context.buffer.childString(this.index)}getChild(e,t=null,n=null){let i=fr(this,e,t,n);return i.length?i[0]:null}getChildren(e,t=null,n=null){return fr(this,e,t,n)}get node(){return this}matchContext(e){return ur(this,e)}}class hs{get name(){return this.type.name}constructor(e,t=0){if(this.mode=t,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,e instanceof zt)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let n=e._parent;n;n=n._parent)this.stack.unshift(n.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return e?(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0):!1}yieldBuf(e,t){this.index=e;let{start:n,buffer:i}=this.buffer;return this.type=t||i.set.types[i.buffer[e]],this.from=n+i.buffer[e+1],this.to=n+i.buffer[e+2],!0}yield(e){return e?e instanceof zt?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,t,n){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,t,n,this.mode));let{buffer:i}=this.buffer,r=i.findChild(this.index+4,i.buffer[this.index+3],e,t-this.buffer.start,n);return r<0?!1:(this.stack.push(this.index),this.yieldBuf(r))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,t,n=this.mode){return this.buffer?n&He.ExcludeBuffers?!1:this.enterChild(1,e,t):this.yield(this._tree.enter(e,t,n))}parent(){if(!this.buffer)return this.yieldNode(this.mode&He.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&He.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode)):!1;let{buffer:t}=this.buffer,n=this.stack.length-1;if(e<0){let i=n<0?0:this.stack[n]+4;if(this.index!=i)return this.yieldBuf(t.findChild(i,this.index,-1,0,4))}else{let i=t.buffer[this.index+3];if(i<(n<0?t.buffer.length:t.buffer[this.stack[n]+3]))return this.yieldBuf(i)}return n<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let t,n,{buffer:i}=this;if(i){if(e>0){if(this.index-1)for(let r=t+e,l=e<0?-1:n._tree.children.length;r!=l;r+=e){let o=n._tree.children[r];if(this.mode&He.IncludeAnonymous||o instanceof hi||!o.type.isAnonymous||Bo(o))return!1}return!0}move(e,t){if(t&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,t=0){for(;(this.from==this.to||(t<1?this.from>=e:this.from>e)||(t>-1?this.to<=e:this.to=0;){for(let l=e;l;l=l._parent)if(l.index==i){if(i==this.index)return l;t=l,n=r+1;break e}i=this.stack[--r]}for(let i=n;i=0;r--){if(r<0)return ur(this.node,e,i);let l=n[t.buffer[this.stack[r]]];if(!l.isAnonymous){if(e[i]&&e[i]!=l.name)return!1;i--}}return!0}}function Bo(s){return s.children.some(e=>e instanceof hi||!e.type.isAnonymous||Bo(e))}function R0(s){var e;let{buffer:t,nodeSet:n,maxBufferLength:i=P0,reused:r=[],minRepeatType:l=n.types.length}=s,o=Array.isArray(t)?new $o(t,t.length):t,a=n.types,h=0,c=0;function f(w,B,D,$,G){let{id:L,start:V,end:H,size:O}=o,T=c;for(;O<0;)if(o.next(),O==-1){let z=r[L];D.push(z),$.push(V-w);return}else if(O==-3){h=L;return}else if(O==-4){c=L;return}else throw new RangeError(`Unrecognized record size: ${O}`);let Q=a[L],ie,J,fe=V-w;if(H-V<=i&&(J=g(o.pos-B,G))){let z=new Uint16Array(J.size-J.skip),oe=o.pos-J.size,ge=z.length;for(;o.pos>oe;)ge=m(J.start,z,ge);ie=new hi(z,H-J.start,n),fe=J.start-w}else{let z=o.pos-O;o.next();let oe=[],ge=[],We=L>=l?L:-1,Ee=0,$t=H;for(;o.pos>z;)We>=0&&o.id==We&&o.size>=0?(o.end<=$t-i&&(d(oe,ge,V,Ee,o.end,$t,We,T),Ee=oe.length,$t=o.end),o.next()):f(V,z,oe,ge,We);if(We>=0&&Ee>0&&Ee-1&&Ee>0){let ee=u(Q);ie=No(Q,oe,ge,0,oe.length,0,H-V,ee,ee)}else ie=p(Q,oe,ge,H-V,T-H)}D.push(ie),$.push(fe)}function u(w){return(B,D,$)=>{let G=0,L=B.length-1,V,H;if(L>=0&&(V=B[L])instanceof Qe){if(!L&&V.type==w&&V.length==$)return V;(H=V.prop(ve.lookAhead))&&(G=D[L]+V.length+H)}return p(w,B,D,$,G)}}function d(w,B,D,$,G,L,V,H){let O=[],T=[];for(;w.length>$;)O.push(w.pop()),T.push(B.pop()+D-G);w.push(p(n.types[V],O,T,L-G,H-L)),B.push(G-D)}function p(w,B,D,$,G=0,L){if(h){let V=[ve.contextHash,h];L=L?[V].concat(L):[V]}if(G>25){let V=[ve.lookAhead,G];L=L?[V].concat(L):[V]}return new Qe(w,B,D,$,L)}function g(w,B){let D=o.fork(),$=0,G=0,L=0,V=D.end-i,H={size:0,start:0,skip:0};e:for(let O=D.pos-w;D.pos>O;){let T=D.size;if(D.id==B&&T>=0){H.size=$,H.start=G,H.skip=L,L+=4,$+=4,D.next();continue}let Q=D.pos-T;if(T<0||Q=l?4:0,J=D.start;for(D.next();D.pos>Q;){if(D.size<0)if(D.size==-3)ie+=4;else break e;else D.id>=l&&(ie+=4);D.next()}G=J,$+=T,L+=ie}return(B<0||$==w)&&(H.size=$,H.start=G,H.skip=L),H.size>4?H:void 0}function m(w,B,D){let{id:$,start:G,end:L,size:V}=o;if(o.next(),V>=0&&$4){let O=o.pos-(V-4);for(;o.pos>O;)D=m(w,B,D)}B[--D]=H,B[--D]=L-w,B[--D]=G-w,B[--D]=$}else V==-3?h=$:V==-4&&(c=$);return D}let _=[],v=[];for(;o.pos>0;)f(s.start||0,s.bufferStart||0,_,v,-1);let E=(e=s.length)!==null&&e!==void 0?e:_.length?v[0]+_[0].length:0;return new Qe(a[s.topID],_.reverse(),v.reverse(),E)}const Dh=new WeakMap;function Qs(s,e){if(!s.isAnonymous||e instanceof hi||e.type!=s)return 1;let t=Dh.get(e);if(t==null){t=1;for(let n of e.children){if(n.type!=s||!(n instanceof Qe)){t=1;break}t+=Qs(s,n)}Dh.set(e,t)}return t}function No(s,e,t,n,i,r,l,o,a){let h=0;for(let p=n;p=c)break;D+=$}if(E==w+1){if(D>c){let $=p[w];d($.children,$.positions,0,$.children.length,g[w]+v);continue}f.push(p[w])}else{let $=g[E-1]+p[E-1].length-B;f.push(No(s,p,g,w,E,B,$,null,a))}u.push(B+v-r)}}return d(e,t,n,i,0),(o||a)(f,u,l)}class Kw{constructor(){this.map=new WeakMap}setBuffer(e,t,n){let i=this.map.get(e);i||this.map.set(e,i=new Map),i.set(t,n)}getBuffer(e,t){let n=this.map.get(e);return n&&n.get(t)}set(e,t){e instanceof hn?this.setBuffer(e.context.buffer,e.index,t):e instanceof zt&&this.map.set(e.tree,t)}get(e){return e instanceof hn?this.getBuffer(e.context.buffer,e.index):e instanceof zt?this.map.get(e.tree):void 0}cursorSet(e,t){e.buffer?this.setBuffer(e.buffer.buffer,e.index,t):this.map.set(e.tree,t)}cursorGet(e){return e.buffer?this.getBuffer(e.buffer.buffer,e.index):this.map.get(e.tree)}}class An{constructor(e,t,n,i,r=!1,l=!1){this.from=e,this.to=t,this.tree=n,this.offset=i,this.open=(r?1:0)|(l?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(e,t=[],n=!1){let i=[new An(0,e.length,e,0,!1,n)];for(let r of t)r.to>e.length&&i.push(r);return i}static applyChanges(e,t,n=128){if(!t.length)return e;let i=[],r=1,l=e.length?e[0]:null;for(let o=0,a=0,h=0;;o++){let c=o=n)for(;l&&l.from=u.from||f<=u.to||h){let d=Math.max(u.from,a)-h,p=Math.min(u.to,f)-h;u=d>=p?null:new An(d,p,u.tree,u.offset+h,o>0,!!c)}if(u&&i.push(u),l.to>f)break;l=rnew Lt(i.from,i.to)):[new Lt(0,0)]:[new Lt(0,e.length)],this.createParse(e,t||[],n)}parse(e,t,n){let i=this.startParse(e,t,n);for(;;){let r=i.advance();if(r)return r}}};class z0{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,t){return this.string.slice(e,t)}}function Gw(s){return(e,t,n,i)=>new V0(e,s,t,n,i)}class Oh{constructor(e,t,n,i,r){if(this.parser=e,this.parse=t,this.overlay=n,this.target=i,this.ranges=r,!r.length||r.some(l=>l.from>=l.to))throw new RangeError("Invalid inner parse ranges given: "+JSON.stringify(r))}}class j0{constructor(e,t,n,i,r,l,o){this.parser=e,this.predicate=t,this.mounts=n,this.index=i,this.start=r,this.target=l,this.prev=o,this.depth=0,this.ranges=[]}}const oo=new ve({perNode:!0});class V0{constructor(e,t,n,i,r){this.nest=t,this.input=n,this.fragments=i,this.ranges=r,this.inner=[],this.innerDone=0,this.baseTree=null,this.stoppedAt=null,this.baseParse=e}advance(){if(this.baseParse){let n=this.baseParse.advance();if(!n)return null;if(this.baseParse=null,this.baseTree=n,this.startInner(),this.stoppedAt!=null)for(let i of this.inner)i.parse.stopAt(this.stoppedAt)}if(this.innerDone==this.inner.length){let n=this.baseTree;return this.stoppedAt!=null&&(n=new Qe(n.type,n.children,n.positions,n.length,n.propValues.concat([[oo,this.stoppedAt]]))),n}let e=this.inner[this.innerDone],t=e.parse.advance();if(t){this.innerDone++;let n=Object.assign(Object.create(null),e.target.props);n[ve.mounted.id]=new B0(t,e.overlay,e.parser),e.target.props=n}return null}get parsedPos(){if(this.baseParse)return 0;let e=this.input.length;for(let t=this.innerDone;tc.frag.from<=i.from&&c.frag.to>=i.to&&c.mount.overlay);if(h)for(let c of h.mount.overlay){let f=c.from+h.pos,u=c.to+h.pos;f>=i.from&&u<=i.to&&!t.ranges.some(d=>d.fromf)&&t.ranges.push({from:f,to:u})}}o=!1}else if(n&&(l=H0(n.ranges,i.from,i.to)))o=l!=2;else if(!i.type.isAnonymous&&i.fromnew Lt(f.from-i.from,f.to-i.from)):null,i.tree,c)),r.overlay?c.length&&(n={ranges:c,depth:0,prev:n}):o=!1}}else t&&(a=t.predicate(i))&&(a===!0&&(a=new Lt(i.from,i.to)),a.fromnew Lt(c.from-t.start,c.to-t.start)),t.target,h)),t=t.prev}n&&!--n.depth&&(n=n.prev)}}}}function H0(s,e,t){for(let n of s){if(n.from>=t)break;if(n.to>e)return n.from<=e&&n.to>=t?2:1}return 0}function Ph(s,e,t,n,i,r){if(e=e.to);n++);let l=i.children[n],o=l.buffer;function a(h,c,f,u,d){let p=h;for(;o[p+2]+r<=e.from;)p=o[p+3];let g=[],m=[];Ph(l,h,p,g,m,u);let _=o[p+1],v=o[p+2],E=_+r==e.from&&v+r==e.to&&o[p]==e.type.id;return g.push(E?e.toTree():a(p+4,o[p+3],l.set.types[o[p]],_,v-_)),m.push(_-u),Ph(l,o[p+3],c,g,m,u),new Qe(f,g,m,d)}i.children[n]=a(0,o.length,vt.none,0,l.length);for(let h=0;h<=t;h++)s.childAfter(e.from)}class $h{constructor(e,t){this.offset=t,this.done=!1,this.cursor=e.cursor(He.IncludeAnonymous|He.IgnoreMounts)}moveTo(e){let{cursor:t}=this,n=e-this.offset;for(;!this.done&&t.from=e&&t.enter(n,1,He.IgnoreOverlays|He.ExcludeBuffers)||t.next(!1)||(this.done=!0)}hasNode(e){if(this.moveTo(e.from),!this.done&&this.cursor.from+this.offset==e.from&&this.cursor.tree)for(let t=this.cursor.tree;;){if(t==e.tree)return!0;if(t.children.length&&t.positions[0]==0&&t.children[0]instanceof Qe)t=t.children[0];else break}return!1}}class W0{constructor(e){var t;if(this.fragments=e,this.curTo=0,this.fragI=0,e.length){let n=this.curFrag=e[0];this.curTo=(t=n.tree.prop(oo))!==null&&t!==void 0?t:n.to,this.inner=new $h(n.tree,-n.offset)}else this.curFrag=this.inner=null}hasNode(e){for(;this.curFrag&&e.from>=this.curTo;)this.nextFrag();return this.curFrag&&this.curFrag.from<=e.from&&this.curTo>=e.to&&this.inner.hasNode(e)}nextFrag(){var e;if(this.fragI++,this.fragI==this.fragments.length)this.curFrag=this.inner=null;else{let t=this.curFrag=this.fragments[this.fragI];this.curTo=(e=t.tree.prop(oo))!==null&&e!==void 0?e:t.to,this.inner=new $h(t.tree,-t.offset)}}findMounts(e,t){var n;let i=[];if(this.inner){this.inner.cursor.moveTo(e,1);for(let r=this.inner.cursor.node;r;r=r.parent){let l=(n=r.tree)===null||n===void 0?void 0:n.prop(ve.mounted);if(l&&l.parser==t)for(let o=this.fragI;o=r.to)break;a.tree==this.curFrag.tree&&i.push({frag:a,pos:r.from-a.offset,mount:l})}}}return i}}function Bh(s,e){let t=null,n=e;for(let i=1,r=0;i=o)break;a.to<=l||(t||(n=t=e.slice()),a.fromo&&t.splice(r+1,0,new Lt(o,a.to))):a.to>o?t[r--]=new Lt(o,a.to):t.splice(r--,1))}}return n}function q0(s,e,t,n){let i=0,r=0,l=!1,o=!1,a=-1e9,h=[];for(;;){let c=i==s.length?1e9:l?s[i].to:s[i].from,f=r==e.length?1e9:o?e[r].to:e[r].from;if(l!=o){let u=Math.max(a,t),d=Math.min(c,f,n);unew Lt(u.from+n,u.to+n)),f=q0(e,c,a,h);for(let u=0,d=a;;u++){let p=u==f.length,g=p?h:f[u].from;if(g>d&&t.push(new An(d,g,i.tree,-l,r.from>=d||r.openStart,r.to<=g||r.openEnd)),p)break;d=f[u].to}}else t.push(new An(a,h,i.tree,-l,r.from>=l||r.openStart,r.to<=o||r.openEnd))}return t}let U0=0;class sn{constructor(e,t,n){this.set=e,this.base=t,this.modified=n,this.id=U0++}static define(e){if(e!=null&&e.base)throw new Error("Can not derive from a modified tag");let t=new sn([],null,[]);if(t.set.push(t),e)for(let n of e.set)t.set.push(n);return t}static defineModifier(){let e=new dr;return t=>t.modified.indexOf(e)>-1?t:dr.get(t.base||t,t.modified.concat(e).sort((n,i)=>n.id-i.id))}}let K0=0;class dr{constructor(){this.instances=[],this.id=K0++}static get(e,t){if(!t.length)return e;let n=t[0].instances.find(o=>o.base==e&&J0(t,o.modified));if(n)return n;let i=[],r=new sn(i,e,t);for(let o of t)o.instances.push(r);let l=G0(t);for(let o of e.set)if(!o.modified.length)for(let a of l)i.push(dr.get(o,a));return r}}function J0(s,e){return s.length==e.length&&s.every((t,n)=>t==e[n])}function G0(s){let e=[[]];for(let t=0;tn.length-t.length)}function Y0(s){let e=Object.create(null);for(let t in s){let n=s[t];Array.isArray(n)||(n=[n]);for(let i of t.split(" "))if(i){let r=[],l=2,o=i;for(let f=0;;){if(o=="..."&&f>0&&f+3==i.length){l=1;break}let u=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(o);if(!u)throw new RangeError("Invalid path: "+i);if(r.push(u[0]=="*"?"":u[0][0]=='"'?JSON.parse(u[0]):u[0]),f+=u[0].length,f==i.length)break;let d=i[f++];if(f==i.length&&d=="!"){l=0;break}if(d!="/")throw new RangeError("Invalid path: "+i);o=i.slice(f)}let a=r.length-1,h=r[a];if(!h)throw new RangeError("Invalid path: "+i);let c=new pr(n,l,a>0?r.slice(0,a):null);e[h]=c.sort(e[h])}}return fd.add(e)}const fd=new ve;class pr{constructor(e,t,n,i){this.tags=e,this.mode=t,this.context=n,this.next=i}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(e){return!e||e.depth{let l=i;for(let o of r)for(let a of o.set){let h=t[a.id];if(h){l=l?l+" "+h:h;break}}return l},scope:n}}function X0(s,e){let t=null;for(let n of s){let i=n.style(e);i&&(t=t?t+" "+i:i)}return t}function Z0(s,e,t,n=0,i=s.length){let r=new Q0(n,Array.isArray(e)?e:[e],t);r.highlightRange(s.cursor(),n,i,"",r.highlighters),r.flush(i)}class Q0{constructor(e,t,n){this.at=e,this.highlighters=t,this.span=n,this.class=""}startSpan(e,t){t!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=t)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,t,n,i,r){let{type:l,from:o,to:a}=e;if(o>=n||a<=t)return;l.isTop&&(r=this.highlighters.filter(d=>!d.scope||d.scope(l)));let h=i,c=e1(e)||pr.empty,f=X0(r,c.tags);if(f&&(h&&(h+=" "),h+=f,c.mode==1&&(i+=(i?" ":"")+f)),this.startSpan(Math.max(t,o),h),c.opaque)return;let u=e.tree&&e.tree.prop(ve.mounted);if(u&&u.overlay){let d=e.node.enter(u.overlay[0].from+o,1),p=this.highlighters.filter(m=>!m.scope||m.scope(u.tree.type)),g=e.firstChild();for(let m=0,_=o;;m++){let v=m=E||!e.nextSibling())););if(!v||E>n)break;_=v.to+o,_>t&&(this.highlightRange(d.cursor(),Math.max(t,v.from+o),Math.min(n,_),"",p),this.startSpan(Math.min(n,_),h))}g&&e.parent()}else if(e.firstChild()){u&&(i="");do if(!(e.to<=t)){if(e.from>=n)break;this.highlightRange(e,t,n,i,r),this.startSpan(Math.min(n,e.to),h)}while(e.nextSibling());e.parent()}}}function e1(s){let e=s.type.prop(fd);for(;e&&e.context&&!s.matchContext(e.context);)e=e.next;return e||null}const Y=sn.define,zs=Y(),Nn=Y(),Lh=Y(Nn),Rh=Y(Nn),Ln=Y(),js=Y(Ln),_l=Y(Ln),nn=Y(),Zn=Y(nn),en=Y(),tn=Y(),ao=Y(),Fi=Y(ao),Vs=Y(),N={comment:zs,lineComment:Y(zs),blockComment:Y(zs),docComment:Y(zs),name:Nn,variableName:Y(Nn),typeName:Lh,tagName:Y(Lh),propertyName:Rh,attributeName:Y(Rh),className:Y(Nn),labelName:Y(Nn),namespace:Y(Nn),macroName:Y(Nn),literal:Ln,string:js,docString:Y(js),character:Y(js),attributeValue:Y(js),number:_l,integer:Y(_l),float:Y(_l),bool:Y(Ln),regexp:Y(Ln),escape:Y(Ln),color:Y(Ln),url:Y(Ln),keyword:en,self:Y(en),null:Y(en),atom:Y(en),unit:Y(en),modifier:Y(en),operatorKeyword:Y(en),controlKeyword:Y(en),definitionKeyword:Y(en),moduleKeyword:Y(en),operator:tn,derefOperator:Y(tn),arithmeticOperator:Y(tn),logicOperator:Y(tn),bitwiseOperator:Y(tn),compareOperator:Y(tn),updateOperator:Y(tn),definitionOperator:Y(tn),typeOperator:Y(tn),controlOperator:Y(tn),punctuation:ao,separator:Y(ao),bracket:Fi,angleBracket:Y(Fi),squareBracket:Y(Fi),paren:Y(Fi),brace:Y(Fi),content:nn,heading:Zn,heading1:Y(Zn),heading2:Y(Zn),heading3:Y(Zn),heading4:Y(Zn),heading5:Y(Zn),heading6:Y(Zn),contentSeparator:Y(nn),list:Y(nn),quote:Y(nn),emphasis:Y(nn),strong:Y(nn),link:Y(nn),monospace:Y(nn),strikethrough:Y(nn),inserted:Y(),deleted:Y(),changed:Y(),invalid:Y(),meta:Vs,documentMeta:Y(Vs),annotation:Y(Vs),processingInstruction:Y(Vs),definition:sn.defineModifier(),constant:sn.defineModifier(),function:sn.defineModifier(),standard:sn.defineModifier(),local:sn.defineModifier(),special:sn.defineModifier()};ud([{tag:N.link,class:"tok-link"},{tag:N.heading,class:"tok-heading"},{tag:N.emphasis,class:"tok-emphasis"},{tag:N.strong,class:"tok-strong"},{tag:N.keyword,class:"tok-keyword"},{tag:N.atom,class:"tok-atom"},{tag:N.bool,class:"tok-bool"},{tag:N.url,class:"tok-url"},{tag:N.labelName,class:"tok-labelName"},{tag:N.inserted,class:"tok-inserted"},{tag:N.deleted,class:"tok-deleted"},{tag:N.literal,class:"tok-literal"},{tag:N.string,class:"tok-string"},{tag:N.number,class:"tok-number"},{tag:[N.regexp,N.escape,N.special(N.string)],class:"tok-string2"},{tag:N.variableName,class:"tok-variableName"},{tag:N.local(N.variableName),class:"tok-variableName tok-local"},{tag:N.definition(N.variableName),class:"tok-variableName tok-definition"},{tag:N.special(N.variableName),class:"tok-variableName2"},{tag:N.definition(N.propertyName),class:"tok-propertyName tok-definition"},{tag:N.typeName,class:"tok-typeName"},{tag:N.namespace,class:"tok-namespace"},{tag:N.className,class:"tok-className"},{tag:N.macroName,class:"tok-macroName"},{tag:N.propertyName,class:"tok-propertyName"},{tag:N.operator,class:"tok-operator"},{tag:N.comment,class:"tok-comment"},{tag:N.meta,class:"tok-meta"},{tag:N.invalid,class:"tok-invalid"},{tag:N.punctuation,class:"tok-punctuation"}]);var kl;const ki=new ve;function t1(s){return le.define({combine:s?e=>e.concat(s):void 0})}const n1=new ve;class Ut{constructor(e,t,n=[],i=""){this.data=e,this.name=i,ye.prototype.hasOwnProperty("tree")||Object.defineProperty(ye.prototype,"tree",{get(){return Ot(this)}}),this.parser=t,this.extension=[Wn.of(this),ye.languageData.of((r,l,o)=>{let a=Ih(r,l,o),h=a.type.prop(ki);if(!h)return[];let c=r.facet(h),f=a.type.prop(n1);if(f){let u=a.resolve(l-a.from,o);for(let d of f)if(d.test(u,r)){let p=r.facet(d.facet);return d.type=="replace"?p:p.concat(c)}}return c})].concat(n)}isActiveAt(e,t,n=-1){return Ih(e,t,n).type.prop(ki)==this.data}findRegions(e){let t=e.facet(Wn);if((t==null?void 0:t.data)==this.data)return[{from:0,to:e.doc.length}];if(!t||!t.allowsNesting)return[];let n=[],i=(r,l)=>{if(r.prop(ki)==this.data){n.push({from:l,to:l+r.length});return}let o=r.prop(ve.mounted);if(o){if(o.tree.prop(ki)==this.data){if(o.overlay)for(let a of o.overlay)n.push({from:a.from+l,to:a.to+l});else n.push({from:l,to:l+r.length});return}else if(o.overlay){let a=n.length;if(i(o.tree,o.overlay[0].from+l),n.length>a)return}}for(let a=0;an.isTop?t:void 0)]}),e.name)}configure(e,t){return new ho(this.data,this.parser.configure(e),t||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function Ot(s){let e=s.field(Ut.state,!1);return e?e.tree:Qe.empty}class i1{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,t){let n=this.cursorPos-this.string.length;return e=this.cursorPos?this.doc.sliceString(e,t):this.string.slice(e-n,t-n)}}let Wi=null;class gr{constructor(e,t,n=[],i,r,l,o,a){this.parser=e,this.state=t,this.fragments=n,this.tree=i,this.treeLen=r,this.viewport=l,this.skipped=o,this.scheduleOn=a,this.parse=null,this.tempSkipped=[]}static create(e,t,n){return new gr(e,t,[],Qe.empty,0,n,[],null)}startParse(){return this.parser.startParse(new i1(this.state.doc),this.fragments)}work(e,t){return t!=null&&t>=this.state.doc.length&&(t=void 0),this.tree!=Qe.empty&&this.isDone(t??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var n;if(typeof e=="number"){let i=Date.now()+e;e=()=>Date.now()>i}for(this.parse||(this.parse=this.startParse()),t!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>t)&&t=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext(()=>{for(;!(t=this.parse.advance()););}),this.treeLen=e,this.tree=t,this.fragments=this.withoutTempSkipped(An.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let t=Wi;Wi=this;try{return e()}finally{Wi=t}}withoutTempSkipped(e){for(let t;t=this.tempSkipped.pop();)e=zh(e,t.from,t.to);return e}changes(e,t){let{fragments:n,tree:i,treeLen:r,viewport:l,skipped:o}=this;if(this.takeTree(),!e.empty){let a=[];if(e.iterChangedRanges((h,c,f,u)=>a.push({fromA:h,toA:c,fromB:f,toB:u})),n=An.applyChanges(n,a),i=Qe.empty,r=0,l={from:e.mapPos(l.from,-1),to:e.mapPos(l.to,1)},this.skipped.length){o=[];for(let h of this.skipped){let c=e.mapPos(h.from,1),f=e.mapPos(h.to,-1);ce.from&&(this.fragments=zh(this.fragments,i,r),this.skipped.splice(n--,1))}return this.skipped.length>=t?!1:(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,t){this.skipped.push({from:e,to:t})}static getSkippingParser(e){return new class extends I0{createParse(t,n,i){let r=i[0].from,l=i[i.length-1].to;return{parsedPos:r,advance(){let a=Wi;if(a){for(let h of i)a.tempSkipped.push(h);e&&(a.scheduleOn=a.scheduleOn?Promise.all([a.scheduleOn,e]):e)}return this.parsedPos=l,new Qe(vt.none,[],[],l-r)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let t=this.fragments;return this.treeLen>=e&&t.length&&t[0].from==0&&t[0].to>=e}static get(){return Wi}}function zh(s,e,t){return An.applyChanges(s,[{fromA:e,toA:t,fromB:e,toB:t}])}class Ti{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let t=this.context.changes(e.changes,e.state),n=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),t.viewport.to);return t.work(20,n)||t.takeTree(),new Ti(t)}static init(e){let t=Math.min(3e3,e.doc.length),n=gr.create(e.facet(Wn).parser,e,{from:0,to:t});return n.work(20,t)||n.takeTree(),new Ti(n)}}Ut.state=Pt.define({create:Ti.init,update(s,e){for(let t of e.effects)if(t.is(Ut.setState))return t.value;return e.startState.facet(Wn)!=e.state.facet(Wn)?Ti.init(e.state):s.apply(e)}});let dd=s=>{let e=setTimeout(()=>s(),500);return()=>clearTimeout(e)};typeof requestIdleCallback<"u"&&(dd=s=>{let e=-1,t=setTimeout(()=>{e=requestIdleCallback(s,{timeout:500-100})},100);return()=>e<0?clearTimeout(t):cancelIdleCallback(e)});const vl=typeof navigator<"u"&&(!((kl=navigator.scheduling)===null||kl===void 0)&&kl.isInputPending)?()=>navigator.scheduling.isInputPending():null,s1=ht.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let t=this.view.state.field(Ut.state).context;(t.updateViewport(e.view.viewport)||this.view.viewport.to>t.treeLen)&&this.scheduleWork(),e.docChanged&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(t)}scheduleWork(){if(this.working)return;let{state:e}=this.view,t=e.field(Ut.state);(t.tree!=t.context.tree||!t.context.isDone(e.doc.length))&&(this.working=dd(this.work))}work(e){this.working=null;let t=Date.now();if(this.chunkEndi+1e3,a=r.context.work(()=>vl&&vl()||Date.now()>l,i+(o?0:1e5));this.chunkBudget-=Date.now()-t,(a||this.chunkBudget<=0)&&(r.context.takeTree(),this.view.dispatch({effects:Ut.setState.of(new Ti(r.context))})),this.chunkBudget>0&&!(a&&!o)&&this.scheduleWork(),this.checkAsyncSchedule(r.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(t=>xn(this.view.state,t)).then(()=>this.workScheduled--),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),Wn=le.define({combine(s){return s.length?s[0]:null},enables:s=>[Ut.state,s1,ce.contentAttributes.compute([s],e=>{let t=e.facet(s);return t&&t.name?{"data-language":t.name}:{}})]});class Xw{constructor(e,t=[]){this.language=e,this.support=t,this.extension=[e,t]}}class pd{constructor(e,t,n,i,r,l=void 0){this.name=e,this.alias=t,this.extensions=n,this.filename=i,this.loadFunc=r,this.support=l,this.loading=null}load(){return this.loading||(this.loading=this.loadFunc().then(e=>this.support=e,e=>{throw this.loading=null,e}))}static of(e){let{load:t,support:n}=e;if(!t){if(!n)throw new RangeError("Must pass either 'load' or 'support' to LanguageDescription.of");t=()=>Promise.resolve(n)}return new pd(e.name,(e.alias||[]).concat(e.name).map(i=>i.toLowerCase()),e.extensions||[],e.filename,t,n)}static matchFilename(e,t){for(let i of e)if(i.filename&&i.filename.test(t))return i;let n=/\.([^.]+)$/.exec(t);if(n){for(let i of e)if(i.extensions.indexOf(n[1])>-1)return i}return null}static matchLanguageName(e,t,n=!0){t=t.toLowerCase();for(let i of e)if(i.alias.some(r=>r==t))return i;if(n)for(let i of e)for(let r of i.alias){let l=t.indexOf(r);if(l>-1&&(r.length>2||!/\w/.test(t[l-1])&&!/\w/.test(t[l+r.length])))return i}return null}}const r1=le.define(),Pr=le.define({combine:s=>{if(!s.length)return" ";let e=s[0];if(!e||/\S/.test(e)||Array.from(e).some(t=>t!=e[0]))throw new Error("Invalid indent unit: "+JSON.stringify(s[0]));return e}});function mr(s){let e=s.facet(Pr);return e.charCodeAt(0)==9?s.tabSize*e.length:e.length}function cs(s,e){let t="",n=s.tabSize,i=s.facet(Pr)[0];if(i==" "){for(;e>=n;)t+=" ",e-=n;i=" "}for(let r=0;r=n.from&&i<=n.to?r&&i==e?{text:"",from:e}:(t<0?i-1&&(r+=l-this.countColumn(n,n.search(/\S|$/))),r}countColumn(e,t=e.length){return gs(e,this.state.tabSize,t)}lineIndent(e,t=1){let{text:n,from:i}=this.lineAt(e,t),r=this.options.overrideIndentation;if(r){let l=r(i);if(l>-1)return l}return this.countColumn(n,n.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const l1=new ve;function o1(s,e,t){return gd(e.resolveInner(t).enterUnfinishedNodesBefore(t),t,s)}function a1(s){return s.pos==s.options.simulateBreak&&s.options.simulateDoubleBreak}function h1(s){let e=s.type.prop(l1);if(e)return e;let t=s.firstChild,n;if(t&&(n=t.type.prop(ve.closedBy))){let i=s.lastChild,r=i&&n.indexOf(i.name)>-1;return l=>md(l,!0,1,void 0,r&&!a1(l)?i.from:void 0)}return s.parent==null?c1:null}function gd(s,e,t){for(;s;s=s.parent){let n=h1(s);if(n)return n(Ro.create(t,e,s))}return null}function c1(){return 0}class Ro extends $r{constructor(e,t,n){super(e.state,e.options),this.base=e,this.pos=t,this.node=n}static create(e,t,n){return new Ro(e,t,n)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(e){let t=this.state.doc.lineAt(e.from);for(;;){let n=e.resolve(t.from);for(;n.parent&&n.parent.from==n.from;)n=n.parent;if(f1(n,e))break;t=this.state.doc.lineAt(n.from)}return this.lineIndent(t.from)}continue(){let e=this.node.parent;return e?gd(e,this.pos,this.base):0}}function f1(s,e){for(let t=e;t;t=t.parent)if(s==t)return!0;return!1}function u1(s){let e=s.node,t=e.childAfter(e.from),n=e.lastChild;if(!t)return null;let i=s.options.simulateBreak,r=s.state.doc.lineAt(t.from),l=i==null||i<=r.from?r.to:Math.min(r.to,i);for(let o=t.to;;){let a=e.childAfter(o);if(!a||a==n)return null;if(!a.type.isSkipped)return a.frommd(n,e,t,s)}function md(s,e,t,n,i){let r=s.textAfter,l=r.match(/^\s*/)[0].length,o=n&&r.slice(l,l+n.length)==n||i==s.pos+l,a=e?u1(s):null;return a?o?s.column(a.from):s.column(a.to):s.baseIndent+(o?0:s.unit*t)}const Qw=s=>s.baseIndent;function eS({except:s,units:e=1}={}){return t=>{let n=s&&s.test(t.textAfter);return t.baseIndent+(n?0:e*t.unit)}}const d1=200;function tS(){return ye.transactionFilter.of(s=>{if(!s.docChanged||!s.isUserEvent("input.type")&&!s.isUserEvent("input.complete"))return s;let e=s.startState.languageDataAt("indentOnInput",s.startState.selection.main.head);if(!e.length)return s;let t=s.newDoc,{head:n}=s.newSelection.main,i=t.lineAt(n);if(n>i.from+d1)return s;let r=t.sliceString(i.from,n);if(!e.some(h=>h.test(r)))return s;let{state:l}=s,o=-1,a=[];for(let{head:h}of l.selection.ranges){let c=l.doc.lineAt(h);if(c.from==o)continue;o=c.from;let f=Lo(l,c.from);if(f==null)continue;let u=/^\s*/.exec(c.text)[0],d=cs(l,f);u!=d&&a.push({from:c.from,to:c.from+u.length,insert:d})}return a.length?[s,{changes:a,sequential:!0}]:s})}const p1=le.define(),g1=new ve;function nS(s){let e=s.firstChild,t=s.lastChild;return e&&e.tot)continue;if(r&&l.from=e&&a.to>t&&(r=a)}}return r}function b1(s){let e=s.lastChild;return e&&e.to==s.to&&e.type.isError}function br(s,e,t){for(let n of s.facet(p1)){let i=n(s,e,t);if(i)return i}return m1(s,e,t)}function bd(s,e){let t=e.mapPos(s.from,1),n=e.mapPos(s.to,-1);return t>=n?void 0:{from:t,to:n}}const Br=Pe.define({map:bd}),ks=Pe.define({map:bd});function _d(s){let e=[];for(let{head:t}of s.state.selection.ranges)e.some(n=>n.from<=t&&n.to>=t)||e.push(s.lineBlockAt(t));return e}const li=Pt.define({create(){return Re.none},update(s,e){s=s.map(e.changes);for(let t of e.effects)t.is(Br)&&!_1(s,t.value.from,t.value.to)?s=s.update({add:[jh.range(t.value.from,t.value.to)]}):t.is(ks)&&(s=s.update({filter:(n,i)=>t.value.from!=n||t.value.to!=i,filterFrom:t.value.from,filterTo:t.value.to}));if(e.selection){let t=!1,{head:n}=e.selection.main;s.between(n,n,(i,r)=>{in&&(t=!0)}),t&&(s=s.update({filterFrom:n,filterTo:n,filter:(i,r)=>r<=n||i>=n}))}return s},provide:s=>ce.decorations.from(s),toJSON(s,e){let t=[];return s.between(0,e.doc.length,(n,i)=>{t.push(n,i)}),t},fromJSON(s){if(!Array.isArray(s)||s.length%2)throw new RangeError("Invalid JSON for fold state");let e=[];for(let t=0;t{(!i||i.from>r)&&(i={from:r,to:l})}),i}function _1(s,e,t){let n=!1;return s.between(e,e,(i,r)=>{i==e&&r==t&&(n=!0)}),n}function kd(s,e){return s.field(li,!1)?e:e.concat(Pe.appendConfig.of(wd()))}const k1=s=>{for(let e of _d(s)){let t=br(s.state,e.from,e.to);if(t)return s.dispatch({effects:kd(s.state,[Br.of(t),vd(s,t)])}),!0}return!1},v1=s=>{if(!s.state.field(li,!1))return!1;let e=[];for(let t of _d(s)){let n=_r(s.state,t.from,t.to);n&&e.push(ks.of(n),vd(s,n,!1))}return e.length&&s.dispatch({effects:e}),e.length>0};function vd(s,e,t=!0){let n=s.state.doc.lineAt(e.from).number,i=s.state.doc.lineAt(e.to).number;return ce.announce.of(`${s.state.phrase(t?"Folded lines":"Unfolded lines")} ${n} ${s.state.phrase("to")} ${i}.`)}const y1=s=>{let{state:e}=s,t=[];for(let n=0;n{let e=s.state.field(li,!1);if(!e||!e.size)return!1;let t=[];return e.between(0,s.state.doc.length,(n,i)=>{t.push(ks.of({from:n,to:i}))}),s.dispatch({effects:t}),!0},iS=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:k1},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:v1},{key:"Ctrl-Alt-[",run:y1},{key:"Ctrl-Alt-]",run:w1}],S1={placeholderDOM:null,placeholderText:"…"},yd=le.define({combine(s){return Ei(s,S1)}});function wd(s){let e=[li,A1];return s&&e.push(yd.of(s)),e}const jh=Re.replace({widget:new class extends Di{toDOM(s){let{state:e}=s,t=e.facet(yd),n=r=>{let l=s.lineBlockAt(s.posAtDOM(r.target)),o=_r(s.state,l.from,l.to);o&&s.dispatch({effects:ks.of(o)}),r.preventDefault()};if(t.placeholderDOM)return t.placeholderDOM(s,n);let i=document.createElement("span");return i.textContent=t.placeholderText,i.setAttribute("aria-label",e.phrase("folded code")),i.title=e.phrase("unfold"),i.className="cm-foldPlaceholder",i.onclick=n,i}}}),x1={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class yl extends En{constructor(e,t){super(),this.config=e,this.open=t}eq(e){return this.config==e.config&&this.open==e.open}toDOM(e){if(this.config.markerDOM)return this.config.markerDOM(this.open);let t=document.createElement("span");return t.textContent=this.open?this.config.openText:this.config.closedText,t.title=e.state.phrase(this.open?"Fold line":"Unfold line"),t}}function sS(s={}){let e=Object.assign(Object.assign({},x1),s),t=new yl(e,!0),n=new yl(e,!1),i=ht.fromClass(class{constructor(l){this.from=l.viewport.from,this.markers=this.buildMarkers(l)}update(l){(l.docChanged||l.viewportChanged||l.startState.facet(Wn)!=l.state.facet(Wn)||l.startState.field(li,!1)!=l.state.field(li,!1)||Ot(l.startState)!=Ot(l.state)||e.foldingChanged(l))&&(this.markers=this.buildMarkers(l.view))}buildMarkers(l){let o=new ri;for(let a of l.viewportLineBlocks){let h=_r(l.state,a.from,a.to)?n:br(l.state,a.from,a.to)?t:null;h&&o.add(a.from,a.from,h)}return o.finish()}}),{domEventHandlers:r}=e;return[i,x0({class:"cm-foldGutter",markers(l){var o;return((o=l.plugin(i))===null||o===void 0?void 0:o.markers)||Ne.empty},initialSpacer(){return new yl(e,!1)},domEventHandlers:Object.assign(Object.assign({},r),{click:(l,o,a)=>{if(r.click&&r.click(l,o,a))return!0;let h=_r(l.state,o.from,o.to);if(h)return l.dispatch({effects:ks.of(h)}),!0;let c=br(l.state,o.from,o.to);return c?(l.dispatch({effects:Br.of(c)}),!0):!1}})}),wd()]}const A1=ce.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class vs{constructor(e,t){this.specs=e;let n;function i(o){let a=jn.newName();return(n||(n=Object.create(null)))["."+a]=o,a}const r=typeof t.all=="string"?t.all:t.all?i(t.all):void 0,l=t.scope;this.scope=l instanceof Ut?o=>o.prop(ki)==l.data:l?o=>o==l:void 0,this.style=ud(e.map(o=>({tag:o.tag,class:o.class||i(Object.assign({},o,{tag:null}))})),{all:r}).style,this.module=n?new jn(n):null,this.themeType=t.themeType}static define(e,t){return new vs(e,t||{})}}const co=le.define(),Sd=le.define({combine(s){return s.length?[s[0]]:null}});function wl(s){let e=s.facet(co);return e.length?e:s.facet(Sd)}function C1(s,e){let t=[T1],n;return s instanceof vs&&(s.module&&t.push(ce.styleModule.of(s.module)),n=s.themeType),e!=null&&e.fallback?t.push(Sd.of(s)):n?t.push(co.computeN([ce.darkTheme],i=>i.facet(ce.darkTheme)==(n=="dark")?[s]:[])):t.push(co.of(s)),t}class M1{constructor(e){this.markCache=Object.create(null),this.tree=Ot(e.state),this.decorations=this.buildDeco(e,wl(e.state))}update(e){let t=Ot(e.state),n=wl(e.state),i=n!=wl(e.startState);t.length{n.add(l,o,this.markCache[a]||(this.markCache[a]=Re.mark({class:a})))},i,r);return n.finish()}}const T1=Er.high(ht.fromClass(M1,{decorations:s=>s.decorations})),rS=vs.define([{tag:N.meta,color:"#404740"},{tag:N.link,textDecoration:"underline"},{tag:N.heading,textDecoration:"underline",fontWeight:"bold"},{tag:N.emphasis,fontStyle:"italic"},{tag:N.strong,fontWeight:"bold"},{tag:N.strikethrough,textDecoration:"line-through"},{tag:N.keyword,color:"#708"},{tag:[N.atom,N.bool,N.url,N.contentSeparator,N.labelName],color:"#219"},{tag:[N.literal,N.inserted],color:"#164"},{tag:[N.string,N.deleted],color:"#a11"},{tag:[N.regexp,N.escape,N.special(N.string)],color:"#e40"},{tag:N.definition(N.variableName),color:"#00f"},{tag:N.local(N.variableName),color:"#30a"},{tag:[N.typeName,N.namespace],color:"#085"},{tag:N.className,color:"#167"},{tag:[N.special(N.variableName),N.macroName],color:"#256"},{tag:N.definition(N.propertyName),color:"#00c"},{tag:N.comment,color:"#940"},{tag:N.invalid,color:"#f00"}]),E1=ce.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),xd=1e4,Ad="()[]{}",Cd=le.define({combine(s){return Ei(s,{afterCursor:!0,brackets:Ad,maxScanDistance:xd,renderMatch:P1})}}),D1=Re.mark({class:"cm-matchingBracket"}),O1=Re.mark({class:"cm-nonmatchingBracket"});function P1(s){let e=[],t=s.matched?D1:O1;return e.push(t.range(s.start.from,s.start.to)),s.end&&e.push(t.range(s.end.from,s.end.to)),e}const $1=Pt.define({create(){return Re.none},update(s,e){if(!e.docChanged&&!e.selection)return s;let t=[],n=e.state.facet(Cd);for(let i of e.state.selection.ranges){if(!i.empty)continue;let r=cn(e.state,i.head,-1,n)||i.head>0&&cn(e.state,i.head-1,1,n)||n.afterCursor&&(cn(e.state,i.head,1,n)||i.headce.decorations.from(s)}),B1=[$1,E1];function lS(s={}){return[Cd.of(s),B1]}const N1=new ve;function fo(s,e,t){let n=s.prop(e<0?ve.openedBy:ve.closedBy);if(n)return n;if(s.name.length==1){let i=t.indexOf(s.name);if(i>-1&&i%2==(e<0?1:0))return[t[i+e]]}return null}function uo(s){let e=s.type.prop(N1);return e?e(s.node):s}function cn(s,e,t,n={}){let i=n.maxScanDistance||xd,r=n.brackets||Ad,l=Ot(s),o=l.resolveInner(e,t);for(let a=o;a;a=a.parent){let h=fo(a.type,t,r);if(h&&a.from0?e>=c.from&&ec.from&&e<=c.to))return L1(s,e,t,a,c,h,r)}}return R1(s,e,t,l,o.type,i,r)}function L1(s,e,t,n,i,r,l){let o=n.parent,a={from:i.from,to:i.to},h=0,c=o==null?void 0:o.cursor();if(c&&(t<0?c.childBefore(n.from):c.childAfter(n.to)))do if(t<0?c.to<=n.from:c.from>=n.to){if(h==0&&r.indexOf(c.type.name)>-1&&c.from0)return null;let h={from:t<0?e-1:e,to:t>0?e+1:e},c=s.doc.iterRange(e,t>0?s.doc.length:0),f=0;for(let u=0;!c.next().done&&u<=r;){let d=c.value;t<0&&(u+=d.length);let p=e+u*t;for(let g=t>0?0:d.length-1,m=t>0?d.length:-1;g!=m;g+=t){let _=l.indexOf(d[g]);if(!(_<0||n.resolveInner(p+g,1).type!=i))if(_%2==0==t>0)f++;else{if(f==1)return{start:h,end:{from:p+g,to:p+g+1},matched:_>>1==a>>1};f--}}t>0&&(u+=d.length)}return c.done?{start:h,matched:!1}:null}const I1=Object.create(null),Vh=[vt.none],Hh=[],z1=Object.create(null);for(let[s,e]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])z1[s]=j1(I1,e);function Sl(s,e){Hh.indexOf(s)>-1||(Hh.push(s),console.warn(e))}function j1(s,e){let t=null;for(let r of e.split(".")){let l=s[r]||N[r];l?typeof l=="function"?t?t=l(t):Sl(r,`Modifier ${r} used at start of tag`):t?Sl(r,`Tag ${r} used as modifier`):t=l:Sl(r,`Unknown highlighting tag ${r}`)}if(!t)return 0;let n=e.replace(/ /g,"_"),i=vt.define({id:Vh.length,name:n,props:[Y0({[n]:t})]});return Vh.push(i),i.id}const V1=s=>{let{state:e}=s,t=e.doc.lineAt(e.selection.main.from),n=zo(s.state,t.from);return n.line?H1(s):n.block?W1(s):!1};function Io(s,e){return({state:t,dispatch:n})=>{if(t.readOnly)return!1;let i=s(e,t);return i?(n(t.update(i)),!0):!1}}const H1=Io(K1,0),F1=Io(Md,0),W1=Io((s,e)=>Md(s,e,U1(e)),0);function zo(s,e){let t=s.languageDataAt("commentTokens",e);return t.length?t[0]:{}}const qi=50;function q1(s,{open:e,close:t},n,i){let r=s.sliceDoc(n-qi,n),l=s.sliceDoc(i,i+qi),o=/\s*$/.exec(r)[0].length,a=/^\s*/.exec(l)[0].length,h=r.length-o;if(r.slice(h-e.length,h)==e&&l.slice(a,a+t.length)==t)return{open:{pos:n-o,margin:o&&1},close:{pos:i+a,margin:a&&1}};let c,f;i-n<=2*qi?c=f=s.sliceDoc(n,i):(c=s.sliceDoc(n,n+qi),f=s.sliceDoc(i-qi,i));let u=/^\s*/.exec(c)[0].length,d=/\s*$/.exec(f)[0].length,p=f.length-d-t.length;return c.slice(u,u+e.length)==e&&f.slice(p,p+t.length)==t?{open:{pos:n+u+e.length,margin:/\s/.test(c.charAt(u+e.length))?1:0},close:{pos:i-d-t.length,margin:/\s/.test(f.charAt(p-1))?1:0}}:null}function U1(s){let e=[];for(let t of s.selection.ranges){let n=s.doc.lineAt(t.from),i=t.to<=n.to?n:s.doc.lineAt(t.to),r=e.length-1;r>=0&&e[r].to>n.from?e[r].to=i.to:e.push({from:n.from+/^\s*/.exec(n.text)[0].length,to:i.to})}return e}function Md(s,e,t=e.selection.ranges){let n=t.map(r=>zo(e,r.from).block);if(!n.every(r=>r))return null;let i=t.map((r,l)=>q1(e,n[l],r.from,r.to));if(s!=2&&!i.every(r=>r))return{changes:e.changes(t.map((r,l)=>i[l]?[]:[{from:r.from,insert:n[l].open+" "},{from:r.to,insert:" "+n[l].close}]))};if(s!=1&&i.some(r=>r)){let r=[];for(let l=0,o;li&&(r==l||l>f.from)){i=f.from;let u=/^\s*/.exec(f.text)[0].length,d=u==f.length,p=f.text.slice(u,u+h.length)==h?u:-1;ur.comment<0&&(!r.empty||r.single))){let r=[];for(let{line:o,token:a,indent:h,empty:c,single:f}of n)(f||!c)&&r.push({from:o.from+h,insert:a+" "});let l=e.changes(r);return{changes:l,selection:e.selection.map(l,1)}}else if(s!=1&&n.some(r=>r.comment>=0)){let r=[];for(let{line:l,comment:o,token:a}of n)if(o>=0){let h=l.from+o,c=h+a.length;l.text[c-l.from]==" "&&c++,r.push({from:h,to:c})}return{changes:r}}return null}const po=qn.define(),J1=qn.define(),G1=le.define(),Td=le.define({combine(s){return Ei(s,{minDepth:100,newGroupDelay:500,joinToEvent:(e,t)=>t},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,t)=>(n,i)=>e(n,i)||t(n,i)})}});function Y1(s){let e=0;return s.iterChangedRanges((t,n)=>e=n),e}const jo=Pt.define({create(){return fn.empty},update(s,e){let t=e.state.facet(Td),n=e.annotation(po);if(n){let a=e.docChanged?F.single(Y1(e.changes)):void 0,h=kt.fromTransaction(e,a),c=n.side,f=c==0?s.undone:s.done;return h?f=kr(f,f.length,t.minDepth,h):f=Od(f,e.startState.selection),new fn(c==0?n.rest:f,c==0?f:n.rest)}let i=e.annotation(J1);if((i=="full"||i=="before")&&(s=s.isolate()),e.annotation(Ze.addToHistory)===!1)return e.changes.empty?s:s.addMapping(e.changes.desc);let r=kt.fromTransaction(e),l=e.annotation(Ze.time),o=e.annotation(Ze.userEvent);return r?s=s.addChanges(r,l,o,t,e):e.selection&&(s=s.addSelection(e.startState.selection,l,o,t.newGroupDelay)),(i=="full"||i=="after")&&(s=s.isolate()),s},toJSON(s){return{done:s.done.map(e=>e.toJSON()),undone:s.undone.map(e=>e.toJSON())}},fromJSON(s){return new fn(s.done.map(kt.fromJSON),s.undone.map(kt.fromJSON))}});function oS(s={}){return[jo,Td.of(s),ce.domEventHandlers({beforeinput(e,t){let n=e.inputType=="historyUndo"?Ed:e.inputType=="historyRedo"?go:null;return n?(e.preventDefault(),n(t)):!1}})]}const Fh=jo;function Nr(s,e){return function({state:t,dispatch:n}){if(!e&&t.readOnly)return!1;let i=t.field(jo,!1);if(!i)return!1;let r=i.pop(s,t,e);return r?(n(r),!0):!1}}const Ed=Nr(0,!1),go=Nr(1,!1),X1=Nr(0,!0),Z1=Nr(1,!0);class kt{constructor(e,t,n,i,r){this.changes=e,this.effects=t,this.mapped=n,this.startSelection=i,this.selectionsAfter=r}setSelAfter(e){return new kt(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,t,n;return{changes:(e=this.changes)===null||e===void 0?void 0:e.toJSON(),mapped:(t=this.mapped)===null||t===void 0?void 0:t.toJSON(),startSelection:(n=this.startSelection)===null||n===void 0?void 0:n.toJSON(),selectionsAfter:this.selectionsAfter.map(i=>i.toJSON())}}static fromJSON(e){return new kt(e.changes&&Ye.fromJSON(e.changes),[],e.mapped&&pn.fromJSON(e.mapped),e.startSelection&&F.fromJSON(e.startSelection),e.selectionsAfter.map(F.fromJSON))}static fromTransaction(e,t){let n=Rt;for(let i of e.startState.facet(G1)){let r=i(e);r.length&&(n=n.concat(r))}return!n.length&&e.changes.empty?null:new kt(e.changes.invert(e.startState.doc),n,void 0,t||e.startState.selection,Rt)}static selection(e){return new kt(void 0,Rt,void 0,void 0,e)}}function kr(s,e,t,n){let i=e+1>t+20?e-t-1:0,r=s.slice(i,e);return r.push(n),r}function Q1(s,e){let t=[],n=!1;return s.iterChangedRanges((i,r)=>t.push(i,r)),e.iterChangedRanges((i,r,l,o)=>{for(let a=0;a=h&&l<=c&&(n=!0)}}),n}function eb(s,e){return s.ranges.length==e.ranges.length&&s.ranges.filter((t,n)=>t.empty!=e.ranges[n].empty).length===0}function Dd(s,e){return s.length?e.length?s.concat(e):s:e}const Rt=[],tb=200;function Od(s,e){if(s.length){let t=s[s.length-1],n=t.selectionsAfter.slice(Math.max(0,t.selectionsAfter.length-tb));return n.length&&n[n.length-1].eq(e)?s:(n.push(e),kr(s,s.length-1,1e9,t.setSelAfter(n)))}else return[kt.selection([e])]}function nb(s){let e=s[s.length-1],t=s.slice();return t[s.length-1]=e.setSelAfter(e.selectionsAfter.slice(0,e.selectionsAfter.length-1)),t}function xl(s,e){if(!s.length)return s;let t=s.length,n=Rt;for(;t;){let i=ib(s[t-1],e,n);if(i.changes&&!i.changes.empty||i.effects.length){let r=s.slice(0,t);return r[t-1]=i,r}else e=i.mapped,t--,n=i.selectionsAfter}return n.length?[kt.selection(n)]:Rt}function ib(s,e,t){let n=Dd(s.selectionsAfter.length?s.selectionsAfter.map(o=>o.map(e)):Rt,t);if(!s.changes)return kt.selection(n);let i=s.changes.map(e),r=e.mapDesc(s.changes,!0),l=s.mapped?s.mapped.composeDesc(r):r;return new kt(i,Pe.mapEffects(s.effects,e),l,s.startSelection.map(r),n)}const sb=/^(input\.type|delete)($|\.)/;class fn{constructor(e,t,n=0,i=void 0){this.done=e,this.undone=t,this.prevTime=n,this.prevUserEvent=i}isolate(){return this.prevTime?new fn(this.done,this.undone):this}addChanges(e,t,n,i,r){let l=this.done,o=l[l.length-1];return o&&o.changes&&!o.changes.empty&&e.changes&&(!n||sb.test(n))&&(!o.selectionsAfter.length&&t-this.prevTime0&&t-this.prevTimet.empty?s.moveByChar(t,e):Lr(t,e))}function ct(s){return s.textDirectionAt(s.state.selection.main.head)==Ue.LTR}const $d=s=>Pd(s,!ct(s)),Bd=s=>Pd(s,ct(s));function Nd(s,e){return Kt(s,t=>t.empty?s.moveByGroup(t,e):Lr(t,e))}const rb=s=>Nd(s,!ct(s)),lb=s=>Nd(s,ct(s));function ob(s,e,t){if(e.type.prop(t))return!0;let n=e.to-e.from;return n&&(n>2||/[^\s,.;:]/.test(s.sliceDoc(e.from,e.to)))||e.firstChild}function Rr(s,e,t){let n=Ot(s).resolveInner(e.head),i=t?ve.closedBy:ve.openedBy;for(let a=e.head;;){let h=t?n.childAfter(a):n.childBefore(a);if(!h)break;ob(s,h,i)?n=h:a=t?h.to:h.from}let r=n.type.prop(i),l,o;return r&&(l=t?cn(s,n.from,1):cn(s,n.to,-1))&&l.matched?o=t?l.end.to:l.end.from:o=t?n.to:n.from,F.cursor(o,t?-1:1)}const ab=s=>Kt(s,e=>Rr(s.state,e,!ct(s))),hb=s=>Kt(s,e=>Rr(s.state,e,ct(s)));function Ld(s,e){return Kt(s,t=>{if(!t.empty)return Lr(t,e);let n=s.moveVertically(t,e);return n.head!=t.head?n:s.moveToLineBoundary(t,e)})}const Rd=s=>Ld(s,!1),Id=s=>Ld(s,!0);function zd(s){let e=s.scrollDOM.clientHeightl.empty?s.moveVertically(l,e,t.height):Lr(l,e));if(i.eq(n.selection))return!1;let r;if(t.selfScroll){let l=s.coordsAtPos(n.selection.main.head),o=s.scrollDOM.getBoundingClientRect(),a=o.top+t.marginTop,h=o.bottom-t.marginBottom;l&&l.top>a&&l.bottomjd(s,!1),mo=s=>jd(s,!0);function Un(s,e,t){let n=s.lineBlockAt(e.head),i=s.moveToLineBoundary(e,t);if(i.head==e.head&&i.head!=(t?n.to:n.from)&&(i=s.moveToLineBoundary(e,t,!1)),!t&&i.head==n.from&&n.length){let r=/^\s*/.exec(s.state.sliceDoc(n.from,Math.min(n.from+100,n.to)))[0].length;r&&e.head!=n.from+r&&(i=F.cursor(n.from+r))}return i}const cb=s=>Kt(s,e=>Un(s,e,!0)),fb=s=>Kt(s,e=>Un(s,e,!1)),ub=s=>Kt(s,e=>Un(s,e,!ct(s))),db=s=>Kt(s,e=>Un(s,e,ct(s))),pb=s=>Kt(s,e=>F.cursor(s.lineBlockAt(e.head).from,1)),gb=s=>Kt(s,e=>F.cursor(s.lineBlockAt(e.head).to,-1));function mb(s,e,t){let n=!1,i=Oi(s.selection,r=>{let l=cn(s,r.head,-1)||cn(s,r.head,1)||r.head>0&&cn(s,r.head-1,1)||r.headmb(s,e,!1);function jt(s,e){let t=Oi(s.state.selection,n=>{let i=e(n);return F.range(n.anchor,i.head,i.goalColumn,i.bidiLevel||void 0)});return t.eq(s.state.selection)?!1:(s.dispatch(gn(s.state,t)),!0)}function Vd(s,e){return jt(s,t=>s.moveByChar(t,e))}const Hd=s=>Vd(s,!ct(s)),Fd=s=>Vd(s,ct(s));function Wd(s,e){return jt(s,t=>s.moveByGroup(t,e))}const _b=s=>Wd(s,!ct(s)),kb=s=>Wd(s,ct(s)),vb=s=>jt(s,e=>Rr(s.state,e,!ct(s))),yb=s=>jt(s,e=>Rr(s.state,e,ct(s)));function qd(s,e){return jt(s,t=>s.moveVertically(t,e))}const Ud=s=>qd(s,!1),Kd=s=>qd(s,!0);function Jd(s,e){return jt(s,t=>s.moveVertically(t,e,zd(s).height))}const qh=s=>Jd(s,!1),Uh=s=>Jd(s,!0),wb=s=>jt(s,e=>Un(s,e,!0)),Sb=s=>jt(s,e=>Un(s,e,!1)),xb=s=>jt(s,e=>Un(s,e,!ct(s))),Ab=s=>jt(s,e=>Un(s,e,ct(s))),Cb=s=>jt(s,e=>F.cursor(s.lineBlockAt(e.head).from)),Mb=s=>jt(s,e=>F.cursor(s.lineBlockAt(e.head).to)),Kh=({state:s,dispatch:e})=>(e(gn(s,{anchor:0})),!0),Jh=({state:s,dispatch:e})=>(e(gn(s,{anchor:s.doc.length})),!0),Gh=({state:s,dispatch:e})=>(e(gn(s,{anchor:s.selection.main.anchor,head:0})),!0),Yh=({state:s,dispatch:e})=>(e(gn(s,{anchor:s.selection.main.anchor,head:s.doc.length})),!0),Tb=({state:s,dispatch:e})=>(e(s.update({selection:{anchor:0,head:s.doc.length},userEvent:"select"})),!0),Eb=({state:s,dispatch:e})=>{let t=zr(s).map(({from:n,to:i})=>F.range(n,Math.min(i+1,s.doc.length)));return e(s.update({selection:F.create(t),userEvent:"select"})),!0},Db=({state:s,dispatch:e})=>{let t=Oi(s.selection,n=>{var i;let r=Ot(s).resolveInner(n.head,1);for(;!(r.from=n.to||r.to>n.to&&r.from<=n.from||!(!((i=r.parent)===null||i===void 0)&&i.parent));)r=r.parent;return F.range(r.to,r.from)});return e(gn(s,t)),!0},Ob=({state:s,dispatch:e})=>{let t=s.selection,n=null;return t.ranges.length>1?n=F.create([t.main]):t.main.empty||(n=F.create([F.cursor(t.main.head)])),n?(e(gn(s,n)),!0):!1};function Ir(s,e){if(s.state.readOnly)return!1;let t="delete.selection",{state:n}=s,i=n.changeByRange(r=>{let{from:l,to:o}=r;if(l==o){let a=e(l);al&&(t="delete.forward",a=Hs(s,a,!0)),l=Math.min(l,a),o=Math.max(o,a)}else l=Hs(s,l,!1),o=Hs(s,o,!0);return l==o?{range:r}:{changes:{from:l,to:o},range:F.cursor(l)}});return i.changes.empty?!1:(s.dispatch(n.update(i,{scrollIntoView:!0,userEvent:t,effects:t=="delete.selection"?ce.announce.of(n.phrase("Selection deleted")):void 0})),!0)}function Hs(s,e,t){if(s instanceof ce)for(let n of s.state.facet(ce.atomicRanges).map(i=>i(s)))n.between(e,e,(i,r)=>{ie&&(e=t?r:i)});return e}const Gd=(s,e)=>Ir(s,t=>{let{state:n}=s,i=n.doc.lineAt(t),r,l;if(!e&&t>i.from&&tGd(s,!1),Yd=s=>Gd(s,!0),Xd=(s,e)=>Ir(s,t=>{let n=t,{state:i}=s,r=i.doc.lineAt(n),l=i.charCategorizer(n);for(let o=null;;){if(n==(e?r.to:r.from)){n==t&&r.number!=(e?i.doc.lines:1)&&(n+=e?1:-1);break}let a=Ct(r.text,n-r.from,e)+r.from,h=r.text.slice(Math.min(n,a)-r.from,Math.max(n,a)-r.from),c=l(h);if(o!=null&&c!=o)break;(h!=" "||n!=t)&&(o=c),n=a}return n}),Zd=s=>Xd(s,!1),Pb=s=>Xd(s,!0),Qd=s=>Ir(s,e=>{let t=s.lineBlockAt(e).to;return eIr(s,e=>{let t=s.lineBlockAt(e).from;return e>t?t:Math.max(0,e-1)}),Bb=({state:s,dispatch:e})=>{if(s.readOnly)return!1;let t=s.changeByRange(n=>({changes:{from:n.from,to:n.to,insert:De.of(["",""])},range:F.cursor(n.from)}));return e(s.update(t,{scrollIntoView:!0,userEvent:"input"})),!0},Nb=({state:s,dispatch:e})=>{if(s.readOnly)return!1;let t=s.changeByRange(n=>{if(!n.empty||n.from==0||n.from==s.doc.length)return{range:n};let i=n.from,r=s.doc.lineAt(i),l=i==r.from?i-1:Ct(r.text,i-r.from,!1)+r.from,o=i==r.to?i+1:Ct(r.text,i-r.from,!0)+r.from;return{changes:{from:l,to:o,insert:s.doc.slice(i,o).append(s.doc.slice(l,i))},range:F.cursor(o)}});return t.changes.empty?!1:(e(s.update(t,{scrollIntoView:!0,userEvent:"move.character"})),!0)};function zr(s){let e=[],t=-1;for(let n of s.selection.ranges){let i=s.doc.lineAt(n.from),r=s.doc.lineAt(n.to);if(!n.empty&&n.to==r.from&&(r=s.doc.lineAt(n.to-1)),t>=i.number){let l=e[e.length-1];l.to=r.to,l.ranges.push(n)}else e.push({from:i.from,to:r.to,ranges:[n]});t=r.number+1}return e}function ep(s,e,t){if(s.readOnly)return!1;let n=[],i=[];for(let r of zr(s)){if(t?r.to==s.doc.length:r.from==0)continue;let l=s.doc.lineAt(t?r.to+1:r.from-1),o=l.length+1;if(t){n.push({from:r.to,to:l.to},{from:r.from,insert:l.text+s.lineBreak});for(let a of r.ranges)i.push(F.range(Math.min(s.doc.length,a.anchor+o),Math.min(s.doc.length,a.head+o)))}else{n.push({from:l.from,to:r.from},{from:r.to,insert:s.lineBreak+l.text});for(let a of r.ranges)i.push(F.range(a.anchor-o,a.head-o))}}return n.length?(e(s.update({changes:n,scrollIntoView:!0,selection:F.create(i,s.selection.mainIndex),userEvent:"move.line"})),!0):!1}const Lb=({state:s,dispatch:e})=>ep(s,e,!1),Rb=({state:s,dispatch:e})=>ep(s,e,!0);function tp(s,e,t){if(s.readOnly)return!1;let n=[];for(let i of zr(s))t?n.push({from:i.from,insert:s.doc.slice(i.from,i.to)+s.lineBreak}):n.push({from:i.to,insert:s.lineBreak+s.doc.slice(i.from,i.to)});return e(s.update({changes:n,scrollIntoView:!0,userEvent:"input.copyline"})),!0}const Ib=({state:s,dispatch:e})=>tp(s,e,!1),zb=({state:s,dispatch:e})=>tp(s,e,!0),jb=s=>{if(s.state.readOnly)return!1;let{state:e}=s,t=e.changes(zr(e).map(({from:i,to:r})=>(i>0?i--:rs.moveVertically(i,!0)).map(t);return s.dispatch({changes:t,selection:n,scrollIntoView:!0,userEvent:"delete.line"}),!0};function Vb(s,e){if(/\(\)|\[\]|\{\}/.test(s.sliceDoc(e-1,e+1)))return{from:e,to:e};let t=Ot(s).resolveInner(e),n=t.childBefore(e),i=t.childAfter(e),r;return n&&i&&n.to<=e&&i.from>=e&&(r=n.type.prop(ve.closedBy))&&r.indexOf(i.name)>-1&&s.doc.lineAt(n.to).from==s.doc.lineAt(i.from).from?{from:n.to,to:i.from}:null}const Hb=np(!1),Fb=np(!0);function np(s){return({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange(i=>{let{from:r,to:l}=i,o=e.doc.lineAt(r),a=!s&&r==l&&Vb(e,r);s&&(r=l=(l<=o.to?o:e.doc.lineAt(l)).to);let h=new $r(e,{simulateBreak:r,simulateDoubleBreak:!!a}),c=Lo(h,r);for(c==null&&(c=/^\s*/.exec(e.doc.lineAt(r).text)[0].length);lo.from&&r{let i=[];for(let l=n.from;l<=n.to;){let o=s.doc.lineAt(l);o.number>t&&(n.empty||n.to>o.from)&&(e(o,i,n),t=o.number),l=o.to+1}let r=s.changes(i);return{changes:i,range:F.range(r.mapPos(n.anchor,1),r.mapPos(n.head,1))}})}const Wb=({state:s,dispatch:e})=>{if(s.readOnly)return!1;let t=Object.create(null),n=new $r(s,{overrideIndentation:r=>{let l=t[r];return l??-1}}),i=Vo(s,(r,l,o)=>{let a=Lo(n,r.from);if(a==null)return;/\S/.test(r.text)||(a=0);let h=/^\s*/.exec(r.text)[0],c=cs(s,a);(h!=c||o.froms.readOnly?!1:(e(s.update(Vo(s,(t,n)=>{n.push({from:t.from,insert:s.facet(Pr)})}),{userEvent:"input.indent"})),!0),sp=({state:s,dispatch:e})=>s.readOnly?!1:(e(s.update(Vo(s,(t,n)=>{let i=/^\s*/.exec(t.text)[0];if(!i)return;let r=gs(i,s.tabSize),l=0,o=cs(s,Math.max(0,r-mr(s)));for(;l({mac:s.key,run:s.run,shift:s.shift}))),Kb=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:ab,shift:vb},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:hb,shift:yb},{key:"Alt-ArrowUp",run:Lb},{key:"Shift-Alt-ArrowUp",run:Ib},{key:"Alt-ArrowDown",run:Rb},{key:"Shift-Alt-ArrowDown",run:zb},{key:"Escape",run:Ob},{key:"Mod-Enter",run:Fb},{key:"Alt-l",mac:"Ctrl-l",run:Eb},{key:"Mod-i",run:Db,preventDefault:!0},{key:"Mod-[",run:sp},{key:"Mod-]",run:ip},{key:"Mod-Alt-\\",run:Wb},{key:"Shift-Mod-k",run:jb},{key:"Shift-Mod-\\",run:bb},{key:"Mod-/",run:V1},{key:"Alt-A",run:F1}].concat(Ub),Jb={key:"Tab",run:ip,shift:sp};let ft=[],Gb=(s,e)=>{let t,n=[],i={lc:0,l:e||0,value:s,set(r){i.value=r,i.notify()},get(){return i.lc||i.listen(()=>{})(),i.value},notify(r){t=n;let l=!ft.length;for(let o=0;o{n===t&&(n=n.slice());let o=n.indexOf(r);~o&&(n.splice(o,2),i.lc--,i.lc||i.off())}},subscribe(r,l){let o=i.listen(r,l);return r(i.value),o},off(){}};return i},Yb=(s={})=>{let e=Gb(s);return e.setKey=function(t,n){typeof n>"u"?t in e.value&&(e.value={...e.value},delete e.value[t],e.notify(t)):e.value[t]!==n&&(e.value={...e.value,[t]:n},e.notify(t))},e};var Xb=()=>Yb({view:null,extensions:null,value:null}),Zb=(s,e)=>{if(zn(e))throw new Error("No options provided. At least `value` is required.");let{value:t,instanceStore:n,onChangeBehavior:i={kind:"debounce",duration:50}}=e,r,l=new Promise($=>r=$),o,a=[];const h=new Nt,c=new Nt,f=new Nt,u=new Nt,d=new Nt,p=new Nt,g=new Nt,m=new Nt,_=ce.updateListener.of($=>D($));async function v($){return Promise.all([_,p.of(ic($)),g.of(await tc($)),h.of(await Xh($)??[]),Ku.of([...Kb,...$.useTabs?[Jb]:[]]),c.of(await Zh($)),f.of(Qh($)),u.of(await ec($)),d.of(nc($)),m.of(await sc($))])}function E($){const G=o.state.doc.toString();gi(G,t)||(t=G,s.dispatchEvent(new CustomEvent("codemirror:textChange",{detail:t}))),n==null||n.set({value:t,view:o,extensions:a}),s.dispatchEvent(new CustomEvent("codemirror:change",{detail:$}))}const{kind:w="debounce",duration:B=50}=i;let D=w==="debounce"?rc(E,B):lc(E,B);return(async()=>{a=await v(e);const $=ye.create({doc:t,extensions:a,selection:{anchor:e.cursorPos??0,head:e.cursorPos??0}});o=new ce({state:$,parent:s}),zn(e.cursorPos)||o.focus(),r()})(),{async update($){var O,T;await l;const G={};gi(t,$.value)||(t=$.value,G.changes={from:0,to:o.state.doc.length,insert:t}),!zn($.cursorPos)&&!gi(e.cursorPos,$.cursorPos)&&(G.selection={anchor:$.cursorPos??0,head:$.cursorPos??0},o.focus());async function L(Q,ie,J){G.effects=G.effects??[];const fe=G.effects;let z=!0;for(const oe of ie){const ge=$[oe],We=e[oe];if(!zn(ge)&&(z=!1,!gi(ge,We)))return fe.push(Q.reconfigure(await J($)))}z&&fe.push(Q.reconfigure([]))}await Promise.all([L(h,["setup"],Xh),L(c,["lang"],Zh),L(u,["useTabs","tabSize"],ec),L(f,["theme"],Qh),L(p,["extensions"],ic),L(d,["readonly"],nc),L(g,["autocomplete"],tc),L(m,["lint","lintOptions"],sc)]),o.dispatch(G);const{kind:V="debounce",duration:H=50}=$.onChangeBehavior??{kind:"debounce",duration:50};(!gi((O=e.onChangeBehavior)==null?void 0:O.kind,V)||!gi((T=e.onChangeBehavior)==null?void 0:T.duration,H))&&(D=V==="debounce"?rc(E,H):lc(E,H)),e=$,a=await v($)},destroy(){l.then(()=>o==null?void 0:o.destroy())}}};async function Xh(s){const{setup:e}=s;if(zn(e))return[];if(e==="basic")return(await Cn(()=>import("./basic-setup-BJSL5TOQ.3bdbf0b2.js"),["_app/immutable/chunks/basic-setup-BJSL5TOQ.3bdbf0b2.js","_app/immutable/chunks/index.db8309a6.js","_app/immutable/chunks/index.81a2dd23.js"])).default(s);if(e==="minimal")return(await Cn(()=>import("./minimal-setup-Y523JPZT.80ed6916.js"),[])).default(s);throw new Error("`setup` can only be `basic` or `minimal`. If you wish to provide another setup, pass through `extensions` prop.")}async function Zh({lang:s,langMap:e}){if(zn(s))return[];if(typeof s=="string"){if(!e)throw new Error("`langMap` is required when `lang` is a string.");if(!(s in e))throw new Error(`Language "${s}" is not defined in \`langMap\`.`);return await e[s]()}return s}function Qh({theme:s,styles:e}){return[s,e&&ce.theme(e)].filter(Boolean)}async function ec({useTabs:s=!1,tabSize:e=2}){return[ye.tabSize.of(e),Pr.of(s?" ":" ".repeat(e))]}async function tc({autocomplete:s}){if(zn(s))return[];const{autocompletion:e}=await Cn(()=>import("./index.db8309a6.js"),[]);return e(typeof s=="object"&&s?s:{})}function nc({readonly:s}){return ye.readOnly.of(!!s)}function ic({extensions:s}){return s??[]}async function sc({lint:s,lintOptions:e={}}){if(zn(s))return[];if(!Qb(s))throw new Error("`lint` must be a function.");const{linter:t}=await Cn(()=>import("./index.81a2dd23.js").then(n=>n.i),[]);return t(s,e)}var gi=(s,e)=>s===e,zn=s=>typeof s>"u",Qb=s=>typeof s=="function";function rc(s,e,t=!1){let n;return function(...r){const l=this;n?clearTimeout(n):t&&s.apply(l,r),n=setTimeout(o,e||100);function o(){t||s.apply(l,r),n=null}}}function lc(s,e){let t,n=!1;function i(r){if(t){s.apply(r,t),setTimeout(i,e,r),t=null;return}n=!1}return function(...l){const o=this;if(n){t=l;return}s.apply(o,l),n=!0,setTimeout(i,e,o)}}function e_(s){let e;const t=s[7].default,n=Mt(t,s,s[6],null);return{c(){n&&n.c()},l(i){n&&n.l(i)},m(i,r){n&&n.m(i,r),e=!0},p(i,r){n&&n.p&&(!e||r&64)&&Tt(n,t,i,i[6],e?Dt(t,i[6],r,null):Et(i[6]),null)},i(i){e||(S(n,i),e=!0)},o(i){M(n,i),e=!1},d(i){n&&n.d(i)}}}function t_(s){let e,t=s[4](s[1])+"",n,i,r;return{c(){e=A("button"),n=R(t),this.h()},l(l){e=C(l,"BUTTON",{class:!0});var o=P(e);n=I(o,t),o.forEach(b),this.h()},h(){k(e,"class","svelte-1w145fq"),ne(e,"navigable",s[1].filename)},m(l,o){x(l,e,o),y(e,n),i||(r=[ue(e,"click",s[8]),ue(e,"keyup",s[9])],i=!0)},p(l,o){o&2&&t!==(t=l[4](l[1])+"")&&re(n,t),o&2&&ne(e,"navigable",l[1].filename)},i:de,o:de,d(l){l&&b(e),i=!1,Dn(r)}}}function n_(s){let e,t,n,i,r,l;const o=[t_,e_],a=[];function h(c,f){return c[1]?0:1}return t=h(s),n=a[t]=o[t](s),{c(){e=A("div"),n.c(),this.h()},l(c){e=C(c,"DIV",{class:!0});var f=P(e);n.l(f),f.forEach(b),this.h()},h(){k(e,"class",i="message "+s[0]+" svelte-1w145fq"),ne(e,"truncate",s[2])},m(c,f){x(c,e,f),a[t].m(e,null),l=!0},p(c,[f]){let u=t;t=h(c),t===u?a[t].p(c,f):(we(),M(a[u],1,1,()=>{a[u]=null}),Se(),n=a[t],n?n.p(c,f):(n=a[t]=o[t](c),n.c()),S(n,1),n.m(e,null)),(!l||f&1&&i!==(i="message "+c[0]+" svelte-1w145fq"))&&k(e,"class",i),(!l||f&5)&&ne(e,"truncate",c[2])},i(c){l||(S(n),c&&Cr(()=>{l&&(r||(r=oa(e,ha,{duration:100},!0)),r.run(1))}),l=!0)},o(c){M(n),c&&(r||(r=oa(e,ha,{duration:100},!1)),r.run(0)),l=!1},d(c){c&&b(e),a[t].d(),c&&r&&r.end()}}}function i_(s,e,t){let{$$slots:n={},$$scope:i}=e,{kind:r="info"}=e,{details:l=void 0}=e,{filename:o=void 0}=e,{truncate:a=!1}=e;const{go_to_warning_pos:h}=ai();function c(d){let p=d.message||"[missing message]",g=[];return d.filename&&d.filename!==o&&g.push(d.filename),d.start&&g.push(d.start.line,d.start.column),p+(g.length?` (${g.join(":")})`:"")}const f=()=>h(l),u=d=>d.key===" "&&h(l);return s.$$set=d=>{"kind"in d&&t(0,r=d.kind),"details"in d&&t(1,l=d.details),"filename"in d&&t(5,o=d.filename),"truncate"in d&&t(2,a=d.truncate),"$$scope"in d&&t(6,i=d.$$scope)},[r,l,a,h,c,o,i,n,f,u]}class Pi extends _e{constructor(e){super(),ke(this,e,i_,n_,be,{kind:0,details:1,filename:5,truncate:2})}}const s_=ce.theme({"&":{color:"var(--sk-code-base)",backgroundColor:"transparent"},".cm-content":{caretColor:"var(--sk-theme-3)"},".cm-cursor, .cm-dropCursor":{borderLeftColor:"var(--sk-theme-3)"},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:"var(--sk-selection-color)"},".cm-panels":{backgroundColor:"var(--sk-back-2)",color:"var(--sk-text-2)"},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"var(--sk-theme-2)"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#6699ff0b"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:"var(--sk-back-3)",border:"none"},".cm-activeLineGutter":{backgroundColor:"var(--sk-back-4)"},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:"var(--sk-back-3)"},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:"var(--sk-back-3)",borderBottomColor:"var(--sk-back-3)"},".cm-tooltip-autocomplete":{color:"var(--sk-text-2) !important",perspective:"1px","& > ul > li[aria-selected]":{backgroundColor:"var(--sk-back-4)",color:"var(--sk-text-1) !important"}}},{dark:!0}),r_=vs.define([{tag:N.keyword,color:"var(--sk-code-keyword)"},{tag:[N.name,N.deleted,N.character,N.propertyName,N.macroName],color:"var(--sk-code-base)"},{tag:[N.function(N.variableName),N.labelName],color:"var(--sk-code-tags)"},{tag:[N.color,N.constant(N.name),N.standard(N.name)],color:"var(--sk-code-base)"},{tag:[N.definition(N.name),N.separator],color:"var(--sk-code-base)"},{tag:[N.typeName,N.className,N.number,N.changed,N.annotation,N.modifier,N.self,N.namespace],color:"var(--sk-code-tags)"},{tag:[N.operator,N.operatorKeyword,N.url,N.escape,N.regexp,N.link,N.special(N.string)],color:"var(--sk-code-base)"},{tag:[N.meta,N.comment],color:"var(--sk-code-comment)"},{tag:N.strong,fontWeight:"bold"},{tag:N.emphasis,fontStyle:"italic"},{tag:N.strikethrough,textDecoration:"line-through"},{tag:N.link,color:"var(--sk-code-base)",textDecoration:"underline"},{tag:N.heading,fontWeight:"bold",color:"var(--sk-text-1)"},{tag:[N.atom,N.bool],color:"var(--sk-code-atom)"},{tag:[N.processingInstruction,N.string,N.inserted],color:"var(--sk-code-string)"},{tag:N.invalid,color:"#ff008c"}]),oc=[s_,C1(r_)];function ac(s){let e,t,n,i,r,l;return r=new Pi({props:{kind:"info",$$slots:{default:[l_]},$$scope:{ctx:s}}}),{c(){e=A("pre"),t=R(s[5]),n=X(),i=A("div"),W(r.$$.fragment),this.h()},l(o){e=C(o,"PRE",{style:!0,class:!0});var a=P(e);t=I(a,s[5]),a.forEach(b),n=Z(o),i=C(o,"DIV",{style:!0});var h=P(i);K(r.$$.fragment,h),h.forEach(b),this.h()},h(){it(e,"position","absolute"),it(e,"left","0"),it(e,"top","0"),k(e,"class","svelte-1s16tri"),it(i,"position","absolute"),it(i,"width","100%"),it(i,"bottom","0")},m(o,a){x(o,e,a),y(e,t),x(o,n,a),x(o,i,a),q(r,i,null),l=!0},p(o,a){(!l||a[0]&32)&&re(t,o[5]);const h={};a[1]&4&&(h.$$scope={dirty:a,ctx:o}),r.$set(h)},i(o){l||(S(r.$$.fragment,o),l=!0)},o(o){M(r.$$.fragment,o),l=!1},d(o){o&&(b(e),b(n),b(i)),U(r)}}}function l_(s){let e;return{c(){e=R("loading editor...")},l(t){e=I(t,"loading editor...")},m(t,n){x(t,e,n)},d(t){t&&b(e)}}}function o_(s){let e,t,n,i,r,l=!s[4].view&&ac(s);return{c(){e=A("div"),l&&l.c(),this.h()},l(o){e=C(o,"DIV",{class:!0});var a=P(e);l&&l.l(a),a.forEach(b),this.h()},h(){k(e,"class","codemirror-container svelte-1s16tri")},m(o,a){x(o,e,a),l&&l.m(e,null),n=!0,i||(r=[Pf(t=Zb.call(null,e,{value:s[5],setup:"basic",useTabs:s[2],tabSize:2,theme:oc,readonly:s[1],cursorPos:s[7],lang:s[6],langMap:{js:hc,json:cc,md:fc,css:uc,svelte:dc},lint:s[0],lintOptions:{delay:200},autocomplete:s[3],extensions:[s[10]],instanceStore:s[9]})),ue(e,"codemirror:textChange",s[25])],i=!0)},p(o,a){o[4].view?l&&(we(),M(l,1,1,()=>{l=null}),Se()):l?(l.p(o,a),a[0]&16&&S(l,1)):(l=ac(o),l.c(),S(l,1),l.m(e,null)),t&&Bf(t.update)&&a[0]&239&&t.update.call(null,{value:o[5],setup:"basic",useTabs:o[2],tabSize:2,theme:oc,readonly:o[1],cursorPos:o[7],lang:o[6],langMap:{js:hc,json:cc,md:fc,css:uc,svelte:dc},lint:o[0],lintOptions:{delay:200},autocomplete:o[3],extensions:[o[10]],instanceStore:o[9]})},i(o){n||(S(l),n=!0)},o(o){M(l),n=!1},d(o){o&&b(e),l&&l.d(),i=!1,Dn(r)}}}const rp=lt(0),hc=()=>Cn(()=>import("./index.3f5bb107.js").then(s=>s.i),["_app/immutable/chunks/index.3f5bb107.js","_app/immutable/chunks/index.f562a38b.js","_app/immutable/chunks/scheduler.6381a9b9.js","_app/immutable/chunks/index.db8309a6.js"]).then(s=>s.javascript()),cc=()=>Cn(()=>import("./index.a242dc73.js"),["_app/immutable/chunks/index.a242dc73.js","_app/immutable/chunks/index.f562a38b.js","_app/immutable/chunks/scheduler.6381a9b9.js"]).then(s=>s.json()),fc=()=>Cn(()=>import("./index.4cde5aa3.js"),["_app/immutable/chunks/index.4cde5aa3.js","_app/immutable/chunks/index.db8309a6.js","_app/immutable/chunks/index.c6f70c56.js","_app/immutable/chunks/index.f562a38b.js","_app/immutable/chunks/scheduler.6381a9b9.js","_app/immutable/chunks/index.b1c4f1af.js","_app/immutable/chunks/index.3f5bb107.js"]).then(s=>s.markdown()),uc=()=>Cn(()=>import("./index.b1c4f1af.js"),["_app/immutable/chunks/index.b1c4f1af.js","_app/immutable/chunks/index.f562a38b.js","_app/immutable/chunks/scheduler.6381a9b9.js"]).then(s=>s.css()),dc=()=>Cn(()=>import("./index.9f5669ea.js"),["_app/immutable/chunks/index.9f5669ea.js","_app/immutable/chunks/index.f562a38b.js","_app/immutable/chunks/scheduler.6381a9b9.js","_app/immutable/chunks/index.b1c4f1af.js","_app/immutable/chunks/index.3f5bb107.js","_app/immutable/chunks/index.db8309a6.js","_app/immutable/chunks/index.c6f70c56.js"]).then(s=>s.svelte());function a_(s,e,t){let n,{errorLoc:i=null}=e,{diagnostics:r=void 0}=e,{readonly:l=!1}=e,{tab:o=!0}=e,{autocomplete:a=!0}=e;const h=Mr();let c="",f="svelte";async function u(z){d(z)}async function d(z){if(n.view&&(await ns(),z.lang&&z.lang!==f&&t(6,f=z.lang),z.code!==void 0)){const{scrollLeft:oe,scrollTop:ge}=n.view.scrollDOM;t(5,c=z.code),ze(V,n.view.scrollDOM.scrollTop=ge,n),ze(V,n.view.scrollDOM.scrollLeft=oe,n)}}function p(z){t(7,ie=z)}let g;const m=new Promise(z=>t(23,g=z));function _(){var z;(z=n.view)==null||z.requestMeasure()}function v(){var z;(z=n.view)==null||z.focus()}function E(){var z;return(z=n.view)==null?void 0:z.state.toJSON({history:Fh})}function w(z){var oe;n.view&&(n.view.setState(ye.fromJSON(z,{extensions:Q,doc:z.doc},{history:Fh})),(oe=n.view)==null||oe.dispatch({changes:{from:0,to:n.view.state.doc.length,insert:z.doc},effects:[Pe.reconfigure.of(n.extensions??[])]}))}async function B(){var z,oe;await ns(),(z=n.view)==null||z.setState(ye.create({extensions:Q,doc:""})),(oe=n.view)==null||oe.dispatch({changes:{from:0,to:n.view.state.doc.length,insert:""},effects:[Pe.reconfigure.of(n.extensions??[])]})}const D=Pe.define(),$=Pt.define({create(){return Re.none},update(z,oe){z=z.map(oe.changes);for(let ge of oe.effects)ge.is(D)&&(z=z.update({add:ge.value,sort:!0}));return z},provide:z=>ce.decorations.from(z)});function G({from:z,to:oe,className:ge="mark-text"}){var Ee;const We=Re.mark({class:ge});(Ee=n.view)==null||Ee.dispatch({effects:[Pe.appendConfig.of($),D.of([We.range(z,oe)])]})}function L(){var z;(z=n.view)==null||z.dispatch({effects:Pe.reconfigure.of(n.extensions??[])})}const V=Xb();Ce(s,V,z=>t(4,n=z));let H,O,T=!1,Q=[],ie=0;const J=ce.updateListener.of(z=>{z.selectionSet&&rp.set(z.state.selection.main.head)}),fe=({detail:z})=>{t(5,c=z),h("change",{value:c})};return s.$$set=z=>{"errorLoc"in z&&t(11,i=z.errorLoc),"diagnostics"in z&&t(0,r=z.diagnostics),"readonly"in z&&t(1,l=z.readonly),"tab"in z&&t(2,o=z.tab),"autocomplete"in z&&t(3,a=z.autocomplete)},s.$$.update=()=>{s.$$.dirty[0]&8388624&&n.view&&g(),s.$$.dirty[0]&16&&n.view&&H&&O&&_(),s.$$.dirty[0]&16779264&&i&&(G({from:i.character,to:i.character+1,className:"error-loc"}),i.line)},[r,l,o,a,n,c,f,ie,h,V,J,i,u,d,p,m,_,v,E,w,B,G,L,g,T,fe]}class jr extends _e{constructor(e){super(),ke(this,e,a_,o_,be,{errorLoc:11,diagnostics:0,readonly:1,tab:2,autocomplete:3,set:12,update:13,setCursor:14,isReady:15,resize:16,focus:17,getEditorState:18,setEditorState:19,clearEditorState:20,markText:21,unmarkText:22},null,[-1,-1])}get set(){return this.$$.ctx[12]}get update(){return this.$$.ctx[13]}get setCursor(){return this.$$.ctx[14]}get isReady(){return this.$$.ctx[15]}get resize(){return this.$$.ctx[16]}get focus(){return this.$$.ctx[17]}get getEditorState(){return this.$$.ctx[18]}get setEditorState(){return this.$$.ctx[19]}get clearEditorState(){return this.$$.ctx[20]}get markText(){return this.$$.ctx[21]}get unmarkText(){return this.$$.ctx[22]}}function pc(s,e,t){const n=s.slice();return n[17]=e[t],n}function h_(s){let e,t,n=Te(s[3]),i=[];for(let l=0;lM(i[l],1,1,()=>{i[l]=null});return{c(){for(let l=0;l0?1:-1}return~(l=u(s))&&(o=f[l]=c[l](s)),{c(){e=A("div"),t=A("div"),W(n.$$.fragment),i=X(),r=A("div"),o&&o.c(),this.h()},l(d){e=C(d,"DIV",{class:!0});var p=P(e);t=C(p,"DIV",{class:!0,translate:!0});var g=P(t);K(n.$$.fragment,g),g.forEach(b),i=Z(p),r=C(p,"DIV",{class:!0});var m=P(r);o&&o.l(m),m.forEach(b),p.forEach(b),this.h()},h(){k(t,"class","editor notranslate svelte-62nfk2"),k(t,"translate","no"),k(r,"class","info svelte-62nfk2"),k(e,"class","editor-wrapper svelte-62nfk2")},m(d,p){x(d,e,p),y(e,t),q(n,t,null),y(e,i),y(e,r),~l&&f[l].m(r,null),a=!0},p(d,[p]){const g={};p&1&&(g.errorLoc=d[0]),p&2&&(g.autocomplete=d[1]),n.$set(g);let m=l;l=u(d),l===m?~l&&f[l].p(d,p):(o&&(we(),M(f[m],1,1,()=>{f[m]=null}),Se()),~l?(o=f[l],o?o.p(d,p):(o=f[l]=c[l](d),o.c()),S(o,1),o.m(r,null)):o=null)},i(d){a||(S(n.$$.fragment,d),S(o),a=!0)},o(d){M(n.$$.fragment,d),M(o),a=!1},d(d){d&&b(e),s[15](null),U(n),~l&&f[l].d()}}}function u_(s,e,t){let n,i,r,l,o,{errorLoc:a=null}=e,{autocomplete:h}=e;function c(){o==null||o.focus()}const{bundle:f,handle_change:u,module_editor:d,selected:p,bundling:g}=ai();Ce(s,f,w=>t(14,l=w)),Ce(s,d,w=>t(5,o=w)),Ce(s,p,w=>t(13,i=w)),Ce(s,g,w=>t(16,r=w));let m=null,_=[];async function v(){return await r,[...i&&(m==null?void 0:m.filename)===Be(i)?[{from:m.start.character,to:m.end.character,severity:"error",message:m.message}]:[],..._.filter(w=>i&&w.filename===Be(i)).map(w=>({from:w.start.character,to:w.end.character,severity:"warning",message:w.message}))]}function E(w){Xe[w?"unshift":"push"](()=>{o=w,d.set(o)})}return s.$$set=w=>{"errorLoc"in w&&t(0,a=w.errorLoc),"autocomplete"in w&&t(1,h=w.autocomplete)},s.$$.update=()=>{s.$$.dirty&8192&&t(4,n=(i==null?void 0:i.name)+"."+(i==null?void 0:i.type)),s.$$.dirty&16384&&l&&(t(2,m=l==null?void 0:l.error),t(3,_=(l==null?void 0:l.warnings)??[]))},[a,h,m,_,n,o,f,u,d,p,g,v,c,i,l,E]}class d_ extends _e{constructor(e){super(),ke(this,e,u_,f_,be,{errorLoc:0,autocomplete:1,focus:12})}get focus(){return this.$$.ctx[12]}}function p_(s){let e,t,n;return{c(){e=A("input"),this.h()},l(i){e=C(i,"INPUT",{type:!0,class:!0}),this.h()},h(){k(e,"type","checkbox"),k(e,"class","svelte-1ja98dc")},m(i,r){x(i,e,r),e.checked=s[0],t||(n=ue(e,"change",s[1]),t=!0)},p(i,[r]){r&1&&(e.checked=i[0])},i:de,o:de,d(i){i&&b(e),t=!1,n()}}}function g_(s,e,t){let{checked:n=!1}=e;function i(){n=this.checked,t(0,n)}return s.$$set=r=>{"checked"in r&&t(0,n=r.checked)},[n,i]}class mi extends _e{constructor(e){super(),ke(this,e,g_,p_,be,{checked:0})}}function m_(s){let e,t,n="input",i,r,l,o,a,h,c="output",f;function u(p){s[1](p)}let d={};return s[0]!==void 0&&(d.checked=s[0]),l=new mi({props:d}),Xe.push(()=>ln(l,"checked",u)),{c(){e=A("label"),t=A("span"),t.textContent=n,i=X(),r=A("span"),W(l.$$.fragment),a=X(),h=A("span"),h.textContent=c,this.h()},l(p){e=C(p,"LABEL",{class:!0});var g=P(e);t=C(g,"SPAN",{style:!0,class:!0,"data-svelte-h":!0}),Me(t)!=="svelte-iwcvz2"&&(t.textContent=n),i=Z(g),r=C(g,"SPAN",{style:!0,class:!0});var m=P(r);K(l.$$.fragment,m),m.forEach(b),a=Z(g),h=C(g,"SPAN",{class:!0,"data-svelte-h":!0}),Me(h)!=="svelte-4pjs0t"&&(h.textContent=c),g.forEach(b),this.h()},h(){it(t,"text-align","right"),k(t,"class","svelte-l6oyfu"),ne(t,"active",!s[0]),it(r,"display","grid"),it(r,"place-items","center"),k(r,"class","svelte-l6oyfu"),k(h,"class","svelte-l6oyfu"),ne(h,"active",s[0]),k(e,"class","input-output-toggle svelte-l6oyfu")},m(p,g){x(p,e,g),y(e,t),y(e,i),y(e,r),q(l,r,null),y(e,a),y(e,h),f=!0},p(p,[g]){(!f||g&1)&&ne(t,"active",!p[0]);const m={};!o&&g&1&&(o=!0,m.checked=p[0],rn(()=>o=!1)),l.$set(m),(!f||g&1)&&ne(h,"active",p[0])},i(p){f||(S(l.$$.fragment,p),f=!0)},o(p){M(l.$$.fragment,p),f=!1},d(p){p&&b(e),U(l)}}}function b_(s,e,t){let{checked:n=!1}=e;function i(r){n=r,t(0,n)}return s.$$set=r=>{"checked"in r&&t(0,n=r.checked)},[n,i]}class __ extends _e{constructor(e){super(),ke(this,e,b_,m_,be,{checked:0})}}function Ho(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}let Kn=Ho();function lp(s){Kn=s}const op=/[&<>"']/,k_=new RegExp(op.source,"g"),ap=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,v_=new RegExp(ap.source,"g"),y_={"&":"&","<":"<",">":">",'"':""","'":"'"},mc=s=>y_[s];function ot(s,e){if(e){if(op.test(s))return s.replace(k_,mc)}else if(ap.test(s))return s.replace(v_,mc);return s}const w_=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function hp(s){return s.replace(w_,(e,t)=>(t=t.toLowerCase(),t==="colon"?":":t.charAt(0)==="#"?t.charAt(1)==="x"?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""))}const S_=/(^|[^\[])\^/g;function $e(s,e){s=typeof s=="string"?s:s.source,e=e||"";const t={replace:(n,i)=>(i=i.source||i,i=i.replace(S_,"$1"),s=s.replace(n,i),t),getRegex:()=>new RegExp(s,e)};return t}const x_=/[^\w:]/g,A_=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function bc(s,e,t){if(s){let n;try{n=decodeURIComponent(hp(t)).replace(x_,"").toLowerCase()}catch{return null}if(n.indexOf("javascript:")===0||n.indexOf("vbscript:")===0||n.indexOf("data:")===0)return null}e&&!A_.test(t)&&(t=E_(e,t));try{t=encodeURI(t).replace(/%25/g,"%")}catch{return null}return t}const Fs={},C_=/^[^:]+:\/*[^/]*$/,M_=/^([^:]+:)[\s\S]*$/,T_=/^([^:]+:\/*[^/]*)[\s\S]*$/;function E_(s,e){Fs[" "+s]||(C_.test(s)?Fs[" "+s]=s+"/":Fs[" "+s]=er(s,"/",!0)),s=Fs[" "+s];const t=s.indexOf(":")===-1;return e.substring(0,2)==="//"?t?e:s.replace(M_,"$1")+e:e.charAt(0)==="/"?t?e:s.replace(T_,"$1")+e:s+e}const vr={exec:function(){}};function _c(s,e){const t=s.replace(/\|/g,(r,l,o)=>{let a=!1,h=l;for(;--h>=0&&o[h]==="\\";)a=!a;return a?"|":" |"}),n=t.split(/ \|/);let i=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),n.length>e)n.splice(e);else for(;n.length{const r=i.match(/^\s+/);if(r===null)return i;const[l]=r;return l.length>=n.length?i.slice(n.length):i}).join(` `)}class yr{constructor(e){this.options=e||Kn}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const n=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:er(n,` `)}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const n=t[0],i=P_(n,t[3]||"");return{type:"code",raw:n,lang:t[2]?t[2].trim().replace(this.rules.inline._escapes,"$1"):t[2],text:i}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let n=t[2].trim();if(/#$/.test(n)){const i=er(n,"#");(this.options.pedantic||!i||/ $/.test(i))&&(n=i.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){const n=t[0].replace(/^ *>[ \t]?/gm,""),i=this.lexer.state.top;this.lexer.state.top=!0;const r=this.lexer.blockTokens(n);return this.lexer.state.top=i,{type:"blockquote",raw:t[0],tokens:r,text:n}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n,i,r,l,o,a,h,c,f,u,d,p,g=t[1].trim();const m=g.length>1,_={type:"list",raw:"",ordered:m,start:m?+g.slice(0,-1):"",loose:!1,items:[]};g=m?`\\d{1,9}\\${g.slice(-1)}`:`\\${g}`,this.options.pedantic&&(g=m?g:"[*+-]");const v=new RegExp(`^( {0,3}${g})((?:[ ][^\\n]*)?(?:\\n|$))`);for(;e&&(p=!1,!(!(t=v.exec(e))||this.rules.block.hr.test(e)));){if(n=t[0],e=e.substring(n.length),c=t[2].split(` diff --git a/docs/_app/immutable/chunks/Markdown.6ab83375.js b/docs/_app/immutable/chunks/Markdown.6ab83375.js new file mode 100644 index 0000000..55e0a79 --- /dev/null +++ b/docs/_app/immutable/chunks/Markdown.6ab83375.js @@ -0,0 +1 @@ +import{_ as f}from"./preload-helper.07ba51e7.js";import{s as T,f as E,a as $,g as w,h as P,c as C,d as u,j as A,i as p,w as L,$ as M,l as q,m as S,n as j,x as z,r as h,C as F,E as G,F as H,G as N,q as g,e as k}from"./scheduler.6381a9b9.js";import{S as B,i as J,g as O,t as d,c as R,a as m,b,d as K,m as D,e as I}from"./index.cf31950d.js";const et={home:async()=>(await f(()=>import("./page.a0172ab0.js"),["_app/immutable/chunks/page.a0172ab0.js","_app/immutable/chunks/scheduler.6381a9b9.js","_app/immutable/chunks/index.cf31950d.js","_app/immutable/chunks/SveltyPicker.6ef9562c.js","_app/immutable/chunks/each.31dbf577.js","_app/immutable/chunks/index.a4c1e395.js","_app/immutable/chunks/index.93a0d223.js","_app/immutable/assets/SveltyPicker.60a34377.css"])).default,properties:async()=>(await f(()=>import("./page.242d2811.js"),["_app/immutable/chunks/page.242d2811.js","_app/immutable/chunks/scheduler.6381a9b9.js","_app/immutable/chunks/index.cf31950d.js"])).default,principles:async()=>(await f(()=>import("./page.a042392f.js"),["_app/immutable/chunks/page.a042392f.js","_app/immutable/chunks/scheduler.6381a9b9.js","_app/immutable/chunks/index.cf31950d.js"])).default,formatting:async()=>(await f(()=>import("./page.5c2f0afa.js"),["_app/immutable/chunks/page.5c2f0afa.js","_app/immutable/chunks/scheduler.6381a9b9.js","_app/immutable/chunks/index.cf31950d.js"])).default,"auto-commit":async()=>(await f(()=>import("./page.5f2a88df.js"),["_app/immutable/chunks/page.5f2a88df.js","_app/immutable/chunks/scheduler.6381a9b9.js","_app/immutable/chunks/index.cf31950d.js"])).default,"disabling-dates":async()=>(await f(()=>import("./page.5c14cbc7.js"),["_app/immutable/chunks/page.5c14cbc7.js","_app/immutable/chunks/scheduler.6381a9b9.js","_app/immutable/chunks/index.cf31950d.js"])).default,slots:async()=>(await f(()=>import("./page.1d064d61.js"),["_app/immutable/chunks/page.1d064d61.js","_app/immutable/chunks/scheduler.6381a9b9.js","_app/immutable/chunks/index.cf31950d.js"])).default,events:async()=>(await f(()=>import("./page.33941c4f.js"),["_app/immutable/chunks/page.33941c4f.js","_app/immutable/chunks/scheduler.6381a9b9.js","_app/immutable/chunks/index.cf31950d.js"])).default,theme:async()=>(await f(()=>import("./page.8183975a.js"),["_app/immutable/chunks/page.8183975a.js","_app/immutable/chunks/scheduler.6381a9b9.js","_app/immutable/chunks/index.cf31950d.js"])).default,localization:async()=>(await f(()=>import("./page.23b23b85.js"),["_app/immutable/chunks/page.23b23b85.js","_app/immutable/chunks/scheduler.6381a9b9.js","_app/immutable/chunks/index.cf31950d.js","_app/immutable/chunks/index.a4c1e395.js"])).default,"global-config":async()=>(await f(()=>import("./page.dac8ab59.js"),["_app/immutable/chunks/page.dac8ab59.js","_app/immutable/chunks/scheduler.6381a9b9.js","_app/immutable/chunks/index.cf31950d.js"])).default};function V(l){let t,n;return{c(){t=E("h1"),n=q(l[0])},l(e){t=w(e,"H1",{});var a=P(t);n=S(a,l[0]),a.forEach(u)},m(e,a){p(e,t,a),L(t,n)},p(e,a){a&1&&j(n,e[0])},d(e){e&&u(t)}}}function Q(l){let t,n="loading ...";return{c(){t=E("div"),t.textContent=n,this.h()},l(e){t=w(e,"DIV",{class:!0,"data-svelte-h":!0}),z(t)!=="svelte-va05nw"&&(t.textContent=n),this.h()},h(){A(t,"class","text-center")},m(e,a){p(e,t,a)},p:h,i:h,o:h,d(e){e&&u(t)}}}function U(l){let t;const n=l[4].default,e=F(n,l,l[3],null);return{c(){e&&e.c()},l(a){e&&e.l(a)},m(a,_){e&&e.m(a,_),t=!0},p(a,_){e&&e.p&&(!t||_&8)&&G(e,n,a,a[3],t?N(n,a[3],_,null):H(a[3]),null)},i(a){t||(m(e,a),t=!0)},o(a){d(e,a),t=!1},d(a){e&&e.d(a)}}}function W(l){let t,n,e;var a=l[1];function _(i,r){return{}}return a&&(t=g(a,_())),{c(){t&&b(t.$$.fragment),n=k()},l(i){t&&K(t.$$.fragment,i),n=k()},m(i,r){t&&D(t,i,r),p(i,n,r),e=!0},p(i,r){if(r&2&&a!==(a=i[1])){if(t){O();const o=t;d(o.$$.fragment,1,0,()=>{I(o,1)}),R()}a?(t=g(a,_()),b(t.$$.fragment),m(t.$$.fragment,1),D(t,n.parentNode,n)):t=null}},i(i){e||(t&&m(t.$$.fragment,i),e=!0)},o(i){t&&d(t.$$.fragment,i),e=!1},d(i){i&&u(n),t&&I(t,i)}}}function X(l){let t,n,e,a,_,i=l[0]&&V(l);const r=[W,U,Q],o=[];function y(s,c){return s[1]?0:s[2].default?1:2}return e=y(l),a=o[e]=r[e](l),{c(){t=E("div"),i&&i.c(),n=$(),a.c(),this.h()},l(s){t=w(s,"DIV",{class:!0});var c=P(t);i&&i.l(c),n=C(c),a.l(c),c.forEach(u),this.h()},h(){A(t,"class","markdown-container svelte-1i37ee3")},m(s,c){p(s,t,c),i&&i.m(t,null),L(t,n),o[e].m(t,null),_=!0},p(s,[c]){s[0]?i?i.p(s,c):(i=V(s),i.c(),i.m(t,n)):i&&(i.d(1),i=null);let v=e;e=y(s),e===v?o[e].p(s,c):(O(),d(o[v],1,1,()=>{o[v]=null}),R(),a=o[e],a?a.p(s,c):(a=o[e]=r[e](s),a.c()),m(a,1),a.m(t,null))},i(s){_||(m(a),_=!0)},o(s){d(a),_=!1},d(s){s&&u(t),i&&i.d(),o[e].d()}}}function Y(l,t,n){let{$$slots:e={},$$scope:a}=t;const _=M(e);let{title:i}=t,{content:r}=t;return l.$$set=o=>{"title"in o&&n(0,i=o.title),"content"in o&&n(1,r=o.content),"$$scope"in o&&n(3,a=o.$$scope)},[i,r,_,a,e]}class at extends B{constructor(t){super(),J(this,t,Y,X,T,{title:0,content:1})}}export{at as M,et as f}; diff --git a/docs/_app/immutable/chunks/Markdown.9ba80254.js b/docs/_app/immutable/chunks/Markdown.9ba80254.js deleted file mode 100644 index a405ae2..0000000 --- a/docs/_app/immutable/chunks/Markdown.9ba80254.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as f}from"./preload-helper.07ba51e7.js";import{s as T,f as E,a as $,g as w,h as P,c as C,d as u,j as A,i as p,w as L,$ as M,l as q,m as S,n as j,x as z,r as h,C as F,E as G,F as H,G as N,q as g,e as k}from"./scheduler.3ecd3668.js";import{S as B,i as J,g as O,t as d,c as R,a as m,b,d as K,m as D,e as I}from"./index.bf4ded2a.js";const et={home:async()=>(await f(()=>import("./page.11069e80.js"),["_app/immutable/chunks/page.11069e80.js","_app/immutable/chunks/scheduler.3ecd3668.js","_app/immutable/chunks/index.bf4ded2a.js","_app/immutable/chunks/SveltyPicker.69e34b19.js","_app/immutable/chunks/each.514658f0.js","_app/immutable/chunks/index.ae80b773.js","_app/immutable/chunks/index.d6de77cf.js","_app/immutable/assets/SveltyPicker.c6e238a8.css"])).default,properties:async()=>(await f(()=>import("./page.41ff9a24.js"),["_app/immutable/chunks/page.41ff9a24.js","_app/immutable/chunks/scheduler.3ecd3668.js","_app/immutable/chunks/index.bf4ded2a.js"])).default,principles:async()=>(await f(()=>import("./page.b7be5d05.js"),["_app/immutable/chunks/page.b7be5d05.js","_app/immutable/chunks/scheduler.3ecd3668.js","_app/immutable/chunks/index.bf4ded2a.js"])).default,formatting:async()=>(await f(()=>import("./page.964a6cee.js"),["_app/immutable/chunks/page.964a6cee.js","_app/immutable/chunks/scheduler.3ecd3668.js","_app/immutable/chunks/index.bf4ded2a.js"])).default,"auto-commit":async()=>(await f(()=>import("./page.9214c512.js"),["_app/immutable/chunks/page.9214c512.js","_app/immutable/chunks/scheduler.3ecd3668.js","_app/immutable/chunks/index.bf4ded2a.js"])).default,"disabling-dates":async()=>(await f(()=>import("./page.f88fb71b.js"),["_app/immutable/chunks/page.f88fb71b.js","_app/immutable/chunks/scheduler.3ecd3668.js","_app/immutable/chunks/index.bf4ded2a.js"])).default,slots:async()=>(await f(()=>import("./page.7b242bcf.js"),["_app/immutable/chunks/page.7b242bcf.js","_app/immutable/chunks/scheduler.3ecd3668.js","_app/immutable/chunks/index.bf4ded2a.js"])).default,events:async()=>(await f(()=>import("./page.38472c6d.js"),["_app/immutable/chunks/page.38472c6d.js","_app/immutable/chunks/scheduler.3ecd3668.js","_app/immutable/chunks/index.bf4ded2a.js"])).default,theme:async()=>(await f(()=>import("./page.a5676280.js"),["_app/immutable/chunks/page.a5676280.js","_app/immutable/chunks/scheduler.3ecd3668.js","_app/immutable/chunks/index.bf4ded2a.js"])).default,localization:async()=>(await f(()=>import("./page.c6ce9501.js"),["_app/immutable/chunks/page.c6ce9501.js","_app/immutable/chunks/scheduler.3ecd3668.js","_app/immutable/chunks/index.bf4ded2a.js","_app/immutable/chunks/index.ae80b773.js"])).default,"global-config":async()=>(await f(()=>import("./page.393f2aab.js"),["_app/immutable/chunks/page.393f2aab.js","_app/immutable/chunks/scheduler.3ecd3668.js","_app/immutable/chunks/index.bf4ded2a.js"])).default};function V(l){let t,n;return{c(){t=E("h1"),n=q(l[0])},l(e){t=w(e,"H1",{});var a=P(t);n=S(a,l[0]),a.forEach(u)},m(e,a){p(e,t,a),L(t,n)},p(e,a){a&1&&j(n,e[0])},d(e){e&&u(t)}}}function Q(l){let t,n="loading ...";return{c(){t=E("div"),t.textContent=n,this.h()},l(e){t=w(e,"DIV",{class:!0,"data-svelte-h":!0}),z(t)!=="svelte-va05nw"&&(t.textContent=n),this.h()},h(){A(t,"class","text-center")},m(e,a){p(e,t,a)},p:h,i:h,o:h,d(e){e&&u(t)}}}function U(l){let t;const n=l[4].default,e=F(n,l,l[3],null);return{c(){e&&e.c()},l(a){e&&e.l(a)},m(a,_){e&&e.m(a,_),t=!0},p(a,_){e&&e.p&&(!t||_&8)&&G(e,n,a,a[3],t?N(n,a[3],_,null):H(a[3]),null)},i(a){t||(m(e,a),t=!0)},o(a){d(e,a),t=!1},d(a){e&&e.d(a)}}}function W(l){let t,n,e;var a=l[1];function _(i,r){return{}}return a&&(t=g(a,_())),{c(){t&&b(t.$$.fragment),n=k()},l(i){t&&K(t.$$.fragment,i),n=k()},m(i,r){t&&D(t,i,r),p(i,n,r),e=!0},p(i,r){if(r&2&&a!==(a=i[1])){if(t){O();const o=t;d(o.$$.fragment,1,0,()=>{I(o,1)}),R()}a?(t=g(a,_()),b(t.$$.fragment),m(t.$$.fragment,1),D(t,n.parentNode,n)):t=null}},i(i){e||(t&&m(t.$$.fragment,i),e=!0)},o(i){t&&d(t.$$.fragment,i),e=!1},d(i){i&&u(n),t&&I(t,i)}}}function X(l){let t,n,e,a,_,i=l[0]&&V(l);const r=[W,U,Q],o=[];function y(s,c){return s[1]?0:s[2].default?1:2}return e=y(l),a=o[e]=r[e](l),{c(){t=E("div"),i&&i.c(),n=$(),a.c(),this.h()},l(s){t=w(s,"DIV",{class:!0});var c=P(t);i&&i.l(c),n=C(c),a.l(c),c.forEach(u),this.h()},h(){A(t,"class","markdown-container svelte-1i37ee3")},m(s,c){p(s,t,c),i&&i.m(t,null),L(t,n),o[e].m(t,null),_=!0},p(s,[c]){s[0]?i?i.p(s,c):(i=V(s),i.c(),i.m(t,n)):i&&(i.d(1),i=null);let v=e;e=y(s),e===v?o[e].p(s,c):(O(),d(o[v],1,1,()=>{o[v]=null}),R(),a=o[e],a?a.p(s,c):(a=o[e]=r[e](s),a.c()),m(a,1),a.m(t,null))},i(s){_||(m(a),_=!0)},o(s){d(a),_=!1},d(s){s&&u(t),i&&i.d(),o[e].d()}}}function Y(l,t,n){let{$$slots:e={},$$scope:a}=t;const _=M(e);let{title:i}=t,{content:r}=t;return l.$$set=o=>{"title"in o&&n(0,i=o.title),"content"in o&&n(1,r=o.content),"$$scope"in o&&n(3,a=o.$$scope)},[i,r,_,a,e]}class at extends B{constructor(t){super(),J(this,t,Y,X,T,{title:0,content:1})}}export{at as M,et as f}; diff --git a/docs/_app/immutable/chunks/SveltyPicker.69e34b19.js b/docs/_app/immutable/chunks/SveltyPicker.69e34b19.js deleted file mode 100644 index 5b4f36b..0000000 --- a/docs/_app/immutable/chunks/SveltyPicker.69e34b19.js +++ /dev/null @@ -1,4 +0,0 @@ -import{s as Vt,f as V,l as he,a as Q,g as I,h as z,m as de,d as k,c as x,x as Ke,j as y,v as U,i as L,w as Y,y as q,n as me,O as Oe,M as It,af as pt,ag as wt,k as $t,K as We,u as ft,R as Wn,P as qn,t as Gn,p as yt,e as Ie,r as Al,C as Xn,E as Zn,F as Kn,G as Jn,o as Vl,N as Qn,W as Ot,U as Te}from"./scheduler.3ecd3668.js";import{S as Nt,i as Pt,a as le,g as Ae,t as ue,c as Ve,j as Tt,k as zt,h as et,b as xn,d as $n,m as el,e as tl}from"./index.bf4ded2a.js";import{e as re,u as ht,d as Lt,o as nl}from"./each.514658f0.js";import{e as Il}from"./index.ae80b773.js";import{c as Nl,f as Ue}from"./index.d6de77cf.js";const Pl={theme:"sdt-calendar-colors",format:"yyyy-mm-dd",formatType:"standard",displayFormat:null,displayFormatType:null,minuteIncrement:1,weekStart:1,inputClasses:"",todayBtnClasses:"sdt-action-btn sdt-today-btn",clearBtnClasses:"sdt-action-btn sdt-clear-btn",hourOnly:!1,todayBtn:!0,clearBtn:!0,clearToggle:!0,autocommit:!0,i18n:Il},He=0,Je=1,ve=2,zl=3;function ut(n,e,t,l){var g,v;if(n instanceof Date)return n;const i=l==="php"?{date:"Y-m-d",datetime:"Y-m-d H:i",datetime_s:"Y-m-d H:i:s"}:{date:"yyyy-mm-dd",datetime:"yyyy-mm-dd hh:ii",datetime_s:"yyyy-mm-dd hh:ii:ss"};let s,u;/^\d{4}\-\d{1,2}\-\d{1,2}$/.test(n)?s=Re.parseFormat(i.date,l):/^\d{4}\-\d{1,2}\-\d{1,2}[T ]\d{1,2}\:\d{1,2}$/.test(n)?s=Re.parseFormat(i.datetime,l):/^\d{4}\-\d{1,2}\-\d{1,2}[T ]\d{1,2}\:\d{1,2}\:\d{1,2}[Z]{0,1}$/.test(n)?s=Re.parseFormat(i.datetime_s,l):(/^([01]*\d|2[0-3])([0-5]\d)(?:[ ]([ap][m]|[AP][M]))?$/.test(n)&&(u=(g=n.match(/^([01]*\d|2[0-3])([0-5]\d)(?:[ ]([ap][m]|[AP][M]))?$/))==null?void 0:g.slice(1).filter(B=>B)),s=Re.parseFormat(e,l));const r=u||n&&n.toString().match(Re.nonpunctuation)||[];n=new Date,n.setHours(0,0,0,0);const o={},{setters_order:a,setters_map:c}=Re.setters(l);let f,_;if(r.length!==s.parts.length&&s.parts.includes("S")){const B=(v=r[s.parts.indexOf("S")-1].match(/(\d+)([a-zA-Z]+)/))==null?void 0:v.slice(1,3);r.splice(s.parts.indexOf("S")-1,1,...B)}if(r.length===s.parts.length){for(var h=0,d=s.parts.length;hl.setHours(i),h:(l,i)=>l.setHours(i),HH:(l,i)=>l.setHours(i===12?0:i),H:(l,i)=>l.setHours(i===12?0:i),i:(l,i)=>l.setMinutes(i),s:(l,i)=>l.setSeconds(i),yyyy:(l,i)=>l.setFullYear(i),yy:(l,i)=>l.setFullYear((i<50?2e3:1900)+i),m:(l,i)=>{for(i-=1;i<0;)i+=12;for(i%=12,l.setMonth(i);l.getMonth()!==i;){if(isNaN(l.getMonth()))return l;l.setDate(l.getDate()-1)}return l},d:(l,i)=>l.setDate(i),p:(l,i)=>l.setHours(i===1&&l.getHours()<12?l.getHours()+12:l.getHours()),t:(l,i)=>l.setTime(i),mm:()=>{},M:()=>{},MM:()=>{},ii:()=>{},ss:()=>{},dd:()=>{},D:()=>{},DD:()=>{},P:()=>{}},t.mm=t.M=t.MM=t.m,t.ii=t.i,t.ss=t.s,t.dd=t.D=t.DD=t.d,t.P=t.p):(e=["Y","yy","m","M","F","n","d","D","j","l","N","S","H","G","h","g","i","s","p","P","U"],t={H:(l,i)=>l.setHours(i),G:(l,i)=>l.setHours(i),h:(l,i)=>l.setHours(i===12?0:i),g:(l,i)=>l.setHours(i===12?0:i),i:(l,i)=>l.setMinutes(i),s:(l,i)=>l.setSeconds(i),Y:(l,i)=>l.setFullYear(i),yy:(l,i)=>l.setFullYear((i<50?2e3:1900)+i),m:(l,i)=>{for(i-=1;i<0;)i+=12;for(i%=12,l.setMonth(i);l.getMonth()!==i;){if(isNaN(l.getMonth()))return l;l.setDate(l.getDate()-1)}return l},n:(l,i)=>l.setMonth(i-1),d:(l,i)=>l.setDate(i),a:(l,i)=>l.setHours(i===1?l.getHours()+12:l.getHours()),U:(l,i)=>l.setTime(i*1e3)},t.F=t.M=t.m,t.D=t.j=t.l=t.N=t.d,t.A=t.a),{setters_order:e,setters_map:t}}};function Ll(n,e,t,l,i){if(t===He){let N=10,H=20;const F=-1,T=[];let b=[],O=n.getFullYear()-n.getFullYear()%10;O-=O%20?12:10,O%10&&(N=12,H=22);for(let E=0;E<32;E++)b.push(O+E),b.length===4&&(T.push(b),b=[]);let P=[];return e[0]||(e[0]=new Date),e[0].getFullYear()>=O&&P.push(e[0].getFullYear()%O),{years:T,todayMark:F,nextFrom:H,prevTo:N,selectionMark:P}}if(t===Je){let N=[],H=[],F=12,T=24;const b=n.toISOString().split("T")[0].substring(0,8),O=new Date(b+"01 00:00:00"),P=O.getFullYear()-1;O.setFullYear(P);let E=0;for(let M=0;M<3;M++){for(let S=0;S<12;S++)O.setMonth(S),H.push(l.monthsShort[S%12]),H.length===4&&(N.push(H),H=[]);O.setFullYear(O.getFullYear()+1)}let Z=[];return e[0]||(e[0]=new Date),e[0].getFullYear()-P>=0&&e[0].getFullYear()-P<=2&&Z.push(e[0].getMonth()+(e[0].getFullYear()-P||0)*12),{months:N,todayMark:E,nextFrom:T,prevTo:F,selectionMark:Z}}let s=n||new Date,u=s.getFullYear(),r=s.getMonth();s.getDate(),s.getHours();let o=new Date,a=new Date(u,r-1,28,0,0,0,0),c=ll(a.getFullYear(),a.getMonth());a.setDate(c),a.setDate(c-(a.getDay()-i+7)%7);let f=new Date(a);f.setDate(f.getDate()+42);let _=f.valueOf(),h=[],d=[],p=-1,g=[],v=0,B=42,A=0;for(;a.valueOf()<_;)A++,d.push(new Date(a)),a.getFullYear()u||a.getFullYear()===u&&a.getMonth()>r)&&(B=A-1),a.setDate(a.getDate()+1),a.getFullYear()===o.getFullYear()&&a.getMonth()===o.getMonth()&&a.getDate()===o.getDate()&&(p=A),g.length!==e.length&&e.map(N=>{a.getFullYear()===N.getFullYear()&&a.getMonth()===N.getMonth()&&a.getDate()===N.getDate()&&g.push(A)}),d.length===7&&(h.push(d),d=[]);return{grid:h,days:h,todayMark:p,prevTo:v,nextFrom:B,selectionMark:g}}function Ul(n,{duration:e=400,start:t=0,end:l=1,opacity:i=0}){const s=getComputedStyle(n),u=+s.opacity,r=s.transform==="none"?"":s.transform,o=1-t,a=u*(1-i);return l=l||1,{delay:0,duration:e,easing:Nl,css:(c,f)=>` - transform: ${r} scale(${l!==1?t+l*f:1-o*f}); - opacity: ${u-a*f}; - `}}function en(n,e,t){const l=n.slice();return l[47]=e[t],l[49]=t,l}function tn(n,e,t){const l=n.slice();l[50]=e[t],l[54]=t;const i=l[49]*7+l[54];l[51]=i;const s=l[50].getTime();return l[52]=s,l}function nn(n,e,t){const l=n.slice();return l[55]=e[t],l}function ln(n,e,t){const l=n.slice();return l[47]=e[t],l[49]=t,l}function sn(n,e,t){const l=n.slice();l[59]=e[t],l[54]=t;const i=l[49]*4+l[54];return l[51]=i,l}function on(n,e,t){const l=n.slice();return l[47]=e[t],l[49]=t,l}function rn(n,e,t){const l=n.slice();l[62]=e[t],l[54]=t;const i=l[49]*4+l[54];return l[51]=i,l}function an(n){let e,t,l,i,s,u;return{c(){e=V("button"),t=pt("svg"),l=pt("path"),this.h()},l(r){e=I(r,"BUTTON",{type:!0,class:!0,title:!0});var o=z(e);t=wt(o,"svg",{class:!0,xmlns:!0,viewBox:!0,width:!0,height:!0});var a=z(t);l=wt(a,"path",{"fill-rule":!0,d:!0}),z(l).forEach(k),a.forEach(k),o.forEach(k),this.h()},h(){y(l,"fill-rule","evenodd"),y(l,"d","M1.5 8a6.5 6.5 0 1113 0 6.5 6.5 0 01-13 0zM8 0a8 8 0 100 16A8 8 0 008 0zm.5 4.75a.75.75 0 00-1.5 0v3.5a.75.75 0 00.471.696l2.5 1a.75.75 0 00.557-1.392L8.5 7.742V4.75z"),y(t,"class","sdt-svg svelte-s34iof"),y(t,"xmlns","http://www.w3.org/2000/svg"),y(t,"viewBox","0 0 16 16"),y(t,"width","16"),y(t,"height","16"),y(e,"type","button"),y(e,"class","std-btn std-btn-header icon-btn sdt-time-icon svelte-s34iof"),y(e,"title",i=n[3].timeView)},m(r,o){L(r,e,o),Y(e,t),Y(t,l),s||(u=q(e,"click",n[27]),s=!0)},p(r,o){o[0]&8&&i!==(i=r[3].timeView)&&y(e,"title",i)},d(r){r&&k(e),s=!1,u()}}}function un(n){let e,t,l,i,s,u,r,o,a=re(n[15].years),c=[];for(let f=0;f{u&&(s&&s.end(1),i=Tt(t,n[18],{duration:tt,start:n[20],opacity:1}),i.start())}),u=!0)},o(f){i&&i.invalidate(),f&&(s=zt(t,n[18],{duration:tt,end:n[19],start:1})),u=!1},d(f){f&&k(e),ft(c,f),f&&s&&s.end(),r=!1,Oe(o)}}}function fn(n,e){let t,l,i=e[62]+"",s,u,r,o;function a(){return e[38](e[62])}return{key:n,first:null,c(){t=V("td"),l=V("button"),s=he(i),this.h()},l(c){t=I(c,"TD",{class:!0});var f=z(t);l=I(f,"BUTTON",{type:!0,class:!0});var _=z(l);s=de(_,i),_.forEach(k),f.forEach(k),this.h()},h(){y(l,"type","button"),y(l,"class","std-btn svelte-s34iof"),l.disabled=u=e[22](new Date(e[62],e[7].getMonth(),e[7].getDate())),U(l,"not-current",!e[21](e[51])),y(t,"class","sdt-cal-td svelte-s34iof"),U(t,"is-selected",e[15].selectionMark.includes(e[51])),this.first=t},m(c,f){L(c,t,f),Y(t,l),Y(l,s),r||(o=q(l,"click",a),r=!0)},p(c,f){e=c,f[0]&32768&&i!==(i=e[62]+"")&&me(s,i),f[0]&32896&&u!==(u=e[22](new Date(e[62],e[7].getMonth(),e[7].getDate())))&&(l.disabled=u),f[0]&2129920&&U(l,"not-current",!e[21](e[51])),f[0]&32768&&U(t,"is-selected",e[15].selectionMark.includes(e[51]))},d(c){c&&k(t),r=!1,o()}}}function cn(n){let e,t=[],l=new Map,i,s=re(n[47]);const u=r=>r[54];for(let r=0;r{u&&(s&&s.end(1),i=Tt(t,n[18],{duration:tt,start:n[20],opacity:1}),i.start())}),u=!0)},o(f){i&&i.invalidate(),f&&(s=zt(t,n[18],{duration:tt,end:n[19],start:1})),u=!1},d(f){f&&k(e),ft(c,f),f&&s&&s.end(),r=!1,Oe(o)}}}function dn(n,e){let t,l,i=e[59]+"",s,u,r,o;function a(){return e[40](e[59])}return{key:n,first:null,c(){t=V("td"),l=V("button"),s=he(i),this.h()},l(c){t=I(c,"TD",{class:!0});var f=z(t);l=I(f,"BUTTON",{class:!0,type:!0});var _=z(l);s=de(_,i),_.forEach(k),f.forEach(k),this.h()},h(){y(l,"class","std-btn svelte-s34iof"),y(l,"type","button"),l.disabled=u=e[22](new Date(e[7].getFullYear(),e[3].monthsShort.indexOf(e[59]),e[7].getDate())),U(l,"not-current",!e[21](e[51])),y(t,"class","sdt-cal-td svelte-s34iof"),U(t,"is-selected",e[51]===e[15].selectionMark[0]),this.first=t},m(c,f){L(c,t,f),Y(t,l),Y(l,s),r||(o=q(l,"click",a),r=!0)},p(c,f){e=c,f[0]&32768&&i!==(i=e[59]+"")&&me(s,i),f[0]&32904&&u!==(u=e[22](new Date(e[7].getFullYear(),e[3].monthsShort.indexOf(e[59]),e[7].getDate())))&&(l.disabled=u),f[0]&2129920&&U(l,"not-current",!e[21](e[51])),f[0]&32768&&U(t,"is-selected",e[51]===e[15].selectionMark[0])},d(c){c&&k(t),r=!1,o()}}}function mn(n){let e,t=[],l=new Map,i,s=re(n[47]);const u=r=>r[54];for(let r=0;r{r&&(u&&u.end(1),s=Tt(t,n[18],{duration:tt,start:.5,opacity:1}),s.start())}),r=!0)},o(d){s&&s.invalidate(),d&&(u=zt(t,n[18],{duration:tt,start:Math.abs(n[9])})),r=!1},d(d){d&&k(e),ft(f,d),ft(h,d),d&&u&&u.end(),o=!1,a()}}}function _n(n){let e,t=n[55]+"",l;return{c(){e=V("th"),l=he(t),this.h()},l(i){e=I(i,"TH",{class:!0});var s=z(e);l=de(s,t),s.forEach(k),this.h()},h(){y(e,"class","sdt-cal-th svelte-s34iof")},m(i,s){L(i,e,s),Y(e,l)},p(i,s){s[0]&131072&&t!==(t=i[55]+"")&&me(l,t)},d(i){i&&k(e)}}}function bn(n,e){let t,l,i=e[50].getDate()+"",s,u,r,o;function a(){return e[42](e[50])}return{key:n,first:null,c(){t=V("td"),l=V("button"),s=he(i),this.h()},l(c){t=I(c,"TD",{class:!0});var f=z(t);l=I(f,"BUTTON",{type:!0,class:!0});var _=z(l);s=de(_,i),_.forEach(k),f.forEach(k),this.h()},h(){y(l,"type","button"),y(l,"class","std-btn sdt-btn-day svelte-s34iof"),l.disabled=u=(e[16]||e[2]||e[6])&&e[22](e[50]),U(l,"not-current",!e[21](e[49]*7+e[54])),y(t,"class","sdt-cal-td svelte-s34iof"),U(t,"sdt-today",e[51]===e[15].todayMark),U(t,"in-range",e[29](e[52])),U(t,"is-selected",e[14].includes(e[52])),U(t,"in-range-hover",e[5]&&e[30](e[52],e[0])),this.first=t},m(c,f){L(c,t,f),Y(t,l),Y(l,s),r||(o=[q(l,"click",a),q(t,"mouseover",function(){Wn(e[28](e[50]))&&e[28](e[50]).apply(this,arguments)}),q(t,"mouseout",e[28]())],r=!0)},p(c,f){e=c,f[0]&32768&&i!==(i=e[50].getDate()+"")&&me(s,i),f[0]&98372&&u!==(u=(e[16]||e[2]||e[6])&&e[22](e[50]))&&(l.disabled=u),f[0]&2129920&&U(l,"not-current",!e[21](e[49]*7+e[54])),f[0]&32768&&U(t,"sdt-today",e[51]===e[15].todayMark),f[0]&536903680&&U(t,"in-range",e[29](e[52])),f[0]&49152&&U(t,"is-selected",e[14].includes(e[52])),f[0]&1073774625&&U(t,"in-range-hover",e[5]&&e[30](e[52],e[0]))},d(c){c&&k(t),r=!1,Oe(o)}}}function yn(n){let e,t=[],l=new Map,i,s=re(n[47]);const u=r=>r[54];for(let r=0;r{H=null}),Ve()),b[8]===Je?F?(F.p(b,O),O[0]&256&&le(F,1)):(F=hn(b),F.c(),le(F,1),F.m(p,v)):F&&(Ae(),ue(F,1,1,()=>{F=null}),Ve()),b[8]===ve?T?(T.p(b,O),O[0]&256&&le(T,1)):(T=gn(b),T.c(),le(T,1),T.m(p,null)):T&&(Ae(),ue(T,1,1,()=>{T=null}),Ve()),O[0]&1024&&U(p,"is-grid",b[10])},i(b){le(H),le(F),le(T)},o(b){ue(H),ue(F),ue(T)},d(b){b&&(k(e),k(d),k(p)),N&&N.d(),H&&H.d(),F&&F.d(),T&&T.d(),B=!1,Oe(A)}}}let tt=400;const Me=222,at=148;function Wl(n,e,t){var X;let l,i,s,u,r,o,a,c,{wid:f}=e,{dates:_}=e,{startDate:h=null}=e,{endDate:d=null}=e,{weekStart:p=1}=e,{initialView:g=ve}=e,{i18n:v}=e,{enableTimeToggle:B=!1}=e,{isRange:A=!1}=e,{hoverDate:N=null}=e,{additionalDisableFn:H}=e;function F(D,J){if(P!==ve){t(8,P=ve),t(9,E=1),t(7,b=new Date(T||new Date));return}if(!T){oe(new Date,{keyboard:!0});return}let C=new Date(T);switch(D){case"PageDown":J=!0;case"ArrowDown":J?C.setMonth(T.getMonth()+1):C.setDate(T.getDate()+7),J&&C.getMonth()===T.getMonth()&&C.setDate(0),oe(C,{keyboard:!0});break;case"PageUp":J=!0;case"ArrowUp":J?C.setMonth(T.getMonth()-1):C.setDate(T.getDate()-7),J&&C.getMonth()===T.getMonth()&&C.setDate(0),oe(C,{keyboard:!0});break;case"ArrowLeft":J?C.setFullYear(T.getFullYear()-1):C.setDate(T.getDate()-1),oe(C,{keyboard:!0});break;case"ArrowRight":J?C.setFullYear(T.getFullYear()+1):C.setDate(T.getDate()+1),oe(C,{keyboard:!0});break}}let T=_[f]||null,b=f===1?(()=>{if(_.length===2&&_[1])return _[1];const D=new Date(_[0]||new Date);return D.setMonth(D.getMonth()+1),D})():new Date(((X=_[0])==null?void 0:X.valueOf())||new Date);const O=It();let P=g,E=-2,Z=!1,M=Me,S=null;function R(D){return o.prevTo<=D&&DD||d&&d<=D||H&&H(D))return!0;break;case Je:if(l&&l.getFullYear()===D.getFullYear()&&l.getMonth()>D.getMonth()||d&&d.getFullYear()===D.getFullYear()&&d.getMonth()D.getFullYear()||d&&d.getFullYear()28&&C.setDate(C.getDate()-3),C.setMonth(b.getMonth()+D*J),t(7,b=C),t(12,S=null),t(11,M=P===He?b.getFullYear()%20>=10?Me:at:Me)}function K(D){if(P===ve)return G(D);if(t(12,S=()=>{G(D)}),P===He){t(11,M=M===at?D===-1?M-Me:Me+at:D===-1?M-Me:M+at);return}t(11,M=D===-1?M-Me:M+Me)}function pe(){if(t(9,E=-1),t(10,Z=!0),P&&t(8,P--,P),P===He){const D=Math.floor(b.getFullYear()/10)*10%20===0;t(11,M=D?at:Me)}}function oe(D,{keyboard:J}={}){switch(t(9,E=1),t(10,Z=!0),P){case 0:b.setFullYear(D),t(7,b);break;case 1:b.setMonth(v.monthsShort.indexOf(D)),t(7,b);break;case 2:if(W(D)||H&&H(D))return;const C=new Date(D.getFullYear(),D.getMonth(),D.getDate());T&&(C.setMinutes(T.getMinutes()),C.setHours(T.getHours())),T=C,J&&(b.getFullYear()!==C.getFullYear()||b.getFullYear()===C.getFullYear()&&b.getMonth()!==C.getMonth())&&(b.setFullYear(C.getFullYear()),b.getDate()>28&&b.setDate(28),b.setMonth(C.getMonth()),t(7,b)),O("date",{value:T,update:"date",isKeyboard:J});break}P=r[0]&&D=J&&r[0]>=D)}const be=()=>K(-1),fe=()=>K(1),ie=D=>{oe(D)},ge=()=>S&&S(),se=D=>{oe(D)},we=()=>S&&S(),$=D=>{oe(D)};return n.$$set=D=>{"wid"in D&&t(31,f=D.wid),"dates"in D&&t(1,_=D.dates),"startDate"in D&&t(32,h=D.startDate),"endDate"in D&&t(2,d=D.endDate),"weekStart"in D&&t(33,p=D.weekStart),"initialView"in D&&t(34,g=D.initialView),"i18n"in D&&t(3,v=D.i18n),"enableTimeToggle"in D&&t(4,B=D.enableTimeToggle),"isRange"in D&&t(5,A=D.isRange),"hoverDate"in D&&t(0,N=D.hoverDate),"additionalDisableFn"in D&&t(6,H=D.additionalDisableFn)},n.$$.update=()=>{n.$$.dirty[1]&2&&t(16,l=h?new Date(h.getFullYear(),h.getMonth(),h.getDate(),0,0,0,0):null),n.$$.dirty[0]&512&&t(20,i=E<1?1.5:.5),n.$$.dirty[0]&512&&t(19,s=E<1?1:1.5),n.$$.dirty[0]&512&&t(18,u=E===-2?Ue:E!==null?Ul:()=>({})),n.$$.dirty[0]&2&&t(14,r=_.map(D=>(D=new Date(D),D.setHours(0,0),D.getTime()))),n.$$.dirty[0]&394|n.$$.dirty[1]&4&&t(15,o=Ll(b,_,P,v,p)),n.$$.dirty[0]&8|n.$$.dirty[1]&4&&t(17,a=v.daysMin.concat(...v.daysMin.slice(1)).slice(p,7+p)),n.$$.dirty[0]&2&&_.length===0&&(T=null),n.$$.dirty[0]&392&&t(13,c=v&&w(P,b))},[N,_,d,v,B,A,H,b,P,E,Z,M,S,c,r,o,l,a,u,s,i,R,W,K,pe,oe,Ee,Be,j,ae,_e,f,h,p,g,F,be,fe,ie,ge,se,we,$]}class ql extends Nt{constructor(e){super(),Pt(this,e,Wl,jl,Vt,{wid:31,dates:1,startDate:32,endDate:2,weekStart:33,initialView:34,i18n:3,enableTimeToggle:4,isRange:5,hoverDate:0,additionalDisableFn:6,handleGridNav:35},null,[-1,-1,-1])}get handleGridNav(){return this.$$.ctx[35]}}function pn(n,e,t){const l=n.slice();return l[37]=e[t],l[39]=t,l}function wn(n,e,t){const l=n.slice();return l[37]=e[t],l[39]=t,l}function vn(n){let e,t,l,i,s,u;return{c(){e=V("button"),t=pt("svg"),l=pt("path"),this.h()},l(r){e=I(r,"BUTTON",{type:!0,class:!0,title:!0});var o=z(e);t=wt(o,"svg",{class:!0,xmlns:!0,viewBox:!0,width:!0,height:!0});var a=z(t);l=wt(a,"path",{"fill-rule":!0,d:!0}),z(l).forEach(k),a.forEach(k),o.forEach(k),this.h()},h(){y(l,"fill-rule","evenodd"),y(l,"d","M6.75 0a.75.75 0 01.75.75V3h9V.75a.75.75 0 011.5 0V3h2.75c.966 0 1.75.784 1.75 1.75v16a1.75 1.75 0 01-1.75 1.75H3.25a1.75 1.75 0 01-1.75-1.75v-16C1.5 3.784 2.284 3 3.25 3H6V.75A.75.75 0 016.75 0zm-3.5 4.5a.25.25 0 00-.25.25V8h18V4.75a.25.25 0 00-.25-.25H3.25zM21 9.5H3v11.25c0 .138.112.25.25.25h17.5a.25.25 0 00.25-.25V9.5z"),y(t,"class","sdt-svg svelte-88z0zt"),y(t,"xmlns","http://www.w3.org/2000/svg"),y(t,"viewBox","0 0 24 24"),y(t,"width","20"),y(t,"height","20"),y(e,"type","button"),y(e,"class","sdt-time-btn sdt-back-btn svelte-88z0zt"),y(e,"title",i=n[5].backToDate)},m(r,o){L(r,e,o),Y(e,t),Y(t,l),s||(u=q(e,"click",n[22]),s=!0)},p(r,o){o[0]&32&&i!==(i=r[5].backToDate)&&y(e,"title",i)},d(r){r&&k(e),s=!1,u()}}}function Gl(n){let e,t=n[16](n[9],n[3])+"",l,i,s;function u(a,c){return a[3]?Kl:Zl}let r=u(n),o=r(n);return{c(){e=V("span"),l=he(t),i=Q(),o.c(),s=Ie(),this.h()},l(a){e=I(a,"SPAN",{class:!0});var c=z(e);l=de(c,t),c.forEach(k),i=x(a),o.l(a),s=Ie(),this.h()},h(){y(e,"class","sdt-time-figure svelte-88z0zt")},m(a,c){L(a,e,c),Y(e,l),L(a,i,c),o.m(a,c),L(a,s,c)},p(a,c){c[0]&520&&t!==(t=a[16](a[9],a[3])+"")&&me(l,t),r===(r=u(a))&&o?o.p(a,c):(o.d(1),o=r(a),o&&(o.c(),o.m(s.parentNode,s)))},d(a){a&&(k(e),k(i),k(s)),o.d(a)}}}function Xl(n){let e,t=n[16](n[9],n[3])+"",l,i,s,u=":",r,o,a=n[16](n[8],!1)+"",c,f,_;return{c(){e=V("button"),l=he(t),i=Q(),s=V("span"),s.textContent=u,r=Q(),o=V("button"),c=he(a),this.h()},l(h){e=I(h,"BUTTON",{type:!0,class:!0});var d=z(e);l=de(d,t),d.forEach(k),i=x(h),s=I(h,"SPAN",{"data-svelte-h":!0}),Ke(s)!=="svelte-5vnx5k"&&(s.textContent=u),r=x(h),o=I(h,"BUTTON",{type:!0,class:!0});var p=z(o);c=de(p,a),p.forEach(k),this.h()},h(){y(e,"type","button"),y(e,"class","sdt-time-btn sdt-time-figure svelte-88z0zt"),U(e,"is-active",!n[6]),y(o,"type","button"),y(o,"class","sdt-time-btn sdt-time-figure svelte-88z0zt"),U(o,"is-active",n[6])},m(h,d){L(h,e,d),Y(e,l),L(h,i,d),L(h,s,d),L(h,r,d),L(h,o,d),Y(o,c),f||(_=[q(e,"click",n[28]),q(o,"click",n[29])],f=!0)},p(h,d){d[0]&520&&t!==(t=h[16](h[9],h[3])+"")&&me(l,t),d[0]&64&&U(e,"is-active",!h[6]),d[0]&256&&a!==(a=h[16](h[8],!1)+"")&&me(c,a),d[0]&64&&U(o,"is-active",h[6])},d(h){h&&(k(e),k(i),k(s),k(r),k(o)),f=!1,Oe(_)}}}function Zl(n){let e,t=":",l,i,s="00";return{c(){e=V("span"),e.textContent=t,l=Q(),i=V("span"),i.textContent=s,this.h()},l(u){e=I(u,"SPAN",{"data-svelte-h":!0}),Ke(e)!=="svelte-5vnx5k"&&(e.textContent=t),l=x(u),i=I(u,"SPAN",{class:!0,"data-svelte-h":!0}),Ke(i)!=="svelte-15oc2gl"&&(i.textContent=s),this.h()},h(){y(i,"class","sdt-time-figure svelte-88z0zt")},m(u,r){L(u,e,r),L(u,l,r),L(u,i,r)},p:Al,d(u){u&&(k(e),k(l),k(i))}}}function Kl(n){let e,t=(n[13]?n[5].meridiem[1]:n[5].meridiem[0]).toUpperCase()+"",l;return{c(){e=V("span"),l=he(t),this.h()},l(i){e=I(i,"SPAN",{class:!0});var s=z(e);l=de(s,t),s.forEach(k),this.h()},h(){y(e,"class","sdt-time-figure svelte-88z0zt")},m(i,s){L(i,e,s),Y(e,l)},p(i,s){s[0]&8224&&t!==(t=(i[13]?i[5].meridiem[1]:i[5].meridiem[0]).toUpperCase()+"")&&me(l,t)},d(i){i&&k(e)}}}function kn(n){let e,t,l=(n[13]?n[5].meridiem[1]:n[5].meridiem[0])+"",i,s,u,r;return{c(){e=V("div"),t=V("button"),i=he(l),this.h()},l(o){e=I(o,"DIV",{class:!0});var a=z(e);t=I(a,"BUTTON",{type:!0,class:!0,"data-value":!0});var c=z(t);i=de(c,l),c.forEach(k),a.forEach(k),this.h()},h(){y(t,"type","button"),y(t,"class","sdt-time-btn sdt-time-figure is-active svelte-88z0zt"),y(t,"data-value",s=n[13]?n[9]%12:n[9]+12),y(e,"class","sdt-meridian svelte-88z0zt")},m(o,a){L(o,e,a),Y(e,t),Y(t,i),u||(r=q(t,"click",n[20]),u=!0)},p(o,a){a[0]&8224&&l!==(l=(o[13]?o[5].meridiem[1]:o[5].meridiem[0])+"")&&me(i,l),a[0]&8704&&s!==(s=o[13]?o[9]%12:o[9]+12)&&y(t,"data-value",s)},d(o){o&&k(e),u=!1,r()}}}function Dn(n,e){let t,l=e[37].val+"",i,s,u,r,o,a;return{key:n,first:null,c(){t=V("button"),i=he(l),this.h()},l(c){t=I(c,"BUTTON",{type:!0,style:!0,class:!0,"data-value":!0});var f=z(t);i=de(f,l),f.forEach(k),this.h()},h(){y(t,"type","button"),y(t,"style",s=`left:${e[37].x}px; top:${e[37].y}px;`),y(t,"class","sdt-tick svelte-88z0zt"),y(t,"data-value",u=e[37].val),t.disabled=r=(e[0]||e[1])&&e[7]&&e[18](e[37].val,!1),U(t,"outer-tick",e[6]),U(t,"is-selected",e[17](e[9],e[37].val,e[39])),this.first=t},m(c,f){L(c,t,f),Y(t,i),a=!0},p(c,f){e=c,(!a||f[0]&32768)&&l!==(l=e[37].val+"")&&me(i,l),(!a||f[0]&32768&&s!==(s=`left:${e[37].x}px; top:${e[37].y}px;`))&&y(t,"style",s),(!a||f[0]&32768&&u!==(u=e[37].val))&&y(t,"data-value",u),(!a||f[0]&32899&&r!==(r=(e[0]||e[1])&&e[7]&&e[18](e[37].val,!1)))&&(t.disabled=r),(!a||f[0]&64)&&U(t,"outer-tick",e[6]),(!a||f[0]&164352)&&U(t,"is-selected",e[17](e[9],e[37].val,e[39]))},i(c){a||(c&&We(()=>{a&&(o||(o=et(t,Ue,{duration:200},!0)),o.run(1))}),a=!0)},o(c){c&&(o||(o=et(t,Ue,{duration:200},!1)),o.run(0)),a=!1},d(c){c&&k(t),c&&o&&o.end()}}}function Mn(n){let e,t=n[37].val+"",l,i,s,u,r,o;return{c(){e=V("button"),l=he(t),this.h()},l(a){e=I(a,"BUTTON",{type:!0,style:!0,class:!0,"data-value":!0});var c=z(e);l=de(c,t),c.forEach(k),this.h()},h(){y(e,"type","button"),y(e,"style",i=`left:${n[37].x}px; top:${n[37].y}px;`),y(e,"class","sdt-tick svelte-88z0zt"),y(e,"data-value",s=n[37].val),e.disabled=u=(n[0]||n[1])&&n[7]&&n[18](n[37].val,!1),U(e,"outer-tick",n[3]&&!n[6]),U(e,"is-selected",n[17](n[6]?n[8]:n[9],n[37].val,n[39]))},m(a,c){L(a,e,c),Y(e,l),o=!0},p(a,c){(!o||c[0]&16384)&&t!==(t=a[37].val+"")&&me(l,t),(!o||c[0]&16384&&i!==(i=`left:${a[37].x}px; top:${a[37].y}px;`))&&y(e,"style",i),(!o||c[0]&16384&&s!==(s=a[37].val))&&y(e,"data-value",s),(!o||c[0]&16515&&u!==(u=(a[0]||a[1])&&a[7]&&a[18](a[37].val,!1)))&&(e.disabled=u),(!o||c[0]&72)&&U(e,"outer-tick",a[3]&&!a[6]),(!o||c[0]&148288)&&U(e,"is-selected",a[17](a[6]?a[8]:a[9],a[37].val,a[39]))},i(a){o||(a&&We(()=>{o&&(r||(r=et(e,Ue,{duration:200},!0)),r.run(1))}),o=!0)},o(a){a&&(r||(r=et(e,Ue,{duration:200},!1)),r.run(0)),o=!1},d(a){a&&k(e),a&&r&&r.end()}}}function Jl(n){let e,t,l,i,s,u,r,o,a,c,f,_=[],h=new Map,d,p,g,v,B,A=n[4]&&vn(n);function N(M,S){return M[2]?Gl:Xl}let H=N(n),F=H(n),T=n[3]&&kn(n),b=re(n[15]);const O=M=>M[37].val;for(let M=0;Mue(E[M],1,1,()=>{E[M]=null});return{c(){e=V("div"),t=V("div"),A&&A.c(),l=Q(),F.c(),i=Q(),T&&T.c(),s=Q(),u=V("div"),r=V("div"),o=Q(),a=V("div"),c=V("div"),f=Q();for(let M=0;M<_.length;M+=1)_[M].c();d=Q();for(let M=0;M{p=Tt(e,Ue,{duration:200}),p.start()})),g=!0}},o(M){for(let S=0;S<_.length;S+=1)ue(_[S]);E=E.filter(Boolean);for(let S=0;S=9||$<3?-1:1)*j),val:_e?$*5||ae:$?$+be:ae});return we}function Z(w,j){return j?i&&w===12?12:w<10||w%12<10?`0${w%12}`:w%12:w<10?`0${w}`:w}function M(w,j,ae){return F?j===w||ae===0&&ae===w:g?i&&j==12&&w===12||!i&&j==12&&w===0?!0:j===(w?w%12:12):+j>12?(ae?u*ae+12:0)===w:j==="00"||j==="12"?w===12&&parseInt(j)==12||j==="00"&&w===0:j===w}function S(w,j=!1){return typeof w=="string"&&(w=parseInt(w)),_&&h&&r?F||j?_.getHours()===b.getHours()&&_.getMinutes()>w||h.getHours()===b.getHours()&&h.getMinutes()w||h.getHours()w:_.getHours()>w:h&&h.getDate()===b.getDate()&&h.getMonth()===b.getMonth()&&h.getFullYear()===b.getFullYear()?F||j?h.getHours()===b.getHours()&&h.getMinutes()s?s+p:s-p),b[be](_e)}else if(F){const _e=H.getBoundingClientRect(),be=w.clientX-_e.left,fe=w.clientY-_e.top,ie=130,ge=130;let se=null;switch(be>ie?se=fe>ge?2:1:se=fe>ge?3:4,se){case 1:j=be-ie,ae=ge-fe;break;case 2:j=be-ie,ae=fe-ge;break;case 3:j=ie-be,ae=fe-ge;break;case 4:j=ie-be,ae=ge-fe;break}const we=Math.sqrt(j*j+ae*ae),$=90-Math.asin(j/we)*(180/Math.PI);let X=0;switch(se){case 1:X=90-$;break;case 2:X=$+90;break;case 3:X=270-$;break;case 4:X=$+270;break}X=Math.round(X/6/p)*p,X>=60&&(X=0),b.setMinutes(X)}t(7,b),t(23,f),T||(O(F?"minute":"hour",{value:b,isKeyboard:w.type==="keyboard",dateIndex:c}),w.type!=="keyboard"&&!F&&!d&&t(6,F=!0))}function W(w){const j=parseInt(w.target.dataset.value);b.setHours(j),t(7,b),t(23,f),O(F?"minute":"hour",{value:b,isKeyboard:!0})}function G(w){t(11,T=w.type==="mousedown")}function K(){O("switch","date")}const pe=()=>t(6,F=!1),oe=()=>t(6,F=!0),Ee=w=>{T&&R(w)};function Be(w){yt[w?"unshift":"push"](()=>{H=w,t(10,H)})}return n.$$set=w=>{"wid"in w&&t(24,c=w.wid),"date"in w&&t(23,f=w.date),"startDate"in w&&t(0,_=w.startDate),"endDate"in w&&t(1,h=w.endDate),"hourOnly"in w&&t(2,d=w.hourOnly),"minuteIncrement"in w&&t(25,p=w.minuteIncrement),"showMeridian"in w&&t(3,g=w.showMeridian),"hasDateComponent"in w&&t(4,v=w.hasDateComponent),"i18n"in w&&t(5,B=w.i18n)},n.$$.update=()=>{if(n.$$.dirty[0]&8388736&&f!==b&&f&&t(7,b=f),n.$$.dirty[0]&131){let w=!1;_&&_.toDateString()===b.toDateString()&&(S(b.getHours())&&(b.setHours(_.getHours()),w=!0),S(b.getMinutes(),!0)&&(b.setMinutes(_.getMinutes()),w=!0)),h&&h.toDateString()===b.toDateString()&&(S(b.getHours())&&(b.setHours(h.getHours()),w=!0),S(b.getMinutes(),!0)&&(b.setMinutes(h.getMinutes()),w=!0)),w&&Gn().then(()=>O("time",b))}if(n.$$.dirty[0]&128&&t(9,l=b?b.getHours():0),n.$$.dirty[0]&520&&t(13,i=g?l>=12:!1),n.$$.dirty[0]&128&&t(8,s=b?b.getMinutes():0),n.$$.dirty[0]&840){let w=F?s*6:l%12*30;t(12,P=F||g||l<12?`transform: rotateZ(${w}deg);`:`transform: rotateZ(${w}deg); height: calc(25% + 1px)`)}n.$$.dirty[0]&64&&(u=F?5:1),n.$$.dirty[0]&3&&(r=_&&h&&["getFullYear","getMonth","getDate"].every(w=>h[w]()===_[w]())),n.$$.dirty[0]&64&&t(15,o=E(F?220:180,110,"00",!1,0)),n.$$.dirty[0]&64&&t(14,a=E(F?180:120,110,F?"00":"12",F,12)),n.$$.dirty[0]&64&&O("time-switch",F)},[_,h,d,g,v,B,F,b,s,l,H,T,P,i,a,o,Z,M,S,R,W,G,K,f,c,p,A,N,pe,oe,Ee,Be]}class xl extends Nt{constructor(e){super(),Pt(this,e,Ql,Jl,Vt,{wid:24,date:23,startDate:0,endDate:1,hourOnly:2,minuteIncrement:25,showMeridian:3,hasDateComponent:4,i18n:5,showMinuteView:26,makeTick:27},null,[-1,-1])}get showMinuteView(){return this.$$.ctx[26]}get makeTick(){return this.$$.ctx[27]}}function Ut(n){return n.split("-")[1]}function il(n){return n==="y"?"height":"width"}function Qe(n){return n.split("-")[0]}function jt(n){return["top","bottom"].includes(Qe(n))?"x":"y"}function Tn(n,e,t){let{reference:l,floating:i}=n;const s=l.x+l.width/2-i.width/2,u=l.y+l.height/2-i.height/2,r=jt(e),o=il(r),a=l[o]/2-i[o]/2,c=r==="x";let f;switch(Qe(e)){case"top":f={x:s,y:l.y-i.height};break;case"bottom":f={x:s,y:l.y+l.height};break;case"right":f={x:l.x+l.width,y:u};break;case"left":f={x:l.x-i.width,y:u};break;default:f={x:l.x,y:l.y}}switch(Ut(e)){case"start":f[r]-=a*(t&&c?-1:1);break;case"end":f[r]+=a*(t&&c?-1:1)}return f}const $l=async(n,e,t)=>{const{placement:l="bottom",strategy:i="absolute",middleware:s=[],platform:u}=t,r=s.filter(Boolean),o=await(u.isRTL==null?void 0:u.isRTL(e));let a=await u.getElementRects({reference:n,floating:e,strategy:i}),{x:c,y:f}=Tn(a,l,o),_=l,h={},d=0;for(let p=0;pn.concat(e,e+"-start",e+"-end"),[]);const ii={left:"right",right:"left",bottom:"top",top:"bottom"};function kt(n){return n.replace(/left|right|bottom|top/g,e=>ii[e])}function si(n,e,t){t===void 0&&(t=!1);const l=Ut(n),i=jt(n),s=il(i);let u=i==="x"?l===(t?"end":"start")?"right":"left":l==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(u=kt(u)),{main:u,cross:kt(u)}}const oi={start:"end",end:"start"};function Bt(n){return n.replace(/start|end/g,e=>oi[e])}const ri=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(e){var t;const{placement:l,middlewareData:i,rects:s,initialPlacement:u,platform:r,elements:o}=e,{mainAxis:a=!0,crossAxis:c=!0,fallbackPlacements:f,fallbackStrategy:_="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:d=!0,...p}=Wt(n,e),g=Qe(l),v=Qe(u)===u,B=await(r.isRTL==null?void 0:r.isRTL(o.floating)),A=f||(v||!d?[kt(u)]:function(E){const Z=kt(E);return[Bt(E),Z,Bt(Z)]}(u));f||h==="none"||A.push(...function(E,Z,M,S){const R=Ut(E);let W=function(G,K,pe){const oe=["left","right"],Ee=["right","left"],Be=["top","bottom"],w=["bottom","top"];switch(G){case"top":case"bottom":return pe?K?Ee:oe:K?oe:Ee;case"left":case"right":return K?Be:w;default:return[]}}(Qe(E),M==="start",S);return R&&(W=W.map(G=>G+"-"+R),Z&&(W=W.concat(W.map(Bt)))),W}(u,d,h,B));const N=[u,...A],H=await sl(e,p),F=[];let T=((t=i.flip)==null?void 0:t.overflows)||[];if(a&&F.push(H[g]),c){const{main:E,cross:Z}=si(l,s,B);F.push(H[E],H[Z])}if(T=[...T,{placement:l,overflows:F}],!F.every(E=>E<=0)){var b,O;const E=(((b=i.flip)==null?void 0:b.index)||0)+1,Z=N[E];if(Z)return{data:{index:E,overflows:T},reset:{placement:Z}};let M=(O=T.filter(S=>S.overflows[0]<=0).sort((S,R)=>S.overflows[1]-R.overflows[1])[0])==null?void 0:O.placement;if(!M)switch(_){case"bestFit":{var P;const S=(P=T.map(R=>[R.placement,R.overflows.filter(W=>W>0).reduce((W,G)=>W+G,0)]).sort((R,W)=>R[1]-W[1])[0])==null?void 0:P[0];S&&(M=S);break}case"initialPlacement":M=u}if(l!==M)return{reset:{placement:M}}}return{}}}};function ai(n){return n==="x"?"y":"x"}const ui=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(e){const{x:t,y:l,placement:i}=e,{mainAxis:s=!0,crossAxis:u=!1,limiter:r={fn:g=>{let{x:v,y:B}=g;return{x:v,y:B}}},...o}=Wt(n,e),a={x:t,y:l},c=await sl(e,o),f=jt(Qe(i)),_=ai(f);let h=a[f],d=a[_];if(s){const g=f==="y"?"bottom":"right";h=Fn(h+c[f==="y"?"top":"left"],h,h-c[g])}if(u){const g=_==="y"?"bottom":"right";d=Fn(d+c[_==="y"?"top":"left"],d,d-c[g])}const p=r.fn({...e,[f]:h,[_]:d});return{...p,data:{x:p.x-t,y:p.y-l}}}}};function ye(n){var e;return(n==null||(e=n.ownerDocument)==null?void 0:e.defaultView)||window}function Fe(n){return ye(n).getComputedStyle(n)}function ol(n){return n instanceof ye(n).Node}function Ne(n){return ol(n)?(n.nodeName||"").toLowerCase():"#document"}function ke(n){return n instanceof HTMLElement||n instanceof ye(n).HTMLElement}function En(n){return typeof ShadowRoot<"u"&&(n instanceof ye(n).ShadowRoot||n instanceof ShadowRoot)}function ct(n){const{overflow:e,overflowX:t,overflowY:l,display:i}=Fe(n);return/auto|scroll|overlay|hidden|clip/.test(e+l+t)&&!["inline","contents"].includes(i)}function fi(n){return["table","td","th"].includes(Ne(n))}function Rt(n){const e=qt(),t=Fe(n);return t.transform!=="none"||t.perspective!=="none"||!!t.containerType&&t.containerType!=="normal"||!e&&!!t.backdropFilter&&t.backdropFilter!=="none"||!e&&!!t.filter&&t.filter!=="none"||["transform","perspective","filter"].some(l=>(t.willChange||"").includes(l))||["paint","layout","strict","content"].some(l=>(t.contain||"").includes(l))}function qt(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Ft(n){return["html","body","#document"].includes(Ne(n))}const At=Math.min,xe=Math.max,Dt=Math.round,bt=Math.floor,Pe=n=>({x:n,y:n});function rl(n){const e=Fe(n);let t=parseFloat(e.width)||0,l=parseFloat(e.height)||0;const i=ke(n),s=i?n.offsetWidth:t,u=i?n.offsetHeight:l,r=Dt(t)!==s||Dt(l)!==u;return r&&(t=s,l=u),{width:t,height:l,$:r}}function Ce(n){return n instanceof Element||n instanceof ye(n).Element}function Gt(n){return Ce(n)?n:n.contextElement}function $e(n){const e=Gt(n);if(!ke(e))return Pe(1);const t=e.getBoundingClientRect(),{width:l,height:i,$:s}=rl(e);let u=(s?Dt(t.width):t.width)/l,r=(s?Dt(t.height):t.height)/i;return u&&Number.isFinite(u)||(u=1),r&&Number.isFinite(r)||(r=1),{x:u,y:r}}const ci=Pe(0);function al(n){const e=ye(n);return qt()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:ci}function je(n,e,t,l){e===void 0&&(e=!1),t===void 0&&(t=!1);const i=n.getBoundingClientRect(),s=Gt(n);let u=Pe(1);e&&(l?Ce(l)&&(u=$e(l)):u=$e(n));const r=function(_,h,d){return h===void 0&&(h=!1),!(!d||h&&d!==ye(_))&&h}(s,t,l)?al(s):Pe(0);let o=(i.left+r.x)/u.x,a=(i.top+r.y)/u.y,c=i.width/u.x,f=i.height/u.y;if(s){const _=ye(s),h=l&&Ce(l)?ye(l):l;let d=_.frameElement;for(;d&&l&&h!==_;){const p=$e(d),g=d.getBoundingClientRect(),v=getComputedStyle(d),B=g.left+(d.clientLeft+parseFloat(v.paddingLeft))*p.x,A=g.top+(d.clientTop+parseFloat(v.paddingTop))*p.y;o*=p.x,a*=p.y,c*=p.x,f*=p.y,o+=B,a+=A,d=ye(d).frameElement}}return vt({width:c,height:f,x:o,y:a})}function Et(n){return Ce(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.pageXOffset,scrollTop:n.pageYOffset}}function Ye(n){var e;return(e=(ol(n)?n.ownerDocument:n.document)||window.document)==null?void 0:e.documentElement}function ul(n){return je(Ye(n)).left+Et(n).scrollLeft}function nt(n){if(Ne(n)==="html")return n;const e=n.assignedSlot||n.parentNode||En(n)&&n.host||Ye(n);return En(e)?e.host:e}function fl(n){const e=nt(n);return Ft(e)?n.ownerDocument?n.ownerDocument.body:n.body:ke(e)&&ct(e)?e:fl(e)}function Mt(n,e){var t;e===void 0&&(e=[]);const l=fl(n),i=l===((t=n.ownerDocument)==null?void 0:t.body),s=ye(l);return i?e.concat(s,s.visualViewport||[],ct(l)?l:[]):e.concat(l,Mt(l))}function Sn(n,e,t){let l;if(e==="viewport")l=function(i,s){const u=ye(i),r=Ye(i),o=u.visualViewport;let a=r.clientWidth,c=r.clientHeight,f=0,_=0;if(o){a=o.width,c=o.height;const h=qt();(!h||h&&s==="fixed")&&(f=o.offsetLeft,_=o.offsetTop)}return{width:a,height:c,x:f,y:_}}(n,t);else if(e==="document")l=function(i){const s=Ye(i),u=Et(i),r=i.ownerDocument.body,o=xe(s.scrollWidth,s.clientWidth,r.scrollWidth,r.clientWidth),a=xe(s.scrollHeight,s.clientHeight,r.scrollHeight,r.clientHeight);let c=-u.scrollLeft+ul(i);const f=-u.scrollTop;return Fe(r).direction==="rtl"&&(c+=xe(s.clientWidth,r.clientWidth)-o),{width:o,height:a,x:c,y:f}}(Ye(n));else if(Ce(e))l=function(i,s){const u=je(i,!0,s==="fixed"),r=u.top+i.clientTop,o=u.left+i.clientLeft,a=ke(i)?$e(i):Pe(1);return{width:i.clientWidth*a.x,height:i.clientHeight*a.y,x:o*a.x,y:r*a.y}}(e,t);else{const i=al(n);l={...e,x:e.x-i.x,y:e.y-i.y}}return vt(l)}function cl(n,e){const t=nt(n);return!(t===e||!Ce(t)||Ft(t))&&(Fe(t).position==="fixed"||cl(t,e))}function hi(n,e,t){const l=ke(e),i=Ye(e),s=t==="fixed",u=je(n,!0,s,e);let r={scrollLeft:0,scrollTop:0};const o=Pe(0);if(l||!l&&!s)if((Ne(e)!=="body"||ct(i))&&(r=Et(e)),ke(e)){const a=je(e,!0,s,e);o.x=a.x+e.clientLeft,o.y=a.y+e.clientTop}else i&&(o.x=ul(i));return{x:u.left+r.scrollLeft-o.x,y:u.top+r.scrollTop-o.y,width:u.width,height:u.height}}function Hn(n,e){return ke(n)&&Fe(n).position!=="fixed"?e?e(n):n.offsetParent:null}function Cn(n,e){const t=ye(n);if(!ke(n))return t;let l=Hn(n,e);for(;l&&fi(l)&&Fe(l).position==="static";)l=Hn(l,e);return l&&(Ne(l)==="html"||Ne(l)==="body"&&Fe(l).position==="static"&&!Rt(l))?t:l||function(i){let s=nt(i);for(;ke(s)&&!Ft(s);){if(Rt(s))return s;s=nt(s)}return null}(n)||t}const di={convertOffsetParentRelativeRectToViewportRelativeRect:function(n){let{rect:e,offsetParent:t,strategy:l}=n;const i=ke(t),s=Ye(t);if(t===s)return e;let u={scrollLeft:0,scrollTop:0},r=Pe(1);const o=Pe(0);if((i||!i&&l!=="fixed")&&((Ne(t)!=="body"||ct(s))&&(u=Et(t)),ke(t))){const a=je(t);r=$e(t),o.x=a.x+t.clientLeft,o.y=a.y+t.clientTop}return{width:e.width*r.x,height:e.height*r.y,x:e.x*r.x-u.scrollLeft*r.x+o.x,y:e.y*r.y-u.scrollTop*r.y+o.y}},getDocumentElement:Ye,getClippingRect:function(n){let{element:e,boundary:t,rootBoundary:l,strategy:i}=n;const s=[...t==="clippingAncestors"?function(o,a){const c=a.get(o);if(c)return c;let f=Mt(o).filter(p=>Ce(p)&&Ne(p)!=="body"),_=null;const h=Fe(o).position==="fixed";let d=h?nt(o):o;for(;Ce(d)&&!Ft(d);){const p=Fe(d),g=Rt(d);g||p.position!=="fixed"||(_=null),(h?!g&&!_:!g&&p.position==="static"&&_&&["absolute","fixed"].includes(_.position)||ct(d)&&!g&&cl(o,d))?f=f.filter(v=>v!==d):_=p,d=nt(d)}return a.set(o,f),f}(e,this._c):[].concat(t),l],u=s[0],r=s.reduce((o,a)=>{const c=Sn(e,a,i);return o.top=xe(c.top,o.top),o.right=At(c.right,o.right),o.bottom=At(c.bottom,o.bottom),o.left=xe(c.left,o.left),o},Sn(e,u,i));return{width:r.right-r.left,height:r.bottom-r.top,x:r.left,y:r.top}},getOffsetParent:Cn,getElementRects:async function(n){let{reference:e,floating:t,strategy:l}=n;const i=this.getOffsetParent||Cn,s=this.getDimensions;return{reference:hi(e,await i(t),l),floating:{x:0,y:0,...await s(t)}}},getClientRects:function(n){return Array.from(n.getClientRects())},getDimensions:function(n){return rl(n)},getScale:$e,isElement:Ce,isRTL:function(n){return getComputedStyle(n).direction==="rtl"}};function mi(n,e,t,l){l===void 0&&(l={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:r=typeof IntersectionObserver=="function",animationFrame:o=!1}=l,a=Gt(n),c=i||s?[...a?Mt(a):[],...Mt(e)]:[];c.forEach(g=>{i&&g.addEventListener("scroll",t,{passive:!0}),s&&g.addEventListener("resize",t)});const f=a&&r?function(g,v){let B,A=null;const N=Ye(g);function H(){clearTimeout(B),A&&A.disconnect(),A=null}return function F(T,b){T===void 0&&(T=!1),b===void 0&&(b=1),H();const{left:O,top:P,width:E,height:Z}=g.getBoundingClientRect();if(T||v(),!E||!Z)return;const M={rootMargin:-bt(P)+"px "+-bt(N.clientWidth-(O+E))+"px "+-bt(N.clientHeight-(P+Z))+"px "+-bt(O)+"px",threshold:xe(0,At(1,b))||1};let S=!0;function R(W){const G=W[0].intersectionRatio;if(G!==b){if(!S)return F();G?F(!1,G):B=setTimeout(()=>{F(!1,1e-7)},100)}S=!1}try{A=new IntersectionObserver(R,{...M,root:N.ownerDocument})}catch{A=new IntersectionObserver(R,M)}A.observe(g)}(!0),H}(a,t):null;let _,h=-1,d=null;u&&(d=new ResizeObserver(g=>{let[v]=g;v&&v.target===a&&d&&(d.unobserve(e),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{d&&d.observe(e)})),t()}),a&&!o&&d.observe(a),d.observe(e));let p=o?je(n):null;return o&&function g(){const v=je(n);!p||v.x===p.x&&v.y===p.y&&v.width===p.width&&v.height===p.height||t(),p=v,_=requestAnimationFrame(g)}(),t(),()=>{c.forEach(g=>{i&&g.removeEventListener("scroll",t),s&&g.removeEventListener("resize",t)}),f&&f(),d&&d.disconnect(),d=null,o&&cancelAnimationFrame(_)}}const gi=(n,e,t)=>{const l=new Map,i={platform:di,...t},s={...i.platform,_c:l};return $l(n,e,{...i,platform:s})};function _i(n){if((n==null?void 0:n.previousElementSibling)===null)return;const e=n==null?void 0:n.previousElementSibling,t=mi(e,n,()=>gi(e,n,{placement:"bottom-start",middleware:[ui({padding:5}),ri()]}).then(({x:l,y:i})=>{Object.assign(n.style,{left:`${l}px`,top:`${i}px`})}));return{destroy(){t()}}}function bi(n,e,t,l,i){let s=n?Array.isArray(n)?n:n.split(","):[];s=s.map(o=>o.replace(/(:\d+):\d+/,"$1"));let u=s,r=e?Array.isArray(e)?e:[e]:u.map(o=>ut(o,t,l,i));return r&&e&&(s=r.map(o=>Ze(o,t,l,i))),{valueArray:s,prevValue:u,innerDates:r}}function yi(n,e){return n==="auto"?e.match(/g|hh?|ii?/i)&&e.match(/y|m|d/i)?"datetime":e.match(/g|hh?|ii?/i)?"time":"date":n}const pi=n=>({isTodayDisabled:n[1]&2048,currentMode:n[0]&67108864,i18n:n[0]&16777216}),Yn=n=>({onCancel:n[49],onConfirm:n[78],onClear:n[48],onToday:n[47],isTodayDisabled:n[42],currentMode:n[26],i18n:n[24]});function On(n,e,t){const l=n.slice();return l[98]=e[t],l[99]=e,l[100]=t,l}const wi=n=>({value:n[0]&1,displayValue:n[1]&1,disabled:n[0]&32,isDirty:n[1]&128}),Bn=n=>({value:n[0],displayValue:n[31],disabled:n[5],isDirty:n[38],onKeyDown:n[50],onInputFocus:n[53],onInputBlur:n[54]});function Rn(n){let e,t,l,i=!n[9]&&An(n);return{c(){e=V("input"),t=Q(),i&&i.c(),l=Ie(),this.h()},l(s){e=I(s,"INPUT",{type:!0,name:!0}),t=x(s),i&&i.l(s),l=Ie(),this.h()},h(){y(e,"type","hidden"),y(e,"name",n[4]),e.value=n[0]},m(s,u){L(s,e,u),L(s,t,u),i&&i.m(s,u),L(s,l,u)},p(s,u){u[0]&16&&y(e,"name",s[4]),u[0]&1&&(e.value=s[0]),s[9]?i&&(i.d(1),i=null):i?i.p(s,u):(i=An(s),i.c(),i.m(l.parentNode,l))},d(s){s&&(k(e),k(t),k(l)),i&&i.d(s)}}}function An(n){let e,t,l,i,s,u;return{c(){e=V("input"),this.h()},l(r){e=I(r,"INPUT",{type:!0,id:!0,tabindex:!0,name:!0,placeholder:!0,autocomplete:!0,inputmode:!0,class:!0}),this.h()},h(){y(e,"type","text"),y(e,"id",n[3]),y(e,"tabindex","0"),y(e,"name",t=n[4].endsWith("]")?n[4].substring(0,n[4].length-1)+"_input]":n[4]+"_input"),e.value=n[31],y(e,"placeholder",n[6]),e.disabled=n[5],e.required=n[7],y(e,"autocomplete","off"),y(e,"inputmode","none"),y(e,"class",l=Te(n[17])+" svelte-ergyxs"),e.readOnly=i=n[25]&&!n[11]&&!n[8],U(e,"value-dirty",!n[22]&&n[38])},m(r,o){L(r,e,o),n[74](e),s||(u=[q(e,"input",function(){Wn(n[11]?n[51]:jn)&&(n[11]?n[51]:jn).apply(this,arguments)}),Qn(n[43].call(null,e,n[44])),q(e,"focus",n[53]),q(e,"blur",n[54]),q(e,"click",n[75]),q(e,"input",n[72]),q(e,"change",n[73]),q(e,"keydown",n[50])],s=!0)},p(r,o){n=r,o[0]&8&&y(e,"id",n[3]),o[0]&16&&t!==(t=n[4].endsWith("]")?n[4].substring(0,n[4].length-1)+"_input]":n[4]+"_input")&&y(e,"name",t),o[1]&1&&e.value!==n[31]&&(e.value=n[31]),o[0]&64&&y(e,"placeholder",n[6]),o[0]&32&&(e.disabled=n[5]),o[0]&128&&(e.required=n[7]),o[0]&131072&&l!==(l=Te(n[17])+" svelte-ergyxs")&&y(e,"class",l),o[0]&33556736&&i!==(i=n[25]&&!n[11]&&!n[8])&&(e.readOnly=i),o[0]&4325376|o[1]&128&&U(e,"value-dirty",!n[22]&&n[38])},d(r){r&&k(e),n[74](null),s=!1,Oe(u)}}}function vi(n){let e,t=!n[1]&&Rn(n);return{c(){t&&t.c(),e=Ie()},l(l){t&&t.l(l),e=Ie()},m(l,i){t&&t.m(l,i),L(l,e,i)},p(l,i){l[1]?t&&(t.d(1),t=null):t?t.p(l,i):(t=Rn(l),t.c(),t.m(e.parentNode,e))},d(l){l&&k(e),t&&t.d(l)}}}function Vn(n){let e,t,l=[],i=new Map,s,u,r,o,a,c,f=re(n[37]);const _=g=>g[100];for(let g=0;g{o&&(r||(r=et(e,n[41],{duration:200},!0)),r.run(1))}),o=!0}},o(g){for(let v=0;vn[77](e,t,l),u=()=>n[77](null,t,l);let r={wid:n[100],date:n[30][n[100]],startDate:n[29],endDate:n[28],hasDateComponent:n[27]!=="time",showMeridian:n[13].match(n[14]==="php"?"a|A":"p|P")!==null,i18n:n[24],minuteIncrement:n[15],hourOnly:n[23]};return e=new xl({props:r}),s(),e.$on("hour",n[45]),e.$on("minute",n[45]),e.$on("switch",n[52]),e.$on("time-switch",n[56]),{c(){xn(e.$$.fragment)},l(o){$n(e.$$.fragment,o)},m(o,a){el(e,o,a),i=!0},p(o,a){(t!==o[99]||l!==o[100])&&(u(),t=o[99],l=o[100],s());const c={};a[1]&64&&(c.wid=o[100]),a[0]&1073741824|a[1]&64&&(c.date=o[30][o[100]]),a[0]&536870912&&(c.startDate=o[29]),a[0]&268435456&&(c.endDate=o[28]),a[0]&134217728&&(c.hasDateComponent=o[27]!=="time"),a[0]&24576&&(c.showMeridian=o[13].match(o[14]==="php"?"a|A":"p|P")!==null),a[0]&16777216&&(c.i18n=o[24]),a[0]&32768&&(c.minuteIncrement=o[15]),a[0]&8388608&&(c.hourOnly=o[23]),e.$set(c)},i(o){i||(le(e.$$.fragment,o),i=!0)},o(o){ue(e.$$.fragment,o),i=!1},d(o){u(),tl(e,o)}}}function Di(n){var i;let e,t,l={wid:n[100],dates:n[30],isRange:n[8],startDate:n[29],endDate:n[28],enableTimeToggle:(i=n[27])==null?void 0:i.includes("time"),initialView:n[2]>2?2:n[2],hoverDate:n[32],additionalDisableFn:n[10],i18n:n[24],weekStart:n[16]};return e=new ql({props:l}),n[76](e),e.$on("date",n[45]),e.$on("switch",n[52]),e.$on("internal_hoverUpdate",n[55]),{c(){xn(e.$$.fragment)},l(s){$n(e.$$.fragment,s)},m(s,u){el(e,s,u),t=!0},p(s,u){var o;const r={};u[1]&64&&(r.wid=s[100]),u[0]&1073741824&&(r.dates=s[30]),u[0]&256&&(r.isRange=s[8]),u[0]&536870912&&(r.startDate=s[29]),u[0]&268435456&&(r.endDate=s[28]),u[0]&134217728&&(r.enableTimeToggle=(o=s[27])==null?void 0:o.includes("time")),u[0]&4&&(r.initialView=s[2]>2?2:s[2]),u[1]&2&&(r.hoverDate=s[32]),u[0]&1024&&(r.additionalDisableFn=s[10]),u[0]&16777216&&(r.i18n=s[24]),u[0]&65536&&(r.weekStart=s[16]),e.$set(r)},i(s){t||(le(e.$$.fragment,s),t=!0)},o(s){ue(e.$$.fragment,s),t=!1},d(s){n[76](null),tl(e,s)}}}function In(n,e){let t,l,i,s,u;const r=[Di,ki],o=[];function a(c,f){return c[26]==="date"?0:1}return l=a(e),i=o[l]=r[l](e),{key:n,first:null,c(){t=V("div"),i.c(),s=Q(),this.h()},l(c){t=I(c,"DIV",{class:!0});var f=z(t);i.l(f),s=x(f),f.forEach(k),this.h()},h(){y(t,"class","sdt-widget svelte-ergyxs"),this.first=t},m(c,f){L(c,t,f),o[l].m(t,null),Y(t,s),u=!0},p(c,f){e=c;let _=l;l=a(e),l===_?o[l].p(e,f):(Ae(),ue(o[_],1,1,()=>{o[_]=null}),Ve(),i=o[l],i?i.p(e,f):(i=o[l]=r[l](e),i.c()),le(i,1),i.m(t,s))},i(c){u||(le(i),u=!0)},o(c){ue(i),u=!1},d(c){c&&k(t),o[l].d()}}}function Nn(n){let e,t,l=!n[36]&&Pn(n),i=(n[20]||n[21])&&zn(n);return{c(){e=V("div"),l&&l.c(),t=Q(),i&&i.c(),this.h()},l(s){e=I(s,"DIV",{class:!0});var u=z(e);l&&l.l(u),t=x(u),i&&i.l(u),u.forEach(k),this.h()},h(){y(e,"class","sdt-btn-row svelte-ergyxs")},m(s,u){L(s,e,u),l&&l.m(e,null),Y(e,t),i&&i.m(e,null)},p(s,u){s[36]?l&&(l.d(1),l=null):l?l.p(s,u):(l=Pn(s),l.c(),l.m(e,t)),s[20]||s[21]?i?i.p(s,u):(i=zn(s),i.c(),i.m(e,null)):i&&(i.d(1),i=null)},d(s){s&&k(e),l&&l.d(),i&&i.d()}}}function Pn(n){let e,t,l=n[24].cancelBtn+"",i,s,u,r,o=n[24].okBtn+"",a,c,f,_;return{c(){e=V("span"),t=V("button"),i=he(l),u=Q(),r=V("button"),a=he(o),this.h()},l(h){e=I(h,"SPAN",{});var d=z(e);t=I(d,"BUTTON",{type:!0,class:!0});var p=z(t);i=de(p,l),p.forEach(k),u=x(d),r=I(d,"BUTTON",{type:!0,class:!0});var g=z(r);a=de(g,o),g.forEach(k),d.forEach(k),this.h()},h(){y(t,"type","button"),y(t,"class",s=Te(n[19])+" svelte-ergyxs"),y(r,"type","button"),y(r,"class",c=Te(n[18])+" svelte-ergyxs")},m(h,d){L(h,e,d),Y(e,t),Y(t,i),Y(e,u),Y(e,r),Y(r,a),f||(_=[q(t,"click",n[49]),q(r,"click",n[79])],f=!0)},p(h,d){d[0]&16777216&&l!==(l=h[24].cancelBtn+"")&&me(i,l),d[0]&524288&&s!==(s=Te(h[19])+" svelte-ergyxs")&&y(t,"class",s),d[0]&16777216&&o!==(o=h[24].okBtn+"")&&me(a,o),d[0]&262144&&c!==(c=Te(h[18])+" svelte-ergyxs")&&y(r,"class",c)},d(h){h&&k(e),f=!1,Oe(_)}}}function zn(n){let e,t,l=n[20]&&n[26]==="date"&&Ln(n),i=n[21]&&Un(n);return{c(){e=V("span"),l&&l.c(),t=Q(),i&&i.c()},l(s){e=I(s,"SPAN",{});var u=z(e);l&&l.l(u),t=x(u),i&&i.l(u),u.forEach(k)},m(s,u){L(s,e,u),l&&l.m(e,null),Y(e,t),i&&i.m(e,null)},p(s,u){s[20]&&s[26]==="date"?l?l.p(s,u):(l=Ln(s),l.c(),l.m(e,t)):l&&(l.d(1),l=null),s[21]?i?i.p(s,u):(i=Un(s),i.c(),i.m(e,null)):i&&(i.d(1),i=null)},d(s){s&&k(e),l&&l.d(),i&&i.d()}}}function Ln(n){let e,t=n[24].todayBtn+"",l,i,s,u;return{c(){e=V("button"),l=he(t),this.h()},l(r){e=I(r,"BUTTON",{type:!0,class:!0});var o=z(e);l=de(o,t),o.forEach(k),this.h()},h(){y(e,"type","button"),y(e,"class",i=Te(n[18])+" svelte-ergyxs"),e.disabled=n[42]},m(r,o){L(r,e,o),Y(e,l),s||(u=q(e,"click",n[47]),s=!0)},p(r,o){o[0]&16777216&&t!==(t=r[24].todayBtn+"")&&me(l,t),o[0]&262144&&i!==(i=Te(r[18])+" svelte-ergyxs")&&y(e,"class",i),o[1]&2048&&(e.disabled=r[42])},d(r){r&&k(e),s=!1,u()}}}function Un(n){let e,t=n[24].clearBtn+"",l,i,s,u;return{c(){e=V("button"),l=he(t),this.h()},l(r){e=I(r,"BUTTON",{type:!0,class:!0});var o=z(e);l=de(o,t),o.forEach(k),this.h()},h(){y(e,"type","button"),y(e,"class",i=Te(n[19])+" svelte-ergyxs")},m(r,o){L(r,e,o),Y(e,l),s||(u=q(e,"click",n[48]),s=!0)},p(r,o){o[0]&16777216&&t!==(t=r[24].clearBtn+"")&&me(l,t),o[0]&524288&&i!==(i=Te(r[19])+" svelte-ergyxs")&&y(e,"class",i)},d(r){r&&k(e),s=!1,u()}}}function Mi(n){let e,t=(!n[36]||!0)&&Nn(n);return{c(){t&&t.c(),e=Ie()},l(l){t&&t.l(l),e=Ie()},m(l,i){t&&t.m(l,i),L(l,e,i)},p(l,i){l[36],t?t.p(l,i):(t=Nn(l),t.c(),t.m(e.parentNode,e))},d(l){l&&k(e),t&&t.d(l)}}}function Ti(n){let e,t,l;const i=n[70].inputs,s=Xn(i,n,n[69],Bn),u=s||vi(n);let r=n[35]&&n[25]&&Vn(n);return{c(){e=V("span"),u&&u.c(),t=Q(),r&&r.c(),this.h()},l(o){e=I(o,"SPAN",{class:!0});var a=z(e);u&&u.l(a),t=x(a),r&&r.l(a),a.forEach(k),this.h()},h(){y(e,"class","std-component-wrap svelte-ergyxs")},m(o,a){L(o,e,a),u&&u.m(e,null),Y(e,t),r&&r.m(e,null),l=!0},p(o,a){s?s.p&&(!l||a[0]&33|a[1]&129|a[2]&128)&&Zn(s,i,o,o[69],l?Jn(i,o[69],a,wi):Kn(o[69]),Bn):u&&u.p&&(!l||a[0]&37882875|a[1]&149)&&u.p(o,l?a:[-1,-1,-1,-1]),o[35]&&o[25]?r?(r.p(o,a),a[0]&33554432|a[1]&16&&le(r,1)):(r=Vn(o),r.c(),le(r,1),r.m(e,null)):r&&(Ae(),ue(r,1,1,()=>{r=null}),Ve())},i(o){l||(le(u,o),le(r),l=!0)},o(o){ue(u,o),ue(r),l=!1},d(o){o&&k(e),u&&u.d(o),r&&r.d()}}}const ce=Pl;function Fi(n){return n?[{ref:null},{ref:null}]:[{ref:null}]}const jn=()=>{};function Ei(n,e,t){let l,i,s,u,r,o,a,c,f,_,h,d,{$$slots:p={},$$scope:g}=e,{inputId:v=""}=e,{name:B="date"}=e,{disabled:A=!1}=e,{placeholder:N=null}=e,{required:H=!1}=e,{value:F=null}=e,{initialDate:T=null}=e,{isRange:b=!1}=e,{startDate:O=null}=e,{endDate:P=null}=e,{pickerOnly:E=!1}=e,{startView:Z=ve}=e,{mode:M="auto"}=e,{disableDatesFn:S=null}=e,{manualInput:R=!1}=e,{theme:W=ce.theme}=e,{format:G=ce.format}=e,{formatType:K=ce.formatType}=e,{displayFormat:pe=ce.displayFormat}=e,{displayFormatType:oe=ce.displayFormatType}=e,{minuteIncrement:Ee=ce.minuteIncrement}=e,{weekStart:Be=ce.weekStart}=e,{inputClasses:w=ce.inputClasses}=e,{todayBtnClasses:j=ce.todayBtnClasses}=e,{clearBtnClasses:ae=ce.clearBtnClasses}=e,{todayBtn:_e=ce.todayBtn}=e,{clearBtn:be=ce.clearBtn}=e,{clearToggle:fe=ce.clearToggle}=e,{autocommit:ie=ce.autocommit}=e,{hourOnly:ge=ce.hourOnly}=e,{i18n:se=ce.i18n}=e,{validatorAction:we=null}=e,{ce_valueElement:$=null}=e,{ce_displayElement:X=null}=e,{positionResolver:D=_i}=e;const J=It();let{valueArray:C,prevValue:qe,innerDates:ee}=bi(F,T,G,se,K);!F&&T&&(F=b?C:C[0]);let Xt=G,lt=E,dt=[...C],ze=st(),Ge=gt(),Zt,De=Z===zl?"time":"date",it=!1,St=X,hl=we?we.shift():()=>{},dl=we||[],mt,Ht;function ml(m,ne,te,Xe,rt,Le){return!m||ne&&(te==="datetime"||rt.length!==2)?!1:Xe==="minute"||te===Xe||Le&&Xe==="hour"}function gl(m){m.join("")!==qe.join("")&&(t(30,ee=m.filter(ne=>ne).map(ne=>ut(ne,G,se,K))),qe=m,ze=st(),t(31,Ge=gt()))}function _l(m){const ne=Array.isArray(m)?m.join(","):m;ze!==ne&&(t(67,C=(ne||"").split(",")),dt=C)}function bl(m,ne){Xt!==m&&ee.length&&(t(67,C=ee.map(te=>Ze(te,m,se,K))),qe=C,t(31,Ge=gt()),Xt=m,M==="auto"&&t(27,a=m.match(/g|hh?|ii?/i)&&m.match(/y|m|d/i)?"datetime":m.match(/g|hh?|ii?/i)?"time":"date"),ze=st(),Se(!0))}function gt(){return ee.sort((m,ne)=>m-ne).map(m=>Ze(m,pe||G,se,oe||K)).join(" - ")}function yl(){return b?C.length===2?C:null:C[0]||null}function st(){return C.join(",")}function Kt(m){return m.join(",")!==dt.join(",")}function Jt(){t(2,Z=ve),it=!1,a==="datetime"?setTimeout(()=>{E||t(35,l=!1),t(26,De="date")},ie?300:0):E||t(35,l=!1)}function pl(m,ne){m==="date"&&a==="datetime"&&(b&&C.length===2||!b)?t(26,De="time"):m==="hour"&&!ge&&o[ne].ref.showMinuteView()}function Ct({type:m,detail:ne}){let{value:te,isKeyboard:Xe,dateIndex:rt}=ne;if(te&&!b&&ee.length&&ee[0].getFullYear()===te.getFullYear()&&ee[0].getMonth()===te.getMonth()&&ee[0].getDate()===te.getDate()&&a==="date"&&!H&&fe&&(te=null),b){if(m==="date")t(30,ee=te?(ee.length===2?[te]:ee.concat(te)).map(Le=>Le.getTime()).sort().map(Le=>new Date(Le)):[]);else if(te&&rt!==void 0)t(30,ee[rt]=te,ee);else if(m==="datetime")t(30,ee[0]=te,ee),t(30,ee[1]=te,ee);else throw new Error(`Unhandled event type: '${m}'`);t(67,C=ee.map(Le=>Ze(Le,G,se,K)))}else t(30,ee=te?[te]:[]),t(67,C=te?[Ze(te,G,se,K)]:[]);Xe||(t(68,Ht=m),pl(m,rt||0)),Gn().then(()=>f&&Se(!Xe))}function Se(m){t(0,F=yl()),ze=st(),dt=[...C],t(31,Ge=gt()),t(38,d=Kt(C)),Dl(!0),J("change",b?C:C[0]||null),J("dateChange",{value:b?C:C[0]||null,dateValue:b?ee:ee[0]||null,displayValue:Ge,valueFormat:G,displayFormat:pe}),m&&Jt()}function wl(){const m=new Date,ne=ee[0]||m;Ct(new CustomEvent(a,{detail:{value:new Date(m.getFullYear(),m.getMonth(),m.getDate(),ne.getHours(),ne.getMinutes(),0),isKeyboard:!1}})),Se(!0)}function _t(){t(67,C=[]),qe=[],t(30,ee=[]),ze="",ie&&Se()}function Yt(){t(67,C=[...dt]),ze=st(),Jt(),J("cancel")}function Qt(m){if(l||(["Backspace","Delete"].includes(m.key)&&!H&&_t(),m.key==="Enter"&&ot()),!l&&m.key!=="Tab"){t(35,l=m.key!=="Shift"),m.preventDefault();return}switch(m.key){case"PageDown":case"PageUp":case"ArrowDown":case"ArrowUp":case"ArrowLeft":case"ArrowRight":if(m.preventDefault(),b)return;De==="date"?mt.handleGridNav(m.key,m.shiftKey):o[0].ref.makeTick(["ArrowDown","ArrowLeft","PageDown"].includes(m.key)?-1:1);break;case"Escape":ie?_t():Yt();break;case"Backspace":if(R&&!b)return;case"Delete":!H&&_t();break;case"Enter":if(lt&&m.preventDefault(),C.length===0){t(35,l=!1);return}if(De==="time"&&!it)return o[0].ref.showMinuteView();if(a==="datetime"&&De!=="time"){t(26,De="time");return}Se(a==="date"||a.includes("time")&&it);break;case"Tab":l&&(t(35,l=!1),m.preventDefault());case"F5":break;default:!R&&m.preventDefault()}}function vl(m){m.preventDefault(),m.stopPropagation();const ne=ut(m.target.value,pe||G,se,oe||K);Ze(ne,pe||G,se,oe||K)===m.target.value&&Ct(new CustomEvent("date",{detail:{value:ne,isKeyboard:!0}}))}function kl(m){t(2,Z=ve),t(26,De=m.detail),it=!1}function ot(){t(25,lt=!0),t(35,l=!0)}function xt(){t(25,lt=!1),c?Se(!1):Yt(),!X&&J("blur")}function Dl(m){$&&X&&(t(57,$.value=C.join(",")||"",$),t(1,X.value=Ge,X),$.dispatchEvent(new Event("input")),X.dispatchEvent(new Event("input"))),m&&J("input",ze)}function Ml({detail:m}){t(32,Zt=m)}function Tl(m){it=m.detail}Vl(()=>{X&&(t(1,X.onfocus=ot,X),t(1,X.onblur=xt,X),t(1,X.onclick=()=>!l&&ot(),X),t(1,X.onkeydown=Qt,X))});function Fl(m){Ot.call(this,n,m)}function El(m){Ot.call(this,n,m)}function Sl(m){Ot.call(this,n,m)}function Hl(m){yt[m?"unshift":"push"](()=>{St=m,t(33,St)})}const Cl=()=>{!l&&ot()};function Yl(m){yt[m?"unshift":"push"](()=>{mt=m,t(34,mt)})}function Ol(m,ne,te){yt[m?"unshift":"push"](()=>{ne[te].ref=m,t(37,o),t(8,b)})}const Bl=()=>Se(!0),Rl=()=>Se(!0);return n.$$set=m=>{"inputId"in m&&t(3,v=m.inputId),"name"in m&&t(4,B=m.name),"disabled"in m&&t(5,A=m.disabled),"placeholder"in m&&t(6,N=m.placeholder),"required"in m&&t(7,H=m.required),"value"in m&&t(0,F=m.value),"initialDate"in m&&t(58,T=m.initialDate),"isRange"in m&&t(8,b=m.isRange),"startDate"in m&&t(59,O=m.startDate),"endDate"in m&&t(60,P=m.endDate),"pickerOnly"in m&&t(9,E=m.pickerOnly),"startView"in m&&t(2,Z=m.startView),"mode"in m&&t(61,M=m.mode),"disableDatesFn"in m&&t(10,S=m.disableDatesFn),"manualInput"in m&&t(11,R=m.manualInput),"theme"in m&&t(12,W=m.theme),"format"in m&&t(13,G=m.format),"formatType"in m&&t(14,K=m.formatType),"displayFormat"in m&&t(62,pe=m.displayFormat),"displayFormatType"in m&&t(63,oe=m.displayFormatType),"minuteIncrement"in m&&t(15,Ee=m.minuteIncrement),"weekStart"in m&&t(16,Be=m.weekStart),"inputClasses"in m&&t(17,w=m.inputClasses),"todayBtnClasses"in m&&t(18,j=m.todayBtnClasses),"clearBtnClasses"in m&&t(19,ae=m.clearBtnClasses),"todayBtn"in m&&t(20,_e=m.todayBtn),"clearBtn"in m&&t(21,be=m.clearBtn),"clearToggle"in m&&t(64,fe=m.clearToggle),"autocommit"in m&&t(22,ie=m.autocommit),"hourOnly"in m&&t(23,ge=m.hourOnly),"i18n"in m&&t(24,se=m.i18n),"validatorAction"in m&&t(65,we=m.validatorAction),"ce_valueElement"in m&&t(57,$=m.ce_valueElement),"ce_displayElement"in m&&t(1,X=m.ce_displayElement),"positionResolver"in m&&t(66,D=m.positionResolver),"$$scope"in m&&t(69,g=m.$$scope)},n.$$.update=()=>{n.$$.dirty[0]&512&&t(35,l=E),n.$$.dirty[0]&16801792|n.$$.dirty[1]&268435456&&t(29,i=O?ut(O,G,se,K):null),n.$$.dirty[0]&16801792|n.$$.dirty[1]&536870912&&t(28,s=P?new Date(ut(P,G,se,K).setSeconds(1)):null),n.$$.dirty[0]&805306368&&t(42,u=i&&i>new Date||s&&s({}):Ue),n.$$.dirty[0]&256&&t(37,o=Fi(b)),n.$$.dirty[0]&8192|n.$$.dirty[1]&1073741824&&t(27,a=yi(M,G)),n.$$.dirty[0]&201326592&&a==="time"&&De!==a&&t(26,De=a),n.$$.dirty[0]&138412288&&t(36,c=ie&&(b&&a==="date"||!b)),n.$$.dirty[0]&146800896|n.$$.dirty[2]&96&&(f=ml(ie,b,a,Ht,C,ge)),n.$$.dirty[0]&33554434&&X&&t(1,X.readOnly=lt,X),n.$$.dirty[0]&512&&t(40,_=!!E),n.$$.dirty[0]&512|n.$$.dirty[2]&16&&t(39,h=E?()=>{}:D),n.$$.dirty[2]&32&&t(38,d=Kt(C)),n.$$.dirty[0]&1&&_l(F),n.$$.dirty[2]&32&&gl(C),n.$$.dirty[0]&8192|n.$$.dirty[2]&1&&bl(G)},[F,X,Z,v,B,A,N,H,b,E,S,R,W,G,K,Ee,Be,w,j,ae,_e,be,ie,ge,se,lt,De,a,s,i,ee,Ge,Zt,St,mt,l,c,o,d,h,_,r,u,hl,dl,Ct,Se,wl,_t,Yt,Qt,vl,kl,ot,xt,Ml,Tl,$,T,O,P,M,pe,oe,fe,we,D,C,Ht,g,p,Fl,El,Sl,Hl,Cl,Yl,Ol,Bl,Rl]}class Bi extends Nt{constructor(e){super(),Pt(this,e,Ei,Ti,Vt,{inputId:3,name:4,disabled:5,placeholder:6,required:7,value:0,initialDate:58,isRange:8,startDate:59,endDate:60,pickerOnly:9,startView:2,mode:61,disableDatesFn:10,manualInput:11,theme:12,format:13,formatType:14,displayFormat:62,displayFormatType:63,minuteIncrement:15,weekStart:16,inputClasses:17,todayBtnClasses:18,clearBtnClasses:19,todayBtn:20,clearBtn:21,clearToggle:64,autocommit:22,hourOnly:23,i18n:24,validatorAction:65,ce_valueElement:57,ce_displayElement:1,positionResolver:66},null,[-1,-1,-1,-1])}}export{mi as A,gi as B,ui as O,Bi as S,ri as a,sl as c}; diff --git a/docs/_app/immutable/chunks/SveltyPicker.6ef9562c.js b/docs/_app/immutable/chunks/SveltyPicker.6ef9562c.js new file mode 100644 index 0000000..0e271d0 --- /dev/null +++ b/docs/_app/immutable/chunks/SveltyPicker.6ef9562c.js @@ -0,0 +1,4 @@ +import{s as It,f as N,l as de,a as x,af as Ve,g as P,h as I,m as ge,d as w,c as $,ag as Ie,x as vt,j as b,v as z,i as j,w as H,y as K,n as me,N as Be,L as Nt,k as $t,J as Ze,u as ht,Q as Wn,O as qn,t as Gn,p as wt,e as Le,r as Al,C as Xn,E as Zn,F as Kn,G as Jn,o as Vl,M as Qn,W as Bt,U as Ye}from"./scheduler.6381a9b9.js";import{S as Pt,i as Lt,a as le,g as Ne,t as ue,c as Pe,j as Ft,k as Ut,f as nt,b as xn,d as $n,m as el,e as tl}from"./index.cf31950d.js";import{e as oe,u as gt,d as jt,o as nl}from"./each.31dbf577.js";import{e as Il}from"./index.a4c1e395.js";import{c as Nl,f as Ge}from"./index.93a0d223.js";const Pl={theme:"sdt-calendar-colors",format:"yyyy-mm-dd",formatType:"standard",displayFormat:null,displayFormatType:null,minuteIncrement:1,weekStart:1,inputClasses:"",todayBtnClasses:"sdt-action-btn sdt-today-btn",clearBtnClasses:"sdt-action-btn sdt-clear-btn",hourOnly:!1,todayBtn:!0,clearBtn:!0,clearToggle:!0,autocommit:!0,i18n:Il},Ee=0,qe=1,De=2,Ll=3;function ct(n,e,t,l){var m,M;if(n instanceof Date)return n;const i=l==="php"?{date:"Y-m-d",datetime:"Y-m-d H:i",datetime_s:"Y-m-d H:i:s"}:{date:"yyyy-mm-dd",datetime:"yyyy-mm-dd hh:ii",datetime_s:"yyyy-mm-dd hh:ii:ss"};let s,u;/^\d{4}\-\d{1,2}\-\d{1,2}$/.test(n)?s=Ae.parseFormat(i.date,l):/^\d{4}\-\d{1,2}\-\d{1,2}[T ]\d{1,2}\:\d{1,2}$/.test(n)?s=Ae.parseFormat(i.datetime,l):/^\d{4}\-\d{1,2}\-\d{1,2}[T ]\d{1,2}\:\d{1,2}\:\d{1,2}[Z]{0,1}$/.test(n)?s=Ae.parseFormat(i.datetime_s,l):(/^([01]*\d|2[0-3])([0-5]\d)(?:[ ]([ap][m]|[AP][M]))?$/.test(n)&&(u=(m=n.match(/^([01]*\d|2[0-3])([0-5]\d)(?:[ ]([ap][m]|[AP][M]))?$/))==null?void 0:m.slice(1).filter(A=>A)),s=Ae.parseFormat(e,l));const o=u||n&&n.toString().match(Ae.nonpunctuation)||[];n=new Date,n.setHours(0,0,0,0);const r={},{setters_order:a,setters_map:c}=Ae.setters(l);let f,_;if(o.length!==s.parts.length&&s.parts.includes("S")){const A=(M=o[s.parts.indexOf("S")-1].match(/(\d+)([a-zA-Z]+)/))==null?void 0:M.slice(1,3);o.splice(s.parts.indexOf("S")-1,1,...A)}if(o.length===s.parts.length){for(var h=0,d=s.parts.length;hl.setHours(i),h:(l,i)=>l.setHours(i),HH:(l,i)=>l.setHours(i===12?0:i),H:(l,i)=>l.setHours(i===12?0:i),i:(l,i)=>l.setMinutes(i),s:(l,i)=>l.setSeconds(i),yyyy:(l,i)=>l.setFullYear(i),yy:(l,i)=>l.setFullYear((i<50?2e3:1900)+i),m:(l,i)=>{for(i-=1;i<0;)i+=12;for(i%=12,l.setMonth(i);l.getMonth()!==i;){if(isNaN(l.getMonth()))return l;l.setDate(l.getDate()-1)}return l},d:(l,i)=>l.setDate(i),p:(l,i)=>l.setHours(i===1&&l.getHours()<12?l.getHours()+12:l.getHours()),t:(l,i)=>l.setTime(i),mm:()=>{},M:()=>{},MM:()=>{},ii:()=>{},ss:()=>{},dd:()=>{},D:()=>{},DD:()=>{},P:()=>{}},t.mm=t.M=t.MM=t.m,t.ii=t.i,t.ss=t.s,t.dd=t.D=t.DD=t.d,t.P=t.p):(e=["Y","yy","m","M","F","n","d","D","j","l","N","S","H","G","h","g","i","s","p","P","U"],t={H:(l,i)=>l.setHours(i),G:(l,i)=>l.setHours(i),h:(l,i)=>l.setHours(i===12?0:i),g:(l,i)=>l.setHours(i===12?0:i),i:(l,i)=>l.setMinutes(i),s:(l,i)=>l.setSeconds(i),Y:(l,i)=>l.setFullYear(i),yy:(l,i)=>l.setFullYear((i<50?2e3:1900)+i),m:(l,i)=>{for(i-=1;i<0;)i+=12;for(i%=12,l.setMonth(i);l.getMonth()!==i;){if(isNaN(l.getMonth()))return l;l.setDate(l.getDate()-1)}return l},n:(l,i)=>l.setMonth(i-1),d:(l,i)=>l.setDate(i),a:(l,i)=>l.setHours(i===1?l.getHours()+12:l.getHours()),U:(l,i)=>l.setTime(i*1e3)},t.F=t.M=t.m,t.D=t.j=t.l=t.N=t.d,t.A=t.a),{setters_order:e,setters_map:t}}};function Ul(n,e,t,l,i){if(t===Ee){let W=10,L=20;const C=-1,O=[];let p=[],V=n.getFullYear()-n.getFullYear()%10;V-=V%20?12:10,V%10&&(W=12,L=22);for(let T=0;T<32;T++)p.push(V+T),p.length===4&&(O.push(p),p=[]);let Y=[];return e[0]||(e[0]=new Date),e[0].getFullYear()>=V&&Y.push(e[0].getFullYear()%V),{years:O,todayMark:C,nextFrom:L,prevTo:W,selectionMark:Y}}if(t===qe){let W=[],L=[],C=12,O=24;const p=n.toISOString().split("T")[0].substring(0,8),V=new Date(p+"01 00:00:00"),Y=V.getFullYear()-1;V.setFullYear(Y);let T=0;for(let y=0;y<3;y++){for(let F=0;F<12;F++)V.setMonth(F),L.push(l.monthsShort[F%12]),L.length===4&&(W.push(L),L=[]);V.setFullYear(V.getFullYear()+1)}let B=[];return e[0]||(e[0]=new Date),e[0].getFullYear()-Y>=0&&e[0].getFullYear()-Y<=2&&B.push(e[0].getMonth()+(e[0].getFullYear()-Y||0)*12),{months:W,todayMark:T,nextFrom:O,prevTo:C,selectionMark:B}}let s=n||new Date,u=s.getFullYear(),o=s.getMonth();s.getDate(),s.getHours();let r=new Date,a=new Date(u,o-1,28,0,0,0,0),c=ll(a.getFullYear(),a.getMonth());a.setDate(c),a.setDate(c-(a.getDay()-i+7)%7);let f=new Date(a);f.setDate(f.getDate()+42);let _=f.valueOf(),h=[],d=[],k=-1,m=[],M=0,A=42,E=0;for(;a.valueOf()<_;)E++,d.push(new Date(a)),a.getFullYear()u||a.getFullYear()===u&&a.getMonth()>o)&&(A=E-1),a.setDate(a.getDate()+1),a.getFullYear()===r.getFullYear()&&a.getMonth()===r.getMonth()&&a.getDate()===r.getDate()&&(k=E),m.length!==e.length&&e.map(W=>{a.getFullYear()===W.getFullYear()&&a.getMonth()===W.getMonth()&&a.getDate()===W.getDate()&&m.push(E)}),d.length===7&&(h.push(d),d=[]);return{grid:h,days:h,todayMark:k,prevTo:M,nextFrom:A,selectionMark:m}}function jl(n,{duration:e=400,start:t=0,end:l=1,opacity:i=0}){const s=getComputedStyle(n),u=+s.opacity,o=s.transform==="none"?"":s.transform,r=1-t,a=u*(1-i);return l=l||1,{delay:0,duration:e,easing:Nl,css:(c,f)=>` + transform: ${o} scale(${l!==1?t+l*f:1-r*f}); + opacity: ${u-a*f}; + `}}function en(n,e,t){const l=n.slice();return l[48]=e[t],l[50]=t,l}function tn(n,e,t){const l=n.slice();l[51]=e[t],l[55]=t;const i=l[50]*7+l[55];l[52]=i;const s=l[51].getTime();return l[53]=s,l}function nn(n,e,t){const l=n.slice();return l[56]=e[t],l}function ln(n,e,t){const l=n.slice();return l[48]=e[t],l[50]=t,l}function sn(n,e,t){const l=n.slice();l[60]=e[t],l[55]=t;const i=l[50]*4+l[55];return l[52]=i,l}function rn(n,e,t){const l=n.slice();return l[48]=e[t],l[50]=t,l}function on(n,e,t){const l=n.slice();l[63]=e[t],l[55]=t;const i=l[50]*4+l[55];return l[52]=i,l}function an(n){let e,t,l,i,s,u;return{c(){e=N("button"),t=Ve("svg"),l=Ve("path"),this.h()},l(o){e=P(o,"BUTTON",{type:!0,class:!0,title:!0});var r=I(e);t=Ie(r,"svg",{class:!0,xmlns:!0,viewBox:!0,width:!0,height:!0});var a=I(t);l=Ie(a,"path",{"fill-rule":!0,d:!0}),I(l).forEach(w),a.forEach(w),r.forEach(w),this.h()},h(){b(l,"fill-rule","evenodd"),b(l,"d","M1.5 8a6.5 6.5 0 1113 0 6.5 6.5 0 01-13 0zM8 0a8 8 0 100 16A8 8 0 008 0zm.5 4.75a.75.75 0 00-1.5 0v3.5a.75.75 0 00.471.696l2.5 1a.75.75 0 00.557-1.392L8.5 7.742V4.75z"),b(t,"class","sdt-svg svelte-hexbpx"),b(t,"xmlns","http://www.w3.org/2000/svg"),b(t,"viewBox","0 0 16 16"),b(t,"width","16"),b(t,"height","16"),b(e,"type","button"),b(e,"class","std-btn std-btn-header icon-btn sdt-time-icon svelte-hexbpx"),b(e,"title",i=n[3].timeView)},m(o,r){j(o,e,r),H(e,t),H(t,l),s||(u=K(e,"click",n[28]),s=!0)},p(o,r){r[0]&8&&i!==(i=o[3].timeView)&&b(e,"title",i)},d(o){o&&w(e),s=!1,u()}}}function un(n){let e,t,l,i,s,u,o,r,a=oe(n[15].years),c=[];for(let f=0;f{u&&(s&&s.end(1),i=Ft(t,n[18],{duration:lt,start:n[20],opacity:1}),i.start())}),u=!0)},o(f){i&&i.invalidate(),f&&(s=Ut(t,n[18],{duration:lt,end:n[19],start:1})),u=!1},d(f){f&&w(e),ht(c,f),f&&s&&s.end(),o=!1,Be(r)}}}function fn(n,e){let t,l,i=e[63]+"",s,u,o,r;function a(){return e[39](e[63])}return{key:n,first:null,c(){t=N("td"),l=N("button"),s=de(i),this.h()},l(c){t=P(c,"TD",{class:!0});var f=I(t);l=P(f,"BUTTON",{type:!0,class:!0});var _=I(l);s=ge(_,i),_.forEach(w),f.forEach(w),this.h()},h(){b(l,"type","button"),b(l,"class","std-btn svelte-hexbpx"),l.disabled=u=e[22](new Date(e[63],e[7].getMonth(),e[7].getDate())),z(l,"not-current",!e[21](e[52])),b(t,"class","sdt-cal-td svelte-hexbpx"),z(t,"is-selected",e[15].selectionMark.includes(e[52])),this.first=t},m(c,f){j(c,t,f),H(t,l),H(l,s),o||(r=K(l,"click",a),o=!0)},p(c,f){e=c,f[0]&32768&&i!==(i=e[63]+"")&&me(s,i),f[0]&32896&&u!==(u=e[22](new Date(e[63],e[7].getMonth(),e[7].getDate())))&&(l.disabled=u),f[0]&2129920&&z(l,"not-current",!e[21](e[52])),f[0]&32768&&z(t,"is-selected",e[15].selectionMark.includes(e[52]))},d(c){c&&w(t),o=!1,r()}}}function cn(n){let e,t=[],l=new Map,i,s=oe(n[48]);const u=o=>o[55];for(let o=0;o{u&&(s&&s.end(1),i=Ft(t,n[18],{duration:lt,start:n[20],opacity:1}),i.start())}),u=!0)},o(f){i&&i.invalidate(),f&&(s=Ut(t,n[18],{duration:lt,end:n[19],start:1})),u=!1},d(f){f&&w(e),ht(c,f),f&&s&&s.end(),o=!1,Be(r)}}}function dn(n,e){let t,l,i=e[60]+"",s,u,o,r;function a(){return e[41](e[60])}return{key:n,first:null,c(){t=N("td"),l=N("button"),s=de(i),this.h()},l(c){t=P(c,"TD",{class:!0});var f=I(t);l=P(f,"BUTTON",{class:!0,type:!0});var _=I(l);s=ge(_,i),_.forEach(w),f.forEach(w),this.h()},h(){b(l,"class","std-btn svelte-hexbpx"),b(l,"type","button"),l.disabled=u=e[22](new Date(e[7].getFullYear(),e[3].monthsShort.indexOf(e[60]),e[7].getDate())),z(l,"not-current",!e[21](e[52])),b(t,"class","sdt-cal-td svelte-hexbpx"),z(t,"is-selected",e[52]===e[15].selectionMark[0]),this.first=t},m(c,f){j(c,t,f),H(t,l),H(l,s),o||(r=K(l,"click",a),o=!0)},p(c,f){e=c,f[0]&32768&&i!==(i=e[60]+"")&&me(s,i),f[0]&32904&&u!==(u=e[22](new Date(e[7].getFullYear(),e[3].monthsShort.indexOf(e[60]),e[7].getDate())))&&(l.disabled=u),f[0]&2129920&&z(l,"not-current",!e[21](e[52])),f[0]&32768&&z(t,"is-selected",e[52]===e[15].selectionMark[0])},d(c){c&&w(t),o=!1,r()}}}function gn(n){let e,t=[],l=new Map,i,s=oe(n[48]);const u=o=>o[55];for(let o=0;o{o&&(u&&u.end(1),s=Ft(t,n[18],{duration:lt,start:.5,opacity:1}),s.start())}),o=!0)},o(d){s&&s.invalidate(),d&&(u=Ut(t,n[18],{duration:lt,start:Math.abs(n[9])})),o=!1},d(d){d&&w(e),ht(f,d),ht(h,d),d&&u&&u.end(),r=!1,a()}}}function _n(n){let e,t=n[56]+"",l;return{c(){e=N("th"),l=de(t),this.h()},l(i){e=P(i,"TH",{class:!0});var s=I(e);l=ge(s,t),s.forEach(w),this.h()},h(){b(e,"class","sdt-cal-th svelte-hexbpx")},m(i,s){j(i,e,s),H(e,l)},p(i,s){s[0]&131072&&t!==(t=i[56]+"")&&me(l,t)},d(i){i&&w(e)}}}function bn(n,e){let t,l,i=e[51].getDate()+"",s,u,o,r;function a(){return e[43](e[51])}return{key:n,first:null,c(){t=N("td"),l=N("button"),s=de(i),this.h()},l(c){t=P(c,"TD",{class:!0});var f=I(t);l=P(f,"BUTTON",{type:!0,class:!0});var _=I(l);s=ge(_,i),_.forEach(w),f.forEach(w),this.h()},h(){b(l,"type","button"),b(l,"class","std-btn sdt-btn-day svelte-hexbpx"),l.disabled=u=(e[16]||e[2]||e[6])&&e[22](e[51]),z(l,"not-current",!e[21](e[50]*7+e[55])),b(t,"class","sdt-cal-td svelte-hexbpx"),z(t,"sdt-today",e[52]===e[15].todayMark),z(t,"in-range",e[30](e[53])),z(t,"is-selected",e[14].includes(e[53])),z(t,"in-range-hover",e[5]&&e[31](e[53],e[0])),this.first=t},m(c,f){j(c,t,f),H(t,l),H(l,s),o||(r=[K(l,"click",a),K(t,"mouseover",function(){Wn(e[29](e[51]))&&e[29](e[51]).apply(this,arguments)}),K(t,"mouseout",e[29]())],o=!0)},p(c,f){e=c,f[0]&32768&&i!==(i=e[51].getDate()+"")&&me(s,i),f[0]&98372&&u!==(u=(e[16]||e[2]||e[6])&&e[22](e[51]))&&(l.disabled=u),f[0]&2129920&&z(l,"not-current",!e[21](e[50]*7+e[55])),f[0]&32768&&z(t,"sdt-today",e[52]===e[15].todayMark),f[0]&1073774592&&z(t,"in-range",e[30](e[53])),f[0]&49152&&z(t,"is-selected",e[14].includes(e[53])),f[0]&32801|f[1]&1&&z(t,"in-range-hover",e[5]&&e[31](e[53],e[0]))},d(c){c&&w(t),o=!1,Be(r)}}}function pn(n){let e,t=[],l=new Map,i,s=oe(n[48]);const u=o=>o[55];for(let o=0;o{V=null}),Pe()),B[8]===qe?Y?(Y.p(B,y),y[0]&256&&le(Y,1)):(Y=hn(B),Y.c(),le(Y,1),Y.m(E,L)):Y&&(Ne(),ue(Y,1,1,()=>{Y=null}),Pe()),B[8]===De?T?(T.p(B,y),y[0]&256&&le(T,1)):(T=mn(B),T.c(),le(T,1),T.m(E,null)):T&&(Ne(),ue(T,1,1,()=>{T=null}),Pe()),y[0]&1024&&z(E,"is-grid",B[10])},i(B){le(V),le(Y),le(T)},o(B){ue(V),ue(Y),ue(T)},d(B){B&&(w(e),w(A),w(E)),p&&p.d(),V&&V.d(),Y&&Y.d(),T&&T.d(),C=!1,Be(O)}}}let lt=400;const Fe=222,ft=148;function Wl(n,e,t){var Ke;let l,i,s,u,o,r,a,c,{wid:f}=e,{dates:_}=e,{startDate:h=null}=e,{endDate:d=null}=e,{weekStart:k=1}=e,{initialView:m=De}=e,{i18n:M}=e,{enableTimeToggle:A=!1}=e,{isRange:E=!1}=e,{hoverDate:W=null}=e,{additionalDisableFn:L}=e;function C(D,S){if(Y!==De){t(8,Y=De),t(9,T=1),t(7,p=new Date(O||new Date));return}if(!O){fe(new Date,{keyboard:!0});return}let U=new Date(O);switch(D){case"PageDown":S=!0;case"ArrowDown":S?U.setMonth(O.getMonth()+1):U.setDate(O.getDate()+7),S&&U.getMonth()===O.getMonth()&&U.setDate(0),fe(U,{keyboard:!0});break;case"PageUp":S=!0;case"ArrowUp":S?U.setMonth(O.getMonth()-1):U.setDate(O.getDate()-7),S&&U.getMonth()===O.getMonth()&&U.setDate(0),fe(U,{keyboard:!0});break;case"ArrowLeft":S?U.setFullYear(O.getFullYear()-1):U.setDate(O.getDate()-1),fe(U,{keyboard:!0});break;case"ArrowRight":S?U.setFullYear(O.getFullYear()+1):U.setDate(O.getDate()+1),fe(U,{keyboard:!0});break}}let O=_[f]||null,p=f===1?(()=>{if(_.length===2&&_[1])return _[1];const D=new Date(_[0]||new Date);return D.setMonth(D.getMonth()+1),D})():new Date(((Ke=_[0])==null?void 0:Ke.valueOf())||new Date);const V=Nt();let Y=m,T=-2,B=!1,y=Fe,F=null;function R(D){return r.prevTo<=D&&DD||d&&d<=D||L&&L(D))return!0;break;case qe:const S=D.getFullYear(),U=l==null?void 0:l.getFullYear(),Z=d==null?void 0:d.getFullYear();if(l&&(U===S&&l.getMonth()>D.getMonth()||U>S)||d&&(Z===S&&d.getMonth()D.getFullYear()||d&&d.getFullYear()ke.getFullYear():D.getFullYear()+S*10ke.getFullYear():D.getFullYear()+Ske.getFullYear()*100+ke.getMonth():D.getFullYear()*100+D.getMonth()+S28&&U.setDate(U.getDate()-3),U.setMonth(p.getMonth()+D*S),t(7,p=U),t(12,F=null),t(11,y=Y===Ee?p.getFullYear()%20>=10?Fe:ft:Fe)}function ie(D){if(Y===De)return J(D);if(t(12,F=()=>{J(D)}),Y===Ee){t(11,y=y===ft?D===-1?y-Fe:Fe+ft:D===-1?y-Fe:y+ft);return}t(11,y=D===-1?y-Fe:y+Fe)}function we(){if(t(9,T=-1),t(10,B=!0),Y&&t(8,Y--,Y),Y===Ee){const D=Math.floor(p.getFullYear()/10)*10%20===0;t(11,y=D?ft:Fe)}}function fe(D,{keyboard:S}={}){switch(t(9,T=1),t(10,B=!0),Y){case 0:p.setFullYear(D),t(7,p);break;case 1:p.setMonth(M.monthsShort.indexOf(D)),t(7,p);break;case 2:if(q(D)||L&&L(D))return;const U=new Date(D.getFullYear(),D.getMonth(),D.getDate());O&&(U.setMinutes(O.getMinutes()),U.setHours(O.getHours())),O=U,S&&(p.getFullYear()!==U.getFullYear()||p.getFullYear()===U.getFullYear()&&p.getMonth()!==U.getMonth())&&(p.setFullYear(U.getFullYear()),p.getDate()>28&&p.setDate(28),p.setMonth(U.getMonth()),t(7,p)),V("date",{value:O,update:"date",isKeyboard:S});break}Y=o[0]&&D=S&&o[0]>=D)}const ce=()=>ie(-1),se=()=>ie(1),_e=D=>{fe(D)},re=()=>F&&F(),ve=D=>{fe(D)},ee=()=>F&&F(),Q=D=>{fe(D)};return n.$$set=D=>{"wid"in D&&t(32,f=D.wid),"dates"in D&&t(1,_=D.dates),"startDate"in D&&t(33,h=D.startDate),"endDate"in D&&t(2,d=D.endDate),"weekStart"in D&&t(34,k=D.weekStart),"initialView"in D&&t(35,m=D.initialView),"i18n"in D&&t(3,M=D.i18n),"enableTimeToggle"in D&&t(4,A=D.enableTimeToggle),"isRange"in D&&t(5,E=D.isRange),"hoverDate"in D&&t(0,W=D.hoverDate),"additionalDisableFn"in D&&t(6,L=D.additionalDisableFn)},n.$$.update=()=>{n.$$.dirty[1]&4&&t(16,l=h?new Date(h.getFullYear(),h.getMonth(),h.getDate(),0,0,0,0):null),n.$$.dirty[0]&512&&t(20,i=T<1?1.5:.5),n.$$.dirty[0]&512&&t(19,s=T<1?1:1.5),n.$$.dirty[0]&512&&t(18,u=T===-2?Ge:T!==null?jl:()=>({})),n.$$.dirty[0]&2&&t(14,o=_.map(D=>(D=new Date(D),D.setHours(0,0),D.getTime()))),n.$$.dirty[0]&394|n.$$.dirty[1]&8&&t(15,r=Ul(p,_,Y,M,k)),n.$$.dirty[0]&8|n.$$.dirty[1]&8&&t(17,a=M.daysMin.concat(...M.daysMin.slice(1)).slice(k,7+k)),n.$$.dirty[0]&2&&_.length===0&&(O=null),n.$$.dirty[0]&392&&t(13,c=M&&G(Y,p))},[W,_,d,M,A,E,L,p,Y,T,B,y,F,c,o,r,l,a,u,s,i,R,q,X,ie,we,fe,Re,v,ae,be,pe,f,h,k,m,C,ce,se,_e,re,ve,ee,Q]}class ql extends Pt{constructor(e){super(),Lt(this,e,Wl,zl,It,{wid:32,dates:1,startDate:33,endDate:2,weekStart:34,initialView:35,i18n:3,enableTimeToggle:4,isRange:5,hoverDate:0,additionalDisableFn:6,handleGridNav:36},null,[-1,-1,-1])}get handleGridNav(){return this.$$.ctx[36]}}function yn(n,e,t){const l=n.slice();return l[37]=e[t],l[39]=t,l}function wn(n,e,t){const l=n.slice();return l[37]=e[t],l[39]=t,l}function vn(n){let e,t,l,i,s,u;return{c(){e=N("button"),t=Ve("svg"),l=Ve("path"),this.h()},l(o){e=P(o,"BUTTON",{type:!0,class:!0,title:!0});var r=I(e);t=Ie(r,"svg",{class:!0,xmlns:!0,viewBox:!0,width:!0,height:!0});var a=I(t);l=Ie(a,"path",{"fill-rule":!0,d:!0}),I(l).forEach(w),a.forEach(w),r.forEach(w),this.h()},h(){b(l,"fill-rule","evenodd"),b(l,"d","M6.75 0a.75.75 0 01.75.75V3h9V.75a.75.75 0 011.5 0V3h2.75c.966 0 1.75.784 1.75 1.75v16a1.75 1.75 0 01-1.75 1.75H3.25a1.75 1.75 0 01-1.75-1.75v-16C1.5 3.784 2.284 3 3.25 3H6V.75A.75.75 0 016.75 0zm-3.5 4.5a.25.25 0 00-.25.25V8h18V4.75a.25.25 0 00-.25-.25H3.25zM21 9.5H3v11.25c0 .138.112.25.25.25h17.5a.25.25 0 00.25-.25V9.5z"),b(t,"class","sdt-svg svelte-bn8ebp"),b(t,"xmlns","http://www.w3.org/2000/svg"),b(t,"viewBox","0 0 24 24"),b(t,"width","20"),b(t,"height","20"),b(e,"type","button"),b(e,"class","sdt-time-btn sdt-back-btn svelte-bn8ebp"),b(e,"title",i=n[5].backToDate)},m(o,r){j(o,e,r),H(e,t),H(t,l),s||(u=K(e,"click",n[22]),s=!0)},p(o,r){r[0]&32&&i!==(i=o[5].backToDate)&&b(e,"title",i)},d(o){o&&w(e),s=!1,u()}}}function Gl(n){let e,t=n[16](n[9],n[3])+"",l,i,s;function u(a,c){return a[3]?Kl:Zl}let o=u(n),r=o(n);return{c(){e=N("span"),l=de(t),i=x(),r.c(),s=Le(),this.h()},l(a){e=P(a,"SPAN",{class:!0});var c=I(e);l=ge(c,t),c.forEach(w),i=$(a),r.l(a),s=Le(),this.h()},h(){b(e,"class","sdt-time-figure svelte-bn8ebp")},m(a,c){j(a,e,c),H(e,l),j(a,i,c),r.m(a,c),j(a,s,c)},p(a,c){c[0]&520&&t!==(t=a[16](a[9],a[3])+"")&&me(l,t),o===(o=u(a))&&r?r.p(a,c):(r.d(1),r=o(a),r&&(r.c(),r.m(s.parentNode,s)))},d(a){a&&(w(e),w(i),w(s)),r.d(a)}}}function Xl(n){let e,t=n[16](n[9],n[3])+"",l,i,s,u=":",o,r,a=n[16](n[8],!1)+"",c,f,_;return{c(){e=N("button"),l=de(t),i=x(),s=N("span"),s.textContent=u,o=x(),r=N("button"),c=de(a),this.h()},l(h){e=P(h,"BUTTON",{type:!0,class:!0});var d=I(e);l=ge(d,t),d.forEach(w),i=$(h),s=P(h,"SPAN",{"data-svelte-h":!0}),vt(s)!=="svelte-5vnx5k"&&(s.textContent=u),o=$(h),r=P(h,"BUTTON",{type:!0,class:!0});var k=I(r);c=ge(k,a),k.forEach(w),this.h()},h(){b(e,"type","button"),b(e,"class","sdt-time-btn sdt-time-figure svelte-bn8ebp"),z(e,"is-active",!n[6]),b(r,"type","button"),b(r,"class","sdt-time-btn sdt-time-figure svelte-bn8ebp"),z(r,"is-active",n[6])},m(h,d){j(h,e,d),H(e,l),j(h,i,d),j(h,s,d),j(h,o,d),j(h,r,d),H(r,c),f||(_=[K(e,"click",n[28]),K(r,"click",n[29])],f=!0)},p(h,d){d[0]&520&&t!==(t=h[16](h[9],h[3])+"")&&me(l,t),d[0]&64&&z(e,"is-active",!h[6]),d[0]&256&&a!==(a=h[16](h[8],!1)+"")&&me(c,a),d[0]&64&&z(r,"is-active",h[6])},d(h){h&&(w(e),w(i),w(s),w(o),w(r)),f=!1,Be(_)}}}function Zl(n){let e,t=":",l,i,s="00";return{c(){e=N("span"),e.textContent=t,l=x(),i=N("span"),i.textContent=s,this.h()},l(u){e=P(u,"SPAN",{"data-svelte-h":!0}),vt(e)!=="svelte-5vnx5k"&&(e.textContent=t),l=$(u),i=P(u,"SPAN",{class:!0,"data-svelte-h":!0}),vt(i)!=="svelte-15oc2gl"&&(i.textContent=s),this.h()},h(){b(i,"class","sdt-time-figure svelte-bn8ebp")},m(u,o){j(u,e,o),j(u,l,o),j(u,i,o)},p:Al,d(u){u&&(w(e),w(l),w(i))}}}function Kl(n){let e,t=(n[13]?n[5].meridiem[1]:n[5].meridiem[0]).toUpperCase()+"",l;return{c(){e=N("span"),l=de(t),this.h()},l(i){e=P(i,"SPAN",{class:!0});var s=I(e);l=ge(s,t),s.forEach(w),this.h()},h(){b(e,"class","sdt-time-figure svelte-bn8ebp")},m(i,s){j(i,e,s),H(e,l)},p(i,s){s[0]&8224&&t!==(t=(i[13]?i[5].meridiem[1]:i[5].meridiem[0]).toUpperCase()+"")&&me(l,t)},d(i){i&&w(e)}}}function kn(n){let e,t,l=(n[13]?n[5].meridiem[1]:n[5].meridiem[0])+"",i,s,u,o;return{c(){e=N("div"),t=N("button"),i=de(l),this.h()},l(r){e=P(r,"DIV",{class:!0});var a=I(e);t=P(a,"BUTTON",{type:!0,class:!0,"data-value":!0});var c=I(t);i=ge(c,l),c.forEach(w),a.forEach(w),this.h()},h(){b(t,"type","button"),b(t,"class","sdt-time-btn sdt-time-figure is-active svelte-bn8ebp"),b(t,"data-value",s=n[13]?n[9]%12:n[9]+12),b(e,"class","sdt-meridian svelte-bn8ebp")},m(r,a){j(r,e,a),H(e,t),H(t,i),u||(o=K(t,"click",n[20]),u=!0)},p(r,a){a[0]&8224&&l!==(l=(r[13]?r[5].meridiem[1]:r[5].meridiem[0])+"")&&me(i,l),a[0]&8704&&s!==(s=r[13]?r[9]%12:r[9]+12)&&b(t,"data-value",s)},d(r){r&&w(e),u=!1,o()}}}function Dn(n,e){let t,l=e[37].val+"",i,s,u,o,r,a;return{key:n,first:null,c(){t=N("button"),i=de(l),this.h()},l(c){t=P(c,"BUTTON",{type:!0,style:!0,class:!0,"data-value":!0});var f=I(t);i=ge(f,l),f.forEach(w),this.h()},h(){b(t,"type","button"),b(t,"style",s=`left:${e[37].x}px; top:${e[37].y}px;`),b(t,"class","sdt-tick svelte-bn8ebp"),b(t,"data-value",u=e[37].val),t.disabled=o=(e[0]||e[1])&&e[7]&&e[18](e[37].val,!1),z(t,"outer-tick",e[6]),z(t,"is-selected",e[17](e[9],e[37].val,e[39])),this.first=t},m(c,f){j(c,t,f),H(t,i),a=!0},p(c,f){e=c,(!a||f[0]&32768)&&l!==(l=e[37].val+"")&&me(i,l),(!a||f[0]&32768&&s!==(s=`left:${e[37].x}px; top:${e[37].y}px;`))&&b(t,"style",s),(!a||f[0]&32768&&u!==(u=e[37].val))&&b(t,"data-value",u),(!a||f[0]&32899&&o!==(o=(e[0]||e[1])&&e[7]&&e[18](e[37].val,!1)))&&(t.disabled=o),(!a||f[0]&64)&&z(t,"outer-tick",e[6]),(!a||f[0]&164352)&&z(t,"is-selected",e[17](e[9],e[37].val,e[39]))},i(c){a||(c&&Ze(()=>{a&&(r||(r=nt(t,Ge,{duration:200},!0)),r.run(1))}),a=!0)},o(c){c&&(r||(r=nt(t,Ge,{duration:200},!1)),r.run(0)),a=!1},d(c){c&&w(t),c&&r&&r.end()}}}function Mn(n){let e,t=n[37].val+"",l,i,s,u,o,r;return{c(){e=N("button"),l=de(t),this.h()},l(a){e=P(a,"BUTTON",{type:!0,style:!0,class:!0,"data-value":!0});var c=I(e);l=ge(c,t),c.forEach(w),this.h()},h(){b(e,"type","button"),b(e,"style",i=`left:${n[37].x}px; top:${n[37].y}px;`),b(e,"class","sdt-tick svelte-bn8ebp"),b(e,"data-value",s=n[37].val),e.disabled=u=(n[0]||n[1])&&n[7]&&n[18](n[37].val,!1),z(e,"outer-tick",n[3]&&!n[6]),z(e,"is-selected",n[17](n[6]?n[8]:n[9],n[37].val,n[39]))},m(a,c){j(a,e,c),H(e,l),r=!0},p(a,c){(!r||c[0]&16384)&&t!==(t=a[37].val+"")&&me(l,t),(!r||c[0]&16384&&i!==(i=`left:${a[37].x}px; top:${a[37].y}px;`))&&b(e,"style",i),(!r||c[0]&16384&&s!==(s=a[37].val))&&b(e,"data-value",s),(!r||c[0]&16515&&u!==(u=(a[0]||a[1])&&a[7]&&a[18](a[37].val,!1)))&&(e.disabled=u),(!r||c[0]&72)&&z(e,"outer-tick",a[3]&&!a[6]),(!r||c[0]&148288)&&z(e,"is-selected",a[17](a[6]?a[8]:a[9],a[37].val,a[39]))},i(a){r||(a&&Ze(()=>{r&&(o||(o=nt(e,Ge,{duration:200},!0)),o.run(1))}),r=!0)},o(a){a&&(o||(o=nt(e,Ge,{duration:200},!1)),o.run(0)),r=!1},d(a){a&&w(e),a&&o&&o.end()}}}function Jl(n){let e,t,l,i,s,u,o,r,a,c,f,_=[],h=new Map,d,k,m,M,A,E=n[4]&&vn(n);function W(y,F){return y[2]?Gl:Xl}let L=W(n),C=L(n),O=n[3]&&kn(n),p=oe(n[15]);const V=y=>y[37].val;for(let y=0;yue(T[y],1,1,()=>{T[y]=null});return{c(){e=N("div"),t=N("div"),E&&E.c(),l=x(),C.c(),i=x(),O&&O.c(),s=x(),u=N("div"),o=N("div"),r=x(),a=N("div"),c=N("div"),f=x();for(let y=0;y<_.length;y+=1)_[y].c();d=x();for(let y=0;y{k=Ft(e,Ge,{duration:200}),k.start()})),m=!0}},o(y){for(let F=0;F<_.length;F+=1)ue(_[F]);T=T.filter(Boolean);for(let F=0;F=9||ee<3?-1:1)*G),val:be?ee*5||ae:ee?ee+pe:ae});return ve}function B(v,G){return G?i&&v===12?12:v<10||v%12<10?`0${v%12}`:v%12:v<10?`0${v}`:v}function y(v,G,ae){return C?G===v||ae===0&&ae===v:m?i&&G==12&&v===12||!i&&G==12&&v===0?!0:G===(v?v%12:12):+G>12?(ae?u*ae+12:0)===v:G==="00"||G==="12"?v===12&&parseInt(G)==12||G==="00"&&v===0:G===v}function F(v,G=!1){return typeof v=="string"&&(v=parseInt(v)),_&&h&&o?C||G?_.getHours()===p.getHours()&&_.getMinutes()>v||h.getHours()===p.getHours()&&h.getMinutes()v||h.getHours()v:_.getHours()>v:h&&h.getDate()===p.getDate()&&h.getMonth()===p.getMonth()&&h.getFullYear()===p.getFullYear()?C||G?h.getHours()===p.getHours()&&h.getMinutes()s?s+k:s-k),p[pe](be)}else if(C){const be=L.getBoundingClientRect(),pe=v.clientX-be.left,ce=v.clientY-be.top,se=130,_e=130;let re=null;switch(pe>se?re=ce>_e?2:1:re=ce>_e?3:4,re){case 1:G=pe-se,ae=_e-ce;break;case 2:G=pe-se,ae=ce-_e;break;case 3:G=se-pe,ae=ce-_e;break;case 4:G=se-pe,ae=_e-ce;break}const ve=Math.sqrt(G*G+ae*ae),ee=90-Math.asin(G/ve)*(180/Math.PI);let Q=0;switch(re){case 1:Q=90-ee;break;case 2:Q=ee+90;break;case 3:Q=270-ee;break;case 4:Q=ee+270;break}Q=Math.round(Q/6/k)*k,Q>=60&&(Q=0),p.setMinutes(Q)}t(7,p),t(23,f),O||(V(C?"minute":"hour",{value:p,isKeyboard:v.type==="keyboard",dateIndex:c}),v.type!=="keyboard"&&!C&&!d&&t(6,C=!0))}function q(v){const G=parseInt(v.target.dataset.value);p.setHours(G),t(7,p),t(23,f),V(C?"minute":"hour",{value:p,isKeyboard:!0})}function X(v){t(11,O=v.type==="mousedown")}function J(){V("switch","date")}const ie=()=>t(6,C=!1),we=()=>t(6,C=!0),fe=v=>{O&&R(v)};function Re(v){wt[v?"unshift":"push"](()=>{L=v,t(10,L)})}return n.$$set=v=>{"wid"in v&&t(24,c=v.wid),"date"in v&&t(23,f=v.date),"startDate"in v&&t(0,_=v.startDate),"endDate"in v&&t(1,h=v.endDate),"hourOnly"in v&&t(2,d=v.hourOnly),"minuteIncrement"in v&&t(25,k=v.minuteIncrement),"showMeridian"in v&&t(3,m=v.showMeridian),"hasDateComponent"in v&&t(4,M=v.hasDateComponent),"i18n"in v&&t(5,A=v.i18n)},n.$$.update=()=>{if(n.$$.dirty[0]&8388736&&f!==p&&f&&t(7,p=f),n.$$.dirty[0]&131){let v=!1;_&&_.toDateString()===p.toDateString()&&(F(p.getHours())&&(p.setHours(_.getHours()),v=!0),F(p.getMinutes(),!0)&&(p.setMinutes(_.getMinutes()),v=!0)),h&&h.toDateString()===p.toDateString()&&(F(p.getHours())&&(p.setHours(h.getHours()),v=!0),F(p.getMinutes(),!0)&&(p.setMinutes(h.getMinutes()),v=!0)),v&&Gn().then(()=>V("time",p))}if(n.$$.dirty[0]&128&&t(9,l=p?p.getHours():0),n.$$.dirty[0]&520&&t(13,i=m?l>=12:!1),n.$$.dirty[0]&128&&t(8,s=p?p.getMinutes():0),n.$$.dirty[0]&840){let v=C?s*6:l%12*30;t(12,Y=C||m||l<12?`transform: rotateZ(${v}deg);`:`transform: rotateZ(${v}deg); height: calc(25% + 1px)`)}n.$$.dirty[0]&64&&(u=C?5:1),n.$$.dirty[0]&3&&(o=_&&h&&["getFullYear","getMonth","getDate"].every(v=>h[v]()===_[v]())),n.$$.dirty[0]&64&&t(15,r=T(C?220:180,110,"00",!1,0)),n.$$.dirty[0]&64&&t(14,a=T(C?180:120,110,C?"00":"12",C,12)),n.$$.dirty[0]&64&&V("time-switch",C)},[_,h,d,m,M,A,C,p,s,l,L,O,Y,i,a,r,B,y,F,R,q,X,J,f,c,k,E,W,ie,we,fe,Re]}class xl extends Pt{constructor(e){super(),Lt(this,e,Ql,Jl,It,{wid:24,date:23,startDate:0,endDate:1,hourOnly:2,minuteIncrement:25,showMeridian:3,hasDateComponent:4,i18n:5,showMinuteView:26,makeTick:27},null,[-1,-1])}get showMinuteView(){return this.$$.ctx[26]}get makeTick(){return this.$$.ctx[27]}}function zt(n){return n.split("-")[1]}function il(n){return n==="y"?"height":"width"}function $e(n){return n.split("-")[0]}function Wt(n){return["top","bottom"].includes($e(n))?"x":"y"}function Tn(n,e,t){let{reference:l,floating:i}=n;const s=l.x+l.width/2-i.width/2,u=l.y+l.height/2-i.height/2,o=Wt(e),r=il(o),a=l[r]/2-i[r]/2,c=o==="x";let f;switch($e(e)){case"top":f={x:s,y:l.y-i.height};break;case"bottom":f={x:s,y:l.y+l.height};break;case"right":f={x:l.x+l.width,y:u};break;case"left":f={x:l.x-i.width,y:u};break;default:f={x:l.x,y:l.y}}switch(zt(e)){case"start":f[o]-=a*(t&&c?-1:1);break;case"end":f[o]+=a*(t&&c?-1:1)}return f}const $l=async(n,e,t)=>{const{placement:l="bottom",strategy:i="absolute",middleware:s=[],platform:u}=t,o=s.filter(Boolean),r=await(u.isRTL==null?void 0:u.isRTL(e));let a=await u.getElementRects({reference:n,floating:e,strategy:i}),{x:c,y:f}=Tn(a,l,r),_=l,h={},d=0;for(let k=0;kn.concat(e,e+"-start",e+"-end"),[]);const ii={left:"right",right:"left",bottom:"top",top:"bottom"};function Dt(n){return n.replace(/left|right|bottom|top/g,e=>ii[e])}function si(n,e,t){t===void 0&&(t=!1);const l=zt(n),i=Wt(n),s=il(i);let u=i==="x"?l===(t?"end":"start")?"right":"left":l==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(u=Dt(u)),{main:u,cross:Dt(u)}}const ri={start:"end",end:"start"};function Rt(n){return n.replace(/start|end/g,e=>ri[e])}const oi=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(e){var t;const{placement:l,middlewareData:i,rects:s,initialPlacement:u,platform:o,elements:r}=e,{mainAxis:a=!0,crossAxis:c=!0,fallbackPlacements:f,fallbackStrategy:_="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:d=!0,...k}=qt(n,e),m=$e(l),M=$e(u)===u,A=await(o.isRTL==null?void 0:o.isRTL(r.floating)),E=f||(M||!d?[Dt(u)]:function(T){const B=Dt(T);return[Rt(T),B,Rt(B)]}(u));f||h==="none"||E.push(...function(T,B,y,F){const R=zt(T);let q=function(X,J,ie){const we=["left","right"],fe=["right","left"],Re=["top","bottom"],v=["bottom","top"];switch(X){case"top":case"bottom":return ie?J?fe:we:J?we:fe;case"left":case"right":return J?Re:v;default:return[]}}($e(T),y==="start",F);return R&&(q=q.map(X=>X+"-"+R),B&&(q=q.concat(q.map(Rt)))),q}(u,d,h,A));const W=[u,...E],L=await sl(e,k),C=[];let O=((t=i.flip)==null?void 0:t.overflows)||[];if(a&&C.push(L[m]),c){const{main:T,cross:B}=si(l,s,A);C.push(L[T],L[B])}if(O=[...O,{placement:l,overflows:C}],!C.every(T=>T<=0)){var p,V;const T=(((p=i.flip)==null?void 0:p.index)||0)+1,B=W[T];if(B)return{data:{index:T,overflows:O},reset:{placement:B}};let y=(V=O.filter(F=>F.overflows[0]<=0).sort((F,R)=>F.overflows[1]-R.overflows[1])[0])==null?void 0:V.placement;if(!y)switch(_){case"bestFit":{var Y;const F=(Y=O.map(R=>[R.placement,R.overflows.filter(q=>q>0).reduce((q,X)=>q+X,0)]).sort((R,q)=>R[1]-q[1])[0])==null?void 0:Y[0];F&&(y=F);break}case"initialPlacement":y=u}if(l!==y)return{reset:{placement:y}}}return{}}}};function ai(n){return n==="x"?"y":"x"}const ui=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(e){const{x:t,y:l,placement:i}=e,{mainAxis:s=!0,crossAxis:u=!1,limiter:o={fn:m=>{let{x:M,y:A}=m;return{x:M,y:A}}},...r}=qt(n,e),a={x:t,y:l},c=await sl(e,r),f=Wt($e(i)),_=ai(f);let h=a[f],d=a[_];if(s){const m=f==="y"?"bottom":"right";h=Fn(h+c[f==="y"?"top":"left"],h,h-c[m])}if(u){const m=_==="y"?"bottom":"right";d=Fn(d+c[_==="y"?"top":"left"],d,d-c[m])}const k=o.fn({...e,[f]:h,[_]:d});return{...k,data:{x:k.x-t,y:k.y-l}}}}};function ye(n){var e;return(n==null||(e=n.ownerDocument)==null?void 0:e.defaultView)||window}function Se(n){return ye(n).getComputedStyle(n)}function rl(n){return n instanceof ye(n).Node}function Ue(n){return rl(n)?(n.nodeName||"").toLowerCase():"#document"}function Me(n){return n instanceof HTMLElement||n instanceof ye(n).HTMLElement}function En(n){return typeof ShadowRoot<"u"&&(n instanceof ye(n).ShadowRoot||n instanceof ShadowRoot)}function dt(n){const{overflow:e,overflowX:t,overflowY:l,display:i}=Se(n);return/auto|scroll|overlay|hidden|clip/.test(e+l+t)&&!["inline","contents"].includes(i)}function fi(n){return["table","td","th"].includes(Ue(n))}function At(n){const e=Gt(),t=Se(n);return t.transform!=="none"||t.perspective!=="none"||!!t.containerType&&t.containerType!=="normal"||!e&&!!t.backdropFilter&&t.backdropFilter!=="none"||!e&&!!t.filter&&t.filter!=="none"||["transform","perspective","filter"].some(l=>(t.willChange||"").includes(l))||["paint","layout","strict","content"].some(l=>(t.contain||"").includes(l))}function Gt(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Et(n){return["html","body","#document"].includes(Ue(n))}const Vt=Math.min,et=Math.max,Mt=Math.round,yt=Math.floor,je=n=>({x:n,y:n});function ol(n){const e=Se(n);let t=parseFloat(e.width)||0,l=parseFloat(e.height)||0;const i=Me(n),s=i?n.offsetWidth:t,u=i?n.offsetHeight:l,o=Mt(t)!==s||Mt(l)!==u;return o&&(t=s,l=u),{width:t,height:l,$:o}}function Ce(n){return n instanceof Element||n instanceof ye(n).Element}function Xt(n){return Ce(n)?n:n.contextElement}function tt(n){const e=Xt(n);if(!Me(e))return je(1);const t=e.getBoundingClientRect(),{width:l,height:i,$:s}=ol(e);let u=(s?Mt(t.width):t.width)/l,o=(s?Mt(t.height):t.height)/i;return u&&Number.isFinite(u)||(u=1),o&&Number.isFinite(o)||(o=1),{x:u,y:o}}const ci=je(0);function al(n){const e=ye(n);return Gt()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:ci}function Xe(n,e,t,l){e===void 0&&(e=!1),t===void 0&&(t=!1);const i=n.getBoundingClientRect(),s=Xt(n);let u=je(1);e&&(l?Ce(l)&&(u=tt(l)):u=tt(n));const o=function(_,h,d){return h===void 0&&(h=!1),!(!d||h&&d!==ye(_))&&h}(s,t,l)?al(s):je(0);let r=(i.left+o.x)/u.x,a=(i.top+o.y)/u.y,c=i.width/u.x,f=i.height/u.y;if(s){const _=ye(s),h=l&&Ce(l)?ye(l):l;let d=_.frameElement;for(;d&&l&&h!==_;){const k=tt(d),m=d.getBoundingClientRect(),M=getComputedStyle(d),A=m.left+(d.clientLeft+parseFloat(M.paddingLeft))*k.x,E=m.top+(d.clientTop+parseFloat(M.paddingTop))*k.y;r*=k.x,a*=k.y,c*=k.x,f*=k.y,r+=A,a+=E,d=ye(d).frameElement}}return kt({width:c,height:f,x:r,y:a})}function Yt(n){return Ce(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.pageXOffset,scrollTop:n.pageYOffset}}function Oe(n){var e;return(e=(rl(n)?n.ownerDocument:n.document)||window.document)==null?void 0:e.documentElement}function ul(n){return Xe(Oe(n)).left+Yt(n).scrollLeft}function it(n){if(Ue(n)==="html")return n;const e=n.assignedSlot||n.parentNode||En(n)&&n.host||Oe(n);return En(e)?e.host:e}function fl(n){const e=it(n);return Et(e)?n.ownerDocument?n.ownerDocument.body:n.body:Me(e)&&dt(e)?e:fl(e)}function Tt(n,e){var t;e===void 0&&(e=[]);const l=fl(n),i=l===((t=n.ownerDocument)==null?void 0:t.body),s=ye(l);return i?e.concat(s,s.visualViewport||[],dt(l)?l:[]):e.concat(l,Tt(l))}function Yn(n,e,t){let l;if(e==="viewport")l=function(i,s){const u=ye(i),o=Oe(i),r=u.visualViewport;let a=o.clientWidth,c=o.clientHeight,f=0,_=0;if(r){a=r.width,c=r.height;const h=Gt();(!h||h&&s==="fixed")&&(f=r.offsetLeft,_=r.offsetTop)}return{width:a,height:c,x:f,y:_}}(n,t);else if(e==="document")l=function(i){const s=Oe(i),u=Yt(i),o=i.ownerDocument.body,r=et(s.scrollWidth,s.clientWidth,o.scrollWidth,o.clientWidth),a=et(s.scrollHeight,s.clientHeight,o.scrollHeight,o.clientHeight);let c=-u.scrollLeft+ul(i);const f=-u.scrollTop;return Se(o).direction==="rtl"&&(c+=et(s.clientWidth,o.clientWidth)-r),{width:r,height:a,x:c,y:f}}(Oe(n));else if(Ce(e))l=function(i,s){const u=Xe(i,!0,s==="fixed"),o=u.top+i.clientTop,r=u.left+i.clientLeft,a=Me(i)?tt(i):je(1);return{width:i.clientWidth*a.x,height:i.clientHeight*a.y,x:r*a.x,y:o*a.y}}(e,t);else{const i=al(n);l={...e,x:e.x-i.x,y:e.y-i.y}}return kt(l)}function cl(n,e){const t=it(n);return!(t===e||!Ce(t)||Et(t))&&(Se(t).position==="fixed"||cl(t,e))}function hi(n,e,t){const l=Me(e),i=Oe(e),s=t==="fixed",u=Xe(n,!0,s,e);let o={scrollLeft:0,scrollTop:0};const r=je(0);if(l||!l&&!s)if((Ue(e)!=="body"||dt(i))&&(o=Yt(e)),Me(e)){const a=Xe(e,!0,s,e);r.x=a.x+e.clientLeft,r.y=a.y+e.clientTop}else i&&(r.x=ul(i));return{x:u.left+o.scrollLeft-r.x,y:u.top+o.scrollTop-r.y,width:u.width,height:u.height}}function Sn(n,e){return Me(n)&&Se(n).position!=="fixed"?e?e(n):n.offsetParent:null}function Hn(n,e){const t=ye(n);if(!Me(n))return t;let l=Sn(n,e);for(;l&&fi(l)&&Se(l).position==="static";)l=Sn(l,e);return l&&(Ue(l)==="html"||Ue(l)==="body"&&Se(l).position==="static"&&!At(l))?t:l||function(i){let s=it(i);for(;Me(s)&&!Et(s);){if(At(s))return s;s=it(s)}return null}(n)||t}const di={convertOffsetParentRelativeRectToViewportRelativeRect:function(n){let{rect:e,offsetParent:t,strategy:l}=n;const i=Me(t),s=Oe(t);if(t===s)return e;let u={scrollLeft:0,scrollTop:0},o=je(1);const r=je(0);if((i||!i&&l!=="fixed")&&((Ue(t)!=="body"||dt(s))&&(u=Yt(t)),Me(t))){const a=Xe(t);o=tt(t),r.x=a.x+t.clientLeft,r.y=a.y+t.clientTop}return{width:e.width*o.x,height:e.height*o.y,x:e.x*o.x-u.scrollLeft*o.x+r.x,y:e.y*o.y-u.scrollTop*o.y+r.y}},getDocumentElement:Oe,getClippingRect:function(n){let{element:e,boundary:t,rootBoundary:l,strategy:i}=n;const s=[...t==="clippingAncestors"?function(r,a){const c=a.get(r);if(c)return c;let f=Tt(r).filter(k=>Ce(k)&&Ue(k)!=="body"),_=null;const h=Se(r).position==="fixed";let d=h?it(r):r;for(;Ce(d)&&!Et(d);){const k=Se(d),m=At(d);m||k.position!=="fixed"||(_=null),(h?!m&&!_:!m&&k.position==="static"&&_&&["absolute","fixed"].includes(_.position)||dt(d)&&!m&&cl(r,d))?f=f.filter(M=>M!==d):_=k,d=it(d)}return a.set(r,f),f}(e,this._c):[].concat(t),l],u=s[0],o=s.reduce((r,a)=>{const c=Yn(e,a,i);return r.top=et(c.top,r.top),r.right=Vt(c.right,r.right),r.bottom=Vt(c.bottom,r.bottom),r.left=et(c.left,r.left),r},Yn(e,u,i));return{width:o.right-o.left,height:o.bottom-o.top,x:o.left,y:o.top}},getOffsetParent:Hn,getElementRects:async function(n){let{reference:e,floating:t,strategy:l}=n;const i=this.getOffsetParent||Hn,s=this.getDimensions;return{reference:hi(e,await i(t),l),floating:{x:0,y:0,...await s(t)}}},getClientRects:function(n){return Array.from(n.getClientRects())},getDimensions:function(n){return ol(n)},getScale:tt,isElement:Ce,isRTL:function(n){return getComputedStyle(n).direction==="rtl"}};function gi(n,e,t,l){l===void 0&&(l={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:o=typeof IntersectionObserver=="function",animationFrame:r=!1}=l,a=Xt(n),c=i||s?[...a?Tt(a):[],...Tt(e)]:[];c.forEach(m=>{i&&m.addEventListener("scroll",t,{passive:!0}),s&&m.addEventListener("resize",t)});const f=a&&o?function(m,M){let A,E=null;const W=Oe(m);function L(){clearTimeout(A),E&&E.disconnect(),E=null}return function C(O,p){O===void 0&&(O=!1),p===void 0&&(p=1),L();const{left:V,top:Y,width:T,height:B}=m.getBoundingClientRect();if(O||M(),!T||!B)return;const y={rootMargin:-yt(Y)+"px "+-yt(W.clientWidth-(V+T))+"px "+-yt(W.clientHeight-(Y+B))+"px "+-yt(V)+"px",threshold:et(0,Vt(1,p))||1};let F=!0;function R(q){const X=q[0].intersectionRatio;if(X!==p){if(!F)return C();X?C(!1,X):A=setTimeout(()=>{C(!1,1e-7)},100)}F=!1}try{E=new IntersectionObserver(R,{...y,root:W.ownerDocument})}catch{E=new IntersectionObserver(R,y)}E.observe(m)}(!0),L}(a,t):null;let _,h=-1,d=null;u&&(d=new ResizeObserver(m=>{let[M]=m;M&&M.target===a&&d&&(d.unobserve(e),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{d&&d.observe(e)})),t()}),a&&!r&&d.observe(a),d.observe(e));let k=r?Xe(n):null;return r&&function m(){const M=Xe(n);!k||M.x===k.x&&M.y===k.y&&M.width===k.width&&M.height===k.height||t(),k=M,_=requestAnimationFrame(m)}(),t(),()=>{c.forEach(m=>{i&&m.removeEventListener("scroll",t),s&&m.removeEventListener("resize",t)}),f&&f(),d&&d.disconnect(),d=null,r&&cancelAnimationFrame(_)}}const mi=(n,e,t)=>{const l=new Map,i={platform:di,...t},s={...i.platform,_c:l};return $l(n,e,{...i,platform:s})};function _i(n){if((n==null?void 0:n.previousElementSibling)===null)return;const e=n==null?void 0:n.previousElementSibling,t=gi(e,n,()=>mi(e,n,{placement:"bottom-start",middleware:[ui({padding:5}),oi()]}).then(({x:l,y:i})=>{Object.assign(n.style,{left:`${l}px`,top:`${i}px`})}));return{destroy(){t()}}}function bi(n,e,t,l,i){let s=n?Array.isArray(n)?n:n.split(","):[];s=s.map(r=>r.replace(/(:\d+):\d+/,"$1"));let u=s,o=e?Array.isArray(e)?e:[e]:u.map(r=>ct(r,t,l,i));return o&&e&&(s=o.map(r=>xe(r,t,l,i))),{valueArray:s,prevValue:u,innerDates:o}}function pi(n,e){return n==="auto"?e.match(/g|hh?|ii?/i)&&e.match(/y|m|d/i)?"datetime":e.match(/g|hh?|ii?/i)?"time":"date":n}const yi=n=>({isTodayDisabled:n[1]&2048,currentMode:n[0]&67108864,i18n:n[0]&16777216}),Cn=n=>({onCancel:n[49],onConfirm:n[78],onClear:n[48],onToday:n[47],isTodayDisabled:n[42],currentMode:n[26],i18n:n[24]});function On(n,e,t){const l=n.slice();return l[98]=e[t],l[99]=e,l[100]=t,l}const wi=n=>({value:n[0]&1,displayValue:n[1]&1,disabled:n[0]&32,isDirty:n[1]&128}),Bn=n=>({value:n[0],displayValue:n[31],disabled:n[5],isDirty:n[38],onKeyDown:n[50],onInputFocus:n[53],onInputBlur:n[54]});function Rn(n){let e,t,l,i=!n[9]&&An(n);return{c(){e=N("input"),t=x(),i&&i.c(),l=Le(),this.h()},l(s){e=P(s,"INPUT",{type:!0,name:!0}),t=$(s),i&&i.l(s),l=Le(),this.h()},h(){b(e,"type","hidden"),b(e,"name",n[4]),e.value=n[0]},m(s,u){j(s,e,u),j(s,t,u),i&&i.m(s,u),j(s,l,u)},p(s,u){u[0]&16&&b(e,"name",s[4]),u[0]&1&&(e.value=s[0]),s[9]?i&&(i.d(1),i=null):i?i.p(s,u):(i=An(s),i.c(),i.m(l.parentNode,l))},d(s){s&&(w(e),w(t),w(l)),i&&i.d(s)}}}function An(n){let e,t,l,i,s,u;return{c(){e=N("input"),this.h()},l(o){e=P(o,"INPUT",{type:!0,id:!0,tabindex:!0,name:!0,placeholder:!0,autocomplete:!0,inputmode:!0,class:!0}),this.h()},h(){b(e,"type","text"),b(e,"id",n[3]),b(e,"tabindex","0"),b(e,"name",t=n[4].endsWith("]")?n[4].substring(0,n[4].length-1)+"_input]":n[4]+"_input"),e.value=n[31],b(e,"placeholder",n[6]),e.disabled=n[5],e.required=n[7],b(e,"autocomplete","off"),b(e,"inputmode","none"),b(e,"class",l=Ye(n[17])+" svelte-ergyxs"),e.readOnly=i=n[25]&&!n[11]&&!n[8],z(e,"value-dirty",!n[22]&&n[38])},m(o,r){j(o,e,r),n[74](e),s||(u=[K(e,"input",function(){Wn(n[11]?n[51]:zn)&&(n[11]?n[51]:zn).apply(this,arguments)}),Qn(n[43].call(null,e,n[44])),K(e,"focus",n[53]),K(e,"blur",n[54]),K(e,"click",n[75]),K(e,"input",n[72]),K(e,"change",n[73]),K(e,"keydown",n[50])],s=!0)},p(o,r){n=o,r[0]&8&&b(e,"id",n[3]),r[0]&16&&t!==(t=n[4].endsWith("]")?n[4].substring(0,n[4].length-1)+"_input]":n[4]+"_input")&&b(e,"name",t),r[1]&1&&e.value!==n[31]&&(e.value=n[31]),r[0]&64&&b(e,"placeholder",n[6]),r[0]&32&&(e.disabled=n[5]),r[0]&128&&(e.required=n[7]),r[0]&131072&&l!==(l=Ye(n[17])+" svelte-ergyxs")&&b(e,"class",l),r[0]&33556736&&i!==(i=n[25]&&!n[11]&&!n[8])&&(e.readOnly=i),r[0]&4325376|r[1]&128&&z(e,"value-dirty",!n[22]&&n[38])},d(o){o&&w(e),n[74](null),s=!1,Be(u)}}}function vi(n){let e,t=!n[1]&&Rn(n);return{c(){t&&t.c(),e=Le()},l(l){t&&t.l(l),e=Le()},m(l,i){t&&t.m(l,i),j(l,e,i)},p(l,i){l[1]?t&&(t.d(1),t=null):t?t.p(l,i):(t=Rn(l),t.c(),t.m(e.parentNode,e))},d(l){l&&w(e),t&&t.d(l)}}}function Vn(n){let e,t,l=[],i=new Map,s,u,o,r,a,c,f=oe(n[37]);const _=m=>m[100];for(let m=0;m{r&&(o||(o=nt(e,n[41],{duration:200},!0)),o.run(1))}),r=!0}},o(m){for(let M=0;Mn[77](e,t,l),u=()=>n[77](null,t,l);let o={wid:n[100],date:n[30][n[100]],startDate:n[29],endDate:n[28],hasDateComponent:n[27]!=="time",showMeridian:n[13].match(n[14]==="php"?"a|A":"p|P")!==null,i18n:n[24],minuteIncrement:n[15],hourOnly:n[23]};return e=new xl({props:o}),s(),e.$on("hour",n[45]),e.$on("minute",n[45]),e.$on("switch",n[52]),e.$on("time-switch",n[56]),{c(){xn(e.$$.fragment)},l(r){$n(e.$$.fragment,r)},m(r,a){el(e,r,a),i=!0},p(r,a){(t!==r[99]||l!==r[100])&&(u(),t=r[99],l=r[100],s());const c={};a[1]&64&&(c.wid=r[100]),a[0]&1073741824|a[1]&64&&(c.date=r[30][r[100]]),a[0]&536870912&&(c.startDate=r[29]),a[0]&268435456&&(c.endDate=r[28]),a[0]&134217728&&(c.hasDateComponent=r[27]!=="time"),a[0]&24576&&(c.showMeridian=r[13].match(r[14]==="php"?"a|A":"p|P")!==null),a[0]&16777216&&(c.i18n=r[24]),a[0]&32768&&(c.minuteIncrement=r[15]),a[0]&8388608&&(c.hourOnly=r[23]),e.$set(c)},i(r){i||(le(e.$$.fragment,r),i=!0)},o(r){ue(e.$$.fragment,r),i=!1},d(r){u(),tl(e,r)}}}function Di(n){var i;let e,t,l={wid:n[100],dates:n[30],isRange:n[8],startDate:n[29],endDate:n[28],enableTimeToggle:(i=n[27])==null?void 0:i.includes("time"),initialView:n[2]>2?2:n[2],hoverDate:n[32],additionalDisableFn:n[10],i18n:n[24],weekStart:n[16]};return e=new ql({props:l}),n[76](e),e.$on("date",n[45]),e.$on("switch",n[52]),e.$on("internal_hoverUpdate",n[55]),{c(){xn(e.$$.fragment)},l(s){$n(e.$$.fragment,s)},m(s,u){el(e,s,u),t=!0},p(s,u){var r;const o={};u[1]&64&&(o.wid=s[100]),u[0]&1073741824&&(o.dates=s[30]),u[0]&256&&(o.isRange=s[8]),u[0]&536870912&&(o.startDate=s[29]),u[0]&268435456&&(o.endDate=s[28]),u[0]&134217728&&(o.enableTimeToggle=(r=s[27])==null?void 0:r.includes("time")),u[0]&4&&(o.initialView=s[2]>2?2:s[2]),u[1]&2&&(o.hoverDate=s[32]),u[0]&1024&&(o.additionalDisableFn=s[10]),u[0]&16777216&&(o.i18n=s[24]),u[0]&65536&&(o.weekStart=s[16]),e.$set(o)},i(s){t||(le(e.$$.fragment,s),t=!0)},o(s){ue(e.$$.fragment,s),t=!1},d(s){n[76](null),tl(e,s)}}}function In(n,e){let t,l,i,s,u;const o=[Di,ki],r=[];function a(c,f){return c[26]==="date"?0:1}return l=a(e),i=r[l]=o[l](e),{key:n,first:null,c(){t=N("div"),i.c(),s=x(),this.h()},l(c){t=P(c,"DIV",{class:!0});var f=I(t);i.l(f),s=$(f),f.forEach(w),this.h()},h(){b(t,"class","sdt-widget svelte-ergyxs"),this.first=t},m(c,f){j(c,t,f),r[l].m(t,null),H(t,s),u=!0},p(c,f){e=c;let _=l;l=a(e),l===_?r[l].p(e,f):(Ne(),ue(r[_],1,1,()=>{r[_]=null}),Pe(),i=r[l],i?i.p(e,f):(i=r[l]=o[l](e),i.c()),le(i,1),i.m(t,s))},i(c){u||(le(i),u=!0)},o(c){ue(i),u=!1},d(c){c&&w(t),r[l].d()}}}function Nn(n){let e,t,l=!n[36]&&Pn(n),i=(n[20]||n[21])&&Ln(n);return{c(){e=N("div"),l&&l.c(),t=x(),i&&i.c(),this.h()},l(s){e=P(s,"DIV",{class:!0});var u=I(e);l&&l.l(u),t=$(u),i&&i.l(u),u.forEach(w),this.h()},h(){b(e,"class","sdt-btn-row svelte-ergyxs")},m(s,u){j(s,e,u),l&&l.m(e,null),H(e,t),i&&i.m(e,null)},p(s,u){s[36]?l&&(l.d(1),l=null):l?l.p(s,u):(l=Pn(s),l.c(),l.m(e,t)),s[20]||s[21]?i?i.p(s,u):(i=Ln(s),i.c(),i.m(e,null)):i&&(i.d(1),i=null)},d(s){s&&w(e),l&&l.d(),i&&i.d()}}}function Pn(n){let e,t,l=n[24].cancelBtn+"",i,s,u,o,r=n[24].okBtn+"",a,c,f,_;return{c(){e=N("span"),t=N("button"),i=de(l),u=x(),o=N("button"),a=de(r),this.h()},l(h){e=P(h,"SPAN",{});var d=I(e);t=P(d,"BUTTON",{type:!0,class:!0});var k=I(t);i=ge(k,l),k.forEach(w),u=$(d),o=P(d,"BUTTON",{type:!0,class:!0});var m=I(o);a=ge(m,r),m.forEach(w),d.forEach(w),this.h()},h(){b(t,"type","button"),b(t,"class",s=Ye(n[19])+" svelte-ergyxs"),b(o,"type","button"),b(o,"class",c=Ye(n[18])+" svelte-ergyxs")},m(h,d){j(h,e,d),H(e,t),H(t,i),H(e,u),H(e,o),H(o,a),f||(_=[K(t,"click",n[49]),K(o,"click",n[79])],f=!0)},p(h,d){d[0]&16777216&&l!==(l=h[24].cancelBtn+"")&&me(i,l),d[0]&524288&&s!==(s=Ye(h[19])+" svelte-ergyxs")&&b(t,"class",s),d[0]&16777216&&r!==(r=h[24].okBtn+"")&&me(a,r),d[0]&262144&&c!==(c=Ye(h[18])+" svelte-ergyxs")&&b(o,"class",c)},d(h){h&&w(e),f=!1,Be(_)}}}function Ln(n){let e,t,l=n[20]&&n[26]==="date"&&Un(n),i=n[21]&&jn(n);return{c(){e=N("span"),l&&l.c(),t=x(),i&&i.c()},l(s){e=P(s,"SPAN",{});var u=I(e);l&&l.l(u),t=$(u),i&&i.l(u),u.forEach(w)},m(s,u){j(s,e,u),l&&l.m(e,null),H(e,t),i&&i.m(e,null)},p(s,u){s[20]&&s[26]==="date"?l?l.p(s,u):(l=Un(s),l.c(),l.m(e,t)):l&&(l.d(1),l=null),s[21]?i?i.p(s,u):(i=jn(s),i.c(),i.m(e,null)):i&&(i.d(1),i=null)},d(s){s&&w(e),l&&l.d(),i&&i.d()}}}function Un(n){let e,t=n[24].todayBtn+"",l,i,s,u;return{c(){e=N("button"),l=de(t),this.h()},l(o){e=P(o,"BUTTON",{type:!0,class:!0});var r=I(e);l=ge(r,t),r.forEach(w),this.h()},h(){b(e,"type","button"),b(e,"class",i=Ye(n[18])+" svelte-ergyxs"),e.disabled=n[42]},m(o,r){j(o,e,r),H(e,l),s||(u=K(e,"click",n[47]),s=!0)},p(o,r){r[0]&16777216&&t!==(t=o[24].todayBtn+"")&&me(l,t),r[0]&262144&&i!==(i=Ye(o[18])+" svelte-ergyxs")&&b(e,"class",i),r[1]&2048&&(e.disabled=o[42])},d(o){o&&w(e),s=!1,u()}}}function jn(n){let e,t=n[24].clearBtn+"",l,i,s,u;return{c(){e=N("button"),l=de(t),this.h()},l(o){e=P(o,"BUTTON",{type:!0,class:!0});var r=I(e);l=ge(r,t),r.forEach(w),this.h()},h(){b(e,"type","button"),b(e,"class",i=Ye(n[19])+" svelte-ergyxs")},m(o,r){j(o,e,r),H(e,l),s||(u=K(e,"click",n[48]),s=!0)},p(o,r){r[0]&16777216&&t!==(t=o[24].clearBtn+"")&&me(l,t),r[0]&524288&&i!==(i=Ye(o[19])+" svelte-ergyxs")&&b(e,"class",i)},d(o){o&&w(e),s=!1,u()}}}function Mi(n){let e,t=(!n[36]||!0)&&Nn(n);return{c(){t&&t.c(),e=Le()},l(l){t&&t.l(l),e=Le()},m(l,i){t&&t.m(l,i),j(l,e,i)},p(l,i){l[36],t?t.p(l,i):(t=Nn(l),t.c(),t.m(e.parentNode,e))},d(l){l&&w(e),t&&t.d(l)}}}function Ti(n){let e,t,l;const i=n[70].inputs,s=Xn(i,n,n[69],Bn),u=s||vi(n);let o=n[35]&&n[25]&&Vn(n);return{c(){e=N("span"),u&&u.c(),t=x(),o&&o.c(),this.h()},l(r){e=P(r,"SPAN",{class:!0});var a=I(e);u&&u.l(a),t=$(a),o&&o.l(a),a.forEach(w),this.h()},h(){b(e,"class","std-component-wrap svelte-ergyxs")},m(r,a){j(r,e,a),u&&u.m(e,null),H(e,t),o&&o.m(e,null),l=!0},p(r,a){s?s.p&&(!l||a[0]&33|a[1]&129|a[2]&128)&&Zn(s,i,r,r[69],l?Jn(i,r[69],a,wi):Kn(r[69]),Bn):u&&u.p&&(!l||a[0]&37882875|a[1]&149)&&u.p(r,l?a:[-1,-1,-1,-1]),r[35]&&r[25]?o?(o.p(r,a),a[0]&33554432|a[1]&16&&le(o,1)):(o=Vn(r),o.c(),le(o,1),o.m(e,null)):o&&(Ne(),ue(o,1,1,()=>{o=null}),Pe())},i(r){l||(le(u,r),le(o),l=!0)},o(r){ue(u,r),ue(o),l=!1},d(r){r&&w(e),u&&u.d(r),o&&o.d()}}}const he=Pl;function Fi(n){return n?[{ref:null},{ref:null}]:[{ref:null}]}const zn=()=>{};function Ei(n,e,t){let l,i,s,u,o,r,a,c,f,_,h,d,{$$slots:k={},$$scope:m}=e,{inputId:M=""}=e,{name:A="date"}=e,{disabled:E=!1}=e,{placeholder:W=null}=e,{required:L=!1}=e,{value:C=null}=e,{initialDate:O=null}=e,{isRange:p=!1}=e,{startDate:V=null}=e,{endDate:Y=null}=e,{pickerOnly:T=!1}=e,{startView:B=De}=e,{mode:y="auto"}=e,{disableDatesFn:F=null}=e,{manualInput:R=!1}=e,{theme:q=he.theme}=e,{format:X=he.format}=e,{formatType:J=he.formatType}=e,{displayFormat:ie=he.displayFormat}=e,{displayFormatType:we=he.displayFormatType}=e,{minuteIncrement:fe=he.minuteIncrement}=e,{weekStart:Re=he.weekStart}=e,{inputClasses:v=he.inputClasses}=e,{todayBtnClasses:G=he.todayBtnClasses}=e,{clearBtnClasses:ae=he.clearBtnClasses}=e,{todayBtn:be=he.todayBtn}=e,{clearBtn:pe=he.clearBtn}=e,{clearToggle:ce=he.clearToggle}=e,{autocommit:se=he.autocommit}=e,{hourOnly:_e=he.hourOnly}=e,{i18n:re=he.i18n}=e,{validatorAction:ve=null}=e,{ce_valueElement:ee=null}=e,{ce_displayElement:Q=null}=e,{positionResolver:Ke=_i}=e;const D=Nt();let{valueArray:S,prevValue:U,innerDates:Z}=bi(C,O,X,re,J);!C&&O&&(C=p?S:S[0]);let ke=X,st=T,mt=[...S],ze=ot(),Je=bt(),Zt,Te=B===Ll?"time":"date",rt=!1,St=Q,hl=ve?ve.shift():()=>{},dl=ve||[],_t,Ht;function gl(g,ne,te,Qe,ut,We){return!g||ne&&(te==="datetime"||ut.length!==2)?!1:Qe==="minute"||te===Qe||We&&Qe==="hour"}function ml(g){g.join("")!==U.join("")&&(t(30,Z=g.filter(ne=>ne).map(ne=>ct(ne,X,re,J))),U=g,ze=ot(),t(31,Je=bt()))}function _l(g){const ne=Array.isArray(g)?g.join(","):g;ze!==ne&&(t(67,S=(ne||"").split(",")),mt=S)}function bl(g,ne){ke!==g&&Z.length&&(t(67,S=Z.map(te=>xe(te,g,re,J))),U=S,t(31,Je=bt()),ke=g,y==="auto"&&t(27,a=g.match(/g|hh?|ii?/i)&&g.match(/y|m|d/i)?"datetime":g.match(/g|hh?|ii?/i)?"time":"date"),ze=ot(),He(!0))}function bt(){return Z.sort((g,ne)=>g-ne).map(g=>xe(g,ie||X,re,we||J)).join(" - ")}function pl(){return p?S.length===2?S:null:S[0]||null}function ot(){return S.join(",")}function Kt(g){return g.join(",")!==mt.join(",")}function Jt(){t(2,B=De),rt=!1,a==="datetime"?setTimeout(()=>{T||t(35,l=!1),t(26,Te="date")},se?300:0):T||t(35,l=!1)}function yl(g,ne){g==="date"&&a==="datetime"&&(p&&S.length===2||!p)?t(26,Te="time"):g==="hour"&&!_e&&r[ne].ref.showMinuteView()}function Ct({type:g,detail:ne}){let{value:te,isKeyboard:Qe,dateIndex:ut}=ne;if(te&&!p&&Z.length&&Z[0].getFullYear()===te.getFullYear()&&Z[0].getMonth()===te.getMonth()&&Z[0].getDate()===te.getDate()&&a==="date"&&!L&&ce&&(te=null),p){if(g==="date")t(30,Z=te?(Z.length===2?[te]:Z.concat(te)).map(We=>We.getTime()).sort().map(We=>new Date(We)):[]);else if(te&&ut!==void 0)t(30,Z[ut]=te,Z);else if(g==="datetime")t(30,Z[0]=te,Z),t(30,Z[1]=te,Z);else throw new Error(`Unhandled event type: '${g}'`);t(67,S=Z.map(We=>xe(We,X,re,J)))}else t(30,Z=te?[te]:[]),t(67,S=te?[xe(te,X,re,J)]:[]);Qe||(t(68,Ht=g),yl(g,ut||0)),Gn().then(()=>f&&He(!Qe))}function He(g){t(0,C=pl()),ze=ot(),mt=[...S],t(31,Je=bt()),t(38,d=Kt(S)),Dl(!0),D("change",p?S:S[0]||null),D("dateChange",{value:p?S:S[0]||null,dateValue:p?Z:Z[0]||null,displayValue:Je,valueFormat:X,displayFormat:ie}),g&&Jt()}function wl(){const g=new Date,ne=Z[0]||g;Ct(new CustomEvent(a,{detail:{value:new Date(g.getFullYear(),g.getMonth(),g.getDate(),ne.getHours(),ne.getMinutes(),0),isKeyboard:!1}})),He(!0)}function pt(){t(67,S=[]),U=[],t(30,Z=[]),ze="",se&&He()}function Ot(){t(67,S=[...mt]),ze=ot(),Jt(),D("cancel")}function Qt(g){if(l||(["Backspace","Delete"].includes(g.key)&&!L&&pt(),g.key==="Enter"&&at()),!l&&g.key!=="Tab"){t(35,l=g.key!=="Shift"),g.preventDefault();return}switch(g.key){case"PageDown":case"PageUp":case"ArrowDown":case"ArrowUp":case"ArrowLeft":case"ArrowRight":if(g.preventDefault(),p)return;Te==="date"?_t.handleGridNav(g.key,g.shiftKey):r[0].ref.makeTick(["ArrowDown","ArrowLeft","PageDown"].includes(g.key)?-1:1);break;case"Escape":se?pt():Ot();break;case"Backspace":if(R&&!p)return;case"Delete":!L&&pt();break;case"Enter":if(st&&g.preventDefault(),S.length===0){t(35,l=!1);return}if(Te==="time"&&!rt)return r[0].ref.showMinuteView();if(a==="datetime"&&Te!=="time"){t(26,Te="time");return}He(a==="date"||a.includes("time")&&rt);break;case"Tab":l&&(t(35,l=!1),g.preventDefault());case"F5":break;default:!R&&g.preventDefault()}}function vl(g){g.preventDefault(),g.stopPropagation();const ne=ct(g.target.value,ie||X,re,we||J);xe(ne,ie||X,re,we||J)===g.target.value&&Ct(new CustomEvent("date",{detail:{value:ne,isKeyboard:!0}}))}function kl(g){t(2,B=De),t(26,Te=g.detail),rt=!1}function at(){t(25,st=!0),t(35,l=!0)}function xt(){t(25,st=!1),c?He(!1):Ot(),!Q&&D("blur")}function Dl(g){ee&&Q&&(t(57,ee.value=S.join(",")||"",ee),t(1,Q.value=Je,Q),ee.dispatchEvent(new Event("input")),Q.dispatchEvent(new Event("input"))),g&&D("input",ze)}function Ml({detail:g}){t(32,Zt=g)}function Tl(g){rt=g.detail}Vl(()=>{Q&&(t(1,Q.onfocus=at,Q),t(1,Q.onblur=xt,Q),t(1,Q.onclick=()=>!l&&at(),Q),t(1,Q.onkeydown=Qt,Q))});function Fl(g){Bt.call(this,n,g)}function El(g){Bt.call(this,n,g)}function Yl(g){Bt.call(this,n,g)}function Sl(g){wt[g?"unshift":"push"](()=>{St=g,t(33,St)})}const Hl=()=>{!l&&at()};function Cl(g){wt[g?"unshift":"push"](()=>{_t=g,t(34,_t)})}function Ol(g,ne,te){wt[g?"unshift":"push"](()=>{ne[te].ref=g,t(37,r),t(8,p)})}const Bl=()=>He(!0),Rl=()=>He(!0);return n.$$set=g=>{"inputId"in g&&t(3,M=g.inputId),"name"in g&&t(4,A=g.name),"disabled"in g&&t(5,E=g.disabled),"placeholder"in g&&t(6,W=g.placeholder),"required"in g&&t(7,L=g.required),"value"in g&&t(0,C=g.value),"initialDate"in g&&t(58,O=g.initialDate),"isRange"in g&&t(8,p=g.isRange),"startDate"in g&&t(59,V=g.startDate),"endDate"in g&&t(60,Y=g.endDate),"pickerOnly"in g&&t(9,T=g.pickerOnly),"startView"in g&&t(2,B=g.startView),"mode"in g&&t(61,y=g.mode),"disableDatesFn"in g&&t(10,F=g.disableDatesFn),"manualInput"in g&&t(11,R=g.manualInput),"theme"in g&&t(12,q=g.theme),"format"in g&&t(13,X=g.format),"formatType"in g&&t(14,J=g.formatType),"displayFormat"in g&&t(62,ie=g.displayFormat),"displayFormatType"in g&&t(63,we=g.displayFormatType),"minuteIncrement"in g&&t(15,fe=g.minuteIncrement),"weekStart"in g&&t(16,Re=g.weekStart),"inputClasses"in g&&t(17,v=g.inputClasses),"todayBtnClasses"in g&&t(18,G=g.todayBtnClasses),"clearBtnClasses"in g&&t(19,ae=g.clearBtnClasses),"todayBtn"in g&&t(20,be=g.todayBtn),"clearBtn"in g&&t(21,pe=g.clearBtn),"clearToggle"in g&&t(64,ce=g.clearToggle),"autocommit"in g&&t(22,se=g.autocommit),"hourOnly"in g&&t(23,_e=g.hourOnly),"i18n"in g&&t(24,re=g.i18n),"validatorAction"in g&&t(65,ve=g.validatorAction),"ce_valueElement"in g&&t(57,ee=g.ce_valueElement),"ce_displayElement"in g&&t(1,Q=g.ce_displayElement),"positionResolver"in g&&t(66,Ke=g.positionResolver),"$$scope"in g&&t(69,m=g.$$scope)},n.$$.update=()=>{n.$$.dirty[0]&512&&t(35,l=T),n.$$.dirty[0]&16801792|n.$$.dirty[1]&268435456&&t(29,i=V?ct(V,X,re,J):null),n.$$.dirty[0]&16801792|n.$$.dirty[1]&536870912&&t(28,s=Y?new Date(ct(Y,X,re,J).setSeconds(1)):null),n.$$.dirty[0]&805306368&&t(42,u=i&&i>new Date||s&&s({}):Ge),n.$$.dirty[0]&256&&t(37,r=Fi(p)),n.$$.dirty[0]&8192|n.$$.dirty[1]&1073741824&&t(27,a=pi(y,X)),n.$$.dirty[0]&201326592&&a==="time"&&Te!==a&&t(26,Te=a),n.$$.dirty[0]&138412288&&t(36,c=se&&(p&&a==="date"||!p)),n.$$.dirty[0]&146800896|n.$$.dirty[2]&96&&(f=gl(se,p,a,Ht,S,_e)),n.$$.dirty[0]&33554434&&Q&&t(1,Q.readOnly=st,Q),n.$$.dirty[0]&512&&t(40,_=!!T),n.$$.dirty[0]&512|n.$$.dirty[2]&16&&t(39,h=T?()=>{}:Ke),n.$$.dirty[2]&32&&t(38,d=Kt(S)),n.$$.dirty[0]&1&&_l(C),n.$$.dirty[2]&32&&ml(S),n.$$.dirty[0]&8192|n.$$.dirty[2]&1&&bl(X)},[C,Q,B,M,A,E,W,L,p,T,F,R,q,X,J,fe,Re,v,G,ae,be,pe,se,_e,re,st,Te,a,s,i,Z,Je,Zt,St,_t,l,c,r,d,h,_,o,u,hl,dl,Ct,He,wl,pt,Ot,Qt,vl,kl,at,xt,Ml,Tl,ee,O,V,Y,y,ie,we,ce,ve,Ke,S,Ht,m,k,Fl,El,Yl,Sl,Hl,Cl,Ol,Bl,Rl]}class Bi extends Pt{constructor(e){super(),Lt(this,e,Ei,Ti,It,{inputId:3,name:4,disabled:5,placeholder:6,required:7,value:0,initialDate:58,isRange:8,startDate:59,endDate:60,pickerOnly:9,startView:2,mode:61,disableDatesFn:10,manualInput:11,theme:12,format:13,formatType:14,displayFormat:62,displayFormatType:63,minuteIncrement:15,weekStart:16,inputClasses:17,todayBtnClasses:18,clearBtnClasses:19,todayBtn:20,clearBtn:21,clearToggle:64,autocommit:22,hourOnly:23,i18n:24,validatorAction:65,ce_valueElement:57,ce_displayElement:1,positionResolver:66},null,[-1,-1,-1,-1])}}export{Bi as S}; diff --git a/docs/_app/immutable/chunks/basic-setup-BJSL5TOQ.fa6d6137.js b/docs/_app/immutable/chunks/basic-setup-BJSL5TOQ.3bdbf0b2.js similarity index 99% rename from docs/_app/immutable/chunks/basic-setup-BJSL5TOQ.fa6d6137.js rename to docs/_app/immutable/chunks/basic-setup-BJSL5TOQ.3bdbf0b2.js index bfc57f4..d1f4b56 100644 --- a/docs/_app/immutable/chunks/basic-setup-BJSL5TOQ.fa6d6137.js +++ b/docs/_app/immutable/chunks/basic-setup-BJSL5TOQ.3bdbf0b2.js @@ -1,2 +1,2 @@ -import{closeBrackets as me,autocompletion as pe,closeBracketsKeymap as ge,completionKeymap as xe}from"./index.3480e68f.js";import{V as X,B as d,v as S,C as ye,F as Se,G as Me,H as D,S as W,J as Y,K as Z,M as m,E as p,j as ve,O as ee,Q as te,l as re,R as ne,U as be,W as Ce,X as ke,Y as Le,Z as We,_ as Fe,$ as Ae,a0 as Ee,a1 as De,a2 as Re,a3 as qe,a4 as Pe,a5 as we,a6 as Te,a7 as Ie,a8 as Oe,k as $e,a9 as Ke,aa as _e,ab as Be,ac as Qe}from"./4.ae3ce863.js";import{c as h,l as ze}from"./index.147cc472.js";const G=typeof String.prototype.normalize=="function"?t=>t.normalize("NFKD"):t=>t;class C{constructor(e,r,n=0,s=e.length,i,a){this.test=a,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(n,s),this.bufferStart=n,this.normalize=i?l=>i(G(l)):G,this.query=this.normalize(r)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return ye(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let r=Se(e),n=this.bufferStart+this.bufferPos;this.bufferPos+=Me(e);let s=this.normalize(r);for(let i=0,a=n;;i++){let l=s.charCodeAt(i),o=this.match(l,a);if(o)return this.value=o,this;if(i==s.length-1)break;a==n&&ithis.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let r=this.matchPos<=this.to&&this.re.exec(this.curLine);if(r){let n=this.curLineStart+r.index,s=n+r[0].length;if(this.matchPos=R(this.text,s+(n==s?1:0)),n==this.curLineStart+this.curLine.length&&this.nextLine(),(nthis.value.to)&&(!this.test||this.test(n,s,r)))return this.value={from:n,to:s,match:r},this;e=this.matchPos-this.curLineStart}else if(this.curLineStart+this.curLine.length=n||s.to<=r){let l=new b(r,e.sliceString(r,n));return $.set(e,l),l}if(s.from==r&&s.to==n)return s;let{text:i,from:a}=s;return a>r&&(i=e.sliceString(r,a)+i,a=r),s.to=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,r=this.re.exec(this.flat.text);if(r&&!r[0]&&r.index==e&&(this.re.lastIndex=e+1,r=this.re.exec(this.flat.text)),r){let n=this.flat.from+r.index,s=n+r[0].length;if((this.flat.to>=this.to||r.index+r[0].length<=this.flat.text.length-10)&&(!this.test||this.test(n,s,r)))return this.value={from:n,to:s,match:r},this.matchPos=R(this.text,s+(n==s?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=b.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2))}}}typeof Symbol<"u"&&(ie.prototype[Symbol.iterator]=le.prototype[Symbol.iterator]=function(){return this});function He(t){try{return new RegExp(t,Q),!0}catch{return!1}}function R(t,e){if(e>=t.length)return e;let r=t.lineAt(e),n;for(;e=56320&&n<57344;)e++;return e}function _(t){let e=h("input",{class:"cm-textfield",name:"line"}),r=h("form",{class:"cm-gotoLine",onkeydown:s=>{s.keyCode==27?(s.preventDefault(),t.dispatch({effects:q.of(!1)}),t.focus()):s.keyCode==13&&(s.preventDefault(),n())},onsubmit:s=>{s.preventDefault(),n()}},h("label",t.state.phrase("Go to line"),": ",e)," ",h("button",{class:"cm-button",type:"submit"},t.state.phrase("go")));function n(){let s=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(e.value);if(!s)return;let{state:i}=t,a=i.doc.lineAt(i.selection.main.head),[,l,o,c,u]=s,g=c?+c.slice(1):0,x=o?+o:a.number;if(o&&u){let O=x/100;l&&(O=O*(l=="-"?-1:1)+a.number/i.doc.lines),x=Math.round(i.doc.lines*O)}else o&&l&&(x=x*(l=="-"?-1:1)+a.number);let V=i.doc.line(Math.max(1,Math.min(i.doc.lines,x)));t.dispatch({effects:q.of(!1),selection:p.cursor(V.from+Math.max(0,Math.min(g,V.length))),scrollIntoView:!0}),t.focus()}return{dom:r}}const q=W.define(),j=ee.define({create(){return!0},update(t,e){for(let r of e.effects)r.is(q)&&(t=r.value);return t},provide:t=>te.from(t,e=>e?_:null)}),Ne=t=>{let e=D(t,_);if(!e){let r=[q.of(!0)];t.state.field(j,!1)==null&&r.push(W.appendConfig.of([j,Ve])),t.dispatch({effects:r}),e=D(t,_)}return e&&e.dom.querySelector("input").focus(),!0},Ve=S.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),Ge={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},ae=Y.define({combine(t){return Z(t,Ge,{highlightWordAroundCursor:(e,r)=>e||r,minSelectionLength:Math.min,maxMatches:Math.min})}});function je(t){let e=[Ze,Ye];return t&&e.push(ae.of(t)),e}const Je=d.mark({class:"cm-selectionMatch"}),Ue=d.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function J(t,e,r,n){return(r==0||t(e.sliceDoc(r-1,r))!=m.Word)&&(n==e.doc.length||t(e.sliceDoc(n,n+1))!=m.Word)}function Xe(t,e,r,n){return t(e.sliceDoc(r,r+1))==m.Word&&t(e.sliceDoc(n-1,n))==m.Word}const Ye=X.fromClass(class{constructor(t){this.decorations=this.getDeco(t)}update(t){(t.selectionSet||t.docChanged||t.viewportChanged)&&(this.decorations=this.getDeco(t.view))}getDeco(t){let e=t.state.facet(ae),{state:r}=t,n=r.selection;if(n.ranges.length>1)return d.none;let s=n.main,i,a=null;if(s.empty){if(!e.highlightWordAroundCursor)return d.none;let o=r.wordAt(s.head);if(!o)return d.none;a=r.charCategorizer(s.head),i=r.sliceDoc(o.from,o.to)}else{let o=s.to-s.from;if(o200)return d.none;if(e.wholeWords){if(i=r.sliceDoc(s.from,s.to),a=r.charCategorizer(s.head),!(J(a,r,s.from,s.to)&&Xe(a,r,s.from,s.to)))return d.none}else if(i=r.sliceDoc(s.from,s.to).trim(),!i)return d.none}let l=[];for(let o of t.visibleRanges){let c=new C(r.doc,i,o.from,o.to);for(;!c.next().done;){let{from:u,to:g}=c.value;if((!a||J(a,r,u,g))&&(s.empty&&u<=s.from&&g>=s.to?l.push(Ue.range(u,g)):(u>=s.to||g<=s.from)&&l.push(Je.range(u,g)),l.length>e.maxMatches))return d.none}}return d.set(l)}},{decorations:t=>t.decorations}),Ze=S.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),et=({state:t,dispatch:e})=>{let{selection:r}=t,n=p.create(r.ranges.map(s=>t.wordAt(s.head)||p.cursor(s.head)),r.mainIndex);return n.eq(r)?!1:(e(t.update({selection:n})),!0)};function tt(t,e){let{main:r,ranges:n}=t.selection,s=t.wordAt(r.head),i=s&&s.from==r.from&&s.to==r.to;for(let a=!1,l=new C(t.doc,e,n[n.length-1].to);;)if(l.next(),l.done){if(a)return null;l=new C(t.doc,e,0,Math.max(0,n[n.length-1].from-1)),a=!0}else{if(a&&n.some(o=>o.from==l.value.from))continue;if(i){let o=t.wordAt(l.value.from);if(!o||o.from!=l.value.from||o.to!=l.value.to)continue}return l.value}}const rt=({state:t,dispatch:e})=>{let{ranges:r}=t.selection;if(r.some(i=>i.from===i.to))return et({state:t,dispatch:e});let n=t.sliceDoc(r[0].from,r[0].to);if(t.selection.ranges.some(i=>t.sliceDoc(i.from,i.to)!=n))return!1;let s=tt(t,n);return s?(e(t.update({selection:t.selection.addRange(p.range(s.from,s.to),!1),effects:S.scrollIntoView(s.to)})),!0):!1},k=Y.define({combine(t){return Z(t,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:e=>new mt(e),scrollToMatch:e=>S.scrollIntoView(e)})}});class oe{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||"",this.valid=!!this.search&&(!this.regexp||He(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!e.wholeWord}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,(r,n)=>n=="n"?` +import{closeBrackets as me,autocompletion as pe,closeBracketsKeymap as ge,completionKeymap as xe}from"./index.db8309a6.js";import{V as X,B as d,v as S,C as ye,F as Se,G as Me,H as D,S as W,J as Y,K as Z,M as m,E as p,j as ve,O as ee,Q as te,l as re,R as ne,U as be,W as Ce,X as ke,Y as Le,Z as We,_ as Fe,$ as Ae,a0 as Ee,a1 as De,a2 as Re,a3 as qe,a4 as Pe,a5 as we,a6 as Te,a7 as Ie,a8 as Oe,k as $e,a9 as Ke,aa as _e,ab as Be,ac as Qe}from"./4.cfac87d8.js";import{c as h,l as ze}from"./index.81a2dd23.js";const G=typeof String.prototype.normalize=="function"?t=>t.normalize("NFKD"):t=>t;class C{constructor(e,r,n=0,s=e.length,i,a){this.test=a,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(n,s),this.bufferStart=n,this.normalize=i?l=>i(G(l)):G,this.query=this.normalize(r)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return ye(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let r=Se(e),n=this.bufferStart+this.bufferPos;this.bufferPos+=Me(e);let s=this.normalize(r);for(let i=0,a=n;;i++){let l=s.charCodeAt(i),o=this.match(l,a);if(o)return this.value=o,this;if(i==s.length-1)break;a==n&&ithis.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let r=this.matchPos<=this.to&&this.re.exec(this.curLine);if(r){let n=this.curLineStart+r.index,s=n+r[0].length;if(this.matchPos=R(this.text,s+(n==s?1:0)),n==this.curLineStart+this.curLine.length&&this.nextLine(),(nthis.value.to)&&(!this.test||this.test(n,s,r)))return this.value={from:n,to:s,match:r},this;e=this.matchPos-this.curLineStart}else if(this.curLineStart+this.curLine.length=n||s.to<=r){let l=new b(r,e.sliceString(r,n));return $.set(e,l),l}if(s.from==r&&s.to==n)return s;let{text:i,from:a}=s;return a>r&&(i=e.sliceString(r,a)+i,a=r),s.to=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,r=this.re.exec(this.flat.text);if(r&&!r[0]&&r.index==e&&(this.re.lastIndex=e+1,r=this.re.exec(this.flat.text)),r){let n=this.flat.from+r.index,s=n+r[0].length;if((this.flat.to>=this.to||r.index+r[0].length<=this.flat.text.length-10)&&(!this.test||this.test(n,s,r)))return this.value={from:n,to:s,match:r},this.matchPos=R(this.text,s+(n==s?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=b.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2))}}}typeof Symbol<"u"&&(ie.prototype[Symbol.iterator]=le.prototype[Symbol.iterator]=function(){return this});function He(t){try{return new RegExp(t,Q),!0}catch{return!1}}function R(t,e){if(e>=t.length)return e;let r=t.lineAt(e),n;for(;e=56320&&n<57344;)e++;return e}function _(t){let e=h("input",{class:"cm-textfield",name:"line"}),r=h("form",{class:"cm-gotoLine",onkeydown:s=>{s.keyCode==27?(s.preventDefault(),t.dispatch({effects:q.of(!1)}),t.focus()):s.keyCode==13&&(s.preventDefault(),n())},onsubmit:s=>{s.preventDefault(),n()}},h("label",t.state.phrase("Go to line"),": ",e)," ",h("button",{class:"cm-button",type:"submit"},t.state.phrase("go")));function n(){let s=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(e.value);if(!s)return;let{state:i}=t,a=i.doc.lineAt(i.selection.main.head),[,l,o,c,u]=s,g=c?+c.slice(1):0,x=o?+o:a.number;if(o&&u){let O=x/100;l&&(O=O*(l=="-"?-1:1)+a.number/i.doc.lines),x=Math.round(i.doc.lines*O)}else o&&l&&(x=x*(l=="-"?-1:1)+a.number);let V=i.doc.line(Math.max(1,Math.min(i.doc.lines,x)));t.dispatch({effects:q.of(!1),selection:p.cursor(V.from+Math.max(0,Math.min(g,V.length))),scrollIntoView:!0}),t.focus()}return{dom:r}}const q=W.define(),j=ee.define({create(){return!0},update(t,e){for(let r of e.effects)r.is(q)&&(t=r.value);return t},provide:t=>te.from(t,e=>e?_:null)}),Ne=t=>{let e=D(t,_);if(!e){let r=[q.of(!0)];t.state.field(j,!1)==null&&r.push(W.appendConfig.of([j,Ve])),t.dispatch({effects:r}),e=D(t,_)}return e&&e.dom.querySelector("input").focus(),!0},Ve=S.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),Ge={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},ae=Y.define({combine(t){return Z(t,Ge,{highlightWordAroundCursor:(e,r)=>e||r,minSelectionLength:Math.min,maxMatches:Math.min})}});function je(t){let e=[Ze,Ye];return t&&e.push(ae.of(t)),e}const Je=d.mark({class:"cm-selectionMatch"}),Ue=d.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function J(t,e,r,n){return(r==0||t(e.sliceDoc(r-1,r))!=m.Word)&&(n==e.doc.length||t(e.sliceDoc(n,n+1))!=m.Word)}function Xe(t,e,r,n){return t(e.sliceDoc(r,r+1))==m.Word&&t(e.sliceDoc(n-1,n))==m.Word}const Ye=X.fromClass(class{constructor(t){this.decorations=this.getDeco(t)}update(t){(t.selectionSet||t.docChanged||t.viewportChanged)&&(this.decorations=this.getDeco(t.view))}getDeco(t){let e=t.state.facet(ae),{state:r}=t,n=r.selection;if(n.ranges.length>1)return d.none;let s=n.main,i,a=null;if(s.empty){if(!e.highlightWordAroundCursor)return d.none;let o=r.wordAt(s.head);if(!o)return d.none;a=r.charCategorizer(s.head),i=r.sliceDoc(o.from,o.to)}else{let o=s.to-s.from;if(o200)return d.none;if(e.wholeWords){if(i=r.sliceDoc(s.from,s.to),a=r.charCategorizer(s.head),!(J(a,r,s.from,s.to)&&Xe(a,r,s.from,s.to)))return d.none}else if(i=r.sliceDoc(s.from,s.to).trim(),!i)return d.none}let l=[];for(let o of t.visibleRanges){let c=new C(r.doc,i,o.from,o.to);for(;!c.next().done;){let{from:u,to:g}=c.value;if((!a||J(a,r,u,g))&&(s.empty&&u<=s.from&&g>=s.to?l.push(Ue.range(u,g)):(u>=s.to||g<=s.from)&&l.push(Je.range(u,g)),l.length>e.maxMatches))return d.none}}return d.set(l)}},{decorations:t=>t.decorations}),Ze=S.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),et=({state:t,dispatch:e})=>{let{selection:r}=t,n=p.create(r.ranges.map(s=>t.wordAt(s.head)||p.cursor(s.head)),r.mainIndex);return n.eq(r)?!1:(e(t.update({selection:n})),!0)};function tt(t,e){let{main:r,ranges:n}=t.selection,s=t.wordAt(r.head),i=s&&s.from==r.from&&s.to==r.to;for(let a=!1,l=new C(t.doc,e,n[n.length-1].to);;)if(l.next(),l.done){if(a)return null;l=new C(t.doc,e,0,Math.max(0,n[n.length-1].from-1)),a=!0}else{if(a&&n.some(o=>o.from==l.value.from))continue;if(i){let o=t.wordAt(l.value.from);if(!o||o.from!=l.value.from||o.to!=l.value.to)continue}return l.value}}const rt=({state:t,dispatch:e})=>{let{ranges:r}=t.selection;if(r.some(i=>i.from===i.to))return et({state:t,dispatch:e});let n=t.sliceDoc(r[0].from,r[0].to);if(t.selection.ranges.some(i=>t.sliceDoc(i.from,i.to)!=n))return!1;let s=tt(t,n);return s?(e(t.update({selection:t.selection.addRange(p.range(s.from,s.to),!1),effects:S.scrollIntoView(s.to)})),!0):!1},k=Y.define({combine(t){return Z(t,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:e=>new mt(e),scrollToMatch:e=>S.scrollIntoView(e)})}});class oe{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||"",this.valid=!!this.search&&(!this.regexp||He(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!e.wholeWord}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,(r,n)=>n=="n"?` `:n=="r"?"\r":n=="t"?" ":"\\")}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord}create(){return this.regexp?new lt(this):new st(this)}getCursor(e,r=0,n){let s=e.doc?e:re.create({doc:e});return n==null&&(n=s.doc.length),this.regexp?v(this,s,r,n):M(this,s,r,n)}}class ce{constructor(e){this.spec=e}}function M(t,e,r,n){return new C(e.doc,t.unquoted,r,n,t.caseSensitive?void 0:s=>s.toLowerCase(),t.wholeWord?nt(e.doc,e.charCategorizer(e.selection.main.head)):void 0)}function nt(t,e){return(r,n,s,i)=>((i>r||i+s.length=r)return null;s.push(n.value)}return s}highlight(e,r,n,s){let i=M(this.spec,e,Math.max(0,r-this.spec.unquoted.length),Math.min(n+this.spec.unquoted.length,e.doc.length));for(;!i.next().done;)s(i.value.from,i.value.to)}}function v(t,e,r,n){return new ie(e.doc,t.search,{ignoreCase:!t.caseSensitive,test:t.wholeWord?it(e.charCategorizer(e.selection.main.head)):void 0},r,n)}function P(t,e){return t.slice(ne(t,e,!1),e)}function w(t,e){return t.slice(e,ne(t,e))}function it(t){return(e,r,n)=>!n[0].length||(t(P(n.input,n.index))!=m.Word||t(w(n.input,n.index))!=m.Word)&&(t(w(n.input,n.index+n[0].length))!=m.Word||t(P(n.input,n.index+n[0].length))!=m.Word)}class lt extends ce{nextMatch(e,r,n){let s=v(this.spec,e,n,e.doc.length).next();return s.done&&(s=v(this.spec,e,0,r).next()),s.done?null:s.value}prevMatchInRange(e,r,n){for(let s=1;;s++){let i=Math.max(r,n-s*1e4),a=v(this.spec,e,i,n),l=null;for(;!a.next().done;)l=a.value;if(l&&(i==r||l.from>i+10))return l;if(i==r)return null}}prevMatch(e,r,n){return this.prevMatchInRange(e,0,r)||this.prevMatchInRange(e,n,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace.replace(/\$([$&\d+])/g,(r,n)=>n=="$"?"$":n=="&"?e.match[0]:n!="0"&&+n=r)return null;s.push(n.value)}return s}highlight(e,r,n,s){let i=v(this.spec,e,Math.max(0,r-250),Math.min(n+250,e.doc.length));for(;!i.next().done;)s(i.value.from,i.value.to)}}const L=W.define(),z=W.define(),y=ee.define({create(t){return new K(B(t).create(),null)},update(t,e){for(let r of e.effects)r.is(L)?t=new K(r.value.create(),t.panel):r.is(z)&&(t=new K(t.query,r.value?H:null));return t},provide:t=>te.from(t,e=>e.panel)});class K{constructor(e,r){this.query=e,this.panel=r}}const at=d.mark({class:"cm-searchMatch"}),ot=d.mark({class:"cm-searchMatch cm-searchMatch-selected"}),ct=X.fromClass(class{constructor(t){this.view=t,this.decorations=this.highlight(t.state.field(y))}update(t){let e=t.state.field(y);(e!=t.startState.field(y)||t.docChanged||t.selectionSet||t.viewportChanged)&&(this.decorations=this.highlight(e))}highlight({query:t,panel:e}){if(!e||!t.spec.valid)return d.none;let{view:r}=this,n=new be;for(let s=0,i=r.visibleRanges,a=i.length;si[s+1].from-2*250;)o=i[++s].to;t.highlight(r.state,l,o,(c,u)=>{let g=r.state.selection.ranges.some(x=>x.from==c&&x.to==u);n.add(c,u,g?ot:at)})}return n.finish()}},{decorations:t=>t.decorations});function F(t){return e=>{let r=e.state.field(y,!1);return r&&r.query.spec.valid?t(e,r):fe(e)}}const T=F((t,{query:e})=>{let{to:r}=t.state.selection.main,n=e.nextMatch(t.state,r,r);if(!n)return!1;let s=p.single(n.from,n.to),i=t.state.facet(k);return t.dispatch({selection:s,effects:[N(t,n),i.scrollToMatch(s.main,t)],userEvent:"select.search"}),ue(t),!0}),I=F((t,{query:e})=>{let{state:r}=t,{from:n}=r.selection.main,s=e.prevMatch(r,n,n);if(!s)return!1;let i=p.single(s.from,s.to),a=t.state.facet(k);return t.dispatch({selection:i,effects:[N(t,s),a.scrollToMatch(i.main,t)],userEvent:"select.search"}),ue(t),!0}),ht=F((t,{query:e})=>{let r=e.matchAll(t.state,1e3);return!r||!r.length?!1:(t.dispatch({selection:p.create(r.map(n=>p.range(n.from,n.to))),userEvent:"select.search.matches"}),!0)}),ut=({state:t,dispatch:e})=>{let r=t.selection;if(r.ranges.length>1||r.main.empty)return!1;let{from:n,to:s}=r.main,i=[],a=0;for(let l=new C(t.doc,t.sliceDoc(n,s));!l.next().done;){if(i.length>1e3)return!1;l.value.from==n&&(a=i.length),i.push(p.range(l.value.from,l.value.to))}return e(t.update({selection:p.create(i,a),userEvent:"select.search.matches"})),!0},U=F((t,{query:e})=>{let{state:r}=t,{from:n,to:s}=r.selection.main;if(r.readOnly)return!1;let i=e.nextMatch(r,n,n);if(!i)return!1;let a=[],l,o,c=[];if(i.from==n&&i.to==s&&(o=r.toText(e.getReplacement(i)),a.push({from:i.from,to:i.to,insert:o}),i=e.nextMatch(r,i.from,i.to),c.push(S.announce.of(r.phrase("replaced match on line $",r.doc.lineAt(n).number)+"."))),i){let u=a.length==0||a[0].from>=i.to?0:i.to-i.from-o.length;l=p.single(i.from-u,i.to-u),c.push(N(t,i)),c.push(r.facet(k).scrollToMatch(l.main,t))}return t.dispatch({changes:a,selection:l,effects:c,userEvent:"input.replace"}),!0}),ft=F((t,{query:e})=>{if(t.state.readOnly)return!1;let r=e.matchAll(t.state,1e9).map(s=>{let{from:i,to:a}=s;return{from:i,to:a,insert:e.getReplacement(s)}});if(!r.length)return!1;let n=t.state.phrase("replaced $ matches",r.length)+".";return t.dispatch({changes:r,effects:S.announce.of(n),userEvent:"input.replace.all"}),!0});function H(t){return t.state.facet(k).createPanel(t)}function B(t,e){var r,n,s,i,a;let l=t.selection.main,o=l.empty||l.to>l.from+100?"":t.sliceDoc(l.from,l.to);if(e&&!o)return e;let c=t.facet(k);return new oe({search:((r=e==null?void 0:e.literal)!==null&&r!==void 0?r:c.literal)?o:o.replace(/\n/g,"\\n"),caseSensitive:(n=e==null?void 0:e.caseSensitive)!==null&&n!==void 0?n:c.caseSensitive,literal:(s=e==null?void 0:e.literal)!==null&&s!==void 0?s:c.literal,regexp:(i=e==null?void 0:e.regexp)!==null&&i!==void 0?i:c.regexp,wholeWord:(a=e==null?void 0:e.wholeWord)!==null&&a!==void 0?a:c.wholeWord})}function he(t){let e=D(t,H);return e&&e.dom.querySelector("[main-field]")}function ue(t){let e=he(t);e&&e==t.root.activeElement&&e.select()}const fe=t=>{let e=t.state.field(y,!1);if(e&&e.panel){let r=he(t);if(r&&r!=t.root.activeElement){let n=B(t.state,e.query.spec);n.valid&&t.dispatch({effects:L.of(n)}),r.focus(),r.select()}}else t.dispatch({effects:[z.of(!0),e?L.of(B(t.state,e.query.spec)):W.appendConfig.of(gt)]});return!0},de=t=>{let e=t.state.field(y,!1);if(!e||!e.panel)return!1;let r=D(t,H);return r&&r.dom.contains(t.root.activeElement)&&t.focus(),t.dispatch({effects:z.of(!1)}),!0},dt=[{key:"Mod-f",run:fe,scope:"editor search-panel"},{key:"F3",run:T,shift:I,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:T,shift:I,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:de,scope:"editor search-panel"},{key:"Mod-Shift-l",run:ut},{key:"Alt-g",run:Ne},{key:"Mod-d",run:rt,preventDefault:!0}];class mt{constructor(e){this.view=e;let r=this.query=e.state.field(y).query.spec;this.commit=this.commit.bind(this),this.searchField=h("input",{value:r.search,placeholder:f(e,"Find"),"aria-label":f(e,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=h("input",{value:r.replace,placeholder:f(e,"Replace"),"aria-label":f(e,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=h("input",{type:"checkbox",name:"case",form:"",checked:r.caseSensitive,onchange:this.commit}),this.reField=h("input",{type:"checkbox",name:"re",form:"",checked:r.regexp,onchange:this.commit}),this.wordField=h("input",{type:"checkbox",name:"word",form:"",checked:r.wholeWord,onchange:this.commit});function n(s,i,a){return h("button",{class:"cm-button",name:s,onclick:i,type:"button"},a)}this.dom=h("div",{onkeydown:s=>this.keydown(s),class:"cm-search"},[this.searchField,n("next",()=>T(e),[f(e,"next")]),n("prev",()=>I(e),[f(e,"previous")]),n("select",()=>ht(e),[f(e,"all")]),h("label",null,[this.caseField,f(e,"match case")]),h("label",null,[this.reField,f(e,"regexp")]),h("label",null,[this.wordField,f(e,"by word")]),...e.state.readOnly?[]:[h("br"),this.replaceField,n("replace",()=>U(e),[f(e,"replace")]),n("replaceAll",()=>ft(e),[f(e,"replace all")])],h("button",{name:"close",onclick:()=>de(e),"aria-label":f(e,"close"),type:"button"},["×"])])}commit(){let e=new oe({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:L.of(e)}))}keydown(e){Ce(this.view,e,"search-panel")?e.preventDefault():e.keyCode==13&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?I:T)(this.view)):e.keyCode==13&&e.target==this.replaceField&&(e.preventDefault(),U(this.view))}update(e){for(let r of e.transactions)for(let n of r.effects)n.is(L)&&!n.value.eq(this.query)&&this.setQuery(n.value)}setQuery(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp,this.wordField.checked=e.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(k).top}}function f(t,e){return t.state.phrase(e)}const A=30,E=/[\s\.,:;?!]/;function N(t,{from:e,to:r}){let n=t.state.doc.lineAt(e),s=t.state.doc.lineAt(r).to,i=Math.max(n.from,e-A),a=Math.min(s,r+A),l=t.state.sliceDoc(i,a);if(i!=n.from){for(let o=0;ol.length-A;o--)if(!E.test(l[o-1])&&E.test(l[o])){l=l.slice(0,o);break}}return S.announce.of(`${t.state.phrase("current match")}. ${l} ${t.state.phrase("on line")} ${n.number}.`)}const pt=S.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),gt=[y,ve.lowest(ct),pt];var Mt=t=>[ke(),Le(),We(),Fe(),Ae(),Ee(),De(),Re(),qe(Pe,{fallback:!0}),we(),me(),re.allowMultipleSelections.of(!0),t.autocomplete!==!1?pe():[],Te(),Ie(),Oe(),je(),$e.of([].concat(ge,Ke,dt,_e,Be,xe,ze,t.useTabs?[Qe]:[]))];export{Mt as default}; diff --git a/docs/_app/immutable/chunks/data.96bdd225.js b/docs/_app/immutable/chunks/data.9fbe07b0.js similarity index 99% rename from docs/_app/immutable/chunks/data.96bdd225.js rename to docs/_app/immutable/chunks/data.9fbe07b0.js index ca5e667..6cc502b 100644 --- a/docs/_app/immutable/chunks/data.96bdd225.js +++ b/docs/_app/immutable/chunks/data.9fbe07b0.js @@ -1,4 +1,4 @@ -import{X as qt,Y as ag,Z as Jt,_ as zn}from"./scheduler.3ecd3668.js";function Pt(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function dh(e,t){for(var r="",a=0,n=-1,i=0,o,u=0;u<=e.length;++u){if(u2){var s=r.lastIndexOf("/");if(s!==r.length-1){s===-1?(r="",a=0):(r=r.slice(0,s),a=r.length-1-r.lastIndexOf("/")),n=u,i=0;continue}}else if(r.length===2||r.length===1){r="",a=0,n=u,i=0;continue}}t&&(r.length>0?r+="/..":r="..",a=2)}else r.length>0?r+="/"+e.slice(n+1,u):r=e.slice(n+1,u),a=u-n-1;n=u,i=0}else o===46&&i!==-1?++i:i=-1}return r}function uie(e,t){var r=t.dir||t.root,a=t.base||(t.name||"")+(t.ext||"");return r?r===t.root?r+a:r+e+a:a}var ea={resolve:function(){for(var t="",r=!1,a,n=arguments.length-1;n>=-1&&!r;n--){var i;n>=0?i=arguments[n]:(a===void 0&&(a=qt.cwd()),i=a),Pt(i),i.length!==0&&(t=i+"/"+t,r=i.charCodeAt(0)===47)}return t=dh(t,!r),r?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(t){if(Pt(t),t.length===0)return".";var r=t.charCodeAt(0)===47,a=t.charCodeAt(t.length-1)===47;return t=dh(t,!r),t.length===0&&!r&&(t="."),t.length>0&&a&&(t+="/"),r?"/"+t:t},isAbsolute:function(t){return Pt(t),t.length>0&&t.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var t,r=0;r0&&(t===void 0?t=a:t+="/"+a)}return t===void 0?".":ea.normalize(t)},relative:function(t,r){if(Pt(t),Pt(r),t===r||(t=ea.resolve(t),r=ea.resolve(r),t===r))return"";for(var a=1;al){if(r.charCodeAt(o+d)===47)return r.slice(o+d+1);if(d===0)return r.slice(o+d)}else i>l&&(t.charCodeAt(a+d)===47?c=d:d===0&&(c=0));break}var v=t.charCodeAt(a+d),A=r.charCodeAt(o+d);if(v!==A)break;v===47&&(c=d)}var x="";for(d=a+c+1;d<=n;++d)(d===n||t.charCodeAt(d)===47)&&(x.length===0?x+="..":x+="/..");return x.length>0?x+r.slice(o+c):(o+=c,r.charCodeAt(o)===47&&++o,r.slice(o))},_makeLong:function(t){return t},dirname:function(t){if(Pt(t),t.length===0)return".";for(var r=t.charCodeAt(0),a=r===47,n=-1,i=!0,o=t.length-1;o>=1;--o)if(r=t.charCodeAt(o),r===47){if(!i){n=o;break}}else i=!1;return n===-1?a?"/":".":a&&n===1?"//":t.slice(0,n)},basename:function(t,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');Pt(t);var a=0,n=-1,i=!0,o;if(r!==void 0&&r.length>0&&r.length<=t.length){if(r.length===t.length&&r===t)return"";var u=r.length-1,s=-1;for(o=t.length-1;o>=0;--o){var l=t.charCodeAt(o);if(l===47){if(!i){a=o+1;break}}else s===-1&&(i=!1,s=o+1),u>=0&&(l===r.charCodeAt(u)?--u===-1&&(n=o):(u=-1,n=s))}return a===n?n=s:n===-1&&(n=t.length),t.slice(a,n)}else{for(o=t.length-1;o>=0;--o)if(t.charCodeAt(o)===47){if(!i){a=o+1;break}}else n===-1&&(i=!1,n=o+1);return n===-1?"":t.slice(a,n)}},extname:function(t){Pt(t);for(var r=-1,a=0,n=-1,i=!0,o=0,u=t.length-1;u>=0;--u){var s=t.charCodeAt(u);if(s===47){if(!i){a=u+1;break}continue}n===-1&&(i=!1,n=u+1),s===46?r===-1?r=u:o!==1&&(o=1):r!==-1&&(o=-1)}return r===-1||n===-1||o===0||o===1&&r===n-1&&r===a+1?"":t.slice(r,n)},format:function(t){if(t===null||typeof t!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof t);return uie("/",t)},parse:function(t){Pt(t);var r={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return r;var a=t.charCodeAt(0),n=a===47,i;n?(r.root="/",i=1):i=0;for(var o=-1,u=0,s=-1,l=!0,c=t.length-1,d=0;c>=i;--c){if(a=t.charCodeAt(c),a===47){if(!l){u=c+1;break}continue}s===-1&&(l=!1,s=c+1),a===46?o===-1?o=c:d!==1&&(d=1):o!==-1&&(d=-1)}return o===-1||s===-1||d===0||d===1&&o===s-1&&o===u+1?s!==-1&&(u===0&&n?r.base=r.name=t.slice(1,s):r.base=r.name=t.slice(u,s)):(u===0&&n?(r.name=t.slice(1,o),r.base=t.slice(1,s)):(r.name=t.slice(u,o),r.base=t.slice(u,s)),r.ext=t.slice(o,s)),u>0?r.dir=t.slice(0,u-1):n&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};ea.posix=ea;var cie=ea;const ot=ag(cie);var die=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239],ng=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,3104,541,1507,4938,6,4191],pie="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_",ig="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",jc={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},Uc="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",fie={5:Uc,"5module":Uc+" export import",6:Uc+" const class extends export import super"},hie=/^in(stanceof)?$/,vie=new RegExp("["+ig+"]"),mie=new RegExp("["+ig+pie+"]");function op(e,t){for(var r=65536,a=0;ae)return!1;if(r+=t[a+1],r>=e)return!0}return!1}function Qt(e,t){return e<65?e===36:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&vie.test(String.fromCharCode(e)):t===!1?!1:op(e,ng)}function ia(e,t){return e<48?e===36:e<58?!0:e<65?!1:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&mie.test(String.fromCharCode(e)):t===!1?!1:op(e,ng)||op(e,die)}var ve=function(t,r){r===void 0&&(r={}),this.label=t,this.keyword=r.keyword,this.beforeExpr=!!r.beforeExpr,this.startsExpr=!!r.startsExpr,this.isLoop=!!r.isLoop,this.isAssign=!!r.isAssign,this.prefix=!!r.prefix,this.postfix=!!r.postfix,this.binop=r.binop||null,this.updateContext=null};function ct(e,t){return new ve(e,{beforeExpr:!0,binop:t})}var dt={beforeExpr:!0},Je={startsExpr:!0},Zp={};function he(e,t){return t===void 0&&(t={}),t.keyword=e,Zp[e]=new ve(e,t)}var p={num:new ve("num",Je),regexp:new ve("regexp",Je),string:new ve("string",Je),name:new ve("name",Je),privateId:new ve("privateId",Je),eof:new ve("eof"),bracketL:new ve("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new ve("]"),braceL:new ve("{",{beforeExpr:!0,startsExpr:!0}),braceR:new ve("}"),parenL:new ve("(",{beforeExpr:!0,startsExpr:!0}),parenR:new ve(")"),comma:new ve(",",dt),semi:new ve(";",dt),colon:new ve(":",dt),dot:new ve("."),question:new ve("?",dt),questionDot:new ve("?."),arrow:new ve("=>",dt),template:new ve("template"),invalidTemplate:new ve("invalidTemplate"),ellipsis:new ve("...",dt),backQuote:new ve("`",Je),dollarBraceL:new ve("${",{beforeExpr:!0,startsExpr:!0}),eq:new ve("=",{beforeExpr:!0,isAssign:!0}),assign:new ve("_=",{beforeExpr:!0,isAssign:!0}),incDec:new ve("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new ve("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:ct("||",1),logicalAND:ct("&&",2),bitwiseOR:ct("|",3),bitwiseXOR:ct("^",4),bitwiseAND:ct("&",5),equality:ct("==/!=/===/!==",6),relational:ct("/<=/>=",7),bitShift:ct("<>/>>>",8),plusMin:new ve("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:ct("%",10),star:ct("*",10),slash:ct("/",10),starstar:new ve("**",{beforeExpr:!0}),coalesce:ct("??",1),_break:he("break"),_case:he("case",dt),_catch:he("catch"),_continue:he("continue"),_debugger:he("debugger"),_default:he("default",dt),_do:he("do",{isLoop:!0,beforeExpr:!0}),_else:he("else",dt),_finally:he("finally"),_for:he("for",{isLoop:!0}),_function:he("function",Je),_if:he("if"),_return:he("return",dt),_switch:he("switch"),_throw:he("throw",dt),_try:he("try"),_var:he("var"),_const:he("const"),_while:he("while",{isLoop:!0}),_with:he("with"),_new:he("new",{beforeExpr:!0,startsExpr:!0}),_this:he("this",Je),_super:he("super",Je),_class:he("class",Je),_extends:he("extends",dt),_export:he("export"),_import:he("import",Je),_null:he("null",Je),_true:he("true",Je),_false:he("false",Je),_in:he("in",{beforeExpr:!0,binop:7}),_instanceof:he("instanceof",{beforeExpr:!0,binop:7}),_typeof:he("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:he("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:he("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},wt=/\r\n?|\n|\u2028|\u2029/,gie=new RegExp(wt.source,"g");function da(e){return e===10||e===13||e===8232||e===8233}function og(e,t,r){r===void 0&&(r=e.length);for(var a=t;a>10)+55296,(e&1023)+56320))}var xie=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,ja=function(t,r){this.line=t,this.column=r};ja.prototype.offset=function(t){return new ja(this.line,this.column+t)};var di=function(t,r,a){this.start=r,this.end=a,t.sourceFile!==null&&(this.source=t.sourceFile)};function ug(e,t){for(var r=1,a=0;;){var n=og(e,a,t);if(n<0)return new ja(r,t-a);++r,a=n}}var sp={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},fh=!1;function wie(e){var t={};for(var r in sp)t[r]=e&&Ka(e,r)?e[r]:sp[r];if(t.ecmaVersion==="latest"?t.ecmaVersion=1e8:t.ecmaVersion==null?(!fh&&typeof console=="object"&&console.warn&&(fh=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required. +import{X as qt,Y as ag,Z as Jt,_ as zn}from"./scheduler.6381a9b9.js";function Pt(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function dh(e,t){for(var r="",a=0,n=-1,i=0,o,u=0;u<=e.length;++u){if(u2){var s=r.lastIndexOf("/");if(s!==r.length-1){s===-1?(r="",a=0):(r=r.slice(0,s),a=r.length-1-r.lastIndexOf("/")),n=u,i=0;continue}}else if(r.length===2||r.length===1){r="",a=0,n=u,i=0;continue}}t&&(r.length>0?r+="/..":r="..",a=2)}else r.length>0?r+="/"+e.slice(n+1,u):r=e.slice(n+1,u),a=u-n-1;n=u,i=0}else o===46&&i!==-1?++i:i=-1}return r}function uie(e,t){var r=t.dir||t.root,a=t.base||(t.name||"")+(t.ext||"");return r?r===t.root?r+a:r+e+a:a}var ea={resolve:function(){for(var t="",r=!1,a,n=arguments.length-1;n>=-1&&!r;n--){var i;n>=0?i=arguments[n]:(a===void 0&&(a=qt.cwd()),i=a),Pt(i),i.length!==0&&(t=i+"/"+t,r=i.charCodeAt(0)===47)}return t=dh(t,!r),r?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(t){if(Pt(t),t.length===0)return".";var r=t.charCodeAt(0)===47,a=t.charCodeAt(t.length-1)===47;return t=dh(t,!r),t.length===0&&!r&&(t="."),t.length>0&&a&&(t+="/"),r?"/"+t:t},isAbsolute:function(t){return Pt(t),t.length>0&&t.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var t,r=0;r0&&(t===void 0?t=a:t+="/"+a)}return t===void 0?".":ea.normalize(t)},relative:function(t,r){if(Pt(t),Pt(r),t===r||(t=ea.resolve(t),r=ea.resolve(r),t===r))return"";for(var a=1;al){if(r.charCodeAt(o+d)===47)return r.slice(o+d+1);if(d===0)return r.slice(o+d)}else i>l&&(t.charCodeAt(a+d)===47?c=d:d===0&&(c=0));break}var v=t.charCodeAt(a+d),A=r.charCodeAt(o+d);if(v!==A)break;v===47&&(c=d)}var x="";for(d=a+c+1;d<=n;++d)(d===n||t.charCodeAt(d)===47)&&(x.length===0?x+="..":x+="/..");return x.length>0?x+r.slice(o+c):(o+=c,r.charCodeAt(o)===47&&++o,r.slice(o))},_makeLong:function(t){return t},dirname:function(t){if(Pt(t),t.length===0)return".";for(var r=t.charCodeAt(0),a=r===47,n=-1,i=!0,o=t.length-1;o>=1;--o)if(r=t.charCodeAt(o),r===47){if(!i){n=o;break}}else i=!1;return n===-1?a?"/":".":a&&n===1?"//":t.slice(0,n)},basename:function(t,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');Pt(t);var a=0,n=-1,i=!0,o;if(r!==void 0&&r.length>0&&r.length<=t.length){if(r.length===t.length&&r===t)return"";var u=r.length-1,s=-1;for(o=t.length-1;o>=0;--o){var l=t.charCodeAt(o);if(l===47){if(!i){a=o+1;break}}else s===-1&&(i=!1,s=o+1),u>=0&&(l===r.charCodeAt(u)?--u===-1&&(n=o):(u=-1,n=s))}return a===n?n=s:n===-1&&(n=t.length),t.slice(a,n)}else{for(o=t.length-1;o>=0;--o)if(t.charCodeAt(o)===47){if(!i){a=o+1;break}}else n===-1&&(i=!1,n=o+1);return n===-1?"":t.slice(a,n)}},extname:function(t){Pt(t);for(var r=-1,a=0,n=-1,i=!0,o=0,u=t.length-1;u>=0;--u){var s=t.charCodeAt(u);if(s===47){if(!i){a=u+1;break}continue}n===-1&&(i=!1,n=u+1),s===46?r===-1?r=u:o!==1&&(o=1):r!==-1&&(o=-1)}return r===-1||n===-1||o===0||o===1&&r===n-1&&r===a+1?"":t.slice(r,n)},format:function(t){if(t===null||typeof t!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof t);return uie("/",t)},parse:function(t){Pt(t);var r={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return r;var a=t.charCodeAt(0),n=a===47,i;n?(r.root="/",i=1):i=0;for(var o=-1,u=0,s=-1,l=!0,c=t.length-1,d=0;c>=i;--c){if(a=t.charCodeAt(c),a===47){if(!l){u=c+1;break}continue}s===-1&&(l=!1,s=c+1),a===46?o===-1?o=c:d!==1&&(d=1):o!==-1&&(d=-1)}return o===-1||s===-1||d===0||d===1&&o===s-1&&o===u+1?s!==-1&&(u===0&&n?r.base=r.name=t.slice(1,s):r.base=r.name=t.slice(u,s)):(u===0&&n?(r.name=t.slice(1,o),r.base=t.slice(1,s)):(r.name=t.slice(u,o),r.base=t.slice(u,s)),r.ext=t.slice(o,s)),u>0?r.dir=t.slice(0,u-1):n&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};ea.posix=ea;var cie=ea;const ot=ag(cie);var die=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239],ng=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,3104,541,1507,4938,6,4191],pie="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_",ig="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",jc={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},Uc="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",fie={5:Uc,"5module":Uc+" export import",6:Uc+" const class extends export import super"},hie=/^in(stanceof)?$/,vie=new RegExp("["+ig+"]"),mie=new RegExp("["+ig+pie+"]");function op(e,t){for(var r=65536,a=0;ae)return!1;if(r+=t[a+1],r>=e)return!0}return!1}function Qt(e,t){return e<65?e===36:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&vie.test(String.fromCharCode(e)):t===!1?!1:op(e,ng)}function ia(e,t){return e<48?e===36:e<58?!0:e<65?!1:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&mie.test(String.fromCharCode(e)):t===!1?!1:op(e,ng)||op(e,die)}var ve=function(t,r){r===void 0&&(r={}),this.label=t,this.keyword=r.keyword,this.beforeExpr=!!r.beforeExpr,this.startsExpr=!!r.startsExpr,this.isLoop=!!r.isLoop,this.isAssign=!!r.isAssign,this.prefix=!!r.prefix,this.postfix=!!r.postfix,this.binop=r.binop||null,this.updateContext=null};function ct(e,t){return new ve(e,{beforeExpr:!0,binop:t})}var dt={beforeExpr:!0},Je={startsExpr:!0},Zp={};function he(e,t){return t===void 0&&(t={}),t.keyword=e,Zp[e]=new ve(e,t)}var p={num:new ve("num",Je),regexp:new ve("regexp",Je),string:new ve("string",Je),name:new ve("name",Je),privateId:new ve("privateId",Je),eof:new ve("eof"),bracketL:new ve("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new ve("]"),braceL:new ve("{",{beforeExpr:!0,startsExpr:!0}),braceR:new ve("}"),parenL:new ve("(",{beforeExpr:!0,startsExpr:!0}),parenR:new ve(")"),comma:new ve(",",dt),semi:new ve(";",dt),colon:new ve(":",dt),dot:new ve("."),question:new ve("?",dt),questionDot:new ve("?."),arrow:new ve("=>",dt),template:new ve("template"),invalidTemplate:new ve("invalidTemplate"),ellipsis:new ve("...",dt),backQuote:new ve("`",Je),dollarBraceL:new ve("${",{beforeExpr:!0,startsExpr:!0}),eq:new ve("=",{beforeExpr:!0,isAssign:!0}),assign:new ve("_=",{beforeExpr:!0,isAssign:!0}),incDec:new ve("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new ve("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:ct("||",1),logicalAND:ct("&&",2),bitwiseOR:ct("|",3),bitwiseXOR:ct("^",4),bitwiseAND:ct("&",5),equality:ct("==/!=/===/!==",6),relational:ct("/<=/>=",7),bitShift:ct("<>/>>>",8),plusMin:new ve("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:ct("%",10),star:ct("*",10),slash:ct("/",10),starstar:new ve("**",{beforeExpr:!0}),coalesce:ct("??",1),_break:he("break"),_case:he("case",dt),_catch:he("catch"),_continue:he("continue"),_debugger:he("debugger"),_default:he("default",dt),_do:he("do",{isLoop:!0,beforeExpr:!0}),_else:he("else",dt),_finally:he("finally"),_for:he("for",{isLoop:!0}),_function:he("function",Je),_if:he("if"),_return:he("return",dt),_switch:he("switch"),_throw:he("throw",dt),_try:he("try"),_var:he("var"),_const:he("const"),_while:he("while",{isLoop:!0}),_with:he("with"),_new:he("new",{beforeExpr:!0,startsExpr:!0}),_this:he("this",Je),_super:he("super",Je),_class:he("class",Je),_extends:he("extends",dt),_export:he("export"),_import:he("import",Je),_null:he("null",Je),_true:he("true",Je),_false:he("false",Je),_in:he("in",{beforeExpr:!0,binop:7}),_instanceof:he("instanceof",{beforeExpr:!0,binop:7}),_typeof:he("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:he("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:he("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},wt=/\r\n?|\n|\u2028|\u2029/,gie=new RegExp(wt.source,"g");function da(e){return e===10||e===13||e===8232||e===8233}function og(e,t,r){r===void 0&&(r=e.length);for(var a=t;a>10)+55296,(e&1023)+56320))}var xie=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,ja=function(t,r){this.line=t,this.column=r};ja.prototype.offset=function(t){return new ja(this.line,this.column+t)};var di=function(t,r,a){this.start=r,this.end=a,t.sourceFile!==null&&(this.source=t.sourceFile)};function ug(e,t){for(var r=1,a=0;;){var n=og(e,a,t);if(n<0)return new ja(r,t-a);++r,a=n}}var sp={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},fh=!1;function wie(e){var t={};for(var r in sp)t[r]=e&&Ka(e,r)?e[r]:sp[r];if(t.ecmaVersion==="latest"?t.ecmaVersion=1e8:t.ecmaVersion==null?(!fh&&typeof console=="object"&&console.warn&&(fh=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required. Defaulting to 2020, but this will stop working in the future.`)),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),t.allowReserved==null&&(t.allowReserved=t.ecmaVersion<5),(!e||e.allowHashBang==null)&&(t.allowHashBang=t.ecmaVersion>=14),ph(t.onToken)){var a=t.onToken;t.onToken=function(n){return a.push(n)}}return ph(t.onComment)&&(t.onComment=Cie(t,t.onComment)),t}function Cie(e,t){return function(r,a,n,i,o,u){var s={type:r?"Block":"Line",value:a,start:n,end:i};e.locations&&(s.loc=new di(this,o,u)),e.ranges&&(s.range=[n,i]),t.push(s)}}var Ua=1,pa=2,ef=4,cg=8,dg=16,pg=32,tf=64,fg=128,Xa=256,rf=Ua|pa|Xa;function af(e,t){return pa|(e?ef:0)|(t?cg:0)}var Hn=0,nf=1,Zt=2,hg=3,vg=4,mg=5,Te=function(t,r,a){this.options=t=wie(t),this.sourceFile=t.sourceFile,this.keywords=or(fie[t.ecmaVersion>=6?6:t.sourceType==="module"?"5module":5]);var n="";t.allowReserved!==!0&&(n=jc[t.ecmaVersion>=6?6:t.ecmaVersion===5?5:3],t.sourceType==="module"&&(n+=" await")),this.reservedWords=or(n);var i=(n?n+" ":"")+jc.strict;this.reservedWordsStrict=or(i),this.reservedWordsStrictBind=or(i+" "+jc.strictBind),this.input=String(r),this.containsEsc=!1,a?(this.pos=a,this.lineStart=this.input.lastIndexOf(` `,a-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(wt).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=p.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=t.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&t.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(Ua),this.regexpState=null,this.privateNameStack=[]},Nt={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};Te.prototype.parse=function(){var t=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(t)};Nt.inFunction.get=function(){return(this.currentVarScope().flags&pa)>0};Nt.inGenerator.get=function(){return(this.currentVarScope().flags&cg)>0&&!this.currentVarScope().inClassFieldInit};Nt.inAsync.get=function(){return(this.currentVarScope().flags&ef)>0&&!this.currentVarScope().inClassFieldInit};Nt.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e];if(t.inClassFieldInit||t.flags&Xa)return!1;if(t.flags&pa)return(t.flags&ef)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction};Nt.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags,r=e.inClassFieldInit;return(t&tf)>0||r||this.options.allowSuperOutsideMethod};Nt.allowDirectSuper.get=function(){return(this.currentThisScope().flags&fg)>0};Nt.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};Nt.allowNewDotTarget.get=function(){var e=this.currentThisScope(),t=e.flags,r=e.inClassFieldInit;return(t&(pa|Xa))>0||r};Nt.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&Xa)>0};Te.extend=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];for(var a=this,n=0;n=,?^&]/.test(n)||n==="!"&&this.input.charAt(a+1)==="=")}e+=t[0].length,mt.lastIndex=e,e+=mt.exec(this.input)[0].length,this.input[e]===";"&&e++}};Ke.eat=function(e){return this.type===e?(this.next(),!0):!1};Ke.isContextual=function(e){return this.type===p.name&&this.value===e&&!this.containsEsc};Ke.eatContextual=function(e){return this.isContextual(e)?(this.next(),!0):!1};Ke.expectContextual=function(e){this.eatContextual(e)||this.unexpected()};Ke.canInsertSemicolon=function(){return this.type===p.eof||this.type===p.braceR||wt.test(this.input.slice(this.lastTokEnd,this.start))};Ke.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0};Ke.semicolon=function(){!this.eat(p.semi)&&!this.insertSemicolon()&&this.unexpected()};Ke.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0};Ke.expect=function(e){this.eat(e)||this.unexpected()};Ke.unexpected=function(e){this.raise(e??this.start,"Unexpected token")};var pi=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};Ke.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var r=t?e.parenthesizedAssign:e.parenthesizedBind;r>-1&&this.raiseRecoverable(r,t?"Assigning to rvalue":"Parenthesized pattern")}};Ke.checkExpressionErrors=function(e,t){if(!e)return!1;var r=e.shorthandAssign,a=e.doubleProto;if(!t)return r>=0||a>=0;r>=0&&this.raise(r,"Shorthand property assignments are valid only in destructuring patterns"),a>=0&&this.raiseRecoverable(a,"Redefinition of __proto__ property")};Ke.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos55295&&a<56320)return!0;if(Qt(a,!0)){for(var n=r+1;ia(a=this.input.charCodeAt(n),!0);)++n;if(a===92||a>55295&&a<56320)return!0;var i=this.input.slice(r,n);if(!hie.test(i))return!0}return!1};z.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;mt.lastIndex=this.pos;var e=mt.exec(this.input),t=this.pos+e[0].length,r;return!wt.test(this.input.slice(this.pos,t))&&this.input.slice(t,t+8)==="function"&&(t+8===this.input.length||!(ia(r=this.input.charCodeAt(t+8))||r>55295&&r<56320))};z.parseStatement=function(e,t,r){var a=this.type,n=this.startNode(),i;switch(this.isLet(e)&&(a=p._var,i="let"),a){case p._break:case p._continue:return this.parseBreakContinueStatement(n,a.keyword);case p._debugger:return this.parseDebuggerStatement(n);case p._do:return this.parseDoStatement(n);case p._for:return this.parseForStatement(n);case p._function:return e&&(this.strict||e!=="if"&&e!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(n,!1,!e);case p._class:return e&&this.unexpected(),this.parseClass(n,!0);case p._if:return this.parseIfStatement(n);case p._return:return this.parseReturnStatement(n);case p._switch:return this.parseSwitchStatement(n);case p._throw:return this.parseThrowStatement(n);case p._try:return this.parseTryStatement(n);case p._const:case p._var:return i=i||this.value,e&&i!=="var"&&this.unexpected(),this.parseVarStatement(n,i);case p._while:return this.parseWhileStatement(n);case p._with:return this.parseWithStatement(n);case p.braceL:return this.parseBlock(!0,n);case p.semi:return this.parseEmptyStatement(n);case p._export:case p._import:if(this.options.ecmaVersion>10&&a===p._import){mt.lastIndex=this.pos;var o=mt.exec(this.input),u=this.pos+o[0].length,s=this.input.charCodeAt(u);if(s===40||s===46)return this.parseExpressionStatement(n,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),a===p._import?this.parseImport(n):this.parseExport(n,r);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(n,!0,!e);var l=this.value,c=this.parseExpression();return a===p.name&&c.type==="Identifier"&&this.eat(p.colon)?this.parseLabeledStatement(n,l,c,e):this.parseExpressionStatement(n,c)}};z.parseBreakContinueStatement=function(e,t){var r=t==="break";this.next(),this.eat(p.semi)||this.insertSemicolon()?e.label=null:this.type!==p.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var a=0;a=6?this.eat(p.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")};z.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(of),this.enterScope(0),this.expect(p.parenL),this.type===p.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var r=this.isLet();if(this.type===p._var||this.type===p._const||r){var a=this.startNode(),n=r?"let":this.value;return this.next(),this.parseVar(a,!0,n),this.finishNode(a,"VariableDeclaration"),(this.type===p._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&a.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===p._in?t>-1&&this.unexpected(t):e.await=t>-1),this.parseForIn(e,a)):(t>-1&&this.unexpected(t),this.parseFor(e,a))}var i=this.isContextual("let"),o=!1,u=new pi,s=this.parseExpression(t>-1?"await":!0,u);return this.type===p._in||(o=this.options.ecmaVersion>=6&&this.isContextual("of"))?(this.options.ecmaVersion>=9&&(this.type===p._in?t>-1&&this.unexpected(t):e.await=t>-1),i&&o&&this.raise(s.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(s,!1,u),this.checkLValPattern(s),this.parseForIn(e,s)):(this.checkExpressionErrors(u,!0),t>-1&&this.unexpected(t),this.parseFor(e,s))};z.parseFunctionStatement=function(e,t,r){return this.next(),this.parseFunction(e,Oa|(r?0:lp),!1,t)};z.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(p._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")};z.parseReturnStatement=function(e){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,"'return' outside of function"),this.next(),this.eat(p.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")};z.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(p.braceL),this.labels.push(Aie),this.enterScope(0);for(var t,r=!1;this.type!==p.braceR;)if(this.type===p._case||this.type===p._default){var a=this.type===p._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),a?t.test=this.parseExpression():(r&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),r=!0,t.test=null),this.expect(p.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")};z.parseThrowStatement=function(e){return this.next(),wt.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var _ie=[];z.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t=e.type==="Identifier";return this.enterScope(t?pg:0),this.checkLValPattern(e,t?vg:Zt),this.expect(p.parenR),e};z.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===p._catch){var t=this.startNode();this.next(),this.eat(p.parenL)?t.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0)),t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(p._finally)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")};z.parseVarStatement=function(e,t,r){return this.next(),this.parseVar(e,!1,t,r),this.semicolon(),this.finishNode(e,"VariableDeclaration")};z.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(of),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")};z.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")};z.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")};z.parseLabeledStatement=function(e,t,r,a){for(var n=0,i=this.labels;n=0;s--){var l=this.labels[s];if(l.statementStart===e.start)l.statementStart=this.start,l.kind=u;else break}return this.labels.push({name:t,kind:u,statementStart:this.start}),e.body=this.parseStatement(a?a.indexOf("label")===-1?a+"label":a:"label"),this.labels.pop(),e.label=r,this.finishNode(e,"LabeledStatement")};z.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")};z.parseBlock=function(e,t,r){for(e===void 0&&(e=!0),t===void 0&&(t=this.startNode()),t.body=[],this.expect(p.braceL),e&&this.enterScope(0);this.type!==p.braceR;){var a=this.parseStatement(null);t.body.push(a)}return r&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")};z.parseFor=function(e,t){return e.init=t,this.expect(p.semi),e.test=this.type===p.semi?null:this.parseExpression(),this.expect(p.semi),e.update=this.type===p.parenR?null:this.parseExpression(),this.expect(p.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")};z.parseForIn=function(e,t){var r=this.type===p._in;return this.next(),t.type==="VariableDeclaration"&&t.declarations[0].init!=null&&(!r||this.options.ecmaVersion<8||this.strict||t.kind!=="var"||t.declarations[0].id.type!=="Identifier")&&this.raise(t.start,(r?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e.left=t,e.right=r?this.parseExpression():this.parseMaybeAssign(),this.expect(p.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,r?"ForInStatement":"ForOfStatement")};z.parseVar=function(e,t,r,a){for(e.declarations=[],e.kind=r;;){var n=this.startNode();if(this.parseVarId(n,r),this.eat(p.eq)?n.init=this.parseMaybeAssign(t):!a&&r==="const"&&!(this.type===p._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():!a&&n.id.type!=="Identifier"&&!(t&&(this.type===p._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):n.init=null,e.declarations.push(this.finishNode(n,"VariableDeclarator")),!this.eat(p.comma))break}return e};z.parseVarId=function(e,t){e.id=this.parseBindingAtom(),this.checkLValPattern(e.id,t==="var"?nf:Zt,!1)};var Oa=1,lp=2,gg=4;z.parseFunction=function(e,t,r,a,n){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!a)&&(this.type===p.star&&t&lp&&this.unexpected(),e.generator=this.eat(p.star)),this.options.ecmaVersion>=8&&(e.async=!!a),t&Oa&&(e.id=t&gg&&this.type!==p.name?null:this.parseIdent(),e.id&&!(t&lp)&&this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?nf:Zt:hg));var i=this.yieldPos,o=this.awaitPos,u=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(af(e.async,e.generator)),t&Oa||(e.id=this.type===p.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,r,!1,n),this.yieldPos=i,this.awaitPos=o,this.awaitIdentPos=u,this.finishNode(e,t&Oa?"FunctionDeclaration":"FunctionExpression")};z.parseFunctionParams=function(e){this.expect(p.parenL),e.params=this.parseBindingList(p.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()};z.parseClass=function(e,t){this.next();var r=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var a=this.enterClassBody(),n=this.startNode(),i=!1;for(n.body=[],this.expect(p.braceL);this.type!==p.braceR;){var o=this.parseClassElement(e.superClass!==null);o&&(n.body.push(o),o.type==="MethodDefinition"&&o.kind==="constructor"?(i&&this.raiseRecoverable(o.start,"Duplicate constructor in the same class"),i=!0):o.key&&o.key.type==="PrivateIdentifier"&&Die(a,o)&&this.raiseRecoverable(o.key.start,"Identifier '#"+o.key.name+"' has already been declared"))}return this.strict=r,this.next(),e.body=this.finishNode(n,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")};z.parseClassElement=function(e){if(this.eat(p.semi))return null;var t=this.options.ecmaVersion,r=this.startNode(),a="",n=!1,i=!1,o="method",u=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(p.braceL))return this.parseClassStaticBlock(r),r;this.isClassElementNameStart()||this.type===p.star?u=!0:a="static"}if(r.static=u,!a&&t>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===p.star)&&!this.canInsertSemicolon()?i=!0:a="async"),!a&&(t>=9||!i)&&this.eat(p.star)&&(n=!0),!a&&!i&&!n){var s=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?o=s:a=s)}if(a?(r.computed=!1,r.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),r.key.name=a,this.finishNode(r.key,"Identifier")):this.parseClassElementName(r),t<13||this.type===p.parenL||o!=="method"||n||i){var l=!r.static&&Gn(r,"constructor"),c=l&&e;l&&o!=="method"&&this.raise(r.key.start,"Constructor can't have get/set modifier"),r.kind=l?"constructor":o,this.parseClassMethod(r,n,i,c)}else this.parseClassField(r);return r};z.isClassElementNameStart=function(){return this.type===p.name||this.type===p.privateId||this.type===p.num||this.type===p.string||this.type===p.bracketL||this.type.keyword};z.parseClassElementName=function(e){this.type===p.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)};z.parseClassMethod=function(e,t,r,a){var n=e.key;e.kind==="constructor"?(t&&this.raise(n.start,"Constructor can't be a generator"),r&&this.raise(n.start,"Constructor can't be an async method")):e.static&&Gn(e,"prototype")&&this.raise(n.start,"Classes may not have a static property named prototype");var i=e.value=this.parseMethod(t,r,a);return e.kind==="get"&&i.params.length!==0&&this.raiseRecoverable(i.start,"getter should have no params"),e.kind==="set"&&i.params.length!==1&&this.raiseRecoverable(i.start,"setter should have exactly one param"),e.kind==="set"&&i.params[0].type==="RestElement"&&this.raiseRecoverable(i.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")};z.parseClassField=function(e){if(Gn(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&Gn(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(p.eq)){var t=this.currentThisScope(),r=t.inClassFieldInit;t.inClassFieldInit=!0,e.value=this.parseMaybeAssign(),t.inClassFieldInit=r}else e.value=null;return this.semicolon(),this.finishNode(e,"PropertyDefinition")};z.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(Xa|tf);this.type!==p.braceR;){var r=this.parseStatement(null);e.body.push(r)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")};z.parseClassId=function(e,t){this.type===p.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,Zt,!1)):(t===!0&&this.unexpected(),e.id=null)};z.parseClassSuper=function(e){e.superClass=this.eat(p._extends)?this.parseExprSubscripts(null,!1):null};z.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared};z.exitClassBody=function(){var e=this.privateNameStack.pop(),t=e.declared,r=e.used;if(this.options.checkPrivateFields)for(var a=this.privateNameStack.length,n=a===0?null:this.privateNameStack[a-1],i=0;i=11&&(this.eatContextual("as")?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==p.string&&this.unexpected(),e.source=this.parseExprAtom(),this.semicolon(),this.finishNode(e,"ExportAllDeclaration")};z.parseExport=function(e,t){if(this.next(),this.eat(p.star))return this.parseExportAllDeclaration(e,t);if(this.eat(p._default))return this.checkExport(t,"default",this.lastTokStart),e.declaration=this.parseExportDefaultDeclaration(),this.finishNode(e,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())e.declaration=this.parseExportDeclaration(e),e.declaration.type==="VariableDeclaration"?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==p.string&&this.unexpected(),e.source=this.parseExprAtom();else{for(var r=0,a=e.specifiers;r=13&&this.type===p.string){var e=this.parseLiteral(this.value);return xie.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)};z.adaptDirectivePrologue=function(e){for(var t=0;t=5&&e.type==="ExpressionStatement"&&e.expression.type==="Literal"&&typeof e.expression.value=="string"&&(this.input[e.start]==='"'||this.input[e.start]==="'")};var Ct=Te.prototype;Ct.toAssignable=function(e,t,r){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&e.name==="await"&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",r&&this.checkPatternErrors(r,!0);for(var a=0,n=e.properties;a=8&&!u&&s.name==="async"&&!this.canInsertSemicolon()&&this.eat(p._function))return this.overrideContext(De.f_expr),this.parseFunction(this.startNodeAt(i,o),0,!1,!0,t);if(n&&!this.canInsertSemicolon()){if(this.eat(p.arrow))return this.parseArrowExpression(this.startNodeAt(i,o),[s],!1,t);if(this.options.ecmaVersion>=8&&s.name==="async"&&this.type===p.name&&!u&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return s=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(p.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(i,o),[s],!0,t)}return s;case p.regexp:var l=this.value;return a=this.parseLiteral(l.value),a.regex={pattern:l.pattern,flags:l.flags},a;case p.num:case p.string:return this.parseLiteral(this.value);case p._null:case p._true:case p._false:return a=this.startNode(),a.value=this.type===p._null?null:this.type===p._true,a.raw=this.type.keyword,this.next(),this.finishNode(a,"Literal");case p.parenL:var c=this.start,d=this.parseParenAndDistinguishExpression(n,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(d)&&(e.parenthesizedAssign=c),e.parenthesizedBind<0&&(e.parenthesizedBind=c)),d;case p.bracketL:return a=this.startNode(),this.next(),a.elements=this.parseExprList(p.bracketR,!0,!0,e),this.finishNode(a,"ArrayExpression");case p.braceL:return this.overrideContext(De.b_expr),this.parseObj(!1,e);case p._function:return a=this.startNode(),this.next(),this.parseFunction(a,0);case p._class:return this.parseClass(this.startNode(),!1);case p._new:return this.parseNew();case p.backQuote:return this.parseTemplate();case p._import:return this.options.ecmaVersion>=11?this.parseExprImport(r):this.unexpected();default:return this.parseExprAtomDefault()}};J.parseExprAtomDefault=function(){this.unexpected()};J.parseExprImport=function(e){var t=this.startNode();this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import");var r=this.parseIdent(!0);if(this.type===p.parenL&&!e)return this.parseDynamicImport(t);if(this.type===p.dot)return t.meta=r,this.parseImportMeta(t);this.unexpected()};J.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),!this.eat(p.parenR)){var t=this.start;this.eat(p.comma)&&this.eat(p.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")};J.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="meta"&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")};J.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),t.raw.charCodeAt(t.raw.length-1)===110&&(t.bigint=t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")};J.parseParenExpression=function(){this.expect(p.parenL);var e=this.parseExpression();return this.expect(p.parenR),e};J.shouldParseArrow=function(e){return!this.canInsertSemicolon()};J.parseParenAndDistinguishExpression=function(e,t){var r=this.start,a=this.startLoc,n,i=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var o=this.start,u=this.startLoc,s=[],l=!0,c=!1,d=new pi,v=this.yieldPos,A=this.awaitPos,x;for(this.yieldPos=0,this.awaitPos=0;this.type!==p.parenR;)if(l?l=!1:this.expect(p.comma),i&&this.afterTrailingComma(p.parenR,!0)){c=!0;break}else if(this.type===p.ellipsis){x=this.start,s.push(this.parseParenItem(this.parseRestBinding())),this.type===p.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else s.push(this.parseMaybeAssign(!1,d,this.parseParenItem));var S=this.lastTokEnd,_=this.lastTokEndLoc;if(this.expect(p.parenR),e&&this.shouldParseArrow(s)&&this.eat(p.arrow))return this.checkPatternErrors(d,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=v,this.awaitPos=A,this.parseParenArrowList(r,a,s,t);(!s.length||c)&&this.unexpected(this.lastTokStart),x&&this.unexpected(x),this.checkExpressionErrors(d,!0),this.yieldPos=v||this.yieldPos,this.awaitPos=A||this.awaitPos,s.length>1?(n=this.startNodeAt(o,u),n.expressions=s,this.finishNodeAt(n,"SequenceExpression",S,_)):n=s[0]}else n=this.parseParenExpression();if(this.options.preserveParens){var f=this.startNodeAt(r,a);return f.expression=n,this.finishNode(f,"ParenthesizedExpression")}else return n};J.parseParenItem=function(e){return e};J.parseParenArrowList=function(e,t,r,a){return this.parseArrowExpression(this.startNodeAt(e,t),r,!1,a)};var Eie=[];J.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode(),t=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(p.dot)){e.meta=t;var r=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="target"&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),r&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(e.start,"'new.target' can only be used in functions and class static block"),this.finishNode(e,"MetaProperty")}var a=this.start,n=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),a,n,!0,!1),this.eat(p.parenL)?e.arguments=this.parseExprList(p.parenR,this.options.ecmaVersion>=8,!1):e.arguments=Eie,this.finishNode(e,"NewExpression")};J.parseTemplateElement=function(e){var t=e.isTagged,r=this.startNode();return this.type===p.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),r.value={raw:this.value,cooked:null}):r.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,` `),cooked:this.value},this.next(),r.tail=this.type===p.backQuote,this.finishNode(r,"TemplateElement")};J.parseTemplate=function(e){e===void 0&&(e={});var t=e.isTagged;t===void 0&&(t=!1);var r=this.startNode();this.next(),r.expressions=[];var a=this.parseTemplateElement({isTagged:t});for(r.quasis=[a];!a.tail;)this.type===p.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(p.dollarBraceL),r.expressions.push(this.parseExpression()),this.expect(p.braceR),r.quasis.push(a=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(r,"TemplateLiteral")};J.isAsyncProp=function(e){return!e.computed&&e.key.type==="Identifier"&&e.key.name==="async"&&(this.type===p.name||this.type===p.num||this.type===p.string||this.type===p.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===p.star)&&!wt.test(this.input.slice(this.lastTokEnd,this.start))};J.parseObj=function(e,t){var r=this.startNode(),a=!0,n={};for(r.properties=[],this.next();!this.eat(p.braceR);){if(a)a=!1;else if(this.expect(p.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(p.braceR))break;var i=this.parseProperty(e,t);e||this.checkPropClash(i,n,t),r.properties.push(i)}return this.finishNode(r,e?"ObjectPattern":"ObjectExpression")};J.parseProperty=function(e,t){var r=this.startNode(),a,n,i,o;if(this.options.ecmaVersion>=9&&this.eat(p.ellipsis))return e?(r.argument=this.parseIdent(!1),this.type===p.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(r,"RestElement")):(r.argument=this.parseMaybeAssign(!1,t),this.type===p.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(r,"SpreadElement"));this.options.ecmaVersion>=6&&(r.method=!1,r.shorthand=!1,(e||t)&&(i=this.start,o=this.startLoc),e||(a=this.eat(p.star)));var u=this.containsEsc;return this.parsePropertyName(r),!e&&!u&&this.options.ecmaVersion>=8&&!a&&this.isAsyncProp(r)?(n=!0,a=this.options.ecmaVersion>=9&&this.eat(p.star),this.parsePropertyName(r)):n=!1,this.parsePropertyValue(r,e,a,n,i,o,t,u),this.finishNode(r,"Property")};J.parseGetterSetter=function(e){e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var t=e.kind==="get"?0:1;if(e.value.params.length!==t){var r=e.value.start;e.kind==="get"?this.raiseRecoverable(r,"getter should have no params"):this.raiseRecoverable(r,"setter should have exactly one param")}else e.kind==="set"&&e.value.params[0].type==="RestElement"&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")};J.parsePropertyValue=function(e,t,r,a,n,i,o,u){(r||a)&&this.type===p.colon&&this.unexpected(),this.eat(p.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,o),e.kind="init"):this.options.ecmaVersion>=6&&this.type===p.parenL?(t&&this.unexpected(),e.kind="init",e.method=!0,e.value=this.parseMethod(r,a)):!t&&!u&&this.options.ecmaVersion>=5&&!e.computed&&e.key.type==="Identifier"&&(e.key.name==="get"||e.key.name==="set")&&this.type!==p.comma&&this.type!==p.braceR&&this.type!==p.eq?((r||a)&&this.unexpected(),this.parseGetterSetter(e)):this.options.ecmaVersion>=6&&!e.computed&&e.key.type==="Identifier"?((r||a)&&this.unexpected(),this.checkUnreserved(e.key),e.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=n),e.kind="init",t?e.value=this.parseMaybeDefault(n,i,this.copyNode(e.key)):this.type===p.eq&&o?(o.shorthandAssign<0&&(o.shorthandAssign=this.start),e.value=this.parseMaybeDefault(n,i,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.shorthand=!0):this.unexpected()};J.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(p.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(p.bracketR),e.key;e.computed=!1}return e.key=this.type===p.num||this.type===p.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")};J.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)};J.parseMethod=function(e,t,r){var a=this.startNode(),n=this.yieldPos,i=this.awaitPos,o=this.awaitIdentPos;return this.initFunction(a),this.options.ecmaVersion>=6&&(a.generator=e),this.options.ecmaVersion>=8&&(a.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(af(t,a.generator)|tf|(r?fg:0)),this.expect(p.parenL),a.params=this.parseBindingList(p.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(a,!1,!0,!1),this.yieldPos=n,this.awaitPos=i,this.awaitIdentPos=o,this.finishNode(a,"FunctionExpression")};J.parseArrowExpression=function(e,t,r,a){var n=this.yieldPos,i=this.awaitPos,o=this.awaitIdentPos;return this.enterScope(af(r,!1)|dg),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!r),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,a),this.yieldPos=n,this.awaitPos=i,this.awaitIdentPos=o,this.finishNode(e,"ArrowFunctionExpression")};J.parseFunctionBody=function(e,t,r,a){var n=t&&this.type!==p.braceL,i=this.strict,o=!1;if(n)e.body=this.parseMaybeAssign(a),e.expression=!0,this.checkParams(e,!1);else{var u=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);(!i||u)&&(o=this.strictDirective(this.end),o&&u&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var s=this.labels;this.labels=[],o&&(this.strict=!0),this.checkParams(e,!i&&!o&&!t&&!r&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,mg),e.body=this.parseBlock(!1,void 0,o&&!i),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=s}this.exitScope()};J.isSimpleParamList=function(e){for(var t=0,r=e;t-1||n.functions.indexOf(e)>-1||n.var.indexOf(e)>-1,n.lexical.push(e),this.inModule&&n.flags&Ua&&delete this.undefinedExports[e]}else if(t===vg){var i=this.currentScope();i.lexical.push(e)}else if(t===hg){var o=this.currentScope();this.treatFunctionsAsVar?a=o.lexical.indexOf(e)>-1:a=o.lexical.indexOf(e)>-1||o.var.indexOf(e)>-1,o.functions.push(e)}else for(var u=this.scopeStack.length-1;u>=0;--u){var s=this.scopeStack[u];if(s.lexical.indexOf(e)>-1&&!(s.flags&pg&&s.lexical[0]===e)||!this.treatFunctionsAsVarInScope(s)&&s.functions.indexOf(e)>-1){a=!0;break}if(s.var.push(e),this.inModule&&s.flags&Ua&&delete this.undefinedExports[e],s.flags&rf)break}a&&this.raiseRecoverable(r,"Identifier '"+e+"' has already been declared")};hr.checkLocalExport=function(e){this.scopeStack[0].lexical.indexOf(e.name)===-1&&this.scopeStack[0].var.indexOf(e.name)===-1&&(this.undefinedExports[e.name]=e)};hr.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]};hr.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&rf)return t}};hr.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&rf&&!(t.flags&dg))return t}};var fi=function(t,r,a){this.type="",this.start=r,this.end=0,t.options.locations&&(this.loc=new di(t,a)),t.options.directSourceFile&&(this.sourceFile=t.options.directSourceFile),t.options.ranges&&(this.range=[r,0])},Ja=Te.prototype;Ja.startNode=function(){return new fi(this,this.start,this.startLoc)};Ja.startNodeAt=function(e,t){return new fi(this,e,t)};function yg(e,t,r,a){return e.type=t,e.end=r,this.options.locations&&(e.loc.end=a),this.options.ranges&&(e.range[1]=r),e}Ja.finishNode=function(e,t){return yg.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)};Ja.finishNodeAt=function(e,t,r,a){return yg.call(this,e,t,r,a)};Ja.copyNode=function(e){var t=new fi(this,e.start,this.startLoc);for(var r in e)t[r]=e[r];return t};var xg="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",wg=xg+" Extended_Pictographic",Cg=wg,kg=Cg+" EBase EComp EMod EPres ExtPict",Ag=kg,Rie=Ag,Pie={9:xg,10:wg,11:Cg,12:kg,13:Ag,14:Rie},qie="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",$ie={9:"",10:"",11:"",12:"",13:"",14:qie},hh="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",_g="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",Dg=_g+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",Eg=Dg+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",Sg=Eg+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",Rg=Sg+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",Fie=Rg+" Hrkt Katakana_Or_Hiragana Kawi Nag_Mundari Nagm Unknown Zzzz",Oie={9:_g,10:Dg,11:Eg,12:Sg,13:Rg,14:Fie},Pg={};function Tie(e){var t=Pg[e]={binary:or(Pie[e]+" "+hh),binaryOfStrings:or($ie[e]),nonBinary:{General_Category:or(hh),Script:or(Oie[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}for(var Vc=0,vh=[9,10,11,12,13,14];Vc=6?"uy":"")+(t.options.ecmaVersion>=9?"s":"")+(t.options.ecmaVersion>=13?"d":"")+(t.options.ecmaVersion>=15?"v":""),this.unicodeProperties=Pg[t.options.ecmaVersion>=14?14:t.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};jt.prototype.reset=function(t,r,a){var n=a.indexOf("v")!==-1,i=a.indexOf("u")!==-1;this.start=t|0,this.source=r+"",this.flags=a,n&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=i&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=i&&this.parser.options.ecmaVersion>=9)};jt.prototype.raise=function(t){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+t)};jt.prototype.at=function(t,r){r===void 0&&(r=!1);var a=this.source,n=a.length;if(t>=n)return-1;var i=a.charCodeAt(t);if(!(r||this.switchU)||i<=55295||i>=57344||t+1>=n)return i;var o=a.charCodeAt(t+1);return o>=56320&&o<=57343?(i<<10)+o-56613888:i};jt.prototype.nextIndex=function(t,r){r===void 0&&(r=!1);var a=this.source,n=a.length;if(t>=n)return n;var i=a.charCodeAt(t),o;return!(r||this.switchU)||i<=55295||i>=57344||t+1>=n||(o=a.charCodeAt(t+1))<56320||o>57343?t+1:t+2};jt.prototype.current=function(t){return t===void 0&&(t=!1),this.at(this.pos,t)};jt.prototype.lookahead=function(t){return t===void 0&&(t=!1),this.at(this.nextIndex(this.pos,t),t)};jt.prototype.advance=function(t){t===void 0&&(t=!1),this.pos=this.nextIndex(this.pos,t)};jt.prototype.eat=function(t,r){return r===void 0&&(r=!1),this.current(r)===t?(this.advance(r),!0):!1};jt.prototype.eatChars=function(t,r){r===void 0&&(r=!1);for(var a=this.pos,n=0,i=t;n-1&&this.raise(e.start,"Duplicate regular expression flag"),o==="u"&&(a=!0),o==="v"&&(n=!0)}this.options.ecmaVersion>=15&&a&&n&&this.raise(e.start,"Invalid regular expression flag")};U.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&e.groupNames.length>0&&(e.switchN=!0,this.regexp_pattern(e))};U.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames.length=0,e.backReferenceNames.length=0,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,r=e.backReferenceNames;t=9&&(r=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!r,!0}return e.pos=t,!1};U.regexp_eatQuantifier=function(e,t){return t===void 0&&(t=!1),this.regexp_eatQuantifierPrefix(e,t)?(e.eat(63),!0):!1};U.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)};U.regexp_eatBracedQuantifier=function(e,t){var r=e.pos;if(e.eat(123)){var a=0,n=-1;if(this.regexp_eatDecimalDigits(e)&&(a=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(n=e.lastIntValue),e.eat(125)))return n!==-1&&n=9?this.regexp_groupSpecifier(e):e.current()===63&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1};U.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)};U.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1};U.regexp_eatSyntaxCharacter=function(e){var t=e.current();return qg(t)?(e.lastIntValue=t,e.advance(),!0):!1};function qg(e){return e===36||e>=40&&e<=43||e===46||e===63||e>=91&&e<=94||e>=123&&e<=125}U.regexp_eatPatternCharacters=function(e){for(var t=e.pos,r=0;(r=e.current())!==-1&&!qg(r);)e.advance();return e.pos!==t};U.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return t!==-1&&t!==36&&!(t>=40&&t<=43)&&t!==46&&t!==63&&t!==91&&t!==94&&t!==124?(e.advance(),!0):!1};U.regexp_groupSpecifier=function(e){if(e.eat(63)){if(this.regexp_eatGroupName(e)){e.groupNames.indexOf(e.lastStringValue)!==-1&&e.raise("Duplicate capture group name"),e.groupNames.push(e.lastStringValue);return}e.raise("Invalid group")}};U.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1};U.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=ur(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=ur(e.lastIntValue);return!0}return!1};U.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,r=this.options.ecmaVersion>=11,a=e.current(r);return e.advance(r),a===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,r)&&(a=e.lastIntValue),Iie(a)?(e.lastIntValue=a,!0):(e.pos=t,!1)};function Iie(e){return Qt(e,!0)||e===36||e===95}U.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,r=this.options.ecmaVersion>=11,a=e.current(r);return e.advance(r),a===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,r)&&(a=e.lastIntValue),Bie(a)?(e.lastIntValue=a,!0):(e.pos=t,!1)};function Bie(e){return ia(e,!0)||e===36||e===95||e===8204||e===8205}U.regexp_eatAtomEscape=function(e){return this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e)?!0:(e.switchU&&(e.current()===99&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)};U.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var r=e.lastIntValue;if(e.switchU)return r>e.maxBackReference&&(e.maxBackReference=r),!0;if(r<=e.numCapturingParens)return!0;e.pos=t}return!1};U.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1};U.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)};U.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1};U.regexp_eatZero=function(e){return e.current()===48&&!hi(e.lookahead())?(e.lastIntValue=0,e.advance(),!0):!1};U.regexp_eatControlEscape=function(e){var t=e.current();return t===116?(e.lastIntValue=9,e.advance(),!0):t===110?(e.lastIntValue=10,e.advance(),!0):t===118?(e.lastIntValue=11,e.advance(),!0):t===102?(e.lastIntValue=12,e.advance(),!0):t===114?(e.lastIntValue=13,e.advance(),!0):!1};U.regexp_eatControlLetter=function(e){var t=e.current();return $g(t)?(e.lastIntValue=t%32,e.advance(),!0):!1};function $g(e){return e>=65&&e<=90||e>=97&&e<=122}U.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){t===void 0&&(t=!1);var r=e.pos,a=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var n=e.lastIntValue;if(a&&n>=55296&&n<=56319){var i=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var o=e.lastIntValue;if(o>=56320&&o<=57343)return e.lastIntValue=(n-55296)*1024+(o-56320)+65536,!0}e.pos=i,e.lastIntValue=n}return!0}if(a&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&Mie(e.lastIntValue))return!0;a&&e.raise("Invalid unicode escape"),e.pos=r}return!1};function Mie(e){return e>=0&&e<=1114111}U.regexp_eatIdentityEscape=function(e){if(e.switchU)return this.regexp_eatSyntaxCharacter(e)?!0:e.eat(47)?(e.lastIntValue=47,!0):!1;var t=e.current();return t!==99&&(!e.switchN||t!==107)?(e.lastIntValue=t,e.advance(),!0):!1};U.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do e.lastIntValue=10*e.lastIntValue+(t-48),e.advance();while((t=e.current())>=48&&t<=57);return!0}return!1};var Fg=0,Kt=1,bt=2;U.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(Nie(t))return e.lastIntValue=-1,e.advance(),Kt;var r=!1;if(e.switchU&&this.options.ecmaVersion>=9&&((r=t===80)||t===112)){e.lastIntValue=-1,e.advance();var a;if(e.eat(123)&&(a=this.regexp_eatUnicodePropertyValueExpression(e))&&e.eat(125))return r&&a===bt&&e.raise("Invalid property name"),a;e.raise("Invalid property name")}return Fg};function Nie(e){return e===100||e===68||e===115||e===83||e===119||e===87}U.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var r=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var a=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,r,a),Kt}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var n=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,n)}return Fg};U.regexp_validateUnicodePropertyNameAndValue=function(e,t,r){Ka(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(r)||e.raise("Invalid property value")};U.regexp_validateUnicodePropertyNameOrValue=function(e,t){if(e.unicodeProperties.binary.test(t))return Kt;if(e.switchV&&e.unicodeProperties.binaryOfStrings.test(t))return bt;e.raise("Invalid property name")};U.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";Og(t=e.current());)e.lastStringValue+=ur(t),e.advance();return e.lastStringValue!==""};function Og(e){return $g(e)||e===95}U.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";jie(t=e.current());)e.lastStringValue+=ur(t),e.advance();return e.lastStringValue!==""};function jie(e){return Og(e)||hi(e)}U.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)};U.regexp_eatCharacterClass=function(e){if(e.eat(91)){var t=e.eat(94),r=this.regexp_classContents(e);return e.eat(93)||e.raise("Unterminated character class"),t&&r===bt&&e.raise("Negated character class may contain strings"),!0}return!1};U.regexp_classContents=function(e){return e.current()===93?Kt:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),Kt)};U.regexp_nonEmptyClassRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var r=e.lastIntValue;e.switchU&&(t===-1||r===-1)&&e.raise("Invalid character class"),t!==-1&&r!==-1&&t>r&&e.raise("Range out of order in character class")}}};U.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var r=e.current();(r===99||Ig(r))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var a=e.current();return a!==93?(e.lastIntValue=a,e.advance(),!0):!1};U.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)};U.regexp_classSetExpression=function(e){var t=Kt,r;if(!this.regexp_eatClassSetRange(e))if(r=this.regexp_eatClassSetOperand(e)){r===bt&&(t=bt);for(var a=e.pos;e.eatChars([38,38]);){if(e.current()!==38&&(r=this.regexp_eatClassSetOperand(e))){r!==bt&&(t=Kt);continue}e.raise("Invalid character in character class")}if(a!==e.pos)return t;for(;e.eatChars([45,45]);)this.regexp_eatClassSetOperand(e)||e.raise("Invalid character in character class");if(a!==e.pos)return t}else e.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(e)){if(r=this.regexp_eatClassSetOperand(e),!r)return t;r===bt&&(t=bt)}};U.regexp_eatClassSetRange=function(e){var t=e.pos;if(this.regexp_eatClassSetCharacter(e)){var r=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassSetCharacter(e)){var a=e.lastIntValue;return r!==-1&&a!==-1&&r>a&&e.raise("Range out of order in character class"),!0}e.pos=t}return!1};U.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?Kt:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)};U.regexp_eatNestedClass=function(e){var t=e.pos;if(e.eat(91)){var r=e.eat(94),a=this.regexp_classContents(e);if(e.eat(93))return r&&a===bt&&e.raise("Negated character class may contain strings"),a;e.pos=t}if(e.eat(92)){var n=this.regexp_eatCharacterClassEscape(e);if(n)return n;e.pos=t}return null};U.regexp_eatClassStringDisjunction=function(e){var t=e.pos;if(e.eatChars([92,113])){if(e.eat(123)){var r=this.regexp_classStringDisjunctionContents(e);if(e.eat(125))return r}else e.raise("Invalid escape");e.pos=t}return null};U.regexp_classStringDisjunctionContents=function(e){for(var t=this.regexp_classString(e);e.eat(124);)this.regexp_classString(e)===bt&&(t=bt);return t};U.regexp_classString=function(e){for(var t=0;this.regexp_eatClassSetCharacter(e);)t++;return t===1?Kt:bt};U.regexp_eatClassSetCharacter=function(e){var t=e.pos;if(e.eat(92))return this.regexp_eatCharacterEscape(e)||this.regexp_eatClassSetReservedPunctuator(e)?!0:e.eat(98)?(e.lastIntValue=8,!0):(e.pos=t,!1);var r=e.current();return r<0||r===e.lookahead()&&Uie(r)||Vie(r)?!1:(e.advance(),e.lastIntValue=r,!0)};function Uie(e){return e===33||e>=35&&e<=38||e>=42&&e<=44||e===46||e>=58&&e<=64||e===94||e===96||e===126}function Vie(e){return e===40||e===41||e===45||e===47||e>=91&&e<=93||e>=123&&e<=125}U.regexp_eatClassSetReservedPunctuator=function(e){var t=e.current();return zie(t)?(e.lastIntValue=t,e.advance(),!0):!1};function zie(e){return e===33||e===35||e===37||e===38||e===44||e===45||e>=58&&e<=62||e===64||e===96||e===126}U.regexp_eatClassControlLetter=function(e){var t=e.current();return hi(t)||t===95?(e.lastIntValue=t%32,e.advance(),!0):!1};U.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1};U.regexp_eatDecimalDigits=function(e){var t=e.pos,r=0;for(e.lastIntValue=0;hi(r=e.current());)e.lastIntValue=10*e.lastIntValue+(r-48),e.advance();return e.pos!==t};function hi(e){return e>=48&&e<=57}U.regexp_eatHexDigits=function(e){var t=e.pos,r=0;for(e.lastIntValue=0;Tg(r=e.current());)e.lastIntValue=16*e.lastIntValue+Lg(r),e.advance();return e.pos!==t};function Tg(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function Lg(e){return e>=65&&e<=70?10+(e-65):e>=97&&e<=102?10+(e-97):e-48}U.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var r=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=t*64+r*8+e.lastIntValue:e.lastIntValue=t*8+r}else e.lastIntValue=t;return!0}return!1};U.regexp_eatOctalDigit=function(e){var t=e.current();return Ig(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)};function Ig(e){return e>=48&&e<=55}U.regexp_eatFixedHexDigits=function(e,t){var r=e.pos;e.lastIntValue=0;for(var a=0;a=this.input.length)return this.finishToken(p.eof);if(e.override)return e.override(this);this.readToken(this.fullCharCodeAtPos())};ce.readToken=function(e){return Qt(e,this.options.ecmaVersion>=6)||e===92?this.readWord():this.getTokenFromCode(e)};ce.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);if(e<=55295||e>=56320)return e;var t=this.input.charCodeAt(this.pos+1);return t<=56319||t>=57344?e:(e<<10)+t-56613888};ce.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,r=this.input.indexOf("*/",this.pos+=2);if(r===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=r+2,this.options.locations)for(var a=void 0,n=t;(a=og(this.input,n,this.pos))>-1;)++this.curLine,n=this.lineStart=a;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,r),t,this.pos,e,this.curPosition())};ce.skipLineComment=function(e){for(var t=this.pos,r=this.options.onComment&&this.curPosition(),a=this.input.charCodeAt(this.pos+=e);this.pos8&&e<14||e>=5760&&sg.test(String.fromCharCode(e)))++this.pos;else break e}}};ce.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var r=this.type;this.type=e,this.value=t,this.updateContext(r)};ce.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&e===46&&t===46?(this.pos+=3,this.finishToken(p.ellipsis)):(++this.pos,this.finishToken(p.dot))};ce.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):e===61?this.finishOp(p.assign,2):this.finishOp(p.slash,1)};ce.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),r=1,a=e===42?p.star:p.modulo;return this.options.ecmaVersion>=7&&e===42&&t===42&&(++r,a=p.starstar,t=this.input.charCodeAt(this.pos+2)),t===61?this.finishOp(p.assign,r+1):this.finishOp(a,r)};ce.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);if(t===e){if(this.options.ecmaVersion>=12){var r=this.input.charCodeAt(this.pos+2);if(r===61)return this.finishOp(p.assign,3)}return this.finishOp(e===124?p.logicalOR:p.logicalAND,2)}return t===61?this.finishOp(p.assign,2):this.finishOp(e===124?p.bitwiseOR:p.bitwiseAND,1)};ce.readToken_caret=function(){var e=this.input.charCodeAt(this.pos+1);return e===61?this.finishOp(p.assign,2):this.finishOp(p.bitwiseXOR,1)};ce.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?t===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||wt.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(p.incDec,2):t===61?this.finishOp(p.assign,2):this.finishOp(p.plusMin,1)};ce.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),r=1;return t===e?(r=e===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+r)===61?this.finishOp(p.assign,r+1):this.finishOp(p.bitShift,r)):t===33&&e===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(t===61&&(r=2),this.finishOp(p.relational,r))};ce.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return t===61?this.finishOp(p.equality,this.input.charCodeAt(this.pos+2)===61?3:2):e===61&&t===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(p.arrow)):this.finishOp(e===61?p.eq:p.prefix,1)};ce.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(t===46){var r=this.input.charCodeAt(this.pos+2);if(r<48||r>57)return this.finishOp(p.questionDot,2)}if(t===63){if(e>=12){var a=this.input.charCodeAt(this.pos+2);if(a===61)return this.finishOp(p.assign,3)}return this.finishOp(p.coalesce,2)}}return this.finishOp(p.question,1)};ce.readToken_numberSign=function(){var e=this.options.ecmaVersion,t=35;if(e>=13&&(++this.pos,t=this.fullCharCodeAtPos(),Qt(t,!0)||t===92))return this.finishToken(p.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+ur(t)+"'")};ce.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(p.parenL);case 41:return++this.pos,this.finishToken(p.parenR);case 59:return++this.pos,this.finishToken(p.semi);case 44:return++this.pos,this.finishToken(p.comma);case 91:return++this.pos,this.finishToken(p.bracketL);case 93:return++this.pos,this.finishToken(p.bracketR);case 123:return++this.pos,this.finishToken(p.braceL);case 125:return++this.pos,this.finishToken(p.braceR);case 58:return++this.pos,this.finishToken(p.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(p.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(t===120||t===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(t===111||t===79)return this.readRadixNumber(8);if(t===98||t===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(p.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+ur(e)+"'")};ce.finishOp=function(e,t){var r=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,r)};ce.readRegexp=function(){for(var e,t,r=this.pos;;){this.pos>=this.input.length&&this.raise(r,"Unterminated regular expression");var a=this.input.charAt(this.pos);if(wt.test(a)&&this.raise(r,"Unterminated regular expression"),e)e=!1;else{if(a==="[")t=!0;else if(a==="]"&&t)t=!1;else if(a==="/"&&!t)break;e=a==="\\"}++this.pos}var n=this.input.slice(r,this.pos);++this.pos;var i=this.pos,o=this.readWord1();this.containsEsc&&this.unexpected(i);var u=this.regexpState||(this.regexpState=new jt(this));u.reset(r,n,o),this.validateRegExpFlags(u),this.validateRegExpPattern(u);var s=null;try{s=new RegExp(n,o)}catch{}return this.finishToken(p.regexp,{pattern:n,flags:o,value:s})};ce.readInt=function(e,t,r){for(var a=this.options.ecmaVersion>=12&&t===void 0,n=r&&this.input.charCodeAt(this.pos)===48,i=this.pos,o=0,u=0,s=0,l=t??1/0;s=97?d=c-97+10:c>=65?d=c-65+10:c>=48&&c<=57?d=c-48:d=1/0,d>=e)break;u=c,o=o*e+d}return a&&u===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===i||t!=null&&this.pos-i!==t?null:o};function Hie(e,t){return t?parseInt(e,8):parseFloat(e.replace(/_/g,""))}function Bg(e){return typeof BigInt!="function"?null:BigInt(e.replace(/_/g,""))}ce.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var r=this.readInt(e);return r==null&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(r=Bg(this.input.slice(t,this.pos)),++this.pos):Qt(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(p.num,r)};ce.readNumber=function(e){var t=this.pos;!e&&this.readInt(10,void 0,!0)===null&&this.raise(t,"Invalid number");var r=this.pos-t>=2&&this.input.charCodeAt(t)===48;r&&this.strict&&this.raise(t,"Invalid number");var a=this.input.charCodeAt(this.pos);if(!r&&!e&&this.options.ecmaVersion>=11&&a===110){var n=Bg(this.input.slice(t,this.pos));return++this.pos,Qt(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(p.num,n)}r&&/[89]/.test(this.input.slice(t,this.pos))&&(r=!1),a===46&&!r&&(++this.pos,this.readInt(10),a=this.input.charCodeAt(this.pos)),(a===69||a===101)&&!r&&(a=this.input.charCodeAt(++this.pos),(a===43||a===45)&&++this.pos,this.readInt(10)===null&&this.raise(t,"Invalid number")),Qt(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var i=Hie(this.input.slice(t,this.pos),r);return this.finishToken(p.num,i)};ce.readCodePoint=function(){var e=this.input.charCodeAt(this.pos),t;if(e===123){this.options.ecmaVersion<6&&this.unexpected();var r=++this.pos;t=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,t>1114111&&this.invalidStringToken(r,"Code point out of bounds")}else t=this.readHexChar(4);return t};ce.readString=function(e){for(var t="",r=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var a=this.input.charCodeAt(this.pos);if(a===e)break;a===92?(t+=this.input.slice(r,this.pos),t+=this.readEscapedChar(!1),r=this.pos):a===8232||a===8233?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(da(a)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(r,this.pos++),this.finishToken(p.string,t)};var Mg={};ce.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===Mg)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1};ce.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Mg;this.raise(e,t)};ce.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var r=this.input.charCodeAt(this.pos);if(r===96||r===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===p.template||this.type===p.invalidTemplate)?r===36?(this.pos+=2,this.finishToken(p.dollarBraceL)):(++this.pos,this.finishToken(p.backQuote)):(e+=this.input.slice(t,this.pos),this.finishToken(p.template,e));if(r===92)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(da(r)){switch(e+=this.input.slice(t,this.pos),++this.pos,r){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:e+=` diff --git a/docs/_app/immutable/chunks/each.514658f0.js b/docs/_app/immutable/chunks/each.31dbf577.js similarity index 72% rename from docs/_app/immutable/chunks/each.514658f0.js rename to docs/_app/immutable/chunks/each.31dbf577.js index 0910631..4fa3b80 100644 --- a/docs/_app/immutable/chunks/each.514658f0.js +++ b/docs/_app/immutable/chunks/each.31dbf577.js @@ -1 +1 @@ -import{t as q,a as z}from"./index.bf4ded2a.js";import{O as B}from"./scheduler.3ecd3668.js";function E(n){return(n==null?void 0:n.length)!==void 0?n:Array.from(n)}function F(n,f){n.d(1),f.delete(n.key)}function G(n,f){q(n,1,1,()=>{f.delete(n.key)})}function H(n,f,k,x,A,g,h,O,p,_,w,j){let i=n.length,d=g.length,c=i;const u={};for(;c--;)u[n[c].key]=c;const l=[],a=new Map,m=new Map,M=[];for(c=d;c--;){const e=j(A,g,c),s=k(e);let t=h.get(s);t?x&&M.push(()=>t.p(e,f)):(t=_(s,e),t.c()),a.set(s,l[c]=t),s in u&&m.set(s,Math.abs(c-u[s]))}const v=new Set,S=new Set;function y(e){z(e,1),e.m(O,w),h.set(e.key,e),w=e.first,d--}for(;i&&d;){const e=l[d-1],s=n[i-1],t=e.key,o=s.key;e===s?(w=e.first,i--,d--):a.has(o)?!h.has(t)||v.has(t)?y(e):S.has(o)?i--:m.get(t)>m.get(o)?(S.add(t),y(e)):(v.add(o),i--):(p(s,h),i--)}for(;i--;){const e=n[i];a.has(e.key)||p(e,h)}for(;d;)y(l[d-1]);return B(M),l}export{F as d,E as e,G as o,H as u}; +import{t as q,a as z}from"./index.cf31950d.js";import{N as B}from"./scheduler.6381a9b9.js";function E(n){return(n==null?void 0:n.length)!==void 0?n:Array.from(n)}function F(n,f){n.d(1),f.delete(n.key)}function G(n,f){q(n,1,1,()=>{f.delete(n.key)})}function H(n,f,k,x,A,g,h,N,p,_,w,j){let i=n.length,d=g.length,c=i;const u={};for(;c--;)u[n[c].key]=c;const l=[],a=new Map,m=new Map,M=[];for(c=d;c--;){const e=j(A,g,c),s=k(e);let t=h.get(s);t?x&&M.push(()=>t.p(e,f)):(t=_(s,e),t.c()),a.set(s,l[c]=t),s in u&&m.set(s,Math.abs(c-u[s]))}const v=new Set,S=new Set;function y(e){z(e,1),e.m(N,w),h.set(e.key,e),w=e.first,d--}for(;i&&d;){const e=l[d-1],s=n[i-1],t=e.key,o=s.key;e===s?(w=e.first,i--,d--):a.has(o)?!h.has(t)||v.has(t)?y(e):S.has(o)?i--:m.get(t)>m.get(o)?(S.add(t),y(e)):(v.add(o),i--):(p(s,h),i--)}for(;i--;){const e=n[i];a.has(e.key)||p(e,h)}for(;d;)y(l[d-1]);return B(M),l}export{F as d,E as e,G as o,H as u}; diff --git a/docs/_app/immutable/chunks/index.a81527e7.js b/docs/_app/immutable/chunks/index.3f5bb107.js similarity index 99% rename from docs/_app/immutable/chunks/index.a81527e7.js rename to docs/_app/immutable/chunks/index.3f5bb107.js index a142947..2985b12 100644 --- a/docs/_app/immutable/chunks/index.a81527e7.js +++ b/docs/_app/immutable/chunks/index.3f5bb107.js @@ -1,4 +1,4 @@ -import{C as E,E as u,L as J,a as m}from"./index.e545d957.js";import{s as N,t as a,h as d,L as A,i as L,c as f,x as B,y as D,f as F,a as K,z as R,b as M,v as H,E as Y,I as OO,n as QO,A as aO}from"./4.ae3ce863.js";import{snippetCompletion as o,ifNotIn as $O,completeFromList as iO}from"./index.3480e68f.js";const eO=303,x=1,SO=2,tO=304,nO=306,rO=307,XO=3,oO=4,ZO=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],b=125,lO=59,h=47,cO=42,sO=43,PO=45,pO=new E({start:!1,shift(O,Q){return Q==XO||Q==oO||Q==nO?O:Q==rO},strict:!1}),fO=new u((O,Q)=>{let{next:i}=O;(i==b||i==-1||Q.context)&&O.acceptToken(tO)},{contextual:!0,fallback:!0}),YO=new u((O,Q)=>{let{next:i}=O,$;ZO.indexOf(i)>-1||i==h&&(($=O.peek(1))==h||$==cO)||i!=b&&i!=lO&&i!=-1&&!Q.context&&O.acceptToken(eO)},{contextual:!0}),gO=new u((O,Q)=>{let{next:i}=O;if((i==sO||i==PO)&&(O.advance(),i==O.next)){O.advance();let $=!Q.context&&Q.canShift(x);O.acceptToken($?x:SO)}},{contextual:!0}),uO=N({"get set async static":a.modifier,"for while do if else switch try catch finally return throw break continue default case":a.controlKeyword,"in of await yield void typeof delete instanceof":a.operatorKeyword,"let var const function class extends":a.definitionKeyword,"import export from":a.moduleKeyword,"with debugger as new":a.keyword,TemplateString:a.special(a.string),super:a.atom,BooleanLiteral:a.bool,this:a.self,null:a.null,Star:a.modifier,VariableName:a.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":a.function(a.variableName),VariableDefinition:a.definition(a.variableName),Label:a.labelName,PropertyName:a.propertyName,PrivatePropertyName:a.special(a.propertyName),"CallExpression/MemberExpression/PropertyName":a.function(a.propertyName),"FunctionDeclaration/VariableDefinition":a.function(a.definition(a.variableName)),"ClassDeclaration/VariableDefinition":a.definition(a.className),PropertyDefinition:a.definition(a.propertyName),PrivatePropertyDefinition:a.definition(a.special(a.propertyName)),UpdateOp:a.updateOperator,LineComment:a.lineComment,BlockComment:a.blockComment,Number:a.number,String:a.string,Escape:a.escape,ArithOp:a.arithmeticOperator,LogicOp:a.logicOperator,BitOp:a.bitwiseOperator,CompareOp:a.compareOperator,RegExp:a.regexp,Equals:a.definitionOperator,Arrow:a.function(a.punctuation),": Spread":a.punctuation,"( )":a.paren,"[ ]":a.squareBracket,"{ }":a.brace,"InterpolationStart InterpolationEnd":a.special(a.brace),".":a.derefOperator,", ;":a.separator,"@":a.meta,TypeName:a.typeName,TypeDefinition:a.definition(a.typeName),"type enum interface implements namespace module declare":a.definitionKeyword,"abstract global Privacy readonly override":a.modifier,"is keyof unique infer":a.operatorKeyword,JSXAttributeValue:a.attributeValue,JSXText:a.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":a.angleBracket,"JSXIdentifier JSXNameSpacedName":a.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":a.attributeName,"JSXBuiltin/JSXIdentifier":a.standard(a.tagName)}),dO={__proto__:null,export:14,as:19,from:27,default:30,async:35,function:36,extends:46,this:50,true:58,false:58,null:70,void:74,typeof:78,super:96,new:130,delete:146,yield:155,await:159,class:164,public:221,private:221,protected:221,readonly:223,instanceof:242,satisfies:245,in:246,const:248,import:280,keyof:335,unique:339,infer:345,is:381,abstract:401,implements:403,type:405,let:408,var:410,using:413,interface:419,enum:423,namespace:429,module:431,declare:435,global:439,for:458,of:467,while:470,with:474,do:478,if:482,else:484,switch:488,case:494,try:500,catch:504,finally:508,return:512,throw:516,break:520,continue:524,debugger:528},wO={__proto__:null,async:117,get:119,set:121,declare:181,public:183,private:183,protected:183,static:185,abstract:187,override:189,readonly:195,accessor:197,new:385},UO={__proto__:null,"<":137},mO=J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.](mQ.c(qQ.g9pQ.i9sQ.j9tQ.k9wQ.z)tQ/|*wQ1u,rQ1x,uQ2Y-_Q2a-sQ2u.aQ2z9xQ2{9yQ2|9zQ2}9{Q3O9|Q3P9}Q3Q:OQ3R:PQ3S:QQ3T:RQ3U:SQ3V:TQ3W.hQ3Z:YQ3[:cQ3a:UQ4S0OQ4[0`Q5m:dQ5s2[Q5x2bQ6U2vQ6V:eQ6[:gQ6]:nQ7T4oQ7r5kQ7v5tQ8P:oQ8T:tQ8U:uQ8z7xQ9Y8gQ9a8xQ9r#QR;U;bR#YWR'P!dY!sQ'U-R0y4tS&{!d,yQ'a!qS'k!t!wS'm!x4vS,v&|'TS-b'b'cQ-d'dQ2P-PR2_-cR(o#vR(r#wQ!eQT-Q'U-R]!pQ!q'U-R0y4tQ#n]R'_9qT#iZ%]S#hZ%]S%cm,]U([#f#g#jS-v(](^Q-z(_Q0Q*|Q2d-wU2e-x-y-{S5z2f2gR7y5{`#[W#U#X%`'x(R*y-qr#eZm#f#g#j%](](^(_*|-w-x-y-{2f2g5{Q1`,]Q1v,sQ5i1nQ7q5jT:|&}*zT#_W%`S#^W%`S'y#U(RS(O#X*yS,x&}*zT-l'x-qT'S!d%aQ$jfR)n$oT)c$j)dR3_.oT*S$w*UR*[$zQ0U+UQ2i.SQ4w0{Q6P2mQ7]4zQ7|6OQ8i7[Q8{7{Q9[8kQ9d8}Q9i9]R9l9elqOXs!Y#b%e&h&j&k&m,a,f1f1iQ&b!UR,U&_rmOXs!T!U!Y#b%e&_&h&j&k&m,a,f1f1iR,]&eT%dm,]R0u+uR,T&]Q%{{R+m%|R+c%vT&f!V&iT&g!V&iT1h,f1i",nodeNames:"⚠ ArithOp ArithOp LineComment BlockComment Script ExportDeclaration export Star as VariableName String Escape from ; default FunctionDeclaration async function VariableDefinition > TypeParamList TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . ?. PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewExpression new TypeArgList CompareOp < ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies in const CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXStartTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast ArrowFunction TypeParamList SequenceExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",maxTerm:366,context:pO,nodeProps:[["group",-26,6,14,16,62,199,203,207,208,210,213,216,226,228,234,236,238,240,243,249,255,257,259,261,263,265,266,"Statement",-32,10,11,25,28,29,35,45,48,49,51,56,64,72,76,78,80,81,103,104,113,114,131,134,136,137,138,139,141,142,162,163,165,"Expression",-23,24,26,30,34,36,38,166,168,170,171,173,174,175,177,178,179,181,182,183,193,195,197,198,"Type",-3,84,96,102,"ClassItem"],["openedBy",31,"InterpolationStart",50,"[",54,"{",69,"(",143,"JSXStartTag",155,"JSXStartTag JSXStartCloseTag"],["closedBy",33,"InterpolationEnd",44,"]",55,"}",70,")",144,"JSXSelfCloseEndTag JSXEndTag",160,"JSXEndTag"]],propSources:[uO],skippedNodes:[0,3,4,269],repeatNodeCount:33,tokenData:"$>y(CSR!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tu>PuvBavwDxwxGgxyMvyz! Qz{!![{|!%O|}!&]}!O!%O!O!P!'g!P!Q!1w!Q!R#0t!R![#3T![!]#@T!]!^#Aa!^!_#Bk!_!`#GS!`!a#In!a!b#N{!b!c$$z!c!}>P!}#O$&U#O#P$'`#P#Q$,w#Q#R$.R#R#S>P#S#T$/`#T#o$0j#o#p$4z#p#q$5p#q#r$7Q#r#s$8^#s$f%Z$f$g+g$g#BY>P#BY#BZ$9h#BZ$IS>P$IS$I_$9h$I_$I|>P$I|$I}$P$JT$JU$9h$JU$KV>P$KV$KW$9h$KW&FU>P&FU&FV$9h&FV;'S>P;'S;=`BZ<%l?HT>P?HT?HU$9h?HUO>P(n%d_$d&j'xp'{!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&j&hT$d&jO!^&c!_#o&c#p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x(rx}%Z}!O@T!O!Q%Z!Q![>P![!^%Z!^!_*g!_!c%Z!c!}>P!}#O%Z#O#P&c#P#R%Z#R#S>P#S#T%Z#T#o>P#o#p*g#p$g%Z$g;'S>P;'S;=`BZ<%lO>P",tokenizers:[YO,gO,2,3,4,5,6,7,8,9,10,11,12,13,fO,new m("$S~RRtu[#O#Pg#S#T#|~_P#o#pb~gOq~~jVO#i!P#i#j!U#j#l!P#l#m!q#m;'S!P;'S;=`#v<%lO!P~!UO!O~~!XS!Q![!e!c!i!e#T#Z!e#o#p#Z~!hR!Q![!q!c!i!q#T#Z!q~!tR!Q![!}!c!i!}#T#Z!}~#QR!Q![!P!c!i!P#T#Z!P~#^R!Q![#g!c!i#g#T#Z#g~#jS!Q![#g!c!i#g#T#Z#g#q#r!P~#yP;=`<%l!P~$RO(U~~",141,327),new m("j~RQYZXz{^~^O'r~~aP!P!Qd~iO's~~",25,309)],topRules:{Script:[0,5],SingleExpression:[1,267],SingleClassItem:[2,268]},dialects:{jsx:12810,ts:12812},dynamicPrecedences:{76:1,78:1,163:1,191:1},specialized:[{term:313,get:O=>dO[O]||-1},{term:329,get:O=>wO[O]||-1},{term:67,get:O=>UO[O]||-1}],tokenPrec:12836}),_=[o("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),o("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),o("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),o("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),o("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),o(`try { +import{C as E,E as u,L as J,a as m}from"./index.f562a38b.js";import{s as N,t as a,h as d,L as A,i as L,c as f,x as B,y as D,f as F,a as K,z as R,b as M,v as H,E as Y,I as OO,n as QO,A as aO}from"./4.cfac87d8.js";import{snippetCompletion as o,ifNotIn as $O,completeFromList as iO}from"./index.db8309a6.js";const eO=303,x=1,SO=2,tO=304,nO=306,rO=307,XO=3,oO=4,ZO=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],b=125,lO=59,h=47,cO=42,sO=43,PO=45,pO=new E({start:!1,shift(O,Q){return Q==XO||Q==oO||Q==nO?O:Q==rO},strict:!1}),fO=new u((O,Q)=>{let{next:i}=O;(i==b||i==-1||Q.context)&&O.acceptToken(tO)},{contextual:!0,fallback:!0}),YO=new u((O,Q)=>{let{next:i}=O,$;ZO.indexOf(i)>-1||i==h&&(($=O.peek(1))==h||$==cO)||i!=b&&i!=lO&&i!=-1&&!Q.context&&O.acceptToken(eO)},{contextual:!0}),gO=new u((O,Q)=>{let{next:i}=O;if((i==sO||i==PO)&&(O.advance(),i==O.next)){O.advance();let $=!Q.context&&Q.canShift(x);O.acceptToken($?x:SO)}},{contextual:!0}),uO=N({"get set async static":a.modifier,"for while do if else switch try catch finally return throw break continue default case":a.controlKeyword,"in of await yield void typeof delete instanceof":a.operatorKeyword,"let var const function class extends":a.definitionKeyword,"import export from":a.moduleKeyword,"with debugger as new":a.keyword,TemplateString:a.special(a.string),super:a.atom,BooleanLiteral:a.bool,this:a.self,null:a.null,Star:a.modifier,VariableName:a.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":a.function(a.variableName),VariableDefinition:a.definition(a.variableName),Label:a.labelName,PropertyName:a.propertyName,PrivatePropertyName:a.special(a.propertyName),"CallExpression/MemberExpression/PropertyName":a.function(a.propertyName),"FunctionDeclaration/VariableDefinition":a.function(a.definition(a.variableName)),"ClassDeclaration/VariableDefinition":a.definition(a.className),PropertyDefinition:a.definition(a.propertyName),PrivatePropertyDefinition:a.definition(a.special(a.propertyName)),UpdateOp:a.updateOperator,LineComment:a.lineComment,BlockComment:a.blockComment,Number:a.number,String:a.string,Escape:a.escape,ArithOp:a.arithmeticOperator,LogicOp:a.logicOperator,BitOp:a.bitwiseOperator,CompareOp:a.compareOperator,RegExp:a.regexp,Equals:a.definitionOperator,Arrow:a.function(a.punctuation),": Spread":a.punctuation,"( )":a.paren,"[ ]":a.squareBracket,"{ }":a.brace,"InterpolationStart InterpolationEnd":a.special(a.brace),".":a.derefOperator,", ;":a.separator,"@":a.meta,TypeName:a.typeName,TypeDefinition:a.definition(a.typeName),"type enum interface implements namespace module declare":a.definitionKeyword,"abstract global Privacy readonly override":a.modifier,"is keyof unique infer":a.operatorKeyword,JSXAttributeValue:a.attributeValue,JSXText:a.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":a.angleBracket,"JSXIdentifier JSXNameSpacedName":a.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":a.attributeName,"JSXBuiltin/JSXIdentifier":a.standard(a.tagName)}),dO={__proto__:null,export:14,as:19,from:27,default:30,async:35,function:36,extends:46,this:50,true:58,false:58,null:70,void:74,typeof:78,super:96,new:130,delete:146,yield:155,await:159,class:164,public:221,private:221,protected:221,readonly:223,instanceof:242,satisfies:245,in:246,const:248,import:280,keyof:335,unique:339,infer:345,is:381,abstract:401,implements:403,type:405,let:408,var:410,using:413,interface:419,enum:423,namespace:429,module:431,declare:435,global:439,for:458,of:467,while:470,with:474,do:478,if:482,else:484,switch:488,case:494,try:500,catch:504,finally:508,return:512,throw:516,break:520,continue:524,debugger:528},wO={__proto__:null,async:117,get:119,set:121,declare:181,public:183,private:183,protected:183,static:185,abstract:187,override:189,readonly:195,accessor:197,new:385},UO={__proto__:null,"<":137},mO=J.deserialize({version:14,states:"$6tO`QUOOO%TQUOOO'WQWOOP(eOSOOO*sQ(CjO'#CfO*zOpO'#CgO+YO!bO'#CgO+hO07`O'#DZO-yQUO'#DaO.ZQUO'#DlO%TQUO'#DvO0_QUO'#EOOOQ(CY'#EW'#EWO0xQSO'#ETOOQO'#Ei'#EiOOQO'#Ic'#IcO1QQSO'#GkO1]QSO'#EhO1bQSO'#EhO3dQ(CjO'#J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Q6]:nQ7T4oQ7r5kQ7v5tQ8P:oQ8T:tQ8U:uQ8z7xQ9Y8gQ9a8xQ9r#QR;U;bR#YWR'P!dY!sQ'U-R0y4tS&{!d,yQ'a!qS'k!t!wS'm!x4vS,v&|'TS-b'b'cQ-d'dQ2P-PR2_-cR(o#vR(r#wQ!eQT-Q'U-R]!pQ!q'U-R0y4tQ#n]R'_9qT#iZ%]S#hZ%]S%cm,]U([#f#g#jS-v(](^Q-z(_Q0Q*|Q2d-wU2e-x-y-{S5z2f2gR7y5{`#[W#U#X%`'x(R*y-qr#eZm#f#g#j%](](^(_*|-w-x-y-{2f2g5{Q1`,]Q1v,sQ5i1nQ7q5jT:|&}*zT#_W%`S#^W%`S'y#U(RS(O#X*yS,x&}*zT-l'x-qT'S!d%aQ$jfR)n$oT)c$j)dR3_.oT*S$w*UR*[$zQ0U+UQ2i.SQ4w0{Q6P2mQ7]4zQ7|6OQ8i7[Q8{7{Q9[8kQ9d8}Q9i9]R9l9elqOXs!Y#b%e&h&j&k&m,a,f1f1iQ&b!UR,U&_rmOXs!T!U!Y#b%e&_&h&j&k&m,a,f1f1iR,]&eT%dm,]R0u+uR,T&]Q%{{R+m%|R+c%vT&f!V&iT&g!V&iT1h,f1i",nodeNames:"⚠ ArithOp ArithOp LineComment BlockComment Script ExportDeclaration export Star as VariableName String Escape from ; default FunctionDeclaration async function VariableDefinition > TypeParamList TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . ?. PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewExpression new TypeArgList CompareOp < ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies in const CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXStartTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast ArrowFunction TypeParamList SequenceExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",maxTerm:366,context:pO,nodeProps:[["group",-26,6,14,16,62,199,203,207,208,210,213,216,226,228,234,236,238,240,243,249,255,257,259,261,263,265,266,"Statement",-32,10,11,25,28,29,35,45,48,49,51,56,64,72,76,78,80,81,103,104,113,114,131,134,136,137,138,139,141,142,162,163,165,"Expression",-23,24,26,30,34,36,38,166,168,170,171,173,174,175,177,178,179,181,182,183,193,195,197,198,"Type",-3,84,96,102,"ClassItem"],["openedBy",31,"InterpolationStart",50,"[",54,"{",69,"(",143,"JSXStartTag",155,"JSXStartTag JSXStartCloseTag"],["closedBy",33,"InterpolationEnd",44,"]",55,"}",70,")",144,"JSXSelfCloseEndTag JSXEndTag",160,"JSXEndTag"]],propSources:[uO],skippedNodes:[0,3,4,269],repeatNodeCount:33,tokenData:"$>y(CSR!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tu>PuvBavwDxwxGgxyMvyz! Qz{!![{|!%O|}!&]}!O!%O!O!P!'g!P!Q!1w!Q!R#0t!R![#3T![!]#@T!]!^#Aa!^!_#Bk!_!`#GS!`!a#In!a!b#N{!b!c$$z!c!}>P!}#O$&U#O#P$'`#P#Q$,w#Q#R$.R#R#S>P#S#T$/`#T#o$0j#o#p$4z#p#q$5p#q#r$7Q#r#s$8^#s$f%Z$f$g+g$g#BY>P#BY#BZ$9h#BZ$IS>P$IS$I_$9h$I_$I|>P$I|$I}$P$JT$JU$9h$JU$KV>P$KV$KW$9h$KW&FU>P&FU&FV$9h&FV;'S>P;'S;=`BZ<%l?HT>P?HT?HU$9h?HUO>P(n%d_$d&j'xp'{!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&j&hT$d&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c&j&zP;=`<%l&c'|'U]$d&j'{!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!b(SU'{!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!b(iP;=`<%l'}'|(oP;=`<%l&}'[(y]$d&j'xpOY(rYZ&cZr(rrs&cs!^(r!^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P#l#m!q#m;'S!P;'S;=`#v<%lO!P~!UO!O~~!XS!Q![!e!c!i!e#T#Z!e#o#p#Z~!hR!Q![!q!c!i!q#T#Z!q~!tR!Q![!}!c!i!}#T#Z!}~#QR!Q![!P!c!i!P#T#Z!P~#^R!Q![#g!c!i#g#T#Z#g~#jS!Q![#g!c!i#g#T#Z#g#q#r!P~#yP;=`<%l!P~$RO(U~~",141,327),new m("j~RQYZXz{^~^O'r~~aP!P!Qd~iO's~~",25,309)],topRules:{Script:[0,5],SingleExpression:[1,267],SingleClassItem:[2,268]},dialects:{jsx:12810,ts:12812},dynamicPrecedences:{76:1,78:1,163:1,191:1},specialized:[{term:313,get:O=>dO[O]||-1},{term:329,get:O=>wO[O]||-1},{term:67,get:O=>UO[O]||-1}],tokenPrec:12836}),_=[o("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),o("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),o("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),o("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),o("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),o(`try { \${} } catch (\${error}) { \${} diff --git a/docs/_app/immutable/chunks/index.5b2a27d5.js b/docs/_app/immutable/chunks/index.4cde5aa3.js similarity index 99% rename from docs/_app/immutable/chunks/index.5b2a27d5.js rename to docs/_app/immutable/chunks/index.4cde5aa3.js index 917b11b..17c75dd 100644 --- a/docs/_app/immutable/chunks/index.5b2a27d5.js +++ b/docs/_app/immutable/chunks/index.4cde5aa3.js @@ -1,4 +1,4 @@ -import{N as X,d as I,s as me,t as c,e as ge,P as Qe,T as Ze,g as E,p as Ge,h as $,E as v,b as ie,j as Ve,k as Ke,l as Je,m as Ye,n as We,f as et,i as tt,o as rt,q as st,r as oe,u as nt}from"./4.ae3ce863.js";import{CompletionContext as it}from"./index.3480e68f.js";import{h as ot,a as at}from"./index.7be10aca.js";class F{static create(e,r,s,n,i){let o=n+(n<<8)+e+(r<<4)|0;return new F(e,r,s,o,i,[],[])}constructor(e,r,s,n,i,o,a){this.type=e,this.value=r,this.from=s,this.hash=n,this.end=i,this.children=o,this.positions=a,this.hashProp=[[I.contextHash,n]]}addChild(e,r){e.prop(I.contextHash)!=this.hash&&(e=new E(e.type,e.children,e.positions,e.length,this.hashProp)),this.children.push(e),this.positions.push(r)}toTree(e,r=this.end){let s=this.children.length-1;return s>=0&&(r=Math.max(r,this.positions[s]+this.children[s].length+this.from)),new E(e.types[this.type],this.children,this.positions,r-this.from).balance({makeTree:(n,i,o)=>new E(X.none,n,i,o,this.hashProp)})}}var u;(function(t){t[t.Document=1]="Document",t[t.CodeBlock=2]="CodeBlock",t[t.FencedCode=3]="FencedCode",t[t.Blockquote=4]="Blockquote",t[t.HorizontalRule=5]="HorizontalRule",t[t.BulletList=6]="BulletList",t[t.OrderedList=7]="OrderedList",t[t.ListItem=8]="ListItem",t[t.ATXHeading1=9]="ATXHeading1",t[t.ATXHeading2=10]="ATXHeading2",t[t.ATXHeading3=11]="ATXHeading3",t[t.ATXHeading4=12]="ATXHeading4",t[t.ATXHeading5=13]="ATXHeading5",t[t.ATXHeading6=14]="ATXHeading6",t[t.SetextHeading1=15]="SetextHeading1",t[t.SetextHeading2=16]="SetextHeading2",t[t.HTMLBlock=17]="HTMLBlock",t[t.LinkReference=18]="LinkReference",t[t.Paragraph=19]="Paragraph",t[t.CommentBlock=20]="CommentBlock",t[t.ProcessingInstructionBlock=21]="ProcessingInstructionBlock",t[t.Escape=22]="Escape",t[t.Entity=23]="Entity",t[t.HardBreak=24]="HardBreak",t[t.Emphasis=25]="Emphasis",t[t.StrongEmphasis=26]="StrongEmphasis",t[t.Link=27]="Link",t[t.Image=28]="Image",t[t.InlineCode=29]="InlineCode",t[t.HTMLTag=30]="HTMLTag",t[t.Comment=31]="Comment",t[t.ProcessingInstruction=32]="ProcessingInstruction",t[t.URL=33]="URL",t[t.HeaderMark=34]="HeaderMark",t[t.QuoteMark=35]="QuoteMark",t[t.ListMark=36]="ListMark",t[t.LinkMark=37]="LinkMark",t[t.EmphasisMark=38]="EmphasisMark",t[t.CodeMark=39]="CodeMark",t[t.CodeText=40]="CodeText",t[t.CodeInfo=41]="CodeInfo",t[t.LinkTitle=42]="LinkTitle",t[t.LinkLabel=43]="LinkLabel"})(u||(u={}));class lt{constructor(e,r){this.start=e,this.content=r,this.marks=[],this.parsers=[]}}class ht{constructor(){this.text="",this.baseIndent=0,this.basePos=0,this.depth=0,this.markers=[],this.pos=0,this.indent=0,this.next=-1}forward(){this.basePos>this.pos&&this.forwardInner()}forwardInner(){let e=this.skipSpace(this.basePos);this.indent=this.countIndent(e,this.pos,this.indent),this.pos=e,this.next=e==this.text.length?-1:this.text.charCodeAt(e)}skipSpace(e){return N(this.text,e)}reset(e){for(this.text=e,this.baseIndent=this.basePos=this.pos=this.indent=0,this.forwardInner(),this.depth=1;this.markers.length;)this.markers.pop()}moveBase(e){this.basePos=e,this.baseIndent=this.countIndent(e,this.pos,this.indent)}moveBaseColumn(e){this.baseIndent=e,this.basePos=this.findColumn(e)}addMarker(e){this.markers.push(e)}countIndent(e,r=0,s=0){for(let n=r;n=e.stack[r.depth+1].value+r.baseIndent)return!0;if(r.indent>=r.baseIndent+4)return!1;let s=(t.type==u.OrderedList?re:te)(r,e,!1);return s>0&&(t.type!=u.BulletList||ee(r,e,!1)<0)&&r.text.charCodeAt(r.pos+s-1)==t.value}const ke={[u.Blockquote](t,e,r){return r.next!=62?!1:(r.markers.push(m(u.QuoteMark,e.lineStart+r.pos,e.lineStart+r.pos+1)),r.moveBase(r.pos+(w(r.text.charCodeAt(r.pos+1))?2:1)),t.end=e.lineStart+r.text.length,!0)},[u.ListItem](t,e,r){return r.indent-1?!1:(r.moveBaseColumn(r.baseIndent+t.value),!0)},[u.OrderedList]:ae,[u.BulletList]:ae,[u.Document](){return!0}};function w(t){return t==32||t==9||t==10||t==13}function N(t,e=0){for(;er&&w(t.charCodeAt(e-1));)e--;return e}function Le(t){if(t.next!=96&&t.next!=126)return-1;let e=t.pos+1;for(;e-1&&t.depth==e.stack.length||s<3?-1:1}function Se(t,e){for(let r=t.stack.length-1;r>=0;r--)if(t.stack[r].type==e)return!0;return!1}function te(t,e,r){return(t.next==45||t.next==43||t.next==42)&&(t.pos==t.text.length-1||w(t.text.charCodeAt(t.pos+1)))&&(!r||Se(e,u.BulletList)||t.skipSpace(t.pos+2)=48&&n<=57;){s++;if(s==t.text.length)return-1;n=t.text.charCodeAt(s)}return s==t.pos||s>t.pos+9||n!=46&&n!=41||st.pos+1||t.next!=49)?-1:s+1-t.pos}function Ce(t){if(t.next!=35)return-1;let e=t.pos+1;for(;e6?-1:r}function we(t){if(t.next!=45&&t.next!=61||t.indent>=t.baseIndent+4)return-1;let e=t.pos+1;for(;e/,Be=/\?>/,V=[[/^<(?:script|pre|style)(?:\s|>|$)/i,/<\/(?:script|pre|style)>/i],[/^\s*/,Be=/\?>/,V=[[/^<(?:script|pre|style)(?:\s|>|$)/i,/<\/(?:script|pre|style)>/i],[/^\s*"}},indentOnInput:/^\s*((<\/\w+\W)|(\{:(else|then|catch))|(\{\/(if|each|await|key)))$/,wordChars:"-._",autocomplete:fO}});function he(){return new qO(rO,[uO().support,SO().support,Se])}function N(O,e,a=O.length){if(!e)return"";let r=e.firstChild,t=r&&(r.getChild("TagName")||r.getChild("ComponentName")||r.getChild("SvelteElementName"));return t?O.sliceString(t.from,Math.min(t.to,a)):""}const Se=lO.inputHandler.of((O,e,a,r)=>{if(O.composing||O.state.readOnly||e!=a||r!=">"&&r!="/"||!rO.isActiveAt(O.state,e,-1))return!1;let{state:t}=O,s=t.changeByRange($=>{var l,h,V;let{head:n}=$,q=QO(t).resolveInner(n,-1),i;if((q.name==="TagName"||q.name==="ComponentName"||q.name==="SvelteElementName"||q.name==="StartTag")&&(q=q.parent),r===">"&&q.name==="OpenTag"){if(((h=(l=q.parent)===null||l===void 0?void 0:l.lastChild)===null||h===void 0?void 0:h.name)!="CloseTag"&&(i=N(t.doc,q.parent,n))){let Q=O.state.doc.sliceString(n,n+1)===">",S=`${Q?"":">"}`;return{range:m.cursor(n+1),changes:{from:n+(Q?1:0),insert:S}}}}else if(r==="/"&&q.name==="OpenTag"){let Q=q.parent,S=Q==null?void 0:Q.parent;if(Q.from==n-1&&((V=S.lastChild)===null||V===void 0?void 0:V.name)!="CloseTag"&&(i=N(t.doc,S,n))){let B=O.state.doc.sliceString(n,n+1)===">",Y=`/${i}${B?"":">"}`,tO=n+Y.length+(B?1:0);return{range:m.cursor(tO),changes:{from:n,insert:Y}}}}return{range:$}});return s.changes.empty?!1:(O.dispatch(s,{userEvent:"input.type",scrollIntoView:!0}),!0)});export{he as svelte,rO as svelteLanguage,Qe as svelteParser}; +import{L as aO,C as oO,E as w}from"./index.f562a38b.js";import{L as sO,i as $O,f as nO,b as qO,v as lO,h as QO,E as m,s as pO,t as o,p as wO}from"./4.cfac87d8.js";import{cssLanguage as iO,css as SO}from"./index.b1c4f1af.js";import{t as cO,j as bO,a as uO,p as PO}from"./index.3f5bb107.js";import{h as fO}from"./index.c6f70c56.js";const hO=145,VO=1,TO=146,gO=2,yO=147,xO=3,b=4,K=5,D=6,I=7,R=8,UO=9,BO=11,T=148,YO=12,_=149,y=13,c=14,mO=67,_O=110,ZO=113,dO=116,vO=118,WO={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},XO={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},Z={dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}};function AO(O){return O==45||O==46||O==58||O>=65&&O<=90||O==95||O>=97&&O<=122||O>=161}function G(O){return O==9||O==10||O==13||O==32}let d=null,v=null,W=0;function x(O,e){let a=O.pos+e;if(W==a&&v==O)return d;let r=O.peek(e);for(;G(r);)r=O.peek(++e);let t="";for(;AO(r);)t+=String.fromCharCode(r),r=O.peek(++e);return v=O,W=a,d=t?t.toLowerCase():r==MO||r==jO?void 0:null}const C=60,kO=62,F=47,MO=63,jO=33;function X(O,e){this.name=O,this.parent=e,this.hash=e?e.hash:0;for(let a=0;a-1?new X(x(r,1)||"",O):O},reduce(O,e){return e==mO&&O?O.parent:O},reuse(O,e,a,r){let t=e.type.id;return t==b||t==vO?new X(x(r,1)||"",O):O},hash(O){return O?O.hash:0},strict:!1}),KO=new w((O,e)=>{if(O.next!=C){O.next<0&&e.context&&O.acceptToken(T);return}O.advance();let a=O.next==F;a&&O.advance();let r=x(O,0);if(r===void 0)return;if(!r)return O.acceptToken(a?YO:b);let t=e.context?e.context.name:null;if(a){if(r==t)return O.acceptToken(UO);if(t&&XO[t])return O.acceptToken(T,-2);for(let s=e.context;s;s=s.parent)if(s.name==r)return;O.acceptToken(BO)}else{if(r=="script")return O.acceptToken(K);if(r=="style")return O.acceptToken(D);if(r=="textarea")return O.acceptToken(I);if(WO.hasOwnProperty(r))return O.acceptToken(R);t&&Z[t]&&Z[t][r]?O.acceptToken(T,-1):O.acceptToken(b)}},{contextual:!0});function U(O,e,a){let r=2+O.length;return new w(t=>{for(let s=0,$=0,l=0;;l++){if(t.next<0){l&&t.acceptToken(e);break}if(s==0&&t.next==C||s==1&&t.next==F||s>=2&&s$?t.acceptToken(e,-$):t.acceptToken(a,-($-2));break}else if((t.next==10||t.next==13)&&l){t.acceptToken(e,1);break}else s=$=0;t.advance()}})}const DO=U("script",hO,VO),IO=U("style",TO,gO),RO=U("textarea",yO,xO),GO=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],J=40,u=41,L=91,P=93,H=123,f=125,CO=44,FO=58,JO=35,LO=64,p=47,HO=62,zO=45,A=34,k=39,Oe=92,ee=10,M=42,j=96,z=[FO,JO,LO,p],re=new w(O=>{for(let e=0,a=0;;a++){if(O.next<0){a&&O.acceptToken(_);break}if(O.next==zO)e++;else if(O.next==HO&&e>=2){a>3&&O.acceptToken(_,-2);break}else e=0;O.advance()}});function OO(O){let e=!1,a=null,r=!1;return()=>e?r?(r=!1,!0):O.next===Oe?(r=!0,!0):((a==="double"&&O.next===A||a==="single"&&O.next===k||a==="template"&&O.next===j)&&(e=!1,a=null),!0):O.next===A?(e=!0,a="double",!0):O.next===k?(e=!0,a="single",!0):O.next===j?(e=!0,a="template",!0):!1}function eO(O){let e=!1,a=!1;return()=>e?(O.next===ee&&(e=!1),!0):a?(O.next===M&&O.peek(1)===p&&(a=!1),!0):O.next===p&&O.peek(1)===p?(e=!0,!0):O.next===p&&O.peek(1)===M?(a=!0,!0):!1}const te=new w(O=>{if(z.includes(O.next))return;const e=eO(O),a=OO(O);let r=[];const t=s=>{const $=r.lastIndexOf(s);if($!==-1)for(;r.length>$;)r.pop()};for(let s=0;;s++){if(O.next<0){s>0&&O.acceptToken(y);break}if(e()||a()){O.advance();continue}if(r.length===0&&(O.next===f||O.next===u||O.next===P)){O.acceptToken(y);break}switch(O.next){case J:r.push("(");break;case u:t("(");break;case L:r.push("[");break;case P:t("[");break;case H:r.push("{");break;case f:t("{");break}O.advance()}}),ae=new w(O=>{if(z.includes(O.peek(0)))return;const e=eO(O),a=OO(O);let r=[];const t=s=>{const $=r.lastIndexOf(s);if($!==-1)for(;r.length>$;)r.pop()};for(let s=0;;s++){if(O.next<0){s>0&&O.acceptToken(c);break}if(e()||a()){O.advance();continue}if(r.length===0&&(O.next===f||O.next===u||O.next===P||O.next===CO)){O.acceptToken(c);break}switch(O.next){case J:r.push("(");break;case u:t("(");break;case L:r.push("[");break;case P:t("[");break;case H:r.push("{");break;case f:t("{");break}if(s!==0&&r.length===0&&GO.includes(O.next)){O.acceptToken(c);break}O.advance()}}),oe=pO({"Text RawText":o.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":o.angleBracket,TagName:o.tagName,"MismatchedCloseTag/TagName":[o.tagName,o.invalid],AttributeName:o.attributeName,UnquotedAttributeValue:o.attributeValue,"DoubleQuote SingleQuote AttributeValueContent":o.attributeValue,Is:o.definitionOperator,"EntityReference CharacterReference":o.character,Comment:o.blockComment,ProcessingInst:o.processingInstruction,DoctypeDecl:o.documentMeta,"{ }":o.bracket,"[ ]":o.squareBracket,"( )":o.paren,"| , :":o.punctuation,"...":o.derefOperator,ComponentName:o.className,SvelteElementNamespace:o.namespace,SvelteElementType:o.tagName,StyleAttributeName:o.propertyName,BlockType:o.controlKeyword,BlockPrefix:o.typeOperator,"UnknownBlock/BlockType":o.invalid,UnknownBlockContent:o.invalid,"if then catch":o.controlKeyword,as:o.definitionOperator,Variable:o.variableName,Modifier:o.modifier,DirectlyInterpolatedAttributeValue:o.attributeValue,"DirectiveOn/DirectiveName":o.controlKeyword,"DirectiveOn/DirectiveTarget":o.typeName,"DirectiveUse/DirectiveName":o.controlKeyword,"DirectiveUse/DirectiveTarget":o.function(o.variableName),"DirectiveBind/DirectiveName":o.controlKeyword,"DirectiveBind/DirectiveTarget":o.variableName,"DirectiveLet/DirectiveName":o.definitionKeyword,"DirectiveLet/DirectiveTarget":o.definition(o.variableName),"DirectiveTransition/DirectiveName":o.operatorKeyword,"DirectiveTransition/DirectiveTarget":o.function(o.variableName),"DirectiveIn/DirectiveName":o.operatorKeyword,"DirectiveIn/DirectiveTarget":o.function(o.variableName),"DirectiveOut/DirectiveName":o.operatorKeyword,"DirectiveOut/DirectiveTarget":o.function(o.variableName),"DirectiveAnimate/DirectiveName":o.operatorKeyword,"DirectiveAnimate/DirectiveTarget":o.function(o.variableName),"DirectiveClass/DirectiveName":o.attributeName,"DirectiveClass/DirectiveTarget":o.variableName,"DirectiveStyle/DirectiveName":o.attributeName,"DirectiveStyle/DirectiveTarget":o.propertyName}),se={__proto__:null,"#":41,":":51,"/":59,"@":109},$e={__proto__:null,if:44,else:52,each:64,await:82,then:90,catch:94,key:102,html:110,debug:114,const:118},ne={__proto__:null,if:54,as:66,then:84,catch:86},qe={__proto__:null,on:313,bind:317,let:319,class:321,style:323,use:325,transition:327,in:329,out:331,animate:333},le={__proto__:null,svelte:243},Qe=aO.deserialize({version:14,states:"DxQVO#|OOO!ZO#|O'#ClO#[O#|O'#CzO$]O#|O'#DTO%^O#|O'#D_O&_Q'[O'#DjO&mQ&jO'#DrO&rQ&jO'#EpO&wQ&jO'#EsO&|Q&jO'#EvO'XQ&jO'#E|O'^OXO'#DqO'iOYO'#DqO'tO[O'#DqO)TO#|O'#DqOOOW'#Dq'#DqO)[O&zO'#FOO&|Q&jO'#FQO&|Q&jO'#FROOOW'#Fj'#FjOOOW'#FT'#FTQVO#|OOOOOW'#FU'#FUO!ZO#|O,59WOOOW,59W,59WO)uQ'[O'#DjO#[O#|O,59fOOOW,59f,59fO)|Q'[O'#DjOOOW'#FV'#FVO$]O#|O,59oOOOW,59o,59oO*fQ'[O'#DjOOOW'#FW'#FWO%^O#|O,59yOOOW,59y,59yO*mQ'[O'#DjO+OQ&jO,5:UO+TQ,UO,5:VO+YQ,UO,59XO+hQ,UO,59}O,nQ7[O,5:^O,uQ7[O,5;[O,|Q7[O,5;_O-TO,UO'#ExOOQO'#F|'#F|O-YQ7[O,5;bO-dQ7[O,5;hOOOX'#F^'#F^O-kOX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#f#i#k#n#qe#[yz{!O!P#f#i#k#n#qe#^yz{!O!P#f#i#k#n#qe#`yz{!O!P#f#i#k#n#qQ%{$rQ%|$sQ&O$uQ&]%vR&f%}R&b%yR&e%zR!SZR#t!Si[OPQRS^egjnr!ZR!V[R#t!Vi]OPQRS^egjnr!ZR!Y]R#t!Yi^OPQRS^egjnr!ZX}Xab![Q!]^R#t!Zi_OPQRS^egjnr!ZQeOR!ceQgPQjQT!dgjQnRR!jnQrSQ!Z^T!nr!ZQ%e$`R&Y%eQ#fyQ#izQ#k{Q#n!OQ#q!PZ$v#f#i#k#n#qQ$q#aQ$t#cT%u$q$tQ&`%yR&l&`Q&d%zR&n&dQ!RZR#r!RQ!U[R#u!UQ!X]R#w!XQ!_`R#z!_SdOeWfPQgjSmRnXqS^r!Ze#eyz{!O!P#f#i#k#n#qe#ayz{!O!P#f#i#k#n#qS&_%y&`T&c%z&dQ!OXQ!aaQ!bbR#y![",nodeNames:"⚠ StartCloseTag StartCloseTag StartCloseTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteCloseTag LongExpression ShortExpression Document IfBlock IfBlockOpen { BlockPrefix BlockPrefix BlockType BlockType } ElseBlock BlockPrefix BlockType if IfBlockClose BlockPrefix EachBlock EachBlockOpen BlockType as ( ) , Variable EachBlockClose AwaitBlock AwaitBlockOpen BlockType then catch ThenBlock BlockType CatchBlock BlockType AwaitBlockClose KeyBlock KeyBlockOpen BlockType KeyBlockClose RawHTMLBlock BlockPrefix BlockType DebugBlock BlockType ConstBlock BlockType Interpolation UnknownBlock UnknownBlockContent Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName DirectlyInterpolatedAttribute DirectlyInterpolatedAttributeValue SpreadInterpolatedAttribute ... Directive DirectiveOn DirectiveName AttributeName DirectiveTarget DirectiveBind DirectiveName DirectiveLet DirectiveName DirectiveClass DirectiveName DirectiveStyle DirectiveName DirectiveUse DirectiveName DirectiveTransition DirectiveName DirectiveIn DirectiveName DirectiveOut DirectiveName DirectiveAnimate DirectiveName | Modifier Is AttributeValue DoubleQuote AttributeValueContent SingleQuote AttributeValueContent UnquotedAttributeValue StyleAttribute StyleAttributeName Attribute EndTag ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag ComponentName SvelteElementName SvelteElementNamespace SvelteElementType CloseTag SelfClosingTag SelfClosingEndTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:172,context:NO,nodeProps:[["closedBy",-10,1,2,3,5,6,7,8,9,10,11,"EndTag",4,"EndTag SelfClosingEndTag",17,"IfBlockClose",18,"}",31,"EachBlockClose",34,"(",40,"AwaitBlockClose",48,"AwaitBlockOpen",50,"KeyBlockClose",-4,68,112,115,118,"CloseTag",101,'"',103,"'"],["group",-10,12,60,64,65,66,67,126,127,128,129,"Entity",-4,16,30,39,49,"Block Entity",-4,17,31,40,50,"BlockOpen",-3,24,44,46,"BlockInline",-4,28,38,48,52,"BlockClose",-4,53,56,58,61,"BlockInline Entity",63,"Entity TextContent",-3,110,113,116,"TextContent Entity"],["openedBy",23,"{",28,"IfBlockOpen",35,")",38,"EachBlockOpen",52,"KeyBlockOpen",101,'"',103,"'",109,"StartTag StartCloseTag",-4,111,114,117,123,"OpenTag",125,"StartTag"]],propSources:[oe],skippedNodes:[0],repeatNodeCount:13,tokenData:"&8h$IRR!dOX%aXY/TYZ/TZ[%a[]1{]^/T^p%apq/Tqr2yrsEastF_tuHxuv2yvw!)[wx#,nxy#-lyz#0Vz|2y|}#2p}!O#5Z!O!P#Kk!P!Q$%S!Q![2y![!]$'{!]!^2y!^!_$)u!_!`%'{!`!a%({!a!b2y!b!cF_!c!}%){!}#R2y#R#S%AU#S#T&%m#T#o&'m#o#p&1P#p#q&1d#q#r&3[#r#s2y#s$f%a$f$g2y$g%WHx%W%o%AU%o%pHx%p&a%AU&a&bHx&b1p%AU1p4UHx4U4d%AU4d4eHx4e$IS%AU$IS$I`Hx$I`$Ib%AU$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5bvw7uwx(wx}5b}!O%Ev!O!P%JZ!P!Q'V!Q![%Ny![!]'V!]!^5b!^!_:Q!_!a(w!a!c5b!c!}&,a!}#R5b#R#S%Ny#S#T>y#T#o&,a#o#p*}#p#q'V#q#rBu#r#s5b#s$f'V$f$g5b$g$}K|$}%O%Ny%O%WK|%W%o%Ny%o%pK|%p&a%Ny&a&bK|&b1p%Ny1p4U%Ny4U4d%Ny4d4eK|4e$IS%Ny$IS$I`K|$I`$Ib%Ny$Ib$JeK|$Je$Jg%Ny$Jg$KhK|$Kh%#t%Ny%#t&/xK|&/x&Et%Ny&Et&FVK|&FV;'S%Ny;'S;:j&%g;:j;=`!&h<%l?&rK|?&r?Ah%Ny?Ah?BY!&n?BY?Mn%Ny?MnO!&n$3a&1WSb$3P!``O#q)q#r;'S)q;'S;=`*S<%lO)q$3a&1sg#TW!aP#]7[$mMh$o!LQ!``OX'VXZ(wZ['V[^(w^p'Vpq(wqr'Vrs(wsv'Vvw*}wx(wx!^'V!^!_)q!_!a(w!a#S'V#S#T(w#T#o'V#o#p*}#p#q'V#q#r-b#r;'S'V;'S;=`.}<%lO'V$FX&3oog#f!p&j#U,U!aP#]7[$mMh$o!LQ!oWOX-bXZ*YZ[-b[^*Y^p-bpq*YqrBurs*YsvBuvwse[O]||-1},{term:21,get:O=>$e[O]||-1},{term:153,get:O=>ne[O]||-1},{term:77,get:O=>qe[O]||-1},{term:69,get:O=>le[O]||-1}],tokenPrec:1571});function pe(O,e){let a=Object.create(null);for(let r of O.firstChild.getChildren("Attribute")){let t=r.getChild("AttributeName"),s=r.getChild("AttributeValue")||r.getChild("UnquotedAttributeValue");t&&(a[e.read(t.from,t.to)]=s?s.name=="AttributeValue"?e.read(s.from+1,s.to-1):e.read(s.from,s.to):"")}return a}function g(O,e,a){let r;for(let t of a)if(!t.attrs||t.attrs(r||(r=pe(O.node.parent,e))))return{parser:t.parser};return null}const E=PO.configure({top:"SingleExpression"});function we(O){let e=[],a=[],r=[];for(let t of O){let s=t.tag=="script"?e:t.tag=="style"?a:t.tag=="textarea"?r:null;if(!s)throw new RangeError("Only script, style, and textarea tags can host nested parsers");s.push(t)}return wO((t,s)=>{let $=t.type.id;return $===y?{parser:E}:$===c?{parser:E}:$===_O?g(t,s,e):$===ZO?g(t,s,a):$===dO?g(t,s,r):null})}const ie=[{tag:"script",attrs:O=>O.type==="text/typescript"||O.lang==="ts",parser:cO.parser},{tag:"script",attrs(O){return!O.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(O.type)},parser:bO.parser},{tag:"style",attrs(O){return(!O.lang||O.lang==="css"||O.lang==="scss")&&(!O.type||/^(text\/)?(x-)?(stylesheet|css|scss)$/i.test(O.type))},parser:iO.parser}],rO=sO.define({parser:Qe.configure({wrap:we(ie),props:[$O.add({Element:O=>{let e=/^(\s*)(<\/)?/.exec(O.textAfter);return O.node.to<=O.pos+e[0].length?O.continue():O.lineIndent(O.node.from)+(e[2]?0:O.unit)},Block:O=>{const e=O.node,a=O.textAfter.trim();if(a.startsWith("{/")){const t=e.name;return t==="IfBlock"&&a.startsWith("{/if")||t==="EachBlock"&&a.startsWith("{/each")||t==="AwaitBlock"&&a.startsWith("{/await")||t==="KeyBlock"&&a.startsWith("{/key")?O.lineIndent(O.node.from):null}if(e.name==="IfBlock"||e.name==="EachBlock"){if(a.startsWith("{:else"))return O.lineIndent(e.from)}else if(e.name==="AwaitBlock"&&(a.startsWith("{:then")||a.startsWith("{:catch")))return O.lineIndent(e.from);let r=/^(\s*)(<\/)?/.exec(O.textAfter);return O.node.to<=O.pos+r[0].length?O.continue():O.lineIndent(O.node.from)+(r[2]?0:O.unit)},"BlockOpen BlockClose BlockInline":O=>O.column(O.node.from)+O.unit,"OpenTag CloseTag SelfClosingTag":O=>O.column(O.node.from)+O.unit,Document:O=>{if(O.pos+/\s*/.exec(O.textAfter)[0].length{const e=`${O.name}Open`,a=`${O.name}Close`,r=O.firstChild,t=O.lastChild;return!r||r.name!==e?null:{from:r.to,to:(t==null?void 0:t.name)===a?t.from:O.to}},Element:O=>{let e=O.firstChild,a=O.lastChild;return!e||e.name!="OpenTag"?null:{from:e.to,to:a.name==="CloseTag"?a.from:O.to}}})]}),languageData:{commentTokens:{block:{open:""}},indentOnInput:/^\s*((<\/\w+\W)|(\{:(else|then|catch))|(\{\/(if|each|await|key)))$/,wordChars:"-._",autocomplete:fO}});function he(){return new qO(rO,[uO().support,SO().support,Se])}function N(O,e,a=O.length){if(!e)return"";let r=e.firstChild,t=r&&(r.getChild("TagName")||r.getChild("ComponentName")||r.getChild("SvelteElementName"));return t?O.sliceString(t.from,Math.min(t.to,a)):""}const Se=lO.inputHandler.of((O,e,a,r)=>{if(O.composing||O.state.readOnly||e!=a||r!=">"&&r!="/"||!rO.isActiveAt(O.state,e,-1))return!1;let{state:t}=O,s=t.changeByRange($=>{var l,h,V;let{head:n}=$,q=QO(t).resolveInner(n,-1),i;if((q.name==="TagName"||q.name==="ComponentName"||q.name==="SvelteElementName"||q.name==="StartTag")&&(q=q.parent),r===">"&&q.name==="OpenTag"){if(((h=(l=q.parent)===null||l===void 0?void 0:l.lastChild)===null||h===void 0?void 0:h.name)!="CloseTag"&&(i=N(t.doc,q.parent,n))){let Q=O.state.doc.sliceString(n,n+1)===">",S=`${Q?"":">"}`;return{range:m.cursor(n+1),changes:{from:n+(Q?1:0),insert:S}}}}else if(r==="/"&&q.name==="OpenTag"){let Q=q.parent,S=Q==null?void 0:Q.parent;if(Q.from==n-1&&((V=S.lastChild)===null||V===void 0?void 0:V.name)!="CloseTag"&&(i=N(t.doc,S,n))){let B=O.state.doc.sliceString(n,n+1)===">",Y=`/${i}${B?"":">"}`,tO=n+Y.length+(B?1:0);return{range:m.cursor(tO),changes:{from:n,insert:Y}}}}return{range:$}});return s.changes.empty?!1:(O.dispatch(s,{userEvent:"input.type",scrollIntoView:!0}),!0)});export{he as svelte,rO as svelteLanguage,Qe as svelteParser}; diff --git a/docs/_app/immutable/chunks/index.0c21269a.js b/docs/_app/immutable/chunks/index.a242dc73.js similarity index 94% rename from docs/_app/immutable/chunks/index.0c21269a.js rename to docs/_app/immutable/chunks/index.a242dc73.js index 4fd32b7..086b6fb 100644 --- a/docs/_app/immutable/chunks/index.0c21269a.js +++ b/docs/_app/immutable/chunks/index.a242dc73.js @@ -1 +1 @@ -import{L as s}from"./index.e545d957.js";import{s as n,t as r,L as o,i as P,c as a,f as Q,a as i,b as c}from"./4.ae3ce863.js";const g=n({String:r.string,Number:r.number,"True False":r.bool,PropertyName:r.propertyName,Null:r.null,",":r.separator,"[ ]":r.squareBracket,"{ }":r.brace}),p=s.deserialize({version:14,states:"$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#CjOOQO'#Cp'#CpQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CrOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59U,59UO!iQPO,59UOVQPO,59QOqQPO'#CkO!nQPO,59^OOQO1G.k1G.kOVQPO'#ClO!vQPO,59aOOQO1G.p1G.pOOQO1G.l1G.lOOQO,59V,59VOOQO-E6i-E6iOOQO,59W,59WOOQO-E6j-E6j",stateData:"#O~OcOS~OQSORSOSSOTSOWQO]ROePO~OVXOeUO~O[[O~PVOg^O~Oh_OVfX~OVaO~OhbO[iX~O[dO~Oh_OVfa~OhbO[ia~O",goto:"!kjPPPPPPkPPkqwPPk{!RPPP!XP!ePP!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",nodeNames:"⚠ JsonText True False Null Number String } { Object Property PropertyName ] [ Array",maxTerm:25,nodeProps:[["openedBy",7,"{",12,"["],["closedBy",8,"}",13,"]"]],propSources:[g],skippedNodes:[0],repeatNodeCount:2,tokenData:"(|~RaXY!WYZ!W]^!Wpq!Wrs!]|}$u}!O$z!Q!R%T!R![&c![!]&t!}#O&y#P#Q'O#Y#Z'T#b#c'r#h#i(Z#o#p(r#q#r(w~!]Oc~~!`Wpq!]qr!]rs!xs#O!]#O#P!}#P;'S!];'S;=`$o<%lO!]~!}Oe~~#QXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#m~#pR!Q![#y!c!i#y#T#Z#y~#|R!Q![$V!c!i$V#T#Z$V~$YR!Q![$c!c!i$c#T#Z$c~$fR!Q![!]!c!i!]#T#Z!]~$rP;=`<%l!]~$zOh~~$}Q!Q!R%T!R![&c~%YRT~!O!P%c!g!h%w#X#Y%w~%fP!Q![%i~%nRT~!Q![%i!g!h%w#X#Y%w~%zR{|&T}!O&T!Q![&Z~&WP!Q![&Z~&`PT~!Q![&Z~&hST~!O!P%c!Q![&c!g!h%w#X#Y%w~&yOg~~'OO]~~'TO[~~'WP#T#U'Z~'^P#`#a'a~'dP#g#h'g~'jP#X#Y'm~'rOR~~'uP#i#j'x~'{P#`#a(O~(RP#`#a(U~(ZOS~~(^P#f#g(a~(dP#i#j(g~(jP#X#Y(m~(rOQ~~(wOW~~(|OV~",tokenizers:[0],topRules:{JsonText:[0,1]},tokenPrec:0}),d=()=>t=>{try{JSON.parse(t.state.doc.toString())}catch(O){if(!(O instanceof SyntaxError))throw O;const e=u(O,t.state.doc);return[{from:e,message:O.message,severity:"error",to:e}]}return[]};function u(t,O){let e;return(e=t.message.match(/at position (\d+)/))?Math.min(+e[1],O.length):(e=t.message.match(/at line (\d+) column (\d+)/))?Math.min(O.line(+e[1]).from+ +e[2]-1,O.length):0}const l=o.define({name:"json",parser:p.configure({props:[P.add({Object:a({except:/^\s*\}/}),Array:a({except:/^\s*\]/})}),Q.add({"Object Array":i})]}),languageData:{closeBrackets:{brackets:["[","{",'"']},indentOnInput:/^\s*[\}\]]$/}});function h(){return new c(l)}export{h as json,l as jsonLanguage,d as jsonParseLinter}; +import{L as s}from"./index.f562a38b.js";import{s as n,t as r,L as o,i as P,c as a,f as Q,a as i,b as c}from"./4.cfac87d8.js";const g=n({String:r.string,Number:r.number,"True False":r.bool,PropertyName:r.propertyName,Null:r.null,",":r.separator,"[ ]":r.squareBracket,"{ }":r.brace}),p=s.deserialize({version:14,states:"$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#CjOOQO'#Cp'#CpQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CrOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59U,59UO!iQPO,59UOVQPO,59QOqQPO'#CkO!nQPO,59^OOQO1G.k1G.kOVQPO'#ClO!vQPO,59aOOQO1G.p1G.pOOQO1G.l1G.lOOQO,59V,59VOOQO-E6i-E6iOOQO,59W,59WOOQO-E6j-E6j",stateData:"#O~OcOS~OQSORSOSSOTSOWQO]ROePO~OVXOeUO~O[[O~PVOg^O~Oh_OVfX~OVaO~OhbO[iX~O[dO~Oh_OVfa~OhbO[ia~O",goto:"!kjPPPPPPkPPkqwPPk{!RPPP!XP!ePP!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",nodeNames:"⚠ JsonText True False Null Number String } { Object Property PropertyName ] [ Array",maxTerm:25,nodeProps:[["openedBy",7,"{",12,"["],["closedBy",8,"}",13,"]"]],propSources:[g],skippedNodes:[0],repeatNodeCount:2,tokenData:"(|~RaXY!WYZ!W]^!Wpq!Wrs!]|}$u}!O$z!Q!R%T!R![&c![!]&t!}#O&y#P#Q'O#Y#Z'T#b#c'r#h#i(Z#o#p(r#q#r(w~!]Oc~~!`Wpq!]qr!]rs!xs#O!]#O#P!}#P;'S!];'S;=`$o<%lO!]~!}Oe~~#QXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#m~#pR!Q![#y!c!i#y#T#Z#y~#|R!Q![$V!c!i$V#T#Z$V~$YR!Q![$c!c!i$c#T#Z$c~$fR!Q![!]!c!i!]#T#Z!]~$rP;=`<%l!]~$zOh~~$}Q!Q!R%T!R![&c~%YRT~!O!P%c!g!h%w#X#Y%w~%fP!Q![%i~%nRT~!Q![%i!g!h%w#X#Y%w~%zR{|&T}!O&T!Q![&Z~&WP!Q![&Z~&`PT~!Q![&Z~&hST~!O!P%c!Q![&c!g!h%w#X#Y%w~&yOg~~'OO]~~'TO[~~'WP#T#U'Z~'^P#`#a'a~'dP#g#h'g~'jP#X#Y'm~'rOR~~'uP#i#j'x~'{P#`#a(O~(RP#`#a(U~(ZOS~~(^P#f#g(a~(dP#i#j(g~(jP#X#Y(m~(rOQ~~(wOW~~(|OV~",tokenizers:[0],topRules:{JsonText:[0,1]},tokenPrec:0}),d=()=>t=>{try{JSON.parse(t.state.doc.toString())}catch(O){if(!(O instanceof SyntaxError))throw O;const e=u(O,t.state.doc);return[{from:e,message:O.message,severity:"error",to:e}]}return[]};function u(t,O){let e;return(e=t.message.match(/at position (\d+)/))?Math.min(+e[1],O.length):(e=t.message.match(/at line (\d+) column (\d+)/))?Math.min(O.line(+e[1]).from+ +e[2]-1,O.length):0}const l=o.define({name:"json",parser:p.configure({props:[P.add({Object:a({except:/^\s*\}/}),Array:a({except:/^\s*\]/})}),Q.add({"Object Array":i})]}),languageData:{closeBrackets:{brackets:["[","{",'"']},indentOnInput:/^\s*[\}\]]$/}});function h(){return new c(l)}export{h as json,l as jsonLanguage,d as jsonParseLinter}; diff --git a/docs/_app/immutable/chunks/index.a4c1e395.js b/docs/_app/immutable/chunks/index.a4c1e395.js new file mode 100644 index 0000000..3659f58 --- /dev/null +++ b/docs/_app/immutable/chunks/index.a4c1e395.js @@ -0,0 +1 @@ +const e={days:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت","الأحد"],daysShort:["أحد","اثنين","ثلاثاء","أربعاء","خميس","جمعة","سبت","أحد"],daysMin:["أح","اث","ثل","أر","خم","جم","سب","أح"],months:["جانفي","فيفري","مارس","أفريل","ماي","جوان","جويلية","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],monthsShort:["جان","فيف","مار","أفر","ماي","جوا","جوي","أوت","سبت","أكت","نوف","ديس"],meridiem:["صباح","مساء"],suffix:["","","",""],todayBtn:"اليوم",clearBtn:"مسح",okBtn:"تأكيد",cancelBtn:"إلغاء",timeView:"عرض الوقت",backToDate:"العودة إلى عرض التقويم"},a={days:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت","الأحد"],daysShort:["أحد","اثنين","ثلاثاء","أربعاء","خميس","جمعة","سبت","أحد"],daysMin:["أح","اث","ثل","أر","خم","جم","سب","أح"],months:["يناير","فبراير","مارس","أبريل","ماي","يونيو","يوليوز","غشت","شتنبر","أكتوبر","نونبر","دجنبر"],monthsShort:["ينا","فبر","مار","أبر","ماي","يون","يول","غش","شت","أكت","نون","دج"],meridiem:["صباح","مساء"],suffix:["","","",""],todayBtn:"اليوم",clearBtn:"مسح",okBtn:"تأكيد",cancelBtn:"إلغاء",timeView:"عرض الوقت",backToDate:"العودة إلى عرض التقويم"},t={days:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت","الأحد"],daysShort:["أحد","اثنين","ثلاثاء","أربعاء","خميس","جمعة","سبت","أحد"],daysMin:["أح","اث","ثل","أر","خم","جم","سب","أح"],months:["يناير","فبراير","مارس","إبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],monthsShort:["ينا","فبر","مار","إبر","ماي","يون","يول","أغس","سبت","أكت","نوف","ديس"],meridiem:["صباح","مساء"],suffix:["","","",""],todayBtn:"اليوم",clearBtn:"مسح",okBtn:"تأكيد",cancelBtn:"إلغاء",timeView:"عرض الوقت",backToDate:"العودة إلى عرض التقويم"},n={days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sun"],daysMin:["Ne","Po","Út","St","Čt","Pá","So","Ne"],months:["Leden","Únor","Březen","Duben","Květen","Červen","Červenec","Srpen","Září","Říjen","Listopad","Prosinec"],monthsShort:["Led","Úno","Bře","Dub","Kvě","Čer","Čer","Srp","Zář","Říj","List","Pro"],meridiem:["am","pm"],suffix:["st","nd","rd","th"],todayBtn:"Dnes",clearBtn:"Smazat",okBtn:"Ok",cancelBtn:"Zrušit",timeView:"Zobrazit hodiny",backToDate:"Zpátky na kalendář"},r={days:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag","Sonntag"],daysShort:["Son","Mon","Die","Mie","Don","Fre","Sam","Son"],daysMin:["So","Mo","Di","Mi","Do","Fr","Sa","So"],months:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],monthsShort:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],meridiem:["am","pm"],suffix:["","","",""],todayBtn:"Heute",clearBtn:"Zurücksetzen",okBtn:"Ok",cancelBtn:"Abbrechen",timeView:"Zeitansicht anzeigen",backToDate:"Zurück zur Kalenderansicht"},o={days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sun"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa","Su"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],meridiem:["am","pm"],suffix:["st","nd","rd","th"],todayBtn:"Today",clearBtn:"Clear",okBtn:"Ok",cancelBtn:"Cancel",timeView:"Show time view",backToDate:"Back to calendar view"},i={days:["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado","Domingo"],daysShort:["Dom","Lun","Mar","Mié","Jue","Vie","Sáb","Dom"],daysMin:["Do","Lu","Ma","Mi","Ju","Vi","Sa","Do"],months:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],monthsShort:["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],meridiem:["am","pm"],suffix:["o","","",""],todayBtn:"Hoy",clearBtn:"Borrar",okBtn:"Aceptar",cancelBtn:"Cancelar",timeView:"Mostrar hora",backToDate:"Regresar al calendario"},p={days:["یکشنبه","دوشنبه","سه‌شنبه‌","چهارشنبه","پنج‌شنبه","جمعه","شنبه","یکشنبه"],daysShort:["یکش","دوش","سه‌ش","چهار","پنج","جمع","شنب","یکش"],daysMin:["یک","دو","سه","چا","پن","جم","شن","یک"],months:["ژانویه","فوریه","مارس","آپریل","می","ژوئن","جولای","آگوست","سپتامبر","اکتبر","نوامبر","دسامبر"],monthsShort:["ژان","فور","مار","آپر","می","ژو","جول","آگو","سپت","اکت","نوا","دسا"],meridiem:["ق.ض","ب.ض"],suffix:["st","nd","rd","th"],todayBtn:"امروز",clearBtn:"پاک‌کردن",okBtn:"تایید",cancelBtn:"لغو",timeView:"نمایش بخش زمان",backToDate:"بازگشت به بخش تقویم"},s={days:["Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi","Dimanche"],daysShort:["Dim","Lun","Mar","Mer","Jeu","Ven","Sam","Dim"],daysMin:["Di","Lu","Ma","Me","Je","Ve","Sa","Di"],months:["Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre"],monthsShort:["Jan","Fév","Mar","Avr","Mai","Juin","Juil","Aoû","Sep","Oct","Nov","Déc"],meridiem:["AM","PM"],suffix:["er","ème","ème","ème"],todayBtn:"Aujourd'hui",clearBtn:"Effacer",okBtn:"OK",cancelBtn:"Annuler",timeView:"Afficher l'heure",backToDate:"Retour au calendrier"},d={days:["Nedjelja","Ponedjeljak","Utorak","Srijeda","Četvrtak","Petak","Subota","Nedjelja"],daysShort:["Ned","Pon","Uto","Sri","Čet","Pet","Sub","Ned"],daysMin:["Ne","Po","Ut","Sr","Čt","Pt","Su","Ne"],months:["Siječanj","Veljača","Ožujak","Travanj","Svibanj","Lipanj","Srpanj","Kolovoz","Rujan","Listopad","Studeni","Prosinac"],monthsShort:["Sij","Vel","Ožu","Tra","Svi","Lip","Srp","Kol","Ruj","Lis","Stu","Pro"],meridiem:["am","pm"],suffix:["","","",""],todayBtn:"Danas",clearBtn:"Očisti",okBtn:"OK",cancelBtn:"Prekid",timeView:"Prikaži vrijeme",backToDate:"Nazad na kalendar"},m={days:["Vasárnap","Hétfő","Kedd","Szerda","Csütörtök","Péntek","Szombat","Vasárnap"],daysShort:["V","H","K","Sze","Cs","P","Szo","V"],daysMin:["V","H","K","Sze","Cs","P","Szo","V"],months:["Január","Február","Március","Április","Május","Június","Július","Augusztus","Szeptember","Október","November","December"],monthsShort:["Jan","Feb","Már","Ápr","Máj","Jún","Júl","Aug","Szept","Okt","Nov","Dec"],meridiem:["de","du"],suffix:[".",".",".","."],todayBtn:"Ma",clearBtn:"Törlés",okBtn:"OK",cancelBtn:"Áthúz",timeView:"Óra nézet",backToDate:"Vissza a naptárhoz"},u={days:["Minggu","Senin","Selasa","Rabu","Kamis","Jumat","Sabtu","Minggu"],daysShort:["Min","Sen","Sel","Rab","Kam","Jum","Sab","Min"],daysMin:["Mn","Sn","Sl","Rb","Km","Jm","Sb","Mn"],months:["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"],monthsShort:["Jan","Feb","Mar","Apr","Mei","Jun","Jul","Agu","Sep","Okt","Nov","Des"],meridiem:["am","pm"],suffix:["st","nd","rd","th"],todayBtn:"Hari Ini",clearBtn:"Hapus",okBtn:"Mengkonfirmasi",cancelBtn:"Batal",timeView:"Tampilkan tampilan waktu",backToDate:"Kembali ke tampilan kalender"},c={days:["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日","日曜日"],daysShort:["日曜","月曜","火曜","水曜","木曜","金曜","土曜","日曜"],daysMin:["日","月","火","水","木","金","土","日"],months:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthsShort:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],meridiem:["am","pm"],suffix:["","","",""],todayBtn:"今日",clearBtn:"クリア",okBtn:"確認する",cancelBtn:"キャンセル",timeView:"タイムを表示",backToDate:"カレンダーに戻る"},S={days:["Zondag","Maandag","Dinsdag","Woensdag","Donderdag","Vrijdag","Zaterdag","Zondag"],daysShort:["Zon","Maa","Din","Woe","Don","Vri","Zat","Zon"],daysMin:["Zo","Ma","Di","Wo","Do","Vr","Za","Zo"],months:["Januari","Februari","Maart","April","Mei","Juni","Juli","Augustus","September","Oktober","November","December"],monthsShort:["Jan","Feb","Mrt","Apr","Mei","Jun","Jul","Aug","Sep","Okt","Nov","Dec"],meridiem:["AM","PM"],suffix:["e","e","e","e"],todayBtn:"Vandaag",clearBtn:"Wissen",okBtn:"OK",cancelBtn:"Annuleren",timeView:"Uurweergave",backToDate:"Terug naar de kalender"},l={days:["Nedeľa","Pondelok","Utorok","Streda","Štvrtok","Piatok","Sobota","Nedeľa"],daysShort:["Ned","Pon","Uto","Str","Štv","Pia","Sob","Ned"],daysMin:["Ne","Po","Ut","St","Št","Pi","So","Ne"],months:["Január","Február","Marec","Apríl","Máj","Jún","Júl","August","September","Október","November","December"],monthsShort:["Jan","Feb","Mar","Apr","Máj","Jún","Júl","Aug","Sep","Okt","Nov","Dec"],meridiem:["am","pm"],suffix:["st","nd","rd","th"],todayBtn:"Dnes",clearBtn:"Zmazať",okBtn:"Ok",cancelBtn:"Zrušiť",timeView:"Zobraziť hodiny",backToDate:"Späť na kalendár"},b={days:["일요일","월요일","화요일","수요일","목요일","금요일","토요일","일요일"],daysShort:["일","월","화","수","목","금","토","일"],daysMin:["일","월","화","수","목","금","토","일"],months:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],monthsShort:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],meridiem:["오전","오후"],suffix:["","","",""],todayBtn:"오늘",clearBtn:"지우기",okBtn:"확인하다",cancelBtn:"취소",timeView:"시계보기",backToDate:"달력보기"},M={days:["Domingo","Segunda-feira","Terça-feira","Quarta-feira","Quinta-feira","Sexta-feira","Sábado","Domingo"],daysShort:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb","Dom"],daysMin:["Do","Se","Te","Qu","Qu","Se","Sá","Do"],months:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],monthsShort:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],meridiem:["am","pm"],suffix:["º","º","º","º"],todayBtn:"Hoje",clearBtn:"Limpar",okBtn:"OK",cancelBtn:"Cancelar",timeView:"Mostrar hora",backToDate:"Voltar para o calendário"},y={days:["Domenica","Lunedì","Martedì","Mercoledì","Giovedì","Venerdì","Sabato","Domenica"],daysShort:["Dom","Lun","Mar","Mer","Gio","Ven","Sab","Dom"],daysMin:["Do","Lu","Ma","Me","Gi","Ve","Sa","Do"],months:["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"],monthsShort:["Gen","Feb","Mar","Apr","Mag","Giu","Lug","Ago","Set","Ott","Nov","Dic"],meridiem:["am","pm"],suffix:["º","º","º","º"],todayBtn:"Oggi",clearBtn:"Cancella",okBtn:"Ok",cancelBtn:"Annulla",timeView:"Mostra orario",backToDate:"Torna alla vista calendario"},h={days:["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi","Pazar"],daysShort:["Paz","Pzt","Sal","Çar","Per","Cum","Cmt","Paz"],daysMin:["Pa","Pz","Sa","Ça","Pe","Cu","Cm","Pa"],months:["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"],monthsShort:["Oca","Şub","Mar","Nis","May","Haz","Tem","Ağu","Eyl","Eki","Kas","Ara"],meridiem:["öö","ös"],suffix:[".",".",".","."],todayBtn:"Bugün",clearBtn:"Temizle",okBtn:"Ok",cancelBtn:"İptal",timeView:"Zaman görünümünü göster",backToDate:"Takvim görünümüne geri dön"},k={days:["Söndag","Måndag","Tisdag","Onsdag","Torsdag","Fredag","Lördag","Söndag"],daysShort:["Sön","Mån","Tis","Ons","Tor","Fre","Lör","Sön"],daysMin:["Sö","Må","Ti","On","To","Fr","Lö","Sö"],months:["Januari","Februari","Mars","April","Maj","Juni","Juli","Augusti","September","Oktober","November","December"],monthsShort:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Aug","Sep","Okt","Nov","Dec"],meridiem:["am","pm"],suffix:[".",".",".","."],todayBtn:"Idag",clearBtn:"Rensa",okBtn:"Ok",cancelBtn:"Avbryt",timeView:"Visa tid",backToDate:"Tillbaka till kalender"},B={days:["Søndag","Mandag","Tirsdag","Onsdag","Torsdag","Fredag","Lørdag","Søndag"],daysShort:["Søn","Man","Tir","Ons","Tor","Fre","Lør","Søn"],daysMin:["Sø","Ma","Ti","On","To","Fr","Lø","Sø"],months:["Januar","Februar","Marts","April","Maj","Juni","Juli","August","September","Oktober","November","December"],monthsShort:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Aug","Sep","Okt","Nov","Dec"],meridiem:["am","pm"],suffix:[".",".",".","."],todayBtn:"I dag",clearBtn:"Slet",okBtn:"Ok",cancelBtn:"Annuller",timeView:"Vis tid",backToDate:"Tilbage til kalenderen"},D={days:["อาทิตย์","จันทร์","อังคาร","พุธ","พฤหัสบดี","ศุกร์","เสาร์","อาทิตย์"],daysShort:["อา.","จ.","อ.","พ.","พฤ.","ศ.","ส.","อา."],daysMin:["อา.","จ.","อ.","พ.","พฤ.","ศ.","ส.","อา."],months:["มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","พฤษภาคม","มิถุนายน","กรกฎาคม","สิงหาคม","กันยายน","ตุลาคม","พฤศจิกายน","ธันวาคม"],monthsShort:["ม.ค.","ก.พ.","มี.ค.","เม.ย.","พ.ค.","มิ.ย.","ก.ค.","ส.ค.","ก.ย.","ต.ค.","พ.ย.","ธ.ค."],meridiem:["am","pm"],suffix:["","","",""],todayBtn:"วันนี้",clearBtn:"ล้างข้อมูล",okBtn:"ยืนยัน",cancelBtn:"ปิด",timeView:"แสดงหน้าเลือกเวลา",backToDate:"กลับไปหน้าปฏิทิน"},g={days:["星期日","星期一","星期二","星期三","星期四","星期五","星期六","星期日"],daysShort:["周日","周一","周二","周三","周四","周五","周六","周日"],daysMin:["日","一","二","三","四","五","六","日"],months:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthsShort:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],meridiem:["上午","下午"],suffix:["","","",""],todayBtn:"今天",clearBtn:"清空",timeView:"显示时间选择",backToDate:"回退到日历选项卡"},J={ar_DZ:e,ar_MR:a,ar_YE:t,cz:n,da:B,de:r,en:o,es:i,fr:s,hr:d,hu:m,id:u,it:y,jp:c,ko:b,nl:S,pt_BR:M,sk:l,sv:k,th:D,tr:h,zh_CN:g},f=Object.freeze(Object.defineProperty({__proto__:null,ar_DZ:e,ar_MR:a,ar_YE:t,cz:n,da:B,de:r,default:J,en:o,es:i,fa:p,fr:s,hr:d,hu:m,id:u,it:y,jp:c,ko:b,nl:S,pt_BR:M,sk:l,sv:k,th:D,tr:h,zh_CN:g},Symbol.toStringTag,{value:"Module"}));export{o as e,f as i}; diff --git a/docs/_app/immutable/chunks/index.ae80b773.js b/docs/_app/immutable/chunks/index.ae80b773.js deleted file mode 100644 index 55b663d..0000000 --- a/docs/_app/immutable/chunks/index.ae80b773.js +++ /dev/null @@ -1 +0,0 @@ -const e={days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sun"],daysMin:["Ne","Po","Út","St","Čt","Pá","So","Ne"],months:["Leden","Únor","Březen","Duben","Květen","Červen","Červenec","Srpen","Září","Říjen","Listopad","Prosinec"],monthsShort:["Led","Úno","Bře","Dub","Kvě","Čer","Čer","Srp","Zář","Říj","List","Pro"],meridiem:["am","pm"],suffix:["st","nd","rd","th"],todayBtn:"Dnes",clearBtn:"Smazat",okBtn:"Ok",cancelBtn:"Zrušit",timeView:"Zobrazit hodiny",backToDate:"Zpátky na kalendář"},a={days:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag","Sonntag"],daysShort:["Son","Mon","Die","Mie","Don","Fre","Sam","Son"],daysMin:["So","Mo","Di","Mi","Do","Fr","Sa","So"],months:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],monthsShort:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],meridiem:["am","pm"],suffix:["","","",""],todayBtn:"Heute",clearBtn:"Zurücksetzen",okBtn:"Ok",cancelBtn:"Abbrechen",timeView:"Zeitansicht anzeigen",backToDate:"Zurück zur Kalenderansicht"},t={days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sun"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa","Su"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],meridiem:["am","pm"],suffix:["st","nd","rd","th"],todayBtn:"Today",clearBtn:"Clear",okBtn:"Ok",cancelBtn:"Cancel",timeView:"Show time view",backToDate:"Back to calendar view"},n={days:["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado","Domingo"],daysShort:["Dom","Lun","Mar","Mié","Jue","Vie","Sáb","Dom"],daysMin:["Do","Lu","Ma","Mi","Ju","Vi","Sa","Do"],months:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],monthsShort:["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],meridiem:["am","pm"],suffix:["o","","",""],todayBtn:"Hoy",clearBtn:"Borrar",okBtn:"Aceptar",cancelBtn:"Cancelar",timeView:"Mostrar hora",backToDate:"Regresar al calendario"},k={days:["یکشنبه","دوشنبه","سه‌شنبه‌","چهارشنبه","پنج‌شنبه","جمعه","شنبه","یکشنبه"],daysShort:["یکش","دوش","سه‌ش","چهار","پنج","جمع","شنب","یکش"],daysMin:["یک","دو","سه","چا","پن","جم","شن","یک"],months:["ژانویه","فوریه","مارس","آپریل","می","ژوئن","جولای","آگوست","سپتامبر","اکتبر","نوامبر","دسامبر"],monthsShort:["ژان","فور","مار","آپر","می","ژو","جول","آگو","سپت","اکت","نوا","دسا"],meridiem:["ق.ض","ب.ض"],suffix:["st","nd","rd","th"],todayBtn:"امروز",clearBtn:"پاک‌کردن",okBtn:"تایید",cancelBtn:"لغو",timeView:"نمایش بخش زمان",backToDate:"بازگشت به بخش تقویم"},r={days:["Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi","Dimanche"],daysShort:["Dim","Lun","Mar","Mer","Jeu","Ven","Sam","Dim"],daysMin:["Di","Lu","Ma","Me","Je","Ve","Sa","Di"],months:["Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre"],monthsShort:["Jan","Fév","Mar","Avr","Mai","Juin","Juil","Aoû","Sep","Oct","Nov","Déc"],meridiem:["AM","PM"],suffix:["er","ème","ème","ème"],todayBtn:"Aujourd'hui",clearBtn:"Effacer",okBtn:"OK",cancelBtn:"Annuler",timeView:"Afficher l'heure",backToDate:"Retour au calendrier"},o={days:["Nedjelja","Ponedjeljak","Utorak","Srijeda","Četvrtak","Petak","Subota","Nedjelja"],daysShort:["Ned","Pon","Uto","Sri","Čet","Pet","Sub","Ned"],daysMin:["Ne","Po","Ut","Sr","Čt","Pt","Su","Ne"],months:["Siječanj","Veljača","Ožujak","Travanj","Svibanj","Lipanj","Srpanj","Kolovoz","Rujan","Listopad","Studeni","Prosinac"],monthsShort:["Sij","Vel","Ožu","Tra","Svi","Lip","Srp","Kol","Ruj","Lis","Stu","Pro"],meridiem:["am","pm"],suffix:["","","",""],todayBtn:"Danas",clearBtn:"Očisti",okBtn:"OK",cancelBtn:"Prekid",timeView:"Prikaži vrijeme",backToDate:"Nazad na kalendar"},i={days:["Vasárnap","Hétfő","Kedd","Szerda","Csütörtök","Péntek","Szombat","Vasárnap"],daysShort:["V","H","K","Sze","Cs","P","Szo","V"],daysMin:["V","H","K","Sze","Cs","P","Szo","V"],months:["Január","Február","Március","Április","Május","Június","Július","Augusztus","Szeptember","Október","November","December"],monthsShort:["Jan","Feb","Már","Ápr","Máj","Jún","Júl","Aug","Szept","Okt","Nov","Dec"],meridiem:["de","du"],suffix:[".",".",".","."],todayBtn:"Ma",clearBtn:"Törlés",okBtn:"OK",cancelBtn:"Áthúz",timeView:"Óra nézet",backToDate:"Vissza a naptárhoz"},s={days:["Minggu","Senin","Selasa","Rabu","Kamis","Jumat","Sabtu","Minggu"],daysShort:["Min","Sen","Sel","Rab","Kam","Jum","Sab","Min"],daysMin:["Mn","Sn","Sl","Rb","Km","Jm","Sb","Mn"],months:["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"],monthsShort:["Jan","Feb","Mar","Apr","Mei","Jun","Jul","Agu","Sep","Okt","Nov","Des"],meridiem:["am","pm"],suffix:["st","nd","rd","th"],todayBtn:"Hari Ini",clearBtn:"Hapus",okBtn:"Mengkonfirmasi",cancelBtn:"Batal",timeView:"Tampilkan tampilan waktu",backToDate:"Kembali ke tampilan kalender"},d={days:["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日","日曜日"],daysShort:["日曜","月曜","火曜","水曜","木曜","金曜","土曜","日曜"],daysMin:["日","月","火","水","木","金","土","日"],months:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthsShort:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],meridiem:["am","pm"],suffix:["","","",""],todayBtn:"今日",clearBtn:"クリア",okBtn:"確認する",cancelBtn:"キャンセル",timeView:"タイムを表示",backToDate:"カレンダーに戻る"},m={days:["Zondag","Maandag","Dinsdag","Woensdag","Donderdag","Vrijdag","Zaterdag","Zondag"],daysShort:["Zon","Maa","Din","Woe","Don","Vri","Zat","Zon"],daysMin:["Zo","Ma","Di","Wo","Do","Vr","Za","Zo"],months:["Januari","Februari","Maart","April","Mei","Juni","Juli","Augustus","September","Oktober","November","December"],monthsShort:["Jan","Feb","Mrt","Apr","Mei","Jun","Jul","Aug","Sep","Okt","Nov","Dec"],meridiem:["AM","PM"],suffix:["e","e","e","e"],todayBtn:"Vandaag",clearBtn:"Wissen",okBtn:"OK",cancelBtn:"Annuleren",timeView:"Uurweergave",backToDate:"Terug naar de kalender"},u={days:["Nedeľa","Pondelok","Utorok","Streda","Štvrtok","Piatok","Sobota","Nedeľa"],daysShort:["Ned","Pon","Uto","Str","Štv","Pia","Sob","Ned"],daysMin:["Ne","Po","Ut","St","Št","Pi","So","Ne"],months:["Január","Február","Marec","Apríl","Máj","Jún","Júl","August","September","Október","November","December"],monthsShort:["Jan","Feb","Mar","Apr","Máj","Jún","Júl","Aug","Sep","Okt","Nov","Dec"],meridiem:["am","pm"],suffix:["st","nd","rd","th"],todayBtn:"Dnes",clearBtn:"Zmazať",okBtn:"Ok",cancelBtn:"Zrušiť",timeView:"Zobraziť hodiny",backToDate:"Späť na kalendár"},S={days:["일요일","월요일","화요일","수요일","목요일","금요일","토요일","일요일"],daysShort:["일","월","화","수","목","금","토","일"],daysMin:["일","월","화","수","목","금","토","일"],months:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],monthsShort:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],meridiem:["오전","오후"],suffix:["","","",""],todayBtn:"오늘",clearBtn:"지우기",okBtn:"확인하다",cancelBtn:"취소",timeView:"시계보기",backToDate:"달력보기"},c={days:["Domingo","Segunda-feira","Terça-feira","Quarta-feira","Quinta-feira","Sexta-feira","Sábado","Domingo"],daysShort:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb","Dom"],daysMin:["Do","Se","Te","Qu","Qu","Se","Sá","Do"],months:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],monthsShort:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],meridiem:["am","pm"],suffix:["º","º","º","º"],todayBtn:"Hoje",clearBtn:"Limpar",okBtn:"OK",cancelBtn:"Cancelar",timeView:"Mostrar hora",backToDate:"Voltar para o calendário"},l={days:["Domenica","Lunedì","Martedì","Mercoledì","Giovedì","Venerdì","Sabato","Domenica"],daysShort:["Dom","Lun","Mar","Mer","Gio","Ven","Sab","Dom"],daysMin:["Do","Lu","Ma","Me","Gi","Ve","Sa","Do"],months:["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"],monthsShort:["Gen","Feb","Mar","Apr","Mag","Giu","Lug","Ago","Set","Ott","Nov","Dic"],meridiem:["am","pm"],suffix:["º","º","º","º"],todayBtn:"Oggi",clearBtn:"Cancella",okBtn:"Ok",cancelBtn:"Annulla",timeView:"Mostra orario",backToDate:"Torna alla vista calendario"},b={days:["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi","Pazar"],daysShort:["Paz","Pzt","Sal","Çar","Per","Cum","Cmt","Paz"],daysMin:["Pa","Pz","Sa","Ça","Pe","Cu","Cm","Pa"],months:["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"],monthsShort:["Oca","Şub","Mar","Nis","May","Haz","Tem","Ağu","Eyl","Eki","Kas","Ara"],meridiem:["öö","ös"],suffix:[".",".",".","."],todayBtn:"Bugün",clearBtn:"Temizle",okBtn:"Ok",cancelBtn:"İptal",timeView:"Zaman görünümünü göster",backToDate:"Takvim görünümüne geri dön"},M={days:["Söndag","Måndag","Tisdag","Onsdag","Torsdag","Fredag","Lördag","Söndag"],daysShort:["Sön","Mån","Tis","Ons","Tor","Fre","Lör","Sön"],daysMin:["Sö","Må","Ti","On","To","Fr","Lö","Sö"],months:["Januari","Februari","Mars","April","Maj","Juni","Juli","Augusti","September","Oktober","November","December"],monthsShort:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Aug","Sep","Okt","Nov","Dec"],meridiem:["am","pm"],suffix:[".",".",".","."],todayBtn:"Idag",clearBtn:"Rensa",okBtn:"Ok",cancelBtn:"Avbryt",timeView:"Visa tid",backToDate:"Tillbaka till kalender"},y={days:["Søndag","Mandag","Tirsdag","Onsdag","Torsdag","Fredag","Lørdag","Søndag"],daysShort:["Søn","Man","Tir","Ons","Tor","Fre","Lør","Søn"],daysMin:["Sø","Ma","Ti","On","To","Fr","Lø","Sø"],months:["Januar","Februar","Marts","April","Maj","Juni","Juli","August","September","Oktober","November","December"],monthsShort:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Aug","Sep","Okt","Nov","Dec"],meridiem:["am","pm"],suffix:[".",".",".","."],todayBtn:"I dag",clearBtn:"Slet",okBtn:"Ok",cancelBtn:"Annuller",timeView:"Vis tid",backToDate:"Tilbage til kalenderen"},h={days:["อาทิตย์","จันทร์","อังคาร","พุธ","พฤหัสบดี","ศุกร์","เสาร์","อาทิตย์"],daysShort:["อา.","จ.","อ.","พ.","พฤ.","ศ.","ส.","อา."],daysMin:["อา.","จ.","อ.","พ.","พฤ.","ศ.","ส.","อา."],months:["มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","พฤษภาคม","มิถุนายน","กรกฎาคม","สิงหาคม","กันยายน","ตุลาคม","พฤศจิกายน","ธันวาคม"],monthsShort:["ม.ค.","ก.พ.","มี.ค.","เม.ย.","พ.ค.","มิ.ย.","ก.ค.","ส.ค.","ก.ย.","ต.ค.","พ.ย.","ธ.ค."],meridiem:["am","pm"],suffix:["","","",""],todayBtn:"วันนี้",clearBtn:"ล้างข้อมูล",okBtn:"ยืนยัน",cancelBtn:"ปิด",timeView:"แสดงหน้าเลือกเวลา",backToDate:"กลับไปหน้าปฏิทิน"},g={cz:e,da:y,de:a,en:t,es:n,fr:r,hr:o,hu:i,id:s,it:l,jp:d,ko:S,nl:m,pt_BR:c,sk:u,sv:M,th:h,tr:b},D=Object.freeze(Object.defineProperty({__proto__:null,cz:e,da:y,de:a,default:g,en:t,es:n,fa:k,fr:r,hr:o,hu:i,id:s,it:l,jp:d,ko:S,nl:m,pt_BR:c,sk:u,sv:M,th:h,tr:b},Symbol.toStringTag,{value:"Module"}));export{t as e,D as i}; diff --git a/docs/_app/immutable/chunks/index.363a4bc7.js b/docs/_app/immutable/chunks/index.b1c4f1af.js similarity index 99% rename from docs/_app/immutable/chunks/index.363a4bc7.js rename to docs/_app/immutable/chunks/index.b1c4f1af.js index b4a0762..9da57b4 100644 --- a/docs/_app/immutable/chunks/index.363a4bc7.js +++ b/docs/_app/immutable/chunks/index.b1c4f1af.js @@ -1 +1 @@ -import{E as m,L as k,a as R}from"./index.e545d957.js";import{s as v,t as o,h as z,L as W,i as X,c as x,f as T,a as U,b as _,I as Z,A as C}from"./4.ae3ce863.js";const E=96,S=1,G=97,V=98,g=2,$=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],Y=58,N=40,P=95,q=91,c=45,j=46,D=35,I=37;function p(e){return e>=65&&e<=90||e>=97&&e<=122||e>=161}function B(e){return e>=48&&e<=57}const F=new m((e,t)=>{for(let l=!1,a=0,O=0;;O++){let{next:r}=e;if(p(r)||r==c||r==P||l&&B(r))!l&&(r!=c||O>0)&&(l=!0),a===O&&r==c&&a++,e.advance();else{l&&e.acceptToken(r==N?G:a==2&&t.canShift(g)?g:V);break}}}),K=new m(e=>{if($.includes(e.peek(-1))){let{next:t}=e;(p(t)||t==P||t==D||t==j||t==q||t==Y||t==c)&&e.acceptToken(E)}}),L=new m(e=>{if(!$.includes(e.peek(-1))){let{next:t}=e;if(t==I&&(e.advance(),e.acceptToken(S)),p(t)){do e.advance();while(p(e.next));e.acceptToken(S)}}}),A=v({"AtKeyword import charset namespace keyframes media supports":o.definitionKeyword,"from to selector":o.keyword,NamespaceName:o.namespace,KeyframeName:o.labelName,KeyframeRangeName:o.operatorKeyword,TagName:o.tagName,ClassName:o.className,PseudoClassName:o.constant(o.className),IdName:o.labelName,"FeatureName PropertyName":o.propertyName,AttributeName:o.attributeName,NumberLiteral:o.number,KeywordQuery:o.keyword,UnaryQueryOp:o.operatorKeyword,"CallTag ValueName":o.atom,VariableName:o.variableName,Callee:o.operatorKeyword,Unit:o.unit,"UniversalSelector NestingSelector":o.definitionOperator,MatchOp:o.compareOperator,"ChildOp SiblingOp, LogicOp":o.logicOperator,BinOp:o.arithmeticOperator,Important:o.modifier,Comment:o.blockComment,ColorLiteral:o.color,"ParenthesizedContent StringLiteral":o.string,":":o.punctuation,"PseudoOp #":o.derefOperator,"; ,":o.separator,"( )":o.paren,"[ ]":o.squareBracket,"{ }":o.brace}),J={__proto__:null,lang:32,"nth-child":32,"nth-last-child":32,"nth-of-type":32,"nth-last-of-type":32,dir:32,"host-context":32,url:60,"url-prefix":60,domain:60,regexp:60,selector:134},H={__proto__:null,"@import":114,"@media":138,"@charset":142,"@namespace":146,"@keyframes":152,"@supports":164},M={__proto__:null,not:128,only:128},ee=k.deserialize({version:14,states:"9bQYQ[OOO#_Q[OOP#fOWOOOOQP'#Cd'#CdOOQP'#Cc'#CcO#kQ[O'#CfO$_QXO'#CaO$fQ[O'#ChO$qQ[O'#DPO$vQ[O'#DTOOQP'#Ej'#EjO${QdO'#DeO%gQ[O'#DrO${QdO'#DtO%xQ[O'#DvO&TQ[O'#DyO&]Q[O'#EPO&kQ[O'#EROOQS'#Ei'#EiOOQS'#EU'#EUQYQ[OOO&rQXO'#CdO'gQWO'#DaO'lQWO'#EpO'wQ[O'#EpQOQWOOP(RO#tO'#C_POOO)C@X)C@XOOQP'#Cg'#CgOOQP,59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^z!`%^!`!aDd!a;'S%^;'S;=`%o<%lO%^bDkS|Qo`Oy%^z;'S%^;'S;=`%o<%lO%^bDzWOy%^z!c%^!c!}Ed!}#T%^#T#oEd#o;'S%^;'S;=`%o<%lO%^bEk[!YQo`Oy%^z}%^}!OEd!O!Q%^!Q![Ed![!c%^!c!}Ed!}#T%^#T#oEd#o;'S%^;'S;=`%o<%lO%^bFfSxQOy%^z;'S%^;'S;=`%o<%lO%^lFwSv[Oy%^z;'S%^;'S;=`%o<%lO%^bGWUOy%^z#b%^#b#cGj#c;'S%^;'S;=`%o<%lO%^bGoUo`Oy%^z#W%^#W#XHR#X;'S%^;'S;=`%o<%lO%^bHYS!`Qo`Oy%^z;'S%^;'S;=`%o<%lO%^bHiUOy%^z#f%^#f#gHR#g;'S%^;'S;=`%o<%lO%^fIQS!RUOy%^z;'S%^;'S;=`%o<%lO%^nIcS!Q^Oy%^z;'S%^;'S;=`%o<%lO%^fItU!PQOy%^z!_%^!_!`6y!`;'S%^;'S;=`%o<%lO%^`JZP;=`<%l$}",tokenizers:[K,L,F,1,2,3,4,new R("m~RRYZ[z{a~~g~aO#Z~~dP!P!Qg~lO#[~~",28,102)],topRules:{StyleSheet:[0,4],Styles:[1,84]},specialized:[{term:97,get:e=>J[e]||-1},{term:56,get:e=>H[e]||-1},{term:98,get:e=>M[e]||-1}],tokenPrec:1169});let Q=null;function u(){if(!Q&&typeof document=="object"&&document.body){let{style:e}=document.body,t=[],l=new Set;for(let a in e)a!="cssText"&&a!="cssFloat"&&typeof e[a]=="string"&&(/[A-Z]/.test(a)&&(a=a.replace(/[A-Z]/g,O=>"-"+O.toLowerCase())),l.has(a)||(t.push(a),l.add(a)));Q=t.sort().map(a=>({type:"property",label:a}))}return Q||[]}const b=["active","after","any-link","autofill","backdrop","before","checked","cue","default","defined","disabled","empty","enabled","file-selector-button","first","first-child","first-letter","first-line","first-of-type","focus","focus-visible","focus-within","fullscreen","has","host","host-context","hover","in-range","indeterminate","invalid","is","lang","last-child","last-of-type","left","link","marker","modal","not","nth-child","nth-last-child","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","part","placeholder","placeholder-shown","read-only","read-write","required","right","root","scope","selection","slotted","target","target-text","valid","visited","where"].map(e=>({type:"class",label:e})),f=["above","absolute","activeborder","additive","activecaption","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","antialiased","appworkspace","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic-abegede-gez","ethiopic-halehame-aa-er","ethiopic-halehame-gez","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","graytext","grid","groove","hand","hard-light","help","hidden","hide","higher","highlight","highlighttext","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","justify","keep-all","landscape","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-hexadecimal","lower-latin","lower-norwegian","lowercase","ltr","luminosity","manipulation","match","matrix","matrix3d","medium","menu","menutext","message-box","middle","min-intrinsic","mix","monospace","move","multiple","multiple_mask_images","multiply","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","opacity","open-quote","optimizeLegibility","optimizeSpeed","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","text","text-bottom","text-top","textarea","textfield","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","to","top","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-latin","uppercase","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"].map(e=>({type:"keyword",label:e})).concat(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"].map(e=>({type:"constant",label:e}))),Oe=["a","abbr","address","article","aside","b","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","dd","del","details","dfn","dialog","div","dl","dt","em","figcaption","figure","footer","form","header","hgroup","h1","h2","h3","h4","h5","h6","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","meter","nav","ol","output","p","pre","ruby","section","select","small","source","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","tr","u","ul"].map(e=>({type:"type",label:e})),s=/^(\w[\w-]*|-\w[\w-]*|)$/,ae=/^-(-[\w-]*)?$/;function te(e,t){var l;if((e.name=="("||e.type.isError)&&(e=e.parent||e),e.name!="ArgList")return!1;let a=(l=e.parent)===null||l===void 0?void 0:l.firstChild;return(a==null?void 0:a.name)!="Callee"?!1:t.sliceString(a.from,a.to)=="var"}const h=new C,oe=["Declaration"];function re(e){for(let t=e;;){if(t.type.isTop)return t;if(!(t=t.parent))return e}}function w(e,t,l){if(t.to-t.from>4096){let a=h.get(t);if(a)return a;let O=[],r=new Set,i=t.cursor(Z.IncludeAnonymous);if(i.firstChild())do for(let n of w(e,i.node,l))r.has(n.label)||(r.add(n.label),O.push(n));while(i.nextSibling());return h.set(t,O),O}else{let a=[],O=new Set;return t.cursor().iterate(r=>{var i;if(l(r)&&r.matchContext(oe)&&((i=r.node.nextSibling)===null||i===void 0?void 0:i.name)==":"){let n=e.sliceString(r.from,r.to);O.has(n)||(O.add(n),a.push({label:n,type:"variable"}))}}),a}}const le=e=>t=>{let{state:l,pos:a}=t,O=z(l).resolveInner(a,-1),r=O.type.isError&&O.from==O.to-1&&l.doc.sliceString(O.from,O.to)=="-";if(O.name=="PropertyName"||(r||O.name=="TagName")&&/^(Block|Styles)$/.test(O.resolve(O.to).name))return{from:O.from,options:u(),validFor:s};if(O.name=="ValueName")return{from:O.from,options:f,validFor:s};if(O.name=="PseudoClassName")return{from:O.from,options:b,validFor:s};if(e(O)||(t.explicit||r)&&te(O,l.doc))return{from:e(O)||r?O.from:a,options:w(l.doc,re(O),e),validFor:ae};if(O.name=="TagName"){for(let{parent:d}=O;d;d=d.parent)if(d.name=="Block")return{from:O.from,options:u(),validFor:s};return{from:O.from,options:Oe,validFor:s}}if(!t.explicit)return null;let i=O.resolve(a),n=i.childBefore(a);return n&&n.name==":"&&i.name=="PseudoClassSelector"?{from:a,options:b,validFor:s}:n&&n.name==":"&&i.name=="Declaration"||i.name=="ArgList"?{from:a,options:f,validFor:s}:i.name=="Block"||i.name=="Styles"?{from:a,options:u(),validFor:s}:null},ie=le(e=>e.name=="VariableName"),y=W.define({name:"css",parser:ee.configure({props:[X.add({Declaration:x()}),T.add({Block:U})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function de(){return new _(y,y.data.of({autocomplete:ie}))}export{de as css,ie as cssCompletionSource,y as cssLanguage,le as defineCSSCompletionSource}; +import{E as m,L as k,a as R}from"./index.f562a38b.js";import{s as v,t as o,h as z,L as W,i as X,c as x,f as T,a as U,b as _,I as Z,A as C}from"./4.cfac87d8.js";const E=96,S=1,G=97,V=98,g=2,$=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],Y=58,N=40,P=95,q=91,c=45,j=46,D=35,I=37;function p(e){return e>=65&&e<=90||e>=97&&e<=122||e>=161}function B(e){return e>=48&&e<=57}const F=new m((e,t)=>{for(let l=!1,a=0,O=0;;O++){let{next:r}=e;if(p(r)||r==c||r==P||l&&B(r))!l&&(r!=c||O>0)&&(l=!0),a===O&&r==c&&a++,e.advance();else{l&&e.acceptToken(r==N?G:a==2&&t.canShift(g)?g:V);break}}}),K=new m(e=>{if($.includes(e.peek(-1))){let{next:t}=e;(p(t)||t==P||t==D||t==j||t==q||t==Y||t==c)&&e.acceptToken(E)}}),L=new m(e=>{if(!$.includes(e.peek(-1))){let{next:t}=e;if(t==I&&(e.advance(),e.acceptToken(S)),p(t)){do e.advance();while(p(e.next));e.acceptToken(S)}}}),A=v({"AtKeyword import charset namespace keyframes media supports":o.definitionKeyword,"from to selector":o.keyword,NamespaceName:o.namespace,KeyframeName:o.labelName,KeyframeRangeName:o.operatorKeyword,TagName:o.tagName,ClassName:o.className,PseudoClassName:o.constant(o.className),IdName:o.labelName,"FeatureName PropertyName":o.propertyName,AttributeName:o.attributeName,NumberLiteral:o.number,KeywordQuery:o.keyword,UnaryQueryOp:o.operatorKeyword,"CallTag ValueName":o.atom,VariableName:o.variableName,Callee:o.operatorKeyword,Unit:o.unit,"UniversalSelector NestingSelector":o.definitionOperator,MatchOp:o.compareOperator,"ChildOp SiblingOp, LogicOp":o.logicOperator,BinOp:o.arithmeticOperator,Important:o.modifier,Comment:o.blockComment,ColorLiteral:o.color,"ParenthesizedContent StringLiteral":o.string,":":o.punctuation,"PseudoOp #":o.derefOperator,"; ,":o.separator,"( )":o.paren,"[ ]":o.squareBracket,"{ }":o.brace}),J={__proto__:null,lang:32,"nth-child":32,"nth-last-child":32,"nth-of-type":32,"nth-last-of-type":32,dir:32,"host-context":32,url:60,"url-prefix":60,domain:60,regexp:60,selector:134},H={__proto__:null,"@import":114,"@media":138,"@charset":142,"@namespace":146,"@keyframes":152,"@supports":164},M={__proto__:null,not:128,only:128},ee=k.deserialize({version:14,states:"9bQYQ[OOO#_Q[OOP#fOWOOOOQP'#Cd'#CdOOQP'#Cc'#CcO#kQ[O'#CfO$_QXO'#CaO$fQ[O'#ChO$qQ[O'#DPO$vQ[O'#DTOOQP'#Ej'#EjO${QdO'#DeO%gQ[O'#DrO${QdO'#DtO%xQ[O'#DvO&TQ[O'#DyO&]Q[O'#EPO&kQ[O'#EROOQS'#Ei'#EiOOQS'#EU'#EUQYQ[OOO&rQXO'#CdO'gQWO'#DaO'lQWO'#EpO'wQ[O'#EpQOQWOOP(RO#tO'#C_POOO)C@X)C@XOOQP'#Cg'#CgOOQP,59Q,59QO#kQ[O,59QO(^Q[O'#EXO(xQWO,58{O)QQ[O,59SO$qQ[O,59kO$vQ[O,59oO(^Q[O,59sO(^Q[O,59uO(^Q[O,59vO)]Q[O'#D`OOQS,58{,58{OOQP'#Ck'#CkOOQO'#C}'#C}OOQP,59S,59SO)dQWO,59SO)iQWO,59SOOQP'#DR'#DROOQP,59k,59kOOQO'#DV'#DVO)nQ`O,59oOOQS'#Cp'#CpO${QdO'#CqO)vQvO'#CsO+TQtO,5:POOQO'#Cx'#CxO)iQWO'#CwO+iQ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cGj#c;'S%^;'S;=`%o<%lO%^bGoUo`Oy%^z#W%^#W#XHR#X;'S%^;'S;=`%o<%lO%^bHYS!`Qo`Oy%^z;'S%^;'S;=`%o<%lO%^bHiUOy%^z#f%^#f#gHR#g;'S%^;'S;=`%o<%lO%^fIQS!RUOy%^z;'S%^;'S;=`%o<%lO%^nIcS!Q^Oy%^z;'S%^;'S;=`%o<%lO%^fItU!PQOy%^z!_%^!_!`6y!`;'S%^;'S;=`%o<%lO%^`JZP;=`<%l$}",tokenizers:[K,L,F,1,2,3,4,new R("m~RRYZ[z{a~~g~aO#Z~~dP!P!Qg~lO#[~~",28,102)],topRules:{StyleSheet:[0,4],Styles:[1,84]},specialized:[{term:97,get:e=>J[e]||-1},{term:56,get:e=>H[e]||-1},{term:98,get:e=>M[e]||-1}],tokenPrec:1169});let Q=null;function u(){if(!Q&&typeof document=="object"&&document.body){let{style:e}=document.body,t=[],l=new Set;for(let a in e)a!="cssText"&&a!="cssFloat"&&typeof e[a]=="string"&&(/[A-Z]/.test(a)&&(a=a.replace(/[A-Z]/g,O=>"-"+O.toLowerCase())),l.has(a)||(t.push(a),l.add(a)));Q=t.sort().map(a=>({type:"property",label:a}))}return Q||[]}const b=["active","after","any-link","autofill","backdrop","before","checked","cue","default","defined","disabled","empty","enabled","file-selector-button","first","first-child","first-letter","first-line","first-of-type","focus","focus-visible","focus-within","fullscreen","has","host","host-context","hover","in-range","indeterminate","invalid","is","lang","last-child","last-of-type","left","link","marker","modal","not","nth-child","nth-last-child","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","part","placeholder","placeholder-shown","read-only","read-write","required","right","root","scope","selection","slotted","target","target-text","valid","visited","where"].map(e=>({type:"class",label:e})),f=["above","absolute","activeborder","additive","activecaption","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","antialiased","appworkspace","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic-abegede-gez","ethiopic-halehame-aa-er","ethiopic-halehame-gez","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","graytext","grid","groove","hand","hard-light","help","hidden","hide","higher","highlight","highlighttext","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","justify","keep-all","landscape","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-hexadecimal","lower-latin","lower-norwegian","lowercase","ltr","luminosity","manipulation","match","matrix","matrix3d","medium","menu","menutext","message-box","middle","min-intrinsic","mix","monospace","move","multiple","multiple_mask_images","multiply","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","opacity","open-quote","optimizeLegibility","optimizeSpeed","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","text","text-bottom","text-top","textarea","textfield","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","to","top","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-latin","uppercase","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"].map(e=>({type:"keyword",label:e})).concat(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"].map(e=>({type:"constant",label:e}))),Oe=["a","abbr","address","article","aside","b","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","dd","del","details","dfn","dialog","div","dl","dt","em","figcaption","figure","footer","form","header","hgroup","h1","h2","h3","h4","h5","h6","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","meter","nav","ol","output","p","pre","ruby","section","select","small","source","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","tr","u","ul"].map(e=>({type:"type",label:e})),s=/^(\w[\w-]*|-\w[\w-]*|)$/,ae=/^-(-[\w-]*)?$/;function te(e,t){var l;if((e.name=="("||e.type.isError)&&(e=e.parent||e),e.name!="ArgList")return!1;let a=(l=e.parent)===null||l===void 0?void 0:l.firstChild;return(a==null?void 0:a.name)!="Callee"?!1:t.sliceString(a.from,a.to)=="var"}const h=new C,oe=["Declaration"];function re(e){for(let t=e;;){if(t.type.isTop)return t;if(!(t=t.parent))return e}}function w(e,t,l){if(t.to-t.from>4096){let a=h.get(t);if(a)return a;let O=[],r=new Set,i=t.cursor(Z.IncludeAnonymous);if(i.firstChild())do for(let n of w(e,i.node,l))r.has(n.label)||(r.add(n.label),O.push(n));while(i.nextSibling());return h.set(t,O),O}else{let a=[],O=new Set;return t.cursor().iterate(r=>{var i;if(l(r)&&r.matchContext(oe)&&((i=r.node.nextSibling)===null||i===void 0?void 0:i.name)==":"){let n=e.sliceString(r.from,r.to);O.has(n)||(O.add(n),a.push({label:n,type:"variable"}))}}),a}}const le=e=>t=>{let{state:l,pos:a}=t,O=z(l).resolveInner(a,-1),r=O.type.isError&&O.from==O.to-1&&l.doc.sliceString(O.from,O.to)=="-";if(O.name=="PropertyName"||(r||O.name=="TagName")&&/^(Block|Styles)$/.test(O.resolve(O.to).name))return{from:O.from,options:u(),validFor:s};if(O.name=="ValueName")return{from:O.from,options:f,validFor:s};if(O.name=="PseudoClassName")return{from:O.from,options:b,validFor:s};if(e(O)||(t.explicit||r)&&te(O,l.doc))return{from:e(O)||r?O.from:a,options:w(l.doc,re(O),e),validFor:ae};if(O.name=="TagName"){for(let{parent:d}=O;d;d=d.parent)if(d.name=="Block")return{from:O.from,options:u(),validFor:s};return{from:O.from,options:Oe,validFor:s}}if(!t.explicit)return null;let i=O.resolve(a),n=i.childBefore(a);return n&&n.name==":"&&i.name=="PseudoClassSelector"?{from:a,options:b,validFor:s}:n&&n.name==":"&&i.name=="Declaration"||i.name=="ArgList"?{from:a,options:f,validFor:s}:i.name=="Block"||i.name=="Styles"?{from:a,options:u(),validFor:s}:null},ie=le(e=>e.name=="VariableName"),y=W.define({name:"css",parser:ee.configure({props:[X.add({Declaration:x()}),T.add({Block:U})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function de(){return new _(y,y.data.of({autocomplete:ie}))}export{de as css,ie as cssCompletionSource,y as cssLanguage,le as defineCSSCompletionSource}; diff --git a/docs/_app/immutable/chunks/index.bf4ded2a.js b/docs/_app/immutable/chunks/index.bf4ded2a.js deleted file mode 100644 index e37ad5b..0000000 --- a/docs/_app/immutable/chunks/index.bf4ded2a.js +++ /dev/null @@ -1,4 +0,0 @@ -var Q=Object.defineProperty;var T=(t,e,n)=>e in t?Q(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var I=(t,e,n)=>(T(t,typeof e!="symbol"?e+"":e,n),n);import{r as w,a0 as W,a1 as X,d as q,O as E,R,K as O,a2 as Y,a3 as N,a4 as U,h as Z,a5 as tt,a6 as et,a7 as nt,a8 as it,a9 as V,aa as st,ab as rt,ac as at,ad as ot,ae as ft}from"./scheduler.3ecd3668.js";const G=typeof window<"u";let B=G?()=>window.performance.now():()=>Date.now(),D=G?t=>requestAnimationFrame(t):w;const k=new Set;function H(t){k.forEach(e=>{e.c(t)||(k.delete(e),e.f())}),k.size!==0&&D(H)}function F(t){let e;return k.size===0&&D(H),{promise:new Promise(n=>{k.add(e={c:t,f:n})}),abort(){k.delete(e)}}}const M=new Map;let P=0;function ut(t){let e=5381,n=t.length;for(;n--;)e=(e<<5)-e^t.charCodeAt(n);return e>>>0}function ct(t,e){const n={stylesheet:X(e),rules:{}};return M.set(t,n),n}function z(t,e,n,s,u,a,c,i=0){const l=16.666/s;let r=`{ -`;for(let $=0;$<=1;$+=l){const m=e+(n-e)*a($);r+=$*100+`%{${c(m,1-m)}} -`}const d=r+`100% {${c(n,1-n)}} -}`,f=`__svelte_${ut(d)}_${i}`,g=W(t),{stylesheet:h,rules:o}=M.get(g)||ct(g,t);o[f]||(o[f]=!0,h.insertRule(`@keyframes ${f} ${d}`,h.cssRules.length));const _=t.style.animation||"";return t.style.animation=`${_?`${_}, `:""}${f} ${s}ms linear ${u}ms 1 both`,P+=1,f}function A(t,e){const n=(t.style.animation||"").split(", "),s=n.filter(e?a=>a.indexOf(e)<0:a=>a.indexOf("__svelte")===-1),u=n.length-s.length;u&&(t.style.animation=s.join(", "),P-=u,P||lt())}function lt(){D(()=>{P||(M.forEach(t=>{const{ownerNode:e}=t.stylesheet;e&&q(e)}),M.clear())})}let S;function K(){return S||(S=Promise.resolve(),S.then(()=>{S=null})),S}function v(t,e,n){t.dispatchEvent(Y(`${e?"intro":"outro"}${n}`))}const C=new Set;let p;function yt(){p={r:0,c:[],p}}function xt(){p.r||E(p.c),p=p.p}function dt(t,e){t&&t.i&&(C.delete(t),t.i(e))}function vt(t,e,n,s){if(t&&t.o){if(C.has(t))return;C.add(t),p.c.push(()=>{C.delete(t),s&&(n&&t.d(1),s())}),t.o(e)}else s&&s()}const L={duration:0};function wt(t,e,n){const s={direction:"in"};let u=e(t,n,s),a=!1,c,i,l=0;function r(){c&&A(t,c)}function d(){const{delay:g=0,duration:h=300,easing:o=N,tick:_=w,css:$}=u||L;$&&(c=z(t,0,1,h,g,o,$,l++)),_(0,1);const m=B()+g,y=m+h;i&&i.abort(),a=!0,O(()=>v(t,!0,"start")),i=F(x=>{if(a){if(x>=y)return _(1,0),v(t,!0,"end"),r(),a=!1;if(x>=m){const b=o((x-m)/h);_(b,1-b)}}return a})}let f=!1;return{start(){f||(f=!0,A(t),R(u)?(u=u(s),K().then(d)):d())},invalidate(){f=!1},end(){a&&(r(),a=!1)}}}function bt(t,e,n){const s={direction:"out"};let u=e(t,n,s),a=!0,c;const i=p;i.r+=1;let l;function r(){const{delay:d=0,duration:f=300,easing:g=N,tick:h=w,css:o}=u||L;o&&(c=z(t,1,0,f,d,g,o));const _=B()+d,$=_+f;O(()=>v(t,!1,"start")),"inert"in t&&(l=t.inert,t.inert=!0),F(m=>{if(a){if(m>=$)return h(0,1),v(t,!1,"end"),--i.r||E(i.c),!1;if(m>=_){const y=g((m-_)/f);h(1-y,y)}}return a})}return R(u)?K().then(()=>{u=u(s),r()}):r(),{end(d){d&&"inert"in t&&(t.inert=l),d&&u.tick&&u.tick(1,0),a&&(c&&A(t,c),a=!1)}}}function kt(t,e,n,s){let a=e(t,n,{direction:"both"}),c=s?0:1,i=null,l=null,r=null,d;function f(){r&&A(t,r)}function g(o,_){const $=o.b-c;return _*=Math.abs($),{a:c,b:o.b,d:$,duration:_,start:o.start,end:o.start+_,group:o.group}}function h(o){const{delay:_=0,duration:$=300,easing:m=N,tick:y=w,css:x}=a||L,b={start:B()+_,b:o};o||(b.group=p,p.r+=1),"inert"in t&&(o?d!==void 0&&(t.inert=d):(d=t.inert,t.inert=!0)),i||l?l=b:(x&&(f(),r=z(t,c,o,$,_,m,x)),o&&y(0,1),i=g(b,$),O(()=>v(t,o,"start")),F(j=>{if(l&&j>l.start&&(i=g(l,$),l=null,v(t,i.b,"start"),x&&(f(),r=z(t,c,i.b,i.duration,0,m,a.css))),i){if(j>=i.end)y(c=i.b,1-c),v(t,i.b,"end"),l||(i.b?f():--i.group.r||E(i.group.c)),i=null;else if(j>=i.start){const J=j-i.start;c=i.a+i.d*m(J/i.duration),y(c,1-c)}}return!!(i||l)}))}return{run(o){R(a)?K().then(()=>{a=a({direction:o?"in":"out"}),h(o)}):h(o)},end(){f(),i=l=null}}}function Et(t,e,n){const s=t.$$.props[e];s!==void 0&&(t.$$.bound[s]=n,n(t.$$.ctx[s]))}function St(t){t&&t.c()}function Ot(t,e){t&&t.l(e)}function _t(t,e,n){const{fragment:s,after_update:u}=t.$$;s&&s.m(e,n),O(()=>{const a=t.$$.on_mount.map(st).filter(R);t.$$.on_destroy?t.$$.on_destroy.push(...a):E(a),t.$$.on_mount=[]}),u.forEach(O)}function $t(t,e){const n=t.$$;n.fragment!==null&&(nt(n.after_update),E(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function ht(t,e){t.$$.dirty[0]===-1&&(rt.push(t),at(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<{const o=h.length?h[0]:g;return r.ctx&&u(r.ctx[f],r.ctx[f]=o)&&(!r.skip_bound&&r.bound[f]&&r.bound[f](o),d&&ht(t,f)),g}):[],r.update(),d=!0,E(r.before_update),r.fragment=s?s(r.ctx):!1,e.target){if(e.hydrate){ot();const f=Z(e.target);r.fragment&&r.fragment.l(f),f.forEach(q)}else r.fragment&&r.fragment.c();e.intro&&dt(t.$$.fragment),_t(t,e.target,e.anchor),ft(),tt()}V(l)}class jt{constructor(){I(this,"$$");I(this,"$$set")}$destroy(){$t(this,1),this.$destroy=w}$on(e,n){if(!R(n))return w;const s=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return s.push(n),()=>{const u=s.indexOf(n);u!==-1&&s.splice(u,1)}}$set(e){this.$$set&&!et(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const gt="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(gt);export{jt as S,dt as a,St as b,xt as c,Ot as d,$t as e,Et as f,yt as g,kt as h,Rt as i,wt as j,bt as k,F as l,_t as m,B as n,vt as t}; diff --git a/docs/_app/immutable/chunks/index.7be10aca.js b/docs/_app/immutable/chunks/index.c6f70c56.js similarity index 99% rename from docs/_app/immutable/chunks/index.7be10aca.js rename to docs/_app/immutable/chunks/index.c6f70c56.js index 06d66c3..ef3166d 100644 --- a/docs/_app/immutable/chunks/index.7be10aca.js +++ b/docs/_app/immutable/chunks/index.c6f70c56.js @@ -1 +1 @@ -import{C as be,E as k,L as Pe}from"./index.e545d957.js";import{s as xe,t as g,p as Te,h as H,b as Ve,v as we,E as Z,L as ye,i as ve,f as Xe,w as ke}from"./4.ae3ce863.js";import{cssLanguage as K,css as $e}from"./index.363a4bc7.js";import{t as _e,b as qe,c as Ce,j as J,a as Ae}from"./index.a81527e7.js";const Qe=54,Ye=1,Me=55,Re=2,Ee=56,Ze=3,B=4,Be=5,v=6,ee=7,te=8,ae=9,le=10,We=11,ze=12,De=13,$=57,Ne=14,W=58,re=20,Ge=22,ne=23,je=24,Q=26,se=27,Ie=28,Ue=31,Le=34,Fe=36,He=37,Ke=0,Je=1,et={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},tt={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},z={dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}};function at(e){return e==45||e==46||e==58||e>=65&&e<=90||e==95||e>=97&&e<=122||e>=161}function oe(e){return e==9||e==10||e==13||e==32}let D=null,N=null,G=0;function Y(e,a){let r=e.pos+a;if(G==r&&N==e)return D;let l=e.peek(a);for(;oe(l);)l=e.peek(++a);let t="";for(;at(l);)t+=String.fromCharCode(l),l=e.peek(++a);return N=e,G=r,D=t?t.toLowerCase():l==lt||l==rt?void 0:null}const ue=60,X=62,M=47,lt=63,rt=33,nt=45;function j(e,a){this.name=e,this.parent=a,this.hash=a?a.hash:0;for(let r=0;r-1?new j(Y(l,1)||"",e):e},reduce(e,a){return a==re&&e?e.parent:e},reuse(e,a,r,l){let t=a.type.id;return t==v||t==Fe?new j(Y(l,1)||"",e):e},hash(e){return e?e.hash:0},strict:!1}),ut=new k((e,a)=>{if(e.next!=ue){e.next<0&&a.context&&e.acceptToken($);return}e.advance();let r=e.next==M;r&&e.advance();let l=Y(e,0);if(l===void 0)return;if(!l)return e.acceptToken(r?Ne:v);let t=a.context?a.context.name:null;if(r){if(l==t)return e.acceptToken(We);if(t&&tt[t])return e.acceptToken($,-2);if(a.dialectEnabled(Ke))return e.acceptToken(ze);for(let s=a.context;s;s=s.parent)if(s.name==l)return;e.acceptToken(De)}else{if(l=="script")return e.acceptToken(ee);if(l=="style")return e.acceptToken(te);if(l=="textarea")return e.acceptToken(ae);if(et.hasOwnProperty(l))return e.acceptToken(le);t&&z[t]&&z[t][l]?e.acceptToken($,-1):e.acceptToken(v)}},{contextual:!0}),Ot=new k(e=>{for(let a=0,r=0;;r++){if(e.next<0){r&&e.acceptToken(W);break}if(e.next==nt)a++;else if(e.next==X&&a>=2){r>3&&e.acceptToken(W,-2);break}else a=0;e.advance()}});function it(e){for(;e;e=e.parent)if(e.name=="svg"||e.name=="math")return!0;return!1}const ct=new k((e,a)=>{if(e.next==M&&e.peek(1)==X){let r=a.dialectEnabled(Je)||it(a.context);e.acceptToken(r?Be:B,2)}else e.next==X&&e.acceptToken(B,1)});function R(e,a,r){let l=2+e.length;return new k(t=>{for(let s=0,u=0,o=0;;o++){if(t.next<0){o&&t.acceptToken(a);break}if(s==0&&t.next==ue||s==1&&t.next==M||s>=2&&su?t.acceptToken(a,-u):t.acceptToken(r,-(u-2));break}else if((t.next==10||t.next==13)&&o){t.acceptToken(a,1);break}else s=u=0;t.advance()}})}const dt=R("script",Qe,Ye),pt=R("style",Me,Re),mt=R("textarea",Ee,Ze),ft=xe({"Text RawText":g.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":g.angleBracket,TagName:g.tagName,"MismatchedCloseTag/TagName":[g.tagName,g.invalid],AttributeName:g.attributeName,"AttributeValue UnquotedAttributeValue":g.attributeValue,Is:g.definitionOperator,"EntityReference CharacterReference":g.character,Comment:g.blockComment,ProcessingInst:g.processingInstruction,DoctypeDecl:g.documentMeta}),St=Pe.deserialize({version:14,states:",xOVO!rOOO!WQ#tO'#CqO!]Q#tO'#CzO!bQ#tO'#C}O!gQ#tO'#DQO!lQ#tO'#DSO!qOaO'#CpO!|ObO'#CpO#XOdO'#CpO$eO!rO'#CpOOO`'#C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~O!XiOQoP!ZoP~O!YlORrP!ZrP~OUSOVPOWQOXROYTOZqO[]O][O^^O`^Oa^Ob^Oc^Ox^O!dZO~O!ZrO~P#dO![sO!euO~OfvO~OfwO~OS|OhyO~OS!OOhyO~OS!QOhyO~OS!SOT!TOhyO~OS!TOhyO~O!WfOPlX!ZlX~OP!WO!Z!XO~O!XiOQoX!ZoX~OQ!ZO!Z!XO~O!YlORrX!ZrX~OR!]O!Z!XO~O!Z!XO~P#dOf!_O~O![sO!e!aO~OS!bO~OS!cO~Oi!dOSgXhgXTgX~OS!fOhyO~OS!gOhyO~OS!hOhyO~OS!iOT!jOhyO~OS!jOhyO~Of!kO~Of!lO~Of!mO~OS!nO~Ok!qO!`!oO!b!pO~OS!rO~OS!sO~OS!tO~Oa!uOb!uOc!uO!`!wO!a!uO~Oa!xOb!xOc!xO!b!wO!c!xO~Oa!uOb!uOc!uO!`!{O!a!uO~Oa!xOb!xOc!xO!b!{O!c!xO~OT~bac!dx{!d~",goto:"%p!`PPPPPPPPPPPPPPPPPPPP!a!gP!mPP!yP!|#P#S#Y#]#`#f#i#l#r#x!aP!a!aP$O$U$l$r$x%O%U%[%bPPPPPPPP%hX^OX`pXUOX`pezabcde{}!P!R!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ}bQ!PcQ!RdQ!UeZ!e{}!P!R!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:"⚠ StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:67,context:ot,nodeProps:[["closedBy",-10,1,2,3,7,8,9,10,11,12,13,"EndTag",6,"EndTag SelfClosingEndTag",-4,21,30,33,36,"CloseTag"],["openedBy",4,"StartTag StartCloseTag",5,"StartTag",-4,29,32,35,37,"OpenTag"],["group",-9,14,17,18,19,20,39,40,41,42,"Entity",16,"Entity TextContent",-3,28,31,34,"TextContent Entity"]],propSources:[ft],skippedNodes:[0],repeatNodeCount:9,tokenData:"!]tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^/^!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!Z5zbkWOX5uXZ7SZ[5u[^7S^p5uqr5urs7Sst+Ptw5uwx7Sx!]5u!]!^7w!^!a7S!a#S5u#S#T7S#T;'S5u;'S;=`8n<%lO5u!R7VVOp7Sqs7St!]7S!]!^7l!^;'S7S;'S;=`7q<%lO7S!R7qOa!R!R7tP;=`<%l7S!Z8OYkWa!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!Z8qP;=`<%l5u!_8{ihSkWOX5uXZ7SZ[5u[^7S^p5uqr8trs7Sst/^tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^:j!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!_:sbhSkWa!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!VP<%l?Ah;{?Ah?BY7S?BY?Mn;{?MnO7S!V=dXhSa!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!V>SP;=`<%l;{!_>YP;=`<%l8t!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ne){let c=o.node,O;if(O=c.firstChild){let d=u[i.read(O.from,O.to)];if(d)for(let m of d){if(m.tagName&&m.tagName!=I(c.parent,i))continue;let p=c.lastChild;if(p.type.id==Q){let h=p.from+1,x=p.lastChild,w=p.to-(x&&x.isError?0:1);if(w>h)return{parser:m.parser,overlay:[{from:h,to:w}]}}else if(p.type.id==se)return{parser:m.parser,overlay:[{from:p.from,to:p.to}]}}}}return null})}const T=["_blank","_self","_top","_parent"],q=["ascii","utf-8","utf-16","latin1","latin1"],C=["get","post","put","delete"],A=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],S=["true","false"],n={},gt={a:{attrs:{href:null,ping:null,type:null,media:null,target:T,hreflang:null}},abbr:n,address:n,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:n,aside:n,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:n,base:{attrs:{href:null,target:T}},bdi:n,bdo:n,blockquote:{attrs:{cite:null}},body:n,br:n,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:A,formmethod:C,formnovalidate:["novalidate"],formtarget:T,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:n,center:n,cite:n,code:n,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:["command","checkbox","radio"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:["disabled"],checked:["checked"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:["disabled"],multiple:["multiple"]}},datalist:{attrs:{data:null}},dd:n,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:n,div:n,dl:n,dt:n,em:n,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:n,figure:n,footer:n,form:{attrs:{action:null,name:null,"accept-charset":q,autocomplete:["on","off"],enctype:A,method:C,novalidate:["novalidate"],target:T}},h1:n,h2:n,h3:n,h4:n,h5:n,h6:n,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:n,hgroup:n,hr:n,html:{attrs:{manifest:null}},i:n,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["autofocus"],checked:["checked"],disabled:["disabled"],formenctype:A,formmethod:C,formnovalidate:["novalidate"],formtarget:T,multiple:["multiple"],readonly:["readonly"],required:["required"],type:["hidden","text","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}},ins:{attrs:{cite:null,datetime:null}},kbd:n,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:n,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:null,media:null,sizes:["all","16x16","16x16 32x32","16x16 32x32 64x64"]}},map:{attrs:{name:null}},mark:n,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:q,name:["viewport","application-name","author","description","generator","keywords"],"http-equiv":["content-language","content-type","default-style","refresh"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:n,noscript:n,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:["typemustmatch"]}},ol:{attrs:{reversed:["reversed"],start:null,type:["1","a","A","i","I"]},children:["li","script","template","ul","ol"]},optgroup:{attrs:{disabled:["disabled"],label:null}},option:{attrs:{disabled:["disabled"],label:null,selected:["selected"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:n,param:{attrs:{name:null,value:null}},pre:n,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:n,rt:n,ruby:n,samp:n,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:q}},section:n,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:n,source:{attrs:{src:null,type:null,media:null}},span:n,strong:n,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:n,summary:n,sup:n,table:n,tbody:n,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:n,textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:["autofocus"],disabled:["disabled"],readonly:["readonly"],required:["required"],wrap:["soft","hard"]}},tfoot:n,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:n,time:{attrs:{datetime:null}},title:n,tr:n,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:n,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:["anonymous","use-credentials"],preload:["auto","metadata","none"],autoplay:["autoplay"],mediagroup:["movie"],muted:["muted"],controls:["controls"]}},wbr:n},ce={accesskey:null,class:null,contenteditable:S,contextmenu:null,dir:["ltr","rtl","auto"],draggable:["true","false","auto"],dropzone:["copy","move","link","string:","file:"],hidden:["hidden"],id:null,inert:["inert"],itemid:null,itemprop:null,itemref:null,itemscope:["itemscope"],itemtype:null,lang:["ar","bn","de","en-GB","en-US","es","fr","hi","id","ja","pa","pt","ru","tr","zh"],spellcheck:S,autocorrect:S,autocapitalize:S,style:null,tabindex:null,title:null,translate:["yes","no"],rel:["stylesheet","alternate","author","bookmark","help","license","next","nofollow","noreferrer","prefetch","prev","search","tag"],role:"alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),"aria-activedescendant":null,"aria-atomic":S,"aria-autocomplete":["inline","list","both","none"],"aria-busy":S,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":S,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":S,"aria-hidden":S,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":S,"aria-multiselectable":S,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":S,"aria-relevant":null,"aria-required":S,"aria-selected":["true","false","undefined"],"aria-setsize":null,"aria-sort":["ascending","descending","none","other"],"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null},de="beforeunload copy cut dragstart dragover dragleave dragenter dragend drag paste focus blur change click load mousedown mouseenter mouseleave mouseup keydown keyup resize scroll unload".split(" ").map(e=>"on"+e);for(let e of de)ce[e]=null;class V{constructor(a,r){this.tags=Object.assign(Object.assign({},gt),a),this.globalAttrs=Object.assign(Object.assign({},ce),r),this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}}V.default=new V;function b(e,a,r=e.length){if(!a)return"";let l=a.firstChild,t=l&&l.getChild("TagName");return t?e.sliceString(t.from,Math.min(t.to,r)):""}function P(e,a=!1){for(;e;e=e.parent)if(e.name=="Element")if(a)a=!1;else return e;return null}function pe(e,a,r){let l=r.tags[b(e,P(a))];return(l==null?void 0:l.children)||r.allTags}function E(e,a){let r=[];for(let l=P(a);l&&!l.type.isTop;l=P(l.parent)){let t=b(e,l);if(t&&l.lastChild.name=="CloseTag")break;t&&r.indexOf(t)<0&&(a.name=="EndTag"||a.from>=l.firstChild.to)&&r.push(t)}return r}const me=/^[:\-\.\w\u00b7-\uffff]*$/;function U(e,a,r,l,t){let s=/\s*>/.test(e.sliceDoc(t,t+5))?"":">",u=P(r,!0);return{from:l,to:t,options:pe(e.doc,u,a).map(o=>({label:o,type:"type"})).concat(E(e.doc,r).map((o,i)=>({label:"/"+o,apply:"/"+o+s,type:"type",boost:99-i}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function L(e,a,r,l){let t=/\s*>/.test(e.sliceDoc(l,l+5))?"":">";return{from:r,to:l,options:E(e.doc,a).map((s,u)=>({label:s,apply:s+t,type:"type",boost:99-u})),validFor:me}}function ht(e,a,r,l){let t=[],s=0;for(let u of pe(e.doc,r,a))t.push({label:"<"+u,type:"type"});for(let u of E(e.doc,r))t.push({label:"",type:"type",boost:99-s++});return{from:l,to:l,options:t,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}function bt(e,a,r,l,t){let s=P(r),u=s?a.tags[b(e.doc,s)]:null,o=u&&u.attrs?Object.keys(u.attrs):[],i=u&&u.globalAttrs===!1?o:o.length?o.concat(a.globalAttrNames):a.globalAttrNames;return{from:l,to:t,options:i.map(f=>({label:f,type:"property"})),validFor:me}}function Pt(e,a,r,l,t){var s;let u=(s=r.parent)===null||s===void 0?void 0:s.getChild("AttributeName"),o=[],i;if(u){let f=e.sliceDoc(u.from,u.to),c=a.globalAttrs[f];if(!c){let O=P(r),d=O?a.tags[b(e.doc,O)]:null;c=(d==null?void 0:d.attrs)&&d.attrs[f]}if(c){let O=e.sliceDoc(l,t).toLowerCase(),d='"',m='"';/^['"]/.test(O)?(i=O[0]=='"'?/^[^"]*$/:/^[^']*$/,d="",m=e.sliceDoc(t,t+1)==O[0]?"":O[0],O=O.slice(1),l++):i=/^[^\s<>='"]*$/;for(let p of c)o.push({label:p,apply:d+p+m,type:"constant"})}}return{from:l,to:t,options:o,validFor:i}}function fe(e,a){let{state:r,pos:l}=a,t=H(r).resolveInner(l,-1),s=t.resolve(l);for(let u=l,o;s==t&&(o=t.childBefore(u));){let i=o.lastChild;if(!i||!i.type.isError||i.fromfe(l,t)}const Se=[{tag:"script",attrs:e=>e.type=="text/typescript"||e.lang=="ts",parser:_e.parser},{tag:"script",attrs:e=>e.type=="text/babel"||e.type=="text/jsx",parser:qe.parser},{tag:"script",attrs:e=>e.type=="text/typescript-jsx",parser:Ce.parser},{tag:"script",attrs(e){return!e.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(e.type)},parser:J.parser},{tag:"style",attrs(e){return(!e.lang||e.lang=="css")&&(!e.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(e.type))},parser:K.parser}],ge=[{name:"style",parser:K.parser.configure({top:"Styles"})}].concat(de.map(e=>({name:e,parser:J.parser}))),he=ye.define({name:"html",parser:St.configure({props:[ve.add({Element(e){let a=/^(\s*)(<\/)?/.exec(e.textAfter);return e.node.to<=e.pos+a[0].length?e.continue():e.lineIndent(e.node.from)+(a[2]?0:e.unit)},"OpenTag CloseTag SelfClosingTag"(e){return e.column(e.node.from)+e.unit},Document(e){if(e.pos+/\s*/.exec(e.textAfter)[0].lengthe.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:""}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-._"}}),y=he.configure({wrap:ie(Se,ge)});function kt(e={}){let a="",r;e.matchClosingTags===!1&&(a="noMatch"),e.selfClosingTags===!0&&(a=(a?a+" ":"")+"selfClosing"),(e.nestedLanguages&&e.nestedLanguages.length||e.nestedAttributes&&e.nestedAttributes.length)&&(r=ie((e.nestedLanguages||[]).concat(Se),(e.nestedAttributes||[]).concat(ge)));let l=r?he.configure({wrap:r,dialect:a}):a?y.configure({dialect:a}):y;return new Ve(l,[y.data.of({autocomplete:xt(e)}),e.autoCloseTags!==!1?Tt:[],Ae().support,$e().support])}const F=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")),Tt=we.inputHandler.of((e,a,r,l)=>{if(e.composing||e.state.readOnly||a!=r||l!=">"&&l!="/"||!y.isActiveAt(e.state,a,-1))return!1;let{state:t}=e,s=t.changeByRange(u=>{var o,i,f;let{head:c}=u,O=H(t).resolveInner(c,-1),d;if((O.name=="TagName"||O.name=="StartTag")&&(O=O.parent),l==">"&&O.name=="OpenTag"){if(((i=(o=O.parent)===null||o===void 0?void 0:o.lastChild)===null||i===void 0?void 0:i.name)!="CloseTag"&&(d=b(t.doc,O.parent,c))&&!F.has(d)){let m=e.state.doc.sliceString(c,c+1)===">",p=`${m?"":">"}`;return{range:Z.cursor(c+1),changes:{from:c+(m?1:0),insert:p}}}}else if(l=="/"&&O.name=="OpenTag"){let m=O.parent,p=m==null?void 0:m.parent;if(m.from==c-1&&((f=p.lastChild)===null||f===void 0?void 0:f.name)!="CloseTag"&&(d=b(t.doc,p,c))&&!F.has(d)){let h=e.state.doc.sliceString(c,c+1)===">",x=`/${d}${h?"":">"}`,w=c+x.length+(h?1:0);return{range:Z.cursor(w),changes:{from:c,insert:x}}}}return{range:u}});return s.changes.empty?!1:(e.dispatch(s,{userEvent:"input.type",scrollIntoView:!0}),!0)});export{kt as a,Xt as h}; +import{C as be,E as k,L as Pe}from"./index.f562a38b.js";import{s as xe,t as g,p as Te,h as H,b as Ve,v as we,E as Z,L as ye,i as ve,f as Xe,w as ke}from"./4.cfac87d8.js";import{cssLanguage as K,css as $e}from"./index.b1c4f1af.js";import{t as _e,b as qe,c as Ce,j as J,a as Ae}from"./index.3f5bb107.js";const Qe=54,Ye=1,Me=55,Re=2,Ee=56,Ze=3,B=4,Be=5,v=6,ee=7,te=8,ae=9,le=10,We=11,ze=12,De=13,$=57,Ne=14,W=58,re=20,Ge=22,ne=23,je=24,Q=26,se=27,Ie=28,Ue=31,Le=34,Fe=36,He=37,Ke=0,Je=1,et={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},tt={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},z={dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}};function at(e){return e==45||e==46||e==58||e>=65&&e<=90||e==95||e>=97&&e<=122||e>=161}function oe(e){return e==9||e==10||e==13||e==32}let D=null,N=null,G=0;function Y(e,a){let r=e.pos+a;if(G==r&&N==e)return D;let l=e.peek(a);for(;oe(l);)l=e.peek(++a);let t="";for(;at(l);)t+=String.fromCharCode(l),l=e.peek(++a);return N=e,G=r,D=t?t.toLowerCase():l==lt||l==rt?void 0:null}const ue=60,X=62,M=47,lt=63,rt=33,nt=45;function j(e,a){this.name=e,this.parent=a,this.hash=a?a.hash:0;for(let r=0;r-1?new j(Y(l,1)||"",e):e},reduce(e,a){return a==re&&e?e.parent:e},reuse(e,a,r,l){let t=a.type.id;return t==v||t==Fe?new j(Y(l,1)||"",e):e},hash(e){return e?e.hash:0},strict:!1}),ut=new k((e,a)=>{if(e.next!=ue){e.next<0&&a.context&&e.acceptToken($);return}e.advance();let r=e.next==M;r&&e.advance();let l=Y(e,0);if(l===void 0)return;if(!l)return e.acceptToken(r?Ne:v);let t=a.context?a.context.name:null;if(r){if(l==t)return e.acceptToken(We);if(t&&tt[t])return e.acceptToken($,-2);if(a.dialectEnabled(Ke))return e.acceptToken(ze);for(let s=a.context;s;s=s.parent)if(s.name==l)return;e.acceptToken(De)}else{if(l=="script")return e.acceptToken(ee);if(l=="style")return e.acceptToken(te);if(l=="textarea")return e.acceptToken(ae);if(et.hasOwnProperty(l))return e.acceptToken(le);t&&z[t]&&z[t][l]?e.acceptToken($,-1):e.acceptToken(v)}},{contextual:!0}),Ot=new k(e=>{for(let a=0,r=0;;r++){if(e.next<0){r&&e.acceptToken(W);break}if(e.next==nt)a++;else if(e.next==X&&a>=2){r>3&&e.acceptToken(W,-2);break}else a=0;e.advance()}});function it(e){for(;e;e=e.parent)if(e.name=="svg"||e.name=="math")return!0;return!1}const ct=new k((e,a)=>{if(e.next==M&&e.peek(1)==X){let r=a.dialectEnabled(Je)||it(a.context);e.acceptToken(r?Be:B,2)}else e.next==X&&e.acceptToken(B,1)});function R(e,a,r){let l=2+e.length;return new k(t=>{for(let s=0,u=0,o=0;;o++){if(t.next<0){o&&t.acceptToken(a);break}if(s==0&&t.next==ue||s==1&&t.next==M||s>=2&&su?t.acceptToken(a,-u):t.acceptToken(r,-(u-2));break}else if((t.next==10||t.next==13)&&o){t.acceptToken(a,1);break}else s=u=0;t.advance()}})}const dt=R("script",Qe,Ye),pt=R("style",Me,Re),mt=R("textarea",Ee,Ze),ft=xe({"Text RawText":g.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":g.angleBracket,TagName:g.tagName,"MismatchedCloseTag/TagName":[g.tagName,g.invalid],AttributeName:g.attributeName,"AttributeValue UnquotedAttributeValue":g.attributeValue,Is:g.definitionOperator,"EntityReference CharacterReference":g.character,Comment:g.blockComment,ProcessingInst:g.processingInstruction,DoctypeDecl:g.documentMeta}),St=Pe.deserialize({version:14,states:",xOVO!rOOO!WQ#tO'#CqO!]Q#tO'#CzO!bQ#tO'#C}O!gQ#tO'#DQO!lQ#tO'#DSO!qOaO'#CpO!|ObO'#CpO#XOdO'#CpO$eO!rO'#CpOOO`'#Cp'#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XiOQoP!ZoP~O!YlORrP!ZrP~OUSOVPOWQOXROYTOZqO[]O][O^^O`^Oa^Ob^Oc^Ox^O!dZO~O!ZrO~P#dO![sO!euO~OfvO~OfwO~OS|OhyO~OS!OOhyO~OS!QOhyO~OS!SOT!TOhyO~OS!TOhyO~O!WfOPlX!ZlX~OP!WO!Z!XO~O!XiOQoX!ZoX~OQ!ZO!Z!XO~O!YlORrX!ZrX~OR!]O!Z!XO~O!Z!XO~P#dOf!_O~O![sO!e!aO~OS!bO~OS!cO~Oi!dOSgXhgXTgX~OS!fOhyO~OS!gOhyO~OS!hOhyO~OS!iOT!jOhyO~OS!jOhyO~Of!kO~Of!lO~Of!mO~OS!nO~Ok!qO!`!oO!b!pO~OS!rO~OS!sO~OS!tO~Oa!uOb!uOc!uO!`!wO!a!uO~Oa!xOb!xOc!xO!b!wO!c!xO~Oa!uOb!uOc!uO!`!{O!a!uO~Oa!xOb!xOc!xO!b!{O!c!xO~OT~bac!dx{!d~",goto:"%p!`PPPPPPPPPPPPPPPPPPPP!a!gP!mPP!yP!|#P#S#Y#]#`#f#i#l#r#x!aP!a!aP$O$U$l$r$x%O%U%[%bPPPPPPPP%hX^OX`pXUOX`pezabcde{}!P!R!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ}bQ!PcQ!RdQ!UeZ!e{}!P!R!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:"⚠ StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:67,context:ot,nodeProps:[["closedBy",-10,1,2,3,7,8,9,10,11,12,13,"EndTag",6,"EndTag SelfClosingEndTag",-4,21,30,33,36,"CloseTag"],["openedBy",4,"StartTag StartCloseTag",5,"StartTag",-4,29,32,35,37,"OpenTag"],["group",-9,14,17,18,19,20,39,40,41,42,"Entity",16,"Entity TextContent",-3,28,31,34,"TextContent Entity"]],propSources:[ft],skippedNodes:[0],repeatNodeCount:9,tokenData:"!]tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^/^!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!Z5zbkWOX5uXZ7SZ[5u[^7S^p5uqr5urs7Sst+Ptw5uwx7Sx!]5u!]!^7w!^!a7S!a#S5u#S#T7S#T;'S5u;'S;=`8n<%lO5u!R7VVOp7Sqs7St!]7S!]!^7l!^;'S7S;'S;=`7q<%lO7S!R7qOa!R!R7tP;=`<%l7S!Z8OYkWa!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!Z8qP;=`<%l5u!_8{ihSkWOX5uXZ7SZ[5u[^7S^p5uqr8trs7Sst/^tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^:j!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!_:sbhSkWa!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!VP<%l?Ah;{?Ah?BY7S?BY?Mn;{?MnO7S!V=dXhSa!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!V>SP;=`<%l;{!_>YP;=`<%l8t!_>d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let c=o.node,O;if(O=c.firstChild){let d=u[i.read(O.from,O.to)];if(d)for(let m of d){if(m.tagName&&m.tagName!=I(c.parent,i))continue;let p=c.lastChild;if(p.type.id==Q){let h=p.from+1,x=p.lastChild,w=p.to-(x&&x.isError?0:1);if(w>h)return{parser:m.parser,overlay:[{from:h,to:w}]}}else if(p.type.id==se)return{parser:m.parser,overlay:[{from:p.from,to:p.to}]}}}}return null})}const T=["_blank","_self","_top","_parent"],q=["ascii","utf-8","utf-16","latin1","latin1"],C=["get","post","put","delete"],A=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],S=["true","false"],n={},gt={a:{attrs:{href:null,ping:null,type:null,media:null,target:T,hreflang:null}},abbr:n,address:n,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:n,aside:n,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:n,base:{attrs:{href:null,target:T}},bdi:n,bdo:n,blockquote:{attrs:{cite:null}},body:n,br:n,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:A,formmethod:C,formnovalidate:["novalidate"],formtarget:T,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:n,center:n,cite:n,code:n,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:["command","checkbox","radio"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:["disabled"],checked:["checked"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:["disabled"],multiple:["multiple"]}},datalist:{attrs:{data:null}},dd:n,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:n,div:n,dl:n,dt:n,em:n,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:n,figure:n,footer:n,form:{attrs:{action:null,name:null,"accept-charset":q,autocomplete:["on","off"],enctype:A,method:C,novalidate:["novalidate"],target:T}},h1:n,h2:n,h3:n,h4:n,h5:n,h6:n,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:n,hgroup:n,hr:n,html:{attrs:{manifest:null}},i:n,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["autofocus"],checked:["checked"],disabled:["disabled"],formenctype:A,formmethod:C,formnovalidate:["novalidate"],formtarget:T,multiple:["multiple"],readonly:["readonly"],required:["required"],type:["hidden","text","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}},ins:{attrs:{cite:null,datetime:null}},kbd:n,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:n,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:null,media:null,sizes:["all","16x16","16x16 32x32","16x16 32x32 64x64"]}},map:{attrs:{name:null}},mark:n,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:q,name:["viewport","application-name","author","description","generator","keywords"],"http-equiv":["content-language","content-type","default-style","refresh"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:n,noscript:n,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:["typemustmatch"]}},ol:{attrs:{reversed:["reversed"],start:null,type:["1","a","A","i","I"]},children:["li","script","template","ul","ol"]},optgroup:{attrs:{disabled:["disabled"],label:null}},option:{attrs:{disabled:["disabled"],label:null,selected:["selected"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:n,param:{attrs:{name:null,value:null}},pre:n,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:n,rt:n,ruby:n,samp:n,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:q}},section:n,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:n,source:{attrs:{src:null,type:null,media:null}},span:n,strong:n,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:n,summary:n,sup:n,table:n,tbody:n,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:n,textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:["autofocus"],disabled:["disabled"],readonly:["readonly"],required:["required"],wrap:["soft","hard"]}},tfoot:n,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:n,time:{attrs:{datetime:null}},title:n,tr:n,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:n,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:["anonymous","use-credentials"],preload:["auto","metadata","none"],autoplay:["autoplay"],mediagroup:["movie"],muted:["muted"],controls:["controls"]}},wbr:n},ce={accesskey:null,class:null,contenteditable:S,contextmenu:null,dir:["ltr","rtl","auto"],draggable:["true","false","auto"],dropzone:["copy","move","link","string:","file:"],hidden:["hidden"],id:null,inert:["inert"],itemid:null,itemprop:null,itemref:null,itemscope:["itemscope"],itemtype:null,lang:["ar","bn","de","en-GB","en-US","es","fr","hi","id","ja","pa","pt","ru","tr","zh"],spellcheck:S,autocorrect:S,autocapitalize:S,style:null,tabindex:null,title:null,translate:["yes","no"],rel:["stylesheet","alternate","author","bookmark","help","license","next","nofollow","noreferrer","prefetch","prev","search","tag"],role:"alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),"aria-activedescendant":null,"aria-atomic":S,"aria-autocomplete":["inline","list","both","none"],"aria-busy":S,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":S,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":S,"aria-hidden":S,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":S,"aria-multiselectable":S,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":S,"aria-relevant":null,"aria-required":S,"aria-selected":["true","false","undefined"],"aria-setsize":null,"aria-sort":["ascending","descending","none","other"],"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null},de="beforeunload copy cut dragstart dragover dragleave dragenter dragend drag paste focus blur change click load mousedown mouseenter mouseleave mouseup keydown keyup resize scroll unload".split(" ").map(e=>"on"+e);for(let e of de)ce[e]=null;class V{constructor(a,r){this.tags=Object.assign(Object.assign({},gt),a),this.globalAttrs=Object.assign(Object.assign({},ce),r),this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}}V.default=new V;function b(e,a,r=e.length){if(!a)return"";let l=a.firstChild,t=l&&l.getChild("TagName");return t?e.sliceString(t.from,Math.min(t.to,r)):""}function P(e,a=!1){for(;e;e=e.parent)if(e.name=="Element")if(a)a=!1;else return e;return null}function pe(e,a,r){let l=r.tags[b(e,P(a))];return(l==null?void 0:l.children)||r.allTags}function E(e,a){let r=[];for(let l=P(a);l&&!l.type.isTop;l=P(l.parent)){let t=b(e,l);if(t&&l.lastChild.name=="CloseTag")break;t&&r.indexOf(t)<0&&(a.name=="EndTag"||a.from>=l.firstChild.to)&&r.push(t)}return r}const me=/^[:\-\.\w\u00b7-\uffff]*$/;function U(e,a,r,l,t){let s=/\s*>/.test(e.sliceDoc(t,t+5))?"":">",u=P(r,!0);return{from:l,to:t,options:pe(e.doc,u,a).map(o=>({label:o,type:"type"})).concat(E(e.doc,r).map((o,i)=>({label:"/"+o,apply:"/"+o+s,type:"type",boost:99-i}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function L(e,a,r,l){let t=/\s*>/.test(e.sliceDoc(l,l+5))?"":">";return{from:r,to:l,options:E(e.doc,a).map((s,u)=>({label:s,apply:s+t,type:"type",boost:99-u})),validFor:me}}function ht(e,a,r,l){let t=[],s=0;for(let u of pe(e.doc,r,a))t.push({label:"<"+u,type:"type"});for(let u of E(e.doc,r))t.push({label:"",type:"type",boost:99-s++});return{from:l,to:l,options:t,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}function bt(e,a,r,l,t){let s=P(r),u=s?a.tags[b(e.doc,s)]:null,o=u&&u.attrs?Object.keys(u.attrs):[],i=u&&u.globalAttrs===!1?o:o.length?o.concat(a.globalAttrNames):a.globalAttrNames;return{from:l,to:t,options:i.map(f=>({label:f,type:"property"})),validFor:me}}function Pt(e,a,r,l,t){var s;let u=(s=r.parent)===null||s===void 0?void 0:s.getChild("AttributeName"),o=[],i;if(u){let f=e.sliceDoc(u.from,u.to),c=a.globalAttrs[f];if(!c){let O=P(r),d=O?a.tags[b(e.doc,O)]:null;c=(d==null?void 0:d.attrs)&&d.attrs[f]}if(c){let O=e.sliceDoc(l,t).toLowerCase(),d='"',m='"';/^['"]/.test(O)?(i=O[0]=='"'?/^[^"]*$/:/^[^']*$/,d="",m=e.sliceDoc(t,t+1)==O[0]?"":O[0],O=O.slice(1),l++):i=/^[^\s<>='"]*$/;for(let p of c)o.push({label:p,apply:d+p+m,type:"constant"})}}return{from:l,to:t,options:o,validFor:i}}function fe(e,a){let{state:r,pos:l}=a,t=H(r).resolveInner(l,-1),s=t.resolve(l);for(let u=l,o;s==t&&(o=t.childBefore(u));){let i=o.lastChild;if(!i||!i.type.isError||i.fromfe(l,t)}const Se=[{tag:"script",attrs:e=>e.type=="text/typescript"||e.lang=="ts",parser:_e.parser},{tag:"script",attrs:e=>e.type=="text/babel"||e.type=="text/jsx",parser:qe.parser},{tag:"script",attrs:e=>e.type=="text/typescript-jsx",parser:Ce.parser},{tag:"script",attrs(e){return!e.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(e.type)},parser:J.parser},{tag:"style",attrs(e){return(!e.lang||e.lang=="css")&&(!e.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(e.type))},parser:K.parser}],ge=[{name:"style",parser:K.parser.configure({top:"Styles"})}].concat(de.map(e=>({name:e,parser:J.parser}))),he=ye.define({name:"html",parser:St.configure({props:[ve.add({Element(e){let a=/^(\s*)(<\/)?/.exec(e.textAfter);return e.node.to<=e.pos+a[0].length?e.continue():e.lineIndent(e.node.from)+(a[2]?0:e.unit)},"OpenTag CloseTag SelfClosingTag"(e){return e.column(e.node.from)+e.unit},Document(e){if(e.pos+/\s*/.exec(e.textAfter)[0].lengthe.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:""}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-._"}}),y=he.configure({wrap:ie(Se,ge)});function kt(e={}){let a="",r;e.matchClosingTags===!1&&(a="noMatch"),e.selfClosingTags===!0&&(a=(a?a+" ":"")+"selfClosing"),(e.nestedLanguages&&e.nestedLanguages.length||e.nestedAttributes&&e.nestedAttributes.length)&&(r=ie((e.nestedLanguages||[]).concat(Se),(e.nestedAttributes||[]).concat(ge)));let l=r?he.configure({wrap:r,dialect:a}):a?y.configure({dialect:a}):y;return new Ve(l,[y.data.of({autocomplete:xt(e)}),e.autoCloseTags!==!1?Tt:[],Ae().support,$e().support])}const F=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")),Tt=we.inputHandler.of((e,a,r,l)=>{if(e.composing||e.state.readOnly||a!=r||l!=">"&&l!="/"||!y.isActiveAt(e.state,a,-1))return!1;let{state:t}=e,s=t.changeByRange(u=>{var o,i,f;let{head:c}=u,O=H(t).resolveInner(c,-1),d;if((O.name=="TagName"||O.name=="StartTag")&&(O=O.parent),l==">"&&O.name=="OpenTag"){if(((i=(o=O.parent)===null||o===void 0?void 0:o.lastChild)===null||i===void 0?void 0:i.name)!="CloseTag"&&(d=b(t.doc,O.parent,c))&&!F.has(d)){let m=e.state.doc.sliceString(c,c+1)===">",p=`${m?"":">"}`;return{range:Z.cursor(c+1),changes:{from:c+(m?1:0),insert:p}}}}else if(l=="/"&&O.name=="OpenTag"){let m=O.parent,p=m==null?void 0:m.parent;if(m.from==c-1&&((f=p.lastChild)===null||f===void 0?void 0:f.name)!="CloseTag"&&(d=b(t.doc,p,c))&&!F.has(d)){let h=e.state.doc.sliceString(c,c+1)===">",x=`/${d}${h?"":">"}`,w=c+x.length+(h?1:0);return{range:Z.cursor(w),changes:{from:c,insert:x}}}}return{range:u}});return s.changes.empty?!1:(e.dispatch(s,{userEvent:"input.type",scrollIntoView:!0}),!0)});export{kt as a,Xt as h}; diff --git a/docs/_app/immutable/chunks/index.cf31950d.js b/docs/_app/immutable/chunks/index.cf31950d.js new file mode 100644 index 0000000..e317c60 --- /dev/null +++ b/docs/_app/immutable/chunks/index.cf31950d.js @@ -0,0 +1,4 @@ +var K=Object.defineProperty;var T=(t,e,n)=>e in t?K(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var A=(t,e,n)=>(T(t,typeof e!="symbol"?e+"":e,n),n);import{r as w,a0 as W,a1 as X,d as V,N as E,Q as j,J as O,a2 as Y,a3 as I,a4 as Q,h as Z,a5 as tt,a6 as et,a7 as nt,a8 as it,a9 as U,aa as st,ab as rt,ac as at,ad as ot,ae as ft}from"./scheduler.6381a9b9.js";const q=typeof window<"u";let B=q?()=>window.performance.now():()=>Date.now(),D=q?t=>requestAnimationFrame(t):w;const k=new Set;function G(t){k.forEach(e=>{e.c(t)||(k.delete(e),e.f())}),k.size!==0&&D(G)}function F(t){let e;return k.size===0&&D(G),{promise:new Promise(n=>{k.add(e={c:t,f:n})}),abort(){k.delete(e)}}}const N=new Map;let P=0;function ut(t){let e=5381,n=t.length;for(;n--;)e=(e<<5)-e^t.charCodeAt(n);return e>>>0}function ct(t,e){const n={stylesheet:X(e),rules:{}};return N.set(t,n),n}function R(t,e,n,s,u,a,c,i=0){const l=16.666/s;let r=`{ +`;for(let $=0;$<=1;$+=l){const m=e+(n-e)*a($);r+=$*100+`%{${c(m,1-m)}} +`}const d=r+`100% {${c(n,1-n)}} +}`,f=`__svelte_${ut(d)}_${i}`,g=W(t),{stylesheet:h,rules:o}=N.get(g)||ct(g,t);o[f]||(o[f]=!0,h.insertRule(`@keyframes ${f} ${d}`,h.cssRules.length));const _=t.style.animation||"";return t.style.animation=`${_?`${_}, `:""}${f} ${s}ms linear ${u}ms 1 both`,P+=1,f}function z(t,e){const n=(t.style.animation||"").split(", "),s=n.filter(e?a=>a.indexOf(e)<0:a=>a.indexOf("__svelte")===-1),u=n.length-s.length;u&&(t.style.animation=s.join(", "),P-=u,P||lt())}function lt(){D(()=>{P||(N.forEach(t=>{const{ownerNode:e}=t.stylesheet;e&&V(e)}),N.clear())})}let S;function J(){return S||(S=Promise.resolve(),S.then(()=>{S=null})),S}function v(t,e,n){t.dispatchEvent(Y(`${e?"intro":"outro"}${n}`))}const M=new Set;let p;function yt(){p={r:0,c:[],p}}function xt(){p.r||E(p.c),p=p.p}function dt(t,e){t&&t.i&&(M.delete(t),t.i(e))}function vt(t,e,n,s){if(t&&t.o){if(M.has(t))return;M.add(t),p.c.push(()=>{M.delete(t),s&&(n&&t.d(1),s())}),t.o(e)}else s&&s()}const L={duration:0};function wt(t,e,n){const s={direction:"in"};let u=e(t,n,s),a=!1,c,i,l=0;function r(){c&&z(t,c)}function d(){const{delay:g=0,duration:h=300,easing:o=I,tick:_=w,css:$}=u||L;$&&(c=R(t,0,1,h,g,o,$,l++)),_(0,1);const m=B()+g,y=m+h;i&&i.abort(),a=!0,O(()=>v(t,!0,"start")),i=F(x=>{if(a){if(x>=y)return _(1,0),v(t,!0,"end"),r(),a=!1;if(x>=m){const b=o((x-m)/h);_(b,1-b)}}return a})}let f=!1;return{start(){f||(f=!0,z(t),j(u)?(u=u(s),J().then(d)):d())},invalidate(){f=!1},end(){a&&(r(),a=!1)}}}function bt(t,e,n){const s={direction:"out"};let u=e(t,n,s),a=!0,c;const i=p;i.r+=1;let l;function r(){const{delay:d=0,duration:f=300,easing:g=I,tick:h=w,css:o}=u||L;o&&(c=R(t,1,0,f,d,g,o));const _=B()+d,$=_+f;O(()=>v(t,!1,"start")),"inert"in t&&(l=t.inert,t.inert=!0),F(m=>{if(a){if(m>=$)return h(0,1),v(t,!1,"end"),--i.r||E(i.c),!1;if(m>=_){const y=g((m-_)/f);h(1-y,y)}}return a})}return j(u)?J().then(()=>{u=u(s),r()}):r(),{end(d){d&&"inert"in t&&(t.inert=l),d&&u.tick&&u.tick(1,0),a&&(c&&z(t,c),a=!1)}}}function kt(t,e,n,s){let a=e(t,n,{direction:"both"}),c=s?0:1,i=null,l=null,r=null,d;function f(){r&&z(t,r)}function g(o,_){const $=o.b-c;return _*=Math.abs($),{a:c,b:o.b,d:$,duration:_,start:o.start,end:o.start+_,group:o.group}}function h(o){const{delay:_=0,duration:$=300,easing:m=I,tick:y=w,css:x}=a||L,b={start:B()+_,b:o};o||(b.group=p,p.r+=1),"inert"in t&&(o?d!==void 0&&(t.inert=d):(d=t.inert,t.inert=!0)),i||l?l=b:(x&&(f(),r=R(t,c,o,$,_,m,x)),o&&y(0,1),i=g(b,$),O(()=>v(t,o,"start")),F(C=>{if(l&&C>l.start&&(i=g(l,$),l=null,v(t,i.b,"start"),x&&(f(),r=R(t,c,i.b,i.duration,0,m,a.css))),i){if(C>=i.end)y(c=i.b,1-c),v(t,i.b,"end"),l||(i.b?f():--i.group.r||E(i.group.c)),i=null;else if(C>=i.start){const H=C-i.start;c=i.a+i.d*m(H/i.duration),y(c,1-c)}}return!!(i||l)}))}return{run(o){j(a)?J().then(()=>{a=a({direction:o?"in":"out"}),h(o)}):h(o)},end(){f(),i=l=null}}}function Et(t,e,n){const s=t.$$.props[e];s!==void 0&&(t.$$.bound[s]=n,n(t.$$.ctx[s]))}function St(t){t&&t.c()}function Ot(t,e){t&&t.l(e)}function _t(t,e,n){const{fragment:s,after_update:u}=t.$$;s&&s.m(e,n),O(()=>{const a=t.$$.on_mount.map(st).filter(j);t.$$.on_destroy?t.$$.on_destroy.push(...a):E(a),t.$$.on_mount=[]}),u.forEach(O)}function $t(t,e){const n=t.$$;n.fragment!==null&&(nt(n.after_update),E(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function ht(t,e){t.$$.dirty[0]===-1&&(rt.push(t),at(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<{const o=h.length?h[0]:g;return r.ctx&&u(r.ctx[f],r.ctx[f]=o)&&(!r.skip_bound&&r.bound[f]&&r.bound[f](o),d&&ht(t,f)),g}):[],r.update(),d=!0,E(r.before_update),r.fragment=s?s(r.ctx):!1,e.target){if(e.hydrate){ot();const f=Z(e.target);r.fragment&&r.fragment.l(f),f.forEach(V)}else r.fragment&&r.fragment.c();e.intro&&dt(t.$$.fragment),_t(t,e.target,e.anchor),ft(),tt()}U(l)}class Ct{constructor(){A(this,"$$");A(this,"$$set")}$destroy(){$t(this,1),this.$destroy=w}$on(e,n){if(!j(n))return w;const s=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return s.push(n),()=>{const u=s.indexOf(n);u!==-1&&s.splice(u,1)}}$set(e){this.$$set&&!et(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const gt="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(gt);export{Ct as S,dt as a,St as b,xt as c,Ot as d,$t as e,kt as f,yt as g,Et as h,jt as i,wt as j,bt as k,F as l,_t as m,B as n,vt as t}; diff --git a/docs/_app/immutable/chunks/index.3480e68f.js b/docs/_app/immutable/chunks/index.db8309a6.js similarity index 99% rename from docs/_app/immutable/chunks/index.3480e68f.js rename to docs/_app/immutable/chunks/index.db8309a6.js index 9b8d3c1..dc59223 100644 --- a/docs/_app/immutable/chunks/index.3480e68f.js +++ b/docs/_app/immutable/chunks/index.db8309a6.js @@ -1 +1 @@ -import{h as k,ad as je,E as x,ae as xe,af as $e,S as O,J as ve,j as we,k as Ce,v as F,ag as We,G as S,C as v,M as K,K as Ne,O as J,ah as Ue,V as qe,ai as Q,aj as Ve,B as U,ak as X,al as ne,F as Se,am as ze,an as He}from"./4.ae3ce863.js";class Ie{constructor(e,t,n){this.state=e,this.pos=t,this.explicit=n,this.abortListeners=[]}tokenBefore(e){let t=k(this.state).resolveInner(this.pos,-1);for(;t&&e.indexOf(t.name)<0;)t=t.parent;return t?{from:t.from,to:this.pos,text:this.state.sliceDoc(t.from,this.pos),type:t.type}:null}matchBefore(e){let t=this.state.doc.lineAt(this.pos),n=Math.max(t.from,this.pos-250),s=t.text.slice(n-t.from,this.pos-t.from),o=s.search(Oe(e,!1));return o<0?null:{from:n+o,to:this.pos,text:s.slice(o)}}get aborted(){return this.abortListeners==null}addEventListener(e,t){e=="abort"&&this.abortListeners&&this.abortListeners.push(t)}}function se(i){let e=Object.keys(i).join(""),t=/\w/.test(e);return t&&(e=e.replace(/\w/g,"")),`[${t?"\\w":""}${e.replace(/[^\w\s]/g,"\\$&")}]`}function Ke(i){let e=Object.create(null),t=Object.create(null);for(let{label:s}of i){e[s[0]]=!0;for(let o=1;otypeof s=="string"?{label:s}:s),[t,n]=e.every(s=>/^\w+$/.test(s.label))?[/\w*$/,/\w+$/]:Ke(e);return s=>{let o=s.matchBefore(n);return o||s.explicit?{from:o?o.from:s.pos,options:e,validFor:t}:null}}function Wt(i,e){return t=>{for(let n=k(t.state).resolveInner(t.pos,-1);n;n=n.parent){if(i.indexOf(n.name)>-1)return e(t);if(n.type.isTop)break}return null}}function Nt(i,e){return t=>{for(let n=k(t.state).resolveInner(t.pos,-1);n;n=n.parent){if(i.indexOf(n.name)>-1)return null;if(n.type.isTop)break}return e(t)}}class oe{constructor(e,t,n,s){this.completion=e,this.source=t,this.match=n,this.score=s}}function I(i){return i.selection.main.from}function Oe(i,e){var t;let{source:n}=i,s=e&&n[0]!="^",o=n[n.length-1]!="$";return!s&&!o?i:new RegExp(`${s?"^":""}(?:${n})${o?"$":""}`,(t=i.flags)!==null&&t!==void 0?t:i.ignoreCase?"i":"")}const Ee=je.define();function Xe(i,e,t,n){let{main:s}=i.selection,o=t-s.from,l=n-s.from;return Object.assign(Object.assign({},i.changeByRange(a=>a!=s&&t!=n&&i.sliceDoc(a.from+o,a.from+l)!=i.sliceDoc(t,n)?{range:a}:{changes:{from:a.from+o,to:n==s.from?a.to:a.from+l,insert:e},range:x.cursor(a.from+o+e.length)})),{userEvent:"input.complete"})}const le=new WeakMap;function Ge(i){if(!Array.isArray(i))return i;let e=le.get(i);return e||le.set(i,e=Qe(i)),e}const Y=O.define(),D=O.define();class Je{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let t=0;t=48&&g<=57||g>=97&&g<=122?2:g>=65&&g<=90?1:0:($=Se(g))!=$.toLowerCase()?1:$!=$.toUpperCase()?2:0;(!d||z==1&&Fe||C==0&&z!=0)&&(t[h]==g||n[h]==g&&(u=!0)?l[h++]=d:l.length&&(V=!1)),C=z,d+=S(g)}return h==r&&l[0]==0&&V?this.result(-100+(u?-200:0),l,e):p==r&&w==0?this.ret(-200-e.length+(E==e.length?0:-100),[0,E]):a>-1?this.ret(-700-e.length,[a,a+this.pattern.length]):p==r?this.ret(-200+-700-e.length,[w,E]):h==r?this.result(-100+(u?-200:0)+-700+(V?0:-1100),l,e):t.length==2?!1:this.result((s[0]?-700:0)+-200+-1100,s,e)}result(e,t,n){let s=[],o=0;for(let l of t){let a=l+(this.astral?S(v(n,l)):1);o&&s[o-1]==l?s[o-1]=a:(s[o++]=l,s[o++]=a)}return this.ret(e-n.length,s)}}const y=ve.define({combine(i){return Ne(i,{activateOnTyping:!0,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:Ye,compareCompletions:(e,t)=>e.label.localeCompare(t.label),interactionDelay:75},{defaultKeymap:(e,t)=>e&&t,closeOnBlur:(e,t)=>e&&t,icons:(e,t)=>e&&t,tooltipClass:(e,t)=>n=>re(e(n),t(n)),optionClass:(e,t)=>n=>re(e(n),t(n)),addToOptions:(e,t)=>e.concat(t)})}});function re(i,e){return i?e?i+" "+e:i:e}function Ye(i,e,t,n,s){let o=i.textDirection==ze.RTL,l=o,a=!1,r="top",c,f,h=e.left-s.left,u=s.right-e.right,p=n.right-n.left,w=n.bottom-n.top;if(l&&h=w||E>e.top?c=t.bottom-e.top:(r="bottom",c=e.bottom-t.top)}return{style:`${r}: ${c}px; max-width: ${f}px`,class:"cm-completionInfo-"+(a?o?"left-narrow":"right-narrow":l?"left":"right")}}function Ze(i){let e=i.addToOptions.slice();return i.icons&&e.push({render(t){let n=document.createElement("div");return n.classList.add("cm-completionIcon"),t.type&&n.classList.add(...t.type.split(/\s+/g).map(s=>"cm-completionIcon-"+s)),n.setAttribute("aria-hidden","true"),n},position:20}),e.push({render(t,n,s){let o=document.createElement("span");o.className="cm-completionLabel";let l=t.displayLabel||t.label,a=0;for(let r=0;ra&&o.appendChild(document.createTextNode(l.slice(a,c)));let h=o.appendChild(document.createElement("span"));h.appendChild(document.createTextNode(l.slice(c,f))),h.className="cm-completionMatchedText",a=f}return at.position-n.position).map(t=>t.render)}function ae(i,e,t){if(i<=t)return{from:0,to:i};if(e<0&&(e=0),e<=i>>1){let s=Math.floor(e/t);return{from:s*t,to:(s+1)*t}}let n=Math.floor((i-e)/t);return{from:i-(n+1)*t,to:i-n*t}}class _e{constructor(e,t,n){this.view=e,this.stateField=t,this.applyCompletion=n,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:r=>this.placeInfo(r),key:this},this.space=null,this.currentClass="";let s=e.state.field(t),{options:o,selected:l}=s.open,a=e.state.facet(y);this.optionContent=Ze(a),this.optionClass=a.optionClass,this.tooltipClass=a.tooltipClass,this.range=ae(o.length,l,a.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(e.state),this.dom.addEventListener("mousedown",r=>{for(let c=r.target,f;c&&c!=this.dom;c=c.parentNode)if(c.nodeName=="LI"&&(f=/-(\d+)$/.exec(c.id))&&+f[1]{let c=e.state.field(this.stateField,!1);c&&c.tooltip&&e.state.facet(y).closeOnBlur&&r.relatedTarget!=e.contentDOM&&e.dispatch({effects:D.of(null)})}),this.list=this.dom.appendChild(this.createListBox(o,s.id,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}mount(){this.updateSel()}update(e){var t,n,s;let o=e.state.field(this.stateField),l=e.startState.field(this.stateField);this.updateTooltipClass(e.state),o!=l&&(this.updateSel(),((t=o.open)===null||t===void 0?void 0:t.disabled)!=((n=l.open)===null||n===void 0?void 0:n.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!(!((s=o.open)===null||s===void 0)&&s.disabled)))}updateTooltipClass(e){let t=this.tooltipClass(e);if(t!=this.currentClass){for(let n of this.currentClass.split(" "))n&&this.dom.classList.remove(n);for(let n of t.split(" "))n&&this.dom.classList.add(n);this.currentClass=t}}positioned(e){this.space=e,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let e=this.view.state.field(this.stateField),t=e.open;if((t.selected>-1&&t.selected=this.range.to)&&(this.range=ae(t.options.length,t.selected,this.view.state.facet(y).maxRenderedOptions),this.list.remove(),this.list=this.dom.appendChild(this.createListBox(t.options,e.id,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})),this.updateSelectedOption(t.selected)){this.destroyInfo();let{completion:n}=t.options[t.selected],{info:s}=n;if(!s)return;let o=typeof s=="string"?document.createTextNode(s):s(n);if(!o)return;"then"in o?o.then(l=>{l&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(l,n)}).catch(l=>Q(this.view.state,l,"completion info")):this.addInfoPane(o,n)}}addInfoPane(e,t){this.destroyInfo();let n=this.info=document.createElement("div");if(n.className="cm-tooltip cm-completionInfo",e.nodeType!=null)n.appendChild(e),this.infoDestroy=null;else{let{dom:s,destroy:o}=e;n.appendChild(s),this.infoDestroy=o||null}this.dom.appendChild(n),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(e){let t=null;for(let n=this.list.firstChild,s=this.range.from;n;n=n.nextSibling,s++)n.nodeName!="LI"||!n.id?s--:s==e?n.hasAttribute("aria-selected")||(n.setAttribute("aria-selected","true"),t=n):n.hasAttribute("aria-selected")&&n.removeAttribute("aria-selected");return t&&tt(this.list,t),t}measureInfo(){let e=this.dom.querySelector("[aria-selected]");if(!e||!this.info)return null;let t=this.dom.getBoundingClientRect(),n=this.info.getBoundingClientRect(),s=e.getBoundingClientRect(),o=this.space;if(!o){let l=this.dom.ownerDocument.defaultView||window;o={left:0,top:0,right:l.innerWidth,bottom:l.innerHeight}}return s.top>Math.min(o.bottom,t.bottom)-10||s.bottomn.from||n.from==0))if(o=u,typeof c!="string"&&c.header)s.appendChild(c.header(c));else{let p=s.appendChild(document.createElement("completion-section"));p.textContent=u}}const f=s.appendChild(document.createElement("li"));f.id=t+"-"+l,f.setAttribute("role","option");let h=this.optionClass(a);h&&(f.className=h);for(let u of this.optionContent){let p=u(a,this.view.state,r);p&&f.appendChild(p)}}return n.from&&s.classList.add("cm-completionListIncompleteTop"),n.tonew _e(t,i,e)}function tt(i,e){let t=i.getBoundingClientRect(),n=e.getBoundingClientRect();n.topt.bottom&&(i.scrollTop+=n.bottom-t.bottom)}function ce(i){return(i.boost||0)*100+(i.apply?10:0)+(i.info?5:0)+(i.type?1:0)}function it(i,e){let t=[],n=null,s=r=>{t.push(r);let{section:c}=r.completion;if(c){n||(n=[]);let f=typeof c=="string"?c:c.name;n.some(h=>h.name==f)||n.push(typeof c=="string"?{name:f}:c)}};for(let r of i)if(r.hasResult()){let c=r.result.getMatch;if(r.result.filter===!1)for(let f of r.result.options)s(new oe(f,r.source,c?c(f):[],1e9-t.length));else{let f=new Je(e.sliceDoc(r.from,r.to));for(let h of r.result.options)if(f.match(h.label)){let u=h.displayLabel?c?c(h,f.matched):[]:f.matched;s(new oe(h,r.source,u,f.score+(h.boost||0)))}}}if(n){let r=Object.create(null),c=0,f=(h,u)=>{var p,w;return((p=h.rank)!==null&&p!==void 0?p:1e9)-((w=u.rank)!==null&&w!==void 0?w:1e9)||(h.namef.score-c.score||a(c.completion,f.completion))){let c=r.completion;!l||l.label!=c.label||l.detail!=c.detail||l.type!=null&&c.type!=null&&l.type!=c.type||l.apply!=c.apply||l.boost!=c.boost?o.push(r):ce(r.completion)>ce(l)&&(o[o.length-1]=r),l=r.completion}return o}class R{constructor(e,t,n,s,o,l){this.options=e,this.attrs=t,this.tooltip=n,this.timestamp=s,this.selected=o,this.disabled=l}setSelected(e,t){return e==this.selected||e>=this.options.length?this:new R(this.options,fe(t,e),this.tooltip,this.timestamp,e,this.disabled)}static build(e,t,n,s,o){let l=it(e,t);if(!l.length)return s&&e.some(r=>r.state==1)?new R(s.options,s.attrs,s.tooltip,s.timestamp,s.selected,!0):null;let a=t.facet(y).selectOnOpen?0:-1;if(s&&s.selected!=a&&s.selected!=-1){let r=s.options[s.selected].completion;for(let c=0;cc.hasResult()?Math.min(r,c.from):r,1e8),create:et(m,Pe),above:o.aboveCursor},s?s.timestamp:Date.now(),a,!1)}map(e){return new R(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:e.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}}class N{constructor(e,t,n){this.active=e,this.id=t,this.open=n}static start(){return new N(ot,"cm-ac-"+Math.floor(Math.random()*2e6).toString(36),null)}update(e){let{state:t}=e,n=t.facet(y),o=(n.override||t.languageDataAt("autocomplete",I(t)).map(Ge)).map(a=>(this.active.find(c=>c.source==a)||new b(a,this.active.some(c=>c.state!=0)?1:0)).update(e,n));o.length==this.active.length&&o.every((a,r)=>a==this.active[r])&&(o=this.active);let l=this.open;l&&e.docChanged&&(l=l.map(e.changes)),e.selection||o.some(a=>a.hasResult()&&e.changes.touchesRange(a.from,a.to))||!nt(o,this.active)?l=R.build(o,t,this.id,l,n):l&&l.disabled&&!o.some(a=>a.state==1)&&(l=null),!l&&o.every(a=>a.state!=1)&&o.some(a=>a.hasResult())&&(o=o.map(a=>a.hasResult()?new b(a.source,0):a));for(let a of e.effects)a.is(Z)&&(l=l&&l.setSelected(a.value,this.id));return o==this.active&&l==this.open?this:new N(o,this.id,l)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:st}}function nt(i,e){if(i==e)return!0;for(let t=0,n=0;;){for(;t-1&&(t["aria-activedescendant"]=i+"-"+e),t}const ot=[];function G(i){return i.isUserEvent("input.type")?"input":i.isUserEvent("delete.backward")?"delete":null}class b{constructor(e,t,n=-1){this.source=e,this.state=t,this.explicitPos=n}hasResult(){return!1}update(e,t){let n=G(e),s=this;n?s=s.handleUserEvent(e,n,t):e.docChanged?s=s.handleChange(e):e.selection&&s.state!=0&&(s=new b(s.source,0));for(let o of e.effects)if(o.is(Y))s=new b(s.source,1,o.value?I(e.state):-1);else if(o.is(D))s=new b(s.source,0);else if(o.is(Te))for(let l of o.value)l.source==s.source&&(s=l);return s}handleUserEvent(e,t,n){return t=="delete"||!n.activateOnTyping?this.map(e.changes):new b(this.source,1)}handleChange(e){return e.changes.touchesRange(I(e.startState))?new b(this.source,0):this.map(e.changes)}map(e){return e.empty||this.explicitPos<0?this:new b(this.source,this.state,e.mapPos(this.explicitPos))}}class L extends b{constructor(e,t,n,s,o){super(e,2,t),this.result=n,this.from=s,this.to=o}hasResult(){return!0}handleUserEvent(e,t,n){var s;let o=e.changes.mapPos(this.from),l=e.changes.mapPos(this.to,1),a=I(e.state);if((this.explicitPos<0?a<=o:al||t=="delete"&&I(e.startState)==this.from)return new b(this.source,t=="input"&&n.activateOnTyping?1:0);let r=this.explicitPos<0?-1:e.changes.mapPos(this.explicitPos),c;return lt(this.result.validFor,e.state,o,l)?new L(this.source,r,this.result,o,l):this.result.update&&(c=this.result.update(this.result,o,l,new Ie(e.state,a,r>=0)))?new L(this.source,r,c,c.from,(s=c.to)!==null&&s!==void 0?s:I(e.state)):new b(this.source,1,r)}handleChange(e){return e.changes.touchesRange(this.from,this.to)?new b(this.source,0):this.map(e.changes)}map(e){return e.empty?this:new L(this.source,this.explicitPos<0?-1:e.mapPos(this.explicitPos),this.result,e.mapPos(this.from),e.mapPos(this.to,1))}}function lt(i,e,t,n){if(!i)return!1;let s=e.sliceDoc(t,n);return typeof i=="function"?i(s,t,n,e):Oe(i,!0).test(s)}const Te=O.define({map(i,e){return i.map(t=>t.map(e))}}),Z=O.define(),m=J.define({create(){return N.start()},update(i,e){return i.update(e)},provide:i=>[Ue.from(i,e=>e.tooltip),F.contentAttributes.from(i,e=>e.attrs)]});function Pe(i,e){const t=e.completion.apply||e.completion.label;let n=i.state.field(m).active.find(s=>s.source==e.source);return n instanceof L?(typeof t=="string"?i.dispatch(Object.assign(Object.assign({},Xe(i.state,t,n.from,n.to)),{annotations:Ee.of(e.completion)})):t(i,e.completion,n.from,n.to),!0):!1}function W(i,e="option"){return t=>{let n=t.state.field(m,!1);if(!n||!n.open||n.open.disabled||Date.now()-n.open.timestamp-1?n.open.selected+s*(i?1:-1):i?0:l-1;return a<0?a=e=="page"?0:l-1:a>=l&&(a=e=="page"?l-1:0),t.dispatch({effects:Z.of(a)}),!0}}const rt=i=>{let e=i.state.field(m,!1);return i.state.readOnly||!e||!e.open||e.open.selected<0||e.open.disabled||Date.now()-e.open.timestampi.state.field(m,!1)?(i.dispatch({effects:Y.of(!0)}),!0):!1,ct=i=>{let e=i.state.field(m,!1);return!e||!e.active.some(t=>t.state!=0)?!1:(i.dispatch({effects:D.of(null)}),!0)};class ft{constructor(e,t){this.active=e,this.context=t,this.time=Date.now(),this.updates=[],this.done=void 0}}const he=50,ht=50,ut=1e3,pt=qe.fromClass(class{constructor(i){this.view=i,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.composing=0;for(let e of i.state.field(m).active)e.state==1&&this.startQuery(e)}update(i){let e=i.state.field(m);if(!i.selectionSet&&!i.docChanged&&i.startState.field(m)==e)return;let t=i.transactions.some(n=>(n.selection||n.docChanged)&&!G(n));for(let n=0;nht&&Date.now()-s.time>ut){for(let o of s.context.abortListeners)try{o()}catch(l){Q(this.view.state,l)}s.context.abortListeners=null,this.running.splice(n--,1)}else s.updates.push(...i.transactions)}if(this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),this.debounceUpdate=e.active.some(n=>n.state==1&&!this.running.some(s=>s.active.source==n.source))?setTimeout(()=>this.startUpdate(),he):-1,this.composing!=0)for(let n of i.transactions)G(n)=="input"?this.composing=2:this.composing==2&&n.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1;let{state:i}=this.view,e=i.field(m);for(let t of e.active)t.state==1&&!this.running.some(n=>n.active.source==t.source)&&this.startQuery(t)}startQuery(i){let{state:e}=this.view,t=I(e),n=new Ie(e,t,i.explicitPos==t),s=new ft(i,n);this.running.push(s),Promise.resolve(i.source(n)).then(o=>{s.context.aborted||(s.done=o||null,this.scheduleAccept())},o=>{this.view.dispatch({effects:D.of(null)}),Q(this.view.state,o)})}scheduleAccept(){this.running.every(i=>i.done!==void 0)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),he))}accept(){var i;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let e=[],t=this.view.state.facet(y);for(let n=0;nl.source==s.active.source);if(o&&o.state==1)if(s.done==null){let l=new b(s.active.source,0);for(let a of s.updates)l=l.update(a,t);l.state!=1&&e.push(l)}else this.startQuery(o)}e.length&&this.view.dispatch({effects:Te.of(e)})}},{eventHandlers:{blur(i){let e=this.view.state.field(m,!1);if(e&&e.tooltip&&this.view.state.facet(y).closeOnBlur){let t=e.open&&xe(this.view,e.open.tooltip);(!t||!t.dom.contains(i.relatedTarget))&&this.view.dispatch({effects:D.of(null)})}},compositionstart(){this.composing=1},compositionend(){this.composing==3&&setTimeout(()=>this.view.dispatch({effects:Y.of(!1)}),20),this.composing=0}}}),Ae=F.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"···"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'𝑥'"}},".cm-completionIcon-constant":{"&:after":{content:"'𝐶'"}},".cm-completionIcon-type":{"&:after":{content:"'𝑡'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'🔑︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});class dt{constructor(e,t,n,s){this.field=e,this.line=t,this.from=n,this.to=s}}class _{constructor(e,t,n){this.field=e,this.from=t,this.to=n}map(e){let t=e.mapPos(this.from,-1,X.TrackDel),n=e.mapPos(this.to,1,X.TrackDel);return t==null||n==null?null:new _(this.field,t,n)}}class ee{constructor(e,t){this.lines=e,this.fieldPositions=t}instantiate(e,t){let n=[],s=[t],o=e.doc.lineAt(t),l=/^\s*/.exec(o.text)[0];for(let r of this.lines){if(n.length){let c=l,f=/^\t*/.exec(r)[0].length;for(let h=0;hnew _(r.field,s[r.line]+r.from,s[r.line]+r.to));return{text:n,ranges:a}}static parse(e){let t=[],n=[],s=[],o;for(let l of e.split(/\r\n?|\n/)){for(;o=/[#$]\{(?:(\d+)(?::([^}]*))?|([^}]*))\}/.exec(l);){let a=o[1]?+o[1]:null,r=o[2]||o[3]||"",c=-1;for(let f=0;f=c&&h.field++}s.push(new dt(c,n.length,o.index,o.index+r.length)),l=l.slice(0,o.index)+r+l.slice(o.index+o[0].length)}for(let a;a=/\\([{}])/.exec(l);){l=l.slice(0,a.index)+a[1]+l.slice(a.index+a[0].length);for(let r of s)r.line==n.length&&r.from>a.index&&(r.from--,r.to--)}n.push(l)}return new ee(n,s)}}let mt=U.widget({widget:new class extends He{toDOM(){let i=document.createElement("span");return i.className="cm-snippetFieldPosition",i}ignoreEvent(){return!1}}}),gt=U.mark({class:"cm-snippetField"});class M{constructor(e,t){this.ranges=e,this.active=t,this.deco=U.set(e.map(n=>(n.from==n.to?mt:gt).range(n.from,n.to)))}map(e){let t=[];for(let n of this.ranges){let s=n.map(e);if(!s)return null;t.push(s)}return new M(t,this.active)}selectionInsideField(e){return e.ranges.every(t=>this.ranges.some(n=>n.field==this.active&&n.from<=t.from&&n.to>=t.to))}}const j=O.define({map(i,e){return i&&i.map(e)}}),bt=O.define(),P=J.define({create(){return null},update(i,e){for(let t of e.effects){if(t.is(j))return t.value;if(t.is(bt)&&i)return new M(i.ranges,t.value)}return i&&e.docChanged&&(i=i.map(e.changes)),i&&e.selection&&!i.selectionInsideField(e.selection)&&(i=null),i},provide:i=>F.decorations.from(i,e=>e?e.deco:U.none)});function te(i,e){return x.create(i.filter(t=>t.field==e).map(t=>x.range(t.from,t.to)))}function yt(i){let e=ee.parse(i);return(t,n,s,o)=>{let{text:l,ranges:a}=e.instantiate(t.state,s),r={changes:{from:s,to:o,insert:$e.of(l)},scrollIntoView:!0,annotations:n?Ee.of(n):void 0};if(a.length&&(r.selection=te(a,0)),a.length>1){let c=new M(a,0),f=r.effects=[j.of(c)];t.state.field(P,!1)===void 0&&f.push(O.appendConfig.of([P,St,It,Ae]))}t.dispatch(t.state.update(r))}}function Re(i){return({state:e,dispatch:t})=>{let n=e.field(P,!1);if(!n||i<0&&n.active==0)return!1;let s=n.active+i,o=i>0&&!n.ranges.some(l=>l.field==s+i);return t(e.update({selection:te(n.ranges,s),effects:j.of(o?null:new M(n.ranges,s))})),!0}}const xt=({state:i,dispatch:e})=>i.field(P,!1)?(e(i.update({effects:j.of(null)})),!0):!1,vt=Re(1),wt=Re(-1);function Ut(i){let e=i.field(P,!1);return!!(e&&e.ranges.some(t=>t.field==e.active+1))}function qt(i){let e=i.field(P,!1);return!!(e&&e.active>0)}const Ct=[{key:"Tab",run:vt,shift:wt},{key:"Escape",run:xt}],ue=ve.define({combine(i){return i.length?i[0]:Ct}}),St=we.highest(Ce.compute([ue],i=>i.facet(ue)));function Vt(i,e){return Object.assign(Object.assign({},e),{apply:yt(i)})}const It=F.domEventHandlers({mousedown(i,e){let t=e.state.field(P,!1),n;if(!t||(n=e.posAtCoords({x:i.clientX,y:i.clientY}))==null)return!1;let s=t.ranges.find(o=>o.from<=n&&o.to>=n);return!s||s.field==t.active?!1:(e.dispatch({selection:te(t.ranges,s.field),effects:j.of(t.ranges.some(o=>o.field>s.field)?new M(t.ranges,s.field):null)}),!0)}});function Ot(i){let e=i.replace(/[\\[.+*?(){|^$]/g,"\\$&");try{return new RegExp(`[\\p{Alphabetic}\\p{Number}_${e}]+`,"ug")}catch{return new RegExp(`[w${e}]`,"g")}}function pe(i,e){return new RegExp(e(i.source),i.unicode?"u":"")}const de=Object.create(null);function Et(i){return de[i]||(de[i]=new WeakMap)}function me(i,e,t,n,s){for(let o=i.iterLines(),l=0;!o.next().done;){let{value:a}=o,r;for(e.lastIndex=0;r=e.exec(a);)if(!n[r[0]]&&l+r.index!=s&&(t.push({type:"text",label:r[0]}),n[r[0]]=!0,t.length>=2e3))return;l+=a.length+1}}function Le(i,e,t,n,s){let o=i.length>=1e3,l=o&&e.get(i);if(l)return l;let a=[],r=Object.create(null);if(i.children){let c=0;for(let f of i.children){if(f.length>=1e3)for(let h of Le(f,e,t,n-c,s-c))r[h.label]||(r[h.label]=!0,a.push(h));else me(f,t,a,r,s-c);c+=f.length+1}}else me(i,t,a,r,s);return o&&a.length<2e3&&e.set(i,a),a}const zt=i=>{let e=i.state.languageDataAt("wordChars",i.pos).join(""),t=Ot(e),n=i.matchBefore(pe(t,l=>l+"$"));if(!n&&!i.explicit)return null;let s=n?n.from:i.pos,o=Le(i.state.doc,Et(e),t,5e4,s);return{from:s,options:o,validFor:pe(t,l=>"^"+l)}},B={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},T=O.define({map(i,e){let t=e.mapPos(i,-1,X.TrackAfter);return t??void 0}}),ie=new class extends We{};ie.startSide=1;ie.endSide=-1;const Me=J.define({create(){return ne.empty},update(i,e){if(e.selection){let t=e.state.doc.lineAt(e.selection.main.head).from,n=e.startState.doc.lineAt(e.startState.selection.main.head).from;t!=e.changes.mapPos(n,-1)&&(i=ne.empty)}i=i.map(e.changes);for(let t of e.effects)t.is(T)&&(i=i.update({add:[ie.range(t.value,t.value+1)]}));return i}});function Ht(){return[Pt,Me]}const H="()[]{}<>";function De(i){for(let e=0;e{if((Tt?i.composing:i.compositionStarted)||i.state.readOnly)return!1;let s=i.state.selection.main;if(n.length>2||n.length==2&&S(v(n,0))==1||e!=s.from||t!=s.to)return!1;let o=Rt(i.state,n);return o?(i.dispatch(o),!0):!1}),At=({state:i,dispatch:e})=>{if(i.readOnly)return!1;let n=Be(i,i.selection.main.head).brackets||B.brackets,s=null,o=i.changeByRange(l=>{if(l.empty){let a=Lt(i.doc,l.head);for(let r of n)if(r==a&&q(i.doc,l.head)==De(v(r,0)))return{changes:{from:l.head-r.length,to:l.head+r.length},range:x.cursor(l.head-r.length)}}return{range:s=l}});return s||e(i.update(o,{scrollIntoView:!0,userEvent:"delete.backward"})),!s},Kt=[{key:"Backspace",run:At}];function Rt(i,e){let t=Be(i,i.selection.main.head),n=t.brackets||B.brackets;for(let s of n){let o=De(v(s,0));if(e==s)return o==s?Bt(i,s,n.indexOf(s+s+s)>-1,t):Mt(i,s,o,t.before||B.before);if(e==o&&ke(i,i.selection.main.from))return Dt(i,s,o)}return null}function ke(i,e){let t=!1;return i.field(Me).between(0,i.doc.length,n=>{n==e&&(t=!0)}),t}function q(i,e){let t=i.sliceString(e,e+2);return t.slice(0,S(v(t,0)))}function Lt(i,e){let t=i.sliceString(e-2,e);return S(v(t,0))==t.length?t:t.slice(1)}function Mt(i,e,t,n){let s=null,o=i.changeByRange(l=>{if(!l.empty)return{changes:[{insert:e,from:l.from},{insert:t,from:l.to}],effects:T.of(l.to+e.length),range:x.range(l.anchor+e.length,l.head+e.length)};let a=q(i.doc,l.head);return!a||/\s/.test(a)||n.indexOf(a)>-1?{changes:{insert:e+t,from:l.head},effects:T.of(l.head+e.length),range:x.cursor(l.head+e.length)}:{range:s=l}});return s?null:i.update(o,{scrollIntoView:!0,userEvent:"input.type"})}function Dt(i,e,t){let n=null,s=i.changeByRange(o=>o.empty&&q(i.doc,o.head)==t?{changes:{from:o.head,to:o.head+t.length,insert:t},range:x.cursor(o.head+t.length)}:n={range:o});return n?null:i.update(s,{scrollIntoView:!0,userEvent:"input.type"})}function Bt(i,e,t,n){let s=n.stringPrefixes||B.stringPrefixes,o=null,l=i.changeByRange(a=>{if(!a.empty)return{changes:[{insert:e,from:a.from},{insert:e,from:a.to}],effects:T.of(a.to+e.length),range:x.range(a.anchor+e.length,a.head+e.length)};let r=a.head,c=q(i.doc,r),f;if(c==e){if(ge(i,r))return{changes:{insert:e+e,from:r},effects:T.of(r+e.length),range:x.cursor(r+e.length)};if(ke(i,r)){let u=t&&i.sliceDoc(r,r+e.length*3)==e+e+e?e+e+e:e;return{changes:{from:r,to:r+u.length,insert:u},range:x.cursor(r+u.length)}}}else{if(t&&i.sliceDoc(r-2*e.length,r)==e+e&&(f=be(i,r-2*e.length,s))>-1&&ge(i,f))return{changes:{insert:e+e+e+e,from:r},effects:T.of(r+e.length),range:x.cursor(r+e.length)};if(i.charCategorizer(r)(c)!=K.Word&&be(i,r,s)>-1&&!kt(i,r,e,s))return{changes:{insert:e+e,from:r},effects:T.of(r+e.length),range:x.cursor(r+e.length)}}return{range:o=a}});return o?null:i.update(l,{scrollIntoView:!0,userEvent:"input.type"})}function ge(i,e){let t=k(i).resolveInner(e+1);return t.parent&&t.from==e}function kt(i,e,t,n){let s=k(i).resolveInner(e,-1),o=n.reduce((l,a)=>Math.max(l,a.length),0);for(let l=0;l<5;l++){let a=i.sliceDoc(s.from,Math.min(s.to,s.from+t.length+o)),r=a.indexOf(t);if(!r||r>-1&&n.indexOf(a.slice(0,r))>-1){let f=s.firstChild;for(;f&&f.from==s.from&&f.to-f.from>t.length+r;){if(i.sliceDoc(f.to-t.length,f.to)==t)return!1;f=f.firstChild}return!0}let c=s.to==e&&s.parent;if(!c)break;s=c}return!1}function be(i,e,t){let n=i.charCategorizer(e);if(n(i.sliceDoc(e-1,e))!=K.Word)return e;for(let s of t){let o=e-s.length;if(i.sliceDoc(o,e)==s&&n(i.sliceDoc(o-1,o))!=K.Word)return o}return-1}function Qt(i={}){return[m,y.of(i),pt,jt,Ae]}const Ft=[{key:"Ctrl-Space",run:at},{key:"Escape",run:ct},{key:"ArrowDown",run:W(!0)},{key:"ArrowUp",run:W(!1)},{key:"PageDown",run:W(!0,"page")},{key:"PageUp",run:W(!1,"page")},{key:"Enter",run:rt}],jt=we.highest(Ce.computeN([y],i=>i.facet(y).defaultKeymap?[Ft]:[]));function Xt(i){let e=i.field(m,!1);return e&&e.active.some(t=>t.state==1)?"pending":e&&e.active.some(t=>t.state!=0)?"active":null}const ye=new WeakMap;function Gt(i){var e;let t=(e=i.field(m,!1))===null||e===void 0?void 0:e.open;if(!t||t.disabled)return[];let n=ye.get(t.options);return n||ye.set(t.options,n=t.options.map(s=>s.completion)),n}function Jt(i){var e;let t=(e=i.field(m,!1))===null||e===void 0?void 0:e.open;return t&&!t.disabled&&t.selected>=0?t.options[t.selected].completion:null}function Yt(i){var e;let t=(e=i.field(m,!1))===null||e===void 0?void 0:e.open;return t&&!t.disabled&&t.selected>=0?t.selected:null}function Zt(i){return Z.of(i)}export{Ie as CompletionContext,rt as acceptCompletion,Qt as autocompletion,xt as clearSnippet,Ht as closeBrackets,Kt as closeBracketsKeymap,ct as closeCompletion,zt as completeAnyWord,Qe as completeFromList,Ft as completionKeymap,Xt as completionStatus,Gt as currentCompletions,At as deleteBracketPair,Ut as hasNextSnippetField,qt as hasPrevSnippetField,Wt as ifIn,Nt as ifNotIn,Rt as insertBracket,Xe as insertCompletionText,W as moveCompletionSelection,vt as nextSnippetField,Ee as pickedCompletion,wt as prevSnippetField,Jt as selectedCompletion,Yt as selectedCompletionIndex,Zt as setSelectedCompletion,yt as snippet,Vt as snippetCompletion,ue as snippetKeymap,at as startCompletion}; +import{h as k,ad as je,E as x,ae as xe,af as $e,S as O,J as ve,j as we,k as Ce,v as F,ag as We,G as S,C as v,M as K,K as Ne,O as J,ah as Ue,V as qe,ai as Q,aj as Ve,B as U,ak as X,al as ne,F as Se,am as ze,an as He}from"./4.cfac87d8.js";class Ie{constructor(e,t,n){this.state=e,this.pos=t,this.explicit=n,this.abortListeners=[]}tokenBefore(e){let t=k(this.state).resolveInner(this.pos,-1);for(;t&&e.indexOf(t.name)<0;)t=t.parent;return t?{from:t.from,to:this.pos,text:this.state.sliceDoc(t.from,this.pos),type:t.type}:null}matchBefore(e){let t=this.state.doc.lineAt(this.pos),n=Math.max(t.from,this.pos-250),s=t.text.slice(n-t.from,this.pos-t.from),o=s.search(Oe(e,!1));return o<0?null:{from:n+o,to:this.pos,text:s.slice(o)}}get aborted(){return this.abortListeners==null}addEventListener(e,t){e=="abort"&&this.abortListeners&&this.abortListeners.push(t)}}function se(i){let e=Object.keys(i).join(""),t=/\w/.test(e);return t&&(e=e.replace(/\w/g,"")),`[${t?"\\w":""}${e.replace(/[^\w\s]/g,"\\$&")}]`}function Ke(i){let e=Object.create(null),t=Object.create(null);for(let{label:s}of i){e[s[0]]=!0;for(let o=1;otypeof s=="string"?{label:s}:s),[t,n]=e.every(s=>/^\w+$/.test(s.label))?[/\w*$/,/\w+$/]:Ke(e);return s=>{let o=s.matchBefore(n);return o||s.explicit?{from:o?o.from:s.pos,options:e,validFor:t}:null}}function Wt(i,e){return t=>{for(let n=k(t.state).resolveInner(t.pos,-1);n;n=n.parent){if(i.indexOf(n.name)>-1)return e(t);if(n.type.isTop)break}return null}}function Nt(i,e){return t=>{for(let n=k(t.state).resolveInner(t.pos,-1);n;n=n.parent){if(i.indexOf(n.name)>-1)return null;if(n.type.isTop)break}return e(t)}}class oe{constructor(e,t,n,s){this.completion=e,this.source=t,this.match=n,this.score=s}}function I(i){return i.selection.main.from}function Oe(i,e){var t;let{source:n}=i,s=e&&n[0]!="^",o=n[n.length-1]!="$";return!s&&!o?i:new RegExp(`${s?"^":""}(?:${n})${o?"$":""}`,(t=i.flags)!==null&&t!==void 0?t:i.ignoreCase?"i":"")}const Ee=je.define();function Xe(i,e,t,n){let{main:s}=i.selection,o=t-s.from,l=n-s.from;return Object.assign(Object.assign({},i.changeByRange(a=>a!=s&&t!=n&&i.sliceDoc(a.from+o,a.from+l)!=i.sliceDoc(t,n)?{range:a}:{changes:{from:a.from+o,to:n==s.from?a.to:a.from+l,insert:e},range:x.cursor(a.from+o+e.length)})),{userEvent:"input.complete"})}const le=new WeakMap;function Ge(i){if(!Array.isArray(i))return i;let e=le.get(i);return e||le.set(i,e=Qe(i)),e}const Y=O.define(),D=O.define();class Je{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let t=0;t=48&&g<=57||g>=97&&g<=122?2:g>=65&&g<=90?1:0:($=Se(g))!=$.toLowerCase()?1:$!=$.toUpperCase()?2:0;(!d||z==1&&Fe||C==0&&z!=0)&&(t[h]==g||n[h]==g&&(u=!0)?l[h++]=d:l.length&&(V=!1)),C=z,d+=S(g)}return h==r&&l[0]==0&&V?this.result(-100+(u?-200:0),l,e):p==r&&w==0?this.ret(-200-e.length+(E==e.length?0:-100),[0,E]):a>-1?this.ret(-700-e.length,[a,a+this.pattern.length]):p==r?this.ret(-200+-700-e.length,[w,E]):h==r?this.result(-100+(u?-200:0)+-700+(V?0:-1100),l,e):t.length==2?!1:this.result((s[0]?-700:0)+-200+-1100,s,e)}result(e,t,n){let s=[],o=0;for(let l of t){let a=l+(this.astral?S(v(n,l)):1);o&&s[o-1]==l?s[o-1]=a:(s[o++]=l,s[o++]=a)}return this.ret(e-n.length,s)}}const y=ve.define({combine(i){return Ne(i,{activateOnTyping:!0,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:Ye,compareCompletions:(e,t)=>e.label.localeCompare(t.label),interactionDelay:75},{defaultKeymap:(e,t)=>e&&t,closeOnBlur:(e,t)=>e&&t,icons:(e,t)=>e&&t,tooltipClass:(e,t)=>n=>re(e(n),t(n)),optionClass:(e,t)=>n=>re(e(n),t(n)),addToOptions:(e,t)=>e.concat(t)})}});function re(i,e){return i?e?i+" "+e:i:e}function Ye(i,e,t,n,s){let o=i.textDirection==ze.RTL,l=o,a=!1,r="top",c,f,h=e.left-s.left,u=s.right-e.right,p=n.right-n.left,w=n.bottom-n.top;if(l&&h=w||E>e.top?c=t.bottom-e.top:(r="bottom",c=e.bottom-t.top)}return{style:`${r}: ${c}px; max-width: ${f}px`,class:"cm-completionInfo-"+(a?o?"left-narrow":"right-narrow":l?"left":"right")}}function Ze(i){let e=i.addToOptions.slice();return i.icons&&e.push({render(t){let n=document.createElement("div");return n.classList.add("cm-completionIcon"),t.type&&n.classList.add(...t.type.split(/\s+/g).map(s=>"cm-completionIcon-"+s)),n.setAttribute("aria-hidden","true"),n},position:20}),e.push({render(t,n,s){let o=document.createElement("span");o.className="cm-completionLabel";let l=t.displayLabel||t.label,a=0;for(let r=0;ra&&o.appendChild(document.createTextNode(l.slice(a,c)));let h=o.appendChild(document.createElement("span"));h.appendChild(document.createTextNode(l.slice(c,f))),h.className="cm-completionMatchedText",a=f}return at.position-n.position).map(t=>t.render)}function ae(i,e,t){if(i<=t)return{from:0,to:i};if(e<0&&(e=0),e<=i>>1){let s=Math.floor(e/t);return{from:s*t,to:(s+1)*t}}let n=Math.floor((i-e)/t);return{from:i-(n+1)*t,to:i-n*t}}class _e{constructor(e,t,n){this.view=e,this.stateField=t,this.applyCompletion=n,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:r=>this.placeInfo(r),key:this},this.space=null,this.currentClass="";let s=e.state.field(t),{options:o,selected:l}=s.open,a=e.state.facet(y);this.optionContent=Ze(a),this.optionClass=a.optionClass,this.tooltipClass=a.tooltipClass,this.range=ae(o.length,l,a.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(e.state),this.dom.addEventListener("mousedown",r=>{for(let c=r.target,f;c&&c!=this.dom;c=c.parentNode)if(c.nodeName=="LI"&&(f=/-(\d+)$/.exec(c.id))&&+f[1]{let c=e.state.field(this.stateField,!1);c&&c.tooltip&&e.state.facet(y).closeOnBlur&&r.relatedTarget!=e.contentDOM&&e.dispatch({effects:D.of(null)})}),this.list=this.dom.appendChild(this.createListBox(o,s.id,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}mount(){this.updateSel()}update(e){var t,n,s;let o=e.state.field(this.stateField),l=e.startState.field(this.stateField);this.updateTooltipClass(e.state),o!=l&&(this.updateSel(),((t=o.open)===null||t===void 0?void 0:t.disabled)!=((n=l.open)===null||n===void 0?void 0:n.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!(!((s=o.open)===null||s===void 0)&&s.disabled)))}updateTooltipClass(e){let t=this.tooltipClass(e);if(t!=this.currentClass){for(let n of this.currentClass.split(" "))n&&this.dom.classList.remove(n);for(let n of t.split(" "))n&&this.dom.classList.add(n);this.currentClass=t}}positioned(e){this.space=e,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let e=this.view.state.field(this.stateField),t=e.open;if((t.selected>-1&&t.selected=this.range.to)&&(this.range=ae(t.options.length,t.selected,this.view.state.facet(y).maxRenderedOptions),this.list.remove(),this.list=this.dom.appendChild(this.createListBox(t.options,e.id,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})),this.updateSelectedOption(t.selected)){this.destroyInfo();let{completion:n}=t.options[t.selected],{info:s}=n;if(!s)return;let o=typeof s=="string"?document.createTextNode(s):s(n);if(!o)return;"then"in o?o.then(l=>{l&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(l,n)}).catch(l=>Q(this.view.state,l,"completion info")):this.addInfoPane(o,n)}}addInfoPane(e,t){this.destroyInfo();let n=this.info=document.createElement("div");if(n.className="cm-tooltip cm-completionInfo",e.nodeType!=null)n.appendChild(e),this.infoDestroy=null;else{let{dom:s,destroy:o}=e;n.appendChild(s),this.infoDestroy=o||null}this.dom.appendChild(n),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(e){let t=null;for(let n=this.list.firstChild,s=this.range.from;n;n=n.nextSibling,s++)n.nodeName!="LI"||!n.id?s--:s==e?n.hasAttribute("aria-selected")||(n.setAttribute("aria-selected","true"),t=n):n.hasAttribute("aria-selected")&&n.removeAttribute("aria-selected");return t&&tt(this.list,t),t}measureInfo(){let e=this.dom.querySelector("[aria-selected]");if(!e||!this.info)return null;let t=this.dom.getBoundingClientRect(),n=this.info.getBoundingClientRect(),s=e.getBoundingClientRect(),o=this.space;if(!o){let l=this.dom.ownerDocument.defaultView||window;o={left:0,top:0,right:l.innerWidth,bottom:l.innerHeight}}return s.top>Math.min(o.bottom,t.bottom)-10||s.bottomn.from||n.from==0))if(o=u,typeof c!="string"&&c.header)s.appendChild(c.header(c));else{let p=s.appendChild(document.createElement("completion-section"));p.textContent=u}}const f=s.appendChild(document.createElement("li"));f.id=t+"-"+l,f.setAttribute("role","option");let h=this.optionClass(a);h&&(f.className=h);for(let u of this.optionContent){let p=u(a,this.view.state,r);p&&f.appendChild(p)}}return n.from&&s.classList.add("cm-completionListIncompleteTop"),n.tonew _e(t,i,e)}function tt(i,e){let t=i.getBoundingClientRect(),n=e.getBoundingClientRect();n.topt.bottom&&(i.scrollTop+=n.bottom-t.bottom)}function ce(i){return(i.boost||0)*100+(i.apply?10:0)+(i.info?5:0)+(i.type?1:0)}function it(i,e){let t=[],n=null,s=r=>{t.push(r);let{section:c}=r.completion;if(c){n||(n=[]);let f=typeof c=="string"?c:c.name;n.some(h=>h.name==f)||n.push(typeof c=="string"?{name:f}:c)}};for(let r of i)if(r.hasResult()){let c=r.result.getMatch;if(r.result.filter===!1)for(let f of r.result.options)s(new oe(f,r.source,c?c(f):[],1e9-t.length));else{let f=new Je(e.sliceDoc(r.from,r.to));for(let h of r.result.options)if(f.match(h.label)){let u=h.displayLabel?c?c(h,f.matched):[]:f.matched;s(new oe(h,r.source,u,f.score+(h.boost||0)))}}}if(n){let r=Object.create(null),c=0,f=(h,u)=>{var p,w;return((p=h.rank)!==null&&p!==void 0?p:1e9)-((w=u.rank)!==null&&w!==void 0?w:1e9)||(h.namef.score-c.score||a(c.completion,f.completion))){let c=r.completion;!l||l.label!=c.label||l.detail!=c.detail||l.type!=null&&c.type!=null&&l.type!=c.type||l.apply!=c.apply||l.boost!=c.boost?o.push(r):ce(r.completion)>ce(l)&&(o[o.length-1]=r),l=r.completion}return o}class R{constructor(e,t,n,s,o,l){this.options=e,this.attrs=t,this.tooltip=n,this.timestamp=s,this.selected=o,this.disabled=l}setSelected(e,t){return e==this.selected||e>=this.options.length?this:new R(this.options,fe(t,e),this.tooltip,this.timestamp,e,this.disabled)}static build(e,t,n,s,o){let l=it(e,t);if(!l.length)return s&&e.some(r=>r.state==1)?new R(s.options,s.attrs,s.tooltip,s.timestamp,s.selected,!0):null;let a=t.facet(y).selectOnOpen?0:-1;if(s&&s.selected!=a&&s.selected!=-1){let r=s.options[s.selected].completion;for(let c=0;cc.hasResult()?Math.min(r,c.from):r,1e8),create:et(m,Pe),above:o.aboveCursor},s?s.timestamp:Date.now(),a,!1)}map(e){return new R(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:e.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}}class N{constructor(e,t,n){this.active=e,this.id=t,this.open=n}static start(){return new N(ot,"cm-ac-"+Math.floor(Math.random()*2e6).toString(36),null)}update(e){let{state:t}=e,n=t.facet(y),o=(n.override||t.languageDataAt("autocomplete",I(t)).map(Ge)).map(a=>(this.active.find(c=>c.source==a)||new b(a,this.active.some(c=>c.state!=0)?1:0)).update(e,n));o.length==this.active.length&&o.every((a,r)=>a==this.active[r])&&(o=this.active);let l=this.open;l&&e.docChanged&&(l=l.map(e.changes)),e.selection||o.some(a=>a.hasResult()&&e.changes.touchesRange(a.from,a.to))||!nt(o,this.active)?l=R.build(o,t,this.id,l,n):l&&l.disabled&&!o.some(a=>a.state==1)&&(l=null),!l&&o.every(a=>a.state!=1)&&o.some(a=>a.hasResult())&&(o=o.map(a=>a.hasResult()?new b(a.source,0):a));for(let a of e.effects)a.is(Z)&&(l=l&&l.setSelected(a.value,this.id));return o==this.active&&l==this.open?this:new N(o,this.id,l)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:st}}function nt(i,e){if(i==e)return!0;for(let t=0,n=0;;){for(;t-1&&(t["aria-activedescendant"]=i+"-"+e),t}const ot=[];function G(i){return i.isUserEvent("input.type")?"input":i.isUserEvent("delete.backward")?"delete":null}class b{constructor(e,t,n=-1){this.source=e,this.state=t,this.explicitPos=n}hasResult(){return!1}update(e,t){let n=G(e),s=this;n?s=s.handleUserEvent(e,n,t):e.docChanged?s=s.handleChange(e):e.selection&&s.state!=0&&(s=new b(s.source,0));for(let o of e.effects)if(o.is(Y))s=new b(s.source,1,o.value?I(e.state):-1);else if(o.is(D))s=new b(s.source,0);else if(o.is(Te))for(let l of o.value)l.source==s.source&&(s=l);return s}handleUserEvent(e,t,n){return t=="delete"||!n.activateOnTyping?this.map(e.changes):new b(this.source,1)}handleChange(e){return e.changes.touchesRange(I(e.startState))?new b(this.source,0):this.map(e.changes)}map(e){return e.empty||this.explicitPos<0?this:new b(this.source,this.state,e.mapPos(this.explicitPos))}}class L extends b{constructor(e,t,n,s,o){super(e,2,t),this.result=n,this.from=s,this.to=o}hasResult(){return!0}handleUserEvent(e,t,n){var s;let o=e.changes.mapPos(this.from),l=e.changes.mapPos(this.to,1),a=I(e.state);if((this.explicitPos<0?a<=o:al||t=="delete"&&I(e.startState)==this.from)return new b(this.source,t=="input"&&n.activateOnTyping?1:0);let r=this.explicitPos<0?-1:e.changes.mapPos(this.explicitPos),c;return lt(this.result.validFor,e.state,o,l)?new L(this.source,r,this.result,o,l):this.result.update&&(c=this.result.update(this.result,o,l,new Ie(e.state,a,r>=0)))?new L(this.source,r,c,c.from,(s=c.to)!==null&&s!==void 0?s:I(e.state)):new b(this.source,1,r)}handleChange(e){return e.changes.touchesRange(this.from,this.to)?new b(this.source,0):this.map(e.changes)}map(e){return e.empty?this:new L(this.source,this.explicitPos<0?-1:e.mapPos(this.explicitPos),this.result,e.mapPos(this.from),e.mapPos(this.to,1))}}function lt(i,e,t,n){if(!i)return!1;let s=e.sliceDoc(t,n);return typeof i=="function"?i(s,t,n,e):Oe(i,!0).test(s)}const Te=O.define({map(i,e){return i.map(t=>t.map(e))}}),Z=O.define(),m=J.define({create(){return N.start()},update(i,e){return i.update(e)},provide:i=>[Ue.from(i,e=>e.tooltip),F.contentAttributes.from(i,e=>e.attrs)]});function Pe(i,e){const t=e.completion.apply||e.completion.label;let n=i.state.field(m).active.find(s=>s.source==e.source);return n instanceof L?(typeof t=="string"?i.dispatch(Object.assign(Object.assign({},Xe(i.state,t,n.from,n.to)),{annotations:Ee.of(e.completion)})):t(i,e.completion,n.from,n.to),!0):!1}function W(i,e="option"){return t=>{let n=t.state.field(m,!1);if(!n||!n.open||n.open.disabled||Date.now()-n.open.timestamp-1?n.open.selected+s*(i?1:-1):i?0:l-1;return a<0?a=e=="page"?0:l-1:a>=l&&(a=e=="page"?l-1:0),t.dispatch({effects:Z.of(a)}),!0}}const rt=i=>{let e=i.state.field(m,!1);return i.state.readOnly||!e||!e.open||e.open.selected<0||e.open.disabled||Date.now()-e.open.timestampi.state.field(m,!1)?(i.dispatch({effects:Y.of(!0)}),!0):!1,ct=i=>{let e=i.state.field(m,!1);return!e||!e.active.some(t=>t.state!=0)?!1:(i.dispatch({effects:D.of(null)}),!0)};class ft{constructor(e,t){this.active=e,this.context=t,this.time=Date.now(),this.updates=[],this.done=void 0}}const he=50,ht=50,ut=1e3,pt=qe.fromClass(class{constructor(i){this.view=i,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.composing=0;for(let e of i.state.field(m).active)e.state==1&&this.startQuery(e)}update(i){let e=i.state.field(m);if(!i.selectionSet&&!i.docChanged&&i.startState.field(m)==e)return;let t=i.transactions.some(n=>(n.selection||n.docChanged)&&!G(n));for(let n=0;nht&&Date.now()-s.time>ut){for(let o of s.context.abortListeners)try{o()}catch(l){Q(this.view.state,l)}s.context.abortListeners=null,this.running.splice(n--,1)}else s.updates.push(...i.transactions)}if(this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),this.debounceUpdate=e.active.some(n=>n.state==1&&!this.running.some(s=>s.active.source==n.source))?setTimeout(()=>this.startUpdate(),he):-1,this.composing!=0)for(let n of i.transactions)G(n)=="input"?this.composing=2:this.composing==2&&n.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1;let{state:i}=this.view,e=i.field(m);for(let t of e.active)t.state==1&&!this.running.some(n=>n.active.source==t.source)&&this.startQuery(t)}startQuery(i){let{state:e}=this.view,t=I(e),n=new Ie(e,t,i.explicitPos==t),s=new ft(i,n);this.running.push(s),Promise.resolve(i.source(n)).then(o=>{s.context.aborted||(s.done=o||null,this.scheduleAccept())},o=>{this.view.dispatch({effects:D.of(null)}),Q(this.view.state,o)})}scheduleAccept(){this.running.every(i=>i.done!==void 0)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),he))}accept(){var i;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let e=[],t=this.view.state.facet(y);for(let n=0;nl.source==s.active.source);if(o&&o.state==1)if(s.done==null){let l=new b(s.active.source,0);for(let a of s.updates)l=l.update(a,t);l.state!=1&&e.push(l)}else this.startQuery(o)}e.length&&this.view.dispatch({effects:Te.of(e)})}},{eventHandlers:{blur(i){let e=this.view.state.field(m,!1);if(e&&e.tooltip&&this.view.state.facet(y).closeOnBlur){let t=e.open&&xe(this.view,e.open.tooltip);(!t||!t.dom.contains(i.relatedTarget))&&this.view.dispatch({effects:D.of(null)})}},compositionstart(){this.composing=1},compositionend(){this.composing==3&&setTimeout(()=>this.view.dispatch({effects:Y.of(!1)}),20),this.composing=0}}}),Ae=F.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"···"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'𝑥'"}},".cm-completionIcon-constant":{"&:after":{content:"'𝐶'"}},".cm-completionIcon-type":{"&:after":{content:"'𝑡'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'🔑︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});class dt{constructor(e,t,n,s){this.field=e,this.line=t,this.from=n,this.to=s}}class _{constructor(e,t,n){this.field=e,this.from=t,this.to=n}map(e){let t=e.mapPos(this.from,-1,X.TrackDel),n=e.mapPos(this.to,1,X.TrackDel);return t==null||n==null?null:new _(this.field,t,n)}}class ee{constructor(e,t){this.lines=e,this.fieldPositions=t}instantiate(e,t){let n=[],s=[t],o=e.doc.lineAt(t),l=/^\s*/.exec(o.text)[0];for(let r of this.lines){if(n.length){let c=l,f=/^\t*/.exec(r)[0].length;for(let h=0;hnew _(r.field,s[r.line]+r.from,s[r.line]+r.to));return{text:n,ranges:a}}static parse(e){let t=[],n=[],s=[],o;for(let l of e.split(/\r\n?|\n/)){for(;o=/[#$]\{(?:(\d+)(?::([^}]*))?|([^}]*))\}/.exec(l);){let a=o[1]?+o[1]:null,r=o[2]||o[3]||"",c=-1;for(let f=0;f=c&&h.field++}s.push(new dt(c,n.length,o.index,o.index+r.length)),l=l.slice(0,o.index)+r+l.slice(o.index+o[0].length)}for(let a;a=/\\([{}])/.exec(l);){l=l.slice(0,a.index)+a[1]+l.slice(a.index+a[0].length);for(let r of s)r.line==n.length&&r.from>a.index&&(r.from--,r.to--)}n.push(l)}return new ee(n,s)}}let mt=U.widget({widget:new class extends He{toDOM(){let i=document.createElement("span");return i.className="cm-snippetFieldPosition",i}ignoreEvent(){return!1}}}),gt=U.mark({class:"cm-snippetField"});class M{constructor(e,t){this.ranges=e,this.active=t,this.deco=U.set(e.map(n=>(n.from==n.to?mt:gt).range(n.from,n.to)))}map(e){let t=[];for(let n of this.ranges){let s=n.map(e);if(!s)return null;t.push(s)}return new M(t,this.active)}selectionInsideField(e){return e.ranges.every(t=>this.ranges.some(n=>n.field==this.active&&n.from<=t.from&&n.to>=t.to))}}const j=O.define({map(i,e){return i&&i.map(e)}}),bt=O.define(),P=J.define({create(){return null},update(i,e){for(let t of e.effects){if(t.is(j))return t.value;if(t.is(bt)&&i)return new M(i.ranges,t.value)}return i&&e.docChanged&&(i=i.map(e.changes)),i&&e.selection&&!i.selectionInsideField(e.selection)&&(i=null),i},provide:i=>F.decorations.from(i,e=>e?e.deco:U.none)});function te(i,e){return x.create(i.filter(t=>t.field==e).map(t=>x.range(t.from,t.to)))}function yt(i){let e=ee.parse(i);return(t,n,s,o)=>{let{text:l,ranges:a}=e.instantiate(t.state,s),r={changes:{from:s,to:o,insert:$e.of(l)},scrollIntoView:!0,annotations:n?Ee.of(n):void 0};if(a.length&&(r.selection=te(a,0)),a.length>1){let c=new M(a,0),f=r.effects=[j.of(c)];t.state.field(P,!1)===void 0&&f.push(O.appendConfig.of([P,St,It,Ae]))}t.dispatch(t.state.update(r))}}function Re(i){return({state:e,dispatch:t})=>{let n=e.field(P,!1);if(!n||i<0&&n.active==0)return!1;let s=n.active+i,o=i>0&&!n.ranges.some(l=>l.field==s+i);return t(e.update({selection:te(n.ranges,s),effects:j.of(o?null:new M(n.ranges,s))})),!0}}const xt=({state:i,dispatch:e})=>i.field(P,!1)?(e(i.update({effects:j.of(null)})),!0):!1,vt=Re(1),wt=Re(-1);function Ut(i){let e=i.field(P,!1);return!!(e&&e.ranges.some(t=>t.field==e.active+1))}function qt(i){let e=i.field(P,!1);return!!(e&&e.active>0)}const Ct=[{key:"Tab",run:vt,shift:wt},{key:"Escape",run:xt}],ue=ve.define({combine(i){return i.length?i[0]:Ct}}),St=we.highest(Ce.compute([ue],i=>i.facet(ue)));function Vt(i,e){return Object.assign(Object.assign({},e),{apply:yt(i)})}const It=F.domEventHandlers({mousedown(i,e){let t=e.state.field(P,!1),n;if(!t||(n=e.posAtCoords({x:i.clientX,y:i.clientY}))==null)return!1;let s=t.ranges.find(o=>o.from<=n&&o.to>=n);return!s||s.field==t.active?!1:(e.dispatch({selection:te(t.ranges,s.field),effects:j.of(t.ranges.some(o=>o.field>s.field)?new M(t.ranges,s.field):null)}),!0)}});function Ot(i){let e=i.replace(/[\\[.+*?(){|^$]/g,"\\$&");try{return new RegExp(`[\\p{Alphabetic}\\p{Number}_${e}]+`,"ug")}catch{return new RegExp(`[w${e}]`,"g")}}function pe(i,e){return new RegExp(e(i.source),i.unicode?"u":"")}const de=Object.create(null);function Et(i){return de[i]||(de[i]=new WeakMap)}function me(i,e,t,n,s){for(let o=i.iterLines(),l=0;!o.next().done;){let{value:a}=o,r;for(e.lastIndex=0;r=e.exec(a);)if(!n[r[0]]&&l+r.index!=s&&(t.push({type:"text",label:r[0]}),n[r[0]]=!0,t.length>=2e3))return;l+=a.length+1}}function Le(i,e,t,n,s){let o=i.length>=1e3,l=o&&e.get(i);if(l)return l;let a=[],r=Object.create(null);if(i.children){let c=0;for(let f of i.children){if(f.length>=1e3)for(let h of Le(f,e,t,n-c,s-c))r[h.label]||(r[h.label]=!0,a.push(h));else me(f,t,a,r,s-c);c+=f.length+1}}else me(i,t,a,r,s);return o&&a.length<2e3&&e.set(i,a),a}const zt=i=>{let e=i.state.languageDataAt("wordChars",i.pos).join(""),t=Ot(e),n=i.matchBefore(pe(t,l=>l+"$"));if(!n&&!i.explicit)return null;let s=n?n.from:i.pos,o=Le(i.state.doc,Et(e),t,5e4,s);return{from:s,options:o,validFor:pe(t,l=>"^"+l)}},B={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},T=O.define({map(i,e){let t=e.mapPos(i,-1,X.TrackAfter);return t??void 0}}),ie=new class extends We{};ie.startSide=1;ie.endSide=-1;const Me=J.define({create(){return ne.empty},update(i,e){if(e.selection){let t=e.state.doc.lineAt(e.selection.main.head).from,n=e.startState.doc.lineAt(e.startState.selection.main.head).from;t!=e.changes.mapPos(n,-1)&&(i=ne.empty)}i=i.map(e.changes);for(let t of e.effects)t.is(T)&&(i=i.update({add:[ie.range(t.value,t.value+1)]}));return i}});function Ht(){return[Pt,Me]}const H="()[]{}<>";function De(i){for(let e=0;e{if((Tt?i.composing:i.compositionStarted)||i.state.readOnly)return!1;let s=i.state.selection.main;if(n.length>2||n.length==2&&S(v(n,0))==1||e!=s.from||t!=s.to)return!1;let o=Rt(i.state,n);return o?(i.dispatch(o),!0):!1}),At=({state:i,dispatch:e})=>{if(i.readOnly)return!1;let n=Be(i,i.selection.main.head).brackets||B.brackets,s=null,o=i.changeByRange(l=>{if(l.empty){let a=Lt(i.doc,l.head);for(let r of n)if(r==a&&q(i.doc,l.head)==De(v(r,0)))return{changes:{from:l.head-r.length,to:l.head+r.length},range:x.cursor(l.head-r.length)}}return{range:s=l}});return s||e(i.update(o,{scrollIntoView:!0,userEvent:"delete.backward"})),!s},Kt=[{key:"Backspace",run:At}];function Rt(i,e){let t=Be(i,i.selection.main.head),n=t.brackets||B.brackets;for(let s of n){let o=De(v(s,0));if(e==s)return o==s?Bt(i,s,n.indexOf(s+s+s)>-1,t):Mt(i,s,o,t.before||B.before);if(e==o&&ke(i,i.selection.main.from))return Dt(i,s,o)}return null}function ke(i,e){let t=!1;return i.field(Me).between(0,i.doc.length,n=>{n==e&&(t=!0)}),t}function q(i,e){let t=i.sliceString(e,e+2);return t.slice(0,S(v(t,0)))}function Lt(i,e){let t=i.sliceString(e-2,e);return S(v(t,0))==t.length?t:t.slice(1)}function Mt(i,e,t,n){let s=null,o=i.changeByRange(l=>{if(!l.empty)return{changes:[{insert:e,from:l.from},{insert:t,from:l.to}],effects:T.of(l.to+e.length),range:x.range(l.anchor+e.length,l.head+e.length)};let a=q(i.doc,l.head);return!a||/\s/.test(a)||n.indexOf(a)>-1?{changes:{insert:e+t,from:l.head},effects:T.of(l.head+e.length),range:x.cursor(l.head+e.length)}:{range:s=l}});return s?null:i.update(o,{scrollIntoView:!0,userEvent:"input.type"})}function Dt(i,e,t){let n=null,s=i.changeByRange(o=>o.empty&&q(i.doc,o.head)==t?{changes:{from:o.head,to:o.head+t.length,insert:t},range:x.cursor(o.head+t.length)}:n={range:o});return n?null:i.update(s,{scrollIntoView:!0,userEvent:"input.type"})}function Bt(i,e,t,n){let s=n.stringPrefixes||B.stringPrefixes,o=null,l=i.changeByRange(a=>{if(!a.empty)return{changes:[{insert:e,from:a.from},{insert:e,from:a.to}],effects:T.of(a.to+e.length),range:x.range(a.anchor+e.length,a.head+e.length)};let r=a.head,c=q(i.doc,r),f;if(c==e){if(ge(i,r))return{changes:{insert:e+e,from:r},effects:T.of(r+e.length),range:x.cursor(r+e.length)};if(ke(i,r)){let u=t&&i.sliceDoc(r,r+e.length*3)==e+e+e?e+e+e:e;return{changes:{from:r,to:r+u.length,insert:u},range:x.cursor(r+u.length)}}}else{if(t&&i.sliceDoc(r-2*e.length,r)==e+e&&(f=be(i,r-2*e.length,s))>-1&&ge(i,f))return{changes:{insert:e+e+e+e,from:r},effects:T.of(r+e.length),range:x.cursor(r+e.length)};if(i.charCategorizer(r)(c)!=K.Word&&be(i,r,s)>-1&&!kt(i,r,e,s))return{changes:{insert:e+e,from:r},effects:T.of(r+e.length),range:x.cursor(r+e.length)}}return{range:o=a}});return o?null:i.update(l,{scrollIntoView:!0,userEvent:"input.type"})}function ge(i,e){let t=k(i).resolveInner(e+1);return t.parent&&t.from==e}function kt(i,e,t,n){let s=k(i).resolveInner(e,-1),o=n.reduce((l,a)=>Math.max(l,a.length),0);for(let l=0;l<5;l++){let a=i.sliceDoc(s.from,Math.min(s.to,s.from+t.length+o)),r=a.indexOf(t);if(!r||r>-1&&n.indexOf(a.slice(0,r))>-1){let f=s.firstChild;for(;f&&f.from==s.from&&f.to-f.from>t.length+r;){if(i.sliceDoc(f.to-t.length,f.to)==t)return!1;f=f.firstChild}return!0}let c=s.to==e&&s.parent;if(!c)break;s=c}return!1}function be(i,e,t){let n=i.charCategorizer(e);if(n(i.sliceDoc(e-1,e))!=K.Word)return e;for(let s of t){let o=e-s.length;if(i.sliceDoc(o,e)==s&&n(i.sliceDoc(o-1,o))!=K.Word)return o}return-1}function Qt(i={}){return[m,y.of(i),pt,jt,Ae]}const Ft=[{key:"Ctrl-Space",run:at},{key:"Escape",run:ct},{key:"ArrowDown",run:W(!0)},{key:"ArrowUp",run:W(!1)},{key:"PageDown",run:W(!0,"page")},{key:"PageUp",run:W(!1,"page")},{key:"Enter",run:rt}],jt=we.highest(Ce.computeN([y],i=>i.facet(y).defaultKeymap?[Ft]:[]));function Xt(i){let e=i.field(m,!1);return e&&e.active.some(t=>t.state==1)?"pending":e&&e.active.some(t=>t.state!=0)?"active":null}const ye=new WeakMap;function Gt(i){var e;let t=(e=i.field(m,!1))===null||e===void 0?void 0:e.open;if(!t||t.disabled)return[];let n=ye.get(t.options);return n||ye.set(t.options,n=t.options.map(s=>s.completion)),n}function Jt(i){var e;let t=(e=i.field(m,!1))===null||e===void 0?void 0:e.open;return t&&!t.disabled&&t.selected>=0?t.options[t.selected].completion:null}function Yt(i){var e;let t=(e=i.field(m,!1))===null||e===void 0?void 0:e.open;return t&&!t.disabled&&t.selected>=0?t.selected:null}function Zt(i){return Z.of(i)}export{Ie as CompletionContext,rt as acceptCompletion,Qt as autocompletion,xt as clearSnippet,Ht as closeBrackets,Kt as closeBracketsKeymap,ct as closeCompletion,zt as completeAnyWord,Qe as completeFromList,Ft as completionKeymap,Xt as completionStatus,Gt as currentCompletions,At as deleteBracketPair,Ut as hasNextSnippetField,qt as hasPrevSnippetField,Wt as ifIn,Nt as ifNotIn,Rt as insertBracket,Xe as insertCompletionText,W as moveCompletionSelection,vt as nextSnippetField,Ee as pickedCompletion,wt as prevSnippetField,Jt as selectedCompletion,Yt as selectedCompletionIndex,Zt as setSelectedCompletion,yt as snippet,Vt as snippetCompletion,ue as snippetKeymap,at as startCompletion}; diff --git a/docs/_app/immutable/chunks/index.e545d957.js b/docs/_app/immutable/chunks/index.f562a38b.js similarity index 99% rename from docs/_app/immutable/chunks/index.e545d957.js rename to docs/_app/immutable/chunks/index.f562a38b.js index ad8f6f1..400a42c 100644 --- a/docs/_app/immutable/chunks/index.e545d957.js +++ b/docs/_app/immutable/chunks/index.f562a38b.js @@ -1 +1 @@ -import{X as y}from"./scheduler.3ecd3668.js";import{P as G,e as E,N as U,D as H,d as w,g as b,I as W}from"./4.ae3ce863.js";class P{constructor(t,e,s,i,h,r,n,a,l,u=0,f){this.p=t,this.stack=e,this.state=s,this.reducePos=i,this.pos=h,this.score=r,this.buffer=n,this.bufferBase=a,this.curContext=l,this.lookAhead=u,this.parent=f}toString(){return`[${this.stack.filter((t,e)=>e%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(t,e,s=0){let i=t.parser.context;return new P(t,[],e,s,s,0,[],0,i?new N(i,i.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(t,e){this.stack.push(this.state,e,this.bufferBase+this.buffer.length),this.state=t}reduce(t){var e;let s=t>>19,i=t&65535,{parser:h}=this.p,r=h.dynamicPrecedence(i);if(r&&(this.score+=r),s==0){this.pushState(h.getGoto(this.state,i,!0),this.reducePos),i=2e3&&!(!((e=this.p.parser.nodeSet.types[i])===null||e===void 0)&&e.isAnonymous)&&(a==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=l):this.p.lastBigReductionSizen;)this.stack.pop();this.reduceContext(i,a)}storeNode(t,e,s,i=4,h=!1){if(t==0&&(!this.stack.length||this.stack[this.stack.length-1]0&&r.buffer[n-4]==0&&r.buffer[n-1]>-1){if(e==s)return;if(r.buffer[n-2]>=e){r.buffer[n-2]=s;return}}}if(!h||this.pos==s)this.buffer.push(t,e,s,i);else{let r=this.buffer.length;if(r>0&&this.buffer[r-4]!=0)for(;r>0&&this.buffer[r-2]>s;)this.buffer[r]=this.buffer[r-4],this.buffer[r+1]=this.buffer[r-3],this.buffer[r+2]=this.buffer[r-2],this.buffer[r+3]=this.buffer[r-1],r-=4,i>4&&(i-=4);this.buffer[r]=t,this.buffer[r+1]=e,this.buffer[r+2]=s,this.buffer[r+3]=i}}shift(t,e,s){let i=this.pos;if(t&131072)this.pushState(t&65535,this.pos);else if(t&262144)this.pos=s,this.shiftContext(e,i),e<=this.p.parser.maxNode&&this.buffer.push(e,i,s,4);else{let h=t,{parser:r}=this.p;(s>this.pos||e<=r.maxNode)&&(this.pos=s,r.stateFlag(h,1)||(this.reducePos=s)),this.pushState(h,i),this.shiftContext(e,i),e<=r.maxNode&&this.buffer.push(e,i,s,4)}}apply(t,e,s){t&65536?this.reduce(t):this.shift(t,e,s)}useNode(t,e){let s=this.p.reused.length-1;(s<0||this.p.reused[s]!=t)&&(this.p.reused.push(t),s++);let i=this.pos;this.reducePos=this.pos=i+t.length,this.pushState(e,i),this.buffer.push(s,i,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,t,this,this.p.stream.reset(this.pos-t.length)))}split(){let t=this,e=t.buffer.length;for(;e>0&&t.buffer[e-2]>t.reducePos;)e-=4;let s=t.buffer.slice(e),i=t.bufferBase+e;for(;t&&i==t.bufferBase;)t=t.parent;return new P(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,s,i,this.curContext,this.lookAhead,t)}recoverByDelete(t,e){let s=t<=this.p.parser.maxNode;s&&this.storeNode(t,this.pos,e,4),this.storeNode(0,this.pos,e,s?8:4),this.pos=this.reducePos=e,this.score-=190}canShift(t){for(let e=new X(this);;){let s=this.p.parser.stateSlot(e.state,4)||this.p.parser.hasAction(e.state,t);if(s==0)return!1;if(!(s&65536))return!0;e.reduce(s)}}recoverByInsert(t){if(this.stack.length>=300)return[];let e=this.p.parser.nextStates(this.state);if(e.length>8||this.stack.length>=120){let i=[];for(let h=0,r;ha&1&&n==r)||i.push(e[h],r)}e=i}let s=[];for(let i=0;i>19,i=e&65535,h=this.stack.length-s*3;if(h<0||t.getGoto(this.stack[h],i,!1)<0){let r=this.findForcedReduction();if(r==null)return!1;e=r}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(e),!0}findForcedReduction(){let{parser:t}=this.p,e=[],s=(i,h)=>{if(!e.includes(i))return e.push(i),t.allActions(i,r=>{if(!(r&393216))if(r&65536){let n=(r>>19)-h;if(n>1){let a=r&65535,l=this.stack.length-n*3;if(l>=0&&t.getGoto(this.stack[l],a,!1)>=0)return n<<19|65536|a}}else{let n=s(r,h+1);if(n!=null)return n}})};return s(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:t}=this.p;return t.data[t.stateSlot(this.state,1)]==65535&&!t.stateSlot(this.state,4)}restart(){this.state=this.stack[0],this.stack.length=0}sameState(t){if(this.state!=t.state||this.stack.length!=t.stack.length)return!1;for(let e=0;ethis.lookAhead&&(this.emitLookAhead(),this.lookAhead=t)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class N{constructor(t,e){this.tracker=t,this.context=e,this.hash=t.strict?t.hash(e):0}}var D;(function(o){o[o.Insert=200]="Insert",o[o.Delete=190]="Delete",o[o.Reduce=100]="Reduce",o[o.MaxNext=4]="MaxNext",o[o.MaxInsertStackDepth=300]="MaxInsertStackDepth",o[o.DampenInsertStackDepth=120]="DampenInsertStackDepth",o[o.MinBigReduction=2e3]="MinBigReduction"})(D||(D={}));class X{constructor(t){this.start=t,this.state=t.state,this.stack=t.stack,this.base=this.stack.length}reduce(t){let e=t&65535,s=t>>19;s==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(s-1)*3;let i=this.start.p.parser.getGoto(this.stack[this.base-3],e,!0);this.state=i}}class C{constructor(t,e,s){this.stack=t,this.pos=e,this.index=s,this.buffer=t.buffer,this.index==0&&this.maybeNext()}static create(t,e=t.bufferBase+t.buffer.length){return new C(t,e,e-t.bufferBase)}maybeNext(){let t=this.stack.parent;t!=null&&(this.index=this.stack.bufferBase-t.bufferBase,this.stack=t,this.buffer=t.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new C(this.stack,this.pos,this.index)}}function x(o,t=Uint16Array){if(typeof o!="string")return o;let e=null;for(let s=0,i=0;s=92&&r--,r>=34&&r--;let a=r-32;if(a>=46&&(a-=46,n=!0),h+=a,n)break;h*=46}e?e[i++]=h:e=new t(h)}return e}class S{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const I=new S;class q{constructor(t,e){this.input=t,this.ranges=e,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=I,this.rangeIndex=0,this.pos=this.chunkPos=e[0].from,this.range=e[0],this.end=e[e.length-1].to,this.readNext()}resolveOffset(t,e){let s=this.range,i=this.rangeIndex,h=this.pos+t;for(;hs.to:h>=s.to;){if(i==this.ranges.length-1)return null;let r=this.ranges[++i];h+=r.from-s.to,s=r}return h}clipPos(t){if(t>=this.range.from&&tt)return Math.max(t,e.from);return this.end}peek(t){let e=this.chunkOff+t,s,i;if(e>=0&&e=this.chunk2Pos&&sn.to&&(this.chunk2=this.chunk2.slice(0,n.to-s)),i=this.chunk2.charCodeAt(0)}}return s>=this.token.lookAhead&&(this.token.lookAhead=s+1),i}acceptToken(t,e=0){let s=e?this.resolveOffset(e,-1):this.pos;if(s==null||s=this.chunk2Pos&&this.posthis.range.to?t.slice(0,this.range.to-this.pos):t,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(t=1){for(this.chunkOff+=t;this.pos+t>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();t-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=t,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(t,e){if(e?(this.token=e,e.start=t,e.lookAhead=t+1,e.value=e.extended=-1):this.token=I,this.pos!=t){if(this.pos=t,t==this.end)return this.setDone(),this;for(;t=this.range.to;)this.range=this.ranges[++this.rangeIndex];t>=this.chunkPos&&t=this.chunkPos&&e<=this.chunkPos+this.chunk.length)return this.chunk.slice(t-this.chunkPos,e-this.chunkPos);if(t>=this.chunk2Pos&&e<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(t-this.chunk2Pos,e-this.chunk2Pos);if(t>=this.range.from&&e<=this.range.to)return this.input.read(t,e);let s="";for(let i of this.ranges){if(i.from>=e)break;i.to>t&&(s+=this.input.read(Math.max(i.from,t),Math.min(i.to,e)))}return s}}class m{constructor(t,e){this.data=t,this.id=e}token(t,e){let{parser:s}=e.p;L(this.data,t,e,this.id,s.data,s.tokenPrecTable)}}m.prototype.contextual=m.prototype.fallback=m.prototype.extend=!1;class J{constructor(t,e,s){this.precTable=e,this.elseToken=s,this.data=typeof t=="string"?x(t):t}token(t,e){let s=t.pos,i=0;for(;;){let h=t.next<0,r=t.resolveOffset(1,1);if(L(this.data,t,e,0,this.data,this.precTable),t.token.value>-1)break;if(this.elseToken==null)return;if(h||i++,r==null)break;t.reset(r,t.token)}i&&(t.reset(s,t.token),t.acceptToken(this.elseToken,i))}}J.prototype.contextual=m.prototype.fallback=m.prototype.extend=!1;class st{constructor(t,e={}){this.token=t,this.contextual=!!e.contextual,this.fallback=!!e.fallback,this.extend=!!e.extend}}function L(o,t,e,s,i,h){let r=0,n=1<0){let d=o[p];if(a.allows(d)&&(t.token.value==-1||t.token.value==d||K(d,t.token.value,i,h))){t.acceptToken(d);break}}let u=t.next,f=0,c=o[r+2];if(t.next<0&&c>f&&o[l+c*3-3]==65535&&o[l+c*3-3]==65535){r=o[l+c*3-1];continue t}for(;f>1,d=l+p+(p<<1),$=o[d],j=o[d+1]||65536;if(u<$)c=p;else if(u>=j)f=p+1;else{r=o[d+2],t.advance();continue t}}break}}function z(o,t,e){for(let s=t,i;(i=o[s])!=65535;s++)if(i==e)return s-t;return-1}function K(o,t,e,s){let i=z(e,s,t);return i<0||z(e,s,o)t)&&!s.type.isError)return e<0?Math.max(0,Math.min(s.to-1,t-25)):Math.min(o.length,Math.max(s.from+1,t+25));if(e<0?s.prevSibling():s.nextSibling())break;if(!s.parent())return e<0?0:o.length}}class Q{constructor(t,e){this.fragments=t,this.nodeSet=e,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let t=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(t){for(this.safeFrom=t.openStart?M(t.tree,t.from+t.offset,1)-t.offset:t.from,this.safeTo=t.openEnd?M(t.tree,t.to+t.offset,-1)-t.offset:t.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(t.tree),this.start.push(-t.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(t){if(tt)return this.nextStart=r,null;if(h instanceof b){if(r==t){if(r=Math.max(this.safeFrom,t)&&(this.trees.push(h),this.start.push(r),this.index.push(0))}else this.index[e]++,this.nextStart=r+h.length}}}class V{constructor(t,e){this.stream=e,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=t.tokenizers.map(s=>new S)}getActions(t){let e=0,s=null,{parser:i}=t.p,{tokenizers:h}=i,r=i.stateSlot(t.state,3),n=t.curContext?t.curContext.hash:0,a=0;for(let l=0;lf.end+25&&(a=Math.max(f.lookAhead,a)),f.value!=0)){let c=e;if(f.extended>-1&&(e=this.addActions(t,f.extended,f.end,e)),e=this.addActions(t,f.value,f.end,e),!u.extend&&(s=f,e>c))break}}for(;this.actions.length>e;)this.actions.pop();return a&&t.setLookAhead(a),!s&&t.pos==this.stream.end&&(s=new S,s.value=t.p.parser.eofTerm,s.start=s.end=t.pos,e=this.addActions(t,s.value,s.end,e)),this.mainToken=s,this.actions}getMainToken(t){if(this.mainToken)return this.mainToken;let e=new S,{pos:s,p:i}=t;return e.start=s,e.end=Math.min(s+1,i.stream.end),e.value=s==i.stream.end?i.parser.eofTerm:0,e}updateCachedToken(t,e,s){let i=this.stream.clipPos(s.pos);if(e.token(this.stream.reset(i,t),s),t.value>-1){let{parser:h}=s.p;for(let r=0;r=0&&s.p.parser.dialect.allows(n>>1)){n&1?t.extended=n>>1:t.value=n>>1;break}}}else t.value=0,t.end=this.stream.clipPos(i+1)}putAction(t,e,s,i){for(let h=0;ht.bufferLength*4?new Q(s,t.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let t=this.stacks,e=this.minStackPos,s=this.stacks=[],i,h;if(this.bigReductionCount>300&&t.length==1){let[r]=t;for(;r.forceReduce()&&r.stack.length&&r.stack[r.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let r=0;re)s.push(n);else{if(this.advanceStack(n,s,t))continue;{i||(i=[],h=[]),i.push(n);let a=this.tokens.getMainToken(n);h.push(a.value,a.end)}}break}}if(!s.length){let r=i&&_(i);if(r)return this.stackToTree(r);if(this.parser.strict)throw g&&i&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+e);this.recovering||(this.recovering=5)}if(this.recovering&&i){let r=this.stoppedAt!=null&&i[0].pos>this.stoppedAt?i[0]:this.runRecovery(i,h,s);if(r)return this.stackToTree(r.forceAll())}if(this.recovering){let r=this.recovering==1?1:this.recovering*3;if(s.length>r)for(s.sort((n,a)=>a.score-n.score);s.length>r;)s.pop();s.some(n=>n.reducePos>e)&&this.recovering--}else if(s.length>1){t:for(let r=0;r500&&l.buffer.length>500)if((n.score-l.score||n.buffer.length-l.buffer.length)>0)s.splice(a--,1);else{s.splice(r--,1);continue t}}}s.length>12&&s.splice(12,s.length-12)}this.minStackPos=s[0].pos;for(let r=1;r ":"";if(this.stoppedAt!=null&&i>this.stoppedAt)return t.forceReduce()?t:null;if(this.fragments){let l=t.curContext&&t.curContext.tracker.strict,u=l?t.curContext.hash:0;for(let f=this.fragments.nodeAt(i);f;){let c=this.parser.nodeSet.types[f.type.id]==f.type?h.getGoto(t.state,f.type.id):-1;if(c>-1&&f.length&&(!l||(f.prop(w.contextHash)||0)==u))return t.useNode(f,c),g&&console.log(r+this.stackID(t)+` (via reuse of ${h.getName(f.type.id)})`),!0;if(!(f instanceof b)||f.children.length==0||f.positions[0]>0)break;let p=f.children[0];if(p instanceof b&&f.positions[0]==0)f=p;else break}}let n=h.stateSlot(t.state,4);if(n>0)return t.reduce(n),g&&console.log(r+this.stackID(t)+` (via always-reduce ${h.getName(n&65535)})`),!0;if(t.stack.length>=15e3)for(;t.stack.length>9e3&&t.forceReduce(););let a=this.tokens.getActions(t);for(let l=0;li?e.push(d):s.push(d)}return!1}advanceFully(t,e){let s=t.pos;for(;;){if(!this.advanceStack(t,null,null))return!1;if(t.pos>s)return F(t,e),!0}}runRecovery(t,e,s){let i=null,h=!1;for(let r=0;r ":"";if(n.deadEnd&&(h||(h=!0,n.restart(),g&&console.log(u+this.stackID(n)+" (restarted)"),this.advanceFully(n,s))))continue;let f=n.split(),c=u;for(let p=0;f.forceReduce()&&p<10&&(g&&console.log(c+this.stackID(f)+" (via force-reduce)"),!this.advanceFully(f,s));p++)g&&(c=this.stackID(f)+" -> ");for(let p of n.recoverByInsert(a))g&&console.log(u+this.stackID(p)+" (via recover-insert)"),this.advanceFully(p,s);this.stream.end>n.pos?(l==n.pos&&(l++,a=0),n.recoverByDelete(a,l),g&&console.log(u+this.stackID(n)+` (via recover-delete ${this.parser.getName(a)})`),F(n,s)):(!i||i.scoreo;class it{constructor(t){this.start=t.start,this.shift=t.shift||T,this.reduce=t.reduce||T,this.reuse=t.reuse||T,this.hash=t.hash||(()=>0),this.strict=t.strict!==!1}}class v extends G{constructor(t){if(super(),this.wrappers=[],t.version!=14)throw new RangeError(`Parser version (${t.version}) doesn't match runtime version (14)`);let e=t.nodeNames.split(" ");this.minRepeatTerm=e.length;for(let n=0;nt.topRules[n][1]),i=[];for(let n=0;n=0)h(u,a,n[l++]);else{let f=n[l+-u];for(let c=-u;c>0;c--)h(n[l++],a,f);l++}}}this.nodeSet=new E(e.map((n,a)=>U.define({name:a>=this.minRepeatTerm?void 0:n,id:a,props:i[a],top:s.indexOf(a)>-1,error:a==0,skipped:t.skippedNodes&&t.skippedNodes.indexOf(a)>-1}))),t.propSources&&(this.nodeSet=this.nodeSet.extend(...t.propSources)),this.strict=!1,this.bufferLength=H;let r=x(t.tokenData);this.context=t.context,this.specializerSpecs=t.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let n=0;ntypeof n=="number"?new m(r,n):n),this.topRules=t.topRules,this.dialects=t.dialects||{},this.dynamicPrecedences=t.dynamicPrecedences||null,this.tokenPrecTable=t.tokenPrec,this.termNames=t.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(t,e,s){let i=new Y(this,t,e,s);for(let h of this.wrappers)i=h(i,t,e,s);return i}getGoto(t,e,s=!1){let i=this.goto;if(e>=i[0])return-1;for(let h=i[e+1];;){let r=i[h++],n=r&1,a=i[h++];if(n&&s)return a;for(let l=h+(r>>1);h0}validAction(t,e){return!!this.allActions(t,s=>s==e?!0:null)}allActions(t,e){let s=this.stateSlot(t,4),i=s?e(s):void 0;for(let h=this.stateSlot(t,1);i==null;h+=3){if(this.data[h]==65535)if(this.data[h+1]==1)h=k(this.data,h+2);else break;i=e(k(this.data,h+1))}return i}nextStates(t){let e=[];for(let s=this.stateSlot(t,1);;s+=3){if(this.data[s]==65535)if(this.data[s+1]==1)s=k(this.data,s+2);else break;if(!(this.data[s+2]&1)){let i=this.data[s+1];e.some((h,r)=>r&1&&h==i)||e.push(this.data[s],i)}}return e}configure(t){let e=Object.assign(Object.create(v.prototype),this);if(t.props&&(e.nodeSet=this.nodeSet.extend(...t.props)),t.top){let s=this.topRules[t.top];if(!s)throw new RangeError(`Invalid top rule name ${t.top}`);e.top=s}return t.tokenizers&&(e.tokenizers=this.tokenizers.map(s=>{let i=t.tokenizers.find(h=>h.from==s);return i?i.to:s})),t.specializers&&(e.specializers=this.specializers.slice(),e.specializerSpecs=this.specializerSpecs.map((s,i)=>{let h=t.specializers.find(n=>n.from==s.external);if(!h)return s;let r=Object.assign(Object.assign({},s),{external:h.to});return e.specializers[i]=O(r),r})),t.contextTracker&&(e.context=t.contextTracker),t.dialect&&(e.dialect=this.parseDialect(t.dialect)),t.strict!=null&&(e.strict=t.strict),t.wrap&&(e.wrappers=e.wrappers.concat(t.wrap)),t.bufferLength!=null&&(e.bufferLength=t.bufferLength),e}hasWrappers(){return this.wrappers.length>0}getName(t){return this.termNames?this.termNames[t]:String(t<=this.maxNode&&this.nodeSet.types[t].name||t)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(t){let e=this.dynamicPrecedences;return e==null?0:e[t]||0}parseDialect(t){let e=Object.keys(this.dialects),s=e.map(()=>!1);if(t)for(let h of t.split(" ")){let r=e.indexOf(h);r>=0&&(s[r]=!0)}let i=null;for(let h=0;hs)&&e.p.parser.stateFlag(e.state,2)&&(!t||t.scoreo.external(e,s)<<1|t}return o.get}export{it as C,st as E,v as L,J as a}; +import{X as y}from"./scheduler.6381a9b9.js";import{P as G,e as E,N as U,D as H,d as w,g as b,I as W}from"./4.cfac87d8.js";class P{constructor(t,e,s,i,h,r,n,a,l,u=0,f){this.p=t,this.stack=e,this.state=s,this.reducePos=i,this.pos=h,this.score=r,this.buffer=n,this.bufferBase=a,this.curContext=l,this.lookAhead=u,this.parent=f}toString(){return`[${this.stack.filter((t,e)=>e%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(t,e,s=0){let i=t.parser.context;return new P(t,[],e,s,s,0,[],0,i?new N(i,i.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(t,e){this.stack.push(this.state,e,this.bufferBase+this.buffer.length),this.state=t}reduce(t){var e;let s=t>>19,i=t&65535,{parser:h}=this.p,r=h.dynamicPrecedence(i);if(r&&(this.score+=r),s==0){this.pushState(h.getGoto(this.state,i,!0),this.reducePos),i=2e3&&!(!((e=this.p.parser.nodeSet.types[i])===null||e===void 0)&&e.isAnonymous)&&(a==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=l):this.p.lastBigReductionSizen;)this.stack.pop();this.reduceContext(i,a)}storeNode(t,e,s,i=4,h=!1){if(t==0&&(!this.stack.length||this.stack[this.stack.length-1]0&&r.buffer[n-4]==0&&r.buffer[n-1]>-1){if(e==s)return;if(r.buffer[n-2]>=e){r.buffer[n-2]=s;return}}}if(!h||this.pos==s)this.buffer.push(t,e,s,i);else{let r=this.buffer.length;if(r>0&&this.buffer[r-4]!=0)for(;r>0&&this.buffer[r-2]>s;)this.buffer[r]=this.buffer[r-4],this.buffer[r+1]=this.buffer[r-3],this.buffer[r+2]=this.buffer[r-2],this.buffer[r+3]=this.buffer[r-1],r-=4,i>4&&(i-=4);this.buffer[r]=t,this.buffer[r+1]=e,this.buffer[r+2]=s,this.buffer[r+3]=i}}shift(t,e,s){let i=this.pos;if(t&131072)this.pushState(t&65535,this.pos);else if(t&262144)this.pos=s,this.shiftContext(e,i),e<=this.p.parser.maxNode&&this.buffer.push(e,i,s,4);else{let h=t,{parser:r}=this.p;(s>this.pos||e<=r.maxNode)&&(this.pos=s,r.stateFlag(h,1)||(this.reducePos=s)),this.pushState(h,i),this.shiftContext(e,i),e<=r.maxNode&&this.buffer.push(e,i,s,4)}}apply(t,e,s){t&65536?this.reduce(t):this.shift(t,e,s)}useNode(t,e){let s=this.p.reused.length-1;(s<0||this.p.reused[s]!=t)&&(this.p.reused.push(t),s++);let i=this.pos;this.reducePos=this.pos=i+t.length,this.pushState(e,i),this.buffer.push(s,i,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,t,this,this.p.stream.reset(this.pos-t.length)))}split(){let t=this,e=t.buffer.length;for(;e>0&&t.buffer[e-2]>t.reducePos;)e-=4;let s=t.buffer.slice(e),i=t.bufferBase+e;for(;t&&i==t.bufferBase;)t=t.parent;return new P(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,s,i,this.curContext,this.lookAhead,t)}recoverByDelete(t,e){let s=t<=this.p.parser.maxNode;s&&this.storeNode(t,this.pos,e,4),this.storeNode(0,this.pos,e,s?8:4),this.pos=this.reducePos=e,this.score-=190}canShift(t){for(let e=new X(this);;){let s=this.p.parser.stateSlot(e.state,4)||this.p.parser.hasAction(e.state,t);if(s==0)return!1;if(!(s&65536))return!0;e.reduce(s)}}recoverByInsert(t){if(this.stack.length>=300)return[];let e=this.p.parser.nextStates(this.state);if(e.length>8||this.stack.length>=120){let i=[];for(let h=0,r;ha&1&&n==r)||i.push(e[h],r)}e=i}let s=[];for(let i=0;i>19,i=e&65535,h=this.stack.length-s*3;if(h<0||t.getGoto(this.stack[h],i,!1)<0){let r=this.findForcedReduction();if(r==null)return!1;e=r}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(e),!0}findForcedReduction(){let{parser:t}=this.p,e=[],s=(i,h)=>{if(!e.includes(i))return e.push(i),t.allActions(i,r=>{if(!(r&393216))if(r&65536){let n=(r>>19)-h;if(n>1){let a=r&65535,l=this.stack.length-n*3;if(l>=0&&t.getGoto(this.stack[l],a,!1)>=0)return n<<19|65536|a}}else{let n=s(r,h+1);if(n!=null)return n}})};return s(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:t}=this.p;return t.data[t.stateSlot(this.state,1)]==65535&&!t.stateSlot(this.state,4)}restart(){this.state=this.stack[0],this.stack.length=0}sameState(t){if(this.state!=t.state||this.stack.length!=t.stack.length)return!1;for(let e=0;ethis.lookAhead&&(this.emitLookAhead(),this.lookAhead=t)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class N{constructor(t,e){this.tracker=t,this.context=e,this.hash=t.strict?t.hash(e):0}}var D;(function(o){o[o.Insert=200]="Insert",o[o.Delete=190]="Delete",o[o.Reduce=100]="Reduce",o[o.MaxNext=4]="MaxNext",o[o.MaxInsertStackDepth=300]="MaxInsertStackDepth",o[o.DampenInsertStackDepth=120]="DampenInsertStackDepth",o[o.MinBigReduction=2e3]="MinBigReduction"})(D||(D={}));class X{constructor(t){this.start=t,this.state=t.state,this.stack=t.stack,this.base=this.stack.length}reduce(t){let e=t&65535,s=t>>19;s==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(s-1)*3;let i=this.start.p.parser.getGoto(this.stack[this.base-3],e,!0);this.state=i}}class C{constructor(t,e,s){this.stack=t,this.pos=e,this.index=s,this.buffer=t.buffer,this.index==0&&this.maybeNext()}static create(t,e=t.bufferBase+t.buffer.length){return new C(t,e,e-t.bufferBase)}maybeNext(){let t=this.stack.parent;t!=null&&(this.index=this.stack.bufferBase-t.bufferBase,this.stack=t,this.buffer=t.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new C(this.stack,this.pos,this.index)}}function x(o,t=Uint16Array){if(typeof o!="string")return o;let e=null;for(let s=0,i=0;s=92&&r--,r>=34&&r--;let a=r-32;if(a>=46&&(a-=46,n=!0),h+=a,n)break;h*=46}e?e[i++]=h:e=new t(h)}return e}class S{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const I=new S;class q{constructor(t,e){this.input=t,this.ranges=e,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=I,this.rangeIndex=0,this.pos=this.chunkPos=e[0].from,this.range=e[0],this.end=e[e.length-1].to,this.readNext()}resolveOffset(t,e){let s=this.range,i=this.rangeIndex,h=this.pos+t;for(;hs.to:h>=s.to;){if(i==this.ranges.length-1)return null;let r=this.ranges[++i];h+=r.from-s.to,s=r}return h}clipPos(t){if(t>=this.range.from&&tt)return Math.max(t,e.from);return this.end}peek(t){let e=this.chunkOff+t,s,i;if(e>=0&&e=this.chunk2Pos&&sn.to&&(this.chunk2=this.chunk2.slice(0,n.to-s)),i=this.chunk2.charCodeAt(0)}}return s>=this.token.lookAhead&&(this.token.lookAhead=s+1),i}acceptToken(t,e=0){let s=e?this.resolveOffset(e,-1):this.pos;if(s==null||s=this.chunk2Pos&&this.posthis.range.to?t.slice(0,this.range.to-this.pos):t,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(t=1){for(this.chunkOff+=t;this.pos+t>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();t-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=t,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(t,e){if(e?(this.token=e,e.start=t,e.lookAhead=t+1,e.value=e.extended=-1):this.token=I,this.pos!=t){if(this.pos=t,t==this.end)return this.setDone(),this;for(;t=this.range.to;)this.range=this.ranges[++this.rangeIndex];t>=this.chunkPos&&t=this.chunkPos&&e<=this.chunkPos+this.chunk.length)return this.chunk.slice(t-this.chunkPos,e-this.chunkPos);if(t>=this.chunk2Pos&&e<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(t-this.chunk2Pos,e-this.chunk2Pos);if(t>=this.range.from&&e<=this.range.to)return this.input.read(t,e);let s="";for(let i of this.ranges){if(i.from>=e)break;i.to>t&&(s+=this.input.read(Math.max(i.from,t),Math.min(i.to,e)))}return s}}class m{constructor(t,e){this.data=t,this.id=e}token(t,e){let{parser:s}=e.p;L(this.data,t,e,this.id,s.data,s.tokenPrecTable)}}m.prototype.contextual=m.prototype.fallback=m.prototype.extend=!1;class J{constructor(t,e,s){this.precTable=e,this.elseToken=s,this.data=typeof t=="string"?x(t):t}token(t,e){let s=t.pos,i=0;for(;;){let h=t.next<0,r=t.resolveOffset(1,1);if(L(this.data,t,e,0,this.data,this.precTable),t.token.value>-1)break;if(this.elseToken==null)return;if(h||i++,r==null)break;t.reset(r,t.token)}i&&(t.reset(s,t.token),t.acceptToken(this.elseToken,i))}}J.prototype.contextual=m.prototype.fallback=m.prototype.extend=!1;class st{constructor(t,e={}){this.token=t,this.contextual=!!e.contextual,this.fallback=!!e.fallback,this.extend=!!e.extend}}function L(o,t,e,s,i,h){let r=0,n=1<0){let d=o[p];if(a.allows(d)&&(t.token.value==-1||t.token.value==d||K(d,t.token.value,i,h))){t.acceptToken(d);break}}let u=t.next,f=0,c=o[r+2];if(t.next<0&&c>f&&o[l+c*3-3]==65535&&o[l+c*3-3]==65535){r=o[l+c*3-1];continue t}for(;f>1,d=l+p+(p<<1),$=o[d],j=o[d+1]||65536;if(u<$)c=p;else if(u>=j)f=p+1;else{r=o[d+2],t.advance();continue t}}break}}function z(o,t,e){for(let s=t,i;(i=o[s])!=65535;s++)if(i==e)return s-t;return-1}function K(o,t,e,s){let i=z(e,s,t);return i<0||z(e,s,o)t)&&!s.type.isError)return e<0?Math.max(0,Math.min(s.to-1,t-25)):Math.min(o.length,Math.max(s.from+1,t+25));if(e<0?s.prevSibling():s.nextSibling())break;if(!s.parent())return e<0?0:o.length}}class Q{constructor(t,e){this.fragments=t,this.nodeSet=e,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let t=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(t){for(this.safeFrom=t.openStart?M(t.tree,t.from+t.offset,1)-t.offset:t.from,this.safeTo=t.openEnd?M(t.tree,t.to+t.offset,-1)-t.offset:t.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(t.tree),this.start.push(-t.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(t){if(tt)return this.nextStart=r,null;if(h instanceof b){if(r==t){if(r=Math.max(this.safeFrom,t)&&(this.trees.push(h),this.start.push(r),this.index.push(0))}else this.index[e]++,this.nextStart=r+h.length}}}class V{constructor(t,e){this.stream=e,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=t.tokenizers.map(s=>new S)}getActions(t){let e=0,s=null,{parser:i}=t.p,{tokenizers:h}=i,r=i.stateSlot(t.state,3),n=t.curContext?t.curContext.hash:0,a=0;for(let l=0;lf.end+25&&(a=Math.max(f.lookAhead,a)),f.value!=0)){let c=e;if(f.extended>-1&&(e=this.addActions(t,f.extended,f.end,e)),e=this.addActions(t,f.value,f.end,e),!u.extend&&(s=f,e>c))break}}for(;this.actions.length>e;)this.actions.pop();return a&&t.setLookAhead(a),!s&&t.pos==this.stream.end&&(s=new S,s.value=t.p.parser.eofTerm,s.start=s.end=t.pos,e=this.addActions(t,s.value,s.end,e)),this.mainToken=s,this.actions}getMainToken(t){if(this.mainToken)return this.mainToken;let e=new S,{pos:s,p:i}=t;return e.start=s,e.end=Math.min(s+1,i.stream.end),e.value=s==i.stream.end?i.parser.eofTerm:0,e}updateCachedToken(t,e,s){let i=this.stream.clipPos(s.pos);if(e.token(this.stream.reset(i,t),s),t.value>-1){let{parser:h}=s.p;for(let r=0;r=0&&s.p.parser.dialect.allows(n>>1)){n&1?t.extended=n>>1:t.value=n>>1;break}}}else t.value=0,t.end=this.stream.clipPos(i+1)}putAction(t,e,s,i){for(let h=0;ht.bufferLength*4?new Q(s,t.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let t=this.stacks,e=this.minStackPos,s=this.stacks=[],i,h;if(this.bigReductionCount>300&&t.length==1){let[r]=t;for(;r.forceReduce()&&r.stack.length&&r.stack[r.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let r=0;re)s.push(n);else{if(this.advanceStack(n,s,t))continue;{i||(i=[],h=[]),i.push(n);let a=this.tokens.getMainToken(n);h.push(a.value,a.end)}}break}}if(!s.length){let r=i&&_(i);if(r)return this.stackToTree(r);if(this.parser.strict)throw g&&i&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+e);this.recovering||(this.recovering=5)}if(this.recovering&&i){let r=this.stoppedAt!=null&&i[0].pos>this.stoppedAt?i[0]:this.runRecovery(i,h,s);if(r)return this.stackToTree(r.forceAll())}if(this.recovering){let r=this.recovering==1?1:this.recovering*3;if(s.length>r)for(s.sort((n,a)=>a.score-n.score);s.length>r;)s.pop();s.some(n=>n.reducePos>e)&&this.recovering--}else if(s.length>1){t:for(let r=0;r500&&l.buffer.length>500)if((n.score-l.score||n.buffer.length-l.buffer.length)>0)s.splice(a--,1);else{s.splice(r--,1);continue t}}}s.length>12&&s.splice(12,s.length-12)}this.minStackPos=s[0].pos;for(let r=1;r ":"";if(this.stoppedAt!=null&&i>this.stoppedAt)return t.forceReduce()?t:null;if(this.fragments){let l=t.curContext&&t.curContext.tracker.strict,u=l?t.curContext.hash:0;for(let f=this.fragments.nodeAt(i);f;){let c=this.parser.nodeSet.types[f.type.id]==f.type?h.getGoto(t.state,f.type.id):-1;if(c>-1&&f.length&&(!l||(f.prop(w.contextHash)||0)==u))return t.useNode(f,c),g&&console.log(r+this.stackID(t)+` (via reuse of ${h.getName(f.type.id)})`),!0;if(!(f instanceof b)||f.children.length==0||f.positions[0]>0)break;let p=f.children[0];if(p instanceof b&&f.positions[0]==0)f=p;else break}}let n=h.stateSlot(t.state,4);if(n>0)return t.reduce(n),g&&console.log(r+this.stackID(t)+` (via always-reduce ${h.getName(n&65535)})`),!0;if(t.stack.length>=15e3)for(;t.stack.length>9e3&&t.forceReduce(););let a=this.tokens.getActions(t);for(let l=0;li?e.push(d):s.push(d)}return!1}advanceFully(t,e){let s=t.pos;for(;;){if(!this.advanceStack(t,null,null))return!1;if(t.pos>s)return F(t,e),!0}}runRecovery(t,e,s){let i=null,h=!1;for(let r=0;r ":"";if(n.deadEnd&&(h||(h=!0,n.restart(),g&&console.log(u+this.stackID(n)+" (restarted)"),this.advanceFully(n,s))))continue;let f=n.split(),c=u;for(let p=0;f.forceReduce()&&p<10&&(g&&console.log(c+this.stackID(f)+" (via force-reduce)"),!this.advanceFully(f,s));p++)g&&(c=this.stackID(f)+" -> ");for(let p of n.recoverByInsert(a))g&&console.log(u+this.stackID(p)+" (via recover-insert)"),this.advanceFully(p,s);this.stream.end>n.pos?(l==n.pos&&(l++,a=0),n.recoverByDelete(a,l),g&&console.log(u+this.stackID(n)+` (via recover-delete ${this.parser.getName(a)})`),F(n,s)):(!i||i.scoreo;class it{constructor(t){this.start=t.start,this.shift=t.shift||T,this.reduce=t.reduce||T,this.reuse=t.reuse||T,this.hash=t.hash||(()=>0),this.strict=t.strict!==!1}}class v extends G{constructor(t){if(super(),this.wrappers=[],t.version!=14)throw new RangeError(`Parser version (${t.version}) doesn't match runtime version (14)`);let e=t.nodeNames.split(" ");this.minRepeatTerm=e.length;for(let n=0;nt.topRules[n][1]),i=[];for(let n=0;n=0)h(u,a,n[l++]);else{let f=n[l+-u];for(let c=-u;c>0;c--)h(n[l++],a,f);l++}}}this.nodeSet=new E(e.map((n,a)=>U.define({name:a>=this.minRepeatTerm?void 0:n,id:a,props:i[a],top:s.indexOf(a)>-1,error:a==0,skipped:t.skippedNodes&&t.skippedNodes.indexOf(a)>-1}))),t.propSources&&(this.nodeSet=this.nodeSet.extend(...t.propSources)),this.strict=!1,this.bufferLength=H;let r=x(t.tokenData);this.context=t.context,this.specializerSpecs=t.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let n=0;ntypeof n=="number"?new m(r,n):n),this.topRules=t.topRules,this.dialects=t.dialects||{},this.dynamicPrecedences=t.dynamicPrecedences||null,this.tokenPrecTable=t.tokenPrec,this.termNames=t.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(t,e,s){let i=new Y(this,t,e,s);for(let h of this.wrappers)i=h(i,t,e,s);return i}getGoto(t,e,s=!1){let i=this.goto;if(e>=i[0])return-1;for(let h=i[e+1];;){let r=i[h++],n=r&1,a=i[h++];if(n&&s)return a;for(let l=h+(r>>1);h0}validAction(t,e){return!!this.allActions(t,s=>s==e?!0:null)}allActions(t,e){let s=this.stateSlot(t,4),i=s?e(s):void 0;for(let h=this.stateSlot(t,1);i==null;h+=3){if(this.data[h]==65535)if(this.data[h+1]==1)h=k(this.data,h+2);else break;i=e(k(this.data,h+1))}return i}nextStates(t){let e=[];for(let s=this.stateSlot(t,1);;s+=3){if(this.data[s]==65535)if(this.data[s+1]==1)s=k(this.data,s+2);else break;if(!(this.data[s+2]&1)){let i=this.data[s+1];e.some((h,r)=>r&1&&h==i)||e.push(this.data[s],i)}}return e}configure(t){let e=Object.assign(Object.create(v.prototype),this);if(t.props&&(e.nodeSet=this.nodeSet.extend(...t.props)),t.top){let s=this.topRules[t.top];if(!s)throw new RangeError(`Invalid top rule name ${t.top}`);e.top=s}return t.tokenizers&&(e.tokenizers=this.tokenizers.map(s=>{let i=t.tokenizers.find(h=>h.from==s);return i?i.to:s})),t.specializers&&(e.specializers=this.specializers.slice(),e.specializerSpecs=this.specializerSpecs.map((s,i)=>{let h=t.specializers.find(n=>n.from==s.external);if(!h)return s;let r=Object.assign(Object.assign({},s),{external:h.to});return e.specializers[i]=O(r),r})),t.contextTracker&&(e.context=t.contextTracker),t.dialect&&(e.dialect=this.parseDialect(t.dialect)),t.strict!=null&&(e.strict=t.strict),t.wrap&&(e.wrappers=e.wrappers.concat(t.wrap)),t.bufferLength!=null&&(e.bufferLength=t.bufferLength),e}hasWrappers(){return this.wrappers.length>0}getName(t){return this.termNames?this.termNames[t]:String(t<=this.maxNode&&this.nodeSet.types[t].name||t)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(t){let e=this.dynamicPrecedences;return e==null?0:e[t]||0}parseDialect(t){let e=Object.keys(this.dialects),s=e.map(()=>!1);if(t)for(let h of t.split(" ")){let r=e.indexOf(h);r>=0&&(s[r]=!0)}let i=null;for(let h=0;hs)&&e.p.parser.stateFlag(e.state,2)&&(!t||t.scoreo.external(e,s)<<1|t}return o.get}export{it as C,st as E,v as L,J as a}; diff --git a/docs/_app/immutable/chunks/minimal-setup-Y523JPZT.40173fa4.js b/docs/_app/immutable/chunks/minimal-setup-Y523JPZT.80ed6916.js similarity index 68% rename from docs/_app/immutable/chunks/minimal-setup-Y523JPZT.40173fa4.js rename to docs/_app/immutable/chunks/minimal-setup-Y523JPZT.80ed6916.js index 8661b3b..e338937 100644 --- a/docs/_app/immutable/chunks/minimal-setup-Y523JPZT.40173fa4.js +++ b/docs/_app/immutable/chunks/minimal-setup-Y523JPZT.80ed6916.js @@ -1 +1 @@ -import{Z as t,_ as s,a0 as e,a3 as i,a4 as l,k as h,a9 as r,aa as o,ac as f}from"./4.ae3ce863.js";var m=a=>[t(),s(),e(),i(l,{fallback:!0}),h.of([].concat(r,o,a.useTabs?[f]:[]))];export{m as default}; +import{Z as t,_ as s,a0 as e,a3 as i,a4 as l,k as h,a9 as r,aa as o,ac as f}from"./4.cfac87d8.js";var m=a=>[t(),s(),e(),i(l,{fallback:!0}),h.of([].concat(r,o,a.useTabs?[f]:[]))];export{m as default}; diff --git a/docs/_app/immutable/chunks/page.7b242bcf.js b/docs/_app/immutable/chunks/page.1d064d61.js similarity index 98% rename from docs/_app/immutable/chunks/page.7b242bcf.js rename to docs/_app/immutable/chunks/page.1d064d61.js index a037a80..39b4f65 100644 --- a/docs/_app/immutable/chunks/page.7b242bcf.js +++ b/docs/_app/immutable/chunks/page.1d064d61.js @@ -1,4 +1,4 @@ -import{s as V,f as n,a as c,g as a,x as o,c as i,j as z,k as G,i as t,r as g,d as l}from"./scheduler.3ecd3668.js";import{S as J,i as N}from"./index.bf4ded2a.js";function Q(B){let r,F="For better picture what parts of picker are overrideable by slots there is rough DOM structure (class names are only for descriptive purpose only):",h,p,k=`<span class="relative-positioned-wrap"> +import{s as V,f as n,a as c,g as a,x as o,c as i,j as z,k as G,i as t,r as g,d as l}from"./scheduler.6381a9b9.js";import{S as J,i as N}from"./index.cf31950d.js";function Q(B){let r,F="For better picture what parts of picker are overrideable by slots there is rough DOM structure (class names are only for descriptive purpose only):",h,p,k=`<span class="relative-positioned-wrap"> <!-- SLOT="inputs" --> <input type="hidden"> <input type="text"> diff --git a/docs/_app/immutable/chunks/page.c6ce9501.js b/docs/_app/immutable/chunks/page.23b23b85.js similarity index 84% rename from docs/_app/immutable/chunks/page.c6ce9501.js rename to docs/_app/immutable/chunks/page.23b23b85.js index 15e2bad..0cd0ff3 100644 --- a/docs/_app/immutable/chunks/page.c6ce9501.js +++ b/docs/_app/immutable/chunks/page.23b23b85.js @@ -1,2 +1,2 @@ -import{s as j,f as d,a as y,l as b,g as m,x as C,c as P,h as k,m as w,d as n,i as o,w as v,r as h}from"./scheduler.3ecd3668.js";import{S as A,i as E}from"./index.bf4ded2a.js";import{i as L}from"./index.ae80b773.js";function S(c){let t,r=`By default date picker uses english locale. And at the moment there is only few locales available +import{s as j,f as d,a as y,l as b,g as m,x as C,c as P,h as k,m as w,d as n,i as o,w as v,r as h}from"./scheduler.6381a9b9.js";import{S as A,i as E}from"./index.cf31950d.js";import{i as L}from"./index.a4c1e395.js";function S(c){let t,r=`By default date picker uses english locale. And at the moment there is only few locales available (PRs for additional locales are more than welcome).`,f,l,u,i,_,p,s,x='Setting locale is perfect use case for using global configuration.';return{c(){t=d("p"),t.textContent=r,f=y(),l=d("p"),u=b("Available locales: "),i=d("code"),_=b(c[0]),p=y(),s=d("p"),s.innerHTML=x},l(e){t=m(e,"P",{"data-svelte-h":!0}),C(t)!=="svelte-10avw36"&&(t.textContent=r),f=P(e),l=m(e,"P",{});var a=k(l);u=w(a,"Available locales: "),i=m(a,"CODE",{});var g=k(i);_=w(g,c[0]),g.forEach(n),a.forEach(n),p=P(e),s=m(e,"P",{"data-svelte-h":!0}),C(s)!=="svelte-asfj20"&&(s.innerHTML=x)},m(e,a){o(e,t,a),o(e,f,a),o(e,l,a),v(l,u),v(l,i),v(i,_),o(e,p,a),o(e,s,a)},p:h,i:h,o:h,d(e){e&&(n(t),n(f),n(l),n(p),n(s))}}}const $={title:"Localization"};function H(c){return[Object.keys(L).filter(r=>r!=="default").join(" | ")]}class q extends A{constructor(t){super(),E(this,t,H,S,j,{})}}export{q as default,$ as metadata}; diff --git a/docs/_app/immutable/chunks/page.41ff9a24.js b/docs/_app/immutable/chunks/page.242d2811.js similarity index 97% rename from docs/_app/immutable/chunks/page.41ff9a24.js rename to docs/_app/immutable/chunks/page.242d2811.js index 63e6601..237a59f 100644 --- a/docs/_app/immutable/chunks/page.41ff9a24.js +++ b/docs/_app/immutable/chunks/page.242d2811.js @@ -1 +1 @@ -import{s as n,f as s,g as l,x as u,i as m,r as o,d as f}from"./scheduler.3ecd3668.js";import{S as a,i,b as p,d as h,m as g,a as b,t as y,e as w}from"./index.bf4ded2a.js";function v(c){let t,e="Property Type Default Description inputId string "" id attribute for input element name string 'date' html attribute for underlying <input> element disabled bool false html attribute for underlying <input> element placeholder string null html attribute for underlying <input> element required bool false html attribute for underlying <input> element value string|string[] null string representation of selected value. When in daterange mode (isRange prop), array of two strings is required initialDate Date|Date[] null initial date object, if you prefer that to value. When in daterange mode (isRange prop), array of two Date is required isRange bool false enables range picker mode startDate string|Date null limit minimal selectable date endDate string|Date null limit maximal selectable date pickerOnly bool false Picker is always visible and input field is then hidden, but still present startView number 2 Which mode should picker at, 0 - decade, 1 - year, 2 - month (default), 3 - time picker mode string auto restrict picker’s mode. Possible values: auto\\|date\\|datetime\\|time. By default it try to guess the mode from format disableDatesFn function null Function whether passed date should be disabled or not manualInput bool false Whether manual date entry is allowed format string 'yyyy-mm-dd' Format of entered date/time. formatType string 'standard' Format type (standard or php) displayFormat string null Display format of entered date/time. displayFormatType string null Display format type (standard or php) hourOnly bool false Only allow hour selection for the time portion of the datetime selection minuteIncrement number 1 number in range 1-60 to set the increment of minutes choosable weekStart number 1 number in range 0-6 to select first day of the week. Sunday is 0 inputClasses string "" input css class string todayBtnClasses string 'sdt-action-btn sdt-today-btn' today button css classes clearBtnClasses string 'sdt-action-btn sdt-clear-btn' clear button css classes todayBtn bool true Show today button clearBtn bool true Show clear button clearToggle bool true Allows to clear selected date when clicking on the same date when in mode='date' or mode='auto' resolving to 'date' autocommit bool true Whether date/time selection is automatic or manual i18n object en localization object, english is by default validatorAction array null Bind validator action for inner <input> element. Designed to be used with svelte-use-form. positionResolver function internal Action which resolves floating position of picker. Default one uses @floating-ui under the hood. So you can use this library for your custom position resolver function";return{c(){t=s("table"),t.innerHTML=e},l(d){t=l(d,"TABLE",{"data-svelte-h":!0}),u(t)!=="svelte-egjjh6"&&(t.innerHTML=e)},m(d,r){m(d,t,r)},p:o,i:o,o,d(d){d&&f(t)}}}class _ extends a{constructor(t){super(),i(this,t,null,v,n,{})}}function D(c){let t,e;return t=new _({}),{c(){p(t.$$.fragment)},l(d){h(t.$$.fragment,d)},m(d,r){g(t,d,r),e=!0},p:o,i(d){e||(b(t.$$.fragment,d),e=!0)},o(d){y(t.$$.fragment,d),e=!1},d(d){w(t,d)}}}const q={title:"Properties"};class x extends a{constructor(t){super(),i(this,t,null,D,n,{})}}export{x as default,q as metadata}; +import{s as n,f as s,g as l,x as u,i as m,r as o,d as f}from"./scheduler.6381a9b9.js";import{S as a,i,b as p,d as h,m as g,a as b,t as y,e as w}from"./index.cf31950d.js";function v(c){let t,e="Property Type Default Description inputId string "" id attribute for input element name string 'date' html attribute for underlying <input> element disabled bool false html attribute for underlying <input> element placeholder string null html attribute for underlying <input> element required bool false html attribute for underlying <input> element value string|string[] null string representation of selected value. When in daterange mode (isRange prop), array of two strings is required initialDate Date|Date[] null initial date object, if you prefer that to value. When in daterange mode (isRange prop), array of two Date is required isRange bool false enables range picker mode startDate string|Date null limit minimal selectable date endDate string|Date null limit maximal selectable date pickerOnly bool false Picker is always visible and input field is then hidden, but still present startView number 2 Which mode should picker at, 0 - decade, 1 - year, 2 - month (default), 3 - time picker mode string auto restrict picker’s mode. Possible values: auto\\|date\\|datetime\\|time. By default it try to guess the mode from format disableDatesFn function null Function whether passed date should be disabled or not manualInput bool false Whether manual date entry is allowed format string 'yyyy-mm-dd' Format of entered date/time. formatType string 'standard' Format type (standard or php) displayFormat string null Display format of entered date/time. displayFormatType string null Display format type (standard or php) hourOnly bool false Only allow hour selection for the time portion of the datetime selection minuteIncrement number 1 number in range 1-60 to set the increment of minutes choosable weekStart number 1 number in range 0-6 to select first day of the week. Sunday is 0 inputClasses string "" input css class string todayBtnClasses string 'sdt-action-btn sdt-today-btn' today button css classes clearBtnClasses string 'sdt-action-btn sdt-clear-btn' clear button css classes todayBtn bool true Show today button clearBtn bool true Show clear button clearToggle bool true Allows to clear selected date when clicking on the same date when in mode='date' or mode='auto' resolving to 'date' autocommit bool true Whether date/time selection is automatic or manual i18n object en localization object, english is by default validatorAction array null Bind validator action for inner <input> element. Designed to be used with svelte-use-form. positionResolver function internal Action which resolves floating position of picker. Default one uses @floating-ui under the hood. So you can use this library for your custom position resolver function";return{c(){t=s("table"),t.innerHTML=e},l(d){t=l(d,"TABLE",{"data-svelte-h":!0}),u(t)!=="svelte-egjjh6"&&(t.innerHTML=e)},m(d,r){m(d,t,r)},p:o,i:o,o,d(d){d&&f(t)}}}class _ extends a{constructor(t){super(),i(this,t,null,v,n,{})}}function D(c){let t,e;return t=new _({}),{c(){p(t.$$.fragment)},l(d){h(t.$$.fragment,d)},m(d,r){g(t,d,r),e=!0},p:o,i(d){e||(b(t.$$.fragment,d),e=!0)},o(d){y(t.$$.fragment,d),e=!1},d(d){w(t,d)}}}const q={title:"Properties"};class x extends a{constructor(t){super(),i(this,t,null,D,n,{})}}export{x as default,q as metadata}; diff --git a/docs/_app/immutable/chunks/page.38472c6d.js b/docs/_app/immutable/chunks/page.33941c4f.js similarity index 96% rename from docs/_app/immutable/chunks/page.38472c6d.js rename to docs/_app/immutable/chunks/page.33941c4f.js index dd5b2e0..f4266be 100644 --- a/docs/_app/immutable/chunks/page.38472c6d.js +++ b/docs/_app/immutable/chunks/page.33941c4f.js @@ -1,4 +1,4 @@ -import{s as b,f as r,a as v,g as i,x as d,c as m,j as F,k as T,i as a,r as h,d as l}from"./scheduler.3ecd3668.js";import{S as w,i as H}from"./index.bf4ded2a.js";function M(L){let t,f="Component emits input, change, dateChange, cancel and blur events.",D,o,g="
  • input is dispatched on <input> element therefore you can get current value like from every native event:
  • change event is using Svelte’s eventDispatcher, therefore triggered event contains detail property
  • dateChange event is dispatched on date change as well as change event, but with more data on detail property:
  • cancel event is dispatched when “Cancel” button is pressed (which resets any changes that were not confirmed. Typically when autocommit is set to false)
  • ",y,s,x=`{ // event.detail property +import{s as b,f as r,a as v,g as i,x as d,c as m,j as F,k as T,i as a,r as h,d as l}from"./scheduler.6381a9b9.js";import{S as w,i as H}from"./index.cf31950d.js";function M(L){let t,f="Component emits input, change, dateChange, cancel and blur events.",D,o,g="
  • input is dispatched on <input> element therefore you can get current value like from every native event:
  • change event is using Svelte’s eventDispatcher, therefore triggered event contains detail property
  • dateChange event is dispatched on date change as well as change event, but with more data on detail property:
  • cancel event is dispatched when “Cancel” button is pressed (which resets any changes that were not confirmed. Typically when autocommit is set to false)
  • ",y,s,x=`{ // event.detail property value: string | string[] | null // array for range dateValue: Date | Date[] | null // array for range displayValue: string diff --git a/docs/_app/immutable/chunks/page.f88fb71b.js b/docs/_app/immutable/chunks/page.5c14cbc7.js similarity index 94% rename from docs/_app/immutable/chunks/page.f88fb71b.js rename to docs/_app/immutable/chunks/page.5c14cbc7.js index bb431fb..7349b0c 100644 --- a/docs/_app/immutable/chunks/page.f88fb71b.js +++ b/docs/_app/immutable/chunks/page.5c14cbc7.js @@ -1,3 +1,3 @@ -import{s as k,f as d,a as f,g as r,x as p,c as v,j as L,k as E,i as n,r as b,d as o}from"./scheduler.3ecd3668.js";import{S as H,i as M}from"./index.bf4ded2a.js";function w(T){let s,y=`Restricting selectable is supported by startDate and endDate properties. You can provide string or Date. +import{s as k,f as d,a as f,g as r,x as p,c as v,j as L,k as E,i as n,r as b,d as o}from"./scheduler.6381a9b9.js";import{S as H,i as M}from"./index.cf31950d.js";function w(T){let s,y=`Restricting selectable is supported by startDate and endDate properties. You can provide string or Date. When string is passed, it must match format of given Svelty-picker. These border dates are INCLUDED in allowed date range.`,u,l,C="It is recommended to pass strings and not Dates to these properties. When datetime is passed, time range will be restricted as well if applicable.",D,i,x=`If you need something advanced you can provide function through disableDatesFn, in which you can resolve whether given date is disabled or not. Just take into account that all Date objects passed into this function will be in local time of given user.`,h,t,_='function isDateDisabled(date: Date): bool',m,c,g="Both methods can be combined together if needed.";return{c(){s=d("p"),s.innerHTML=y,u=f(),l=d("p"),l.innerHTML=C,D=f(),i=d("p"),i.innerHTML=x,h=f(),t=d("pre"),t.innerHTML=_,m=f(),c=d("p"),c.textContent=g,this.h()},l(e){s=r(e,"P",{"data-svelte-h":!0}),p(s)!=="svelte-9i5rny"&&(s.innerHTML=y),u=v(e),l=r(e,"P",{"data-svelte-h":!0}),p(l)!=="svelte-fenkrv"&&(l.innerHTML=C),D=v(e),i=r(e,"P",{"data-svelte-h":!0}),p(i)!=="svelte-pw1hh0"&&(i.innerHTML=x),h=v(e),t=r(e,"PRE",{class:!0,style:!0,tabindex:!0,"data-svelte-h":!0}),p(t)!=="svelte-11hbcgl"&&(t.innerHTML=_),m=v(e),c=r(e,"P",{"data-svelte-h":!0}),p(c)!=="svelte-1i8tak5"&&(c.textContent=g),this.h()},h(){L(t,"class","shiki dark-plus"),E(t,"background-color","#1E1E1E"),L(t,"tabindex","0")},m(e,a){n(e,s,a),n(e,u,a),n(e,l,a),n(e,D,a),n(e,i,a),n(e,h,a),n(e,t,a),n(e,m,a),n(e,c,a)},p:b,i:b,o:b,d(e){e&&(o(s),o(u),o(l),o(D),o(i),o(h),o(t),o(m),o(c))}}}const I={title:"Disabling dates"};class S extends H{constructor(s){super(),M(this,s,null,w,k,{})}}export{S as default,I as metadata}; diff --git a/docs/_app/immutable/chunks/page.964a6cee.js b/docs/_app/immutable/chunks/page.5c2f0afa.js similarity index 98% rename from docs/_app/immutable/chunks/page.964a6cee.js rename to docs/_app/immutable/chunks/page.5c2f0afa.js index fae4f83..bbd7294 100644 --- a/docs/_app/immutable/chunks/page.964a6cee.js +++ b/docs/_app/immutable/chunks/page.5c2f0afa.js @@ -1,2 +1,2 @@ -import{s as Y,f as s,a as m,g as l,x as h,c as u,i as r,r as L,d as e,h as N,w as A}from"./scheduler.3ecd3668.js";import{S as q,i as V,b as ot,d as rt,m as it,a as at,t as nt,e as st}from"./index.bf4ded2a.js";function lt(D){let o,y="Standard format settings:",f,a,g="Format Description Example d day of the month without leading zeros 1 to 31 dd day of the month, 2 digits with leading zeros 01 to 31 D short textual representation of a weekday (i18n.daysShort) Mon through Sun DD long textual representation of a weekday (i18n.days) Sunday through Saturday S English ordinal suffix for the day of the month, (i18n.suffix) st, nd, rd or th. Works well with d m numeric representation of month without leading zeros 1 to 12 mm numeric representation of the month, 2 digits with leading zeros 01 to 12 M short textual representation of a month, three letters (i18n.monthsShort) Jan through Dec MM full textual representation of a month, such as January or March (i18n.months) January through December yy two digit representation of a year 99 or 03 yyyy full numeric representation of a year, 4 digits 1999, 2003 h hour without leading zeros - 24-hour format 0 - 23 hh hour, 2 digits with leading zeros - 24-hour format 00 - 23 H hour without leading zeros - 12-hour format 1 - 12 HH hour, 2 digits with leading zeros - 12-hour format 01 - 12 i minutes, 2 digits with leading zeros 00 - 59 ii alias for i 00 - 59 s seconds, 2 digits with leading zeros 00 ss alias for s 00 p meridian in lower case (‘am’ or ‘pm’) - according to locale file (i18n.meridiem) am or pm P meridian in upper case (‘AM’ or ‘PM’) - according to locale file (i18n.meridiem) AM or PM t timestamp in milliseconds (although milliseconds are always 0). ",p,n,v="☝️ For timestamp in seconds use php formatting.";return{c(){o=s("h3"),o.textContent=y,f=m(),a=s("table"),a.innerHTML=g,p=m(),n=s("p"),n.innerHTML=v},l(d){o=l(d,"H3",{"data-svelte-h":!0}),h(o)!=="svelte-5dip3l"&&(o.textContent=y),f=u(d),a=l(d,"TABLE",{"data-svelte-h":!0}),h(a)!=="svelte-yt4evs"&&(a.innerHTML=g),p=u(d),n=l(d,"P",{"data-svelte-h":!0}),h(n)!=="svelte-1lmdzig"&&(n.innerHTML=v)},m(d,c){r(d,o,c),r(d,f,c),r(d,a,c),r(d,p,c),r(d,n,c)},p:L,i:L,o:L,d(d){d&&(e(o),e(f),e(a),e(p),e(n))}}}class ct extends q{constructor(o){super(),V(this,o,null,lt,Y,{})}}function ht(D){let o,y="PHP format settings:",f,a,g="Format Description Example d Day of the month, 2 digits with leading zeros 01 to 31 D A textual representation of a day, three letters Mon through Sun j Day of the month without leading zeros 1 to 31 l A full textual representation of the day of the week Sunday through Saturday N ISO 8601 numeric representation of the day of the week 1 (for Monday) through 7 (for Sunday) S English ordinal suffix for the day of the month, 2 characters st, nd, rd or th. Works well with j F A full textual representation of a month, such as January or March January through December m Numeric representation of a month, with leading zeros 01 through 12 M A short textual representation of a month, three letters Jan through Dec n Numeric representation of a month, without leading zeros 1 through 12 Y A full numeric representation of a year, at least 4 digits 0787, 1999, 2003 y A two digit representation of a year 99 or 03 a Lowercase Ante meridiem and Post meridiem am or pm A Uppercase Ante meridiem and Post meridiem AM or PM g 12-hour format of an hour without leading zeros 1 through 12 G 24-hour format of an hour without leading zeros 0 through 23 h 12-hour format of an hour with leading zeros 01 through 12 H 24-hour format of an hour with leading zeros 00 through 23 i Minutes with leading zeros 00 to 59 s Seconds with leading zeros 00 U timestamp in seconds. ",p,n,v="☝️ For timestamp with miliseconds use standard formatting.";return{c(){o=s("h3"),o.textContent=y,f=m(),a=s("table"),a.innerHTML=g,p=m(),n=s("p"),n.innerHTML=v},l(d){o=l(d,"H3",{"data-svelte-h":!0}),h(o)!=="svelte-2yxs2a"&&(o.textContent=y),f=u(d),a=l(d,"TABLE",{"data-svelte-h":!0}),h(a)!=="svelte-pypq6"&&(a.innerHTML=g),p=u(d),n=l(d,"P",{"data-svelte-h":!0}),h(n)!=="svelte-1brhkon"&&(n.innerHTML=v)},m(d,c){r(d,o,c),r(d,f,c),r(d,a,c),r(d,p,c),r(d,n,c)},p:L,i:L,o:L,d(d){d&&(e(o),e(f),e(a),e(p),e(n))}}}class mt extends q{constructor(o){super(),V(this,o,null,ht,Y,{})}}function ut(D){let o,y="Mode",f,a,g="By mode property you can restrict modes in which picker operates. This property can have following values:",p,n,v="
  • date - only date picker
  • time - only time picker
  • datetime - date & time picker
  • auto (default) - mode is determined based on passed format property. This basically means you can activate time picker mode by setting displayFormat (or format if those 2 values should be the same) to hh:ii for example
  • ",d,c,G="Note: range-picker is activated by isRange property, so you can still set appropriate mode for range-pickers.",k,M,O="Format",E,_,K="Component has 2 separate format-related properties:",F,C,Q="
  • format - defines string representation of selected Date object(s). This string is sent in change event or when form is submitted. Default value is yyyy-mm-dd
  • displayFormat - independent date format controlling how the date is being displayed to the user. When not set, format value is being used.
  • ",j,T,X=`Both propertie also have corresponding type property, ie. formatType for format and displayFormatType for displayFormat. +import{s as Y,f as s,a as m,g as l,x as h,c as u,i as r,r as L,d as e,h as N,w as A}from"./scheduler.6381a9b9.js";import{S as q,i as V,b as ot,d as rt,m as it,a as at,t as nt,e as st}from"./index.cf31950d.js";function lt(D){let o,y="Standard format settings:",f,a,g="Format Description Example d day of the month without leading zeros 1 to 31 dd day of the month, 2 digits with leading zeros 01 to 31 D short textual representation of a weekday (i18n.daysShort) Mon through Sun DD long textual representation of a weekday (i18n.days) Sunday through Saturday S English ordinal suffix for the day of the month, (i18n.suffix) st, nd, rd or th. Works well with d m numeric representation of month without leading zeros 1 to 12 mm numeric representation of the month, 2 digits with leading zeros 01 to 12 M short textual representation of a month, three letters (i18n.monthsShort) Jan through Dec MM full textual representation of a month, such as January or March (i18n.months) January through December yy two digit representation of a year 99 or 03 yyyy full numeric representation of a year, 4 digits 1999, 2003 h hour without leading zeros - 24-hour format 0 - 23 hh hour, 2 digits with leading zeros - 24-hour format 00 - 23 H hour without leading zeros - 12-hour format 1 - 12 HH hour, 2 digits with leading zeros - 12-hour format 01 - 12 i minutes, 2 digits with leading zeros 00 - 59 ii alias for i 00 - 59 s seconds, 2 digits with leading zeros 00 ss alias for s 00 p meridian in lower case (‘am’ or ‘pm’) - according to locale file (i18n.meridiem) am or pm P meridian in upper case (‘AM’ or ‘PM’) - according to locale file (i18n.meridiem) AM or PM t timestamp in milliseconds (although milliseconds are always 0). ",p,n,v="☝️ For timestamp in seconds use php formatting.";return{c(){o=s("h3"),o.textContent=y,f=m(),a=s("table"),a.innerHTML=g,p=m(),n=s("p"),n.innerHTML=v},l(d){o=l(d,"H3",{"data-svelte-h":!0}),h(o)!=="svelte-5dip3l"&&(o.textContent=y),f=u(d),a=l(d,"TABLE",{"data-svelte-h":!0}),h(a)!=="svelte-yt4evs"&&(a.innerHTML=g),p=u(d),n=l(d,"P",{"data-svelte-h":!0}),h(n)!=="svelte-1lmdzig"&&(n.innerHTML=v)},m(d,c){r(d,o,c),r(d,f,c),r(d,a,c),r(d,p,c),r(d,n,c)},p:L,i:L,o:L,d(d){d&&(e(o),e(f),e(a),e(p),e(n))}}}class ct extends q{constructor(o){super(),V(this,o,null,lt,Y,{})}}function ht(D){let o,y="PHP format settings:",f,a,g="Format Description Example d Day of the month, 2 digits with leading zeros 01 to 31 D A textual representation of a day, three letters Mon through Sun j Day of the month without leading zeros 1 to 31 l A full textual representation of the day of the week Sunday through Saturday N ISO 8601 numeric representation of the day of the week 1 (for Monday) through 7 (for Sunday) S English ordinal suffix for the day of the month, 2 characters st, nd, rd or th. Works well with j F A full textual representation of a month, such as January or March January through December m Numeric representation of a month, with leading zeros 01 through 12 M A short textual representation of a month, three letters Jan through Dec n Numeric representation of a month, without leading zeros 1 through 12 Y A full numeric representation of a year, at least 4 digits 0787, 1999, 2003 y A two digit representation of a year 99 or 03 a Lowercase Ante meridiem and Post meridiem am or pm A Uppercase Ante meridiem and Post meridiem AM or PM g 12-hour format of an hour without leading zeros 1 through 12 G 24-hour format of an hour without leading zeros 0 through 23 h 12-hour format of an hour with leading zeros 01 through 12 H 24-hour format of an hour with leading zeros 00 through 23 i Minutes with leading zeros 00 to 59 s Seconds with leading zeros 00 U timestamp in seconds. ",p,n,v="☝️ For timestamp with miliseconds use standard formatting.";return{c(){o=s("h3"),o.textContent=y,f=m(),a=s("table"),a.innerHTML=g,p=m(),n=s("p"),n.innerHTML=v},l(d){o=l(d,"H3",{"data-svelte-h":!0}),h(o)!=="svelte-2yxs2a"&&(o.textContent=y),f=u(d),a=l(d,"TABLE",{"data-svelte-h":!0}),h(a)!=="svelte-pypq6"&&(a.innerHTML=g),p=u(d),n=l(d,"P",{"data-svelte-h":!0}),h(n)!=="svelte-1brhkon"&&(n.innerHTML=v)},m(d,c){r(d,o,c),r(d,f,c),r(d,a,c),r(d,p,c),r(d,n,c)},p:L,i:L,o:L,d(d){d&&(e(o),e(f),e(a),e(p),e(n))}}}class mt extends q{constructor(o){super(),V(this,o,null,ht,Y,{})}}function ut(D){let o,y="Mode",f,a,g="By mode property you can restrict modes in which picker operates. This property can have following values:",p,n,v="
  • date - only date picker
  • time - only time picker
  • datetime - date & time picker
  • auto (default) - mode is determined based on passed format property. This basically means you can activate time picker mode by setting displayFormat (or format if those 2 values should be the same) to hh:ii for example
  • ",d,c,G="Note: range-picker is activated by isRange property, so you can still set appropriate mode for range-pickers.",k,M,O="Format",E,_,K="Component has 2 separate format-related properties:",F,C,Q="
  • format - defines string representation of selected Date object(s). This string is sent in change event or when form is submitted. Default value is yyyy-mm-dd
  • displayFormat - independent date format controlling how the date is being displayed to the user. When not set, format value is being used.
  • ",j,T,X=`Both propertie also have corresponding type property, ie. formatType for format and displayFormatType for displayFormat. There are 2 available options for formatType props - standard (default) and php. And again if displayFormatType is undefined, formatType is being used as fallback.`,J,x,z,Z="standard format settings:",R,P,H,U,w,S,tt="PHP format settings:",W,$,b,I;return H=new ct({}),b=new mt({}),{c(){o=s("h3"),o.textContent=y,f=m(),a=s("p"),a.innerHTML=g,p=m(),n=s("ul"),n.innerHTML=v,d=m(),c=s("p"),c.innerHTML=G,k=m(),M=s("h3"),M.textContent=O,E=m(),_=s("p"),_.textContent=K,F=m(),C=s("ul"),C.innerHTML=Q,j=m(),T=s("p"),T.innerHTML=X,J=m(),x=s("details"),z=s("summary"),z.textContent=Z,R=m(),P=s("div"),ot(H.$$.fragment),U=m(),w=s("details"),S=s("summary"),S.textContent=tt,W=m(),$=s("div"),ot(b.$$.fragment)},l(t){o=l(t,"H3",{"data-svelte-h":!0}),h(o)!=="svelte-obyr5v"&&(o.textContent=y),f=u(t),a=l(t,"P",{"data-svelte-h":!0}),h(a)!=="svelte-fdtif8"&&(a.innerHTML=g),p=u(t),n=l(t,"UL",{"data-svelte-h":!0}),h(n)!=="svelte-1kcsixe"&&(n.innerHTML=v),d=u(t),c=l(t,"P",{"data-svelte-h":!0}),h(c)!=="svelte-rhxmnt"&&(c.innerHTML=G),k=u(t),M=l(t,"H3",{"data-svelte-h":!0}),h(M)!=="svelte-l2769v"&&(M.textContent=O),E=u(t),_=l(t,"P",{"data-svelte-h":!0}),h(_)!=="svelte-1jjsegu"&&(_.textContent=K),F=u(t),C=l(t,"UL",{"data-svelte-h":!0}),h(C)!=="svelte-cmfen5"&&(C.innerHTML=Q),j=u(t),T=l(t,"P",{"data-svelte-h":!0}),h(T)!=="svelte-1j307tx"&&(T.innerHTML=X),J=u(t),x=l(t,"DETAILS",{});var i=N(x);z=l(i,"SUMMARY",{"data-svelte-h":!0}),h(z)!=="svelte-b1gg6j"&&(z.textContent=Z),R=u(i),P=l(i,"DIV",{});var et=N(P);rt(H.$$.fragment,et),et.forEach(e),i.forEach(e),U=u(t),w=l(t,"DETAILS",{});var B=N(w);S=l(B,"SUMMARY",{"data-svelte-h":!0}),h(S)!=="svelte-k2vti2"&&(S.textContent=tt),W=u(B),$=l(B,"DIV",{});var dt=N($);rt(b.$$.fragment,dt),dt.forEach(e),B.forEach(e)},m(t,i){r(t,o,i),r(t,f,i),r(t,a,i),r(t,p,i),r(t,n,i),r(t,d,i),r(t,c,i),r(t,k,i),r(t,M,i),r(t,E,i),r(t,_,i),r(t,F,i),r(t,C,i),r(t,j,i),r(t,T,i),r(t,J,i),r(t,x,i),A(x,z),A(x,R),A(x,P),it(H,P,null),r(t,U,i),r(t,w,i),A(w,S),A(w,W),A(w,$),it(b,$,null),I=!0},p:L,i(t){I||(at(H.$$.fragment,t),at(b.$$.fragment,t),I=!0)},o(t){nt(H.$$.fragment,t),nt(b.$$.fragment,t),I=!1},d(t){t&&(e(o),e(f),e(a),e(p),e(n),e(d),e(c),e(k),e(M),e(E),e(_),e(F),e(C),e(j),e(T),e(J),e(x),e(U),e(w)),st(H),st(b)}}}const yt={title:"Modes & formats"};class gt extends q{constructor(o){super(),V(this,o,null,ut,Y,{})}}export{gt as default,yt as metadata}; diff --git a/docs/_app/immutable/chunks/page.9214c512.js b/docs/_app/immutable/chunks/page.5f2a88df.js similarity index 94% rename from docs/_app/immutable/chunks/page.9214c512.js rename to docs/_app/immutable/chunks/page.5f2a88df.js index 7ffce8c..99a1896 100644 --- a/docs/_app/immutable/chunks/page.9214c512.js +++ b/docs/_app/immutable/chunks/page.5f2a88df.js @@ -1,4 +1,4 @@ -import{s as P,f as r,a as p,g as m,x as u,c as v,i as n,r as C,d as i}from"./scheduler.3ecd3668.js";import{S as L,i as S}from"./index.bf4ded2a.js";function A(M){let a,g=`Previous versions (below v4) had problem that every interaction triggered change event. This was visible especially when picker was used in datetime mode. +import{s as P,f as r,a as p,g as m,x as u,c as v,i as n,r as C,d as i}from"./scheduler.6381a9b9.js";import{S as L,i as S}from"./index.cf31950d.js";function A(M){let a,g=`Previous versions (below v4) had problem that every interaction triggered change event. This was visible especially when picker was used in datetime mode. Therefore the whole logic has been reworked and basically we can talk about two modes - “auto commit” and “manual commit”.`,h,s,w="Auto-commit mode",f,o,k=`For datepicker it’s simple. User picks a date, bound value (if any) is updated, change event triggered and picker is closed. For time it’s very similar with the exception that picker closes automatically only on minute selection. So you can change hour many times and picker will stay open. Select minutes and it will close. Also event is triggered etc.`,y,l,_=`When using keyboard to change date, bound value is not updated immediately, but only on Enter or on input blur. This is diff --git a/docs/_app/immutable/chunks/page.a5676280.js b/docs/_app/immutable/chunks/page.8183975a.js similarity index 94% rename from docs/_app/immutable/chunks/page.a5676280.js rename to docs/_app/immutable/chunks/page.8183975a.js index 03e1bc6..37f0268 100644 --- a/docs/_app/immutable/chunks/page.a5676280.js +++ b/docs/_app/immutable/chunks/page.8183975a.js @@ -1,4 +1,4 @@ -import{s as g,f as D,a as E,g as r,x as y,c as A,j as u,k as h,i as p,r as d,d as e}from"./scheduler.3ecd3668.js";import{S as k,i as F}from"./index.bf4ded2a.js";function v(m){let l,i="Component exposes following CSS variables to customize it’s appearance as you can see through whole in example below or on the homepage.",t,a,C=`:root { +import{s as g,f as D,a as E,g as r,x as y,c as A,j as u,k as h,i as p,r as d,d as e}from"./scheduler.6381a9b9.js";import{S as k,i as F}from"./index.cf31950d.js";function v(m){let l,i="Component exposes following CSS variables to customize it’s appearance as you can see through whole in example below or on the homepage.",t,a,C=`:root { /* general */ --sdt-bg-main: #fff; /** wrap background color */ --sdt-shadow-color: #ccc; /** wrap shadow color */ @@ -7,7 +7,7 @@ import{s as g,f as D,a as E,g as r,x as y,c as A,j as u,k as h,i as p,r as d,d a --sdt-color: #000; /** data to select(e.g date/time) text color (except header & buttons) */ --sdt-color-selected: #fff; /** selected data(e.g date/time) text color */ --sdt-header-color: #000; /** header items color (e.g. text & buttons) */ - --sdt-btn-header-bg-hover: #dfdfdf; /** header items hover background color */ + --sdt-header-btn-bg-hover: #dfdfdf; /** header items hover background color */ --sdt-bg-selected: #286090; /** selected data(e.g date/time) background color */ /* action buttons */ @@ -36,4 +36,4 @@ import{s as g,f as D,a as E,g as r,x as y,c as A,j as u,k as h,i as p,r as d,d a --sdt-table-data-bg-hover: #eee; /** table selection data hover background color */ --sdt-table-today-indicator: #ccc; /** date picker current day marker color */ -}`,c,n,b="You can play with them here:";return{c(){l=D("p"),l.textContent=i,t=E(),a=D("pre"),a.innerHTML=C,c=E(),n=D("p"),n.textContent=b,this.h()},l(s){l=r(s,"P",{"data-svelte-h":!0}),y(l)!=="svelte-1yl3ei3"&&(l.textContent=i),t=A(s),a=r(s,"PRE",{class:!0,style:!0,tabindex:!0,"data-svelte-h":!0}),y(a)!=="svelte-memk2u"&&(a.innerHTML=C),c=A(s),n=r(s,"P",{"data-svelte-h":!0}),y(n)!=="svelte-1vpogh1"&&(n.textContent=b),this.h()},h(){u(a,"class","shiki dark-plus"),h(a,"background-color","#1E1E1E"),u(a,"tabindex","0")},m(s,o){p(s,l,o),p(s,t,o),p(s,a,o),p(s,c,o),p(s,n,o)},p:d,i:d,o:d,d(s){s&&(e(l),e(t),e(a),e(c),e(n))}}}const w={title:"Theme"};class _ extends k{constructor(l){super(),F(this,l,null,v,g,{})}}export{_ as default,w as metadata}; +}`,c,n,b="You can play with them here:";return{c(){l=D("p"),l.textContent=i,t=E(),a=D("pre"),a.innerHTML=C,c=E(),n=D("p"),n.textContent=b,this.h()},l(s){l=r(s,"P",{"data-svelte-h":!0}),y(l)!=="svelte-1yl3ei3"&&(l.textContent=i),t=A(s),a=r(s,"PRE",{class:!0,style:!0,tabindex:!0,"data-svelte-h":!0}),y(a)!=="svelte-11tw5ug"&&(a.innerHTML=C),c=A(s),n=r(s,"P",{"data-svelte-h":!0}),y(n)!=="svelte-1vpogh1"&&(n.textContent=b),this.h()},h(){u(a,"class","shiki dark-plus"),h(a,"background-color","#1E1E1E"),u(a,"tabindex","0")},m(s,o){p(s,l,o),p(s,t,o),p(s,a,o),p(s,c,o),p(s,n,o)},p:d,i:d,o:d,d(s){s&&(e(l),e(t),e(a),e(c),e(n))}}}const w={title:"Theme"};class _ extends k{constructor(l){super(),F(this,l,null,v,g,{})}}export{_ as default,w as metadata}; diff --git a/docs/_app/immutable/chunks/page.11069e80.js b/docs/_app/immutable/chunks/page.a0172ab0.js similarity index 95% rename from docs/_app/immutable/chunks/page.11069e80.js rename to docs/_app/immutable/chunks/page.a0172ab0.js index 06c7fa3..241770a 100644 --- a/docs/_app/immutable/chunks/page.11069e80.js +++ b/docs/_app/immutable/chunks/page.a0172ab0.js @@ -1 +1 @@ -import{s as G,f as p,a as $,g as m,x as y,c as h,i as f,r as H,d as i,j as A,k as W,h as R,w as v}from"./scheduler.3ecd3668.js";import{S as J,i as K,b as M,d as P,m as T,a as I,t as S,e as F}from"./index.bf4ded2a.js";import{S as U}from"./SveltyPicker.69e34b19.js";function X(L){let t,x='📆 Svelty Picker NPM version',l,n,u="Simple date & time picker implemented in svelte.",a,r,_="Features:",g,o,C="
  • date/time/datetime/range picker mode
  • various formatting options
  • keyboard navigation
  • replacable slots
  • themable
  • customizable disabled dates
  • custom element
  • ";return{c(){t=p("h1"),t.innerHTML=x,l=$(),n=p("p"),n.textContent=u,a=$(),r=p("p"),r.textContent=_,g=$(),o=p("ul"),o.innerHTML=C},l(s){t=m(s,"H1",{"data-svelte-h":!0}),y(t)!=="svelte-12ung2m"&&(t.innerHTML=x),l=h(s),n=m(s,"P",{"data-svelte-h":!0}),y(n)!=="svelte-7k5zhx"&&(n.textContent=u),a=h(s),r=m(s,"P",{"data-svelte-h":!0}),y(r)!=="svelte-fn4rp3"&&(r.textContent=_),g=h(s),o=m(s,"UL",{"data-svelte-h":!0}),y(o)!=="svelte-ioantu"&&(o.innerHTML=C)},m(s,d){f(s,t,d),f(s,l,d),f(s,n,d),f(s,a,d),f(s,r,d),f(s,g,d),f(s,o,d)},p:H,i:H,o:H,d(s){s&&(i(t),i(l),i(n),i(a),i(r),i(g),i(o))}}}class Y extends J{constructor(t){super(),K(this,t,null,X,G,{})}}function Z(L){let t,x="⚙️ Install",l,n,u='npm install svelty-picker';return{c(){t=p("h2"),t.textContent=x,l=$(),n=p("pre"),n.innerHTML=u,this.h()},l(a){t=m(a,"H2",{"data-svelte-h":!0}),y(t)!=="svelte-18ohai1"&&(t.textContent=x),l=h(a),n=m(a,"PRE",{class:!0,style:!0,tabindex:!0,"data-svelte-h":!0}),y(n)!=="svelte-6t3zvb"&&(n.innerHTML=u),this.h()},h(){A(n,"class","shiki dark-plus"),W(n,"background-color","#1E1E1E"),A(n,"tabindex","0")},m(a,r){f(a,t,r),f(a,l,r),f(a,n,r)},p:H,i:H,o:H,d(a){a&&(i(t),i(l),i(n))}}}class tt extends J{constructor(t){super(),K(this,t,null,Z,G,{})}}function et(L){let t,x,l,n,u,a="Date picker",r,_,g,o,C,s="Time picker",d,k,q,D,b,Q="Date range picker",N,w,V,E,z;return t=new Y({}),_=new U({props:{todayBtn:!0,mode:"datetime",clearBtn:!0,pickerOnly:!0,autocommit:!0}}),k=new U({props:{mode:"time",format:"hh:ii",pickerOnly:!0}}),w=new U({props:{isRange:!0,mode:"datetime",pickerOnly:!0}}),E=new tt({}),{c(){M(t.$$.fragment),x=$(),l=p("div"),n=p("div"),u=p("h4"),u.textContent=a,r=$(),M(_.$$.fragment),g=$(),o=p("div"),C=p("h4"),C.textContent=s,d=$(),M(k.$$.fragment),q=$(),D=p("div"),b=p("h4"),b.textContent=Q,N=$(),M(w.$$.fragment),V=$(),M(E.$$.fragment),this.h()},l(e){P(t.$$.fragment,e),x=h(e),l=m(e,"DIV",{class:!0});var c=R(l);n=m(c,"DIV",{});var O=R(n);u=m(O,"H4",{"data-svelte-h":!0}),y(u)!=="svelte-hvns04"&&(u.textContent=a),r=h(O),P(_.$$.fragment,O),O.forEach(i),g=h(c),o=m(c,"DIV",{});var j=R(o);C=m(j,"H4",{"data-svelte-h":!0}),y(C)!=="svelte-fnf2wd"&&(C.textContent=s),d=h(j),P(k.$$.fragment,j),j.forEach(i),q=h(c),D=m(c,"DIV",{});var B=R(D);b=m(B,"H4",{"data-svelte-h":!0}),y(b)!=="svelte-16wuaop"&&(b.textContent=Q),N=h(B),P(w.$$.fragment,B),B.forEach(i),c.forEach(i),V=h(e),P(E.$$.fragment,e),this.h()},h(){A(l,"class","flex flex-wrap gap-4 my-10")},m(e,c){T(t,e,c),f(e,x,c),f(e,l,c),v(l,n),v(n,u),v(n,r),T(_,n,null),v(l,g),v(l,o),v(o,C),v(o,d),T(k,o,null),v(l,q),v(l,D),v(D,b),v(D,N),T(w,D,null),f(e,V,c),T(E,e,c),z=!0},p:H,i(e){z||(I(t.$$.fragment,e),I(_.$$.fragment,e),I(k.$$.fragment,e),I(w.$$.fragment,e),I(E.$$.fragment,e),z=!0)},o(e){S(t.$$.fragment,e),S(_.$$.fragment,e),S(k.$$.fragment,e),S(w.$$.fragment,e),S(E.$$.fragment,e),z=!1},d(e){e&&(i(x),i(l),i(V)),F(t,e),F(_),F(k),F(w),F(E,e)}}}const at={title:"Introduction",slug:""};class it extends J{constructor(t){super(),K(this,t,null,et,G,{})}}export{it as default,at as metadata}; +import{s as G,f as p,a as $,g as m,x as y,c as h,i as f,r as H,d as i,j as A,k as W,h as R,w as v}from"./scheduler.6381a9b9.js";import{S as J,i as K,b as M,d as P,m as T,a as I,t as S,e as F}from"./index.cf31950d.js";import{S as U}from"./SveltyPicker.6ef9562c.js";function X(L){let t,x='📆 Svelty Picker NPM version',l,n,u="Simple date & time picker implemented in svelte.",a,r,_="Features:",g,o,C="
  • date/time/datetime/range picker mode
  • various formatting options
  • keyboard navigation
  • replacable slots
  • themable
  • customizable disabled dates
  • custom element
  • ";return{c(){t=p("h1"),t.innerHTML=x,l=$(),n=p("p"),n.textContent=u,a=$(),r=p("p"),r.textContent=_,g=$(),o=p("ul"),o.innerHTML=C},l(s){t=m(s,"H1",{"data-svelte-h":!0}),y(t)!=="svelte-12ung2m"&&(t.innerHTML=x),l=h(s),n=m(s,"P",{"data-svelte-h":!0}),y(n)!=="svelte-7k5zhx"&&(n.textContent=u),a=h(s),r=m(s,"P",{"data-svelte-h":!0}),y(r)!=="svelte-fn4rp3"&&(r.textContent=_),g=h(s),o=m(s,"UL",{"data-svelte-h":!0}),y(o)!=="svelte-ioantu"&&(o.innerHTML=C)},m(s,d){f(s,t,d),f(s,l,d),f(s,n,d),f(s,a,d),f(s,r,d),f(s,g,d),f(s,o,d)},p:H,i:H,o:H,d(s){s&&(i(t),i(l),i(n),i(a),i(r),i(g),i(o))}}}class Y extends J{constructor(t){super(),K(this,t,null,X,G,{})}}function Z(L){let t,x="⚙️ Install",l,n,u='npm install svelty-picker';return{c(){t=p("h2"),t.textContent=x,l=$(),n=p("pre"),n.innerHTML=u,this.h()},l(a){t=m(a,"H2",{"data-svelte-h":!0}),y(t)!=="svelte-18ohai1"&&(t.textContent=x),l=h(a),n=m(a,"PRE",{class:!0,style:!0,tabindex:!0,"data-svelte-h":!0}),y(n)!=="svelte-6t3zvb"&&(n.innerHTML=u),this.h()},h(){A(n,"class","shiki dark-plus"),W(n,"background-color","#1E1E1E"),A(n,"tabindex","0")},m(a,r){f(a,t,r),f(a,l,r),f(a,n,r)},p:H,i:H,o:H,d(a){a&&(i(t),i(l),i(n))}}}class tt extends J{constructor(t){super(),K(this,t,null,Z,G,{})}}function et(L){let t,x,l,n,u,a="Date picker",r,_,g,o,C,s="Time picker",d,k,q,D,b,Q="Date range picker",N,w,V,E,z;return t=new Y({}),_=new U({props:{todayBtn:!0,mode:"datetime",clearBtn:!0,pickerOnly:!0,autocommit:!0}}),k=new U({props:{mode:"time",format:"hh:ii",pickerOnly:!0}}),w=new U({props:{isRange:!0,mode:"datetime",pickerOnly:!0}}),E=new tt({}),{c(){M(t.$$.fragment),x=$(),l=p("div"),n=p("div"),u=p("h4"),u.textContent=a,r=$(),M(_.$$.fragment),g=$(),o=p("div"),C=p("h4"),C.textContent=s,d=$(),M(k.$$.fragment),q=$(),D=p("div"),b=p("h4"),b.textContent=Q,N=$(),M(w.$$.fragment),V=$(),M(E.$$.fragment),this.h()},l(e){P(t.$$.fragment,e),x=h(e),l=m(e,"DIV",{class:!0});var c=R(l);n=m(c,"DIV",{});var O=R(n);u=m(O,"H4",{"data-svelte-h":!0}),y(u)!=="svelte-hvns04"&&(u.textContent=a),r=h(O),P(_.$$.fragment,O),O.forEach(i),g=h(c),o=m(c,"DIV",{});var j=R(o);C=m(j,"H4",{"data-svelte-h":!0}),y(C)!=="svelte-fnf2wd"&&(C.textContent=s),d=h(j),P(k.$$.fragment,j),j.forEach(i),q=h(c),D=m(c,"DIV",{});var B=R(D);b=m(B,"H4",{"data-svelte-h":!0}),y(b)!=="svelte-16wuaop"&&(b.textContent=Q),N=h(B),P(w.$$.fragment,B),B.forEach(i),c.forEach(i),V=h(e),P(E.$$.fragment,e),this.h()},h(){A(l,"class","flex flex-wrap gap-4 my-10")},m(e,c){T(t,e,c),f(e,x,c),f(e,l,c),v(l,n),v(n,u),v(n,r),T(_,n,null),v(l,g),v(l,o),v(o,C),v(o,d),T(k,o,null),v(l,q),v(l,D),v(D,b),v(D,N),T(w,D,null),f(e,V,c),T(E,e,c),z=!0},p:H,i(e){z||(I(t.$$.fragment,e),I(_.$$.fragment,e),I(k.$$.fragment,e),I(w.$$.fragment,e),I(E.$$.fragment,e),z=!0)},o(e){S(t.$$.fragment,e),S(_.$$.fragment,e),S(k.$$.fragment,e),S(w.$$.fragment,e),S(E.$$.fragment,e),z=!1},d(e){e&&(i(x),i(l),i(V)),F(t,e),F(_),F(k),F(w),F(E,e)}}}const at={title:"Introduction",slug:""};class it extends J{constructor(t){super(),K(this,t,null,et,G,{})}}export{it as default,at as metadata}; diff --git a/docs/_app/immutable/chunks/page.b7be5d05.js b/docs/_app/immutable/chunks/page.a042392f.js similarity index 97% rename from docs/_app/immutable/chunks/page.b7be5d05.js rename to docs/_app/immutable/chunks/page.a042392f.js index c2b92ed..65ed7a1 100644 --- a/docs/_app/immutable/chunks/page.b7be5d05.js +++ b/docs/_app/immutable/chunks/page.a042392f.js @@ -1,4 +1,4 @@ -import{s as h,f as i,a as A,g as D,x as C,c as d,j as F,k as g,i as o,r as u,d as t}from"./scheduler.3ecd3668.js";import{S as x,i as T}from"./index.bf4ded2a.js";function B(b){let n,m=`Library internally works with pure javascript Date objects. But value you can bind must be string. It makes reasoning +import{s as h,f as i,a as A,g as D,x as C,c as d,j as F,k as g,i as o,r as u,d as t}from"./scheduler.6381a9b9.js";import{S as x,i as T}from"./index.cf31950d.js";function B(b){let n,m=`Library internally works with pure javascript Date objects. But value you can bind must be string. It makes reasoning about easier and makes library free from another dependency.`,r,e,E=`Therefore if you really want to set initial value as Date object you can use initialDate property. But you have been warned. Timezone differences between SSR and client are not taken into account.`,c,l,f=`Lirary uses 2 method for conversion string to Date and vice versa. These methods are exported from library to be available if needed.`,y,a,v=`/** diff --git a/docs/_app/immutable/chunks/page.393f2aab.js b/docs/_app/immutable/chunks/page.dac8ab59.js similarity index 98% rename from docs/_app/immutable/chunks/page.393f2aab.js rename to docs/_app/immutable/chunks/page.dac8ab59.js index 1c313b0..a8d24b4 100644 --- a/docs/_app/immutable/chunks/page.393f2aab.js +++ b/docs/_app/immutable/chunks/page.dac8ab59.js @@ -1,4 +1,4 @@ -import{s as g,f as C,a as F,g as E,x as m,c as h,j as i,k as B,i as D,r as d,d as e,h as v}from"./scheduler.3ecd3668.js";import{S as b,i as _,b as x,d as T,m as k,a as w,t as $,e as H}from"./index.bf4ded2a.js";function L(f){let s,c=`// structure +import{s as g,f as C,a as F,g as E,x as m,c as h,j as i,k as B,i as D,r as d,d as e,h as v}from"./scheduler.6381a9b9.js";import{S as b,i as _,b as x,d as T,m as k,a as w,t as $,e as H}from"./index.cf31950d.js";function L(f){let s,c=`// structure type Config = { theme: string; format: string; diff --git a/docs/_app/immutable/chunks/scheduler.3ecd3668.js b/docs/_app/immutable/chunks/scheduler.6381a9b9.js similarity index 99% rename from docs/_app/immutable/chunks/scheduler.3ecd3668.js rename to docs/_app/immutable/chunks/scheduler.6381a9b9.js index 60fcc5c..4341174 100644 --- a/docs/_app/immutable/chunks/scheduler.3ecd3668.js +++ b/docs/_app/immutable/chunks/scheduler.6381a9b9.js @@ -3,4 +3,4 @@ function Br(){}const Mt=e=>e;function tt(e,o){for(const c in o)e[c]=o[c];return * * @author Feross Aboukhadijeh * @license MIT - */(function(e){var o=K,c=fr,l=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=a,e.SlowBuffer=Dr,e.INSPECT_MAX_BYTES=50;var p=2147483647;e.kMaxLength=p,a.TYPED_ARRAY_SUPPORT=y(),!a.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 y(){try{var n=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(n,r),n.foo()===42}catch{return!1}}Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}});function h(n){if(n>p)throw new RangeError('The value "'+n+'" is invalid for option "size"');var r=new Uint8Array(n);return Object.setPrototypeOf(r,a.prototype),r}function a(n,r,t){if(typeof n=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return F(n)}return w(n,r,t)}a.poolSize=8192;function w(n,r,t){if(typeof n=="string")return I(n,r);if(ArrayBuffer.isView(n))return j(n);if(n==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof n);if(C(n,ArrayBuffer)||n&&C(n.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(C(n,SharedArrayBuffer)||n&&C(n.buffer,SharedArrayBuffer)))return q(n,r,t);if(typeof n=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var i=n.valueOf&&n.valueOf();if(i!=null&&i!==n)return a.from(i,r,t);var u=Nr(n);if(u)return u;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof n[Symbol.toPrimitive]=="function")return a.from(n[Symbol.toPrimitive]("string"),r,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof n)}a.from=function(n,r,t){return w(n,r,t)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array);function d(n){if(typeof n!="number")throw new TypeError('"size" argument must be of type number');if(n<0)throw new RangeError('The value "'+n+'" is invalid for option "size"')}function _(n,r,t){return d(n),n<=0?h(n):r!==void 0?typeof t=="string"?h(n).fill(r,t):h(n).fill(r):h(n)}a.alloc=function(n,r,t){return _(n,r,t)};function F(n){return d(n),h(n<0?0:$(n)|0)}a.allocUnsafe=function(n){return F(n)},a.allocUnsafeSlow=function(n){return F(n)};function I(n,r){if((typeof r!="string"||r==="")&&(r="utf8"),!a.isEncoding(r))throw new TypeError("Unknown encoding: "+r);var t=hr(n,r)|0,i=h(t),u=i.write(n,r);return u!==t&&(i=i.slice(0,u)),i}function b(n){for(var r=n.length<0?0:$(n.length)|0,t=h(r),i=0;i=p)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+p.toString(16)+" bytes");return n|0}function Dr(n){return+n!=n&&(n=0),a.alloc(+n)}a.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==a.prototype},a.compare=function(r,t){if(C(r,Uint8Array)&&(r=a.from(r,r.offset,r.byteLength)),C(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(r)||!a.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===t)return 0;for(var i=r.length,u=t.length,f=0,s=Math.min(i,u);fu.length?a.from(s).copy(u,f):Uint8Array.prototype.set.call(u,s,f);else if(a.isBuffer(s))s.copy(u,f);else throw new TypeError('"list" argument must be an Array of Buffers');f+=s.length}return u};function hr(n,r){if(a.isBuffer(n))return n.length;if(ArrayBuffer.isView(n)||C(n,ArrayBuffer))return n.byteLength;if(typeof n!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof n);var t=n.length,i=arguments.length>2&&arguments[2]===!0;if(!i&&t===0)return 0;for(var u=!1;;)switch(r){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return rr(n).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return Er(n).length;default:if(u)return i?-1:rr(n).length;r=(""+r).toLowerCase(),u=!0}}a.byteLength=hr;function Wr(n,r,t){var i=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,r>>>=0,t<=r))return"";for(n||(n="utf8");;)switch(n){case"hex":return Pr(this,r,t);case"utf8":case"utf-8":return wr(this,r,t);case"ascii":return Xr(this,r,t);case"latin1":case"binary":return Jr(this,r,t);case"base64":return qr(this,r,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Qr(this,r,t);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(n+"").toLowerCase(),i=!0}}a.prototype._isBuffer=!0;function N(n,r,t){var i=n[r];n[r]=n[t],n[t]=i}a.prototype.swap16=function(){var r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;tt&&(r+=" ... "),""},l&&(a.prototype[l]=a.prototype.inspect),a.prototype.compare=function(r,t,i,u,f){if(C(r,Uint8Array)&&(r=a.from(r,r.offset,r.byteLength)),!a.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(t===void 0&&(t=0),i===void 0&&(i=r?r.length:0),u===void 0&&(u=0),f===void 0&&(f=this.length),t<0||i>r.length||u<0||f>this.length)throw new RangeError("out of range index");if(u>=f&&t>=i)return 0;if(u>=f)return-1;if(t>=i)return 1;if(t>>>=0,i>>>=0,u>>>=0,f>>>=0,this===r)return 0;for(var s=f-u,m=i-t,x=Math.min(s,m),E=this.slice(u,f),B=r.slice(t,i),g=0;g2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,tr(t)&&(t=u?0:n.length-1),t<0&&(t=n.length+t),t>=n.length){if(u)return-1;t=n.length-1}else if(t<0)if(u)t=0;else return-1;if(typeof r=="string"&&(r=a.from(r,i)),a.isBuffer(r))return r.length===0?-1:yr(n,r,t,i,u);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?u?Uint8Array.prototype.indexOf.call(n,r,t):Uint8Array.prototype.lastIndexOf.call(n,r,t):yr(n,[r],t,i,u);throw new TypeError("val must be string, number or Buffer")}function yr(n,r,t,i,u){var f=1,s=n.length,m=r.length;if(i!==void 0&&(i=String(i).toLowerCase(),i==="ucs2"||i==="ucs-2"||i==="utf16le"||i==="utf-16le")){if(n.length<2||r.length<2)return-1;f=2,s/=2,m/=2,t/=2}function x(gr,vr){return f===1?gr[vr]:gr.readUInt16BE(vr*f)}var E;if(u){var B=-1;for(E=t;Es&&(t=s-m),E=t;E>=0;E--){for(var g=!0,J=0;Ju&&(i=u)):i=u;var f=r.length;i>f/2&&(i=f/2);for(var s=0;s>>0,isFinite(i)?(i=i>>>0,u===void 0&&(u="utf8")):(u=i,i=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var f=this.length-t;if((i===void 0||i>f)&&(i=f),r.length>0&&(i<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");u||(u="utf8");for(var s=!1;;)switch(u){case"hex":return zr(this,r,t,i);case"utf8":case"utf-8":return Or(this,r,t,i);case"ascii":case"latin1":case"binary":return Hr(this,r,t,i);case"base64":return Yr(this,r,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return jr(this,r,t,i);default:if(s)throw new TypeError("Unknown encoding: "+u);u=(""+u).toLowerCase(),s=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function qr(n,r,t){return r===0&&t===n.length?o.fromByteArray(n):o.fromByteArray(n.slice(r,t))}function wr(n,r,t){t=Math.min(n.length,t);for(var i=[],u=r;u239?4:f>223?3:f>191?2:1;if(u+m<=t){var x,E,B,g;switch(m){case 1:f<128&&(s=f);break;case 2:x=n[u+1],(x&192)===128&&(g=(f&31)<<6|x&63,g>127&&(s=g));break;case 3:x=n[u+1],E=n[u+2],(x&192)===128&&(E&192)===128&&(g=(f&15)<<12|(x&63)<<6|E&63,g>2047&&(g<55296||g>57343)&&(s=g));break;case 4:x=n[u+1],E=n[u+2],B=n[u+3],(x&192)===128&&(E&192)===128&&(B&192)===128&&(g=(f&15)<<18|(x&63)<<12|(E&63)<<6|B&63,g>65535&&g<1114112&&(s=g))}}s===null?(s=65533,m=1):s>65535&&(s-=65536,i.push(s>>>10&1023|55296),s=56320|s&1023),i.push(s),u+=m}return Gr(i)}var mr=4096;function Gr(n){var r=n.length;if(r<=mr)return String.fromCharCode.apply(String,n);for(var t="",i=0;ii)&&(t=i);for(var u="",f=r;fi&&(r=i),t<0?(t+=i,t<0&&(t=0)):t>i&&(t=i),tt)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUintLE=a.prototype.readUIntLE=function(r,t,i){r=r>>>0,t=t>>>0,i||A(r,t,this.length);for(var u=this[r],f=1,s=0;++s>>0,t=t>>>0,i||A(r,t,this.length);for(var u=this[r+--t],f=1;t>0&&(f*=256);)u+=this[r+--t]*f;return u},a.prototype.readUint8=a.prototype.readUInt8=function(r,t){return r=r>>>0,t||A(r,1,this.length),this[r]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(r,t){return r=r>>>0,t||A(r,2,this.length),this[r]|this[r+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(r,t){return r=r>>>0,t||A(r,2,this.length),this[r]<<8|this[r+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(r,t){return r=r>>>0,t||A(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(r,t){return r=r>>>0,t||A(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])},a.prototype.readIntLE=function(r,t,i){r=r>>>0,t=t>>>0,i||A(r,t,this.length);for(var u=this[r],f=1,s=0;++s=f&&(u-=Math.pow(2,8*t)),u},a.prototype.readIntBE=function(r,t,i){r=r>>>0,t=t>>>0,i||A(r,t,this.length);for(var u=t,f=1,s=this[r+--u];u>0&&(f*=256);)s+=this[r+--u]*f;return f*=128,s>=f&&(s-=Math.pow(2,8*t)),s},a.prototype.readInt8=function(r,t){return r=r>>>0,t||A(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]},a.prototype.readInt16LE=function(r,t){r=r>>>0,t||A(r,2,this.length);var i=this[r]|this[r+1]<<8;return i&32768?i|4294901760:i},a.prototype.readInt16BE=function(r,t){r=r>>>0,t||A(r,2,this.length);var i=this[r+1]|this[r]<<8;return i&32768?i|4294901760:i},a.prototype.readInt32LE=function(r,t){return r=r>>>0,t||A(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24},a.prototype.readInt32BE=function(r,t){return r=r>>>0,t||A(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]},a.prototype.readFloatLE=function(r,t){return r=r>>>0,t||A(r,4,this.length),c.read(this,r,!0,23,4)},a.prototype.readFloatBE=function(r,t){return r=r>>>0,t||A(r,4,this.length),c.read(this,r,!1,23,4)},a.prototype.readDoubleLE=function(r,t){return r=r>>>0,t||A(r,8,this.length),c.read(this,r,!0,52,8)},a.prototype.readDoubleBE=function(r,t){return r=r>>>0,t||A(r,8,this.length),c.read(this,r,!1,52,8)};function T(n,r,t,i,u,f){if(!a.isBuffer(n))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>u||rn.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(r,t,i,u){if(r=+r,t=t>>>0,i=i>>>0,!u){var f=Math.pow(2,8*i)-1;T(this,r,t,i,f,0)}var s=1,m=0;for(this[t]=r&255;++m>>0,i=i>>>0,!u){var f=Math.pow(2,8*i)-1;T(this,r,t,i,f,0)}var s=i-1,m=1;for(this[t+s]=r&255;--s>=0&&(m*=256);)this[t+s]=r/m&255;return t+i},a.prototype.writeUint8=a.prototype.writeUInt8=function(r,t,i){return r=+r,t=t>>>0,i||T(this,r,t,1,255,0),this[t]=r&255,t+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(r,t,i){return r=+r,t=t>>>0,i||T(this,r,t,2,65535,0),this[t]=r&255,this[t+1]=r>>>8,t+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(r,t,i){return r=+r,t=t>>>0,i||T(this,r,t,2,65535,0),this[t]=r>>>8,this[t+1]=r&255,t+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(r,t,i){return r=+r,t=t>>>0,i||T(this,r,t,4,4294967295,0),this[t+3]=r>>>24,this[t+2]=r>>>16,this[t+1]=r>>>8,this[t]=r&255,t+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(r,t,i){return r=+r,t=t>>>0,i||T(this,r,t,4,4294967295,0),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4},a.prototype.writeIntLE=function(r,t,i,u){if(r=+r,t=t>>>0,!u){var f=Math.pow(2,8*i-1);T(this,r,t,i,f-1,-f)}var s=0,m=1,x=0;for(this[t]=r&255;++s>0)-x&255;return t+i},a.prototype.writeIntBE=function(r,t,i,u){if(r=+r,t=t>>>0,!u){var f=Math.pow(2,8*i-1);T(this,r,t,i,f-1,-f)}var s=i-1,m=1,x=0;for(this[t+s]=r&255;--s>=0&&(m*=256);)r<0&&x===0&&this[t+s+1]!==0&&(x=1),this[t+s]=(r/m>>0)-x&255;return t+i},a.prototype.writeInt8=function(r,t,i){return r=+r,t=t>>>0,i||T(this,r,t,1,127,-128),r<0&&(r=255+r+1),this[t]=r&255,t+1},a.prototype.writeInt16LE=function(r,t,i){return r=+r,t=t>>>0,i||T(this,r,t,2,32767,-32768),this[t]=r&255,this[t+1]=r>>>8,t+2},a.prototype.writeInt16BE=function(r,t,i){return r=+r,t=t>>>0,i||T(this,r,t,2,32767,-32768),this[t]=r>>>8,this[t+1]=r&255,t+2},a.prototype.writeInt32LE=function(r,t,i){return r=+r,t=t>>>0,i||T(this,r,t,4,2147483647,-2147483648),this[t]=r&255,this[t+1]=r>>>8,this[t+2]=r>>>16,this[t+3]=r>>>24,t+4},a.prototype.writeInt32BE=function(r,t,i){return r=+r,t=t>>>0,i||T(this,r,t,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};function xr(n,r,t,i,u,f){if(t+i>n.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function dr(n,r,t,i,u){return r=+r,t=t>>>0,u||xr(n,r,t,4),c.write(n,r,t,i,23,4),t+4}a.prototype.writeFloatLE=function(r,t,i){return dr(this,r,t,!0,i)},a.prototype.writeFloatBE=function(r,t,i){return dr(this,r,t,!1,i)};function _r(n,r,t,i,u){return r=+r,t=t>>>0,u||xr(n,r,t,8),c.write(n,r,t,i,52,8),t+8}a.prototype.writeDoubleLE=function(r,t,i){return _r(this,r,t,!0,i)},a.prototype.writeDoubleBE=function(r,t,i){return _r(this,r,t,!1,i)},a.prototype.copy=function(r,t,i,u){if(!a.isBuffer(r))throw new TypeError("argument should be a Buffer");if(i||(i=0),!u&&u!==0&&(u=this.length),t>=r.length&&(t=r.length),t||(t=0),u>0&&u=this.length)throw new RangeError("Index out of range");if(u<0)throw new RangeError("sourceEnd out of bounds");u>this.length&&(u=this.length),r.length-t>>0,i=i===void 0?this.length:i>>>0,r||(r=0);var s;if(typeof r=="number")for(s=t;s55295&&t<57344){if(!u){if(t>56319){(r-=3)>-1&&f.push(239,191,189);continue}else if(s+1===i){(r-=3)>-1&&f.push(239,191,189);continue}u=t;continue}if(t<56320){(r-=3)>-1&&f.push(239,191,189),u=t;continue}t=(u-55296<<10|t-56320)+65536}else u&&(r-=3)>-1&&f.push(239,191,189);if(u=null,t<128){if((r-=1)<0)break;f.push(t)}else if(t<2048){if((r-=2)<0)break;f.push(t>>6|192,t&63|128)}else if(t<65536){if((r-=3)<0)break;f.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((r-=4)<0)break;f.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return f}function Zr(n){for(var r=[],t=0;t>8,u=t%256,f.push(u),f.push(i);return f}function Er(n){return o.toByteArray(Kr(n))}function X(n,r,t,i){for(var u=0;u=r.length||u>=n.length);++u)r[u+t]=n[u];return u}function C(n,r){return n instanceof r||n!=null&&n.constructor!=null&&n.constructor.name!=null&&n.constructor.name===r.name}function tr(n){return n!==n}var rt=function(){for(var n="0123456789abcdef",r=new Array(256),t=0;t<16;++t)for(var i=t*16,u=0;u<16;++u)r[i+u]=n[t]+n[u];return r}()})(at);var Ur={exports:{}},v=Ur.exports={},k,S;function or(){throw new Error("setTimeout has not been defined")}function ur(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?k=setTimeout:k=or}catch{k=or}try{typeof clearTimeout=="function"?S=clearTimeout:S=ur}catch{S=ur}})();function Ir(e){if(k===setTimeout)return setTimeout(e,0);if((k===or||!k)&&setTimeout)return k=setTimeout,setTimeout(e,0);try{return k(e,0)}catch{try{return k.call(null,e,0)}catch{return k.call(this,e,0)}}}function mt(e){if(S===clearTimeout)return clearTimeout(e);if((S===ur||!S)&&clearTimeout)return S=clearTimeout,clearTimeout(e);try{return S(e)}catch{try{return S.call(null,e)}catch{return S.call(this,e)}}}var M=[],O=!1,D,Q=-1;function xt(){!O||!D||(O=!1,D.length?M=D.concat(M):Q=-1,M.length&&Cr())}function Cr(){if(!O){var e=Ir(xt);O=!0;for(var o=M.length;o;){for(D=M,M=[];++Q1)for(var c=1;c>1);c(p)<=l?e=p+1:o=p}return e}function Et(e){if(e.hydrate_init)return;e.hydrate_init=!0;let o=e.childNodes;if(e.nodeName==="HEAD"){const w=[];for(let d=0;d0&&o[c[p]].claim_order<=d?p+1:_t(1,p,I=>o[c[I]].claim_order,d))-1;l[w]=c[_]+1;const F=_+1;c[F]=w,p=Math.max(F,p)}const y=[],h=[];let a=o.length-1;for(let w=c[p]+1;w!=0;w=l[w-1]){for(y.push(o[w-1]);a>=w;a--)h.push(o[a]);a--}for(;a>=0;a--)h.push(o[a]);y.reverse(),h.sort((w,d)=>w.claim_order-d.claim_order);for(let w=0,d=0;w=y[d].claim_order;)d++;const _=de.removeEventListener(o,c,l)}function ee(e){return function(o){return o.preventDefault(),e.call(this,o)}}function ne(e){return function(o){return o.stopPropagation(),e.call(this,o)}}function ie(e,o,c){c==null?e.removeAttribute(o):e.getAttribute(o)!==c&&e.setAttribute(o,c)}function oe(e){return e.dataset.svelteH}function ue(e){let o;return{p(...c){o=c,o.forEach(l=>e.push(l))},r(){o.forEach(c=>e.splice(e.indexOf(c),1))}}}function ae(e){return Array.from(e.childNodes)}function bt(e){e.claim_info===void 0&&(e.claim_info={last_index:0,total_claimed:0})}function Lr(e,o,c,l,p=!1){bt(e);const y=(()=>{for(let h=e.claim_info.last_index;h=0;h--){const a=e[h];if(o(a)){const w=c(a);return w===void 0?e.splice(h,1):e[h]=w,p?w===void 0&&e.claim_info.last_index--:e.claim_info.last_index=h,a}}return l()})();return y.claim_order=e.claim_info.total_claimed,e.claim_info.total_claimed+=1,y}function Mr(e,o,c,l){return Lr(e,p=>p.nodeName===o,p=>{const y=[];for(let h=0;hp.removeAttribute(h))},()=>l(o))}function ce(e,o,c){return Mr(e,o,c,lr)}function fe(e,o,c){return Mr(e,o,c,Bt)}function Tt(e,o){return Lr(e,c=>c.nodeType===3,c=>{const l=""+o;if(c.data.startsWith(l)){if(c.data.length!==l.length)return c.splitText(l.length)}else c.data=l},()=>sr(o),!0)}function le(e){return Tt(e," ")}function se(e,o){o=""+o,e.data!==o&&(e.data=o)}function he(e,o){e.value=o??""}function pe(e,o,c,l){c==null?e.style.removeProperty(o):e.style.setProperty(o,c,l?"important":"")}let P;function Ut(){if(P===void 0){P=!1;try{typeof window<"u"&&window.parent&&window.parent.document}catch{P=!0}}return P}function ye(e,o){getComputedStyle(e).position==="static"&&(e.style.position="relative");const l=lr("iframe");l.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),l.setAttribute("aria-hidden","true"),l.tabIndex=-1;const p=Ut();let y;return p?(l.src="data:text/html,